Closed chatRG closed 4 years ago
Hi @chatRG,
Thanks for your question. This ValueError
generally indicates that the CSV file for a particular ticker cannot be found in the chosen directory or that the specified start dates of the backtest for the simulation are earlier than the start of the data.
Our intent is to provide more helpful errors for these situations in future releases.
Kind regards,
Mike.
Hi @chatRG,
Just to let you know that I've now added a more helpful ValueError
when seeing the above issue and have released it into v0.1.4 of QSTrader. It now mentions that the backtest start date is likely to be earlier than the earliest pricing date of a particular asset. Here is the relevant commit: https://github.com/mhallsmoore/qstrader/pull/330/commits/7b5cd2b8925ca52704881739e765467c1fe5eb98
Also I forgot to answer your previous question (2)! Yes, there are plans to add data sources other than static CSV. Initially it will likely be MySQL or PostgreSQL, but will depend on what the community is generally interested in.
Kind regards,
Mike.
Hi,
I am using the following snippet to fetch Yahoo data and processing it like the CSV class.
Don't see any NaN values yet I get this error
Thanks! :)