-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fetch_historical_prices_by_epic_and_num_points exception during exception handling #33
Comments
I get this error too when I run the test_ig_service function. A cursory check shows that IG returns a key called snapshotTime but not snapshotTimeUTC. Changing the expected key to snapshotTime (rest.py:line757) seems to solve the basic issue but then datetime doesn't seem to recognise the date format at (rest.py: line 758). So it seems IG changed something since this piece of code was written... I'll dig a little deeper later and see if I can fix it. It seems relatively simple.... (watch me eat my words!) |
OK here's a fix:
Be aware that the time index will be local time (timezone of the account) and not UTC. As part of the config we could require a timezone to use. But I'll leave that for another iteration. |
@femtotrader Can you give me rights to open a pull request. |
You don't need any rights to open a PR. You just need to first fork this repository. Clone your fork.
Define this repository as upstream.
Create a branch
Modify code to fix issue (or add enhancement) Commit your changes
Push to your repository
Open a Pull request (from your repository) |
Thanks @M1ntcraft3r and @redbullpeter |
The text was updated successfully, but these errors were encountered: