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

Error Interpreter for Brokerage Error #7972

Open
4 tasks done
AlexCatarino opened this issue Apr 23, 2024 · 0 comments
Open
4 tasks done

Error Interpreter for Brokerage Error #7972

AlexCatarino opened this issue Apr 23, 2024 · 0 comments
Labels

Comments

@AlexCatarino
Copy link
Member

Expected Behavior

LEAN translates brokerage error messages to user-friendly terms.

Actual Behavior

We receive messages as the following one:

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 on the Produce Search page, it cannot be found.

Potential Solution

Pipe the brokerage error messages through error interpreter logic, expand the interpreters to include common brokerage error messages.

Reproducing the Problem

Live deployment with the following code:

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant