okx-market

Retrieve public OKX market data via V5 REST endpoints for spot, derivatives, and index instruments.

Updated May 5, 2026
One-click install
npx skills add https://github.com/wudye/traderAssistHK --skill okx-market-wudye
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: okx-market
Source: https://github.com/wudye/traderAssistHK/tree/main/backend/src/skills/okx-market
Command: npx skills add https://github.com/wudye/traderAssistHK --skill okx-market-wudye

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, pandas, datetime, and includes scripts (resource) and references (resource) components.

What problem does it solve?

It eliminates manual research and repetitive coding when you need reliable, up-to-date cryptocurrency market data from OKX for spot, derivatives, and index instruments.

Core Features & Use Cases

  • Public OKX V5 market interfaces: Retrieves spot quotes, batch tickers, candlesticks, recent trades, order books, and index market data without authentication.
  • Derivatives market metrics: Retrieves perpetual funding rates, mark price, open interest, and related public limits for analysis and strategy inputs.
  • Use Case: When you’re building a research notebook or dashboard, you can programmatically pull BTC-USDT spot candles, fetch BTC-USD index candles, and combine funding-rate snapshots to compare spot moves against derivatives positioning signals.

Quick Start

Use the okx-market skill to retrieve the latest BTC-USDT spot ticker and print the last price, 24h change, and volume using OKX public endpoints.

Frequently Asked Questions about okx-market

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

FAQPage Schema
How do I fetch OKX public market data for spot and derivatives without authentication?

You can fetch OKX public market data by calling V5 REST endpoints for spot, derivatives, and index instruments. This skill retrieves tickers, candlesticks, order books, and trades without requiring authentication, parsing JSON responses directly.

Can I retrieve historical candlesticks and funding rates from OKX using Python?

Yes, you can retrieve historical candlesticks and funding rates from OKX using Python. The skill handles correct OKX instrument formatting and endpoint parameters like bar, limit, and timestamps to ingest historical data and derivatives metrics.

What's the best way to get real-time OKX order book depth and recent trades?

The best way to get real-time OKX order book depth and recent trades is using this skill's V5 REST endpoint integration. It supports order book depth inspection and trade feed sampling by parsing the public JSON responses.

Does this OKX market data skill support perpetual open interest and mark price retrieval?

Yes, this OKX market data skill supports perpetual derivatives metrics retrieval. You can fetch mark price, open interest, and funding rate snapshots to analyze derivatives positioning signals alongside spot market movements.

How do I correctly format instId and instType parameters for OKX V5 API calls?

To correctly format instId and instType parameters for OKX V5 API calls, use the standard OKX instrument formatting like BTC-USDT for spot. This skill handles the correct parameter construction for spot, derivatives, and index instruments automatically.