get_kline
Retrieve K-line data for Chinese stocks (A, B, H shares) and market indices by date range and frequency, returning a Markdown table.
Instructions
获取指定股票在指定日期范围内的K线数据,支持A股,B股,H股,大盘
Args: stock_code: 股票代码,要在数字后加上交易所代码,格式如300750.SZ start_date: 开始日期 (YYYY-MM-DD格式) end_date: 结束日期 (YYYY-MM-DD格式) frequency: K线周期,可选值: "d"(日), "w"(周), "m"(月), "5"(5分钟), "15"(15分钟), "30"(30分钟), "60"(60分钟)
Returns: K线数据的Markdown表格
Examples: - get_kline("300750.SZ", "2024-01-01", "2024-01-31") - get_kline("300750.SZ", "2024-10-01", "2024-10-31", "w")
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": {
"stock_code": "<stock_code>",
"start_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "get_kline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stock_code | Yes | ||
| start_date | Yes | ||
| end_date | Yes | ||
| frequency | No | d |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |