allow date type to be passed as a parameter in get_historical_prices