Skip to content

Warn or throw when an option is subscribed at a finer resolution than its underlying #9732

Description

@DerekMelchin

Expected Behavior

Subscribing an option at a finer resolution than its already-subscribed underlying should throw or warn, since IV/Greeks are computed from the underlying's last price.

Actual Behavior

equity = self.add_equity("SPY", Resolution.DAILY)
self.add_option_contract(contract, Resolution.MINUTE)

is accepted silently. The contract's IV/Greeks update all session against the underlying's stale daily price, so they're quietly wrong.

Potential Solution

When adding an option whose underlying is already subscribed at a coarser resolution: throw, warn, or auto-add an internal underlying subscription at the option's resolution (like add_option_contract already does when the underlying is missing).

Reproducing the Problem

Run the two lines of code above in a QC algorithm

System Information

QC Cloud

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions