Messages
{
"message": "emitPublicCompletedOrders",
"content": {
"clientRequestId": "4cc68b60-ed2d-42aa-a21e-cb5486f8fd1a",
"market": "ETH-USDT"
}
}{
"resultType": "publicCompletedOrders",
"market": "ETH-USDT",
"data": {
"clientRequestId": "4cc68b60-ed2d-42aa-a21e-cb5486f8fd1a",
"orders": [
{
"executionType": "taker",
"matchId": "d65966ab-109c-491f-bb55-a6ccd0453153",
"orderType": "buy",
"price": "3181.41",
"quantity": "0.01",
"updatedAt": 1767762904115
},
{
"executionType": "maker",
"matchId": "9eb783a6-7abc-4e94-9d9c-fd404e7580eb",
"orderType": "sell",
"price": "3181.42",
"quantity": "0.02",
"updatedAt": 1767762810250
}
],
"statusCode": 200
}
}{
"resultType": "publicCompletedOrdersDelta",
"market": "ETH-USDT",
"data": {
"orders": [
{
"executionType": "taker",
"matchId": "9eb783a6-7abc-4e94-9d9c-fd404e7580eb",
"orderType": "buy",
"price": "3181.41",
"quantity": "0.01",
"updatedAt": 1767762810250
},
{
"executionType": "maker",
"matchId": "d65966ab-109c-491f-bb55-a6ccd0453153",
"orderType": "sell",
"price": "3181.42",
"quantity": "0.02",
"updatedAt": 1767762904115
}
],
"statusCode": 200
}
}WS Reference
Public Trades Stream
Real-time trade updates and snapshots for a specific market.
WSS
?product=perpetuals&market=
{market}
&subscriptions=publicTrades
This stream is available on the
publicTrades subscription. It provides real-time trade updates for a specified market via publicCompletedOrdersDelta push messages, plus on-demand snapshots of recent trades via emitPublicCompletedOrders.
Snapshot vs. Delta
TheemitPublicCompletedOrders request returns a snapshot of recent trades via publicCompletedOrders. Use it for:
- Initial state hydration when first connecting to the stream
- Recovery after reconnects or connection interruptions
- Verifying historical execution completeness
- Getting recent trade history before processing real-time delta updates
- Reconciling local trade history with server state
Messages
{
"message": "emitPublicCompletedOrders",
"content": {
"clientRequestId": "4cc68b60-ed2d-42aa-a21e-cb5486f8fd1a",
"market": "ETH-USDT"
}
}{
"resultType": "publicCompletedOrders",
"market": "ETH-USDT",
"data": {
"clientRequestId": "4cc68b60-ed2d-42aa-a21e-cb5486f8fd1a",
"orders": [
{
"executionType": "taker",
"matchId": "d65966ab-109c-491f-bb55-a6ccd0453153",
"orderType": "buy",
"price": "3181.41",
"quantity": "0.01",
"updatedAt": 1767762904115
},
{
"executionType": "maker",
"matchId": "9eb783a6-7abc-4e94-9d9c-fd404e7580eb",
"orderType": "sell",
"price": "3181.42",
"quantity": "0.02",
"updatedAt": 1767762810250
}
],
"statusCode": 200
}
}{
"resultType": "publicCompletedOrdersDelta",
"market": "ETH-USDT",
"data": {
"orders": [
{
"executionType": "taker",
"matchId": "9eb783a6-7abc-4e94-9d9c-fd404e7580eb",
"orderType": "buy",
"price": "3181.41",
"quantity": "0.01",
"updatedAt": 1767762810250
},
{
"executionType": "maker",
"matchId": "d65966ab-109c-491f-bb55-a6ccd0453153",
"orderType": "sell",
"price": "3181.42",
"quantity": "0.02",
"updatedAt": 1767762904115
}
],
"statusCode": 200
}
}market
type:string
required
A specific market (e.g. BTC-USDT) or ALL. When ALL is used, market must be supplied explicitly in the content of every request that accepts it.
Sec-WebSocket-Protocol
type:httpApiKey
Supply as authorization#<JWT> during the WebSocket handshake.
Emit Public Completed Orders
type:object
Public Trades Snapshot
type:object
Response to emitPublicCompletedOrders.
Public Trades Delta
type:object