Serve priced open interest for active unarchived market listings
This commit is contained in:
@@ -357,3 +357,24 @@ sequenceDiagram
|
||||
H-->>C: 503,Retry-After 提示重试
|
||||
end
|
||||
```
|
||||
|
||||
### 查询未平仓量
|
||||
|
||||
`GET /v2/oi` 返回单行 GLOBAL。指定 `GET /v2/oi?condition=cup` 可查 cup 的金额,空盘返回 0,归档市场从数组中省略。筛选支持逗号分隔及 condition_id、conditionId 两个别名。已有份额却无法估值时,本地返回可重试的 503。
|
||||
|
||||
```mermaid
|
||||
flowchart LR
|
||||
H["market_http.rs · GET /v2/oi"] --> E["exchange/open_interest.rs"]
|
||||
E --> D["exchange/open_interest.sql"]
|
||||
```
|
||||
|
||||
```mermaid
|
||||
sequenceDiagram
|
||||
participant C as 客户端
|
||||
participant H as market_http.rs
|
||||
participant E as Exchange
|
||||
C->>H: GET /v2/oi?condition=cup
|
||||
H->>E: 验证条件,按市场汇总
|
||||
E-->>H: condition_id 和 value
|
||||
H-->>C: 200,data 数组
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user