A WebSocket trade update message.

Received when new trades occur on a subscribed market.

interface TradeUpdate {
    action: string;
    market_id: MarketId;
    onchain_timestamp?: string;
    seen_timestamp?: string;
    trades: Trade[];
}

Properties

action: string

The subscription action type.

market_id: MarketId

The market identifier.

onchain_timestamp?: string

On-chain timestamp.

seen_timestamp?: string

Server-observed timestamp.

trades: Trade[]

New trades.