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.
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. |