Add incorporated OrderBook into MerkelMain
This commit is contained in:
@ -0,0 +1,22 @@
|
||||
#include "OrderBook.h"
|
||||
#include "CSVReader.h"
|
||||
|
||||
/* Construct, reading a csv data file */
|
||||
OrderBook::OrderBook(std::string filename)
|
||||
{
|
||||
orders = CSVReader::readCSV(filename);
|
||||
}
|
||||
|
||||
/* return vector of all known products in the dataset */
|
||||
std::vector<std::string> OrderBook::getKnownProducts()
|
||||
{
|
||||
std::vector<std::string> products;
|
||||
return products;
|
||||
}
|
||||
|
||||
/* return vector of Orders according to the sent filters */
|
||||
std::vector<OrderBookEntry> OrderBook::getOrders(OrderBookType type, std::string product, std::string timestamp)
|
||||
{
|
||||
std::vector<OrderBookEntry> order_selection;
|
||||
return order_selection;
|
||||
}
|
||||
Reference in New Issue
Block a user