Match public midpoint and spread across all four book shapes

This commit is contained in:
2026-12-03 16:02:32 +08:00
parent 6e1cfb4e22
commit 9cc3921e3c
8 changed files with 145 additions and 41 deletions
+2 -2
View File
@@ -192,8 +192,8 @@ sequenceDiagram
participant Q as exchange/quotes.rs
C->>H: 单查 /spread、/midpoint,批查 /spreads、/midpoints
H->>Q: 传入结果资产 ID
Q-->>H: 每个已上市资产的价差、中点或缺边状态
H-->>C: 单查用 spread 或 mid 字段,批查以资产 ID 为键
Q-->>H: 按买侧缺档取 0、卖侧缺档取 1 计算中点或价差
H-->>C: 单查用 spread 或 mid 字段,POST 批查以资产 ID 为键
```
### 查询盘口买一和卖一