Please use the following guide to calculate your position's average entry price:
Perpetual contract (Inverse)
Average entry price = Total quantity of contracts / Total contract value in BTC
Total contract value in BTC = [(Quantity1/Price1) + (Quantity2/Price2) + (Quantity3/Price3)....]
Example:
A trader bought 50 contracts at 8000 USD and another 50 contracts at 9000 USD.
Total contract value in BTC = (50/8000) + (50/9000) = 0.01180555
Average entry price = 100/0.01180555 = 8470.58 USD
Perpetual contract (Linear)
Average entry price = total contract value in USDT/total quantity of contracts
Total contract value in USDT = [(Quantity1*Price1) + (Quantity2*Price2) + (Quantity3*Price3)....]
Example:
A trader bought 1 BTC contract at 9000 USDT and another 2 BTC contract at 10,000 USDT
Average entry price = (1*9000+2*10000)/(1+2)=9666.67