From e1e62ae6e4062bb7e409dc52ecccd0367137f368 Mon Sep 17 00:00:00 2001 From: Romazes Date: Thu, 1 Aug 2024 00:39:01 +0300 Subject: [PATCH] revert: condition of load-existing-holdings in SetJob --- .../InteractiveBrokersBrokerage.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/QuantConnect.InteractiveBrokersBrokerage/InteractiveBrokersBrokerage.cs b/QuantConnect.InteractiveBrokersBrokerage/InteractiveBrokersBrokerage.cs index 280cf33..e281acd 100644 --- a/QuantConnect.InteractiveBrokersBrokerage/InteractiveBrokersBrokerage.cs +++ b/QuantConnect.InteractiveBrokersBrokerage/InteractiveBrokersBrokerage.cs @@ -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,