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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contract_type": "<contract_type>",
"symbol": "<symbol>"
},
"name": "get_historical_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 |