How do total Profit and Loss (PnL) and Grid profits work for Spot Grid?

Published on Jun 20, 2025Updated on Apr 30, 20265 min read

1. What is the difference between total profit, grid profit, and unpaired profit in a strategy?

Total profit represents the overall profit or loss of your grid strategy at any given moment. It is the most accurate indicator of your grid strategy’s performance, combining both realized and unrealized profits.

Grid profit and unpaired profit are components of total profit and are displayed separately to help you understand the details. Please note that both grid profit and unpaired profit are based on theoretical calculations and are for display purposes only; they are not actual profits.

[Image]

2. How is total profit calculated?

Total profit reflects the ever-changing profit and loss of your grid strategy. It is a floating value, composed of grid profit and unpaired profit and also takes into account any other operations such as deposits or withdrawals.

For example, if you start a grid strategy with 100 USDT, and your current total asset valuation of the grid strategy (estimated in USDT based on market price) is now 200 USDT, your total profit will be 200-100 = 100 USDT. This value includes all components: realized profits from executed trades, trading fees, and unrealized profits.

3. How is grid profit calculated?

Grid profit is an estimated figure, representing the sum of profits from completed grids (after deducting trading fees). Grid profit = ∑ profits from completed grids. Essentially, it is the aggregation of all individual grid profits recorded in the trading history. Grid profit is for display purposes only and does not take into account other elements included in total profit.

1. How to calculate grid profit for an order group

Single grid profit example: This includes one buy and one sell trade on the BTC/USDT pair (refer to the table above):

BTC Price (USDT) Order Quantity (BTC) Actual Fee Deducted (Assume fee rate = 0.1%) Notes
Buy 100,000 0.00005222 0.00000005222 BTC Buy BTC/USDT, fee deducted in base currency BTC
Sell 101,000 0.00005216 0.00526816 USDT Sell BTC/USDT, fee deducted in quote currency USDT

2. Case Analysis

1. The fee currencies for buy and sell are different, resulting in slightly different buy and sell amounts

Since the BTC trading fee has been deducted, the net BTC obtained after the buy is slightly less. In this example:

  • Buy quantity: 0.00005222 BTC
  • Buy fee: 0.00000005222 BTC
  • Net BTC obtained: 0.00005222 - 0.00000005222 = 0.00005216778 BTC
  • Sell quantity: 0.00005216 BTC
  • This results in a very small remaining BTC balance

2. Rounding and fee-generated remaining BTC

After selling BTC/USDT, the remaining BTC in the grid strategy (0.00000000778 BTC) can be ignored. This is because:

  • Buy and sell fees are charged in different currencies.
  • Exchange trading rules may prevent selling such a small amount (as it is below the minimum tradable amount).
  • This remaining BTC will stay in the grid strategy until it stops, at which point it will be returned to your wallet.

3. How is grid profit estimated in this case?

Below is the estimated grid profit for the displayed order group:

  1. Assume the buy and sell concepts are the same For calculation purposes, we use the executed sell amount to align the quantities on both sides of the trade, i.e., 0.00005216 BTC.
  2. Calculate gross profit (before fees) Use the price difference between buy and sell:
    1. Gross profit = 0.00005216 BTC × (101,000 - 100,000) = 0.05216 USDT
  3. Deduct fees (calculated in USDT)
    1. Sell BTC/USDT fee (as shown in the table): 0.00526816 USDT
    2. Buy BTC/USDT fee, converted to USDT: = 0.00005216 BTC × 100,000 USDT/BTC × 0.1% = 0.005216 USDT
  4. Estimated grid profit
    1. Grid profit = Gross profit - Buy fee - Sell fee
    2. Grid profit = 0.05216 - 0.005216 - 0.00526816 = 0.04167584 USDT

4. How is unpaired profit calculated?

Unpaired profit is the portion of total profit that cannot be attributed to completed grids: Unpaired profit = Total profit - Grid profit. For example, when only the buy side of a strategy has been filled and the corresponding sell order is still pending, the displayed profit is unpaired profit. Like grid profit, unpaired profit is for display purposes only and does not take into account other elements included in total profit.

5. Why can’t all grid profits be withdrawn?

Although grid profit represents the estimated realized profit from completed grid cycles, it does not always reflect the full amount you can withdraw. The following factors may affect the withdrawable profit:

  • You have already withdrawn part of the grid profit from the same grid strategy.
  • If you have performed parameter modification or added investment, the grid profit may have been fully reinvested, and the withdrawable amount will be reset to zero.
  • Grid profit is an approximation and includes rounding differences or estimated fees. In some cases, if the remaining amount is below the exchange’s minimum trading size, a tiny remaining amount may also be retained in the grid strategy, meaning a portion of the grid profit needs to be reserved to support future closing orders.

Kind Reminders:

  1. If you have enabled Simple Earnings distribution, profits attributed to Simple Earnings interest will be displayed under Simple Earn.
  2. Grid profit and unpaired profit are only approximations and are for display purposes only, not guaranteed profits. Minor differences may occur due to rounding.
  3. Actual trading fees depend on the execution type (maker or taker) and your account level.
  4. Total profit remains the most accurate and comprehensive representation of your grid strategy’s actual profit and loss. Grid profit and unpaired profit are both theoretical calculations for display only and are not actual profits.
  5. The system will calculate and provide the maximum amount that can be safely withdrawn, ensuring that after withdrawal, your grid strategy still has enough balance to support open orders and allow the grid strategy to continue operating as expected. Withdrawing the maximum grid profit will not affect the ongoing operation of the grid strategy.