How to get postion object of all the order

Created at 24 Nov 2020, 02:46
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!
IM

imrealfighter

Joined 09.11.2020

How to get postion object of all the order
24 Nov 2020, 02:46


Hello There! 

Could someone suggests me on how to iterate through all of the order (pending included) 

I've tried to use 

 

//

foreach (var position in Positions)
            {

                Print("Position ID {0}", position.Id);

            }

//

it gives me only the position that already open but not pending order

Thanks in advance.

 

 


@imrealfighter
Replies

PanagiotisCharalampous
24 Nov 2020, 08:23

Hi imrealfighter,

Pending orders are stored in PendingOrders property.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

imrealfighter
24 Nov 2020, 08:38

RE:

PanagiotisCharalampous said:

Hi imrealfighter,

Pending orders are stored in PendingOrders property.

Best Regards,

Panagiotis 

Join us on Telegram

Ok, then Thank you. (Y) 

 


@imrealfighter