XBTXBJETHETCXMRXRPREPLTCLSKFCTBFXZECRecentAllXRP7D0.00001331-2.13%XMR7D0.009228-5.36%REP7D0.007076-7.39%BFXV160.5786+4.37%ZECZ160.345391+62.54%XBTUSD661.75+1.73%XBJ24H68932-0.07%XBJ7D69132-0.20%XBJZ1672295+0.39%ETHXBT0.01740-2.30%ETC7D0.001573+1.29%LTCXBT0.00588+0.00%LSKXBT0.000325+16.49%FCTXBT0.003963-6.16%XBT/USD Spot660.92+1.56%XBT/JPY Spot69161.45+0.44%ETH/XBT Spot0.01745-2.02%ZEC/XBT Spot--.-+0.00%24H XBT Volatility1.69+36.29%Funding:  @ 0.1236%Time:
Profit/Loss Guide

This guide is meant to explain the concepts of unrealised and realised profit and loss (PNL).

Example 1, Buying and Selling

John is long 1,000 XBTUSD contracts with an average entry price of $1,000. The mark price of XBTUSD is currently $1,250.

John’s unrealised PNL is based on the difference between his average entry price and the mark price.

Unrealised Profit = ($1/$1,000 - $1/$1,250) * 1,000 = 0.20 XBT

The last price of XBTUSD is $1,500. However for the calculation of unrealised PNL, the mark price is used not the last price. To understand why, please read Fair Price Marking.

John decides to sell 500 XBTUSD contracts at $1,500 and realise some profit.

John’s realised PNL is based on the difference between his average entry price and the price at which he sells XBTUSD.

Realised Profit = ($1/1,000 - $1/$1,500) * 500 = 0.17 XBT

Realised PNL is based on where you can actually buy or sell your position, which in most cases is not the mark price. If John had sold his 500 contracts at the mark price of $1,250, he would have a realised profit of 0.10 XBT.

Example 2, Funding Fees

BitMEX has a type of derivative contract called a swap. Buyers and sellers of swap contacts pay and receive funding fees periodically throughout the trading day. To learn more about swaps, please read the Swaps Guide.

John is trading XBTUSD, which is a swap contract. Every 8 hours, there is a funding fee. The funding fee is currently 1%, and is paid from buyers to sellers.

John is currently long 100 XBT worth of XBTUSD. The position has no realised PNL. It is funding time and John must pay 1 XBT because he is long XBTUSD. After the funding fee has been paid, John’s realised PNL is now -1 XBT.

If John had been short 100 XBT worth of XBTUSD instead, he would have received 1 XBT. His realised profit would then be 1 XBT instead of -1 XBT.

Example 3, Trading Fees

All trading fees are accounted for through realised pnl.

John bought XBTUSD. The market has not moved. His unrealised PNL is 0, but his realised PNL is negative. John’s realised PNL is negative because he paid a taker fee when he bought XBTUSD.

If John had placed a passive limit order, he would be classified as a maker once the order was executed. As a maker, John would have been paid a rebate on the trade. In that situation, his unrealised PNL would be 0 and realised PNL positive.