Fixing ExchangePosition's qty (unsigned uint related bug) and exchange

This commit is contained in:
taha afzal committed 2022-05-18 17:14:39 -04:00
1 parent d972564d34
commit 73a301192f
4 files changed
+11 -5

No files matched your search

+2 -1
View File
@@ -446,7 +446,8 @@ void OrderServiceServer::_on_exchange_position(
ret_pos.set_security_resolved(p.security != nullptr);
ret_pos.set_exchange_desc(p.exchange_sec_desc);
ret_pos.set_avg_filled_price(p.avg_filled_price.value());
ret_pos.set_position(p.position.whole_value());
ret_pos.set_position(p.position);
ret_pos.set_exchange(ev.position.exchange);
me->exchange_pos_publisher.add_or_update(ret_pos);
LOG(OrderMan, Info,
"OrderServiceServer::_on_exchange_position publishing pos id: {} "