To calculate your Realised Profit and Loss (Realised PNL) on BitMEX, you will need to account for all the trades you made within a 24-hour period between 12:00 PM UTC and 12:00 PM UTC the next day. Here's a step-by-step guide on how to manually calculate your Realised PNL:
-
Check the Trade History page to see all the trades you made within the 24-hour period.
-
Calculate the Unrealised PNL for each trade using this formula:
Unrealised PNL = Number of lots * Multiplier * (100/Average Entry Price - 100/Exit Price)
Remember to round the (100/Price) values to 8 decimal places for accuracy and double-check your Unrealised PNL calculation using the BitMEX calculator.
-
Use this formula to calculate the Realised PNL for each trade:
Realised PNL = Unrealised PNL - taker fee + maker rebate -/+ funding payment
-
Add up the Realised PNL for all the trades you made within the 24-hour period and the funding payment you received/paid to get your total Realised PNL for that day.
Note that the above steps are applicable only if you want to calculate your Realised PNL manually. However, you can always view your Realised PNL on the Transaction History page, which automatically calculates it for you.
Here's how to manually calculate your Realised PNL using an example:
Let's say you want to calculate your Realised PNL for January 18th; you'll need to account for all trades made between January 17th, 12:00 PM UTC, and January 18th, 12:00 PM UTC.
After reviewing the Trade History page, you have the following trades that fall between that timeframe:
- Trade 1: Order e78e4a1 was partly closed with order 5403897
- Trade 2: The remainder of e78e4a1 was fully closed with afe5cda within that 24-hour period
Here is how you can calculate the Realised PNL for these trades:
Step 1: Calculate the Unrealised PNL for each trade
For Trade 1:
- Unrealised PNL = Number of lots * Multiplier * (100/Average Entry Price - 100/Exit Price)
- Number of lots = 5
- Multiplier = 1
- Average Entry Price = 42292.5
- Exit Price = 42303
Unrealised PNL = Number of lots * Multiplier * (100/Average Entry Price - 100/Exit Price)
Unrealised PNL = 5 * 1 * (100/42292.5 - 100/42303)
Unrealised PNL = 5 * 1 * (0.00236449 - 0.0023639)
Unrealised PNL = 0.00000295 XBT
For Trade 2:
- Unrealised PNL = Number of lots * Multiplier * (100/Average Entry Price - 100/Exit Price)
- Number of lots = 15
- Multiplier = 1
- Average Entry Price = 42292.5
- Exit Price = 42107.5
Unrealised PNL = Number of lots * Multiplier * (100/Average Entry Price - 100/Exit Price)
Unrealised PNL = 15 * 1 * (100/42292.5 - 100/42107.5)
Unrealised PNL = 15 * 1 * (0.00236449 - 0.00237487)
Unrealised PNL = -0.0001557 XBT
Step 2: Calculate the Realised PNL for each trade
For Trade 1:
- Realised PNL = Unrealised PNL - Taker fee + Maker rebate
- Unrealised PNL = 0.00000295 XBT
- Taker fee = 0.00002954 XBT
Realised PNL = Unrealised PNL - Taker fee + Maker rebate
Realised PNL = 0.00000295 - 0.00002954
Realised PNL = -0.00002659 XBT
For Trade 2:
- Realised PNL = Unrealised PNL - Taker fee + Maker rebate
- Unrealised PNL = -0.0001557 XBT
- Taker fee = 0.0000178 XBT
Realised PNL = Unrealised PNL - Taker fee + Maker rebate
Realised PNL = -0.0001557 - 0.0000178
Realised PNL = -0.0001735 XBT
Step 3: Add up the Realised PNL for all trades and the funding payment
Realised PNL = Unrealised PNL - taker fee + maker rebate -/+ funding payment
Realised PNL for Jan 18th = Realised PNL for Trade 1 + Realised PNL for Trade 2 + Funding payment
Realised PNL = -0.00002659 - 0.0001735 + 0.00012685
Realised PNL = -0.00007324 XBT
So, the Realised PNL for January 18th is -0.00007324 XBT which matches what's shown on the Transaction History page: