get-yahoo-quotes-python icon indicating copy to clipboard operation
get-yahoo-quotes-python copied to clipboard

How do I set a start and end date

Open laventnc opened this issue 7 years ago • 1 comments

When I try to delete the rows I don't want, it fails to work with PyAlgoTrade... Is there anyway to specify a Start and End date when grabbing the data?

Thanks

laventnc avatar Mar 28 '18 00:03 laventnc

Sorry, know this is quite late but still.. In the script, notice start_date in download_quotes (line 76) is set to 0. End date is set to now. You can specify the start_date as the timestamp you want to start from, converted to time since the unix epoch (or so the legend goes: http://blog.bradlucas.com/posts/2017-06-02-new-yahoo-finance-quote-download-url/)

I'll be happy to add it to the script as an option and create a PR but will probably be on the weekend

ArticuNode avatar Jan 22 '19 22:01 ArticuNode