Fix API Needs Delay between placing order against different accounts.
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();
}