Skip to main content

get_ticker_statistic_detail

Function get_ticker_statistic_detail 

Source
pub async fn get_ticker_statistic_detail(
    __arg0: State<RestState>,
    __arg1: Json<Value>,
) -> Result<Json<Value>, (StatusCode, Json<Value>)>
Expand description

v1.4.106 codex 0500 ζ23-redo: 逐笔统计 Detail (cmd 6366).

POST /api/ticker-statistic-detail ({"c2s": {"symbol": "HK.00700", "ticker_time": <u64 from /api/ticker-statistic>, "select_num": 0, "data_from": 0, "data_max_count": 20, ...}}). daemon 内部 static_cache 解析 stock_id, 然后调 backend cmd 6366 拿 价位级 detail 列表 (DetailItem with price / volume / ratio).

前置: symbol 必须先 subscribe / get_static_info 触发 static_cache 填充. 配套 cmd 6365: 客户端先 call /api/ticker-statistic 拿 ticker_time, 再 call /api/ticker-statistic-detail 同 ticker_time 拿这个时点的价位 分布. 也可省略 ticker_time 用 backend 默认 (latest available).