24hr Price Change Statistics
Description
24-hour ticker statistics are delivered as a subscription stream, not a request/response call. Connect to wss://api.prex.world/ws and subscribe to the ticker:{symbol} channel.
Upon subscribing, the server immediately pushes a snapshot, then pushes an update every 2 seconds.
Subscribe
{
"type": "subscribe",
"channel": "ticker:BTCUSDT"
}
Push Example
{
"type": "ticker",
"symbol": "BTCUSDT",
"last_price": "65432.10",
"mark_price": "65433.00",
"index_price": "65431.50",
"price_change_24h": "1200.50",
"price_change_percent_24h": "1.87",
"high_24h": "66000.00",
"low_24h": "64000.00",
"volume_24h": "12345.6789",
"volume_24h_usd": "807654321.00",
"open_interest_long": "5000.0000",
"open_interest_short": "4200.0000",
"open_interest_long_percent": "54",
"open_interest_short_percent": "46",
"available_liquidity_long": "1500000.00",
"available_liquidity_short": "1200000.00",
"funding_rate_long_1h": "+0.0050%",
"funding_rate_short_1h": "-0.0050%"
}
See WebSocket API General Info for connection details. For a REST snapshot, use GET /fapi/v1/ticker/24hr.