Websockets
WebSockets
WS /ws-prices
Subscription Message
{
"action": "subscribe",
"markets": ["BTC", "ETH", "SOL"]
}Initial Snapshot Message
{
"type": "initial_data_snapshot",
"data": {
"BTC": {
"perpetualPrice": 45000.50,
"indexPrice": 45010.25,
"currentDate": "2024-01-15T10:30:00.000Z",
"price24hAgo": 44500.00,
"date24hAgo": "2024-01-14T10:30:00.000Z",
"marketStatus": "Open"
},
"ETH": {
"perpetualPrice": 2500.75,
"indexPrice": 2502.50,
"currentDate": "2024-01-15T10:30:00.000Z",
"price24hAgo": 2450.00,
"date24hAgo": "2024-01-14T10:30:00.000Z",
"marketStatus": "Open"
}
// ... all other markets
}
}Real-time Update Message
WS /ws
Subscription Message
Response Message
Last updated