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 29 Sept 2023Updated on 10 Sept 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 22 Mar 2024Updated on 15 Apr 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 16 Apr 2026Updated on 22 Apr 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 15 Sept 2023Updated on 20 Apr 2026686OKX API FAQ
A minimum Assets Under Management (AUM) balance of 100 USD is required to create an API key.Published on 20 Sept 2024Updated on 20 Apr 2026137How do I calculate borrowing interest?
Interest-free quota Crypto Interest-free quota (Token amount) USDT 20,000 BTC 1 LTC 10 ETH 5 ETC 2000 XRP 5,000 EOS 500 BCH 5 BSV 5 TRX 30,000 LINK 50 DOT 50 ADA 500 ALGO 500 ATOM 20 CRV 100 FIL 10 DASH 2 IOST 10,000 IOTA 500 KNC 200 NEO 10 ONT 300 QTUM 100 THETA 100 SUSHI 30 SUN 20 XLM 1,000 UNI 20 XMR 2 XTZ 100 ZEC 2 YFI 0.01 YFII 0.12. Interest calculation and deduction Interest calculation time: Recorded every hour on the hour. Interest deduction time: Recorded every hour on the hour.Published on 20 Mar 2023Updated on 20 Apr 202669What are crypto-margined futures and USDT-margined futures? What are the differences?
Short position comparison Assuming 1 USDT ≈ 1 USD, when the price of BTC is $10,000: Crypto-margined perpetual futures: Use 0.1 BTC with 10x leverage to short 1 BTC, which is 100 contracts (contract size: $100 per contract). USDT-margined contract (linear contract): Use 1,000 USDT with 10x leverage to short 1 BTC, which is 100 contracts (contract size 0.01 BTC per contract).Published on 20 Mar 2023Updated on 20 Apr 2026203OKX 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 6 Jul 2023Updated on 3 Apr 202638OKX 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 25 Apr 2024Updated on 8 Sept 2025607Why did my perpetual futures open or close order fail?
There are assets and available amount, but 100% order placement shows insufficient balance If placing an order using 100% of your available balance fails: Try switching to contract quantity input instead of percentage. Manually reduce the quantity slightly. This usually happens because price fluctuations affect the required margin and fees. The higher the leverage, the more sensitive the required margin is to price changes.Why can’t I close a position? 1.Published on 31 Oct 2025Updated on 20 Apr 2026How do I deposit USD with International Wire transfer as a Singapore user?
As a Singapore user, why did I receive less than 100 USD in my OKX account after transferring 100 USD via international wire transfer? The final amount received may be lower due to fees. We deduct a 1.5 USD processing fee per transfer, and additional charges may be applied by your bank. We recommend checking with your bank for any extra fees that may apply.6. How do I check my cash deposit history?Published on 12 Mar 2025Updated on 3 Dec 20252What's the Spot Grid bot and how do I use it?
For example, if the price range is 100-400, and you set the grid quantity to 3 with arithmetic mode, it would create three grids: 100-200, 200-300, and 300-400. Grid mode: Arithmetic: maintains a consistent difference between each grid level (e.g., 1, 2, 3, 4). Geometric: maintains a consistent ratio between each grid level (e.g., 1, 2, 4, 8). Investment amount: this is the total amount of the selected currency the bot will use to place buy and sell orders across the grids.Published on 29 Apr 2025Updated on 17 Nov 20251How 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 2 Aug 2024Updated on 17 Nov 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 28 Sept 2023Updated on 12 Feb 2026197Forced Liquidation FAQ
The actual liquidation or position reduction price is determined based on the mark price when the maintenance margin ratio is ≤ 100%.5. What is the mark price? The liquidation price is based on the mark price, rather than the last price or the index price. On the market page, you can click Last Price in the upper-left corner to switch the price type displayed on the candlestick chart.Published on 4 Jul 2025Updated on 20 Apr 20267