Lean.Brokerages.InteractiveBrokers icon indicating copy to clipboard operation
Lean.Brokerages.InteractiveBrokers copied to clipboard

Disable subscribe symbol if end with CNT

Open violet-day opened this issue 1 year ago • 3 comments

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> or feature-<issue#>-<description>

violet-day avatar Nov 08 '24 03:11 violet-day

@AlexCatarino I can't find the support ticket so only comment in this PR. This PR take too long?

violet-day avatar Feb 19 '25 04:02 violet-day

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?

Martin-Molinero avatar Feb 19 '25 13:02 Martin-Molinero

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

violet-day avatar Feb 19 '25 14:02 violet-day

Closing from https://github.com/QuantConnect/Lean.Brokerages.InteractiveBrokers/pull/176

jhonabreul avatar Jun 27 '25 19:06 jhonabreul