XT Exchange

Profit and Loss Calculation

Бессрочный контракт
XT USDT-M contract users' profit and loss comes from three aspects: the expenditure of service fees, the income or expenditure of funding fees, and the profit and loss of closing positions.

 

Service fee

The expenditure of the taker = Position Value* Taker Fee

The income of the maker = Position Value* Maker Fee

 

Funding fee

According to the negative or positive funding fee rate and the long or short position held, the trader will pay or receive a funding fee.

Funding fee = Funding Fee Rate * Position Value

 

Profit and loss calculation

1. Closing PnL:

Coin-margined contract (inverse contract)

Long Position = (1 / Opening Avg. Price – 1 / Closing Avg. Price) * Position Total * Face Value

Short Position = (1 / Closing Avg. Price – 1 / Opening Avg. Price) * Position Total * Face Value

 

USDT-margined contract (forward contract)

Long Position =(Closing Price-Average Opening Price)* Position Total * Face Value

Short Position =(Average Opening Price-Closing Price)* Position Total * Face Value

 

2. Floating PnL

Coin-margined contract (inverse contract)

Long Position = (1 / Opening Avg. Price – 1 / Fair Price) * Position Total * Face Value

Short Position = (1 / Fair Price – 1 / Opening Avg. Price) * Position Total * Face Value

 

USDT-margined contract (forward contract)

Long Position =(Fair Price-Average Opening Price)* Position Total * Face Value

Short Position =(Average Opening Price-Fair Price)* Position Total * Face Value

 

  • Example 1:
    If a user in the Taker role buys 10,000 contracts of BTCUSDT perpetual contract at a price of 7,000, the user will hold a long position of 10,000 contracts of BTCUSDT perpetual contract. (Taker Fee =0.05% ; Maker Fee = -0.05% ; Funding Rate = -0.025%)

    The service fee that the user needs to pay will be calculated as:
    7000*10000 * 0.0001 * 0.05% =3.5 USDT

    The funding fee (negative funding rate) that the user can receive will be calculated as: 7000*10000 * 0.0001*(-0.025%)=-1.75 USDT

    If the user in the Maker role closes 10,000 contracts at a price of 8,000, Closing PnL, Service Fee, and the Total Realized PnL of the user will be calculated as follows:
    Closing PnL =(8000-7000)*10,000 * 0.0001=1,000 USDT
    Closing Service Fee = 8000 *10000 * 0.0001*(-0.05%)=-4 USDT (charged from the user)

    Total Realized PnL of the user= 1000+4+1.75 -3.5=1002.25 USDT
     
  • Example 2:
    If a user in the Taker role buys 10,000 contracts of BTCUSDT perpetual contract at a price of 7,000, the user will hold a long position of 10,000 contracts of BTCUSDT perpetual contract. (Taker Fee =0.05% ; Maker Fee = 0.05% ; Funding Rate = -0.025%)

    The service fee that the user needs to pay will be calculated as:
    7000*10000 * 0.0001 * 0.05% =3.5 USDT

    The funding fee (negative funding rate) that the user can receive will be calculated as: 7000*10000 * 0.0001*(-0.025%)=-1.75 USDT

    If the user in the Maker role closes 10,000 contracts at a price of 8,000, Closing PnL, Service Fee, and the Total Realized PnL of the user will be calculated as follows:
    Closing PnL =(8000-7000)*10,000 * 0.0001=1,000 USDT
    Closing Service Fee = 8000 *10,000 * 0.0001* 0.05%=4 USDT

    Total Realized PnL of the user = 1,000-4+1.75 -3.5=994.25 USDT