A user's current position on Drift is the cumulative sum of all their open orders (increasing, reducing, or closing) over time. All trading lots, per market and per sub-account, are combined into a single position.
The position table shows the Profit and Loss or P&L for the current position. You can toggle to see in "$" or "%" terms.
Here, the P&L refers to the unrealised P&L or uPNL of the open positions (SOL-PERP and ETH-PERP shorts). In order to realise this P&L, users would have to close their position.
Your realised P&L can only be withdrawn once it has been settled and claimed.
Note: realising your P&L by closing the position is not the same as settling and claiming your P&L. In order to withdraw your P&L, it must first be realised (by closing your position); and then settled and claimed.
To update the USDC balances available for withdrawal, your P&L must first be settled and claimed.
To do so, navigate to the Unrealised PnL tab and select Claim
Users can claim positive P&L when:
- the open position has been closed or reduced (i.e. your uPNL has been partially or wholly realised);
- the market's P&L Pool has available balances to claim; and
- their Cost Basis is below the Entry Price for longs and/or above the Entry Price for shorts.
There is a difference between closing your position to realise your uP&L, and that realised P&L being available to be withdrawn and used elsewhere.
Once realised, your P&L must also be settled and claimed before it can be withdrawn. It's important to recognise these differences.
Realised P&L refers to the profit and loss that is realised by the user when they close their position.
- If you entered a long position on SOL at $30 and SOL is now $60; you would be in profit with an unrealised P&L of $30.
- Similarly, if you entered a short position on SOL at $30 and SOL is now $15; you would be in loss with an unrealised P&L of $15.
The profit and loss in both those examples are known as unrealised P&L (uP&L) as that position is still open. The uP&L of the position will continuously change as the price of the asset changes.
Your P&L will not be realised until you close your position. Once you close your position, your uP&L will become realised P&L and you will be out of that perpetual futures position (i.e. you will no longer have exposure to the price movement of that underlying asset).
Settling P&L refers to settling the total funds available in the per-market pool of funds that is claimable by users.
This pool is called the P&L Pool (read more here: ).
A trader that has made a profitable trade and realises its profits may wish to withdraw that realised profit.
However, users can only withdraw realised profits if there is enough settled P&L available in the P&L Pool. The P&L Pool is comprised of all the accumulated realised losses of other participants in that market. It represents the total amount available for withdrawal.
For each dollar to be withdrawn from realised profits, there must also be a corresponding dollar of realised losses (which will be made available in the P&L Pool). This mechanism exists to ensure that users do not withdraw more from the platform than that actually exists.
If a user made a profitable trade and has positive realised P&L from the position, but there isn't enough Settled P&L in the Per-Market P&L pool to pay out the user to withdraw, the user may need to wait for the pool to be replenished by settled losses.
When this occurs, the user's P&L will be considered to be unsettled P&L.
For more information on what happens when there is not enough Settled P&L, read
If positive P&L is unsettled, it may account for less initial margin for trading perpetuals than USDC. Please see the treatment of non-USD assets here .
Each market has a maximum imbalanced P&L limit. When the net user P&L in a market breaches the limit, the asset weight will be decreased. Additionally, P&L in excess of the limit is subject to deficit resolutions from the Insurance Fund (up to the market's max insurance fund limit).
Discounting the unsettled P&L lowers the maximum leverage extended for users (and only decreases a user's initial margin).
These guards don't lower the maintenance margin weights and are not relevant for liquidations.
Only the lesser value of your Free Collateral and Asset Balance will be available for withdrawal (without opening a borrow). Realising positive unrealised P&L (by reducing/closing positions) will allow for that P&L to be settled to your Asset Balance for withdrawal.
A suggestion for users that want to stay in their position and withdraw unrealised profits in excess of their asset balance is to reduce/close then reopen the position.
Read more in