Reconcile precise collateral funding, fee debits and available cash

This commit is contained in:
2026-12-03 06:30:11 +08:00
parent 2fcdac61d5
commit 14ccc97e09
14 changed files with 207 additions and 41 deletions
+12
View File
@@ -0,0 +1,12 @@
{"op":"fund","id":"seller","account":"seller","cents":100}
{"op":"fund","id":"buyer","account":"buyer","micros":512500}
{"op":"list","id":"market","market":"m","rules":"Official result","taker_fee_rate_ppm":50000}
{"op":"split","id":"split","market":"m","account":"seller","qty":1}
{"op":"open","id":"open","market":"m"}
{"op":"order","id":"rest","market":"m","outcome":"YES","account":"buyer","side":"buy","price":49,"qty":1}
{"op":"balance","account":"buyer"}
{"op":"cancel_all","id":"withdraw","account":"buyer"}
{"op":"order","id":"offer","market":"m","outcome":"YES","account":"seller","side":"sell","price":50,"qty":1}
{"op":"order","id":"trade","market":"m","outcome":"YES","account":"buyer","side":"buy","price":50,"qty":1,"tif":"FOK"}
{"op":"balance","account":"buyer"}
{"op":"activity","account":"buyer","include_deposits":true}