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

No Tradeable Dates for Option Contract #8471

Open
4 tasks done
AlexCatarino opened this issue Dec 18, 2024 · 0 comments
Open
4 tasks done

No Tradeable Dates for Option Contract #8471

AlexCatarino opened this issue Dec 18, 2024 · 0 comments

Comments

@AlexCatarino
Copy link
Member

AlexCatarino commented Dec 18, 2024

Expected Behavior

LEAN doesn't log the following message:
Backtest Handled Error: No data loaded for SPY 240119C00475000 because there were no tradeable dates for this security.
for contracts that are added by Option Filter. It's odd that we receive this message if the contract is in the option universe.

Actual Behavior

We read the following message:
Backtest Handled Error: No data loaded for SPY 240119C00475000 because there were no tradeable dates for this security.

Potential Solution

N/A
It is potentially a data issue, but how did we create an entry in the option universe without data?

Reproducing the Problem

public override void Initialize()
{
    SetStartDate(2023, 12, 29);
    SetEndDate(2023, 12, 30);
    AddOption("SPY");
}

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
None yet
Projects
None yet
Development

No branches or pull requests

1 participant