1 #ifndef ORDER_BOOK_DEFINES_H
2 #define ORDER_BOOK_DEFINES_H
3 #include <boost/unordered_map.hpp>
23 void insert(CMD::SingleOrder* order);
31 void insert(CMD::SpreadOrder* order);
38 CMD::SingleOrder*
getOrder(
long clOrderId);
68 boost::unordered_map<long, CMD::SingleOrder*> _orderBook;
69 boost::unordered_map<long, CMD::SpreadOrder*> _spreadOrderBook;
73 std::multimap<std::string, std::string> _exchangeOrderIdToTradeId;
CMD::SpreadOrder * getSpreadOrder(long clOrderId)
getSpreadOrder
void alignOrders(CMD::SingleOrder *order)
alignOrders
The OrderBook struct.
Definition: sgOrderBookDefines.h:17
int update(OrderConfirmation &confirmation, bool reconcileOldOrders=false)
update
SingleOrder * getApiOrder(long clOrderId)
getApiOrder
The OrderConfirmation class contains the Exchange Order Confirmation Message data.
Definition: sharedResponse.h:15
CMD::SingleOrder * getOrder(long clOrderId)
getOrder
void insert(CMD::SingleOrder *order)
insert
The SingleOrder class. This wrapper is used for sending Single Leg Orders. Usage: Create an object fo...
Definition: sharedSingleOrder.h:21