Messages
{
"type": "join",
"room": "pm:all"
}{
"type": "leave",
"room": "pm:all"
}{
"type": "message",
"room": "pm:all",
"data": {
"type": "trade",
"channel": "trades",
"exchange": "polymarket",
"marketId": "1234567890",
"timestamp": 1785347120123
}
}Websockets
All events
Every non-market-state realtime event (trades, crypto_price, lifecycle/resolution). Does not include high-frequency prices/quotes/orderbook/volume.
WSS
/
Messages
{
"type": "join",
"room": "pm:all"
}{
"type": "leave",
"room": "pm:all"
}{
"type": "message",
"room": "pm:all",
"data": {
"type": "trade",
"channel": "trades",
"exchange": "polymarket",
"marketId": "1234567890",
"timestamp": 1785347120123
}
}apiKey
type:httpApiKey
API key for authentication. Include your Datastream key in the connection URL: wss://datastream.solanatracker.io/{DATASTREAM_KEY}
joinAllEvents
type:object
Subscribe to all prediction-market events
leaveAllEvents
type:object
Unsubscribe from All Events
allEventsMessage
type:object
All Events update
Was this page helpful?