Skip to content
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

Error with formater_piphist.py #7

Open
vmajor opened this issue Jan 1, 2020 · 0 comments
Open

Error with formater_piphist.py #7

vmajor opened this issue Jan 1, 2020 · 0 comments

Comments

@vmajor
Copy link

vmajor commented Jan 1, 2020

While following your suggested example and without performing any edits I get the following error when I run formater_piphist.py

`https://www.histdata.com/download-free-forex-historical-data/?/ascii/1-minute-bar-quotes/usdcad/2018
{'tk': '220375159aaf4276dc3cfb87d9c5c9ac', 'date': '2018', 'datemonth': '2018', 'platform': 'ASCII', 'timeframe': 'M1', 'fxpair': 'USDCAD'}
Wrote to ./DAT_ASCII_USDCAD_M1_2018.zip
https://www.histdata.com/download-free-forex-historical-data/?/ascii/1-minute-bar-quotes/usdcad/2019
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/histdata/api.py", line 110, in download_hist_data
assert len(token) > 0
AssertionError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "formater_piphist.py", line 30, in
zipfiles = dl(year=j, month=None, pair=symbol, platform=P.GENERIC_ASCII, time_frame=TF.ONE_MINUTE)
File "/usr/local/lib/python3.6/dist-packages/histdata/api.py", line 112, in download_hist_data
raise AssertionError('There is no token. Please make sure your year/month/pair is correct.'
AssertionError: There is no token. Please make sure your year/month/pair is correct.Example is year=2016, month=7, pair=eurgbp`

I am able to download the data, but the token seems to be a required element of the next step, however it does not appear to be the toke that is issued by histdata as it is reported as "missing".

Therefore the script does not continue and no data processing occurs. This seems to be related to my other error with Training_Model.py

What seems to be the root cause?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant