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
+22
View File
@@ -158,3 +158,25 @@ sequenceDiagram
E-->>H: 精确十进制数或查无市场
H-->>C: minimum_tick_size 或 404 错误
```
### 从结果资产查交易规格
```mermaid
flowchart LR
H["market_http.rs"] -->|解码单个路径参数| E["exchange/clob_market.rs"]
```
```mermaid
sequenceDiagram
participant C as 行情客户端
participant H as market_http
participant E as Exchange
C->>H: GET /markets-by-token/{token_id}
H->>E: market_by_token
E-->>C: condition_id、YES 和 NO 资产
C->>H: GET /clob-markets/{condition_id}
H->>E: clob_market_info
E-->>C: 两个结果的标签、报价步长、最小量和费用参数
```
路径参数使用百分号编码。即使查询从 NO 开始,primary_token_id 仍对应 YES。可重放请求见[行情 HTTP 示例](../../docs/examples/clob-http.http)。