Perp v2
Perp v2
  • About Perpetual Protocol
    • Social Links
    • Governance
    • v2 Era Ecosystem
    • PERP Token
  • Terms of Service
  • General
    • Wallets
    • Transfering Assets
    • Deposit & Withdrawal
    • Perpetual + Uniswap
    • FAQs
    • Guides
    • Legacy Reward Programs
    • Security
  • Hot Tub
  • Trading on Perp v2
    • How It Works
    • UI Overview
    • Perpetual Futures Basics
    • Trading Quick-start
    • Opening and Closing Positions
    • Account Value & More
    • Funding Payments
    • Order Types
    • Trading Fees and Gas Fees
    • Managing Risk
    • Multi-collateral
    • More docs
  • Providing Liquidity
    • Basics
    • Introduction to Maker UI
    • Add / Remove Liquidity
    • Estimated Fees and Rewards APR
    • More on LPing
    • Tools for LPs
  • Perp v2 Specs
  • Developer Docs
    • Developer FAQs
    • Source Code
    • Protocol Attributes
    • Contract guide
      • AccountBalance
      • BaseToken
      • ClearingHouse
      • CollateralManager
      • DelegateApproval
      • Exchange
      • InsuranceFund
      • MarketRegistry
      • OrderBook
      • QuoteToken
      • Vault
      • VirtualToken
    • Interface Contracts
      • IAccountBalance
      • IBaseToken
      • IClearingHouse
      • IClearingHouseConfig
      • IClearingHouseConfigEvent
      • ICollateralManager
      • IDelegateApproval
      • IERC20Metadata
      • IExchange
      • IIndexPrice
      • IInsuranceFund
      • IMarketRegistry
      • IOrderBook
      • IVault
      • IVirtualToken
    • Integration guide
    • Dev tools
Powered by GitBook
On this page
  • Free Collateral
  • Buying Power

Was this helpful?

  1. Trading on Perp v2

Account Value & More

Last updated 1 year ago

Was this helpful?

Content Out of Date

This content is not maintained and refers to an out-of-date version of Perpetual Protocol.

For the latest documentation, see

Account value is essential for calculating margin ratio and free collateral.

This value is the sum of your collateral, any unrealized PnL (profit & loss) and any settled or pending fees and funding payments associated with your open positions:

Free Collateral

Free collateral is funds you have available for using as margin, i.e., opening positions. It is also used in determining how much you can withdraw from the exchange at any given time.

Buying Power

Buying power (BP) is the amount of funds you have available for opening positions. This includes all available leverage (up to 10x). Therefore, if you use 100% of your BP to open a new position, your account leverage will be 10x. The maximum percent BP and resulting leverage will vary slightly in practice so you may not be able to use 100% of BP or attain 10x leverage directly via the UI.

Assuming you have no open positions, the buying power can be estimated as follows.

This also holds if you have an open position and you are opening a new position in the same direction (e.g. you have an ETH long and you are opening a new ETH long.)

However, when you want to open a position in the direction opposite to an existing position, the buying power needs to cover the existing position. This can be approximated as follows.

Moving Beyond Approximations

The actual underlying math is more complex. The following is a high level explanation.

Assuming increasePosition:

Assuming reducePosition:

https://docs.perp.com