From ae7d00edf2f02912ec9c04919ea7535c93d2d1e0 Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Wed, 12 Jan 2022 04:54:19 +0000
Subject: [PATCH] Intermediate ftp, no libcurl on mac

---
 protocol.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/protocol.cpp b/protocol.cpp
index e21a2df..0396038 100644
--- a/protocol.cpp
+++ b/protocol.cpp
@@ -170,7 +170,7 @@
 void tradeOrder(std::unordered_map<std::string, book::Book>& bs,
                 json::TradeMessage* message)
 {
-	if (bs.contains(message->passiveOrder)) {
+	if (bs.find(message->passiveOrder) != bs.end()) {
 		if (message->tradeType == json::BUY_AGGRESSOR) {
 			if (message->passiveOrderRemaining > 0) {
 				bs[message->product].askSide.at(message->passiveOrder).volume =

--
Gitblit v1.9.3