top of page
  • Writer's pictureGlobal MoonXBT

How to calculate MoonXBT USDT Perpetual Contracts' P&L?

Session Realized P&L

Traders must know how to calculate profit and loss before placing an order. The following is a guide to help you better understand the relationship between different variables and profit and loss calculations.

Average Session Price

When a trader opens a position, the average session price will be the same as the average entry price. Upon reaching the settlement timing, the average session price updates to the mark price at the time of settlement.

During the 8-hour settlement period, once a trader places new positions, the average session price adjusts accordingly.

Formula:

Average Session Price = Total Session Value/Total Trade Size

Total Session Value = (Trade Price 1 × Trade Size 1) + (Trade Price 2 × Trade Size 2)

Example:

Trader A holds a long position of 0.5 BTC with an entry price of $50,000. Believing that the price of BTC will continue to rise, Trader A decides to increase the long position by opening another 0.8 BTC at an entry price of $51,000.

Total Session Value = (50,000 × 0.5) + (51,000 × 0.8) = 65,800 USDC

Average Session Price = 65,800/(0.5 + 0.8) = $50,615.38

Session Unrealized P&L

Session unrealized P&L is the current profit or loss of open positions in the session settlement. The formula used to calculate the unrealized profit and loss will vary depending on the direction of your position, whether long or short. Session unrealized P&L will be refreshed every eight hours at settlement timing.

Long Position:

Formula:

Session Unrealized P&L = Mark Price × Position Size − Total Session Value

Total Session Value = (Trade Price 1 × Trade Size 1) + (Trade Price 2 × Trade Size 2)

Example:

Trader B holds a long position of 0.6 BTC with an entry price of $55,000. When the mark price is $58,000, the unrealized profit and loss will be (58,000 × 0.6) − (55,000 × 0.6) = 1,800 USDC.

Short Position:

Formula:

Session Unrealized P&L = Total Session Value − Mark Price × Position Size

Total Session Value = (Trade Price 1 × Trade Size 1) + (Trade Price 2 × Trade Size 2)

Example:

Trader C holds a short position of 0.2 BTC with an entry price of $53,000. When the mark price is $54,000, the unrealized profit and loss will be (53,000 × 0.2) − (54,000 × 0.2) = −200 USDC.

0 views0 comments
bottom of page