Positions entries published by the PositionService are never removed, if a baseposition is absent, the enrties are 0'd out
This commit is contained in:
1 parent
ac1c5566ac
commit
edba0e1cd7
5 files changed
+37
-32
No files matched your search
@@ -285,7 +285,7 @@ void PositionServiceServer::set_base_position(
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// PNL helpers ///////////////////////////////////////////////////////////////
|
||||
void PositionServiceServer::_compute_pnl_and_publish() {
|
||||
std::vector<const PositionUnit *> in_pos;
|
||||
std::map<int, PositionUnit const*> in_pos;
|
||||
me->state.get_pos(in_pos);
|
||||
std::vector<PNLUnit> pnl;
|
||||
std::vector<AccountPNL> account_pnl;
|
||||
|
||||
Reference in new issue
Block a user