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

missing 'get_symbols' #99

Open
ramphkg opened this issue Jun 21, 2019 · 4 comments
Open

missing 'get_symbols' #99

ramphkg opened this issue Jun 21, 2019 · 4 comments
Labels
bug Something isn't working

Comments

@ramphkg
Copy link

ramphkg commented Jun 21, 2019

Traceback (most recent call last):
File "stockscore.py", line 7, in
from stockscore.data import get_symbols
ImportError: cannot import name 'get_symbols'

@brandonscript
Copy link

Looking at this, I'm confused what it was even supposed to do? That method doesn't exist in the codebase at all.

@asafravid
Copy link

asafravid commented Sep 13, 2020

I'm also getting this error:

"C:\Program Files (x86)\Python37-32\python.exe" C:/Users/Asaf/Documents/GitHub/stockscore/stockscore.py
Traceback (most recent call last):
  File ".../stockscore/stockscore.py", line 7, in <module>
    from stockscore.data import get_symbols
ImportError: cannot import name 'get_symbols' from 'stockscore.data' (...\stockscore\stockscore\data.py)

Process finished with exit code 1

@jackmoody11 jackmoody11 added the bug Something isn't working label Dec 20, 2020
@caiovt
Copy link

caiovt commented Mar 31, 2021

I had the same error here. Can anyone help me?

@dkubanyi
Copy link

It's looking for a collection of symbols it seems, so if you go to stockscore/data.py, and add for example this, it will sort of work:
def get_symbols(): return ["AAPL"]
However, this isn't the only problem. When the script is then fetching the data, you need an API key for IEX Cloud API, which is not free:
iexfinance.utils.exceptions.IEXAuthenticationError: The IEX Cloud API key must be provided either through the token variable or through the environmental variable IEX_TOKEN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants