Add Initial commit for adding username

This commit is contained in:
Lev
2021-06-13 12:25:52 -05:00
parent f89619dd37
commit 4b64ff2af7
13 changed files with 4399 additions and 0 deletions

View File

@ -0,0 +1,63 @@
#include <iostream>
#include <string>
#include <vector>
#include "OrderBookEntry.h"
#include "MerkelMain.h"
#include "CSVReader.h"
#include "Wallet.h"
int main()
{
MerkelMain app{};
app.init();
// Wallet wallet;
// wallet.insertCurrency("BTC", 10);
// wallet.insertCurrency("USDT", 100.83);
// std::cout << wallet.toString() << std::endl;
//std::cout << "Wallet has BTC " << wallet.containsCurrency("USDT", 100.50) << std::endl;
// wallet.removeCurrency("USDT", 10);
// std::cout << wallet.toString() << std::endl;
//CSVReader::readCSV("20200317.csv");
}
// std::vector<OrderBookEntry> orders;
// orders.push_back( OrderBookEntry{1000,
// 0.02,
// "2020/03/17 17:01:24.884492",
// "BTC/USDT",
// OrderBookType::bid} );
// orders.push_back( OrderBookEntry{2000,
// 0.02,
// "2020/03/17 17:01:24.884492",
// "BTC/USDT",
// OrderBookType::bid} );
// // std::cout << "The price is " << orders[1].price << std::endl;
// for (OrderBookEntry& order : orders)
// {
// std::cout << "The price is " << order.price << std::endl;
// }
// for (unsigned int i = 0; i < orders.size() ; ++i)
// {
// std::cout << "The price is " << orders[i].price << std::endl;
// }
// for (unsigned int i = 0; i < orders.size() ; ++i)
// {
// std::cout << "The price is " << orders.at(i).price << std::endl;
// }