Resolve outcome tokens to CLOB markets and expose their execution parameters

This commit is contained in:
2026-12-03 09:40:34 +08:00
parent 81595a89ee
commit 7aa3280e5b
11 changed files with 230 additions and 2 deletions
+25
View File
@@ -1049,3 +1049,28 @@ sequenceDiagram
Q->>D: 按 YES 或 NO 重新查询同一市场
D-->>Q: 返回新步长
```
### CLOB 市场参数
```mermaid
flowchart LR
HTTP["cli/market_http.rs"] --> C["clob_market.rs"]
C --> A["assets.rs"]
C --> Q["clob_market.sql"]
C --> T["tick_size.rs"]
Q --> V["lifecycle_schema.sql 中的 market_wire_metadata"]
```
```mermaid
sequenceDiagram
participant C as 客户端
participant E as Exchange
participant D as SQLite
C->>E: 按任一结果资产查市场
E->>D: 确认市场已上架
E-->>C: 市场 ID 及固定顺序的 YES 和 NO
C->>E: 按市场 ID 查交易规格
E->>D: 一条查询联结标签、步长、最小量、费率、互斥组和赛程
D-->>E: 同一已提交快照中的字段
E-->>C: 两个结果的 ID 与标签、交易参数、开赛时间
```