query_options
Query China options data (SSE ETF and CFFEX index) for expiry months, contract lists, or daily history, saving to CSV. Use months/contracts to locate contract codes before fetching historical data.
Instructions
Query China options (SSE ETF options + CFFEX index options IO/HO/MO). Output is written to file_path as CSV. kind=months: 标的到期月份. kind=contracts: 当月合约清单. kind=hist: 单合约日线. 本轮仅日线; 找合约代码先用 months/contracts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Query type | |
| symbol | No | Option contract code e.g. 10003889 or IO2706-P-5600 (hist) | |
| end_date | No | End date YYYY-MM-DD (hist) | |
| file_path | Yes | Output CSV file path | |
| start_date | No | Start date YYYY-MM-DD (hist) | |
| trade_date | No | Trade date YYYY-MM-DD (contracts/CFFEX, default today) | |
| underlying | No | Underlying: 50ETF/300ETF/500ETF/科创50ETF/IO/HO/MO (months/contracts) |