Messages
{
"type": "join",
"room": "pm:category:crypto"
}{
"type": "leave",
"room": "pm:category:crypto"
}{
"type": "message",
"room": "pm:category:crypto",
"data": {
"type": "trade",
"channel": "trades",
"exchange": "polymarket",
"marketId": "1234567890",
"timestamp": 1785347120123
}
}Websockets
Category feed
Trades (and other non-state events) when the payload includes category/categorySlug (enriched feeds).
WSS
/
Messages
{
"type": "join",
"room": "pm:category:crypto"
}{
"type": "leave",
"room": "pm:category:crypto"
}{
"type": "message",
"room": "pm:category:crypto",
"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}
joinCategoryFeed
type:object
Subscribe by market category
leaveCategoryFeed
type:object
Unsubscribe from Category Feed
categoryFeedMessage
type:object
Category Feed update
Was this page helpful?
⌘I