Profit and loss calculation is based on the contract margin. BiyaPay currently only supports U-margined perpetual contracts, so contracts with USDT as margin will be priced in USDT.
Profit and Loss Calculation for U-margined Contracts Priced in USDT (BTCUSDT)
U-margined contracts use USDT stablecoin as margin, and order amounts and position sizes are calculated based on the quantity of coins.
Example 1:
You buy long 1 BTC at a price of 90,000 USDT.
The price rises, and you close the position at 100,000 USDT.
Profit and Loss: (Contract Exit Price - Contract Entry Price) * Position Size = (100,000 - 90,000) * 1 = 10,000 USDT.
Example 2:
You sell short 1 BTC at a price of 100,000 USDT.
The price falls, and you close the position at 90,000 USDT.
Profit and Loss: (Contract Exit Price - Contract Entry Price) * Position Size = (90,000 - 100,000) * -1 = 10,000 USDT