fxa_candles
Retrieve OHLC candle history for any instrument across timeframes from M1 to W1, with aggregation on true clock boundaries. Returns recent bars when range exceeds limit.
Instructions
Fetch OHLC candles for an instrument over a date range, at any timeframe from M1 to W1. Higher timeframes are aggregated from M1 on true clock boundaries. Returns the most recent bars when the range exceeds the limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ISO date YYYY-MM-DD (exclusive) | |
| from | No | ISO date YYYY-MM-DD (inclusive) | |
| limit | No | Max bars to return, capped at 1000. Default 200. | |
| timeframe | No | M1, M5, M15, M30, H1, H4, D1, W1. Default M5. | |
| instrument | Yes | e.g. EURUSD, XAUUSD, SPX500, BTCUSD |