RFQ hooked up on the server side

This commit is contained in:
Taha Afzal authored and John Colvin committed 2022-09-28 21:22:47 -05:00
1 parent 49f13755c6
commit 3c511bb177
14 files changed
+83 -15

No files matched your search

@@ -439,6 +439,11 @@ bool EmMDListener::cancel_order(const emumba::order_entry::order_key &key) {
return it->second->trading_interface->cancel_order(key);
}
void EmMDListener::send_rfq(const bts::orderman::RFQMsg &rfq) {
LOG(OrderMan, Info, "IEMOrderMuxer::send_rfq instrument: {}",
rfq.instrtument);
}
orderman::OnEMOrderUpdate &EmMDListener::order_update_cb() {
return me->order_update_cb;
}
@@ -40,6 +40,7 @@ class EmMDListener : public emumba::deribit_connector::deribit_listener,
const emumba::order_entry::new_order &order) override;
bool update_order(const emumba::order_entry::order_update &update) override;
bool cancel_order(const emumba::order_entry::order_key &key) override;
void send_rfq(const bts::orderman::RFQMsg &rfq) override;
orderman::OnEMOrderUpdate &order_update_cb() override;
void get_positions() override;
orderman::OnEMExchangePositionUpdate &exchange_position_update_cb() override;
@@ -3,6 +3,7 @@
#include "lib/domain_model/Security.pb.h"
#include "lib/logging/logging.h"
#include "lib/md/common.h"
#include "lib/orderman/RFQMsg.h"
#include "lib/os/os.h"
#include <boost/container/small_vector.hpp>
#include <emumba-deribit-connector/deribit_handler.h>
@@ -244,6 +245,7 @@ class IEMOrderMuxer {
virtual bool update_order(
const emumba::order_entry::order_update &update) = 0;
virtual bool cancel_order(const emumba::order_entry::order_key &key) = 0;
virtual void send_rfq(const RFQMsg &rfq) = 0;
virtual OnEMOrderUpdate &order_update_cb() = 0;
// Position
// ////////////////////////////////////////////////////////////////