Expose negative-risk membership and convert fractional outcome balances

This commit is contained in:
2026-12-03 12:56:07 +08:00
parent f7946d2277
commit 351de6187e
13 changed files with 233 additions and 45 deletions
+3
View File
@@ -87,3 +87,6 @@ GET http://127.0.0.1:9002/fee-rate/eb%3ANO%3Acup
### The same market reports tbf 30 and an execution fee coefficient fd.r of 0.05.
GET http://127.0.0.1:9002/clob-markets/cup
### Load neg-risk.jsonl to query either token of a member of the election group.
GET http://127.0.0.1:9002/neg-risk?token_id=eb%3ANO%3Aa
+5
View File
@@ -0,0 +1,5 @@
{"op":"split","id":"fraction-a","market":"a","account":"user","qty_micros":260000}
{"op":"split","id":"fraction-b","market":"b","account":"user","qty_micros":260000}
{"op":"convert","id":"fraction-convert","group":"winner","account":"user","no_markets":["a","b"],"qty_micros":250001}
{"op":"convert","id":"fraction-carry","group":"winner","account":"user","no_markets":["a","b"],"qty_micros":9999}
{"op":"activity","account":"user","types":["CONVERSION"],"direction":"ASC"}