Future profit calculation

Hi, Can I know how to get future order pnl using order id. Tried with https://fapi.binance.com/fapi/v1/userTrades but its return 0 always for realizedpnl.

Hey,
If the position is closed, you can retrieve the realized PnL for a specific position ID using the following endpoint: Query Account Trade List | Binance Open Platform

Otherwise, you can get the current position’s unrealized pnl using the following endpoint: Position Information V3 | Binance Open Platform