executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
okx-cex-portfolioInspect 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.
Independent GitHub snapshot · Automated classification · Original documentation governs
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