LogoLogo
  • Getting Started
    • πŸ“‹Overview
    • πŸ“œTable of Contents
    • βš”οΈVertex Edge
  • Basics
    • πŸŽ₯Products
    • ⚑DEX Architecture & Design
    • 🧡Unified Cross-Margin
    • βœ‚οΈIsolated Margin
    • ℹ️Subaccounts, Isolated Margin, and Health
    • ⏰Liquidations & Insurance Fund
    • πŸ’ΈPnL Settlements
    • πŸ“ŠPricing (Oracles)
    • πŸ’°Fees
    • πŸ“ˆFunding Rates
    • βš–οΈPerpetual & Spot Market Specifications
    • β˜‘οΈOne-Click Trading
    • πŸ”«Trigger Orders
    • ❔FAQs
  • Rewards
    • πŸ…Points & Gold
    • πŸ“ˆTrading Competition
  • Resources & Links
    • πŸ“–Glossary
    • πŸ”¬Open-Source Contracts
    • πŸ“ŠData Providers & Metrics
    • πŸͺŸMaintenance Windows & Status
    • 🏁Terms of Use
    • πŸ”Privacy Policy
    • 🌎Restricted Territory Updates
    • πŸ“ΈMedia Kit (Brand Assets)
  • Tutorials
    • 🏁Getting Started
    • β˜‘οΈOne-Click Trading
    • πŸ“¬Trading Basics
    • πŸ”΄Perpetual Trading
    • 🏷️Spot Trading
    • πŸ‘―Multiple Accounts
    • βš”οΈCross-Chain Deposits
    • πŸ”ŒTP, SL & Stop-Market Orders
    • πŸ”±Depositing & Withdrawing
    • ⚑Fast Withdrawals (Coming Soon)
    • πŸ”„Borrowing & Repaying
    • 🚧Margin Health
    • 🎱Pools
  • Developer Resources
    • πŸ”ŒAPI
    • 🌢️TypeScript SDK
    • 🐍Python SDK
    • πŸ‘½Rust SDK
    • πŸ—οΈContracts
Powered by GitBook
On this page
  • Account Value
  • Perpetual Settlements – Settled & Unsettled USDB
  1. Basics

PnL Settlements

Open position settlement and account value calculations on Blitz.

PreviousLiquidations & Insurance FundNextPricing (Oracles)

Last updated 1 year ago

PnL means β€œprofit and loss.” This metric is the current market value of a position minus the cost to open the position.

PnL = Market Value - Cost

On Blitz, you will find two PnL metrics:

  1. Perp PnL = Your total PnL across all open perpetual positions.

  2. Position PnL = A specific position’s PnL.

Perp PnL can be viewed by visiting the Blitz app pages:

Position PnL can be found in the Perp Positions tables on the Vertex app.

Users can also use Account Pins to pin Perp PnL to the top of their Blitz app screen and monitor across different page views.


Account Value

It is important to note:

Account Value does NOT equate to [ Assets - Borrows +/- Perp PnL ]

Instead:

Account Value = Assets - Borrows +/- Unsettled USDB

Balances will change constantly as USDB is automatically settled on the back-end from perpetual trading into balances.

Eventually:

There is no economic effect to traders, BUT Assets and Borrows will change over time as PnL is settled.

This process is covered in more depth below.


Perpetual Settlements – Settled & Unsettled USDB

First, it’s important to define two types of open positions within the context of settlement on Blitz.

1. Winners: Open positions with positive PnL.

2. Losers: Open positions with negative PnL.

A settlement happens when there is a transfer of USDB from Losers to Winners. At this point, balances are altered accordingly.

Since this process is happening continuously, the lifetime PnL of a perpetual trade can be broken down into two parts:

  • Unsettled USDB

  • Settled USDB

Unsettled USDB = USDB that is yet to be transferred between accounts.

  • If positive, users can expect the displayed amount to be deposited into their USDB balance.

  • If negative, users can expect the displayed amount to be removed from their USDB balance.

This happens continuously and automatically while holding an open position. There is no action required by users.

Settled USDB = PnL that has already been transferred to the current USDB balance on the Portfolio Overview page on the Blitz app.

Users can view their Unsettled USDB balance by clicking on the icon beside Perp PnL. There is also an Unsettled column in the Balances Table that displays it.

This will vary up and down depending on the volatility of positions.

  • It is NOT necessarily related to the lifetime PnL of positions. For example, a positive PnL CAN have a negative settlement, and a negative PnL CAN have a positive settlement, depending on how long the positions are held and how much they move.

Settlement History can be viewed by navigating on the Blitz app UI to:

  • Portfolio β†’ History β†’ Settlements Table

Closing a Position -- Settlements are automatic when closing a trade, and any remaining unsettled USDB will be realized into the USDB balance. When closing a position, any remaining unsettled USDB will be settled into the trader's USDB balance. This settlement will normally occur within a few minutes.

Changing USDB Balances -- Users with open positions will notice changes in USDB balances over time. This is due to PnL being settled on the back-end. It is normal behavior and will not affect the ability to trade.

What if users don’t have USDB and have negative PnL?

  • PnL will continue to settle. Users without USDB but positive account health will borrow USDB automatically.

Users are advised to keep note of the above section on PnL Settlements as they manage risk.

Portfolio Overview
Perpetual Positions
πŸ’Έ
Total Settlements
Page cover image