What problem does it solve? Executing and managing trades on the OKX exchange normally requires manual work in the web UI or writing custom API integrations. This Skill lets an AI agent place, amend, cancel, and monitor orders across spot, perpetual swap, delivery futures, options, and event contracts through the okx CLI, with built-in safeguards for credentials, demo/live mode, and order sizing. ## Core Features & Use Cases - Multi-instrument order management: Place market/limit orders, set leverage, close positions, and query orders, fills, and positions for spot, swap, futures, and options instruments. - Conditional and algo orders: Attach take-profit/stop-loss, trailing stops, and advanced algo types (trigger, chase, iceberg, TWAP) with self-trade prevention and auto-cancel-on-close options. - Options and event contracts: Query option chains and Greeks, trade calls/puts with buyer/seller margin modes, and trade binary prediction-market event contracts (Yes/No, Up/Down). - Use Case: A user says "long BTC perp with 500 USDT margin at 10x and set a stop loss at 88000" — the Skill verifies credentials and contract face value, confirms sizing mode, 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.