面向 C 端应用默认并强烈推荐使用 mode=auto(也可省略 mode),工具会根据请求日期、北京时间交易时段和上游可用性自动选择实时或收盘数据;不要让终端用户自行判断 rank 与 rank_realtime。支持申万二级行业、同花顺概念和同花顺地域三类板块,可按成交额、成交量、总市值、当日/5日/20日涨跌幅、主力净流入或换手率排序。显式 mode=rank 和 mode=rank_realtime 仅用于调试或固定数据源;mode=constituents 查询板块成分股实时行情;mode=history 查询单只股票 OHLCV,日线在 A 股交易日北京时间 18:30 后自动尝试包含当天,结算前或休市日自动回退最近已结算交易日,并在 metadata 返回实际日期和回退原因。
- 服务商
- cn financial pro 数据 (cn financial pro Data)
- 输入摘要
- {"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."}
- 输出摘要
- 暂无公开信息
- 计费规则
- 1
- 数据更新时间
- 暂无公开信息
- 验证状态
- 暂无公开信息