query_index
Fetches Chinese stock index quotes and writes them to a CSV file. Supports daily and minute periods for Shanghai, Shenzhen, and CSI indices.
Instructions
Query China indices. Output is written to file_path as CSV. 000xxx/399xxx 走新浪(日线自2014起); 930xxx/950xxx 中证系列走官网(慢约10秒). period=min 仅沪深指数(腾讯源约8交易日). 分钟超覆盖时明确报错并给补数指引.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| freq | No | Minute granularity (period=min) | 1 |
| period | No | K-line period | daily |
| symbol | Yes | Index code e.g. 000852, sh000300, 930050 | |
| end_date | No | End date YYYY-MM-DD | |
| file_path | Yes | Output CSV file path | |
| start_date | No | Start date YYYY-MM-DD |