Query date information in the market data service based on forward or backward calculation from a base date. Supports offset by trading days or calendar days, can specify offset amount and time period (daily/weekly/monthly/quarterly/yearly), returns a single offset date or date sequence. Suitable for calculating dates N trading days before or after a given date.
- Provider
- cn financial pro 数据 (cn financial pro Data)
- Input summary
- {"name":"marketcode","type":"string","required":true,"description":"Exchange code, e.g., '212001' (SSE), '212100' (SZSE), '212200' (HKEX)"}, {"name":"startdate","type":"string","required":true,"description":"Base date, supported formats: 'YYYY-MM-DD', 'YYYY/MM/DD', 'YYYYMMDD'"}, {"name":"offset","type":"string","required":true,"description":"Offset amount, positive for forward, negative for backward, e.g., '-5' means 5 periods backward, '5' means 5 periods forward"}, {"name":"date_type","type":"string","required":false,"description":"Date type: '0' (trading days), '1' (calendar days), default is '0'"}, {"name":"period","type":"string","required":false,"description":"Time period: 'D' (daily), 'W' (weekly), 'M' (monthly), 'Q' (quarterly), 'S' (semi-annual), 'Y' (yearly), default is 'D'"}, {"name":"date_format","type":"string","required":false,"description":"Date format: '0' (YYYY-MM-DD), '1' (YYYY/MM/DD), '2' (YYYYMMDD), default is '0'"}, {"name":"output","type":"string","required":false,"description":"Output option: 'singledate' (single date), 'sequencedate' (date sequence), default is 'singledate'"}
- Output summary
- Not available
- Billing
- 2
- Freshness
- Not available
- Verification
- Not available