Add implemented the CSVReader.cpp and added a function to OBE.cpp

This commit is contained in:
Lev
2021-05-24 10:42:35 -05:00
parent e4d035740e
commit d04d687ac8
11 changed files with 3947 additions and 0 deletions

View File

@ -0,0 +1,31 @@
#include "OrderBookEntry.h"
OrderBookEntry::OrderBookEntry( double _price,
double _amount,
std::string _timestamp,
std::string _product,
OrderBookType _orderType)
: price(_price),
amount(_amount),
timestamp(_timestamp),
product(_product),
orderType(_orderType)
{
}
OrderBookType OrderBookEntry::stringToOrderBookType(std::string s)
{
if(s == "ask")
{
return OrderBookType::ask;
}
else if(s == "bid")
{
return OrderBookType::bid;
}
else
{
return OrderBookType::unknown;
}
}