Match public CLOB side prices and batch responses to observed books
This commit is contained in:
@@ -1110,7 +1110,7 @@ sequenceDiagram
|
||||
E-->>C: 按结果资产索引,未上市资产无条目
|
||||
```
|
||||
|
||||
交易方向查询也读取 quote_events。execution_price 和 execution_prices 通过 quotes.rs 查询请求时的最优对手价。批量调用在一条 SQL 中读取所有请求的市场,YES 和 NO 分别换算后再按方向取价。
|
||||
HTTP 盘口查询由 public_book_prices 读取 quote_events,先清理到期任务,再在同一快照中读取各市场。BUY 取买一,SELL 取卖一。下单面板的 JSONL 命令继续查询最优对手价。
|
||||
|
||||
```mermaid
|
||||
sequenceDiagram
|
||||
@@ -1118,7 +1118,7 @@ sequenceDiagram
|
||||
participant E as Exchange
|
||||
participant Q as quotes.rs
|
||||
participant D as SQLite
|
||||
H->>E: execution_prices,传入资产和交易方向
|
||||
H->>E: public_book_prices,传入资产和盘口方向
|
||||
E->>Q: 读取批量报价
|
||||
Q->>D: 单条查询读取每个市场最近一次最优档
|
||||
D-->>Q: 返回买一与卖一
|
||||
|
||||
Reference in New Issue
Block a user