What problem does it solve?
It solves the problem of getting reliable, real-time OKX DEX market, token, signal, and wallet-tracking updates without manually wiring WebSocket sessions and handling polling/idle behavior.
Core Features & Use Cases
- Manage DEX WebSocket sessions via CLI: start, poll incrementally, list, and stop background WebSocket sessions with an idle-timeout that auto-stops.
- Subscribe to the full set of supported DEX channels: handle all major feeds including price, candles, trades, price-info, signals, smart-money tracker, address tracker, and meme/trenches launch/metrics streams.
- Build custom real-time scripts using the documented protocol: use the referenced
ws-protocol.md specs to implement your own WebSocket client for bots and custom logic.
Use case: When you want near-real-time alerts and monitoring for BTC/ETH-adjacent activity, you can subscribe to token price, candle periods, and signal channels, then poll events by session id to update your research workflow continuously.
Quick Start
Use the okx-dex-ws skill to start a WebSocket session for a desired DEX channel and begin polling events for new real-time updates.