Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

okx-market

Skill by HKUDS

The okx-market skill lets an AI assistant retrieve cryptocurrency market data from the OKX V5 REST API. It is aimed at users who want spot, derivatives and index data in Python without an account.

  • Score 94
  • 39k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install okx-market

Built from the published package, never by AI.

git clone --depth 1 https://github.com/HKUDS/Vibe-Trading /tmp/Vibe-Trading && mkdir -p ~/.claude/skills && cp -r /tmp/Vibe-Trading/agent/src/skills/okx-market ~/.claude/skills/okx-market

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install okx-market in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The okx-market skill gives an AI assistant access to cryptocurrency market data from the OKX V5 REST API. It covers spot, perpetual swap, delivery futures, options and index markets. According to the source, all market-data endpoints are public and can be called without authentication or an account. The skill includes Python examples that use the requests library to fetch data such as the latest BTC-USDT ticker.

The skill documents 13 endpoints grouped into spot, derivatives and index markets. Derivatives data includes funding rates, mark prices, open interest and price limits. Requests use instrument IDs such as BTC-USDT, BTC-USDT-SWAP and BTC-USDT-250328, and candlestick intervals from 1m to 1M. Responses are JSON, with code=0 indicating success and data returned in the data field.

Written from the project's SKILL.md and checked against it.

What it can do

  • Single tickerRetrieve the latest market data for one instrument, including last price and 24h volume.
  • Batch tickersRetrieve market data for all instruments in a class: SPOT, SWAP, FUTURES or OPTION.
  • Candlestick dataRetrieve OHLCV candlestick data across multiple intervals.
  • Recent tradesRetrieve recent trade-level details for an instrument.
  • Instrument listRetrieve metadata for tradable instruments, including minimum order size and price precision.
  • Order book depthRetrieve bid and ask order book depth data.
  • Funding ratesRetrieve current and historical funding rates for perpetual contracts.
  • Mark priceRetrieve mark prices used for PnL and liquidation calculations.
  • Open interestRetrieve open-interest data for derivatives.
  • Index tickers and candlesRetrieve index price data and index candlestick data.

What you need

  • Python 3.9 or later (recommended in the source)
  • requests Python library
  • pandas Python library (listed in the install command)

Try asking

  • Show me the latest BTC-USDT price and 24h change from OKX.
  • Get the last 100 1H candlesticks for ETH-USDT-SWAP.
  • What are the current funding rates for BTC-USDT-SWAP?

Good to know

  • The source lists market-data endpoints only, with no trading or account endpoints.
  • The source does not state rate limits.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: agent/src/skills/okx-market/SKILL.md, agent/src/skills/okx-market/scripts/candle_data_example.py, agent/src/skills/okx-market/scripts/market_data_example.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md5 KB
  • references/合约行情/历史资金费率.md1 KB
  • references/合约行情/持仓量.md1 KB
  • references/合约行情/标记价格.md1 KB
  • references/合约行情/资金费率.md2 KB
Show all 16 files
  • references/合约行情/限价.md926 B
  • references/指数行情/指数K线.md1 KB
  • references/指数行情/指数行情.md1 KB
  • references/现货行情/K线数据.md2 KB
  • references/现货行情/交易产品列表.md2 KB
  • references/现货行情/单个行情.md2 KB
  • references/现货行情/批量行情.md1 KB
  • references/现货行情/最近成交.md991 B
  • references/现货行情/深度数据.md1 KB
  • scripts/candle_data_example.py3 KB
  • scripts/market_data_example.py3 KB

Alternatives to okx-market

All alternatives →

Compare with meme-rush, saas-metrics-coach or sec-edgar

okx-market: common questions

Does the OKX market data skill need an API key?

No. The source says no account registration or token configuration is required, and all market-data endpoints are public.

Which OKX markets does the skill cover?

According to the source, it covers spot, perpetual swaps, delivery futures, options and index markets.

What format does the OKX API return?

The responses are JSON. A code of 0 indicates success, and the data is returned in the data field.

How do I install okx-market?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is okx-market free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is okx-market safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to okx-market?

Similar skills: meme-rush, saas-metrics-coach, sec-edgar, eastmoney.

okx-market Install

Add to stack

Loading.