From c06e6e72e3e882d106f870f49bbd25ced2c8f9f6 Mon Sep 17 00:00:00 2001 From: Lev Date: Thu, 1 Jul 2021 17:00:25 -0500 Subject: [PATCH] Add starting code for trading bot --- .../Midterm/Merkelrex-TradingBot/TradingBot.cpp | 6 ++++++ .../Midterm/Merkelrex-TradingBot/TradingBot.h | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 CM2005 Object Oriented Programming/Midterm/Merkelrex-TradingBot/TradingBot.cpp create mode 100644 CM2005 Object Oriented Programming/Midterm/Merkelrex-TradingBot/TradingBot.h diff --git a/CM2005 Object Oriented Programming/Midterm/Merkelrex-TradingBot/TradingBot.cpp b/CM2005 Object Oriented Programming/Midterm/Merkelrex-TradingBot/TradingBot.cpp new file mode 100644 index 0000000..ab9fa61 --- /dev/null +++ b/CM2005 Object Oriented Programming/Midterm/Merkelrex-TradingBot/TradingBot.cpp @@ -0,0 +1,6 @@ +#include "TradingBot.h" + +TradingBot::TradingBot(MerkelMain* merkel) +{ + this->merkel = merkel; +} \ No newline at end of file diff --git a/CM2005 Object Oriented Programming/Midterm/Merkelrex-TradingBot/TradingBot.h b/CM2005 Object Oriented Programming/Midterm/Merkelrex-TradingBot/TradingBot.h new file mode 100644 index 0000000..bf39771 --- /dev/null +++ b/CM2005 Object Oriented Programming/Midterm/Merkelrex-TradingBot/TradingBot.h @@ -0,0 +1,11 @@ +#pragma once + +#include "MerkelMain.h" // required to interact with the order book, place bids, withdraw bids, place asks + +class TradingBot +{ + public: + TradingBot(MerkelMain* merkel); + private: + MerkelMain* merkel; +}; \ No newline at end of file