Connect
- Partner key
- x402 session
Open the socket with the partner headers. There is no time limit.
Subscribe
After the socket opens, send a subscribe message. You can send more later to add assets, orunsubscribe to remove them.
assetstakes underlying tokens (every market for that token is watched) or single markets and vaults.eventsis optional. Leave it out to receive all three.- The server answers
{"event": "subscribed", "assets": [...]}and runs a first check straight away.
Events
A socket with an invalid token or partner key is closed with code
1008 straight away.
The MCP tool
create_monitor_session only issues the token. It does not hold the socket for you. Your agent or service must open the websocket and keep it open.