curl --request GET \
--url https://api.example.com/api/v1/candles{
"symbol": "<string>",
"dbSymbol": "<string>",
"interval": "<string>",
"from": "<string>",
"to": "<string>",
"count": 123,
"data": [
{
"time": "<string>",
"open": 123,
"high": 123,
"low": 123,
"close": 123,
"volume": 123,
"trade_count": 123
}
]
}Retrieve historical candlestick (OHLCV) data for a specified trading symbol and time interval
curl --request GET \
--url https://api.example.com/api/v1/candles{
"symbol": "<string>",
"dbSymbol": "<string>",
"interval": "<string>",
"from": "<string>",
"to": "<string>",
"count": 123,
"data": [
{
"time": "<string>",
"open": 123,
"high": 123,
"low": 123,
"close": 123,
"volume": 123,
"trade_count": 123
}
]
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/lakshay-goyal/Exness/llms.txt
Use this file to discover all available pages before exploring further.
BTCUSDT or BTC_USDC_PERP - Bitcoin perpetual futureETHUSDT or ETH_USDC_PERP - Ethereum perpetual futureSOLUSDT or SOL_USDC_PERP - Solana perpetual future1m - 1 minute (returns last 24 hours)5m - 5 minutes (returns last 7 days)15m - 15 minutes (returns last 14 days)30m - 30 minutes (returns last 1 month)1h - 1 hour (returns last 3 months)4h - 4 hours (returns last 1 year)1d - 1 day (returns last 5 years)BTCUSDT)BTC_USDC_PERP)Show Candlestick Object
curl -X GET "http://localhost:8787/api/v1/candles?symbol=BTCUSDT&interval=1h"
{
"symbol": "BTCUSDT",
"dbSymbol": "BTC_USDC_PERP",
"interval": "1h",
"from": "2025-12-03T14:30:00.000Z",
"to": "2026-03-03T14:30:00.000Z",
"count": 2184,
"data": [
{
"time": "2025-12-03T14:00:00.000Z",
"open": 96500.50,
"high": 96750.25,
"low": 96400.00,
"close": 96680.75,
"volume": 125.45,
"trade_count": 1523
},
{
"time": "2025-12-03T15:00:00.000Z",
"open": 96680.75,
"high": 96890.00,
"low": 96550.50,
"close": 96820.25,
"volume": 98.32,
"trade_count": 1234
}
]
}
curl -X GET "http://localhost:8787/api/v1/candles?symbol=ETHUSDT&interval=5m"
{
"symbol": "ETHUSDT",
"dbSymbol": "ETH_USDC_PERP",
"interval": "5m",
"from": "2026-02-24T14:30:00.000Z",
"to": "2026-03-03T14:30:00.000Z",
"count": 2016,
"data": [
{
"time": "2026-02-24T14:25:00.000Z",
"open": 3250.75,
"high": 3255.50,
"low": 3248.25,
"close": 3252.00,
"volume": 450.25,
"trade_count": 892
}
]
}
curl -X GET "http://localhost:8787/api/v1/candles?symbol=SOLUSDT&interval=1d"
{
"error": "Missing required query parameters: symbol and interval"
}
{
"error": "Invalid interval value",
"allowedIntervals": ["1m", "5m", "15m", "30m", "1h", "4h", "1d"]
}
{
"error": "Internal server error",
"message": "Database connection failed"
}
candles_1m, candles_5m, etc.)trades table if aggregate data is unavailable| Interval | Default Time Range |
|---|---|
| 1m | Last 24 hours |
| 5m | Last 7 days |
| 15m | Last 14 days |
| 30m | Last 1 month |
| 1h | Last 3 months |
| 4h | Last 1 year |
| 1d | Last 5 years |
BTCUSDT → BTC_USDC_PERPETHUSDT → ETH_USDC_PERPSOLUSDT → SOL_USDC_PERPcount field indicates if data is available for the requested symbol and time range