Monitoring OA_EXECUTION_EVENT

Created at 16 Oct 2017, 08:26
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!
YC

ycomp

Joined 16.10.2013

Monitoring OA_EXECUTION_EVENT
16 Oct 2017, 08:26


Can you monitor via the Trading API orders that are created somewhere else (say the terminal or another program accessing the same tokens) via OA_EXECUTION_EVENT?

or is OA_EXECUTION_EVENT just for orders created from within your own code connection?

I didn't try it, just thought would be easier to ask.


@ycomp
Replies

PanagiotisCharalampous
16 Oct 2017, 09:04

Hi ycomp,

Yes you can. You need to subscribe to trading events.

Best Regards,

Panagiotis


@PanagiotisCharalampous

ycomp
16 Oct 2017, 14:33

when exactly does OA_POSITION_STATUS_OPEN fire? I'm getting OA_POSITION_STATUS_CREATED but I don't think OPEN is firing. However with created fields like entry price are blank


@ycomp

ycomp
16 Oct 2017, 14:50

pls ignore, I had an exception that was throwing things out of whack


@ycomp

PanagiotisCharalampous
16 Oct 2017, 14:58

Hi ycomp.

OA_POSITION_STATUS_CREATED is the status of the position when an order is accepted. You will get OA_POSITION_STATUS_OPEN status when the order is filled and the position is opened.

Best Regards,

Panagiotis


@PanagiotisCharalampous