get_historical_data
Retrieve historical price bars for any contract type and symbol. Specify duration, bar size, and data type to analyze past market movements.
Instructions
Get historical bar data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contract_type | Yes | ||
| symbol | Yes | ||
| exchange | No | SMART | |
| currency | No | USD | |
| duration | No | Duration (e.g., '1 D', '1 W', '1 M', '1 Y') | 1 D |
| bar_size | No | Bar size (e.g., '1 min', '5 mins', '1 hour', '1 day') | 1 hour |
| what_to_show | No | Data type: TRADES, MIDPOINT, BID, ASK | TRADES |
| use_rth | No | Regular trading hours only |