Skip to main content
WSS
/
ws
Messages
Trades Query
type:object

Get recent trades for a market

Subscribe to Trades
type:object

Subscribe to real-time trade updates

Unsubscribe from Trades
type:object

Stop receiving trade updates

Trades Response
type:object

Array of recent trades

Subscribe Response
type:object

Subscription confirmation

Trades Update
type:object

Real-time trade updates

Subscription Behavior

For each WebSocket connection, you can subscribe to either specific markets or all markets. Every new subscription replaces the existing one.

Subscribe to Specific Markets

To receive trade updates for specific markets, provide market names in the params array:
{
    "id": 9,
    "method": "trades_subscribe",
    "params": [
        "ETH_BTC",
        "BTC_USDT"
    ]
}

Subscribe to All Markets

To receive trade updates for all available markets, send an empty params array:
{
    "id": 9,
    "method": "trades_subscribe",
    "params": []
}

RPI Field

Trade updates may include an rpi field:
  • rpi: true - The trade involved a Retail Price Improvement (RPI) order
  • rpi: false or absent - Regular trade
RPI orders provide better execution prices than the current best bid/ask for retail traders.