{
"auth": {
"apiKey": "your-api-key-uuid",
"secret": "your-api-secret",
"passphrase": "your-passphrase"
},
"type": "user"
}{
"operation": "subscribe",
"markets": [
"0x5f65177b394277fd294cd75650044e32ba009a95022d88a0c1d565897d72f8f1"
]
}{}{}{
"event_type": "order",
"id": "0xff354cd7ca7539dfa9c28d90943ab5779a4eac34b9b37a757d7b32bdfb11790b",
"owner": "9180014b-33c8-9240-a14b-bdca11c0a465",
"market": "0xbd31dc8a20211944f6b70f31557f1001557b59905b7738480ca09bd4532f84af",
"asset_id": "52114319501245915516055106046884209969926127482827954674443846427813813222426",
"side": "SELL",
"order_owner": "9180014b-33c8-9240-a14b-bdca11c0a465",
"original_size": "10",
"size_matched": "0",
"price": "0.57",
"associate_trades": null,
"outcome": "YES",
"type": "PLACEMENT",
"created_at": "1672290687",
"expiration": "1234567",
"order_type": "GTD",
"status": "LIVE",
"maker_address": "0x1234...",
"timestamp": "1672290687"
}{
"event_type": "trade",
"type": "TRADE",
"id": "28c4d2eb-bbea-40e7-a9f0-b2fdb56b2c2e",
"taker_order_id": "0x06bc63e346ed4ceddce9efd6b3af37c8f8f440c92fe7da6b2d0f9e4ccbc50c42",
"market": "0xbd31dc8a20211944f6b70f31557f1001557b59905b7738480ca09bd4532f84af",
"asset_id": "52114319501245915516055106046884209969926127482827954674443846427813813222426",
"side": "BUY",
"size": "10",
"price": "0.57",
"fee_rate_bps": "0",
"status": "MATCHED",
"matchtime": "1672290701",
"last_update": "1672290701",
"outcome": "YES",
"owner": "9180014b-33c8-9240-a14b-bdca11c0a465",
"trade_owner": "9180014b-33c8-9240-a14b-bdca11c0a465",
"maker_address": "0x1234...",
"transaction_hash": "",
"bucket_index": 0,
"maker_orders": [
{
"order_id": "0xff354cd7ca7539dfa9c28d90943ab5779a4eac34b9b37a757d7b32bdfb11790b",
"owner": "9180014b-33c8-9240-a14b-bdca11c0a465",
"maker_address": "0x5678...",
"matched_amount": "10",
"price": "0.57",
"fee_rate_bps": "0",
"asset_id": "52114319501245915516055106046884209969926127482827954674443846427813813222426",
"outcome": "YES",
"side": "SELL"
}
],
"trader_side": "TAKER",
"timestamp": "1672290701"
}Authenticated WebSocket for real-time order and trade updates.
{
"auth": {
"apiKey": "your-api-key-uuid",
"secret": "your-api-secret",
"passphrase": "your-passphrase"
},
"type": "user"
}{
"operation": "subscribe",
"markets": [
"0x5f65177b394277fd294cd75650044e32ba009a95022d88a0c1d565897d72f8f1"
]
}{}{}{
"event_type": "order",
"id": "0xff354cd7ca7539dfa9c28d90943ab5779a4eac34b9b37a757d7b32bdfb11790b",
"owner": "9180014b-33c8-9240-a14b-bdca11c0a465",
"market": "0xbd31dc8a20211944f6b70f31557f1001557b59905b7738480ca09bd4532f84af",
"asset_id": "52114319501245915516055106046884209969926127482827954674443846427813813222426",
"side": "SELL",
"order_owner": "9180014b-33c8-9240-a14b-bdca11c0a465",
"original_size": "10",
"size_matched": "0",
"price": "0.57",
"associate_trades": null,
"outcome": "YES",
"type": "PLACEMENT",
"created_at": "1672290687",
"expiration": "1234567",
"order_type": "GTD",
"status": "LIVE",
"maker_address": "0x1234...",
"timestamp": "1672290687"
}{
"event_type": "trade",
"type": "TRADE",
"id": "28c4d2eb-bbea-40e7-a9f0-b2fdb56b2c2e",
"taker_order_id": "0x06bc63e346ed4ceddce9efd6b3af37c8f8f440c92fe7da6b2d0f9e4ccbc50c42",
"market": "0xbd31dc8a20211944f6b70f31557f1001557b59905b7738480ca09bd4532f84af",
"asset_id": "52114319501245915516055106046884209969926127482827954674443846427813813222426",
"side": "BUY",
"size": "10",
"price": "0.57",
"fee_rate_bps": "0",
"status": "MATCHED",
"matchtime": "1672290701",
"last_update": "1672290701",
"outcome": "YES",
"owner": "9180014b-33c8-9240-a14b-bdca11c0a465",
"trade_owner": "9180014b-33c8-9240-a14b-bdca11c0a465",
"maker_address": "0x1234...",
"transaction_hash": "",
"bucket_index": 0,
"maker_orders": [
{
"order_id": "0xff354cd7ca7539dfa9c28d90943ab5779a4eac34b9b37a757d7b32bdfb11790b",
"owner": "9180014b-33c8-9240-a14b-bdca11c0a465",
"maker_address": "0x5678...",
"matched_amount": "10",
"price": "0.57",
"fee_rate_bps": "0",
"asset_id": "52114319501245915516055106046884209969926127482827954674443846427813813222426",
"outcome": "YES",
"side": "SELL"
}
],
"trader_side": "TAKER",
"timestamp": "1672290701"
}Authenticated subscription message sent after connecting
Subscribe or unsubscribe from markets without reconnecting
Client heartbeat — send every 10 seconds
Server heartbeat response
Order placement, update, or cancellation
Trade match, confirmation, or status change
Was this page helpful?