npx claudepluginhub crypto-com/cdcx-cli --plugin cdcx-cliThis skill uses the workspace's default tool permissions.
- Validate a strategy before going live
Tests trading strategy logic on Kraken spot paper trading via CLI before risking live funds. Validates entry/exit signals, position sizing, rebalances, and error handling.
Executes trades for stocks, ETFs, options, crypto; analyzes markets, manages portfolios and orders via apcacli CLI for Alpaca Trading API. Use for buy/sell, market data, positions, account checks.
Opens paper long positions on Kalshi, Polymarket, Alpaca, or Coinbase rails. Validates rail/symbol/qty inputs, performs pre-trade risk checks, executes buys via Node.js CLI, and reports fills.
Share bugs, ideas, or general feedback.
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 mode