Subscribe to live stream
ws_subscribeSubscribe to symbols on a market data channel via WebSocket. Incoming ticks are buffered for retrieval with ws_poll.
Instructions
Open (if needed) the live WebSocket and subscribe to symbols on a channel. Incoming ticks are buffered; read them with ws_poll. Returns current connection status.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"product": "<product>",
"symbols": "<symbols>"
},
"name": "ws_subscribe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product | Yes | Channel: cex (crypto), dex (DEX trades), fx (forex), us (US stocks), tvl (DEX pool TVL). | |
| symbols | Yes | Symbols to (un)subscribe, e.g. ['BTCUSD','ETHUSD']. |