okx-market

Fetches ticker, candle, and trade data from the OkX public REST API for crypto instruments.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/DaddyElonMusk69/motis-agent --skill okx-market-daddyelonmusk69
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: okx-market
Source: https://github.com/DaddyElonMusk69/motis-agent/tree/main/skills/finance/okx-market
Command: npx skills add https://github.com/DaddyElonMusk69/motis-agent --skill okx-market-daddyelonmusk69

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Fetch public OKX market data for cryptocurrency instruments.

Core Features & Use Cases

  • Ticker and candle data for spot, swap, futures, and index instruments.
  • Batch data access to obtain multiple instruments or timeframes for rapid market analysis.
  • Use Case: A trader fetches BTC-USDT ticker and 1D candles to plot trends and compute simple indicators.

Quick Start

Query the OKX market data using a simple instrument ID to fetch the latest ticker and 24h change.

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 market ticker data for a specific cryptocurrency instrument?

You retrieve OKX public ticker data by querying endpoints like /market/tickers with an instrument ID, returning structured results including last price, 24h change, and volumes for spot, swap, and futures markets.

Can I retrieve historical OKX candle data for technical analysis?

Yes, retrieve historical OKX candle data by calling the /market/candles endpoint. This provides structured OHLCV data for various timeframes, suitable for plotting trends and computing simple trading indicators downstream.

Does the OKX public API require authentication to access market data?

No, accessing OKX public market data requires no authentication. The implementation relies entirely on the public REST API to fetch ticker, candle, and trade data without needing API keys.

What's the best way to get batch market data for multiple OKX instruments?

Retrieve batch market data for multiple OKX instruments by querying the /market/tickers endpoint. This supports rapid batch access to obtain multiple instruments or timeframes simultaneously for market analysis.

How do I get real-time OKX trade history for a cryptocurrency pair?

Fetch real-time OKX trade history by requesting the /market/trades endpoint with a specific cryptocurrency instrument ID, retrieving recent public trade records suitable for downstream analytics and trading workflows.

Are there limitations to using the OKX public API for market data retrieval?

Limitations of using the OKX public API include potential rate limits on endpoints like /market/candles and /market/tickers. It is designed for rapid public market data retrieval but may restrict historical depth or request frequency.