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

okx-asset

Skill1 starsChanged 9 months agoApache-2.0View on GitHub

Use this skill when users need funding account operations: check funding balance, transfer funds between accounts, deposit/withdrawal management, deposit addresses, withdrawal history, flash swap (convert), exchange list, or asset valuation. For trading account balance, use okx-account.

  • Reads credentials
  • 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 Funding Account (Asset) CLI

25+ commands for funding account: balances, transfers, deposits, withdrawals, flash swap, and asset valuation.

Pre-flight Checks

  1. Confirm installed: Run which okx. If not found: npm install -g okx-trader-cli
  2. API credentials required: Set OKX_API_KEY, OKX_SECRET_KEY, OKX_PASSPHRASE in .env

Skill Routing

  • For trading account balance → use okx-account
  • For order placement → use okx-trade
  • For sub-account management → use okx-subaccount

Commands

Get Currency List

okx asset currencies
okx asset currencies --ccy BTC

Get Funding Balance

okx asset balances
okx asset balances --ccy BTC,ETH,USDT

Get Non-Tradable Assets

okx asset non-tradable-assets

Get Asset Valuation

okx asset asset-valuation
okx asset asset-valuation --ccy USD

Transfer Funds

# From funding to trading account
okx asset transfer --ccy USDT --amt 1000 --from 6 --to 18

# From trading to funding account
okx asset transfer --ccy USDT --amt 1000 --from 18 --to 6

Account types: 6 = Funding, 18 = Trading

Get Transfer State

okx asset transfer-state --transId 123456

Get Funding Bills

okx asset bills
okx asset bills --ccy USDT --type 1

Get Deposit Address

okx asset deposit-address --ccy BTC
okx asset deposit-address --ccy USDT

Get Deposit History

okx asset deposit-history
okx asset deposit-history --ccy BTC --state 2

Withdraw

# On-chain withdrawal
okx asset withdrawal --ccy USDT --amt 100 --dest 4 --toAddr 0x1234... --fee 1 --chain USDT-TRC20

# Internal transfer
okx asset withdrawal --ccy USDT --amt 100 --dest 3 --toAddr user@email.com --fee 0

Cancel Withdrawal

okx asset cancel-withdrawal --wdId 123456

Get Withdrawal History

okx asset withdrawal-history
okx asset withdrawal-history --ccy USDT --state 2

Get Deposit/Withdrawal Status

okx asset deposit-withdraw-status --wdId 123456
okx asset deposit-withdraw-status --txId 0xabc...

Get Exchange List

okx asset exchange-list

Flash Swap (Convert)

# Get available currencies
okx asset convert-currencies

# Get currency pair info
okx asset convert-currency-pair --fromCcy BTC --toCcy USDT

# Get estimate quote
okx asset convert-estimate-quote --baseCcy BTC --quoteCcy USDT --side sell --rfqSz 0.1 --rfqSzCcy BTC

# Execute trade
okx asset convert-trade --quoteId quote123 --baseCcy BTC --quoteCcy USDT --side sell --sz 0.1 --szCcy BTC

# Get history
okx asset convert-history

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.