A high-performance skill for streaming real-time OKX exchange market data via WebSocket into structured NDJSON files.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install okx-exchange-websocket-skill
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install okx-exchange-websocket-skill using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The OKX Exchange WebSocket Skill provides a streamlined way to consume public market data from the OKX exchange. By utilizing the uxc utility, this skill allows developers to establish raw WebSocket connections to OKX public endpoints to receive live updates on tickers, trades, and order book events. It is a vital component of the Openclaw Skills ecosystem for users who need low-latency access to cryptocurrency market movements.
This skill is specifically designed for public exchange channels and handles the complexities of connection management and event-envelope parsing. By outputting data in NDJSON format, it ensures that market events are easily digestible by downstream analytics tools or databases without requiring custom client implementations.
Ensure that uxc is installed and accessible in your system PATH. You can start a subscription by providing the public endpoint and an initialization frame.
uxc subscribe start wss://ws.okx.com:8443/ws/v5/public \
--transport websocket \
--init-frame '{"op":"subscribe","args":[{"channel":"tickers","instId":"BTC-USDT"}]}' \
--sink file:$HOME/.uxc/subscriptions/okx-btcusdt-ticker.ndjson
The skill produces NDJSON files where each line represents a discrete market event. The schema includes standard OKX fields wrapped in a uxc event envelope.
| Field | Type | Description |
|---|---|---|
| arg.channel | String | The OKX channel (e.g., tickers, trades, books5) |
| arg.instId | String | The instrument identifier (e.g., BTC-USDT) |
| data[0].last | String | The last traded price (for ticker events) |
| data[0].ts | String | The Unix timestamp of the event |
| event_kind | String | The uxc internal event classification (e.g., data) |
Loading
A Python-based automation framework for intelligent support ticket routing, spare parts management, and customer satisfaction tracking.

A powerful AI-driven CLI tool to automatically adapt a single article into optimized formats for multiple social media platforms.

A high-performance CLI skill for AI agents to fetch and paginate read-only Twitter/X data via the twitterapi.io service.

A specialized utility designed to perform instant base64 encoding and decoding within your AI-driven workflow.

FORGE is a non-custodial cross-chain swap agent that routes quotes and builds transactions for 44+ crypto assets using the THORChain protocol.

A high-precision optical character recognition skill for AI agents that extracts text, formulas, and table data from images using the Baidu AI platform.








































