Is there any danger of opening multiple orders

Created at 14 Jan 2023, 14:54
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!
IV

ivankyuchukov98

Joined 14.01.2023

Is there any danger of opening multiple orders
14 Jan 2023, 14:54


Hello, I am trying to create a bot, but I have question for this case:
  Is it possible the response from the request to be delayed and return  result "false", but in reality later to be completed which will trick me into opening more positions in an attempt to create an order. There is function ExecuteMarketOrderAsync and this lead me to believe I'm safe when it's not an async request, but I still want to be sure so I'm asking here

var result = ExecuteMarketOrder(TradeType.Sell, EURUSD, 123);
  if (result.IsSuccessful)
  {}
  else
  {}

 


@ivankyuchukov98