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

Zero Open Interest for Daily Slice Option Chains #8421

Open
4 tasks done
AlexCatarino opened this issue Nov 19, 2024 · 0 comments
Open
4 tasks done

Zero Open Interest for Daily Slice Option Chains #8421

AlexCatarino opened this issue Nov 19, 2024 · 0 comments
Assignees
Labels

Comments

@AlexCatarino
Copy link
Member

Expected Behavior

The OptionContract OpenInterest is non-zero for all resolutions

Actual Behavior

OptionContract OpenInterest is zero for daily data.

Potential Solution

N/A

Reproducing the Problem

# region imports
from AlgorithmImports import *
# endregion
class MyAlgorithm(QCAlgorithm):
    def Initialize(self):
        self.SetStartDate(2023, 3, 1)
        self._symbol = self.AddOption("AAPL", Resolution.DAILY).symbol
    def OnData(self, slice):
        chain = slice.option_chains.get(self._symbol)
        if not chain: return
        for contract in chain:
            self.plot('OI', 'OI', contract.open_interest)

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

2 participants