Skip to content

RTDS Channel (WebSocket)

RTDS (Real-Time Data Stream) emits price tick events for every subscribed asset as soon as they occur. Connect and send a subscription message with the asset IDs you want to track.

Server: wss://ws.openfish.fun/ws/rtds


Direction: Client -> Server

FieldTypeRequiredDescription
assetsarray of stringsYesAsset IDs (token IDs) to subscribe to
typestringYesMust be "rtds"
{
"assets": ["52114319501245915516055106046884209969926127482827954674443846427813813222426"],
"type": "rtds"
}
{
"operation": "subscribe",
"assets": ["71321045679252..."]
}

Send PING every 10 seconds. Server responds with PONG.


A price tick is emitted each time the price for a subscribed asset changes.

FieldTypeRequiredDescription
event_typestringYes"price_tick"
asset_idstringYesAsset ID
marketstringYesCondition ID
pricestringYesLatest price
mid_pricestringNoMid-market price
best_bidstringNoBest bid
best_askstringNoBest ask
timestampintegerYesUnix timestamp in milliseconds

Sample Message:

{
"event_type": "price_tick",
"asset_id": "52114319501245...",
"market": "0xbd31dc8a...",
"price": "0.55",
"mid_price": "0.545",
"best_bid": "0.54",
"best_ask": "0.55",
"timestamp": 1712678400000
}