Hello,
Does anyone know how I can get the price of contracts on the day they are set to expire? For example, minute bar prices of a call option that has an expiration Friday 2018/01/26, on Friday 2018/01/26.
The current setup in the documents does not allow it and returns the Thursday before expiration.
Jing Wu
Hi Houman Dehghan,
Here is my attempt to get the price of the contract at the expiry.
Please see the attached example for details
Houman Dehghan
Hi Jing Wu,
Many thanks for your comment. Would this also work in the research platform?
Jing Wu
It would be easier in research notebook as you could request the options history directly.
qb.GetOptionHistory(symbol, date)
Houman Dehghan
Unfortunately that does not seem correct. I think there is a bug somewhere, I have attached the notebook. The function returns the previous day values instead, 2018-01-18 instead of 2018-01-19.
Houman Dehghan
I actually played around with the notebook a little bit, there are various days that come back empty. For example in the note book above if you try the Tuesday before expiration or even Wednesday it comes back empty.
Has anyone experienced the same issue?
Jared Broad
Please send bug reports to support@quantconnect.com
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.
Houman Dehghan
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!