Use Case
Track position closures to:- Monitor realized PnL distributions
- Identify profitable trading patterns
- Analyze liquidation events
- Build PnL leaderboards and analytics
Sample Response
Field Descriptions
dir- Trade direction: “Close Long” or “Close Short”closedPnl- Realized profit/loss from closing the position (in USD)startPosition- Position size before this fill (negative = short, positive = long)px- Exit pricesz- Size of the position being closedfee- Trading fee chargedtime- Fill timestamp in milliseconds since Unix epoch
Analysis Tips
- Net PnL =
closedPnl-fee(subtract fees for true profitability) - Profitable trades have
closedPnl > 0 - Loss-making trades have
closedPnl < 0 - Positive
startPositionindicates closing a long, negative indicates closing a short

