一键导入
cdcx-portfolio-intel
Read-only portfolio analysis — balances, positions, P&L, sub-accounts, fee rates, transaction history
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Read-only portfolio analysis — balances, positions, P&L, sub-accounts, fee rates, transaction history
用 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.
Verify credentials and inspect account balance — the first action an agent takes before trading.
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.
| name | cdcx-portfolio-intel |
| description | Read-only portfolio analysis — balances, positions, P&L, sub-accounts, fee rates, transaction history |
Requires authentication (CDCX_API_KEY/CDCX_API_SECRET or a configured profile).
| Tool | Purpose | Tier |
|---|---|---|
| cdcx_account_summary | Wallet balances (cash per currency) | sensitive_read |
| cdcx_account_balance_history | Historical balance snapshots | sensitive_read |
| cdcx_account_positions | Open positions with unrealized P&L | sensitive_read |
| cdcx_account_info | Master account + sub-accounts | sensitive_read |
| cdcx_account_subaccount_balances | Per-sub-account balances | sensitive_read |
| cdcx_trade_fee_rate | Account fee tier | sensitive_read |
| cdcx_trade_instrument_fee_rate | Instrument-specific fee rate | sensitive_read |
| cdcx_account_orders | Historical orders | sensitive_read |
| cdcx_account_trades | Historical fills | sensitive_read |
| cdcx_account_transactions | All transactions (fills, funding, etc) | sensitive_read |
| cdcx_market_ticker | Mark prices for P&L valuation | read |
Note: MCP tool names beginning with cdcx_account_orders/cdcx_account_trades/cdcx_account_transactions correspond to the history schema group which the account MCP service group also exposes.
cdcx account summary -o json
Returns per-currency balance with balance, available, reserved_qty, collateral_amount.
# 1. Cash
cdcx account summary -o json
# 2. Open positions (derivatives + margin)
cdcx account positions -o json
# 3. Mark prices for valuation
cdcx market ticker -o json
Combine: total equity = cash + Σ (position size × mark price) + Σ unrealized P&L. Break down by instrument; call out largest winners/losers.
cdcx account positions BTCUSD-PERP -o json
cdcx history orders BTC_USDT --limit 50 -o json
cdcx history trades BTC_USDT --limit 50 -o json
cdcx history transactions --limit 100 -o json
Time windows via --start-time / --end-time (ms since epoch).
cdcx trade fee-rate -o json # Account tier
cdcx trade instrument-fee-rate --instrument-name BTC_USDT -o json
Note: fee-rate commands live under trade, not account.
cdcx account info -o json # List master + sub-accounts
cdcx account subaccount-balances -o json # Balances per sub-account
cdcx account subaccount-transfer \
--from <sub_uuid_a> --to <sub_uuid_b> \
--currency USDT --amount 1000 # Transfer (mutate)
subaccount-transfer is tier mutate — requires acknowledged=true in MCP mode.
cdcx account balance-history --timeframe D1 -o json
Returns daily snapshots for building an equity curve chart.
account summary shows cash; account positions shows open derivatives/margin positions — both are needed for a full equity viewsubaccount-transfer moves real funds — treat as a mutatetrade group by the upstream API; don't expect them under account