Match fractional share lots and preserve order quantities across restart

This commit is contained in:
2026-12-03 07:01:24 +08:00
parent 2c4179a64e
commit 064b301ebd
27 changed files with 343 additions and 111 deletions
+12
View File
@@ -0,0 +1,12 @@
{"op":"list","id":"match","market":"e","rules":"Official match result","tick_size":"0.01"}
{"op":"fund","id":"maker","account":"maker","cents":200}
{"op":"fund","id":"taker","account":"taker","cents":200}
{"op":"split","id":"pairs","account":"maker","market":"e","qty":2}
{"op":"order","id":"offer","market":"e","account":"maker","outcome":"YES","side":"sell","price":55,"size_micros":1239999}
{"op":"order","id":"bid","market":"e","account":"taker","outcome":"YES","side":"buy","price":55,"size_micros":500000}
{"op":"open","id":"kick","market":"e"}
{"op":"book","asset_id":"eb:YES:e"}
{"op":"order","id":"take","market":"e","account":"taker","outcome":"YES","side":"buy","price":56,"size_micros":290000,"tif":"FOK"}
{"op":"cancel","id":"withdraw","account":"maker","order":1}
{"op":"balance","account":"taker"}
{"op":"history","market":"e","outcome":"YES","from_ms":0,"to_ms":9000000000000,"limit":20}