The unrealized PNL is calculated by the following formula:
Unrealized PNL of long position = quantity * (1/ average opening price - 1/ marked price)
Unrealized PNL of short position = quantity * (1/ marked price - 1/ average opening price)
Buy-in / Sell out
You are long 1,000 BTC contracts with an average entry price of $1,000. The mark price of BTC contracts is currently $1,250.
Your Unrealized PNL is based on the difference between your average entry price and the mark price.
Unrealized Profit = ($1/$1,000 - $1/$1,250) * 1,000 = 0.20 BTC
The last price of BTC is $1,500. However for the calculation of Unrealized PNL, the mark price is used not the last price. To understand why, please read Fair Price Marking.
You decide to sell 500 BTC contracts at $1,500 and realise some profit.
Your Realized PNL is based on the difference between your average entry price and the price at which you sell BTC.
Realized Profit = ($1/1,000 - $1/$1,500) * 500 = 0.17 BTC
Realized PNL is based on where you can actually buy or sell your position, which in most cases is not the mark price. If you had sold your 500 contracts at the mark price of $1,250, you would have a Realized profit of 0.10 BTC.
FMex mainly provides BTC Perpetual Contract trading at the present. Buyers and sellers of perpetual contacts pay and receive funding fees periodically throughout the trading day. To learn more, please read the Funding Fee
There is a funding fee every 8 hours when you trading BTC perpetual contract.
The funding fee is currently 1%, and is paid from buyers to sellers.
You are currently long BTC perpetual contract worth of 100 BTC. The position has no Realized PNL. It is funding time and you must pay 1 BTC for long BTC. Your Realized PNL is now -1 BTC after the funding fee has been paid.
If you had been short BTC perpetual contract worth of 100 BTC, instead, you would have received 1 BTC. Your Realized profit would then be 1 BTC instead of -1 BTC.
All trading fees are accounted for through Realized PNL.
You bought BTC perpetual contract. The market has not moved. Your Unrealized PNL is 0, but your Realized PNL is negative. Your Realized PNL is negative because you paid a taker fee when you bought BTC.
If you had placed a passive limit order, you would be classified as a maker once the order was executed. As a maker, you would have been paid a rebate on the trade. In that situation, your Unrealized PNL would be 0 and Realized PNL positive.
Realized PNL Accounting
Realised PNL is displayed in different locations on the FMex 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 BTC, this amount will show on the Open Positions tab.
If you completely close the same position and you realise a profit of 10 BTC, this 10 BTC 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 BTC 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.