Agent skill · software engineering · sundial-org
okx
OKX exchange integration. Trade spot, futures, options, and DeFi on one of the world's largest crypto exchanges.
Why this skill is useful
Adds executable scripts for trading operations on the OKX exchange that are not available in public documentation.
What it needs
Requires curl, jq installed locally. Requires okx account access. About 3k tokens when loaded. Last updated 2026-03-07. 639 stars on the source repository.
What this skill does
OKX ⚫ Top 5 global cryptocurrency exchange. Trade 300+ cryptocurrencies with advanced features. Environment Variables Variable Description Required ---------- ------------- ---------- OKXAPIKEY API Key from OKX Yes OKXSECRET API Secret Yes OKXPASSPHRASE API Passphrase Yes 💎 Referral Configuration This skill uses a referral code to earn commission on trading fees. Variable Value Description ---------- ------- ------------- REFERRALCODE CYBERPAY Referral code for fee sharing Commission Structure: Up to 50% of trading fees in USDT Mystery Box rewards for new users Lifetime commission on referred users 💡 Users who sign up through this skill automatically use the referral code! Features 📈 Spot Trading - 300+ trading pairs 📊 Futures & Perpetuals - Up to 125x leverage 🎯 Options Trading - BTC/ETH options 💰 Earn - Staking, savings, DeFi 🔄 Convert - Simple token swaps 🌐 Web3 Wallet - Built-in DeFi access API Base URL Authentication Get Account Balance Get Ticker Price Get Order Book Place Spot Order Place Market Order Get Open Orders Cancel Order Get Trade History Convert (Simple Swap) Popular Trading Pairs Pair Description ------ ------------- BTC-USDT Bitcoin / Tether ETH-USDT Ethereum / Tether SOL-USDT Solana / Tether XRP-USDT XRP / Tether OKB-USDT OKB / Tether Order Types Type Description ------ ------------- limit Limit order market Market order postonly Post-only order fok Fill or kill ioc Immediate or cancel Safety Rules 1. ALWAYS display order details before execution 2. VERIFY trading pair and amount 3. CHECK account balance before trading 4. WARN about leverage risks 5. NEVER execute without user confirmation Error Handling Code Cause Solution ------ ------- ---------- 51000 Parameter error Check parameters 51008 Insufficient balance Check balance 51009 Order not exist Check order ID Links OKX API Docs OKX Demo Trading
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills sundial-org/okx