一键导入
cdcx-check-balance
Verify credentials and inspect account balance — the first action an agent takes before trading.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Verify credentials and inspect account balance — the first action an agent takes before trading.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Progressive agent autonomy — from read-only to fully autonomous. Pick the lowest level that gets the job done.
Advanced contingency orders — OCO, OTO, OTOCO. Triggered orders with linked cancellation logic.
Credential and profile management — configure API keys via the setup wizard, environment variables, or config file. Resolution order and troubleshooting.
Order placement and management — place, amend, cancel, close-position. Safety-first with dry-run and preflight checks.
Trade instruments that require isolated margin (e.g. RWA/equity perpetuals like SPYUSD-PERP). Covers the create-order flag, funding transfers, leverage adjustment, and the TUI M toggle.
Fetch and analyze market data — prices, orderbook depth, candles, recent trades
| name | cdcx-check-balance |
| description | Verify credentials and inspect account balance — the first action an agent takes before trading. |
Requires authentication.
# Are credentials resolvable?
cdcx account info -o json > /dev/null 2>&1 && echo ok || echo "auth not configured"
If this fails, redirect the user to cdcx setup or the cdcx-auth-setup skill.
cdcx account summary -o json
Response shape (trimmed):
{
"data": {
"total_available_balance": "10000.00",
"total_margin_balance": "12500.00",
"position_balances": [
{
"instrument_name": "USD_Stablecoin",
"quantity": "12500.00",
"market_value": "12500.00",
"total_available_balance": "10000.00",
"total_margin_balance": "12500.00",
"total_position_value": "0.00"
}
]
}
}
The top-level total_available_balance and total_margin_balance are account-wide. Per-asset detail lives in position_balances[].
cdcx account summary -o json | \
jq -r '.data.position_balances[] | select(.instrument_name=="BTC") | .quantity'
available=$(cdcx account summary -o json | \
jq -r '.data.total_available_balance // 0')
if awk -v a="$available" 'BEGIN{exit !(a+0 > 500)}'; then
cdcx trade order BUY BTC_USDT 0.001 --type MARKET -o json
else
echo "Insufficient USDT: $available"
fi
cdcx account summary -o json | jq -r '
"Margin: \(.data.total_margin_balance) USD · Available: \(.data.total_available_balance) USD"'
cdcx account summary -o json | \
jq -r '.data.position_balances[] | "\(.instrument_name): \(.quantity)"'
cdcx account subaccount-balances -o json
Returns balances for every sub-account under the master — useful for multi-account ops.
total_margin_balance and total_available_balance are valued in USD; position_balances[].quantity is in the native currencyposition_balances for the per-currency breakdown even though the user-facing concept is "balances" — do not confuse this with derivatives positions (that's cdcx account positions)cdcx account summary is tier sensitive_read — no acknowledgement required in MCP mode