enddate bugfix in download_prices