agentleFS
open-crab-aiopen-crab-ai/okx-plugin/skills/okx-market/SKILL.md

okx-market

Skill1 starsChanged 9 months agoApache-2.0View on GitHub

Use this skill when users want market data: real-time prices/tickers, order book depth, candlestick/K-line charts, trade history, index prices, mark price candles, exchange rate, block trading tickers, spread tickers, or platform volume. No authentication required for most endpoints. For placing orders, use okx-trade. For public instrument data, use okx-public.

  • Installs packages

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Confirm installed: Run which okx. If not found: npm install -g okx-trader-cli

    line 17
  2. Distinctive:

    All responses are JSON:

    line 156

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

OKX Market Data CLI

25+ commands for market data: tickers, order books, candles, trades, index data, mark price, and more. Most commands do NOT require authentication.

Pre-flight Checks

  1. Confirm installed: Run which okx. If not found: npm install -g okx-trader-cli
  2. No auth needed for most market data commands.

Skill Routing

  • For order placement → use okx-trade
  • For account info → use okx-account
  • For public instrument data / funding rate → use okx-public
  • For trading big data analytics → use okx-rubik

Commands

Get All Tickers

okx market tickers --instType SPOT
okx market tickers --instType SWAP
okx market tickers --instType FUTURES --uly BTC-USD
okx market tickers --instType OPTION --instFamily BTC-USD

Get Single Ticker

okx market ticker --instId BTC-USDT
okx market ticker --instId ETH-USDT-SWAP

Get Order Book

okx market books --instId BTC-USDT
okx market books --instId BTC-USDT --sz 20
okx market books-full --instId BTC-USDT --sz 5000

Get Candlestick Data (K-line)

okx market candles --instId BTC-USDT
okx market candles --instId BTC-USDT --bar 1H --limit 100
okx market candles --instId BTC-USDT-SWAP --bar 1D --limit 30

# Bar sizes: 1m, 3m, 5m, 15m, 30m, 1H, 2H, 4H, 6H, 12H, 1D, 1W, 1M, 3M

Get Historical Candles

okx market history-candles --instId BTC-USDT --bar 1D --limit 100

Get Recent Trades

okx market trades --instId BTC-USDT
okx market trades --instId BTC-USDT --limit 100

Get Historical Trades

okx market history-trades --instId BTC-USDT --limit 100

Get Platform 24h Volume

okx market platform-volume

Get Block Tickers

okx market block-tickers --instType SWAP
okx market block-ticker --instId BTC-USDT-SWAP

Get Index Tickers

okx market index-tickers --quoteCcy USD
okx market index-tickers --instId BTC-USD

Get Index Candles

okx market index-candles --instId BTC-USD --bar 1H --limit 24
okx market history-index-candles --instId BTC-USD --bar 1D --limit 30

Get Mark Price Candles

okx market mark-price-candles --instId BTC-USDT-SWAP --bar 1H --limit 24
okx market history-mark-price-candles --instId BTC-USDT-SWAP --bar 1D

Get Exchange Rate

okx market exchange-rate

Get Index Components

okx market index-components --index BTC-USDT

Get Option Trades by Family

okx market option-trades --instFamily BTC-USD

Get Spread Ticker

okx market sprd-ticker --sprdId BTC-USDT_SWAP-BTC-USDT_QUARTER

Get Spread Candles

okx market sprd-candles --sprdId BTC-USDT_SWAP-BTC-USDT_QUARTER --bar 1H
okx market sprd-history-candles --sprdId BTC-USDT_SWAP-BTC-USDT_QUARTER --bar 1D

Get Call Auction Details

okx market call-auction-details --instId BTC-USDT

Candle Bar Sizes

BarDescription
1m1 minute
3m3 minutes
5m5 minutes
15m15 minutes
30m30 minutes
1H1 hour
2H2 hours
4H4 hours
6H6 hours
12H12 hours
1D1 day
1W1 week
1M1 month
3M3 months

Response Format

All responses are JSON:

{
  "code": "0",
  "msg": "",
  "data": [...]
}

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.