Messages
{
"type": "join",
"room": "pm:polymarket:market_lifecycle"
}{
"type": "leave",
"room": "pm:polymarket:market_lifecycle"
}{
"type": "message",
"room": "pm:polymarket:market_lifecycle",
"data": {
"type": "trade",
"channel": "trades",
"exchange": "polymarket",
"marketId": "1234567890",
"timestamp": 1785347120123
}
}Websockets
Exchange lifecycle
Lifecycle channel scoped to one exchange (typically kalshi).
WSS
/
Messages
{
"type": "join",
"room": "pm:polymarket:market_lifecycle"
}{
"type": "leave",
"room": "pm:polymarket:market_lifecycle"
}{
"type": "message",
"room": "pm:polymarket:market_lifecycle",
"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}
joinExchangeLifecycle
type:object
Subscribe to lifecycle events for one exchange
leaveExchangeLifecycle
type:object
Unsubscribe from Exchange Lifecycle
exchangeLifecycleMessage
type:object
Exchange Lifecycle update
Was this page helpful?
⌘I