> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aultblockchain.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Spot Candles

```http theme={null}
GET /api/v1/ohlcv/{symbol}
```

Use a percent-encoded Spot pair. Optional `timeframe` is `1m`, `5m`, `15m`, `30m`, `1h`, `4h`, `1d` (default `1m`); `since` is Unix milliseconds. `limit` defaults to 500 and caps at 1,000. `cursor` follows [Pagination](https://docs.aultblockchain.com/dex-api/getting-started/pagination.md).

The body is an array of `[timestamp, open, high, low, close, baseVolume, quoteVolume]` tuples, ascending by time. Timestamp is a number in milliseconds; OHLC and volume are decimal strings. Unknown symbols or timeframes return 400. For Testnet-Only Perps use [market candles](https://docs.aultblockchain.com/dex-api/rest/perpetual-markets.md).

```bash theme={null}
curl -fsS --get "$API_URL/api/v1/ohlcv/$SPOT_SYMBOL_ENCODED" \
  --data-urlencode 'timeframe=1h' --data-urlencode 'limit=100'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.