zero_out_pos_unit was not zering out backwards compat doubles
This commit is contained in:
1 parent
a271abf3c4
commit
37a8ae6677
3 files changed
+26
-20
No files matched your search
@@ -69,11 +69,13 @@ struct PositionServiceServer::PImpl {
|
||||
manual_fills_publisher(manual_fills_publisher),
|
||||
// pnl
|
||||
pnl_publisher(pnl_publisher),
|
||||
pnl_account_publisher(pnl_account_publisher), pnl_helper(md_client),
|
||||
pnl_account_publisher(pnl_account_publisher),
|
||||
pnl_helper(md_client),
|
||||
poll_period_ms(300),
|
||||
// admin
|
||||
admin_service(context.locate<bts::api::admin::AdminService>()),
|
||||
admin_data(), account_map() {}
|
||||
admin_data(),
|
||||
account_map() {}
|
||||
};
|
||||
|
||||
PositionServiceServer::PositionServiceServer(bts::api::ServiceContext &context,
|
||||
@@ -103,12 +105,10 @@ PositionServiceServer::PositionServiceServer(bts::api::ServiceContext &context,
|
||||
me->admin_service.subscribe_admin_data() |
|
||||
rxcpp::operators::subscribe<api::admin::Admin_dataUpdate>(
|
||||
[this](auto const &update) {
|
||||
for (const auto &r : update.added()) {
|
||||
for (const auto &r : update.added())
|
||||
_set_admin_data(*r);
|
||||
}
|
||||
for (const auto &r : update.changed()) {
|
||||
for (const auto &r : update.changed())
|
||||
_set_admin_data(*r.current());
|
||||
}
|
||||
});
|
||||
// manual fills
|
||||
auto all = me->manual_fills_store->retrieve_all()[manual_fills_ns];
|
||||
|
||||
Reference in new issue
Block a user