Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
crypto-com avatar

Cdcx Execution

  • 1 installs
  • 24 repo stars
  • Updated July 28, 2026
  • crypto-com/cdcx-cli

Places, amends, cancels, and closes Crypto.com exchange orders with a safety-first model using dry-run and preflight checks.

About

Manages limit and market order placement, amendment, cancellation, and position closing on Crypto.com with tiered safety requiring acknowledgement or dry-run previews. A developer uses it to execute and manage trades programmatically via the CDCX MCP tools.

  • Two-tier safety model with dry-run and acknowledgement
  • Batch order placement and cancel-list support

Cdcx Execution by the numbers

  • 1 all-time installs (skills.sh)
  • Ranked #909 of 1,106 Finance & Trading skills by installs in the Skillselion catalog
  • Data as of Aug 2, 2026 (Skillselion catalog sync)
npx skills add https://github.com/crypto-com/cdcx-cli --skill cdcx-execution

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1
repo stars24
Last updatedJuly 28, 2026
Repositorycrypto-com/cdcx-cli

What it does

Places, amends, cancels, and closes Crypto.com exchange orders with a safety-first model using dry-run and preflight checks.

Files

SKILL.mdMarkdownGitHub ↗

Order Execution

When to Use

  • Place a LIMIT or MARKET order
  • Amend price or quantity of a live order
  • Cancel one or many open orders
  • Close an open derivatives position
  • Batch order placement

Requires authentication.

Safety Model

Every order command lives in one of two tiers:

TierCommandsBehaviour
mutateorder, amend, cancel, order-list, cancel-list, close-positionRequires acknowledged=true in MCP mode; CLI prompts unless --yes
dangerouscancel-allRequires --allow-dangerous on the MCP server

Always use --dry-run first to preview the request body.

Tools Used

ToolPurposeTier
cdcx_trade_orderPlace a new BUY or SELLmutate
cdcx_trade_amendAmend price/quantity of open ordermutate
cdcx_trade_cancelCancel a single ordermutate
cdcx_trade_cancel_allCancel every orderdangerous
cdcx_trade_order_listPlace up to 10 orders in one callmutate
cdcx_trade_cancel_listCancel up to 10 orders in one callmutate
cdcx_trade_close_positionClose an open position (async)mutate
cdcx_trade_open_ordersList open orderssensitive_read
cdcx_trade_order_detailLookup by order_id or client_oidsensitive_read

Workflow

Place a Limit Order (preferred path)

# 1. Preflight — verify funds and current price
cdcx account summary -o json
cdcx market ticker BTC_USDT -o json

# 2. Preview
cdcx trade order BUY BTC_USDT 0.01 \
    --type LIMIT --price 50000 \
    --dry-run -o json

# 3. Place
cdcx trade order BUY BTC_USDT 0.01 \
    --type LIMIT --price 50000 \
    --client-oid my-buy-001 \
    -o json

# 4. Confirm
cdcx trade order-detail --client-oid my-buy-001 -o json

Positional args: <side> <instrument> <quantity>. Side is BUY or SELL.

Market Order

cdcx trade order BUY BTC_USDT 0.01 --type MARKET -o json

For MARKET BUYs you can alternatively use --notional to spend a fixed USDT amount: cdcx trade order BUY BTC_USDT --type MARKET --notional 500.

Amend (Price / Quantity)

cdcx trade amend \
    --order-id 123456789 \
    --new-price 51000 \
    --new-quantity 0.01 \
    -o json

Both --new-price and --new-quantity are required — re-submit the original value for the field you don't want to change.

Cancel a Single Order

cdcx trade cancel --order-id 123456789 -o json
# or
cdcx trade cancel --client-oid my-buy-001 -o json

Cancel All (dangerous)

cdcx trade cancel-all BTC_USDT -o json      # Per-instrument
cdcx trade cancel-all -o json                # Every instrument — extreme caution

Omitting the instrument cancels everything account-wide. MCP mode rejects this unless the server was started with --allow-dangerous.

Close a Position

cdcx account positions BTCUSD-PERP -o json   # Find the position
cdcx trade close-position BTCUSD-PERP --type MARKET -o json

--type MARKET closes at market. --type LIMIT --price <p> closes with a working limit. --quantity <q> closes partially.

Batch Orders

cdcx trade order-list --order-list '[
    {"instrument_name":"BTC_USDT","side":"BUY","type":"LIMIT","price":"49000","quantity":"0.01"},
    {"instrument_name":"BTC_USDT","side":"BUY","type":"LIMIT","price":"48000","quantity":"0.01"}
]' -o json

Up to 10 orders per call. Use cdcx trade cancel-list with matching IDs to revert.

List Open Orders

cdcx trade open-orders BTC_USDT -o json      # Per-instrument
cdcx trade open-orders -o json                # All instruments

Notes

  • Always supply a --client-oid (≤36 chars) for correlation between your code and exchange records
  • --dry-run is free — use it before every live order while the strategy is new
  • The API rejects prices that don't match price_tick_size and quantities that don't match quantity_tick_size — get these from cdcx market instruments
  • close-position is async: the reply is an ack, not a fill. Verify with cdcx account positions afterwards
  • Historical fills live under cdcx history trades, not under trade

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.