How to Calculate Linear Contract Equity and PNL

Linear Contract Equity

Equity refers to the actual net assets in the futures account.

Equity = Transferred-in Amount - Transferred-out Amount + Realized PNL + Unrealized PNL

 

Linear Contract PNL

1. Cumulative PNL

The Cumulative PNL refers to the PNL since opening the position, estimated at the Mark Price or the Latest Price.

Cumulative PNL = Realized PNL + Unrealized PNL

 

2. Unrealized PNL

Unrealized PNL is based on the difference between the Average Opening Price and the Mark Price (or the Latest Price), and is calculated on the number of your open positions.

The Unrealized PNL will be shown in your position information after you have successfully opened a position, and it is an estimated value of your PNL.

Unrealized PNL (Long) = Position Amount * (Mark Price - Settlement Price)

Unrealized PNL (Short) = Position Amount * (Settlement Price - Mark Price)

It is the realized PNL that WILL affect your final profit and loss, NOT the unrealized PNL.

 

3. Realized PNL

The realized PNL includes funding fees, trading fees, and trading PNL of reducing or closing positions. If Pyramiding Auto-Settlement is enabled, settlement PNL should also be included.

 

(1) Funding Fee

Funding Fee = Position Size * Mark Price * Funding Rate

Normally, the funding fee is settled every 8 hours, respectively at 0:00, 8:00, and 16:00 (UTC).

If the funding rate becomes too high, the settlement cycle may be dynamically adjusted to 4 hours or 2 hours.

The traders will only pay or receive funding fees if they hold a position at the time of settlement. For details, please refer to What’s Futures Funding Fee.

 

(2) Trading Fee

The trading fee will be charged when buying or selling contracts. The calculations are as follows:

Linear Contract Trading fee = Fee Rate * Position Amount * Limit Price to Buy or Sell

 

(3) Settlement PNL

When Pyramiding Auto-Settlement is enabled, your unrealized PNL will be settled as realized PNL during settlement and calculated into your position margin. If it is never activated, your settlement PNL will be 0.

Settlement PNL (Long) = Position Amount * (Current Settlement Price - Last Settlement Price)

Settlement PNL (Short) = Position Amount * (Last Settlement Price - Current Settlement Price)

 

(4) Trading PNL of reducing or closing positions

When you reduce your positions or close all your positions, the trading PNL of these positions will be settled according to the closing price and settlement price.

Trading PNL (Long) = Position Amount * (Closing Price - Settlement Price)

Trading PNL (Short) = Position Amount * (Settlement Price - Closing Price)

Notes:

  • Under Isolated Margin Mode, at settlement, the user’s realized PNL is kept in the current position margin. If there is a profit, it can be manually transferred to the available balance. The realized PNL from position closure will be automatically transferred to the available balance.
  • Under Cross Margin Mode, at settlement, the user’s realized PNL is kept in the current position margin. If there is excess margin (profit), it will be automatically transferred to the available balance. The realized PNL from position closure will be automatically transferred to the available balance.

 

4. Profit & Loss Rate (PNL%)

The current PNL% of your open contracts is estimated at the Mark Price or the Latest Price.

PNL% = Total PNL / Initial Margin

Total PNL = Realized PNL + Unrealized PNL

 

About Settlement Price

The Settlement Price is the price at which unrealized PNL and realized PNL are calculated. The price of opening positions, adding positions, and settlement will be adjusted accordingly.

Please refer to What's Settlement Price for how to calculate settlement price when Pyramiding Auto-Settlement is enabled. When disabled, Settlement Price = Avg. Opening Price.

 

 

Related Articles:

Linear Contract Fee Rates

CoinEx Linear Futures Contracts Trading Rules

Introduction to Linear Contract Leverage and Margin

Disclaimer: The content provided on this website is for informational purposes only and does not constitute investment advice. The information provided is not intended to be a substitute for professional financial advice, consultation, or recommendations. Users are encouraged to consult with a qualified financial advisor before making any investment decisions. The website owners and authors do not assume any liability for any loss or damage that may result from reliance on the information provided. All investments carry risk, and past performance is not indicative of future results.