Files
UoL/CM2005 Object Oriented Programming/Topic 4/4.3.3/OrderBookEntry.h

26 lines
555 B
C++

#pragma once
#include <string>
enum class OrderBookType{bid, ask, unknown};
class OrderBookEntry
{
public:
OrderBookEntry( double _price,
double _amount,
std::string _timestamp,
std::string _product,
OrderBookType _orderType);
static OrderBookType stringToOrderBookType(std::string s);
double price;
double amount;
std::string timestamp;
std::string product;
OrderBookType orderType;
};