allow date type to be used in get_historical_prices