Refresh recorded venue asset state with monotonic observations
This commit is contained in:
@@ -0,0 +1,110 @@
|
||||
{
|
||||
"prior_book": {
|
||||
"url": "https://clob.polymarket.com/book?token_id=64069535502365350520464017439278800338614209934309608490621606944970108681676",
|
||||
"date": "Thu, 03 Dec 2026 07:55:53 GMT",
|
||||
"status": 200,
|
||||
"body": {
|
||||
"market": "0xe5febd2f236a15ef7c1cc70a481e081bb64223d3e67aa3870677cccd72530853",
|
||||
"asset_id": "64069535502365350520464017439278800338614209934309608490621606944970108681676",
|
||||
"timestamp": "1796284481649",
|
||||
"hash": "575e315a02461b9280427591ba1fe7e48b3b70ce",
|
||||
"bids": [],
|
||||
"asks": [],
|
||||
"min_order_size": "5",
|
||||
"tick_size": "0.01",
|
||||
"neg_risk": false,
|
||||
"last_trade_price": ""
|
||||
},
|
||||
"observed_at_ms": 1796284553000
|
||||
},
|
||||
"directory": {
|
||||
"url": "https://data-api.polymarket.com/v2/tokens?condition=0xe5febd2f236a15ef7c1cc70a481e081bb64223d3e67aa3870677cccd72530853",
|
||||
"status": 200,
|
||||
"date": "Fri, 04 Dec 2026 21:11:06 GMT",
|
||||
"body": {
|
||||
"data": [
|
||||
{
|
||||
"token_id": "64069535502365350520464017439278800338614209934309608490621606944970108681676",
|
||||
"condition_id": "0xe5febd2f236a15ef7c1cc70a481e081bb64223d3e67aa3870677cccd72530853",
|
||||
"structural_condition_id": null,
|
||||
"module": "v1_ctf",
|
||||
"outcome_index": 0,
|
||||
"clob_index": 0,
|
||||
"outcome": "Over",
|
||||
"opposite_token_id": "24637903833591077899504141654082654473942967248855682279041797174393952421575",
|
||||
"resolved": true,
|
||||
"final_price": 0.0,
|
||||
"title": "Map 1 Total Rounds: Over/Under 27.5",
|
||||
"market_slug": "cs2-bb3-lgc-2026-12-03-game1-round-total-27pt5",
|
||||
"closed": true,
|
||||
"neg_risk": false,
|
||||
"neg_risk_market_id": null,
|
||||
"question_index": null,
|
||||
"event_id": 1495714,
|
||||
"event_slug": "cs2-bb3-lgc-2026-12-03"
|
||||
},
|
||||
{
|
||||
"token_id": "24637903833591077899504141654082654473942967248855682279041797174393952421575",
|
||||
"condition_id": "0xe5febd2f236a15ef7c1cc70a481e081bb64223d3e67aa3870677cccd72530853",
|
||||
"structural_condition_id": null,
|
||||
"module": "v1_ctf",
|
||||
"outcome_index": 1,
|
||||
"clob_index": 1,
|
||||
"outcome": "Under",
|
||||
"opposite_token_id": "64069535502365350520464017439278800338614209934309608490621606944970108681676",
|
||||
"resolved": true,
|
||||
"final_price": 1.0,
|
||||
"title": "Map 1 Total Rounds: Over/Under 27.5",
|
||||
"market_slug": "cs2-bb3-lgc-2026-12-03-game1-round-total-27pt5",
|
||||
"closed": true,
|
||||
"neg_risk": false,
|
||||
"neg_risk_market_id": null,
|
||||
"question_index": null,
|
||||
"event_id": 1495714,
|
||||
"event_slug": "cs2-bb3-lgc-2026-12-03"
|
||||
},
|
||||
{
|
||||
"token_id": "774335495545660990871175894688282765790269993344601020630233166497523433472",
|
||||
"condition_id": "0xe5febd2f236a15ef7c1cc70a481e081bb64223d3e67aa3870677cccd72530853",
|
||||
"structural_condition_id": "0x01b64223d3e67aa3870677cccd72530853000000000000000000000000000000",
|
||||
"module": "binary",
|
||||
"outcome_index": 0,
|
||||
"clob_index": null,
|
||||
"outcome": "Over",
|
||||
"opposite_token_id": "774335495545660990871175894688282765790269993344601020630233166497523433473",
|
||||
"resolved": true,
|
||||
"final_price": 0.0,
|
||||
"title": "Map 1 Total Rounds: Over/Under 27.5",
|
||||
"market_slug": "cs2-bb3-lgc-2026-12-03-game1-round-total-27pt5",
|
||||
"closed": true,
|
||||
"neg_risk": false,
|
||||
"neg_risk_market_id": null,
|
||||
"question_index": null,
|
||||
"event_id": 1495714,
|
||||
"event_slug": "cs2-bb3-lgc-2026-12-03"
|
||||
},
|
||||
{
|
||||
"token_id": "774335495545660990871175894688282765790269993344601020630233166497523433473",
|
||||
"condition_id": "0xe5febd2f236a15ef7c1cc70a481e081bb64223d3e67aa3870677cccd72530853",
|
||||
"structural_condition_id": "0x01b64223d3e67aa3870677cccd72530853000000000000000000000000000000",
|
||||
"module": "binary",
|
||||
"outcome_index": 1,
|
||||
"clob_index": null,
|
||||
"outcome": "Under",
|
||||
"opposite_token_id": "774335495545660990871175894688282765790269993344601020630233166497523433472",
|
||||
"resolved": true,
|
||||
"final_price": 1.0,
|
||||
"title": "Map 1 Total Rounds: Over/Under 27.5",
|
||||
"market_slug": "cs2-bb3-lgc-2026-12-03-game1-round-total-27pt5",
|
||||
"closed": true,
|
||||
"neg_risk": false,
|
||||
"neg_risk_market_id": null,
|
||||
"question_index": null,
|
||||
"event_id": 1495714,
|
||||
"event_slug": "cs2-bb3-lgc-2026-12-03"
|
||||
}
|
||||
]
|
||||
},
|
||||
"observed_at_ms": 1796418666000
|
||||
}
|
||||
}
|
||||
@@ -474,4 +474,7 @@ GET /v2/tokens 接受 token_id / token_ids 或 condition / condition_id / condit
|
||||
|
||||
### 本地登记 Polymarket 资产对照
|
||||
|
||||
可信 JSONL 命令 bind_polymarket_assets 接受本地市场、external_condition、zero_outcome 及官方 data 数组。每种协议必须提供互补一对。登记时核对 V2 编码、互斥组与题目归属,禁止冲突重绑。登记后用外场数字资产或条件查询 /v2/tokens 可得到原协议观察字段及 local_asset_id。互斥组查询仅返回已登记成员。保留的结果状态与兑付值来自登记时的外场快照,尚未自动刷新,也未接入真实下单路由。[生产登记样本](examples/polymarket-asset-binding.json)
|
||||
可信 JSONL 命令 bind_polymarket_assets 接受本地市场、external_condition、zero_outcome 及官方 data 数组。每种协议必须提供互补一对。登记时核对 V2 编码、互斥组与题目归属,禁止冲突重绑。登记后用外场数字资产或条件查询 /v2/tokens 可得到原协议观察字段及 local_asset_id。互斥组查询仅返回已登记成员。外场状态与兑付值由观测快照提供。[生产登记样本](examples/polymarket-asset-binding.json)
|
||||
|
||||
|
||||
对同一绑定重复提交带 observed_at_ms 的配对可刷新状态及结果标签。旧观测不会覆盖更新状态,同毫秒互相矛盾的快照和推翻最终兑付的请求会拒绝,整笔事务回滚。反查回执带观测时间。一个此前能公开读取盘口的电竞盘,后续 CTF 与 V2 目录均返回裁决输赢。回归使用它的真实裁决响应,并用同一资产生成开放快照来覆盖乱序。刷新由可信操作者提供观测,生产接口的传播时延和自动拉取仍待接入。[生产盘口及裁决快照](examples/polymarket-asset-refresh.json)
|
||||
|
||||
Reference in New Issue
Block a user