get_historical_data
Retrieve historical price data for financial instruments by specifying date ranges and intervals to analyze market trends.
Instructions
Get historical price data for an instrument
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": {
"instrument_token": "<instrument_token>",
"from_date": "<from_date>",
"to_date": "<to_date>",
"interval": "<interval>"
},
"name": "get_historical_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instrument_token | Yes | Instrument token (can be obtained from search_instruments tool) | |
| from_date | Yes | From date in YYYY-MM-DD HH:MM:SS format | |
| to_date | Yes | To date in YYYY-MM-DD HH:MM:SS format | |
| interval | Yes | Candle interval | |
| continuous | No | Get continuous data (for futures and options) | |
| oi | No | Include open interest data |