get_data
Fetches financial data from AKShare interfaces using a specified interface name and parameters, supporting row limits and offset pagination; returns row counts and a CSV download URL when run as an HTTP service.
Instructions
调用 AKShare 接口获取数据。一次最多返回 max_rows 行,用 offset 翻页或取最后若干行;返回总行数与本次的起始行,随 HTTP 服务运行时还给出完整数据的 CSV 下载地址
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": {
"name": "<name>"
},
"name": "get_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 接口名,如 stock_zh_a_hist_em | |
| offset | No | 从第几行开始返回(从 0 开始);负数表示从末尾倒数,如 -20 取最后 20 行 | |
| params | No | 接口参数,如 {"symbol": "000001", "start_date": "20240101"} | |
| max_rows | No | 最多返回的行数,默认 100 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |