OHLC Candles
Get candlestick price data for charting and technical analysis
Get OHLC Candles
GETRetrieve OHLC (Open, High, Low, Close) candlestick data for price charting. Candles are computed from orderbook midpoint prices.
GET /api/v1/markets/{id}/ohlcPath Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | Market UUID |
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
interval | string | M5 | Candle interval |
limit | number | 100 | Number of candles (max 500) |
from | string | - | Start time (ISO 8601) |
to | string | - | End time (ISO 8601) |
Available Intervals
| Code | Duration |
|---|---|
M1 | 1 minute |
M5 | 5 minutes |
M15 | 15 minutes |
H1 | 1 hour |
H4 | 4 hours |
D1 | 1 day |
Example
curl -H "Authorization: Bearer or_live_xxx" \
"https://api.tessradar.com/api/v1/markets/{id}/ohlc?interval=H1&limit=24"Response
{
"data": {
"marketId": "e4ec57b5-94d1-4159-87c0-5bb6827928f7",
"question": "Will Bitcoin reach $100k by end of 2026?",
"outcome": "Yes",
"interval": "H1",
"candles": [
{
"time": "2026-01-11T00:00:00.000Z",
"open": 0.652,
"high": 0.668,
"low": 0.645,
"close": 0.665,
"volume": 125000,
"trades": 12
},
{
"time": "2026-01-11T01:00:00.000Z",
"open": 0.665,
"high": 0.672,
"low": 0.658,
"close": 0.670,
"volume": 89000,
"trades": 8
}
]
}
}Candle Fields
| Field | Type | Description |
|---|---|---|
time | string | Candle timestamp (ISO 8601) |
open | number | Opening price (0-1) |
high | number | Highest price in period |
low | number | Lowest price in period |
close | number | Closing price |
volume | number | Trading volume in USD |
trades | number | Number of trades |
Cost: 1 credit per request
OHLC data is available for markets with active orderbook tracking. New markets may have limited historical data.