{"uid":"cap_naYcgDr7BXo_dTE6UtTMv","slug":"aayat-ai-perpetual-futures-ohlcv-candles-d5d65e68","name":"Aayat AI Perpetual Futures OHLCV Candles","description":"OHLCV candles for a perpetual futures market on Hyperliquid or dYdX (1m to 1d, up to 500), with a summary: change, high/low, USD volume and annualised realised volatility. Pass ?coin=ETH&interval=1h&limit=24 (&venue=dydx).","url":"https://aayatai.com/perps/candles?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":["coin"],"properties":{"coin":{"type":"string","maxLength":20,"description":"Market symbol, e.g. BTC, ETH, SOL."},"limit":{"type":"integer","default":24,"maximum":500,"minimum":2,"description":"How many of the latest candles (2-500)."},"venue":{"enum":["auto","hyperliquid","dydx"],"type":"string","default":"auto","description":"auto (default: Hyperliquid, or dYdX while Hyperliquid is unavailable), hyperliquid or dydx."},"detail":{"enum":["full","brief"],"type":"string","default":"full","description":"brief = key fields only (same price)"},"interval":{"enum":["1m","5m","15m","30m","1h","4h","1d"],"type":"string","default":"1h","description":"Candle size."}}}},"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_bkMFygSQr9Urmu74SWSi-","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 candlestick data (up to 500 candles, 1m to 1d) for perpetual futures markets on Hyperliquid or dYdX, with a summary including price change, high/low, USD volume, and annualised realised volatility.","exampleAgentPrompt":"Can you pull the last 24 hourly candles for ETH perps from Hyperliquid, including the high/low, USD volume, and annualised realised volatility summary?","exampleUseCases":[{"title":"Volatility check before options trade","prompt":"What's the annualised realised volatility for ETH perps over the last 24 hours using 1-hour candles on Hyperliquid?"},{"title":"Daily price recap for SOL perps","prompt":"Give me the last 7 daily candles for SOL perpetual futures on dYdX, including the price change, high, low, and total USD volume."},{"title":"Short-term momentum scan for BTC","prompt":"Fetch the last 50 fifteen-minute candles for BTC perps on Hyperliquid so I can see how price has been moving this morning."}],"resultDescription":"A list of OHLCV candlestick objects (open, high, low, close, volume) for the requested perpetual futures market, plus a summary object containing overall price change, period high/low, total USD volume, and annualised realised volatility calculated from the returned candles.","failureModes":["Unknown coin symbol returns an error or empty candles array","Requesting more than 500 candles is rejected (maximum limit enforced)","If Hyperliquid is unavailable and venue=hyperliquid is forced, the call may fail (use venue=auto as fallback)","Invalid interval value returns a validation error","Network or upstream exchange outage may cause timeout or 5xx error"],"whenToPreferThis":"Choose this endpoint when you need historical OHLCV candlestick data specifically for perpetual futures (not spot markets) on Hyperliquid or dYdX, especially when you also want a pre-computed volatility summary. It is well-suited for quantitative agents that need price history and volatility metrics in a single call at low cost ($0.002 per call). Prefer it over generic market data APIs when targeting DeFi perp venues.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T06:42:41.295Z","isFirstParty":false,"canonicalSlug":"aayat-ai-perpetual-futures-ohlcv-candles-d5d65e68"}