-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCryptoExMain.h
More file actions
36 lines (31 loc) · 817 Bytes
/
CryptoExMain.h
File metadata and controls
36 lines (31 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#pragma once
#include <vector>
#include "OrderBookEntry.h"
#include "OrderBook.h"
#include "Wallet.h"
/**The entry point for the app.
*
* This class defines the exchange object
*/
class CryptoExMain
{
public:
CryptoExMain();
/** Call this to start the sim*/
void init();
private:
void loadOrderBook();
void printMenu();
void printHelp();
void printMarketStats();
void enterAsk() ;
void enterBid();
void printWallet();
void gotoNextTimestamp();
int getUserOption();
bool processUserOption(int userOption);
std::string currentTime;
// if we get more/different data, this will need to be updated
OrderBook orderBook{"data.csv"};
Wallet wallet;
};