QuantConnect / QuantConnect/Lean
Missing feature handle stock halts and suspensions
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
Lean should handle cases of stock suspensions and halts correctly.
There are cases where the SEC intervenes in the market to halt trading activity due to serious concerns about a company's assets, operations, or other financial information. e.g. Luckin Coffee Inc on 2020-04-07
In other cases, due to other reasons, The security halts the trading on a given date. e.g. Biogen on 2020-11-06
Actual Behavior
Lean complains there is missing data when, in reality, there was no data at all for that period.
Potential Solution
Implement the suspension in the map files.
Reproducing the Problem
System Information
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
- I have provided detailed steps to reproduce the issue
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
The issue identifies map files as the likely area but names no specific file or test. Start by locating the map files and reviewing how missing data is currently handled for stock history. Done means halted or suspended periods are represented without Lean reporting missing data incorrectly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- data
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100