What problem does it solve? Executing trades on OKX through an AI agent requires correct order parameters, contract sizing, margin modes, and credential handling; this Skill encodes the exact CLI commands, sizing rules, and safety checks so agents place and manage orders without parameter errors. ## Core Features & Use Cases - Multi-instrument order management: Place, cancel, amend, and query spot, perpetual swap, delivery futures, options, and event contract orders, including TP/SL, trailing stop, trigger, chase, iceberg, and TWAP algo orders. - Contract sizing and leverage control: Convert USDT notional or margin amounts to contract counts using ctVal, and set leverage per instrument with cross or isolated margin. - Event contract trading: Discover prediction-market series, read market-implied probabilities, and trade Yes/No or Up/Down outcomes with settlement tracking. - Use Case: A user says "long BTC perp with 500 USDT margin at 10x and set a stop loss at 88000" — the Skill resolves sizing mode, confirms parameters, places the swap order with attached SL, and verifies the position afterward. ## Quick Start Ask the agent to buy 0.01 BTC at market price on OKX spot in demo mode after running okx config init to set up credentials.