What's the difference between these two functions?

Created at 20 Feb 2023, 02:58
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!
PM

pmm20170926

Joined 20.02.2023

What's the difference between these two functions?
20 Feb 2023, 02:58


ExecuteMarketOrder() 

ExecuteMarketOrderAsync()

What's the difference between these two functions?


cTrader Automate
@pmm20170926
Replies

PanagiotisChar
20 Feb 2023, 09:24

Hi there,

ExecuteMarketOrder() waits for the server's response before the execution proceeds. ExecuteMarketOrderAsync() does not wait for a server response. It sends the order to the server and then executes the next line of code, regardless if the server has responded or not.

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@PanagiotisChar