Update added the canFulfillOrder function

This commit is contained in:
Lev
2021-06-12 22:32:57 -05:00
parent ae736454ec
commit c0552cb3b7
4 changed files with 20 additions and 9 deletions

View File

@ -1,5 +1,6 @@
#include "Wallet.h"
#include "CSVReader.h"
#include <iostream>
Wallet::Wallet()
{
@ -78,6 +79,7 @@ bool Wallet::canFulfillOrder(OrderBookEntry order)
{
double amount = order.amount;
std::string currency = currs[0];
std::cout << "Wallet::canFulfillrder " << currency << ":" <<amount << std::endl;
return containsCurrency(currency, amount);
}
if(order.orderType == OrderBookType::bid)