From 0b7aa02704f6ece97d17fbb118519c5cc62caaba Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Wed, 19 Jan 2022 07:45:21 +0000 Subject: [PATCH] Bot prints exchange feed --- protocol.hpp | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/protocol.hpp b/protocol.hpp index 1893fd0..a1a371d 100644 --- a/protocol.hpp +++ b/protocol.hpp @@ -3,6 +3,7 @@ #include "book.hpp" #include "json.hpp" +#include <deque> #include <string> #include <unordered_map> @@ -12,6 +13,9 @@ // Catchup utilities std::unordered_map<std::string, book::Book> recoverBook(); +void createWebSocket(); +std::deque<json::Message*> +catchUp(std::unordered_map<std::string, book::Book>& bs); // Outgoing messages json::Message* addOrder(json::AddMessage& order); -- Gitblit v1.9.3