How to access cancelled pending orders in history?

Created at 27 Mar 2024, 11:04
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!
KI

kienvu

Joined 09.03.2024

How to access cancelled pending orders in history?
27 Mar 2024, 11:04


Hello,

I've tried to access History using “foreach (var trade in History)”, but it only accesses closed positions. How can I access cancelled pending orders in history?

Thanks and best regards,


@kienvu
Replies

PanagiotisCharalampous
27 Mar 2024, 11:19

Hi there,

Cancelled orders are not available via the API unfortunately.

Best regards,

Panagiotis


@PanagiotisCharalampous

kienvu
28 Mar 2024, 03:25 ( Updated at: 28 Mar 2024, 07:21 )

RE: How to access cancelled pending orders in history?

PanagiotisCharalampous said: 

Hi there,

Cancelled orders are not available via the API unfortunately.

Best regards,

Panagiotis

Then, how can access them?


@kienvu

PanagiotisCharalampous
28 Mar 2024, 07:35

RE: RE: How to access cancelled pending orders in history?

kienvu said: 

PanagiotisCharalampous said: 

Hi there,

Cancelled orders are not available via the API unfortunately.

Best regards,

Panagiotis

Then, how can access them?

You can't :)


@PanagiotisCharalampous