Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
starchild-ai-agent avatar

Okx Account

  • 33 installs
  • 21 repo stars
  • Updated August 3, 2026
  • starchild-ai-agent/official-skills

Helps with ai & agent building tasks during AI-assisted development.

About

okx-account is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.

  • okx-account
  • AI & Agent Building
  • AI-coding skill

Okx Account by the numbers

  • 33 all-time installs (skills.sh)
  • +1 installs in the week ending Jul 27, 2026 (Skillselion tracking)
  • Ranked #8,944 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/starchild-ai-agent/official-skills --skill okx-account

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs33
repo stars21
Last updatedAugust 3, 2026
Repositorystarchild-ai-agent/official-skills

What it does

Helps with ai & agent building tasks during AI-assisted development.

Files

SKILL.mdMarkdownGitHub ↗

OKX Account (Read-Only)

Read-only OKX account tracker built on the official python-okx library. Use it for account tracking, daily/weekly reports, risk alerts, and cashflow attribution.

How to Get an OKX API Key (Read-Only)

1. Sign in at okx.com, top-right avatar → API

  • Direct link: https://www.okx.com/account/my-api

2. Create V5 API Key → complete 2FA verification 3. Fill the form:

  • API name: anything
  • Passphrase: ⚠️ a brand-new password used to sign API requests, NOT your login password. Lose it and you can only delete the key and create a new one.
  • Permissions: tick Read only, leave Trade / Withdraw off
  • IP whitelist: leave empty

4. Submit → immediately copy and save all three values: API Key / Secret Key / Passphrase (Secret is shown only once) 5. Set them into this skill's environment variables

Reference: OKX official tutorial

Prerequisites

1) API key

In OKX API Management create a key with Read only. OKX requires three credentials: api_key / secret / passphrase (the password you set when creating the key — not the login password).

2) Environment variables

OKX_RO_API_KEY=...
OKX_RO_SECRET=...
OKX_RO_PASSPHRASE=...

3) Geo restriction (required)

OKX geo-blocks server IPs. Scripts default to the SC internal HK proxy:

HK_PROXY = "http://hk:x@sc-vpn.internal:8080"

Do not set a global HTTP_PROXY.

Scripts

python3 skills/okx-account/scripts/okx_account.py <action> [options]
python3 skills/okx-account/scripts/account_scenarios.py <scenario> [options]

Actions

  • summary: one-shot summary
  • account_balance / account_config / positions / position_risk / fee_rates / bills
  • open_orders / order_history / fills_history
  • funding_balance / deposits / withdrawals / currencies / funding_rate

Scenarios

  • portfolio_snapshot: full account snapshot
  • perp_risk: perpetual risk monitoring (margin ratio + unrealized loss thresholds)
  • cashflow: deposits + withdrawals + 7d bills aggregation
  • trading_activity: recent fills activity by instType

Common usage

python3 skills/okx-account/scripts/okx_account.py summary
python3 skills/okx-account/scripts/account_scenarios.py portfolio_snapshot
python3 skills/okx-account/scripts/account_scenarios.py perp_risk --loss-threshold 5000
python3 skills/okx-account/scripts/account_scenarios.py cashflow --limit 100
python3 skills/okx-account/scripts/account_scenarios.py trading_activity --inst-types SPOT,SWAP

Notes

  • The passphrase is easy to forget — it is the password you set when creating the key, not your login password.
  • If you bound an IP whitelist when creating the key, either disable it or add the proxy egress IP.
  • Use time-windowed pagination for high-volume fills.

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.