Query Beta coefficient and historical volatility for stocks via the market data service. Beta measures a stock's sensitivity to a benchmark index (e.g. CSI 300). Volatility measures the dispersion of returns over a given period. Supports custom date range, frequency (daily/weekly/monthly), return type (simple/log), and benchmark index. Covers A-share stocks on SSE, SZSE, and BSE.
- Provider
- cn financial pro 数据 (cn financial pro Data)
- Input summary
- {"name":"codes","type":"string","required":true,"description":"Stock codes (iFinD format), comma-separated (max 50). Examples: '600519.SH', '000001.SZ,300189.SZ'"}, {"name":"sdate","type":"string","required":false,"description":"Start date of calculation window. Formats: 'YYYYMMDD' or 'YYYY-MM-DD'. Defaults to 1 year ago."}, {"name":"edate","type":"string","required":false,"description":"End date of calculation window. Formats: 'YYYYMMDD' or 'YYYY-MM-DD'. Defaults to today."}, {"name":"freq","type":"string","required":false,"description":"Return frequency: 'daily' (日), 'weekly' (周), 'monthly' (月). Defaults to 'weekly'."}, {"name":"return_type","type":"string","required":false,"description":"Return calculation method: 'simple' (普通收益率), 'log' (对数收益率). Defaults to 'simple'."}, {"name":"benchmark","type":"string","required":false,"description":"Benchmark index code for Beta calculation. Defaults to '000300.SH' (沪深300). Examples: '000001.SH' (上证指数), '399006.SZ' (创业板指)"}
- Output summary
- Not available
- Billing
- 1 credits/result
- Freshness
- Not available
- Verification
- Not available