12 #ifndef ATS_EXCHANGEMANAGER_H
13 #define ATS_EXCHANGEMANAGER_H
20 #include "json/json.h"
109 virtual void getKlines(Json::Value& result, std::string symbol, std::string interval, time_t start_date, time_t end_date,
int limit) = 0;
Contains the declaration of the OrderManager class and related enums and structs.
Contains the Trade class definition.
The ExchangeManager class is an abstract class that defines the interface for managing orders on an e...
Definition: ExchangeManager.h:27
virtual double sendOrder(Order &order)=0
Sends an order to the exchange.
ExchangeManager(OrderManager &oms)
Constructor for ExchangeManager class.
Definition: ExchangeManager.cpp:9
virtual OrderBook getOrderBook(std::string symbol)=0
Retrieves the order book.
virtual void cancelOrder(Order &order)=0
Cancels an order on the exchange.
virtual void getOrderStatus(Order &order, Json::Value &result)=0
Retrieves the status of an order on the exchange.
virtual double getPrice(std::string symbol)=0
Retrieves the current price for a given symbol on the exchange.
virtual ~ExchangeManager()=default
Virtual destructor for ExchangeManager class.
OrderManager & mOrderManager
Definition: ExchangeManager.h:29
virtual void getKlines(Json::Value &result, std::string symbol, std::string interval, time_t start_date, time_t end_date, int limit)=0
Gets Klines for a symbol.
virtual std::vector< Order > getOpenOrders(std::string symbol)=0
Retrieves a list of open orders on the exchange.
virtual std::map< std::string, double > getBalances()=0
Retrieves user balances.
virtual std::vector< Trade > getTradeHistory(std::string symbol)=0
Retrieves the trade history for a given symbol on the exchange.
virtual void modifyOrder(Order &oldOrder, Order &newOrder)=0
Modifies an existing order on the exchange.
A class for managing orders.
Definition: OrderManager.h:154
Namespace for the algorithmic trading system.
Definition: BinanceExchangeManager.cpp:8
The OrderBook struct represents the orderbook.
Definition: OrderManager.h:131
The Order struct represents an order to be placed on an exchange.
Definition: OrderManager.h:78