Market Data
useMarketsStream
Software Development Kits
[EVM] React Components SDK
- Overview
- Getting started
- Theming
- Wallet connect
- Framework Guides
- Page Components
- Block Components
[EVM] React Hooks SDK
[EVM] Core SDK
[EVM] Perp SDK
Market Data
useMarketsStream
Subscribe to all tickers via Websockets.
Example
const { data } = useMarketsStream();
The returned data is an array of objects containing the following fields:
{
"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"
}
On this page