Filter market clarifications by durable event directory IDs

This commit is contained in:
2026-12-03 11:28:10 +08:00
parent 3495e8de3c
commit 9cbcc03681
9 changed files with 149 additions and 18 deletions
+3 -3
View File
@@ -235,10 +235,10 @@ sequenceDiagram
participant C as 客户端
participant H as market_http
participant E as Exchange
C->>H: GET /market-clarifications?market_id=1
H->>E: 用目录 ID、limit、offset 和排序方向查询
C->>H: GET /market-clarifications?event_id=1&market_id=3
H->>E: 按事件和市场目录 ID 筛选,再排序和翻页
E-->>H: 规则说明、清盘标记和本地发布时间
H-->>C: 已发布的公告数组
```
market_id 使用 assets 查询中的数字目录 ID,可重复传入。默认按公告 ID 降序,每页 20 条;支持 order=id、ascending、offset 和 0 到 100 的 limit。当前查询对其他筛选参数返回 400。
event_id 取自本地 events 或 catalog 查询,market_id 取自 assets 查询。两个参数均可重复,同类 ID 取并集,同时指定事件与市场时取交集。独立市场的公告也能通过 market_id 查询。默认按公告 ID 降序,每页 20 条;支持 order=id、ascending、offset 和 0 到 100 的 limit。当前查询对其他筛选参数返回 400。