QuantConnect / QuantConnect/Lean
Live Trading Restarts Fetch Open Insights
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 21.7k
- Forks
- 5.3k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 34
Description
Expected Behavior
When an algorithm is restarted in live mode, it doesn't take into account open Insights.
Actual Behavior
When an algorithm is restarted in live mode, the open Insights from the previous deployment are loaded.
Potential Solution
Save the open Insights, and load them along the get open positions logic.
Insight's don't have a global manager like the SecurityTransactionManager for orders.
Checklist
- I have completely filled out this template
- I have confirmed that this issue exists on the current
masterbranch - I have confirmed that this is not a duplicate issue by searching issues
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading SecurityTransactionManager and the existing logic that loads open positions during a live restart, then inspect how open Insights are represented and persisted. Clarify the contradictory expected and actual behavior, and consider the issue done when a restarted live algorithm handles open Insights from the previous deployment consistently with the intended behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100