Hey all,
so one of my models requires a large-ish calibration (e.g. the parameters for my statistical model) - this is on the order of a few megabytes.
Is there any easy way to upload data files into a project & then load then from the running code?
Cheers,
Thomas
Jared Broad
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.
Thomas Dullien
Thomas Dullien
Jared Broad
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.
Thomas Dullien
Thomas Dullien
Jared Broad
using Newtonsoft.Json;
and make a class which models your data format -var client = new WebClient(); var json = client.DownloadString (address); var customObject = JsonConvert.DeserializeObject(json);
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.
Thomas Dullien
Chad Crenshaw
After running into the same issue - trying to read data from a file, but System.IO is disallowed - I found this article.
I'm getting an error trying to use WebClient. Has it been decommissioned in the last 5 years?
The error is: "The type or namespace name 'WebClient' could not be found (are you missing a using directive or an assembly reference?)"
I have included "using Newtonsoft.Json;" at the top of my C# file.Â
Alexandre Catarino
Hi Chad Crenshaw ,
Like System.IO, System.Net.WebClient is also disallowed for security reasons.
Please use Download method that downloads a URL and returns it as a string.
// If using dropbox remember to add the &dl=1 to trigger a download var file = Download("https://www.dropbox.com?....&dl=1");
Â
Thomas Dullien
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!