okx avatar

Okx Cex Portfolio

Handles all the account management and portfolio tracking for OKX exchange trading. You'll use this when checking balances across trading and funding accounts, reviewing open and closed positions with P&L, pulling transaction history, checking your fee tier, or transferring funds between accounts. Supports both API key and OAuth authentication with separate demo and live modes, which matters since transfer commands hit real accounts. The skill splits cleanly from market data (prices, depth) and order execution, so you can check your USDT balance and position P&L without mixing concerns. Ships with the okx-trade-cli npm package and includes Chinese language support for common queries like 总资产.

skills.sh installs
10.4K
GitHub stars
200
last updated
Aug 21, 2026

Install

$ npx -y skills add okx/agent-skills --skill okx-cex-portfolio --agent claude-code

Installs into .claude/skills of the current project.

Files

OKX CEX Portfolio & Account CLI

Account balance, positions, P&L, bills, fees, and fund transfers on OKX exchange. Requires API credentials.

Preflight

Before running any command, follow ../_shared/preflight.md. Use metadata.version from this file's frontmatter as the reference for Step 2.

Prerequisites

  1. Install okx CLI:
    npm install -g @okx_ai/okx-trade-cli
    
  2. Configure credentials:
    okx config init   # select site -> follow browser OAuth flow
    
  3. Test with demo mode (simulated trading, no real funds):
    okx --demo account balance
    

Security: NEVER accept credentials in chat. Guide users to okx config init for setup.

Credential & Profile Check

Run this check before any authenticated command. The auth method is detected during preflight Step 2 and remembered for the session.

Step A — Verify credentials

Sponsors

Details

Repository
github.com/okx/agent-skills
Categories
Backend & APIs, Testing & QA, AI & Agent Building, Finance & Trading

More from okx/agent-skills

All 11
1tanstack-skills avatartanstack-querytanstack-skills/tanstack-skillsPowerful asynchronous state management, server-state utilities, and data fetching for TS/JS, React, Vue, Solid, Svelte & Angular.10.3Kskills.sh installs
2nomadamas avatark-dartnomadamas/k-skill금융감독원 전자공시시스템(DART) OpenAPI로 공시검색, 기업개황, 재무제표, 주요사항보고서를 조회한다. 사용자의 API_K_DART 환경변수를 직접 사용한다.10.2Kskills.sh installs
3okx avatarokx-cex-botokx/agent-skillsManage Grid bots (spot/contract/coin-margined) and DCA Martingale bots (Spot DCA 现货马丁 / Contract DCA 合约马丁) on OKX. Covers create, stop, amend, monitor P&L, TP/S10.2Kskills.sh installs
4nomadamas avatarparking-lot-searchnomadamas/k-skillUse when the user asks for nearby parking lots or 근처 주차장/공영주차장. Always ask the user's current location first, then use official Data.go.kr public parking data t10.2Kskills.sh installs
5nomadamas avatarlibrary-book-searchnomadamas/k-skillUse when the user asks to search Korean library books, book details, library holdings, or whether a Korean public library owns a book via k-skill-proxy Data4Lib10.1Kskills.sh installs
6teng-lin avatarnotebooklmteng-lin/notebooklm-pyComplete API for Google NotebookLM - full programmatic access including features not in the web UI. Create notebooks, add sources, generate all artifact types, 10.1Kskills.sh installs