get_historical_prices
Retrieve historical price data for an instrument using its contract code and session, choosing a period from one month to maximum.
Instructions
Get historical prices for an instrument.
Args: session: The session name (from list_sessions). contract_code: The instrument contract code, e.g. "EQU.ZA.SYGJP". period: One of "OneMonth", "ThreeMonths", "SixMonths", "OneYear", "Max".
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": {
"session": "<session>",
"contract_code": "<contract_code>"
},
"name": "get_historical_prices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | OneYear | |
| session | Yes | ||
| contract_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |