Rank A-share sector boards by configurable metrics. For consumer applications, use mode=auto (the default) or omit mode: the tool automatically selects realtime vs end-of-day data from the requested date, Beijing market clock, and upstream availability. Do not make end users choose between rank and rank_realtime. Supports three board taxonomies: industry (Shenwan level-2), concept (iFinD), and region (iFinD). Explicit rank/rank_realtime modes are reserved for debugging or fixed-source workflows. Constituents mode returns live constituent quotes. History mode returns bounded single-stock OHLCV, automatically including today's daily bar after 18:30 Beijing time on an A-share trading day and falling back to completed data before settlement or on non-trading days.
- Provider
- cn financial pro 数据 (cn financial pro Data)
- Input summary
- {"name":"mode","type":"string","required":false,"description":"auto (default and recommended; automatically chooses the appropriate realtime or settled source), rank (force an end-of-day snapshot; requires date), rank_realtime (intraday ..., {"name":"sector_type","type":"string","required":false,"description":"Board taxonomy: 'industry' (申万二级行业指数), 'concept' (同花顺概念指数), 'region' (同花顺地域指数). Required for auto, rank, rank_realtime, and constituents modes."}, {"name":"date","type":"string","required":false,"description":"Optional target date for auto mode; omit it for the latest market view. Required only when forcing rank mode. Formats: YYYY-MM-DD, YYYYMMDD, YYYY/MM/DD. Auto resolves non-tra..., {"name":"sort_field","type":"string","required":false,"description":"Sort metric: amount (成交额), volume (成交量), market_cap (总市值), change_pct (当日涨跌幅), change_pct_5d (5日涨跌幅), change_pct_20d (20日涨跌幅), net_inflow (主力净流入), turnover_rate (换手率). ..., {"name":"limit","type":"integer","required":false,"description":"Result limit. rank mode: default 24, max 100; constituents mode: page size default 20, max 50."}, {"name":"sector_code","type":"string","required":false,"description":"Board code for constituents mode; sector_code or exact sector_name is required."}, {"name":"sector_name","type":"string","required":false,"description":"Exact board name for constituents mode; sector_name or sector_code is required."}, {"name":"offset","type":"integer","required":false,"description":"Constituent pagination offset, default 0."}
- Output summary
- Not available
- Billing
- 1
- Freshness
- Not available
- Verification
- Not available