Update implemented getCurrentAsks and getCurrentBids

This commit is contained in:
Lev
2021-07-02 17:24:59 -05:00
parent bb6aa4a02e
commit 719d345291
2 changed files with 114 additions and 69 deletions

View File

@ -5,28 +5,40 @@
#include "OrderBook.h"
#include "Wallet.h"
class MerkelMain
{
public:
MerkelMain();
/** Call this to start the sim */
void init();
private:
void printMenu();
void printHelp();
void printMarketStats();
void enterAsk();
void enterBid();
void printWallet();
void gotoNextTimeframe();
int getUserOption();
void processUserOption(int userOption);
public:
MerkelMain();
/** Call this to start the sim */
std::string currentTime;
/** Returns the current time */
std::string getCurrentTime();
/** Returns the list of known products */
std::vector<std::string> getKnownProducts();
/** returns a vector of all asks orders for the current time */
std::vector<OrderBookEntry> getCurrentAsks();
OrderBook orderBook{"20200317.csv"};
//OrderBook orderBook{"20200601.csv"};
Wallet wallet;
/** returns a vector of all bids orders for the current time */
std::vector<OrderBookEntry> getCurrentBids();
void enterAsk();
private:
void printMenu();
void printHelp();
void printMarketStats();
void enterBid();
void printWallet();
void gotoNextTimeframe();
int getUserOption();
void init(); // initialization function for user interaction
void processUserOption(int userOption);
std::string currentTime;
OrderBook orderBook{"20200317.csv"};
//OrderBook orderBook{"20200601.csv"};
Wallet wallet;
};