How to caculating Leverage Pnl Quantile ?

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%):

image

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,

Hi @Mr_Engineer,
I believe I’ve never seen the Total User Count part in public before, so I don’t think this is a value that you can retrieve. However if you want to be certain and since you’re using values from the UI, please contact the Customer Support Team.

Unfortunately, I’ve also never seen where you could get the Leverage PNL Quantile value at once and without calculations, in the API documentation.

1 Like

Thank you !