Forex OHLC bars
forex_barsRetrieve historical OHLC bars for any 6-character forex pair. Supports custom time ranges and intervals, with pagination for large datasets.
Instructions
Fetch historical OHLC bars for a 6-character FX pair (e.g. EURUSD) over a time range at a chosen interval (default 1m); volume is always 0 for OTC spot forex. Large ranges are size-capped (watch for the _truncated note) — narrow the range or paginate with cursor/limit. For the current rate use last_quote.
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": {
"pair": "<pair>",
"start": "<start>"
},
"name": "forex_bars"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Inclusive upper bound. Default: now. | |
| pair | Yes | 6-character FX pair, e.g. EURUSD. | |
| limit | No | Page size. | |
| start | Yes | Inclusive lower bound, YYYY-MM-DD or RFC3339 (UTC). Required. | |
| cursor | No | Opaque pagination cursor. | |
| interval | No | Bar interval. Default 1m. |