Get futures bars
get_futures_barsFetch OHLCV bars for futures trading windows, including relative volume zones, session info, and per-day summaries.
Instructions
OHLCV bars for a trading-day window, with Relative Volume (volume/SMA14), its zone, the session each bar belongs to, and per-day summaries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Trading days in the window | |
| symbol | No | Futures symbol, e.g. 'GC1!' (aliases: GC, GOLD) | GC1! |
| end_date | No | Last trading day of the window, YYYY-MM-DD. Omit for the current one. | |
| timeframe | No | Bar timeframe | H1 |
| include_bars | No | False returns only the per-day summaries |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | Yes | Omitted when include_bars=false | |
| days | Yes | ||
| n_bars | Yes | ||
| symbol | Yes | ||
| timeframe | Yes | ||
| window_utc | Yes | [start, end) in UTC | |
| target_date | Yes | ||
| timezone_note | Yes | ||
| window_complete | Yes | False while the window's last session is still open | |
| window_trading_days | Yes | ||
| window_max_volume_bar | Yes | ||
| relative_volume_indicator | Yes |