Preserve the timestamp and HTTP status of failed book observations
This commit is contained in:
@@ -76,3 +76,5 @@ sequenceDiagram
|
||||
```
|
||||
|
||||
两侧各有至少两个严格有序的不同价位、最优价均在末尾且哈希一致时,`supports_local_snapshot` 才为 true。空盘与单档记为 `insufficient_levels`。重复价格或非单调价格记为 `non_monotonic_or_repeated`。固定版 SDK 的哈希测试向量恰好买侧最优在末尾、卖侧最优在开头;重放它能核对序列化与分类,但无法判定生产端排序。仓库样例把测试期望的哈希填入原向量的空 hash 字段。[样例](fixtures/sdk-book.json) · [官方 SDK 哈希测试](https://github.com/Polymarket/py-clob-client-v2/blob/9c7c9e89cbbc11528daae90dc66ef65c9380cbdf/tests/test_utilities.py) · [官方序列化顺序](https://github.com/Polymarket/py-clob-client-v2/blob/9c7c9e89cbbc11528daae90dc66ef65c9380cbdf/py_clob_client_v2/utilities.py)
|
||||
|
||||
单资产取样会记录请求资产及本机完成观测的时间 `observed_at_ms`(Unix 毫秒)。连接在响应前失败时,`http_status` 为 null;收到响应但 JSON 解码失败时保留 HTTP 状态。两类失败均写出一行带 `audit_error` 的 JSON 并以非零状态退出。重放已保存的观测要求 HTTP 状态为 2xx。成功取样中的盘口时间戳仍来自场所。
|
||||
|
||||
Reference in New Issue
Block a user