Hi,
I have been trying (and failing) for a couple of days with something that seems as though it should be simple. I've searched the docs, forums, tutorials and google. I'm sure I must just be missing something!
I have a python script running on my home server that pulls data from various APIs and uploads a csv file to dropbox, once per day, with a selection of stocks and weights (weight as percentage, expressed as 0.0 - 1.0). I would like to use that csv to guide quantconnect to set holdings of each of the stocks to the associated weight.
I am able to download the csv into quantconnect and manipulate it as a dataframe, list, dict, etc. but cannot figure out how take that and use it to create my universe/portfolio.
Please help! Just a pointer in the right direction would be great.
Derek Melchin
Hi Graeme,
Refer to this example algorithm. We will add a link to this example in the Demonstration Algorithms section of the docs.
Best,
Derek Melchin
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.
Graeme Allen
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!