公共行情SQL查询
market_data_queryRetrieve historical daily K-line data for Chinese stocks and indices from a local SQL database. Query by six-digit stock code or index prefix, with adjustable number of recent records.
Instructions
从公共 SQL market_data.db 只读查询个股/指数日 K(前复权)。symbol 为6位代码查个股;加前缀如 sh000001 查指数。limit 控制返回最近条数。这是上层任务获取行情的标准只读入口,不发起网络请求。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db | No | market_data.db 路径 | /app/data/market_data.db |
| kind | No | auto/stock/index | auto |
| limit | No | 返回最近 N 条 | |
| symbol | Yes | 个股6位代码,或指数代码如 sh000001 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |