Agent skill

Okx Cex Market

by dex-original in dex-original/okx-agent-trade-kit

A skill your agent uses when the user asks for: price of any asset, ticker, order book, candles, OHLCV, funding rate, open interest, OI change scanner, market screener (top movers, high-volume…

MITAuto-check passedBusiness, Finance & HR

Install Okx Cex Market

skills CLI
$ npx skills add dex-original/okx-agent-trade-kit --skill okx-cex-market -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dex-original/okx-agent-trade-kit okx-cex-market --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dex-original/okx-agent-trade-kit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/okx-cex-market .claude/skills/okx-cex-market && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
okx-cex-market
GitHub stars
110
Used in
1 other repo
Token cost
~2.7k tokens
SKILL.md length
1,188 words
Files
6 (incl. references)
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when the user asks for: price of any asset, ticker, order book, candles, OHLCV, funding rate, open interest, OI change scanner, market screener (top movers, high-volume…

  • Works in 3 steps: Identify data type and load reference → Run commands immediately → No writes, no verification needed
  • The user asks for: price of any asset
  • SKILL.md covers Preflight, Install, Command Index and Operation Flow, plus 2 more sections
  • Calls npm

What it does

Okx Cex Market is an agent skill from dex-original/okx-agent-trade-kit. Use this skill when the user asks for: price of any asset, ticker, order book, candles, OHLCV, funding rate, open interest, OI change scanner, market screener (top movers, high-volume, newly listed), mark price, index price, recent trades, instrument list, stock tokens, metals prices (gold, XAU, XAG), commodities (oil, OIL), forex rates (EUR/USD, EURUSDT), bond instruments, non-crypto assets, or any technical indicator query (RSI, MACD, EMA, Bollinger Bands, KDJ, SuperTrend, AHR999, BTC rainbow, and 70+ more)…

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `references/derivatives-commands.md`, `references/indicator-commands.md` and `references/instrument-commands.md`).

It sits in Business, Finance & HR, covering Trading and backtesting, Crypto and DeFi analysis and MCP servers. It works with OKX, Model Context Protocol, npm and pnpm. The repository describes itself as: okx trading bot okx agent mcp cli cryptocurrency okx api automated trading typescript okx trading bot model context protocol cursor ai trading crypto spot futures okx trading bot…. The licence is MIT.

When your agent uses it

  • The user asks for: price of any asset
  • OI change scanner
  • Market screener (top movers
  • Instrument list

Example prompts

  • “/okx-cex-market”

Requirements

  • Node.js

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Identify data type and load reference
  2. Run commands immediately
  3. No writes, no verification needed

What it can do on your machine

Read from SKILL.md and the folder at commit f619ddf. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Okx Cex Market loads about 2.7k tokens when it runs, and up to ~9.3k if it reads all its reference files. Until then it costs about 180 tokens; SKILL.md has 1,188 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~180
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~9.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from dex-original/okx-agent-trade-kit at commit f619ddf, republished under its MIT licence (© dex-original). 1,188 words, ~2,725 tokens.

Download SKILL.mdSave it as .claude/skills/okx-cex-market/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
okx-cex-market
description
Use this skill when the user asks for: price of any asset, ticker, order book, candles, OHLCV, funding rate, open interest, OI change scanner, market screener (top movers, high-volume, newly listed), mark price, index price, recent trades, instrument list, stock tokens, metals prices (gold, XAU, XAG), commodities (oil, OIL), forex rates (EUR/USD, EURUSDT), bond instruments, non-crypto assets, or any technical indicator query (RSI, MACD, EMA, Bollinger Bands, KDJ, SuperTrend, AHR999, BTC rainbow, and 70+ more). All commands are read-only and do NOT require API credentials. Do NOT use for account balance/positions (okx-cex-portfolio), placing/cancelling orders (okx-cex-trade), or bots (okx-cex-bot).
license
MIT
metadata.author
okx
metadata.version
1.3.2
metadata.homepage
https://www.okx.com

OKX CEX Market Data CLI

Compliance notice: This skill provides raw market data only. No strategy, recommendation, or optimization logic is embedded. All indicator outputs are objective numerical values; interpretation and trading decisions remain solely with the user.

Public market data for OKX: prices, order books, candles, funding rates, open interest, instrument info, and technical indicators. All commands are read-only and require no API credentials.

Skill routing

  • Market data / indicators → okx-cex-market (this skill)
  • Account balance / positions → okx-cex-portfolio
  • Place / cancel orders → okx-cex-trade
  • Grid / DCA bots → okx-cex-bot

Preflight

Before running any command, follow ../_shared/preflight.md. Use metadata.version from this file's frontmatter as the reference for Step 2.

Install

bash
npm install -g @okx_ai/okx-trade-cli
okx market ticker BTC-USDT   # verify

Market data commands return the same public data regardless of demo/live mode — no API credentials required. If the user's profile has demo=true set and they want live data context, they can use --live to confirm they are in live mode (it has no effect on public market data but clarifies environment). Always inform the user which environment is active (demo or live) when it is relevant to their query. No confirmation needed before running any market command. Add --json to any command for raw OKX API v5 response. Add --env to wrap the output as {"env", "profile", "data"}.


Command Index

#CommandDescription
1okx market ticker <instId>Last price, 24h high/low/vol/change%
2okx market tickers <instType>All tickers for SPOT / SWAP / FUTURES / OPTION
3okx market instruments --instType <type> [--instId <id>]List instruments (instId, ctVal, lotSz, minSz, tickSz, state)
4okx market orderbook <instId> [--sz <n>]Order book asks/bids (default top 5 per side, max 400)
5okx market candles <instId> [--bar <bar>] [--limit <n>] [--after <ts>] [--before <ts>]OHLCV candles (default --bar 1m); auto-routes to historical endpoint for data back to 2021; --after paginates back in time, --before paginates forward
6okx market index-candles <instId> [--bar <bar>] [--limit <n>] [--history]Index OHLCV (use BTC-USD not BTC-USDT)
7okx market funding-rate <instId> [--history] [--limit <n>]Current or historical funding rate (SWAP only)
8okx market trades <instId> [--limit <n>]Recent public trades
9okx market mark-price --instType <type> [--instId <id>]Mark price (SWAP / FUTURES / OPTION)
10okx market index-ticker [--instId <id>] [--quoteCcy <ccy>]Index price (e.g., BTC-USD)
11okx market price-limit <instId>Upper/lower price limits (SWAP / FUTURES only)
12okx market open-interest --instType <type> [--instId <id>]Open interest in contracts and base currency
13okx market instruments-by-category --instCategory <3|4|5|6|7>Discover instruments by asset category: 3=Stock tokens (AAPL/TSLA), 4=Metals (gold/silver), 5=Commodities (oil/gas), 6=Forex (EUR/USD), 7=Bonds
13†okx market stock-tokensDeprecated — use instruments-by-category --instCategory 3 instead
14okx market filter --instType <SPOT|SWAP|FUTURES> [--sortBy <field>] [--sortOrder <asc|desc>] [--limit <n>] [--baseCcy <ccy>] [--quoteCcy <ccy>] [--settleCcy <ccy>] [--instFamily <fam>] [--ctType <linear|inverse>] [--minLast <n>] [--maxLast <n>] [--minChg24hPct <n>] [--maxChg24hPct <n>] [--minMarketCapUsd <n>] [--maxMarketCapUsd <n>] [--minVolUsd24h <n>] [--maxVolUsd24h <n>] [--minFundingRate <n>] [--maxFundingRate <n>] [--minOiUsd <n>] [--maxOiUsd <n>]Screen / rank instruments by multi-dimensional criteria (price, volume, OI, funding rate, market cap)
15okx market oi-history <instId> [--bar <5m|15m|1H|4H|1D>] [--limit <n>] [--ts <ms>]OI history time series with bar-over-bar delta for a single instrument
16okx market oi-change --instType <SWAP|FUTURES> [--bar <5m|15m|1H|4H|1D>] [--sortBy <field>] [--sortOrder <asc|desc>] [--limit <n>] [--minOiUsd <n>] [--minVolUsd24h <n>] [--minAbsOiDeltaPct <n>]Find instruments with largest OI changes (accumulation/distribution scanner)
17okx market indicator listList all supported indicator names and descriptions
18okx market indicator <indicator> <instId> [--bar] [--params] [--list] [--limit] [--backtest-time]Technical indicator values

Operation Flow

Step 1 — Identify data type and load reference
User intentReference to load
Price, candles, order book, recent trades{baseDir}/references/price-data-commands.md
Technical indicators (RSI, MACD, EMA, BB, KDJ, SuperTrend, AHR999, Rainbow, etc.){baseDir}/references/indicator-commands.md
Funding rate, mark price, open interest, price limit, index ticker{baseDir}/references/derivatives-commands.md
Screen / rank instruments; find top movers, high-OI, high-volume contractsUse okx market filter directly
OI history time series for a single instrumentUse okx market oi-history directly
OI change scanner; find contracts with large OI shiftsUse okx market oi-change directly
List instruments, discover stock tokens, metals/commodities/forex/bonds, find option instIds{baseDir}/references/instrument-commands.md
Multi-step or cross-skill workflows; MCP tool names{baseDir}/references/workflows.md
Step 2 — Run commands immediately

All market data commands are read-only — no confirmation needed.

Step 3 — No writes, no verification needed

All commands in this skill are read-only.


Show full SKILL.md (502 more words)Show less

Edge Cases

  • instId format: SPOT BTC-USDT · SWAP BTC-USDT-SWAP · FUTURES BTC-USDT-250328 · OPTION BTC-USD-250328-95000-C · Index BTC-USD · Stock token TSLA-USDT-SWAP · Metals/Commodities/Forex/Bonds: use instruments-by-category to discover valid instIds first
  • OPTION listing: instruments --instType OPTION requires --uly BTC-USD; if unknown, run open-interest --instType OPTION first to discover active instIds
  • funding-rate / price-limit: SWAP only · mark-price: SWAP / FUTURES / OPTION only
  • candles --bar: uppercase — 1H not 1h; use --after <ts> to paginate back into historical data (back to 2021); index-candles supports --history for extended history
  • ⚠️ Large historical range: before fetching with --after/--before, estimate candle count = time_range_ms / bar_interval_ms. If estimate > 500, tell the user the estimated count and ask for confirmation before proceeding. This prevents silently filling the context window.
  • indicator --bar: uses 1Dutc not 1D, 1Wutc not 1W — different from candle bar values
  • market filter sortBy values: last chg24hPct marketCapUsd volUsd24h fundingRate oiUsd listTime — default volUsd24h
  • market filter ctType: linear or inverse (SWAP/FUTURES only); omit for SPOT
  • market filter quoteCcy: comma-separated list supported, e.g. --quoteCcy USDT,USDC
  • market filter SPOT + quoteCcy: when --instType SPOT, the API returns instruments across all quote currencies (USDT, USDC, BTC, ETH, etc.) mixed together — this pollutes sort order and bloats results. Always pass --quoteCcy USDT by default unless the user explicitly asks for other quote currencies.
  • market filter chg24hPct: value is a percentage number — --minChg24hPct -5 means -5%, --maxChg24hPct 10 means 10%
  • market oi-history ts: Unix ms timestamp; returns bars with ts ≤ this value for historical pagination
  • market oi-history / oi-change bar: valid values 5m 15m 1H 4H 1D — default 1H. Server accepts case variants (1h == 1H) but prefer canonical casing.
  • market oi-history limit: 1–500 (default 50)
  • market oi-change instType: only SWAP or FUTURES supported (not SPOT)
  • market oi-change minAbsOiDeltaPct: filters by absolute OI change — 1.0 keeps only rows where |oiDeltaPct| ≥ 1%
  • market oi-change sortBy values: oiUsd oiDeltaUsd oiDeltaPct absOiDeltaPct volUsd24h fundingRate last — default oiDeltaPct (signed). Use absOiDeltaPct to rank by |oiDeltaPct| (largest magnitude regardless of direction).
  • market oi-change limit: 1–100 (default 20). For deeper than 100 rows, fetch oi-history per instId.
  • indicator --bar valid values: 3m 5m 15m 1H 4H 12Hutc 1Dutc 3Dutc 1Wutc — 1m is not supported for indicators (use candles for 1-minute data)
  • indicator --limit: 1–100 (only used with returnList, i.e. when a historical series is requested)
  • indicator arg order: indicator name before instId — okx market indicator rsi BTC-USDT
  • indicator --params: comma-separated, no spaces — --params 5,20
  • BTC-only indicators: ahr999, rainbow — BTC-USDT only
  • Unknown indicator name: returns a ValidationError with similar-name suggestions before the API is called — use market_list_indicators / okx market indicator list to see all valid names
  • Stock token hours: US stocks trade Mon–Fri ~09:30–16:00 ET; verify live price before acting
  • No data returned: instrument may be delisted — verify with okx market instruments
  • boll is an alias for bb

Global Notes

  • No API key required for any command in this skill
  • Rate limit: 20 req / 2 s per IP
  • Candle data is sorted newest-first
  • vol24h is in base currency (e.g., BTC for BTC-USDT)
  • --demo/--live and --profile do not affect market data results via CLI (public endpoints); they only determine the active trading environment context

© dex-original, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (references) in skills/okx-cex-market of dex-original/okx-agent-trade-kit.

  • SKILL.md
  • references/derivatives-commands.md
  • references/indicator-commands.md
  • references/instrument-commands.md
  • references/price-data-commands.md
  • references/workflows.md

Open the folder on GitHubat commit f619ddf

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in dex-original/okx-agent-trade-kit, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Okx Cex Market next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Okx Cex Market compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Okx Cex Market this skilldex-original/okx-agent-trade-kit1101 repos~2.7kAutomated safety check: PassMIT
Polymarket Tennislivetennisapi/livetennisapi-mcp152—~3kAutomated safety check: PassMIT
Tradingview MCPatilaahmettaner/tradingview-mcp5k—~1.3kAutomated safety check: PassMIT
Alpaca Trading Paper Trading MCPalpacahq/alpaca-skills154—~11kAutomated safety check: PassApache-2.0
GrantrBankrBot/skills1.2k—~2.2kAutomated safety check: PassNone
Opensea SwapsBankrBot/skills1.2k—~1.3kAutomated safety check: PassMIT

Similar skills

  • Polymarket Tennis

    livetennisapi/livetennisapi-mcp

    Build observe-only Polymarket and Kalshi tennis market tooling on the polymarket-tennis Python package (MIT) plus the Live Tennis API free tier.

    152 GitHub stars~3k tokensUpdated 4 days ago
    Business, Finance & HRAuto-check passed
  • Tradingview MCP

    atilaahmettaner/tradingview-mcp

    AI Trading Intelligence — live prices, 30+ technical indicators, backtesting (6 strategies), walk-forward overfitting detection, trade logs, equity curves, licensed news sentiment (Marketaux), and…

    5k GitHub stars~1.3k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Alpaca Trading Paper Trading MCP

    alpacahq/alpaca-skills

    Preview, submit, inspect, and manage Alpaca paper-trading orders using the Alpaca Trading API MCP Server.

    154 GitHub stars~11k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Grantr

    BankrBot/skills

    Use Grantr MCP for account-safe Grantr backend workflows: Grantr vaults, Morpho savings, Bankr wallet interop, Fileverse documents, portfolio and balance reads, and agent-safe DeFi action preparation.

    1.2k GitHub stars~2.2k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Opensea Swaps

    BankrBot/skills

    Swap ERC20 tokens across supported chains via OpenSea's cross-chain DEX aggregator.

    1.2k GitHub stars~1.3k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Tradingview MCP

    himself65/finance-skills

    Query TradingView market data through the bundled tradingview MCP server without a desktop app or login.

    3.4k GitHub stars~2.4k tokensUpdated 6 days ago
    Business, Finance & HRAuto-check passed

More from dex-original/okx-agent-trade-kit

  • Okx Cex Smartmoney

    dex-original/okx-agent-trade-kit

    Smart Money analytics on OKX: leaderboard traders, position tracking, trade records, aggregated consensus signals, and signal history.

    110 GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Okx Sentiment Tracker

    dex-original/okx-agent-trade-kit

    A skill your agent uses when the user asks about: 'any crypto news', 'latest news', 'market update', 'daily briefing', 'BTC news', 'ETH news', 'news on SOL', 'search SEC ETF', 'regulation news'…

    110 GitHub starsUsed in 1 repo~3.8k tokens
    Auto-check passed

Questions about Okx Cex Market

What does Okx Cex Market do?

A skill your agent uses when the user asks for: price of any asset, ticker, order book, candles, OHLCV, funding rate, open interest, OI change scanner, market screener (top movers, high-volume…. Okx Cex Market is an agent skill from dex-original/okx-agent-trade-kit.

When should I use Okx Cex Market?

Okx Cex Market fits situations like: the user asks for: price of any asset; OI change scanner; market screener (top movers; instrument list.

How do I install Okx Cex Market in Claude Code?

Run `npx skills add dex-original/okx-agent-trade-kit --skill okx-cex-market -a claude-code`. Or copy the skill folder (skills/okx-cex-market in dex-original/okx-agent-trade-kit) into .claude/skills/okx-cex-market in your project. Claude Code loads it when a task matches its description.

How do I install Okx Cex Market in Codex?

Run `npx skills add dex-original/okx-agent-trade-kit --skill okx-cex-market -a codex`. Or copy the skill folder (skills/okx-cex-market in dex-original/okx-agent-trade-kit) into .agents/skills/okx-cex-market in your project. Codex loads it when a task matches its description.

Can I use Okx Cex Market in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dex-original/okx-agent-trade-kit --skill okx-cex-market -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/okx-cex-market, .gemini/skills/okx-cex-market, .github/skills/okx-cex-market and .opencode/skills/okx-cex-market in your project.

What does Okx Cex Market need to run?

Going by SKILL.md and its folder, Okx Cex Market needs the command-line tools its instructions call (npm). Our summary lists: Node.js.

Does Okx Cex Market access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Okx Cex Market safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Okx Cex Market use?

Okx Cex Market is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Okx Cex Market use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 6.5k tokens, read only when the agent opens those files.

What are the alternatives to Okx Cex Market?

Skills that share tags, products or a category with Okx Cex Market: Polymarket Tennis (livetennisapi/livetennisapi-mcp, 152 stars), Tradingview MCP (atilaahmettaner/tradingview-mcp, 5k stars), Alpaca Trading Paper Trading MCP (alpacahq/alpaca-skills, 154 stars) and Grantr (BankrBot/skills, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Okx Cex Market?

dex-original (a GitHub organization) maintains it in dex-original/okx-agent-trade-kit, which has 110 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on June 1, 2026.

Source: dex-original/okx-agent-trade-kit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.