Order Execution
Order type selection, TWAP/VWAP algorithms, CEX and DEX execution, and mandatory human confirmation gates for AI trading agents.
Order Execution is a skill from the CLI Trader project that teaches trading agents how to translate trade decisions into properly structured and executed orders across centralized and decentralized venues. Built by the CLI Trader team, this skill bridges the gap between trade analysis and actual market interaction, ensuring that your agent selects the right order type, execution algorithm, and venue for each trade. Most importantly, it enforces a mandatory human confirmation gate — every live trade requires your explicit approval before execution, with no exceptions.
The skill covers an order type decision framework that matches market conditions to the appropriate order structure — market orders for urgent execution, limit orders for price-sensitive entries, and stop orders for risk management. For larger positions where market impact is a concern, the skill teaches TWAP and VWAP algorithmic execution, splitting orders across time intervals to achieve better average fill prices. The execution path section covers both CEX and DEX venues in depth. On the CEX side, the agent learns API-based order management with proper rate limiting, error handling, and order status tracking. On the DEX side, it covers aggregator routing for optimal swap execution, slippage tolerance configuration, and gas cost optimization. The skill always recommends paper trading first for any new strategy or venue, establishing a track record before risking real capital.
In a complete trading workflow, the agent receives a trade setup from upstream skills like technical analysis or signal research, constructs the optimal order based on position size and venue liquidity, and presents the fully specified order for your review. You see the exact venue, order type, size, limit price, estimated fees, and expected slippage before confirming. This human-in-the-loop design ensures that execution quality is maximized while maintaining your full control over every trade that touches real capital.
For the complete methodology — including formulas, decision trees, worked examples, and validation checklists — see the full Order Execution skill guide.