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
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- okx-accountSkill
- okx-assetSkill
- okx-copy-tradingSkill
- okx-financeSkill
- okx-publicSkill
- okx-rfqSkill
- okx-rubikSkill
- okx-spreadSkill
- okx-subaccountSkill
- okx-systemSkill
- okx-tradeSkill
- okx-trading-botSkill
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
- Very specific: line 17
Confirm installed: Run which okx. If not found: npm install -g okx-trader-cli
- Distinctive: line 156
All responses are JSON:
≈ “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.
Files
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
- Confirm installed: Run
which okx. If not found:npm install -g okx-trader-cli - 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-USDGet Single Ticker
okx market ticker --instId BTC-USDT
okx market ticker --instId ETH-USDT-SWAPGet Order Book
okx market books --instId BTC-USDT
okx market books --instId BTC-USDT --sz 20
okx market books-full --instId BTC-USDT --sz 5000Get 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, 3MGet Historical Candles
okx market history-candles --instId BTC-USDT --bar 1D --limit 100Get Recent Trades
okx market trades --instId BTC-USDT
okx market trades --instId BTC-USDT --limit 100Get Historical Trades
okx market history-trades --instId BTC-USDT --limit 100Get Platform 24h Volume
okx market platform-volumeGet Block Tickers
okx market block-tickers --instType SWAP
okx market block-ticker --instId BTC-USDT-SWAPGet Index Tickers
okx market index-tickers --quoteCcy USD
okx market index-tickers --instId BTC-USDGet Index Candles
okx market index-candles --instId BTC-USD --bar 1H --limit 24
okx market history-index-candles --instId BTC-USD --bar 1D --limit 30Get 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 1DGet Exchange Rate
okx market exchange-rateGet Index Components
okx market index-components --index BTC-USDTGet Option Trades by Family
okx market option-trades --instFamily BTC-USDGet Spread Ticker
okx market sprd-ticker --sprdId BTC-USDT_SWAP-BTC-USDT_QUARTERGet 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 1DGet Call Auction Details
okx market call-auction-details --instId BTC-USDTCandle Bar Sizes
| Bar | Description |
1m | 1 minute |
3m | 3 minutes |
5m | 5 minutes |
15m | 15 minutes |
30m | 30 minutes |
1H | 1 hour |
2H | 2 hours |
4H | 4 hours |
6H | 6 hours |
12H | 12 hours |
1D | 1 day |
1W | 1 week |
1M | 1 month |
3M | 3 months |
Response Format
All responses are JSON:
{
"code": "0",
"msg": "",
"data": [...]
}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
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.

