Understanding Spot Grid Bot Total PnL and Grid Profit

·

What is the Difference Between Total PnL, Grid Profit, and Unpaired PnL?

Total PnL reflects the overall profit or loss of your trading bot at any given moment. It is an accurate snapshot of your bot’s performance, combining both realized and unrealized gains and losses.

Grid Profit and Unpaired PnL are components of Total PnL. They are displayed separately to help you better understand what drives your bot’s performance. However, both are estimates calculated using predefined methods and may not fully reflect real-time market changes or remain entirely accurate in fast-moving market conditions.

💡 Note: If you have enabled Simple Earn Allocation, any earnings generated through this feature will appear in a separate field labeled Simple Earn Income.

How is Total PnL Calculated?

Total PnL represents the change in your bot’s equity over time, accounting for all profits and losses. It is calculated by comparing the bot’s current equity (based on real-time market prices) to its initial equity at the time of creation, plus or minus any subsequent deposits or withdrawals.

Example:

If you started the bot with 100 USDT, and the bot’s current equity is 200 USDT, then Total PnL = 200 - 100 = 100 USDT.

This figure includes:

How is Grid Profit Estimated?

Grid Profit represents the estimated profit earned from completed grid cycles. Each cycle consists of one buy order followed by one sell order.

This calculation aggregates all individual profits from successful grid executions found in your transaction history. While Grid Profit offers a clear view of the amount generated from grid trading alone, it does not account for:

Therefore, Total PnL provides a complete picture of your bot’s performance. Grid Profit is intended as a reference and detailed breakdown.

Example: Calculating Grid Profit for an Order Group

Consider a Spot Grid Bot trading the BTC/USDT pair with one completed buy and sell order:

Order Amount (BTC)Filled Price (USDT)Actual Fee Deducted (0.1% fee rate)Notes
BUY0.00005222100,0000.00000005222 BTCFor buy orders, fees are deducted in the base currency
SELL0.00005216101,0000.00526816 USDTFor sell orders, fees are deducted in the quote currency

Important Notes:

Estimating Grid Profit in This Example

To estimate Grid Profit for this order group:

  1. Use a notional alignment for buy and sell quantities
    Align quantities using the executed sell amount: 0.00005216 BTC.
  2. Calculate gross profit (before fees)
    Gross Profit = 0.00005216 BTC × (101,000 – 100,000) = 0.05216 USDT
  3. Deduct estimated fees

    • Sell Fee (from table): 0.00526816 USDT
    • Buy Fee (estimated in USDT):
      0.00005216 BTC × 100,000 USDT/BTC × 0.1% = 0.005216 USDT
  4. Calculate estimated Grid Profit
    Grid Profit = Gross Profit – Buy Fee – Sell Fee
    Grid Profit = 0.05216 – 0.005216 – 0.00526816 = 0.04167584 USDT

⚠️ Disclaimer: This is only an estimate. Minor differences may occur due to rounding, fee currency variations, and actual execution types (maker/taker). Total PnL remains the most accurate and comprehensive representation of your bot’s actual profit and loss.

How is Unpaired PnL Calculated?

While Total PnL reflects the total profit or loss of your bot, it consists of two main components:

Simply put:
Unpaired PnL = Total PnL – Grid Profit

Unpaired PnL generally includes:

Like Grid Profit, Unpaired PnL is an estimate calculated using a predefined methodology and is for display purposes only. It helps provide a more detailed view of your bot’s performance.

Why Can’t I Withdraw All of My Grid Profit?

Although Grid Profit represents the estimated profit earned from completed grid cycles, the value does not always reflect the full amount available for withdrawal. Several factors can limit the withdrawable portion:

To ensure bot stability, the system calculates a safe maximum withdrawable amount. This allows your bot to retain sufficient balances to continue operating without affecting open or upcoming trades.

When you initiate a withdrawal, the system will provide the maximum amount that can be withdrawn without compromising the strategy’s performance. 👉 Explore advanced trading strategies


Frequently Asked Questions

What is the main difference between Total PnL and Grid Profit?
Total PnL provides a comprehensive overview of your bot’s performance, including realized profits, unrealized gains/losses, and fees. Grid Profit only estimates earnings from completed grid cycles and excludes open positions and unrelated costs.

Why does my Grid Profit not match my withdrawable balance?
Grid Profit is an estimate and may not account for prior withdrawals, reinvestments, fee deductions, or residual amounts locked due to exchange rules. The system calculates a safe withdrawal amount to ensure bot continuity.

Can Unpaired PnL become negative?
Yes, Unpaired PnL can be negative if your open positions or partially filled orders are currently at a loss. This is common during market downturns or high volatility periods.

How often are these metrics updated?
Total PnL updates in real-time based on market prices. Grid Profit and Unpaired PnL are recalculated periodically based on completed trades and current market conditions.

What happens to residual amounts when I stop the bot?
Any small leftover amounts in the bot (due to rounding or minimum trade limits) are returned to your spot wallet when the bot is terminated.

Is Grid Profit guaranteed?
No, Grid Profit is an estimate and can vary due to fee structures, market conditions, and execution details. Always refer to Total PnL for the most accurate performance assessment.