okx-cex-portfolio

Installation
Summary

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

  • Read and manage trading and funding account balances, open/closed positions, realized and unrealized P&L, transaction history, and fee tiers via CLI commands
  • Requires OKX API credentials configured locally; supports both live (实盘) and demo (模拟盘) profiles with mandatory profile selection before each command
  • Write operations (fund transfers, position mode switching) require explicit confirmation and credential verification; 401 errors trigger guided credential update workflow
  • Integrates with okx-cex-market for price data and okx-cex-trade for order placement; includes pre-trade balance checks and cross-skill workflows for common trading scenarios
SKILL.md

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
    
Related skills

More from okx/agent-skills

Installs
5.5K
GitHub Stars
115
First Seen
Mar 8, 2026