OKX DEX WebSocket Skill for Openclaw

A high-performance skill for managing real-time Decentralized Exchange (DEX) WebSocket sessions and data streams via CLI or custom scripts.

ok-james-01
v3.1.3
May 9, 2026
0
824
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install okx-dex-ws

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install okx-dex-ws using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is OKX DEX WebSocket Skill?

The OKX DEX WebSocket skill is a robust tool within the Openclaw Skills ecosystem designed for developers and AI agents requiring low-latency blockchain data. It provides a unified interface to access live DEX data across multiple chains, allowing users to subscribe to 9 distinct channels including price feeds, candlestick data, and smart money tracking. By bridging the gap between raw blockchain streams and actionable workflows, this skill empowers users to build sophisticated monitoring tools and automated trading systems.

OKX DEX WebSocket Skill Use Cases

  • Monitoring real-time token price fluctuations and candlestick data across multiple chains.
  • Tracking smart money and KOL wallet activities to identify emerging market trends.
  • Building automated trading bots that require real-time execution signals.
  • Setting up high-frequency alerts for new meme token launches and liquidity events.
  • Managing persistent background WebSocket sessions with custom idle-timeout configurations.

How OKX DEX WebSocket Skill Works

  1. Authentication is established with the OKX DEX WebSocket endpoint using HMAC-SHA256 signatures.
  2. Users select from specialized channels such as market prices, signals, or wallet trackers.
  3. A background session is initiated via the onchainos ws start command to begin capturing data.
  4. The system incrementally pulls new events using a polling mechanism to ensure data consistency.
  5. Sessions are managed through a lifecycle that includes heartbeat pings and configurable idle-timeouts to maintain stability.

OKX DEX WebSocket Skill Setup

To get started with this skill from the Openclaw Skills library, use the following CLI commands:

# List all 9 supported WebSocket channels
onchainos ws channels

# Get detailed information and examples for a specific channel
onchainos ws channel-info --channel price

# Start a background session for smart money tracking
onchainos ws start --channel kol_smartmoney-tracker-activity

# Poll for new events using the session ID
onchainos ws poll --id <SESSION_ID>

OKX DEX WebSocket Skill Data Schema & Taxonomy

The skill organizes data based on channel-specific parameters and session identifiers. Below are the primary data configurations:

Parameter Description Format Example
--token-pair Mapping of chain index to contract address 1:0xdac17f95...
--chain-index Comma-separated list of target blockchains 1,501,56
--wallet-addresses List of specific wallets for tracking 0xAAA,0xBBB
--idle-timeout Duration before a session automatically stops 30m, 1h, 0 (disabled)
--min-pnl Filter for tracker channels based on profit Numeric value

OKX DEX WebSocket Skill Advanced Features

  • Multi-chain support covering Ethereum, Solana, BSC, and more.
  • Advanced poll filters for tracker channels including minimum market cap and trade type (buy/sell).
  • Native integration with the Wallet Monitor (WebSocket) workflow for Openclaw Skills users.
  • Custom script support for Python, Node.js, and Rust via a documented protocol.
  • Automated session management with heartbeat (ping/pong) and persistent background execution.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*