Routing ExchangePosition to OrderServiceServer
This commit is contained in:
1 parent
96d58942d0
commit
6ecccdee7f
22 files changed
+210
-21
No files matched your search
@@ -6,6 +6,7 @@
|
||||
#include "lib/config/config.h"
|
||||
#include "lib/config/protos/jetfix.pb.h"
|
||||
#include "lib/config/protos/orderman_cfg.pb.h"
|
||||
#include "lib/logging/logging.h"
|
||||
#include "lib/md/MDClient.h"
|
||||
#include "lib/md/MDConsumer.h"
|
||||
#include "lib/mercury/actors/Timer.h"
|
||||
@@ -19,6 +20,7 @@
|
||||
#include "lib/orderman/actors/SecuritySrc.h"
|
||||
#include "lib/orderman/actors/ServiceBridge.h"
|
||||
#include "lib/orderman/actors/order_manager/OrderManager.h"
|
||||
#include "lib/orderman/events/ExchangePositionEvent.h"
|
||||
#include "lib/orderman/events/OrderOpResultEvent.h"
|
||||
#include "lib/orderman/order_factory/DynamicOrderRegistry.h"
|
||||
#include "lib/plugin/SparkServices.h"
|
||||
@@ -139,6 +141,8 @@ OrderServiceServer::OrderServiceServer(
|
||||
md::TradeSummarySignalDispatcher &tssd)
|
||||
: api::orderman::OrderServiceBase(ctx),
|
||||
me(new PImpl(ctx, mdc, d, stats, log)) {
|
||||
LOG(md, Info, "OrderServiceServer cons t_id: {} t_name: {}",
|
||||
os::get_thread_id(), os::get_thread_name());
|
||||
me->publish_orders = make_orders_publisher();
|
||||
me->publish_fills = make_fills_publisher();
|
||||
|
||||
@@ -228,6 +232,10 @@ OrderServiceServer::OrderServiceServer(
|
||||
this->on_order_op_result(order_op_result);
|
||||
});
|
||||
},
|
||||
[](const ExchangePosition &exch_pos) {
|
||||
LOG(OrderMan, Info, "OrderServiceServer exchange position n_pos: {} ",
|
||||
exch_pos.total_exchange_positions.size());
|
||||
},
|
||||
me->dyn_order_registry, thread->executor.make_proxy(), mdc.oracle());
|
||||
|
||||
thread->executor.activate(me->service_bridge);
|
||||
|
||||
Reference in new issue
Block a user