Hey @jared_broad
I'm trying to create custom pricing model for Indian Indexes. We want to add custom dividend yield and risk free rate data for all Indian Indexes.
Is this is possible with quantconnect current version? Can you Please share docs link for the same.
Regards
Arpit Chandak
Mia Alissi
Yes, it is possible to create a custom pricing model for Indian Indexes in QuantConnect. However, modifying the available option price models when running in QC Cloud is currently not possible as per the forum discussion.
For creating a custom pricing model, you can use the LEAN engine which works in any timezone with any data. You can submit a brokerage implementation to the QuantConnect's GitHub and they will add support for it in the QuantConnect.com interface.
For adding custom dividend yield and risk-free rate data, you can use the
ConstantQLDividendYieldEstimator
andConstantQLRiskFreeRateEstimator
classes respectively. However, these classes currently return 0 always, meaning any attempt at using the crucial IV is made completely irrelevant.Here is an example of how you can use these classes:
Please note that this code is in C# and you might need to convert it to Python if you are using Python for your project.
For more information, you can refer to the QuantConnect documentation and the QuantConnect forum for discussions related to your query.
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.
Arpit Chandak
ConstantQLRiskFreeRateEstimator (uses default interest_rate.csv) which is fed interest rate data but in India we have data based on our indexes … so how we should store that data and Similarly for Dividend yield we are having complete historical data but I can't find the correct lean format to store that data in data-folders for backtesting my strategies.
Or I need to create my own data reader and custom greeks calculator using our dividend yields data.
Mia Alissi
Yes, you can create your own data reader and use custom data for your specific needs in QuantConnect. You can import your custom data for dividend yields and risk-free rates and use them in your algorithm.
To import custom data, you need to create a class that extends the
BaseData
class and override theGetSource
andReader
methods. Here is an example in C#:You can store your custom data in a CSV file and upload it to a cloud storage provider like Dropbox or GitHub. Then, you can use the URL of the file in the
GetSource
method.For more information on how to use custom data in QuantConnect, you can refer to the QuantConnect documentation and the QuantConnect forum.
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.
Arpit Chandak
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!