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 2026OKX 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 2026137Trade 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 30 Mar 2026Updated on 9 Apr 20266What'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 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 2026197How 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 20 Apr 202636What are Source of Funds (SoF) and Source of Wealth (SoW)?
If you purchase 100 USDC via the P2P trading on OKX, and the money used to buy the 100 USDC 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 18 Apr 2026768Where 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 202634Zero-Knowledge Proofs: what are zk-STARKs and how do they work? (zk-STARK V1)
We implement the extension_factor default as 16 and the sampling inspection default time as 16, so the security level will be 80 bits. Polynomial commitment: we calculate the hash value of the computation trace and corresponding user balance, user ID, and the value of the corresponding constraint polynomial for each row, and generate a Merkle tree. The Merkle root is the commitment value of the polynomial. Generating sampling proof: using the Merkle root as a random source, we sample the data.Published on 10 May 2023Updated on 8 Sept 2025179How do I create passkeys? (web)
You can reset the existing passkey or add a new one before removing any passkeys you no longer wish to keep.Create a passkey Before you create a passkey, make sure you at least have: A device with Windows 10 or macOS Ventura, or A mobile device running iOS 16.0.0 or Android 7.0 or later, or A USB security key that supports the FIDO2 protocol Make sure you're using a FIDO-supported browser with: Chrome 109 or above Safari 16 or above Edge 109 or above Log in to your account at okx.com and go to ProfilePublished on 16 Aug 2023Updated on 29 Jan 20264,268Where 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 22 Apr 202628OKX 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 202568