Dear Binance Futures Support Team,
I hope this message finds you well. I am caculating Leverage Pnl Quantile.
This is fomular (link):
Pnl Percent = max(0,Unrealized Profit)/max(1,Wallet Balance)
If (Wallet Balance+Unrealized Profit)≤0, then Margin Ratio = 0
If (Wallet Balance+Unrealized Profit)>0, then Margin Ratio = Maintenance Margin/(Wallet Balance+Unrealized Profit)
Leverage Pnl = Pnl Percent × Margin Ratio Leverage Pnl = Pnl Percent × Margin Ratio
Leverage Pnl Quantile = rank(user.Leverage Pnl)/Total User Count
I think Margin Ratio is here on Binance Futures, so we don’t need to caculating it (13,42%):
It is my wallet:
so i have Unrealized Profit = 40.2; Wallet Balance = 4.27
=> Pnl Percent = max(0,40.2)/max(1,4.27) = 9.41
=> Leverage Pnl = Pnl Percent × Margin Ratio Leverage Pnl = Pnl Percent × Margin Ratio = 9.41 x 13.42% = 1.26
=> Leverage Pnl Quantile = rank(user.Leverage Pnl)/Total User Count = 1.26/???
Where can I get Total Users?!
Please help me if you see any problems with my calculation.
Thank you for your prompt attention to this matter and I look forward to your assistance in resolving this matter.
Best regards,