stockscore icon indicating copy to clipboard operation
stockscore copied to clipboard

missing 'get_symbols'

Open ramphkg opened this issue 5 years ago • 4 comments

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

ramphkg avatar Jun 21 '19 09:06 ramphkg

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

brandonscript avatar Jul 22 '20 18:07 brandonscript

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

asafravid avatar Sep 13 '20 18:09 asafravid

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

caiovt avatar Mar 31 '21 19:03 caiovt

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.

dkubanyi avatar Oct 25 '21 11:10 dkubanyi