Positions
A perpetual position represents an account's open exposure in one market.
| Field | Meaning |
|---|---|
| Side | Long or short |
| Size | Quantity currently open |
| Entry price | Average price at which the current position was opened |
| Mark price | Current price used to calculate unrealized PnL |
| Unrealized PnL | Current gain or loss on the open position |
| Funding PnL | Funding accrued by the position |
Position changes
- A same-side fill increases the position and updates its average entry price.
- An opposite-side fill realizes PnL on the quantity closed.
- A larger opposite-side fill closes the old position and opens the excess in the new direction.
- An equal opposite-side fill closes the position.
When a position closes or changes direction, its take-profit, stop-loss, and incompatible reduce-only orders are canceled.