Skip to main content

Parameters

string
required
Trading pair UUID. Get this from sdk.market.getTradingPairBySymbol('ETH/USDC').
The trade feed maintains a fixed limit of 50 trades. This limit is not configurable and is enforced internally to optimize memory and performance.

Return Values

TradeEvent[]
Array of recent trades (newest first). Fixed at 50 trades maximum.
boolean
Whether currently subscribed to the trading pair. Will be false if SDK is not yet initialized.
boolean
Whether the initial trades are being fetched via REST API.
Error | null
WebSocket error if any

Example