Validate per-market minimum share size on order entry and previews

This commit is contained in:
2026-12-03 06:06:20 +08:00
parent 2306c6fd96
commit a7e31fa2ef
13 changed files with 222 additions and 4 deletions
+9
View File
@@ -0,0 +1,9 @@
{"op":"list","id":"list","market":"e","rules":"模拟赛事官方结果","min_order_size":"5"}
{"op":"fund","id":"a","account":"alice","cents":2000}
{"op":"fund","id":"b","account":"bob","cents":2000}
{"op":"split","id":"split","market":"e","account":"alice","qty":8}
{"op":"order","id":"ask","market":"e","outcome":"YES","side":"sell","price":52,"qty":8,"account":"alice"}
{"op":"open","id":"open","market":"e"}
{"op":"order","id":"first","market":"e","outcome":"YES","side":"buy","price":52,"qty":5,"account":"bob"}
{"op":"book","asset_id":"eb:YES:e"}
{"op":"market_buy","id":"second","market":"e","outcome":"YES","account":"bob","amount_cents":260,"max_price":52,"tif":"FAK"}