I am working with future APIs.
I was wondering if it was possible to retrieve the PnL and the margin ratio on a current position via websocket streaming?
If it’s not possible, the only way to get it would be to get the price of the asset in parallel and calculate locally the PnL with the entry price of our position, right?
I’m currently using this stream :
But I receive messages only when a new position is added, or when a position is closed. I also expected to receive messages about the PnL update as well.