query_etf
Query China onshore-listed ETF daily or minute K-line data and save to CSV. Daily data from 2012; minute data covers about 8 trading days via Tencent, with error guidance for longer ranges.
Instructions
Query China onshore-listed ETF. Output is written to file_path as CSV. daily 自约2012年起(新浪,无复权返回原始价); min 腾讯源约8交易日. 分钟超覆盖时明确报错并给补数指引.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| freq | No | Minute granularity (period=min) | 1 |
| period | No | K-line period | daily |
| symbol | Yes | ETF code e.g. 510300 or sh510300 | |
| end_date | No | End date YYYY-MM-DD | |
| file_path | Yes | Output CSV file path | |
| start_date | No | Start date YYYY-MM-DD |