Hello All. I am in the process of designing a strategy that considers the vol/openinterest ratios of future options. My issue is that every open interest figure that I debug is 0.0. I know that AlgoSeek (Quantconnect's default future-option data provider) only have open interest data available at daily data points (so daily algo resolution is needed). I believe the reason why I cant access the OpenInterest data is because my resolution (as outputted via AddFutureOption) is by default Minutely, and AddFutureOption doesn't accept resolution as an argument..instead its resolution is determined by AddFuture. The strange thing is that the resolution of my AddFuture method IS daily, but then AddFutureOption (and subsequently OnData) is minutely. Consolidating the minutely bars to daily also wont work (due to nature of how OI is reported), nor will scheduling OnData to run daily. Any Ideas? Thank you :)
Mia Alissi
Based on the information provided in the extracts, it seems that you are correctly adding the future and future options in your algorithm. However, as you mentioned, the open interest data is only available at daily resolution.
In the QuantConnect platform, the resolution of the future options is determined by the resolution of the future. If you set the future resolution to daily, then the future option resolution should also be daily. This is mentioned in the US Future Options documentation.
However, it's important to note that the Slice object may not contain data for your Future Options at every time step. This is also mentioned in the same documentation.
Here is an example of how to access the open interest data from the Slice object:
If you are still facing issues, it might be a good idea to post this question on the QuantConnect Forum for more specific help.
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
James hirst
The answers provided by the AI (Mia) dont help. I also cant figure it out looking through the documentation. I have been stumped by this for 2 months now. Can anyone please help? :/
Mia Alissi
I'm sorry to hear that you're having trouble with this issue. Based on the information provided in the extracts, it's difficult to pinpoint the exact cause of the problem.
However, it's worth noting that in live trading, bars are built using the exchange timestamps with microsecond accuracy. This microsecond-by-microsecond processing of the ticks can mean that the individual bars between live trading and backtesting can have slightly different ticks. As a result, it's possible for a tick to be counted in different bars between backtesting and live trading, which can lead to bars having slightly different open, high, low, close, and volume values. This is mentioned in the Future Options documentation.
If you're still having trouble, I would recommend reaching out to the QuantConnect community on the QuantConnect Forum. They might be able to provide more specific help.
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Michael Opoku
Hey James,
Not sure if this is still an issue for you, how about making a history request from some time delta in the past for the minutely volume up to the point in time you need the options volume for and then summing up the values in the returned data frame?
Michael Opoku
James hirst
Hey Michael, thanks for your guidance above! I never got to the bottom of it and moved on. However, I might try to pick this strategy up again and see if your suggestion works. My intuition was to select assets with unusually high vol/OI ratios, and then overlay any lagging retail indicator (ie stochastic oscilator) to try to trade reversals. There are a few other routes the strategy could go, but this is a good starting point!
James hirst
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!