{"uid":"cap_sLBikDiKPX_UjpTIAytQU","slug":"x402-shizu-me-ohlc-crypto-candles-97a00c8c","name":"x402.shizu.me OHLC Crypto Candles","description":"Historical OHLC candles for a crypto pair (e.g. BTC-USD) — for technical analysis and backtesting. Query: pair; granularity (1m, 5m, 15m, 1h, 6h, 1d — default 1h); limit (1-300, default 100) for the latest window, OR start & end (ISO8601 or unix secs) for a backtest range paginated server-side up to 3000 candles — months of history in one call. Returns candles oldest->newest, each {t, o, h, l, c, v}. Real-time from Coinbase.","url":"https://x402.shizu.me/candles","method":"GET","headers":{},"bodySchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"type":"object","required":["method"],"properties":{"method":{"const":"GET"},"queryParams":{"type":"object","required":["pair","granularity","start","end"],"properties":{"end":{"type":"string"},"pair":{"type":"string"},"start":{"type":"string"},"granularity":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"pair":"BTC-USD","count":744,"candles":[{"c":62542,"h":62600,"l":62310.5,"o":62410.1,"t":1719763200,"v":118.3}],"granularity":"1h"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3B7Oa0fPQOfwVbEOQONrl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns historical OHLC price candles for a crypto trading pair from Coinbase, supporting configurable granularity and limit for technical analysis and backtesting.","exampleAgentPrompt":"Can you pull the last 200 hourly OHLC candles for BTC-USD so I can run a moving average backtest?","exampleUseCases":null,"resultDescription":"An array of up to 300 candle objects ordered oldest to newest, each containing unix timestamp (t), open (o), high (h), low (l), close (c), and volume (v) values for the requested trading pair and granularity interval. Data is sourced in real-time from Coinbase.","failureModes":["Invalid or unsupported trading pair returns an error (e.g. typo in pair like 'BTC_USD' instead of 'BTC-USD')","Granularity value not in allowed set (1m, 5m, 15m, 1h, 6h, 1d) returns a validation error","Limit outside range 1-300 returns an error","Coinbase upstream unavailability may result in timeout or 5xx error","Payment failure (insufficient USDC) results in 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need historical OHLC candlestick data for a specific crypto trading pair for charting, technical indicator computation, or backtesting strategies. Prefer this over generic price endpoints when you need time-series data with open/high/low/close/volume rather than a single current spot price.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:36:01.576Z","isFirstParty":false}