How Total Profit and Loss (PnL) and Grid Profits Work for Spot Grid Trading

ยท

Understanding Total PnL, Grid Profits, and Unpaired PnL

Total PnL represents your Spot Grid bot's comprehensive performance metric, combining both realized and unrealized gains/losses. This figure gives you the most accurate snapshot of your bot's financial performance at any given moment.

Grid Profits and Unpaired PnL are subcomponents that make up the Total PnL:

๐Ÿ‘‰ Master Spot Grid trading strategies

Important Note: If you've enabled Simple Earn Allocation, any Earn-generated profits appear separately under "Simple Earn earnings."

Calculating Total PnL

Total PnL = Current Bot Equity - Initial Equity ยฑ (Top-ups/Withdrawals)

Example Calculation:

This includes:

Grid Profits Calculation

Grid Profits estimate realized gains from completed grid cycles using this formula:

Grid Profit = (Sell Price - Buy Price) ร— Amount - Fees

Fee Structure:

Example Transaction Group

TransactionAmount (BTC)Price (USDT)Fee
Buy0.00005222100,0000.00000005222 BTC
Sell0.00005216101,0000.00526816 USDT

Profit Calculation:

  1. Gross Profit: 0.00005216 BTC ร— (101,000 - 100,000) = 0.05216 USDT
  2. Deduct Fees:

    • Buy Fee: โ‰ˆ0.005216 USDT
    • Sell Fee: 0.00526816 USDT
  3. Net Grid Profit: 0.05216 - 0.005216 - 0.00526816 = 0.04167584 USDT

Note: Small discrepancies may occur due to rounding and currency-specific fee deductions.

Unpaired PnL Calculation

Unpaired PnL = Total PnL - Grid Profits

This component typically includes:

๐Ÿ‘‰ Optimize your trading bot performance

Withdrawal Considerations for Grid Profits

Several factors may limit withdrawable amounts:

  1. Previous withdrawals from the same bot
  2. Grid edits or additional investments (may reset withdrawable amount)
  3. Rounding differences and fee approximations
  4. Minimum trade size requirements

The system automatically calculates the maximum safe withdrawal amount to ensure your bot continues operating effectively.

FAQ Section

Q: Why does my Grid Profit estimate differ slightly from actual withdrawals?
A: This occurs due to fee currency differences, rounding, and minimum trade size requirements. The system prioritizes bot stability when determining withdrawable amounts.

Q: How often should I check my Total PnL vs. Grid Profits?
A: Regular monitoring of both metrics gives you the most complete picture of your bot's performance. Total PnL shows overall health while Grid Profits demonstrate trading efficiency.

Q: What happens to residual amounts left in my bot?
A: Any amounts below minimum trade sizes remain in your bot until you stop it, at which point they're returned to your wallet.

Q: Can I improve my Grid Profits?
A: Yes, by optimizing your grid parameters (price range, number of grids) and selecting volatile trading pairs with sufficient liquidity.