{"slug":"x402-gateway-production-1f21-up-railway-app-crypto-candles-590a63","title":"Get recent or bounded historical Coinbase Exchange OHLCV candles for a crypto pa","host":"x402-gateway-production-1f21.up.railway.app","method":"POST","resource":"https://x402-gateway-production-1f21.up.railway.app/crypto/candles","category":"market","description":"Get recent or bounded historical Coinbase Exchange OHLCV candles for a crypto pair. Returns timestamp, low, high, open, close and volume. Supports 1m, 5m, 15m, 1h, 6h and 1d bars with at most 300 candles.","price_listed":0.005,"price_asked":0.005,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":882,"reported_calls_30d":0,"reported_payers_30d":0,"networks":["eip155:137","eip155:42161","eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"granularity":3600,"limit":48,"product_id":"BTC-USD"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"end":{"description":"Optional Unix end timestamp in seconds.","minimum":0,"type":"integer"},"granularity":{"description":"Candle width in seconds.","enum":[60,300,900,3600,21600,86400],"type":"integer"},"limit":{"description":"When start/end are omitted, target this many recent bars; default 100.","maximum":300,"minimum":1,"type":"integer"},"product_id":{"description":"Coinbase Exchange product such as BTC-USD, ETH-USD, SOL-USD or ETH-USDC.","pattern":"^[A-Za-z0-9]{2,15}-[A-Za-z0-9]{2,15}$","type":"string"},"start":{"description":"Optional Unix start timestamp in seconds.","minimum":0,"type":"integer"}},"required":["product_id"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-01","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":882,"error":null}],"description_full":"Get recent or bounded historical Coinbase Exchange OHLCV candles for a crypto pair. Returns timestamp, low, high, open, close and volume. Supports 1m, 5m, 15m, 1h, 6h and 1d bars with at most 300 candles.","last_updated":"2026-10-01T17:35:21.015Z","schemes":["exact"]}