Fix API Needs Delay between placing order against different accounts.

Created at 14 Feb 2023, 16:11
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!
CT

ctid5687281

Joined 06.02.2023

Fix API Needs Delay between placing order against different accounts.
14 Feb 2023, 16:11


we are trying to make a copy trading system using FIX API sample solution,

we are not able to place order without delay between trade Initiator and tradApp.SendMessage for multiple accounts .secondly do we need to start and stop  tradeInitiator each time we are placing order or is there any way out to have one initiator for multiple accounts.???

int milliseconds = 1000;

            foreach (var listacc in result)
            {                
                    listacc._tradeInitiator.Start();                  
                   Thread.Sleep(milliseconds);
                    listacc._tradeApp.SendMessage(message);
                    listacc._tradeApp.Dispose();
                    listacc._tradeInitiator.Stop();               
             }


@ctid5687281