okx-market

Retrieve OKX V5 public market data as unauthenticated JSON responses.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ebrahim-sani/trading-automation --skill okx-market-ebrahim-sani
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: okx-market
Source: https://github.com/ebrahim-sani/trading-automation/tree/main/vibe-trading/agent/src/skills/okx-market
Command: npx skills add https://github.com/ebrahim-sani/trading-automation --skill okx-market-ebrahim-sani

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Provides a simple, programmatic interface to fetch public OKX V5 market data so users and tools can retrieve reliable crypto quotes, candlesticks, funding rates, open interest, and order book snapshots without dealing with raw API details or authentication.

Core Features & Use Cases

  • Comprehensive Market Coverage: Exposes spot, swap, futures, options, and index endpoints for tickers, batch tickers, candles, trades, order books, funding rates, mark price, open interest, and price limits.
  • Data-ready Client Examples: Example Python scripts convert JSON responses into pandas DataFrames, normalize timestamps, and handle common response validation.
  • Use Cases: Backtesting and strategy research with historical candlesticks, real-time monitoring dashboards, funding-rate and open-interest analysis for derivatives, and automated data ingestion pipelines.

Quick Start

Use the OKX skill to fetch BTC-USDT 1D candlesticks for the last 30 entries and return a CSV containing ts, open, high, low, close.

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 candlestick data using Python and pandas?

The Skill retrieves OKX public market data like tickers, candlesticks, and order books without authentication. It provides unauthenticated JSON responses compatible with Python requests and pandas for parsing into DataFrames.

Can I retrieve OKX funding rates and open interest for derivatives?

Yes, the Skill exposes swap, futures, and options endpoints to fetch funding rates, mark prices, and open interest data for derivatives monitoring and analysis without authentication.

Do I need API keys to pull OKX market data for backtesting?

No, you do not need API keys. The Skill provides unauthenticated JSON responses for public market data like historical candlesticks, allowing you to retrieve data for backtesting directly.

What's the best way to get OKX order book snapshots into a DataFrame?

The best way is using Python client examples that request public V5 endpoints and convert the unauthenticated JSON responses directly into pandas DataFrames for order book snapshots and transformation.

Does this method support batch tickers and index data retrieval?

Yes, the Skill supports batch tickers and index data retrieval. It exposes comprehensive market coverage across spot, swap, futures, options, and index endpoints for programmatic analysis and dashboarding.