
OKX Market Data
Lets an agent pull live OKX crypto prices, candles, funding rates and open interest without an API key.
- Repository
- HKUDS/Vibe-Trading
- Stars
- 37,433
- Licence
- MIT
- Files
- 15 files
What it does
Once installed, the agent knows how to query OKX's public market-data API for cryptocurrency information: current prices, candlestick (OHLCV) history, order book depth, recent trades, perpetual-swap funding rates, mark prices, open interest, price limits and index prices. It includes reference docs for each endpoint and a sample Python script, so it can write and run code that fetches this data and summarises or tabulates it. No account or key is needed because the endpoints are public.
Great for
- Analysts or traders who want quick, scripted snapshots of OKX crypto prices and derivatives metrics
- Developers building a small data pipeline or dashboard on top of OKX public data
- Students learning how crypto exchange APIs and funding rates work
Skip it if
- Trading or placing orders: this skill only covers public read-only market data, and any trading decision based on it carries financial risk
- Authoritative or regulated financial reporting: the data is a live exchange feed with no guarantee of completeness or accuracy and should be verified independently
Try asking
- “Get the latest BTC-USDT price and 24h change from OKX”
- “Pull 4-hour ETH-USDT-SWAP candles for the last 300 periods and save them as a CSV”
- “Show the current funding rate and open interest for BTC perpetual swaps”
- “Compare spot and index prices for BTC-USD over the past week”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 15 original files, the MIT licence and an attribution note.
okx-market.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip okx-market.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip okx-market.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Ask for a specific instrument ID format (for example BTC-USDT-SWAP for perpetuals) so the agent calls the right endpoint
- Review any generated script before running it, since the agent will execute Python code that makes outbound HTTPS requests
- Note that the candle script's success check compares code to the string "0"; if an error response is returned, verify the output rather than assuming it succeeded
What's inside
- references/合约行情/历史资金费率.md
- references/合约行情/持仓量.md
- references/合约行情/标记价格.md
- references/合约行情/资金费率.md
- references/合约行情/限价.md
- references/指数行情/指数K线.md
- references/指数行情/指数行情.md
- references/现货行情/K线数据.md
- references/现货行情/交易产品列表.md
- references/现货行情/最近成交.md
- references/现货行情/单个行情.md
- references/现货行情/批量行情.md
- references/现货行情/深度数据.md
- scripts/candle_data_example.py
- SKILL.md
Redistributed unmodified from HKUDS/Vibe-Trading under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.