Price Candles
market_candlesOHLC(V) candle history for a coin by symbol (e.g. 'ETH', 'BTC'). 'interval' picks the candle size (1m|5m|15m|30m|1h|4h|12h|1d|1w, default 1d); 'limit' the number of candles (default 100, max 400); 'market' picks the series — 'spot' (Binance, Bybit, then CoinGecko/CoinMarketCap), 'perp' (Hyperliquid, Bybit, then Binance futures — perpetual marks), or 'auto' (default: spot preferred, perp fallback). spot/perp are hard constraints and error rather than substitute. The response labels the market, interval and source actually delivered, includes USD volume when the source carries it, and flags a still-forming last candle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | DEPRECATED: trailing window in days; use interval+limit instead. Ignored when interval is given. | |
| limit | No | Number of candles, newest last. Default 100, max 400. | |
| market | No | Which market's series: spot exchange trades, perpetual-futures marks, or auto (spot preferred, perp fallback). Default auto. | |
| symbol | Yes | Coin symbol, e.g. 'ETH' or 'BTC' | |
| interval | No | Candle size. Default 1d. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coinId | No | Identifier the answering provider queried | |
| market | No | 'spot' or 'perp' — which market the series describes | |
| source | No | Provider that answered | |
| candles | No | ||
| interval | No | Candle size actually delivered, e.g. '4h' | |
| lastCandleIsPartial | No | True when the newest candle is still forming; exclude it from indicator math |