-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMerkelMain.h
53 lines (44 loc) · 1.34 KB
/
MerkelMain.h
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#pragma once
#include <vector>
#include "OrderBookEntry.h"
#include "OrderBook.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);
// std::string currentTime;
// OrderBook orderBook{"20200317.csv"};
// };
class MerkelMain
{
public:
MerkelMain();
void init();
private:
void printMenu();
void printHelp();
void printHelpCommand(const std::string& command);
void listAvailableProducts();
void findMinimum(const std::string& product, const std::string& type);
void findMaximum(const std::string& product, const std::string& type);
void calculateAverage(const std::string& product, const std::string& type, int timesteps);
void predictMinMax(const std::string& product, const std::string& type, bool isMax);
void displayCurrentTime();
void goToNextTimeStep();
void processCustomCommand();
void optimizeExchangeCode();
std::string currentTime;
OrderBook orderBook{"20200317.csv"};
};