Open Amol-Gupta opened 1 year ago
Hi @Amol-Gupta! Thanks for the report. Lean expects data to be emitted in exchange time zone as per the market-hours-database specifications.
It is trying to convert the EndTime to UTC. EndTime was already matching with the UTC.
That sounds like the bug, ref https://github.com/QuantConnect/Lean.Brokerages.Samco/blob/master/QuantConnect.SamcoBrokerage/SamcoBrokerage.cs#L838
Actual Behavior
I am facing an exception on LiveAuxiliaryDataSynchronizingEnumerator.cs
Expected Behavior
I have tried debugging the LiveAuxiliaryDataSynchronizingEnumerator.cs at line 179. It is trying to convert the EndTime to UTC. EndTime was already matching with the UTC. I am in India which is GMT+5:30 (TimeZones.Kolkata). I am not sure what the actual behavior but the aforementioned behavior is incorrect. Also, all subscribed symbols are unsubscribed on the first tick.
Potential Solution
Reproducing the Problem
Checkout following 2 repos in empty https://github.com/Amol-Gupta/Lean.git https://github.com/Amol-Gupta/Lean.Brokerages.Samco.git
checkout temp1 branch On both repo. Fill in credentials for samco. Build, Run. that will help in reporoducing the isssue
System Information
Windows 11. Visual studio.
Checklist
master
branch