Attention - Important Notice

In accordance with Section 1.4 of our Terms of Service:
  • Persons that are located in or a resident of the United States of America or Québec (Canada) are prohibited from holding positions or entering into contracts at BitMEX.
  • Persons that are located in or a resident of Cuba, Crimea and Sevastopol, Iran, Syria, North Korea and Sudan, or any other jurisdiction where the services offered by BitMEX are restricted, are prohibited from holding positions or entering into contracts at BitMEX.
  • BitMEX reserves the right to immediately close the accounts and to liquidate the open positions of persons determined to have breached our Terms of Service.
AllXBTUSD3645.5+3.83%XBTH193546.5+2.92%XBTZ183620.5+3.58%XBTM193500.0+2.15%XBT7D_D950.00072-52.00%XBT7D_U1050.00690+13.11%ADAZ180.00000940+1.40%ADAH190.00000938+1.96%BCHZ180.0282+10.59%BCHH190.0278+10.76%EOSZ180.0007084+4.58%EOSH190.0006973+4.06%ETHUSD99.95+5.71%ETHZ180.02736+1.52%ETHH190.02733+1.86%LTCZ180.00813-1.45%LTCH190.00804-1.23%TRXZ180.00000408+0.99%TRXH190.00000404-1.22%XRPZ180.00009666+2.40%XRPH190.00009667+3.21%.BXBT3646.41+3.76%.BETH99.75+5.51%.BVOL24H3.77-10.24%Funding: 03:46:00 @ -0.0747%Time: 12:13:59 AM
Profit/Loss Guide

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

Example 1, Buying and Selling

Perpetual Contracts

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.

UP (Upside Profit) Contract

John is long 100 XBT7D_U110 contracts with an average entry price of 0.03 XBT. The last price of XBT7D_U110 is currently 0.05 XBT.

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

Unrealised Profit = (0.05 XBT - 0.03 XBT) * 100 = 2 XBT

John decides to sell 50 XBT7D_U110 contracts at 0.05 XBT 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 XBT7D_U110.

Realised Profit = (0.05 XBT - 0.03 XBT) * 50 = 1 XBT

DOWN (Downside Profit) Contract

John is long 50 XBT7D_D90 contracts with an average entry price of 0.02 XBT. The last price of XBT7D_D90 is currently 0.04 XBT.

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

Unrealised Profit = (0.04 XBT - 0.02 XBT) * 50 = 1 XBT

John decides to sell 25 XBT7D_D90 contracts at 0.04 XBT 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 XBT7D_D90.

Realised Profit = (0.04 XBT - 0.02 XBT) * 25 = 0.5 XBT

Example 2, Funding Fees

BitMEX has a type of derivative contract called a Perpetual Contract. Buyers and sellers of perpetual contacts pay and receive funding fees periodically throughout the trading day. To learn more, please read the Perpetual Contracts Guide.

John is trading XBTUSD, which is a perpetual 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.

Example 4, Realised PNL Accounting

Realised PNL is displayed in different locations on the BitMEX trading dashboard depending on whether you are merely reducing the size of an existing position, or closing it entirely.

If you have an open position with a realised profit of 10 XBT, this amount will show on the Open Positions tab.

If you completely close the same position and you realise a profit of 10 XBT, this 10 XBT will be shown on the Closed Positions tab.

If you then create a new position on the same contract, realised PNL will be reset to 0 XBT on the Open Positions tab. Realised PNL resulting from a partial closure of this new position will be displayed on the Open Positions tab.

If you then completely close this new position, any realised PNL will be added to that symbol on the Closed Positions tab.