Place order
Request{
"type": "place_order",
"data": {
"marketId": "0x...",
"outcome": "YES",
"side": "buy",
"orderType": "limit",
"price": "0.65",
"size": "1000"
}
}
{
"type": "order_confirmed",
"data": {
"orderId": "0x...",
"marketId": "0x...",
"side": "buy",
"price": "0.65",
"size": "1000",
"status": "open",
"timestamp": "2025-06-20T12:00:00Z"
}
}
Cancel order
Request{
"type": "cancel_order",
"data": {
"orderId": "0x..."
}
}
{
"type": "order_cancelled",
"data": {
"orderId": "0x...",
"status": "cancelled",
"timestamp": "2025-06-20T12:00:00Z"
}
}
Order status
Request{
"type": "order_status",
"data": {
"orderId": "0x..."
}
}
{
"type": "order_status_response",
"data": {
"orderId": "0x...",
"marketId": "0x...",
"side": "buy",
"price": "0.65",
"size": "1000",
"filled": "500",
"remaining": "500",
"status": "partially_filled",
"timestamp": "2025-06-20T12:00:00Z"
}
}
.png?fit=max&auto=format&n=b0g5i7u05IPoQEGH&q=85&s=2faa92ed2d11d8851f521f3453393516)