计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
okx-cex-portfolio【效率与协作】Inspect OKX account balances, positions, PnL, bills, fee levels, and related account state on Zo. Use when the user asks about holdings, positions, realized or unrealized PnL, transfers, or account configuration.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Inspect OKX account state on Zo, including balances, positions, PnL, bills, fees, and selected account operations.
Before running any OKX command in this session, follow ../_shared/preflight.md.
Use metadata.version from this file as the comparison version for drift checks.
okx account ... commandsZo secrets are the source of truth for:
OKX_API_KEYOKX_SECRET_KEYOKX_PASSPHRASEIf local OKX config is needed, generate it from those secrets on the Zo machine instead of asking the user to paste credentials into chat.
npm install -g @okx_ai/okx-trade-cli
Ensure OKX secrets exist in Settings > Advanced.
Generate local config from Zo secrets if required by the CLI flow:
mkdir -p /root/.okx
cat > /root/.okx/config.toml <<EOF
default_profile = "demo"
[profiles.demo]
api_key = "${OKX_API_KEY}"
secret_key = "${OKX_SECRET_KEY}"
passphrase = "${OKX_PASSPHRASE}"
demo = true
[profiles.live]
api_key = "${OKX_API_KEY}"
secret_key = "${OKX_SECRET_KEY}"
passphrase = "${OKX_PASSPHRASE}"
EOF
okx config show
Authenticated commands must always use an explicit profile:
demoliveIf the user has not specified a profile and none is clearly established in the conversation, ask before proceeding.
okx --profile demo account balance
okx --profile demo account positions
okx --profile demo account positions-history
okx --profile demo account bills
okx --profile demo account fees --instType SPOT
okx --profile demo account config
demo or live.okx-cex-marketokx-cex-trade