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

The same problem with KeyError:'Data' #5

Open
andyheroboy2016 opened this issue Sep 16, 2016 · 1 comment
Open

The same problem with KeyError:'Data' #5

andyheroboy2016 opened this issue Sep 16, 2016 · 1 comment

Comments

@andyheroboy2016
Copy link

Dear Mr/ms benitoro
I am interested in your project. While i run your code, there come out the same problem with KeyError:'Data' as last visitor. Let me introduce my environment: Centos 6.5 64bit--Python 3.5.2 | Anaconda 4.1.1(64-bit). The error code is as below:
[root@www stockholm]# python main.py --reload=N --portfolio=Y
Stockholm is starting...

Start portfolio testing...

file_data_load start...

file_data_load end... time cost: 2s

Traceback (most recent call last):
File "main.py", line 34, in
main()
File "main.py", line 30, in main
stockh.run()
File "/dl1/stockholm-master/stockholm/stockholm.py", line 669, in run
self.data_test(self.target_date, self.test_date_range, output_types)
File "/dl1/stockholm-master/stockholm/stockholm.py", line 645, in data_test
is_date_valid = self.check_date(all_quotes, date)
File "/dl1/stockholm-master/stockholm/stockholm.py", line 469, in check_date
for quote_data in quote['Data']:
KeyError: 'Data'

Please help us out and work out this problem, or email me: [email protected] Thank you for your kind help in advance.
Best Regards
A New hobbier

@jianhoo727
Copy link

i am having the same problem :/

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

2 participants