Update fixed getMean not returning correct value

This commit is contained in:
Lev
2021-07-03 04:42:08 -05:00
parent fc2985f982
commit 64c0ffee5c
2 changed files with 33 additions and 18 deletions

View File

@ -21,12 +21,18 @@ private:
void printMenu();
int getUserOption();
void processUserOption(int userOption);
void printPredictions();
// Exchange functions
void retrieveOrders(); // Retrieves current orders from Merkel and stores them in bookBids and BookAsks
void predictRates();
// Helper functions
static double getMean(std::vector<OrderBookEntry> orders, std::string product);
// ===== Variables =====
MerkelMain *merkel;
std::vector<OrderBookEntry> bookBids;
std::vector<OrderBookEntry> bookAsks;
double bidHistory = {};
std::vector<std::map<std::string, double>> bidHistory;
std::vector<std::map<std::string, double>> askHistory;
std::map<std::string, double> predictedBids;
std::map<std::string, double> predictedAsks;
};