Get OHLC candles
get_ohlcRetrieve recent OHLC candles for any symbol. Choose timeframe and bar count to get market data for analysis.
Instructions
Returns recent candles for a symbol. Long ranges are truncated to the most recent rows; the response states the total available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | No | How many of the most recent bars to use. | |
| symbol | Yes | Instrument symbol, for example XAUUSD. Case-insensitive. | |
| timeframe | No | Bar size. Defaults to 1d. |