Skip to content

Commit

Permalink
revert: condition of load-existing-holdings in SetJob
Browse files Browse the repository at this point in the history
  • Loading branch information
Romazes committed Jul 31, 2024
1 parent 8db478e commit e1e62ae
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3526,6 +3526,10 @@ public void SetJob(LiveNodePacket job)
var agentDescription = job.BrokerageData["ib-agent-description"];

var loadExistingHoldings = Config.GetBool("load-existing-holdings", true);
if (job.BrokerageData.ContainsKey("load-existing-holdings"))
{
loadExistingHoldings = Convert.ToBoolean(job.BrokerageData["load-existing-holdings"]);
}

Initialize(null,
null,
Expand Down

0 comments on commit e1e62ae

Please sign in to comment.