From b4cf0a2e71ad2c204925b33f9600dc720e25b827 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Sun, 09 Jan 2022 23:22:58 +0000 Subject: [PATCH] Initial shift to rapidjson --- book.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/book.cpp b/book.cpp index 4702e4d..381a7a2 100644 --- a/book.cpp +++ b/book.cpp @@ -74,14 +74,14 @@ } Book::Book() - : bidSide(), askSide(), productType(TEST), product("a"), stationId("b"), + : bidSide(), askSide(), productType(TEST), product("a"), stationId(7), unit("c"), expiry(std::chrono::nanoseconds(0)), aggFee(1), pasFee(-1), broFee(2) { } Book::Book(ProductTypeEnum productType, std::string product, - std::string stationId, std::string unit, + int stationId, std::string unit, std::chrono::nanoseconds expiry, double aggFee, double pasFee, double broFee) : bidSide{}, askSide{}, productType{productType}, product(product), @@ -142,7 +142,7 @@ { std::cout << "Sell side: " << this->askSide.size() << std::endl; std::vector<Level> askCopy(this->askSide); - int count = 0; + std::size_t count = 0; std::sort(askCopy.begin(), askCopy.end()); for (auto i = askCopy.rbegin(); i != askCopy.rend() && count < numOrders; i++, count++) { std::cout << *i << std::endl; -- Gitblit v1.9.3