{"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:kraken/ticker":{"get":{"operationId":"finance_kraken_ticker","summary":"Ticker","description":"Last trade, bid, ask and 24h volume.","tags":["finance"],"parameters":[{"name":"pair","in":"query","required":true,"description":"One or more pairs, comma-separated","schema":{"type":"string","description":"One or more pairs, comma-separated"},"example":"XBTUSD"}],"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":15,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/finance:kraken/ohlc":{"get":{"operationId":"finance_kraken_ohlc","summary":"OHLC","description":"Candles for a pair.","tags":["finance"],"parameters":[{"name":"pair","in":"query","required":true,"schema":{"type":"string"},"example":"ETHUSD"},{"name":"interval","in":"query","required":false,"description":"Minutes","schema":{"type":"string","enum":["1","5","15","30","60","240","1440","10080","21600"],"default":"60","description":"Minutes"}}],"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:kraken/depth":{"get":{"operationId":"finance_kraken_depth","summary":"Order book","description":"Bids and asks.","tags":["finance"],"parameters":[{"name":"pair","in":"query","required":true,"schema":{"type":"string"},"example":"XBTUSD"},{"name":"count","in":"query","required":false,"description":"Number of results","schema":{"type":"integer","default":25,"minimum":1,"maximum":500,"description":"Number of results"}}],"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":5,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/finance:kraken/assets":{"get":{"operationId":"finance_kraken_assets","summary":"Assets","description":"Tradable assets.","tags":["finance"],"parameters":[],"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":86400,"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"}}}}}}}