Read profit position

Created at 16 Nov 2017, 01:45
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!
DU

dusek.martin

Joined 16.11.2017

Read profit position
16 Nov 2017, 01:45


Hello,

how can one read profit for every opened position via FIX API from cTrader. In my app I would like to update profit for every active position approx. once per second.


@dusek.martin
Replies

PanagiotisCharalampous
16 Nov 2017, 12:53

Hi dusek.martin,

Thanks for posting in our forum. You can get information about positions using the Request for Positions message. You will need to calculate the P&L yourself based on the position's opening price and the current price.

Best Regards,

Panagiotis


@PanagiotisCharalampous