ExchangePosition routed all the way to OrderServer 2
This commit is contained in:
1 parent
6ecccdee7f
commit
824ce8b172
2 files changed
+10
-1
No files matched your search
@@ -232,9 +232,10 @@ OrderServiceServer::OrderServiceServer(
|
||||
this->on_order_op_result(order_op_result);
|
||||
});
|
||||
},
|
||||
[](const ExchangePosition &exch_pos) {
|
||||
[this, &ctx](const ExchangePosition &exch_pos) {
|
||||
LOG(OrderMan, Info, "OrderServiceServer exchange position n_pos: {} ",
|
||||
exch_pos.total_exchange_positions.size());
|
||||
ctx.post([this, exch_pos] { this->_on_exchange_position(exch_pos); });
|
||||
},
|
||||
me->dyn_order_registry, thread->executor.make_proxy(), mdc.oracle());
|
||||
|
||||
@@ -408,5 +409,11 @@ void OrderServiceServer::on_order_op_result(
|
||||
me->in_flight_order_ops.erase(it);
|
||||
}
|
||||
|
||||
void OrderServiceServer::_on_exchange_position(
|
||||
const ExchangePositionEvent &ev) {
|
||||
LOG(OrderMan, Info, "OrderServiceServer::_on_exchange_position n_pos: {}",
|
||||
ev.position.total_exchange_positions.size());
|
||||
}
|
||||
|
||||
} // namespace orderman
|
||||
} // namespace bts
|
||||
Reference in new issue
Block a user