Market data
useMarketsStream
Hook to stream 24h ticker data for all markets via WebSocket.
Subscribe to all tickers via Websockets.
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 24h ticker data for all markets via WebSocket.
const { data } = useMarketsStream();
{
"24h_amount": 48108.464865,
"24h_close": 0.04286,
"24h_high": 0.044604,
"24h_low": 0.042574,
"24h_open": 0.042944,
"24h_volume": 1096083,
"24h_volumn": 1096083,
"change": 0.00195,
"est_funding_rate": 0.00012004,
"index_price": 0.042851,
"last_funding_rate": 0.0002316,
"mark_price": 0.042877,
"next_funding_time": 1732809600000,
"open_interest": 571430,
"sum_unitary_funding": 0.00118,
"symbol": "PERP_1000BONK_USDC"
}