{"uid":"cap_hOpbsrTE5cUIPNZ5PVxzM","slug":"ironflow-ohlcv-candles-3b35e72d","name":"Ironflow OHLCV Candles","description":"Hyperliquid OHLCV candles for any market from Ironflow's own nodes: open, high, low, close, base volume and trade count, intervals 1m to 1w, up to a year back. Use it for crypto price history, charting, backtests and indicators on perps, spot and HIP-3 stock or commodity markets.","url":"https://api.ironflow.sh/x402/v1/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":["market"],"properties":{"to":{"type":"string","description":"End: Unix ms, ISO 8601, relative (-1h) or now (default)"},"from":{"type":"string","description":"Start: Unix ms, ISO 8601, or relative (-7d, now-24h); up to 14 days back"},"limit":{"type":"string","description":"Candles per page"},"cursor":{"type":"string","description":"next_cursor from the previous page"},"market":{"type":"string","description":"Market: BTC, ETH-PERP, HYPE/USDC, xyz:NVDA (HIP-3) or a Hyperliquid coin name"},"interval":{"enum":["1m","3m","5m","15m","30m","1h","2h","4h","8h","12h","1d","3d","1w"],"type":"string","description":"Candle interval (default 1h)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"low":{"type":"string","description":"Low price"},"high":{"type":"string","description":"High price"},"open":{"type":"string","description":"Open price"},"close":{"type":"string","description":"Close price"},"market":{"type":"string","description":"Market symbol, e.g. BTC-PERP, HYPE/USDC, xyz:NVDA-PERP"},"volume":{"type":"string","description":"Volume in the base asset"},"interval":{"type":"string","description":"Interval"},"timestamp":{"type":"integer","description":"Candle open time, Unix ms"},"trade_count":{"type":"integer","description":"Trades in the candle"}},"description":"A candle"},"description":"One row per candle"},"error":{"type":"object","properties":{"code":{"type":"string","description":"Machine-readable code: INVALID_PARAMETER, HISTORY_OUT_OF_RANGE, QUERY_WINDOW_EXCEEDED, RATE_LIMIT_EXCEEDED, NOT_FOUND, INTERNAL_ERROR"},"message":{"type":"string","description":"What went wrong and how to fix the request"},"upgrade":{"type":"object","properties":{},"description":"On a limit error: the plan or paid call that lifts it"}},"description":"Present instead of the data on a 4xx or 5xx answer."},"pagination":{"type":"object","properties":{"has_more":{"type":"boolean","description":"Whether more rows match"},"next_cursor":{"type":"string","description":"Cursor for the next page, empty when there is none"}},"description":"Paging: pass next_cursor as cursor= for the next page"}},"description":"Candles in time order"}}}}},"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_dRqNfFpV-5I-4L0NPHCZO","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 (open, high, low, close, base volume, trade count) for any Hyperliquid market across configurable intervals from 1 minute to 1 week, up to one year back.","exampleAgentPrompt":"Pull hourly OHLCV candles for BTC-PERP on Hyperliquid for the last 7 days from Ironflow — I need the open, high, low, close, volume, and trade count per candle for a backtest.","exampleUseCases":[{"title":"Backtest a moving average strategy","prompt":"Get me daily OHLCV candles for ETH-PERP on Hyperliquid going back 90 days — I want to backtest a 20/50-day moving average crossover strategy and need open, high, low, close, and volume for each day."},{"title":"Real-time chart for a HIP-3 stock market","prompt":"Fetch 15-minute candles for the xyz:NVDA HIP-3 market on Hyperliquid from the last 48 hours so I can chart the intraday price action."},{"title":"RSI indicator on a spot market","prompt":"Pull 1-hour candles for HYPE/USDC spot on Hyperliquid for the past 30 days — I need close prices and trade counts to calculate RSI and volume-weighted signals."}],"resultDescription":"An array of candle objects, each containing: timestamp (Unix ms of candle open), open, high, low, close (prices as strings), volume (base asset volume as string), trade_count (integer), market symbol, and interval. The response also includes a next_cursor field for paginating through large date ranges, and an error object with a machine-readable code if the request fails.","failureModes":["INVALID_PARAMETER — market symbol not recognized or interval not in allowed enum","HISTORY_OUT_OF_RANGE — requested start date is more than one year ago","QUERY_WINDOW_EXCEEDED — the from/to window is too large for a single page; use limit and cursor to paginate","NOT_FOUND — no data exists for the specified market or time range","RATE_LIMIT_EXCEEDED — too many requests in a short window","Payment failure — x402 payment not processed, request blocked"],"whenToPreferThis":"Choose this endpoint when you need Hyperliquid-specific OHLCV price history for perps, spot, or HIP-3 tokenized asset markets, especially for charting, backtesting trading strategies, or computing technical indicators. It sources data directly from Ironflow's own Hyperliquid nodes, making it more reliable for Hyperliquid data than generic crypto OHLCV providers. Use siblings endpoints for tick-level trade data, funding rates, or liquidation analysis.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T23:48:21.307Z","isFirstParty":false,"canonicalSlug":"ironflow-ohlcv-candles-3b35e72d"}