chart
Retrieves historical OHLCV time series for a single security, with daily or minute bars, date ranges, and bar limits for price analysis and visualization.
Instructions
Historical OHLCV chart series for a single security.
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": {
"code": "<code>"
},
"name": "chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date YYYY-MM-DD | |
| code | Yes | Canonical security code with exchange prefix, e.g. SSE:600519, SZSE:000001, BSE:899050 | |
| from | No | Start date YYYY-MM-DD | |
| limit | No | Max bars | |
| period | No | Bar interval (default daily) |