okx-cex-market

Query OKX public market data, derivatives metrics, and technical indicators via CLI.

Updated Aug 18, 2026
One-click install
npx skills add https://github.com/wandreandrade2018-maker/claude-config --skill okx-cex-market-wandreandrade2018-maker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: okx-cex-market
Source: https://github.com/wandreandrade2018-maker/claude-config/tree/main/.agents/skills/okx-cex-market
Command: npx skills add https://github.com/wandreandrade2018-maker/claude-config --skill okx-cex-market-wandreandrade2018-maker

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @okx_ai/okx-trade-cli, and includes references (resource) components.

What problem does it solve? It gives you read-only access to OKX exchange market data—prices, order books, candles, funding rates, open interest, and 70+ technical indicators—without needing API credentials or writing your own API integration code. ## Core Features & Use Cases - Market Data Queries: Fetch tickers, OHLCV candles back to 2021, order books, recent trades, mark/index prices, and funding rates for SPOT, SWAP, FUTURES, and OPTION instruments. - Screening & Scanners: Rank instruments with multi-dimensional filters (volume, OI, funding rate, market cap) and detect large open-interest shifts with the OI change scanner. - Technical Indicators: Compute RSI, MACD, EMA, Bollinger Bands, SuperTrend, AHR999, BTC rainbow, and 70+ other indicators directly from the CLI. - Use Case: Ask for the current funding rate and 4H RSI on BTC-USDT-SWAP, then screen for SWAP contracts with the largest 1H open-interest increases to spot accumulation. ## Quick Start Ask the assistant to show the current price and 24h change for BTC-USDT using the okx market ticker command.

Frequently Asked Questions about okx-cex-market

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

FAQPage Schema
How do I get crypto prices and candles from OKX without an API key?

Use the okx CLI market commands, which are read-only and require no API credentials. Run okx market ticker BTC-USDT for the latest price or okx market candles BTC-USDT --bar 1H for OHLCV history back to 2021.

How do I check funding rate and open interest on OKX perpetual swaps?

Run okx market funding-rate BTC-USDT-SWAP for current or historical funding rates, and okx market open-interest --instType SWAP for open interest. The oi-change command scans for instruments with the largest OI shifts.

What technical indicators can I compute from OKX market data?

Over 70 indicators are supported, including RSI, MACD, EMA, Bollinger Bands, KDJ, SuperTrend, AHR999, and BTC rainbow. Run okx market indicator list to see all names, then okx market indicator rsi BTC-USDT to compute one.

Does this skill support placing orders or checking account balances?

No, it is strictly read-only market data. Order placement routes to okx-cex-trade, balances and positions to okx-cex-portfolio, and grid or DCA bots to okx-cex-bot.

Why does the indicator command reject my 1m or 1D bar value?

Indicators do not support 1m bars and use UTC-suffixed values like 1Dutc and 1Wutc instead of 1D and 1W. Valid values are 3m, 5m, 15m, 1H, 4H, 12Hutc, 1Dutc, 3Dutc, and 1Wutc.

Can I get prices for stocks, gold, oil, or forex on OKX?

Yes, use okx market instruments-by-category with category 3 for stock tokens, 4 for metals, 5 for commodities, 6 for forex, and 7 for bonds to discover valid instrument IDs before querying prices.