Serve single and batch spreads from committed book quotes

This commit is contained in:
2026-12-03 09:48:26 +08:00
parent 7aa3280e5b
commit d26c801888
6 changed files with 141 additions and 2 deletions
+13
View File
@@ -180,3 +180,16 @@ sequenceDiagram
```
路径参数使用百分号编码。即使查询从 NO 开始,primary_token_id 仍对应 YES。可重放请求见[行情 HTTP 示例](../../docs/examples/clob-http.http)。
### 查询盘口价差
```mermaid
sequenceDiagram
participant C as 行情客户端
participant H as market_http.rs
participant Q as exchange/quotes.rs
C->>H: GET /spread 或 POST /spreads
H->>Q: 传入结果资产 ID
Q-->>H: 每个已上市资产的价差或缺边状态
H-->>C: 单个 spread 字段或按资产 ID 索引的对象
```