okx-dex-ws

Manage OKX DEX WebSocket sessions via CLI with HMAC-SHA256 authentication.

Updated May 10, 2026
One-click install
npx skills add https://github.com/Tsin418/crypto-research-agent --skill okx-dex-ws-tsin418
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: okx-dex-ws
Source: https://github.com/Tsin418/crypto-research-agent/tree/main/.agents/skills/okx-dex-ws
Command: npx skills add https://github.com/Tsin418/crypto-research-agent --skill okx-dex-ws-tsin418

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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.

Frequently Asked Questions about okx-dex-ws

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stream real-time OKX DEX data via WebSocket for custom trading bots?

To stream real-time OKX DEX data via WebSocket, start a CLI session, subscribe to channels like price or candles, and poll incremental updates by session id. You can also build custom clients using the documented ws-protocol specs for bot automation.

What OKX DEX WebSocket channels can I subscribe to for market and wallet monitoring?

Supported OKX DEX WebSocket channels include price, candles, trades, price-info, signals, smart-money tracker, address tracker, and meme/trenches launch and metrics streams for comprehensive wallet and market monitoring.

How do I manage idle-timeout and heartbeat handling for OKX DEX WebSocket sessions?

Manage OKX DEX WebSocket sessions using CLI lifecycle commands like start, poll, and stop. The system includes automatic idle-timeout management to auto-stop inactive streams, while the protocol handles HMAC-SHA256 authenticated login and heartbeat pings.

Do I need HMAC-SHA256 authentication to connect to the OKX DEX wsdex endpoint?

Yes, connecting to the OKX DEX wsdex endpoint requires HMAC-SHA256 authenticated login. The session protocol handles this authentication automatically alongside heartbeat management to ensure reliable real-time data streaming.

Can I use incremental polling to get real-time OKX DEX signals without maintaining a persistent connection?

Yes, you can use CLI session-based monitoring with incremental polling to fetch OKX DEX signals. Start a session to subscribe to channels, then poll events by session id periodically, letting the idle-timeout feature auto-stop the stream when inactive.