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

okx-public

Skill1 starsChanged 9 months agoApache-2.0View on GitHub

Use this skill when users need public reference data: instrument listings, funding rates, open interest, price limits, mark prices, delivery/exercise history, option summaries, position tiers, insurance fund, contract-coin conversion, tick bands, premium history, economic calendar, or system time. No authentication required. For real-time prices/candles, use okx-market.

  • Installs packages

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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

≈ “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 Public Data CLI

20+ commands for public reference data. No authentication required.

Pre-flight Checks

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

Skill Routing

  • For real-time prices/candles/order book → use okx-market
  • For account info → use okx-account
  • For order placement → use okx-trade
  • For trading analytics → use okx-rubik

Commands

Get Instruments

okx public instruments --instType SPOT
okx public instruments --instType SWAP --uly BTC-USDT
okx public instruments --instType OPTION --instFamily BTC-USD
okx public instruments --instType FUTURES --instId BTC-USDT-250808

Get Funding Rate

okx public funding-rate --instId BTC-USDT-SWAP
okx public funding-rate --instId ETH-USDT-SWAP

Get Funding Rate History

okx public funding-rate-history --instId BTC-USDT-SWAP --limit 100

Get Open Interest

okx public open-interest --instType SWAP
okx public open-interest --instType SWAP --instId BTC-USDT-SWAP
okx public open-interest --instType OPTION --instFamily BTC-USD

Get Price Limit

okx public price-limit --instId BTC-USDT-SWAP

Get Mark Price

okx public mark-price --instType SWAP
okx public mark-price --instType SWAP --instId BTC-USDT-SWAP

Get Estimated Delivery/Exercise Price

okx public estimated-price --instId BTC-USD-250808

Get Delivery/Exercise History

okx public delivery-exercise-history --instType FUTURES --uly BTC-USD

Get Option Summary

okx public opt-summary --instFamily BTC-USD

Get Discount Rate & Interest-Free Quota

okx public discount-rate
okx public discount-rate --ccy BTC

Get System Time

okx public time

Get Position Tiers

okx public position-tiers --instType SWAP --tdMode cross --uly BTC-USDT

Get Interest Rate & Loan Quota

okx public interest-rate-loan-quota

Get Underlying

okx public underlying --instType SWAP
okx public underlying --instType FUTURES

Get Insurance Fund

okx public insurance-fund --instType SWAP
okx public insurance-fund --instType SWAP --ccy BTC

Convert Contract/Coin

okx public convert-contract-coin --instId BTC-USDT-SWAP --sz 100 --type 1
okx public convert-contract-coin --instId BTC-USDT-SWAP --sz 0.1 --type 2 --px 65000

Get Instrument Tick Bands

okx public instrument-tick-bands --instType OPTION --instFamily BTC-USD

Get Premium History

okx public premium-history --instId BTC-USDT-SWAP --limit 100

Get Economic Calendar

okx public economic-calendar
okx public economic-calendar --importance 3

Get Estimated Settlement Info

okx public estimated-settlement-info --instId BTC-USDT-SWAP

Get Settlement History

okx public settlement-history --instId BTC-USDT-SWAP

Instrument Types

TypeDescription
SPOTSpot trading
MARGINMargin trading
SWAPPerpetual swap
FUTURESFutures (delivery)
OPTIONOptions

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.