alvarobartt / investpy

Financial Data Extraction from Investing.com with Python
https://investpy.readthedocs.io/
MIT License
1.59k stars 375 forks source link

Ability to pull indices, commodity, and currency-pair data in local time zone #439

Open codecraf8 opened 2 years ago

codecraf8 commented 2 years ago

Hi There,

Thanks for the amazing library.

I went through the documentation and was not able to specify the time zone of data that I want to retrieve. Adding a variable of time zone would really be helpful, something like :

_data = result.retrieve_historical_data(
            from_date=START_DATE, 
            to_date=END_DATE,
            time_zone = 'GMT +8:30'
        )

If I do this I get an error : TypeError: retrieve_historical_data() got an unexpected keyword argument 'time_zone'

This is available for : investpy.news.economic_calendar