{"uid":"cap_7m7vmzrD82Ikw4dx-_85o","slug":"agent-data-bench-dex-pool-ohlcv-candles-61facb69","name":"Agent Data Bench – DEX Pool OHLCV Candles","description":"OHLCV candles for any DEX pool, from 1 second to 1 day buckets, newest N returned oldest-first with numeric open/high/low/close/volume. Drop-in for backtests, indicator calculations and chart rendering without running an indexer or decoding swap events.","url":"https://x402.deepsense.stream/api/v1/market/ohlcv?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"],"type":"string"},"queryParams":{"type":"object","required":["chain","pool"],"properties":{"pool":{"type":"string","description":"Pool / pair address"},"chain":{"enum":["sol","eth","base"],"type":"string","description":"Chain id: sol (Solana), eth (Ethereum), base (Base)"},"limit":{"type":"integer","default":100,"maximum":500,"minimum":1},"endTime":{"type":"integer","description":"Unix seconds; defaults to now"},"outlier":{"type":"boolean","default":false,"description":"Include outlier prints"},"interval":{"enum":["1s","15s","30s","1m","5m","15m","30m","1h","4h","6h","12h","1d"],"type":"string","default":"1h"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Po_xyuDZ0BgyB99qvgNS6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","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 any DEX pool on Solana, Ethereum, or Base across intervals from 1 second to 1 day.","exampleAgentPrompt":"Can you pull the last 200 hourly OHLCV candles for the Solana pool at address 7XawhbbxtsRcQA8KTkHT9f9nc6d69UwqCDh6U5EEbEmX so I can calculate RSI?","exampleUseCases":[{"title":"Backtesting a momentum strategy","prompt":"Fetch the last 500 5-minute OHLCV candles for the Base pool at 0x4C36388bE6F416A29C8d8Eee81C771cE6bE14B5 so I can backtest a momentum trading strategy."},{"title":"Rendering a live DEX price chart","prompt":"Get me the last 100 1-hour candles for the Ethereum pool 0xB4e16d0168e52d35CaCD2c6185b44281Ec28C9Dc so I can render a price chart."},{"title":"Calculating technical indicators for a Solana pair","prompt":"Pull the last 200 15-minute OHLCV candles for Solana pool EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v so I can compute MACD and Bollinger Bands."}],"resultDescription":"An ordered array of OHLCV candle objects (oldest first), each containing numeric open, high, low, close, and volume fields plus a timestamp, for the requested pool, chain, interval, and time window. Up to 500 candles returned per call.","failureModes":["Invalid or unrecognized pool address returns an error or empty result","Unsupported chain identifier returns a validation error","Requested interval not in the supported enum returns a 400-level error","End time in the future or far past may return fewer candles than requested","Outlier prints included when outlier flag is false by default, unexpected price spikes may appear","Payment failure (x402 protocol) blocks the response entirely","Rate limiting or network timeouts on the provider side"],"whenToPreferThis":"Choose this endpoint when you need raw OHLCV candlestick data for a specific DEX pool on Solana, Ethereum, or Base without operating your own indexer or decoding swap events. It is ideal for backtesting, computing technical indicators (RSI, MACD, Bollinger Bands), or rendering price charts. It supports fine-grained intervals down to 1 second and returns data in a clean numeric format ready for quantitative use. Prefer it over general market data APIs when you need DEX-specific pool-level granularity rather than centralized exchange data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T06:41:44.042Z","isFirstParty":false,"canonicalSlug":"agent-data-bench-dex-pool-ohlcv-candles-61facb69"}