Hello,
Is there any way to get the PNLROE?
Regards,
Orlando Gautier
Hello,
Is there any way to get the PNLROE?
Regards,
Orlando Gautier
Hi Dino, thanks for the reply.
In the Binance documentation I find the positionRisk endpoint which offers that set of values, however I do not see the PNLROE specifically, how can I obtain this value, or how can I do the calculation to obtain it?
Position Information V2 (USER_DATA)
GET /fapi/v2/positionRisk (HMAC SHA256)
{
“entryPrice”: “6563.66500”,
“marginType”: “isolated”,
“isAutoAddMargin”: “false”,
“isolatedMargin”: “15517.54150468”,
“leverage”: “10”,
“liquidationPrice”: “5930.78”,
“markPrice”: “6679.50671178”,
“maxNotionalValue”: “20000000”,
“positionAmt”: “20.000”,
“symbol”: “BTCUSDT”,
“unRealizedProfit”: “2316.83423560”
“positionSide”: “LONG”,
},
Best Regards,
Orlando Gautier
“unRealizedProfit” is the position’s PNL.
The formulas for PNL and ROE can be consulted from this article: https://www.binance.com/en/support/articles/360036498511-How-to-Use-Binance-Futures-Calculator
Thank you very much Aisling!!