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, 2025546Trading 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 Mar 31, 20261,076How do I buy crypto and earn rewards?
You can earn rewards by following these steps: Opt in to the campaign through the app Buy at least €100 or $100 of any eligible crypto to lock in €5 in BTC reward. You may use USD, EUR, USDC, or USDG for the purchase.Published on Feb 19, 2026Updated on Mar 19, 20263OKX 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 Feb 12, 202638What'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 Oct 21, 2025Updated on Dec 6, 2025OKX 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, 2025607Buy crypto with rewards terms and conditions
Reward Structure and Qualified Buy Rules Eligible participants can earn a total of €50 in BTC rewards through a two-tiered system: Base Reward (€5 BTC): Earned upon completion of your first qualified buy of at least €100 or $100 using USD, EUR, USDC, or USDG. Milestone Reward (€45 BTC): Earned after completing 5 consecutive days of qualified buys (including the first buy).Published on Feb 19, 2026Updated on Mar 16, 2026OKX 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 Sep 20, 2024Updated on Mar 23, 2026133How 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, 2026195How 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, 202554Trading 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.Published on Oct 9, 2023Updated on Mar 31, 2026136Forced Loan Repayment, Credit Line Liquidation and Risk Unit Terms and Conditions
Threshold Warning & Restrictions Details 90% – 100% of limit + buffer Warning Alert triggered when net or gross delta is above 90% of limit. 100% – 130% of limit + buffer Withdrawal restricted Withdrawals will be limited when delta exceeds 100%, up to 130%. Both deltas must be ≤ 90% of the limit to avoid restrictions. ≥12 hours at 100%–130% + buffer or ≥ 130% +buffer Trading frozen All open orders will be canceled; opening new positions or spot trading will be disabled.Published on Mar 12, 2025Updated on Dec 9, 202531How do I buy crypto with BLIK?
Example: If a user wants to purchase BTC worth 100 PLN, the equivalent amount in EUR is calculated using the latest FX rate.Published on Aug 20, 2025Updated on Dec 31, 20255What 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 Dec 24, 2024Updated on Mar 27, 2026735