get_ohlc
Fetch OHLC (open, high, low, close) and last price for specified instruments. Automatically falls back to holdings or positions data when the market data API is unavailable.
Instructions
Get OHLC (open, high, low, close) and last price for instruments. Falls back to holdings/positions data if the market data API is not available.
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": {
"instruments": "<instruments>"
},
"name": "get_ohlc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instruments | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |