All
FAQ
Announcements
Product documents
Trading Fee Rules FAQ
Trader A (Maker fee: 0.02%; Taker fee: 0.03%) bought 100 contracts of call options (notional is 1 BTC): If trader A is the taker when order filled, so the Trading fee = Min(0.03% × 0.01 × 1 × 100, 7% × 0.05 × 0.01 × 1 × 100) = 0.0003 BTC; If trader A is the maker when order filled, so the Trading fee = Min(0.02% × 0.01 × 1 × 100, 7% × 0.05 × 0.01 × 1 × 100) = 0.0002 BTC.Published on 22 Mar 2024Updated on 17 Mar 20261,071How 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 2025543What'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 12 Feb 2025Updated on 17 Nov 202511How 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 202515How 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 2026193How do I add margin for margin trading?
You can add 10% to 100% of the trading account funds. As the margin increases, the liquidation price will change; the more margin you have, the lower the risk of liquidation. The maximum amount you can add or reduce is displayed on the page.Increase or decrease margin in cross margin mode. In the cross margin mode, there is no additional button under the position. This is because the futures margin cross margin mode uses the entire value of a specific crypto as margin.Published on 20 Mar 2023Updated on 3 Feb 202635What are Source of Funds (SoF) and Source of Wealth (SoW)?
If you purchase 100 USDT via the P2P trading on OKX, and the money used to buy the 100 USDT comes from your salary, you only need to select Employment Income as the source of funds. Source of Wealth (SoW): refers to the origin of an individual's overall financial assets, typically accumulated over time through means such as employment, business ownership, investments, or inheritance.Published on 24 Dec 2024Updated on 4 Mar 2026719How do I use the block function in P2P trading?
OKX P2P is a peer-to-peer marketplace that supports over 100 local currencies and 700 payment methods, where people can trade crypto directly on their own terms. Sellers can set their own prices, while buyers can choose who they want to trade with. While peer-to-peer trading offers more flexibility, transactions don’t always go smoothly. Thankfully, you can use the block function to control who you want to trade with.Published on 11 Aug 2023Updated on 4 Mar 2026250Where do I find limits, fees and processing time details for cash withdrawal?
Example: If the fee is 2%, and you withdraw 100 USD, you’ll pay a 2 USD fee. If you withdraw 500 USD, the fee would be 10 USD. Percentage + flat fees This type of fee is a combination of both, so you'll pay a percentage of your withdrawal amount plus a fixed flat fee. Example: 1.5% + 1 USD fee If you withdraw 200 USD: 1.5% of 200 USD = 3 USD Plus 1 USD flat fee Total fee = 4 USD Actual fees being charged will be displayed on the Preview screen before you submit.Published on 23 May 2025Updated on 4 Mar 202634Where do I find limits, fees and processing time details for cash deposit?
Example: If the fee is 2%, and you deposit 100 USD, you’ll pay a 2 USD fee. If you deposit 500 USD, the fee would be 10 USD. Percentage + flat fees This type of fee is a combination of both, so you'll pay a percentage of your deposit amount plus a fixed flat fee. Example: 1.5% + 1 USD fee If you deposit 200 USD: 1.5% of 200 USD = 3 USD Plus 1 USD flat fee Total fee = 4 USD Actual fees being charged will be displayed on the Deposit Preview screen before you submit.Published on 23 May 2025Updated on 12 Feb 202627OKX Australia - New User Bonus Program
For example: If your task is to trade 100 AUD, then after you complete the task and receive the reward, you must keep a daily average portfolio value of at least 500 AUD (the exact required amount will be shown on the referral page) for a total of 30 days from the date the reward is issued. Reward calculation and distribution: The calculation of the reward(s) will be based on the BTC/AUD exchange rate on the day of distribution, as determined by the OKX platform on the distribution date.Published on 10 June 2024Updated on 17 Nov 202568What's OKX Security Assistant?
Only use this option for items you can 100% confirm are legitimate and must be retained. Items in the ignore list can be “released.” Once released, they’ll trigger alerts again if detected.Silent mode: disables pop-ups only Silent mode disables pop-up notifications, but detection results are still retained (usually shown via tray hover messages such as “unhandled risks exist”). It’s recommended only for short scenarios like meetings or presentations.Published on 15 Jan 2026Updated on 13 Feb 20266How to transfer crypto from Coinbase to OKX?
This article may be reproduced or distributed in its entirety, or excerpts of 100 words or less of this article may be used, provided such use is non-commercial. Any reproduction or distribution of the entire article must also prominently state: “This article is © 2025 OKX and is used with permission.” Permitted excerpts must cite to the name of the article and include attribution, for example “Article Name, [author name if applicable], © 2025 OKX.”Published on 19 June 2025Updated on 26 June 20256OKX API FAQ
The rise and fall value of the latest transaction price compared to the opening price of the K-line 24 hours ago/100% of the opening price of the K-line 24 hours ago. The above formula data can be obtained through the market interface here. What's the reason for the error message "51000 Parameter posSide error" when placing an order? You need to check the account mode first; buying and selling mode/opening and closing mode, which can be viewed here to obtain posMode.Published on 20 Sept 2024Updated on 3 Mar 2026128Trading bot FAQ
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 (for example, 1, 2, 3, 4). Geometric: maintains a consistent ratio between each grid level (for example, 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 12 Feb 2025Updated on 11 Dec 2025