Expose the current committed tick size by outcome ID

This commit is contained in:
2026-12-03 09:32:49 +08:00
parent b523a8890f
commit 81595a89ee
10 changed files with 149 additions and 4 deletions
+23
View File
@@ -1026,3 +1026,26 @@ sequenceDiagram
L->>L: 对互补结果反转方向;缺少吃单记录时方向留空
L-->>H: 按输入顺序返回,保留重复项
```
### 已提交的报价步长
```mermaid
flowchart LR
H["cli/market_http.rs"] --> T["tick_size.rs"]
S["book_snapshot.rs"] -->|使用相同的旧盘默认步长| T
T --> I["inventory.rs 的定点数转换"]
T --> A["assets.rs 的结果标识解析"]
```
```mermaid
sequenceDiagram
participant W as 调价命令
participant D as SQLite
participant Q as 步长查询
W->>D: 在写事务内调整步长和受影响的挂单
Q->>D: 联结市场与配置读取步长
D-->>Q: 写事务提交前返回旧步长
W->>D: 提交
Q->>D: 按 YES 或 NO 重新查询同一市场
D-->>Q: 返回新步长
```