Market data
useMarketTradeStream
Hook to stream recent trade executions for a given symbol via WebSocket.
Subscribe to trades via Websockets for a given symbol.
The returned data is an array of objects containing the following fields:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Hook to stream recent trade executions for a given symbol via WebSocket.
const { data, isLoading } = useMarketTradeStream(symbol);
{
"price": 95731.5,
"side": "SELL",
"size": 0.1,
"ts": 1732805310368
}