{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/finance:coinbase/spot":{"get":{"operationId":"finance_coinbase_spot","summary":"Spot price","description":"Spot price for a currency pair.","tags":["finance"],"parameters":[{"name":"pair","in":"query","required":true,"schema":{"type":"string"},"example":"BTC-USD"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":30,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/finance:coinbase/exchange-rates":{"get":{"operationId":"finance_coinbase_exchange_rates","summary":"Exchange rates","description":"Rates from one currency to every other.","tags":["finance"],"parameters":[{"name":"currency","in":"query","required":false,"schema":{"type":"string","default":"USD"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/finance:coinbase/product-ticker":{"get":{"operationId":"finance_coinbase_product_ticker","summary":"Product ticker","description":"Last trade, bid and ask on Coinbase Exchange.","tags":["finance"],"parameters":[{"name":"product","in":"query","required":true,"schema":{"type":"string"},"example":"ETH-USD"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":10,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/finance:coinbase/product-stats":{"get":{"operationId":"finance_coinbase_product_stats","summary":"24h stats","description":"Open, high, low, volume over 24 hours.","tags":["finance"],"parameters":[{"name":"product","in":"query","required":true,"schema":{"type":"string"},"example":"BTC-USD"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":30,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/finance:coinbase/candles":{"get":{"operationId":"finance_coinbase_candles","summary":"Candles","description":"OHLCV candles.","tags":["finance"],"parameters":[{"name":"product","in":"query","required":true,"schema":{"type":"string"},"example":"BTC-USD"},{"name":"granularity","in":"query","required":false,"description":"Seconds","schema":{"type":"string","enum":["60","300","900","3600","21600","86400"],"default":"3600","description":"Seconds"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}