cdcx-advanced

A trading add-on for linked orders, where one order can cancel another or trigger protection after it fills. OCO means one-cancels-the-other, OTO means one-triggers-the-other, and OTOCO is a bracket with an entry, stop-loss, and take-profit.

In plain words
What is it for?
Use it to create or cancel OCO pairs, OTO orders, and OTOCO bracket orders, or to cancel an individual child order.
Why use it?
It removes the need to manage related entry, stop-loss, and take-profit orders separately. Authentication is required, and placing orders changes real trading state.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/crypto-com/cdcx-cli/cdcx-advanced
Any agent
npx skills add crypto-com/cdcx-cli --skill cdcx-advanced
Clone the repo
git clone --depth 1 https://github.com/crypto-com/cdcx-cli

Made for: Claude Code, Codex.

Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,299 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00027 $0.01299
Opus 5 $0.00014 $0.00649
Sonnet 5 $0.00005 $0.00260
Haiku 4.5 $0.00003 $0.00130

Measured 2d ago against content hash abccfb91b803, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cdcx-advanced scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/cdcx-cli/skills/cdcx-advanced/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Advanced Orders

When to Use

  • Place a stop-loss and take-profit that cancel each other (OCO)
  • Place an entry order that spawns a protection order when filled (OTO)
  • Place an entry with both a stop-loss and take-profit (OTOCO — "bracket order")
  • Manage or cancel an advanced order by its contingency ID

Requires authentication. All placement commands are tier mutate.

Order Types

Type Meaning Shape
OCO One-Cancels-the-Other 2 protection legs; one fill cancels the other
OTO One-Triggers-the-Other 1 entry leg + 1 protection leg (fires only after entry fills)
OTOCO Bracket 1 entry leg + 2 protection legs (stop-loss + take-profit)

Tools Used

Tool Purpose Tier
cdcx_advanced_oco Create OCO pair mutate
cdcx_advanced_create_oto Create OTO pair mutate
cdcx_advanced_create_otoco Create OTOCO bracket mutate
cdcx_advanced_cancel_oco Cancel an OCO by list ID mutate
cdcx_advanced_cancel_oto Cancel an OTO by list ID mutate
cdcx_advanced_cancel_otoco Cancel an OTOCO by list ID mutate
cdcx_advanced_cancel Cancel a single child order mutate
cdcx_advanced_cancel_all Cancel all advanced orders dangerous
cdcx_advanced_open_orders List open advanced orders sensitive_read
cdcx_advanced_order_detail Lookup by order_id / client_oid sensitive_read
cdcx_advanced_order_history Historical advanced orders sensitive_read
cdcx_advanced_order_list_detail Lookup by list IDs sensitive_read

Workflow

Each create-* command takes a single positional <order_list> — a JSON array of order objects. The order list captures the entire contingency in one request.

Read the full file on GitHub · 125 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 125 lines · 27 tokens per session scan A abccfb91b803

Subscribe to this mod's changes

cdcx-advanced is a skill published in the GitHub repository crypto-com/cdcx-cli (25 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 27 tokens to every session and 1,299 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

twitter-reader

Read Twitter/X for financial research using opencli (read-only). Use this skill whenever the user wants to read their Twitter feed, search for financial tweets, view bookmarks, look up user profiles, or gather market sentiment from Twitter/X. Triggers include: "check my feed", "search Twitter for", "show my…

himself65/finance-skills · 161 tokens

chenhao-limit-up

Use when evaluating A-share limit-up (涨停板) setups through Chen Hao's sentiment and momentum lens: market emotion cycles, board strength, follow-through, and short-term aggressive momentum trading.

questflowai/investorskills · 44 tokens

copy-trading-solana

Copy trade Solana wallets - mirror trades automatically.

alsk1992/CloddsBot · 15 tokens

southwest

Search Southwest Airlines fares and points pricing via Patchright browser automation. SW is not in any GDS or API. Covers all fare classes, Companion Pass value, and fare drop monitoring.

borski/travel-hacking-toolkit · 40 tokens

alpaca-trade-api-sdk

Integrate and build on the @alpacahq/alpaca-trade-api TypeScript SDK for the Alpaca Trading and Market Data APIs (the unified Alpaca client, ergonomic order builders, normalized market-data shapes, pagination, typed errors, resilience, and real-time streaming). Use when writing or reviewing code that imports…

alpacahq/alpaca-trade-api-js · 123 tokens

alphagbm-greeks

Greeks dashboard for any option contract or multi-leg position. Covers first-order Greeks (Delta, Gamma, Theta, Vega, Rho) and second-order Greeks (Charm, Vanna, Volga). Returns individual and position-level Greeks with scenario heatmaps. Use when: checking option sensitivities, managing position risk, understanding…

AlphaGBM/skills · 128 tokens