Files
eventbook-exchange/docs/examples/holders.jsonl

14 lines
885 B
JSON

{"op":"list","id":"m","market":"cup","rules":"模拟杯赛的官方结果"}
{"op":"fund","id":"a","account":"alice","cents":2000}
{"op":"fund","id":"b","account":"bob","cents":2000}
{"op":"fund","id":"c","account":"carol","cents":1000}
{"op":"split","id":"sa","account":"alice","market":"cup","qty":10}
{"op":"split","id":"sb","account":"bob","market":"cup","qty":4}
{"op":"split","id":"sc","account":"carol","market":"cup","qty":2}
{"op":"open","id":"start","market":"cup"}
{"op":"order","id":"ask","account":"alice","market":"cup","outcome":"NO","side":"sell","price":40,"qty":3}
{"op":"order","id":"buy","account":"bob","market":"cup","outcome":"NO","side":"buy","price":40,"qty":3}
{"op":"order","id":"rest","account":"alice","market":"cup","outcome":"YES","side":"sell","price":80,"qty":8}
{"op":"holders","market":"cup","limit":1}
{"op":"holders","market":"cup","basis":"gross"}