I am attempting to run a hedging strategy using one-month, two-month, three-month, and four-month VIX call options on VIX futures. However when setting the options filter to all expiries within six months (180 days), only the one-month, two-month, three-month, and sixth-month contracts are returned, omitting the fourth-month and fifth-month contracts.
I assumed the fourth and fifth month contracts were illiquid and therefore not included, but these options contracts exist. Is there a minimum options lot size for QuantConnect to include them? What is the options data syntax?
Attached is the code, debug screenshot, and trade log showing exercised option prices.
Louis Szeto
Hi Farouk
Yes you are right! Some contracts weren't there since they had no data for that particular slice. If you want to focus on managing option contracts rather than the whole option chain, you may use this more computationally efficient method, with an instance to hold all inclusive contracts:
Best
Louis
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.
Farouk Hadeed
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!