/cdcx-cli:cdcx-paper-strategyfrom cdcx-cli
Tests trading strategies against live market prices using the cdcx CLI paper trading engine. Supports market/limit orders, position tracking, and reset.
Ships in cdcx-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
CLI-only. Paper trading has no MCP tools — agents that need to paper trade must shell out to cdcx paper directly.
The paper engine is local (no API calls for order state — only for market prices). State lives in ~/.local/share/cdcx/paper/paper_account.json.
Fills use live mark prices fetched from the REST API at the moment the order is evaluated:
| Command | Purpose |
|---|---|
cdcx paper init --balance <n> | Create a new paper account (default 10000 USDT) |
cdcx paper buy <INSTRUMENT> --quantity <q> [--price <p>] | Buy (market if no price) |
cdcx paper sell <INSTRUMENT> --quantity <q> [--price <p>] | Sell |
cdcx paper positions | Open positions with unrealized P&L |
cdcx paper balance | Cash balance + realized P&L |
cdcx paper history | Fills log |
cdcx paper reset --balance <n> | Wipe state and start fresh |
All commands support -o json, -o table, -o ndjson.
cdcx paper init --balance 50000
cdcx paper balance -o json
# 1. Check current price
cdcx market ticker BTC_USDT -o json
# 2. Paper buy
cdcx paper buy BTC_USDT --quantity 0.01 -o json
# 3. Inspect open position
cdcx paper positions -o json
# 4. Close
cdcx paper sell BTC_USDT --quantity 0.01 -o json
# 5. Realized P&L shows up in balance
cdcx paper balance -o json
cdcx paper buy BTC_USDT --quantity 0.1 --price 49000 -o json
The limit sits in the paper engine until the market ticker crosses 49000. Check back with cdcx paper positions — until filled, the cash is reserved.
# Bootstrap
cdcx paper init --balance 100000
# Loop (external script / agent):
# 1. Read signal from cdcx market ticker / candlestick
# 2. Issue cdcx paper buy or cdcx paper sell accordingly
# 3. Call cdcx paper positions -o json to track running P&L
# Review
cdcx paper history -o json
cdcx paper balance -o json
cdcx paper reset --balance 100000
Wipes all positions, trades, and P&L; starts fresh with the specified balance.
cdcx invocations — use reset to start freshcdcx paper invocations using the then-current REST tickercdcx tui and press p to toggle LIVE/PAPER modeWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub crypto-com/cdcx-cli --plugin cdcx-cli13 skills in this plugin
/cdcx-advancedAdvanced contingency orders — OCO, OTO, OTOCO. Triggered orders with linked cancellation logic./cdcx-auth-setupCredential and profile management — configure API keys via the setup wizard, environment variables, or config file. Resolution order and troubleshooting./cdcx-autonomy-levelsProgressive agent autonomy — from read-only to fully autonomous. Pick the lowest level that gets the job done./cdcx-check-balanceVerify credentials and inspect account balance — the first action an agent takes before trading.Other plugins' skills for the same job