Get Position Netto or brutto Profit info

Created at 03 Oct 2019, 18:42
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
BE

BenjaminR

Joined 12.06.2019

Get Position Netto or brutto Profit info
03 Oct 2019, 18:42


I would like to get the position info:

I reach:  position.PositionId, position.PositionStatus, TradeSide, Volume, SL, TP , Swap, Comission, Price... etc

but I do not see / know  the name of the field of  Netto or Brutto Position Profit (floating P/L).

Thanks,


@BenjaminR
Replies

PanagiotisCharalampous
04 Oct 2019, 08:24

Hi Be Rich,

There is no such field available in Open API. You need to calculate it on your side using the position's entry price and the current symbol price.

Best Regards,

Panagiotis


@PanagiotisCharalampous