OKX CEX Market Data for Openclaw

A read-only CLI tool for accessing real-time OKX exchange market data including prices, candles, and order books without API credentials.

numpy0001
v1.1.8
Mar 9, 2026
0
3k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install okx

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 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 CEX Market Data?

This skill provides a powerful interface for fetching public market data directly from the OKX exchange. As a core component of Openclaw Skills, it allows developers and traders to query real-time tickers, OHLCV candle data, and market depth across spot, swap, futures, and options markets. Since all operations are read-only, no API keys or sensitive credentials are required, making it an ideal choice for market research and data analysis within an AI-driven workflow.

By integrating this skill, users can seamlessly transition from market discovery to active trading strategies. Whether you are checking the latest BTC price or analyzing funding rate trends for perpetual swaps, this tool delivers structured, actionable data. It serves as the foundation for more complex financial workflows within the Openclaw Skills ecosystem.

OKX CEX Market Data Use Cases

  • Monitoring real-time price tickers for BTC-USDT and other crypto pairs.
  • Analyzing historical OHLCV candlestick data for trend identification and technical analysis.
  • Checking perpetual swap funding rates to manage holding costs and delta-neutral strategies.
  • Discovering active trading instruments and contract specifications across different asset classes.
  • Inspecting order book depth to assess market liquidity before execution.

How OKX CEX Market Data Works

  1. The user requests specific market data such as a price ticker, order book depth, or historical candles.
  2. The skill utilizes the okx CLI to send a public request to the OKX V5 API endpoints.
  3. No authentication is performed as the data is publicly accessible, ensuring fast and secure retrieval.
  4. The skill parses the exchange response and formats it into a human-readable table or structured JSON output.
  5. The resulting data is presented to the user or passed to another skill in a multi-agent workflow for further action.

OKX CEX Market Data Setup

First, ensure you have Node.js installed. Then, install the required CLI tool globally to enable the skill functionality:

npm install -g @okx_ai/okx-trade-cli

Verify the installation by running a simple market query to fetch the current BTC price:

okx market ticker BTC-USDT

No further configuration, environment variables, or API keys are necessary to use this Openclaw Skills integration for public market data.

OKX CEX Market Data Data Schema & Taxonomy

The skill organizes data based on instrument types and market metrics. Results are typically returned in tables or structured JSON for programmatic use.

Category Description Key Fields
Tickers Snapshot of current market state last, high24h, low24h, vol24h, 24h change %
Candles Historical price movements (OHLCV) time, open, high, low, close, vol
Order Book Bid and ask levels with liquidity depth price, size
Instruments Contract and asset details instId, tickSz, minSz, lotSz, state
Funding Perpetual swap-specific cost data fundingRate, nextFundingRate, fundingTime

OKX CEX Market Data Advanced Features

  • Comprehensive support for multiple instrument types including SPOT, SWAP, FUTURES, and OPTION.
  • Granular time interval selection for candle data ranging from 1 minute to 1 month intervals.
  • Integration-ready JSON output mode for building complex trading automations and custom dashboards.
  • Advanced discovery of option instruments using open interest tracking and underlying asset filtering.
  • Native cross-skill compatibility allowing for pre-trade price validation and strategy planning within Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*