All
FAQ
Announcements
Product documents
How can I do derivatives trading with the Jupyter Notebook?
There are two position (order placement) modes when trading EXPIRY and PERPETUAL: long/short and buy/sell (net). You can change the position (order placement) mode between long/short and buy/sell (net), via the API Set position mode: result = accountAPI.set_position_mode( posMode = "long_short_mode" ) print(result) Or alternatively, you can do it via Settings on the web as below: In buy/sell (net) mode, the position of a certain contract is the net quantity of your buy and sell trades.Published on 28 Sept 2023Updated on 12 Feb 2026193Zero-Knowledge Proofs: what are zk-STARKs and how do they work? (zk-STARK V1)
Building constraints: in order to prove the liability of our exchange, we state three claims: Claim 1: We accumulated every user's values correctly, including the value of each crypto and net value of each user Claim 2: The exchange has not forged a virtual user whose net value is negative to reduce the total exchange liability (An individual user having negative balances is acceptable only if her/his net value is above 0) Claim 3: The total value that the exchange claims accounts for every singlePublished on 10 May 2023Updated on 8 Sept 2025178How do I track the cost price of my spot trades?
Average cost price = (Average cost price before last buy × Amount + Price of last buy × Amount) / Net buying amount Cumulative Cost Price = (Cumulative buying value – Cumulative selling value) / Net buying amount Visit here to learn more.How do I track the cost price of my spot trades?Published on 5 Sept 2024Updated on 18 Mar 202626Crypto profit & loss analysis (PnL) FAQ
Cryptos with a net value of less than $10 are not displayed.3. Is the asset and PnL data shown in Crypto PnL Analysis updated in real time? The number of assets changes in real-time, but there is a 5-10 minute delay in PnL.4. Is Crypto PnL analysis sharing available for all cryptos? No, stablecoins do not support PnL sharing at the moment.5. How is cumulative PnL calculated? When the total value of crypto assets is greater than $10, the system will start calculating the cumulative PnL.Published on 22 Aug 2023Updated on 3 Mar 2026103Zero-Knowledge Proofs: what are zk-STARKs and how do they work? (zk-Stark V2)
the inclusion of their net value in the total value However, revealing these balances can compromise user privacy.Published on 21 Oct 2024Updated on 11 Feb 202690OKX Trading Rebate Card - Terms and Conditions
The trading fee rebate amount equals the net trading fee amount (exclude the maker rebate if any of your transaction involves a trade by market makers with negative trading fees) you paid each day on UTC+8.Terms and conditions Please note that the value of the rewards may fluctuate and may not be equal in value at the time a recipient has the ability to withdraw based on market fluctuation. Prices of digital assets, including stablecoins, can and do fluctuate at any moment.Published on 9 Oct 2023Updated on 8 Jan 2026329OKX API FAQ
If it's a buying and selling mode, or a cryptocurrency or leveraged transaction is conducted under the opening and closing mode, posSide only supports net or no transmission.Which interface can be used to obtain the contract face value and minimum order quantity? You can use the interface to obtain basic information of trading products here. contract face value: ctVal, minimum order quantity: minSz.What's the format of instId?Published on 20 Sept 2024Updated on 3 Mar 2026131What's OKX Affiliate Program?
This includes: Spot, Futures, Perpetuals, and CeDeFi Trading (where available; product availability may differ by region) Note: If an invitee's counterparty has a negative trading fee rate, the final commission will be calculated based on the actual net trading fees incurred. You will not receive commissions if any of the following conditions are met: The trader's transactions involve cryptocurrencies that do not incur fees.Published on 27 Sept 2023Updated on 16 Mar 20263,170Why is my deposit/withdrawal suspended?
Mainnet is a fully deployed and operational blockchain network, in contrast to a test net. This public blockchain infrastructure requires a consensus among the community before a transaction can be executed. When the mainnet goes live, the infrastructure is accessible to developers everywhere to use and build on. What's a mainnet upgrade? Mainnet upgrade is necessary, in order to facilitate a project's development.Published on 31 Aug 2023Updated on 26 Jan 2026975Trading Fee Rules FAQ
For futures and options trading, the realized profit after closing a position is the net profit after deducting trading and funding fees. The difference between the profit when holding and after closing a position is due to these trading and funding fees. For example, in a BTCUSDT perpetual contract, if your current position value is 20,000 USDT with a floating profit of 15 USDT, the opened trading fee is -4 USDT, the closed trading fee is -5 USDT, and the funding fee is -1 USDT.Published on 22 Mar 2024Updated on 17 Mar 20261,071What is Proof of Reserves (PoR) user snapshot data?
OKX has implemented Proof of Reserves (PoR) and introduced a net asset snapshot feature. This snapshot captures any debts or negative equity that may arise from borrowing assets. If you notice any discrepancies between your asset overview display and the snapshot result, it could be due to margin trading positions in your trading account or loans (such as flexible loans or fixed term loans) in your Grow account.Published on 20 Jan 2023Updated on 4 Mar 2026488
Showing 1-11 of 11 articles