Account Value & More
Last updated
Last updated
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 https://docs.perp.com
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 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 (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.
The actual underlying math is more complex. The following is a high level explanation.
Assuming increasePosition
:
Assuming reducePosition
: