All
FAQ
Announcements
Product documents
How can I do spot trading with the Jupyter Notebook?
In the example below, you are about to place a market order to buy BTC that is worth 100 USD. 1 # market order 2 result = tradeAPI.place_order( 3 instId="BTC-USDT", 4 tdMode="cash", 5 side="buy", 6 ordType="market", 7 sz="100", 8 tgtCcy="quote_ccy" # this determines the unit of the sz parameter. 9 ) 10 print(result)10.4 How can I use the client order ID parameter clOrdId?Published on Sep 29, 2023Updated on Sep 10, 2025552Trading Fee Rules FAQ
Trader A became a maker of this trade, so the Trading fee = 0.08% × 20,000 = 16 USDT, and A will receive 19,984 USDT after fee deducted.Published on Mar 22, 2024Updated on Apr 15, 20261,081Event Contracts FAQ
Example: A user holds 500 Up shares for the event “Will BTC be above 85,000 USDT before 16:00?” At 16:00, the OKX index price = 85,312 USDT (above 85,000 USDT): Settlement result: Up wins Auto-credited to account (before fee deduction): 500 × 1.00 = 500.00 USDTHow does the platform handle disputed results? If there is a dispute over the settlement result, the platform will handle it through a review process. Triggering a review may delay settlement.Published on Apr 16, 2026Updated on Apr 22, 2026Copy trading FAQ
After they reach this number, copy traders can't copy any more positions that the lead trader opens.16. What factors could cause a lead trade to fail in copy trading?Published on Sep 15, 2023Updated on Jan 21, 2026OKX API FAQ
A minimum Assets Under Management (AUM) balance of 100 USD is required to create an API key.Published on Sep 20, 2024Updated on Apr 20, 2026137What's Spot DCA (Martingale) bot and how to use it?
For example, with a safety order amount = 100 USDT, multiplier = 2. Safety orders will be placed: 100 = (2*0 × 100) 200 = (2*1 × 100) 400 = (2*2 × 100), and more Price steps multiplier: applied to the price step for placing the next safety order. It increases or decreases the price gap between safety orders. For example, with a price step = 1%, multiplier = 2.Published on Nov 13, 2024Updated on Feb 9, 202629OKX ZERO Trading Fees event FAQs
The rebate cards will be credited in nominals of 100 USDT each The maximum value of rebate card distributed per user will be 2,000 USDT, distributed in 20 instances. After trading $100,000 and using up the existing rebate card balance, you will receive the next 100 USDT rebate card within 20 minutes - up to a maximum of 2,000 USDT trading fee rebate per user.9. How do I use the fee rebate card? The rebate cards will be credited in nominals of 100 USDT each.Published on Jul 6, 2023Updated on Apr 3, 202638Trade and Earn FAQ
You must achieve a net deposit ≥ 100 USDT, maintain the net deposit in your account for 3 consecutive days, and accumulate an eligible trading volume of 100 USDT equivalent in the specified tokens. Rewards are limited and will be distributed on a first-come, first-served basis. Note: Net deposit = eligible deposits − withdrawals.Q: When will the new user basic task reward be distributed?Published on Mar 30, 2026Updated on Apr 9, 20266OKX x McLaren NFT Sweepstakes Terms & Conditions
The Sweepstakes is divided into 16 entry periods, each one of which corresponds with a race McLaren Racing’s 2024 season, starting with the Canadian Grand Prix, plus an additional 17th post-season entry period (each, an “Entry Period”). Click here for a current schedule. Each of the first 16 Entry Periods will start at 10:00 AM GMT on the Friday before the race and end at 10:00 AM GMT on the Monday after the race.Published on Apr 25, 2024Updated on Sep 8, 2025607Rewrite The System KOL terms and conditions
Affiliates will be rewarded according to the table below: Number of Qualified Users Reward (USDT) Less than 10 10 per user 10 100 30 250 80 500 More than 100 700 This promotion should not be construed as a recommendation or an offer to buy or sell digital assets or any other financial products. Digital assets may be susceptible to fraud and involve a high level of risk. The value of digital assets can increase or decrease over a short period of time, and can become worthless.Published on May 15, 2023Updated on Nov 17, 202521What's a token airdrop?
OKX Wallet supports over 100 networks and has OKX DEX, a multi-chain and cross-chain DEX, OKX Earn, a one-stop on-chain investment tool, OKX Marketplace, a multi-chain NFT aggregator, and DApp Discover. Through our Wallet, you can easily access 1,000+ DApp protocols and explore the Web3 world with just one wallet. However, airdrops have become a target for scams due to their popularity.Published on Aug 10, 2023Updated on Apr 16, 20264,448How do I avoid liquidation with trading tools and features?
Liquidation happens when the level reaches 100% and the margin call alert is at 300% (TBA). Always monitor your margin level Use stop-loss orders: a stop-loss order automatically closes your position when the market price reaches a predetermined level, limiting potential losses. Adjust leverage levels: modify your leverage as you prefer. As using high leverage increases the risk of liquidation, consider using lower leverage to reduce potential losses.Published on Aug 2, 2024Updated on Nov 17, 202516How can I do derivatives trading with the Jupyter Notebook?
6.1 Place a limit order via Place order Buying 100 BTC-USDT Swap contract at the price of 19000 USDT. # limit order result = tradeAPI.place_order( instId = "BTC-USDT-SWAP", tdMode = "isolated", side = "buy", posSide = "net", ordType = "limit", px = "19000", sz = "100" ) print(result) if result["code"] == "0": print("Successful order request,order_id = ",result["data"][0]["ordId"]) else: print("Unsuccessful order request,error_code = ",result["data"][0]["sCode"], ", Error_message = ", result["dataPublished on Sep 28, 2023Updated on Feb 12, 2026197How do total Profit and Loss (PnL) and Grid profits work for Spot Grid?
Example: If you started a bot with 100 USDT, and the current bot equity is 200 USDT, your Total PnL = 200 - 100 = 100 USDT. This figure includes: Realized profits from completed trades Trading fees Unrealized PnL from open positions Any applicable Earn interest (if enabled)How's the field "Grid Profits" calculated? Grid Profits represent the estimated realized gains from completed grid cycles—each cycle being one buy followed by one sell.Published on Jun 20, 2025Updated on Nov 26, 202556Trading Signal Bot FAQs
Live trading: up to 500 Demo trading: up to 100 Note: the figures above are for reference only and may be adjusted over time.21. How long does it take for assets to reach my trading account after a signal bot ends? Once the settlement period is over, your assets will be credited to your trading account.Published on Oct 9, 2023Updated on Apr 18, 2026136