Positions

A position is your open exposure in a market: long (you profit when the price rises) or short (you profit when it falls). As your orders fill, the position moves through a simple lifecycle.


The position lifecycle

ActionWhen it happensEffect
OpenA fill with no existing positionCreates a new position
IncreaseA fill on the same sideSize grows; entry price re-averaged
DecreaseA smaller fill on the opposite sideSize shrinks; part of PnL realized
CloseAn opposite fill equal to your sizePosition ends; PnL realized
FlipAn opposite fill larger than your sizeCloses, then opens the other way

Increase and Decrease only change the size. The position stays open. Close ends it; Flip closes it and opens a new position on the opposite side in the same fill.

Entry price

Your entry price is the size-weighted average of your fills.

  • Increasing at a different price re-averages it.
  • Decreasing or partially closing does not change it. Only the size drops.

Profit and loss

  • Unrealized PnL moves with the market's mark price while the position is open.
  • Realized PnL is locked in when you decrease or close, and settles to your available balance.
Long PnL  = (exit price − entry price) × size
Short PnL = (entry price − exit price) × size

PnL is the price difference only; fees are charged separately (see Fees).

Closing a position

  • Close one position by submitting a reduce-only order on the opposite side for the full size (see Order Types).
  • Close All closes each of your positions in turn. Each market settles on its own: a gain in one market is not netted against a loss in another; each is realized independently.

Margin and funding

Each open position carries its own position margin. While the position is open, funding accrues to it over time as unrealized funding (part of your equity) and is banked into the margin only when you next change the position's size or leverage (closing included) or the position is liquidated, so a position held for a long while can settle out with more or less margin than it started with. Funding is covered in Funding.

Where to go next

Last updated