Files
eventbook-exchange/docs/examples/order-status.jsonl
T

14 lines
875 B
JSON

{"op":"list","id":"market","market":"match","rules":"Official match winner"}
{"op":"fund","id":"fund-seller","account":"seller","cents":500}
{"op":"fund","id":"fund-buyer","account":"buyer","cents":120}
{"op":"split","id":"pairs","account":"seller","market":"match","qty":5}
{"op":"open","id":"start","market":"match"}
{"op":"order","id":"offer","market":"match","outcome":"YES","side":"sell","account":"seller","qty":5,"price":60,"post_only":true}
{"op":"open_orders","account":"seller","order":1}
{"op":"market_buy","id":"take","market":"match","outcome":"YES","account":"buyer","amount_cents":120,"max_price":60}
{"op":"open_orders","account":"seller","order":1}
{"op":"cancel","id":"cancel-offer","account":"seller","order":1}
{"op":"open_orders","account":"seller","order":1}
{"op":"open_orders","account":"buyer","order":2}
{"op":"trades","account":"seller","order":1}