{"uid":"cap_zqCwnQvy1wqdANmU9SNcR","slug":"asterpay-ohlcv-candlestick-data-c2b0d16c","name":"AsterPay OHLCV Candlestick Data","description":"Get OHLCV candlestick data for charting and analysis","url":"https://x402.asterpay.io/v1/market/ohlcv/bitcoin?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["symbol","interval","limit"],"properties":{"limit":{"type":"string"},"symbol":{"type":"string"},"interval":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","schema":{"type":"object","properties":{"symbol":{"type":"string"},"candles":{"type":"array","items":{"type":"object","properties":{"low":{"type":"number"},"high":{"type":"number"},"open":{"type":"number"},"close":{"type":"number"},"volume":{"type":"number"},"timestamp":{"type":"string"}}}},"interval":{"type":"string"}}},"example":{"symbol":"ethereum","candles":[{"low":3420,"high":3480,"open":3450,"close":3465,"volume":125000000,"timestamp":"2026-02-01T11:00:00Z"}],"interval":"1h"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.015","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.015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_y3v3I2pxMtJLdPlt83rhB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns OHLCV (open, high, low, close, volume) candlestick data for a specified cryptocurrency symbol, interval, and number of candles","exampleAgentPrompt":"Pull me the last 50 one-hour candlestick bars for Bitcoin — I need the open, high, low, close, and volume so I can run a technical analysis.","exampleUseCases":[{"title":"Trading bot candle feed","prompt":"Grab the last 100 fifteen-minute OHLCV candles for Ethereum so my trading bot can recalculate its RSI and moving average signals."},{"title":"Backtesting historical price data","prompt":"I need 200 daily candlesticks for SOL — open, high, low, close, and volume — going back as far as possible so I can backtest a breakout strategy."},{"title":"Charting dashboard data refresh","prompt":"Fetch the most recent 24 one-hour candles for Bitcoin so I can update the price chart on my dashboard with fresh OHLCV data."}],"resultDescription":"A JSON object containing the queried symbol name, the requested interval string, and an array of candle objects each with timestamp, open, high, low, close, and volume fields for that period.","failureModes":["Missing required query parameters (symbol, interval, limit) return a 400 error","Unsupported symbol or interval values may return an error or empty candle array","Payment failure via x402 protocol results in 402 Payment Required response","Rate limiting or quota exhaustion may block requests","Network timeout if upstream market data provider is unavailable"],"whenToPreferThis":"Use this endpoint when you need structured OHLCV candlestick data for a specific cryptocurrency for charting, technical analysis, or trading algorithms. It is ideal for agents building price charts, computing indicators like RSI or MACD, or backtesting strategies, especially when you need a flexible symbol/interval/limit combination and are comfortable with micropayment-per-call pricing via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:38:17.297Z","isFirstParty":false,"canonicalSlug":"asterpay-ohlcv-candlestick-data-c2b0d16c"}