Messages
{
"type": "join",
"room": "pm:market:polymarket:1234567890"
}{
"type": "leave",
"room": "pm:market:polymarket:1234567890"
}{
"type": "message",
"room": "pm:market:polymarket:1234567890",
"data": {
"type": "trade",
"channel": "trades",
"exchange": "polymarket",
"marketId": "1234567890",
"timestamp": 1785347120123
}
}Websockets
Market feed
Non-state updates for one market (trades/lifecycle). Does not receive prices/quotes/orderbook/volume — join the : rooms for those.
WSS
/
Messages
{
"type": "join",
"room": "pm:market:polymarket:1234567890"
}{
"type": "leave",
"room": "pm:market:polymarket:1234567890"
}{
"type": "message",
"room": "pm:market:polymarket:1234567890",
"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}
joinMarketFeed
type:object
Subscribe to all events for one market
leaveMarketFeed
type:object
Unsubscribe from Market Feed
marketFeedMessage
type:object
Market Feed update
Was this page helpful?
⌘I