All
FAQ
Announcements
Product documents
How do I use the liquidation price calculator?
Select %Calculator located beneath the Buy (long) [crypto] Kickstart your calculation process Make sure you're in the PnL section on the pop-up and select Margin Buy or Margin Sell Select your type of margins Select the Margin mode Margin mode has to be selected to proceed to the calculation phase Insert your Leverage, Entry Price, Exit Price, and Amount Fill up the necessary details before proceeding to calculate the required margin, P&L, and P&L ratio Select Calculate for the result Calculate thePublished on Jul 3, 2024Updated on Jan 28, 202639Crypto profit & loss analysis (PnL) FAQ
How is the average cost of a crypto asset calculated in Crypto PnL Analysis? Average cost = (Average cost before the last purchase or deposit * Amount + Price of the last purchase or deposit * Amount) / Balance after the last purchase or deposit Note: price of the last deposit is the price at the moment of depositing7. How is the PnL calculated? PnL = (Last price - Average cost) * Current balance8. How is the PnL% calculated? PnL% = (Last price - Average cost) / Average cost9.Published on Aug 22, 2023Updated on Mar 3, 2026103How do I track the cost price of my spot trades?
How is the cost price calculated? The calculations are based on your spot trading history. You may choose to calculate by average entry cost or cumulative average cost in trading settings. 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 Sep 5, 2024Updated on Jan 30, 202626How do total Profit and Loss (PnL) and Grid profits work for Spot Grid?
Any profits from incomplete cycles are not reflected.How is the field "Unpaired PnL" calculated?Published on Jun 20, 2025Updated on Nov 26, 202548How do I use the custom formula feature?
Navigate to the Trading screen Select Advanced Select Custom Formula from the list of options Select Custom Formula from the Advanced option Enter your formula using mathematical operators For instance, you would like to compare SOL’s performance to BTC using SOL/BTC, or evaluate the stronger pair by calculating SOL/BTC – ETH/BTC You can create a formula using up to 10 pairs with +, -, /, and * operations Once a formula is created, the chart dynamically updates with candles that reflect the calculatedPublished on Mar 5, 2025Updated on Sep 10, 20253450,000 XPL X Drops Campaign Terms and Conditions
Any crypto assets held by a user in excess of €50,000 EUR will not be counted toward the reward calculation.Published on Dec 16, 2025Updated on Dec 26, 2025What is Proof of Reserves (PoR) user snapshot data?
as: snapshot equity = the USDC amount shown in "My Portfolio" - the USDT amount of the margin trading position liability ETH snapshot is calculated as: snapshot equity = ETH amount shown in "My Portfolio" + ETH amount of margin trading position assets - ETH amount of margin trading UPL Example: short ETH/USDC (i.e. borrow ETH and sell USDC) ETH snapshot is calculated as: snapshot equity = ETH amount shown in "My Portfolio" - ETH amount of margin trading position liabilities USDC snapshot is calculatedPublished on Nov 17, 2023Updated on Dec 11, 20251Forced Loan Repayment, Credit Line Liquidation and Risk Unit Terms and Conditions
Calculation of Total Discounted Assets: -Calculate the sum of each asset in each account / sub-account (inclusive of trading and funding accounts). -Multiply the above sum by a Discount Rate and Tier, applicable to each type of asset.Published on Mar 12, 2025Updated on Dec 9, 202529What is Proof of Reserves (PoR) user snapshot data?
as: snapshot equity = the USDT amount shown in "My Portfolio" - the USDT amount of the margin trading position liability ETH snapshot is calculated as: snapshot equity = ETH amount shown in "My Portfolio" + ETH amount of margin trading position assets - ETH amount of margin trading UPL Example: short ETH/USDT (i.e. borrow ETH and sell USDT) ETH snapshot is calculated as: snapshot equity = ETH amount shown in "My Portfolio" - ETH amount of margin trading position liabilities USDT snapshot is calculatedPublished on Jan 20, 2023Updated on Mar 4, 2026484Zero-Knowledge Proofs: what are zk-STARKs and how do they work? (zk-STARK V1)
You may first calculate your leaf by hashing your asset information, then verify whether your leaf is a valid leaf in the Merkle tree and root we publish. For example, in Figure 1, the user with an id of id_k will calculate hashk = hash("20" + "15" + "5" + "id_k" + "99821"), and the other data in the red square frame will be the Merkle path verification. An open source tool is provided for users to do this verification.Published on May 10, 2023Updated on Sep 8, 2025178Trading Fee Rules FAQ
How is the trading fee calculated? Instruments Calculation formulas of trading fees Spot/Margin Trading fee of Spot/Margin = Fee rate × Amount of bought or sold crypto when order filled.Published on Mar 22, 2024Updated on Mar 3, 20261,069How do I use the Futures Analysis tool?
Profit factor: which is calculated as the total profit divided by the total loss. It measures the effectiveness of a trading strategy in generating profit. Risk/reward ratio: which is calculated as the average PnL of losing positions divided by the average PnL of winning positions. It measures the average reward in comparison to the average risk of a position, providing insight into the balance between potential gains and losses.How can I use the Futures Analysis tool?Published on May 3, 2024Updated on Feb 12, 202679How do I use the Top account long/short ratio indicator?
Long/short ratio (Accounts) ratio is calculated as accounts with net long positions/ accounts with net short positions. The display of Top account long/short ratio indicatorHow do I turn on the Top account long/short ratio indicator?Published on May 16, 2024Updated on Nov 12, 202521OKX Trading Rebate Card - Terms and Conditions
If the valid usage period is the same, the earliest voucher received will be consumed first.How does Trading Fee Rebate calculation works?Published on Oct 9, 2023Updated on Jan 8, 2026323What is VIP Loan?
Margin Ratios are calculated by reference to the assets in the Risk Unit. Borrowers are responsible for managing the risk levels of the accounts within their Risk Unit. For further details on Risk Units and the Forced Loan Repayment process which applies to your VIP Loans, please refer to the Forced Loan Repayment, Credit Line Liquidation and Risk Unit Terms and Conditions.Published on Dec 16, 2025Updated on Jan 29, 2026