allow date type to be passed as a parameter in get_historical_prices

I would like to pass a date type to the get_historical_prices function because I mostly use date type when working with you libraray. I think it's simpler to be able to pass in both a date string and a date type.