ig-python / trading-ig

A lightweight Python wrapper for the IG Markets API
https://trading-ig.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
319 stars 197 forks source link

conv_resol(resolution) gives an error: unhashable type #151

Closed chopin-007 closed 4 years ago

chopin-007 commented 4 years ago

I'm trying to apply resolution for fetch_historical_prices_by_epic_and_num_points and got stuck on conv_resol(resolution) which gives error of:

TypeError: unhashable type: 'pandas._libs.tslibs.offsets.Minute'

bug-or-feature commented 4 years ago

It sounds similar to #130. Make sure you're using the same pandas version as recommended in the requirements.txt file. A newer version will cause issues

chopin-007 commented 4 years ago

It sounds similar to #130. Make sure you're using the same pandas version as recommended in the requirements.txt file. A newer version will cause issues

pip install 'pandas==1.0.5' --force-reinstall

definitely helped. Although this issue will arise again for other users in the future... Would there be an update to the code to deal with newer panda versions?

Thank you!

bug-or-feature commented 4 years ago

See #140, contributions welcome