Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improves GetContractDetails Error Message #106

Closed
4 tasks done
AlexCatarino opened this issue Apr 23, 2024 · 1 comment
Closed
4 tasks done

Improves GetContractDetails Error Message #106

AlexCatarino opened this issue Apr 23, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@AlexCatarino
Copy link
Member

Expected Behavior

When we can find the details for a security, inform the user that this security was not found in IB database.

Actual Behavior

We receive the following message:

No security definition has been found for the request. Origin: [Id=42] GetContractDetails: NVDL (CFD NVD L SMART)

which is not very helpful. It means that the CFD for NVDL was not found in IB database. If we search for it in the Produce Search page it cannot be found.

Potential Solution

Catch that error message and explain we couldn't find it on the IB dataset page. We could suggest using TWS search to verify whether the symbol is supported.

Reproducing the Problem

self.add_cfd("NVDL", market=Market.INTERACTIVE_BROKERS)

Checklist

  • I have completely filled out this template
  • I have confirmed that this issue exists on the current master branch
  • I have confirmed that this is not a duplicate issue by searching issues
  • I have provided detailed steps to reproduce the issue
@AlexCatarino AlexCatarino added the enhancement New feature or request label Apr 23, 2024
@AlexCatarino
Copy link
Member Author

Replaced by QuantConnect/Lean#7972

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant