Get OHLC Data
get_ohlcReturns OHLC candles (open, high, low, close and open time in unix seconds) for a symbol and timeframe from the TraderWAI market feed, updated every minute, with the period high and low and the current price. Up to 500 candles; from/to select a time range. How far back a range can go depends on the TraderWAI account; the latest candles are available on every account.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>",
"timeframe": "<timeframe>"
},
"name": "get_ohlc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End of time range. ISO 8601 (e.g. "2026-04-19T00:00:00Z") or unix seconds. Only candles at or before this time are included. | |
| from | No | Start of time range. ISO 8601 (e.g. "2026-04-01T00:00:00Z") or unix seconds. Only candles at or after this time are included. How far back a range can go depends on the TraderWAI account; the latest candles (without from/to) are available on every account. | |
| limit | No | Number of candles to return (default 100, max 500). Returns the most recent candles within the time range. | |
| symbol | Yes | Trading symbol (e.g. EUR_USD, XAU_USD, BTC_USD, NAS100_USD). | |
| timeframe | Yes | Candle timeframe: M1, M5, M15, M30, H1, H2, H4, H6, H8, H12, or D. |