get_kline
Retrieve historical candlestick data for stocks with configurable periods and bar counts. Supports day, week, and month intervals up to 640 bars.
Instructions
Get historical K-line (candlestick) data for a stock. Day/week/month periods, up to 640 bars.
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": "get_kline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Stock code, e.g. "600519" or "sh600519" | |
| days | No | Number of bars (20-640, default 120) | |
| period | No | K-line period | day |