okx-cex-portfolio

Retrieve OKX account balances, positions, and P&L via okx-trade-cli.

100|2.3k|Updated May 14, 2026
One-click install
npx skills add https://github.com/dex-original/okx-agent-trade-kit --skill okx-cex-portfolio-dex-original
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: okx-cex-portfolio
Source: https://github.com/dex-original/okx-agent-trade-kit/tree/main/skills/okx-cex-portfolio
Command: npx skills add https://github.com/dex-original/okx-agent-trade-kit --skill okx-cex-portfolio-dex-original

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @okx_ai/okx-trade-cli, and includes scripts (resource) components.

What problem does it solve?

This Skill streamlines account balance, positions, P&L, and other portfolio management tasks on OKX exchange, saving time and improving efficiency for traders.

Core Features & Use Cases

  • Account Balance and P&L: Retrieve current trading account equity and unrealized/realized P&L.
  • Positions Management: View open positions, their size, average price, and P&L.
  • Account Bill and Fee Details: Check recent account bills and trading fees.
  • Fund Transfers and Position Modes: Transfer funds between accounts and change position modes.
  • Use Case: If a trader needs to know their account balance or wants to close a position, this Skill provides quick and easy access to this information.

Quick Start

Check your current account balance with okx account balance.

Frequently Asked Questions about okx-cex-portfolio

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check my OKX trading account balance and P&L?▼

You can check your OKX trading account balance and P&L by executing the `okx account balance` command, which retrieves current equity alongside unrealized and realized profit and loss figures.

Can I view open positions and account bills on OKX via command line?▼

Yes, you can view open positions, their size, average price, and recent account bills with trading fees on OKX by executing the designated portfolio management commands through the okx-trade-cli interface.

Does this OKX portfolio management tool require authentication?▼

Yes, this OKX portfolio management tool requires authentication to operate through the okx-trade-cli, ensuring secure retrieval of trading account information and execution of fund transfer commands.

How do I transfer funds between OKX accounts and change position modes?▼

To transfer funds between OKX accounts and change position modes, use the fund transfer and position mode commands provided by this Skill to automate execution via the okx-trade-cli dependency.

What is the best way to automate OKX CEX portfolio tracking?▼

The best way to automate OKX CEX portfolio tracking is using this Skill to streamline account balance, positions, P&L, and account bill retrieval, saving time and improving trading efficiency.