Can you give a way to find out if an order or position is pending an Async modification or cancelation

Created at 22 Nov 2024, 06: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!
sirinath's avatar

sirinath

Joined 25.11.2021

Can you give a way to find out if an order or position is pending an Async modification or cancelation
22 Nov 2024, 06:26


Can you give a way to find out, if 

  • an order or 
  • position 

is pending an Async 

  • modification or 
  • cancelation

And also what is pending. It difficult to manually keep tract of these across multiple tick events.


cTrader Automate
@sirinath
Replies

PanagiotisCharalampous
22 Nov 2024, 08:57

Hi there,

This info needs to be kept on the client side. The whole concept of Async execution is to proceed with your code execution while you expect a response from the server. There is no pending state on the server side. The server receives the order and responds.

Best regards,

Panagiotis


@PanagiotisCharalampous