From 167c8c23a07fd953d43afaf08dcefb87b08cc8e6 Mon Sep 17 00:00:00 2001 From: Pedro Pinto Date: Thu, 27 Aug 2020 08:19:47 -0400 Subject: [PATCH] Fixed batching of orders under iLink3. --- src/lib/orderman/actors/GLBXiLink3ExecutionGateway.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/orderman/actors/GLBXiLink3ExecutionGateway.cpp b/src/lib/orderman/actors/GLBXiLink3ExecutionGateway.cpp index c1d6f4640..99696930c 100644 --- a/src/lib/orderman/actors/GLBXiLink3ExecutionGateway.cpp +++ b/src/lib/orderman/actors/GLBXiLink3ExecutionGateway.cpp @@ -243,19 +243,19 @@ void GLBXiLink3ExecutionGateway::send_msgs(std::vector const &msgs, auto create_ptr = std::get_if(&m); if (create_ptr) { me->gw->send_order(*create_ptr); - break; + continue; } // CancelReplace auto cancel_replace_ptr = std::get_if(&m); if (cancel_replace_ptr) { me->gw->send_cancel_replace(*cancel_replace_ptr); - break; + continue; } // Cancel auto cancel_ptr = std::get_if(&m); if (cancel_ptr) { me->gw->send_cancel(*cancel_ptr); - break; + continue; } } me->gw->flush();