Lean.Brokerages.InteractiveBrokers
Lean.Brokerages.InteractiveBrokers copied to clipboard
Disable subscribe symbol if end with CNT
Disable subscribe symbol if end with CNT
Related Issue
Brokerages.InteractiveBrokers #131
Motivation and Context
If symbol end with CNT, qc deploy will throw exception. In this PR, when symbol end with CNT, just ingore subscribe
Requires Documentation Change
N/A
How Has This Been Tested?
lean cli local deploy
Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] Refactor (non-breaking change which improves implementation)
- [ ] Performance (non-breaking change which improves performance. Please add associated performance test and results)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] Non-functional change (xml comments/documentation/etc)
Checklist:
- [x] My code follows the code style of this project.
- [x] I have read the CONTRIBUTING document.
- [x] I have added tests to cover my changes.
- [x] All new and existing tests passed.
- [x] My branch follows the naming convention
bug-<issue#>-<description>orfeature-<issue#>-<description>
@AlexCatarino I can't find the support ticket so only comment in this PR. This PR take too long?
Hey @violet-day! sorry for the delay, ideally the solution should be something like checking a ib security type/is tradable/ or similar, checking for string ending in CNT will be fragile, what if there's an equity for example that ends with CNT?
Hey @violet-day! sorry for the delay, ideally the solution should be something like checking a ib security type/is tradable/ or similar, checking for string ending in CNT will be fragile, what if there's an equity for example that ends with CNT?
The ticker is in my position named AGLE.CNT.
Cause in postion, it will throw No security definition. I have no chance to check tradable
See #134 , if this issue resolved, this PR may closed.
I ask IB, AGLE.CNT is not in smart exchange, and I don't know whether can get as lean security.
@Martin-Molinero
Closing from https://github.com/QuantConnect/Lean.Brokerages.InteractiveBrokers/pull/176