okx_ws_subscribe
Subscribe to OKX WebSocket channels to receive real-time market data such as tickers, trades, and candlesticks for instruments across spot, futures, options, and swap markets.
Instructions
[L:READ] CAT:[行情-WS] | → 请先调用 agent_catalog
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instId | Yes | 产品ID,如 BTC-USDT、ETH-USDT-SWAP。纯全局频道(status/instruments/economic-calendar)可传空字符串 | |
| channel | Yes | 频道名。公开频道共 33 个,支持 tickers/trades/candle1m~1D/books5/books/funding-rate/open-interest/price-limit/instruments/mark-price/mark-price-candles/index-tickers/index-candles/option-summary/estimated-price/liquidation-orders/adl-warning/event-contract-markets/economic-calendar/status/sprd系列/public-block-trades系列/block-tickers | |
| instType | No | 部分频道需要产品类型 |