Subscribe to live stream
ws_subscribeSubscribe to symbols on a live WebSocket channel for market data including crypto, forex, stocks, DEX trades, and DEX TVL. Buffers incoming ticks for retrieval.
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.
Input Schema
TableJSON 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']. |