Getting list of tickers #1512
Replies: 6 comments
-
I don't know of an API that provides a list and yF doesn't support it currently but the NYSE does have an FTP Share that has all the ticker symbols updated daily. You could write a script that accesses the FTP share and pulls them dynamically |
Beta Was this translation helpful? Give feedback.
-
There is another package called yahoo_fin that does precisely what @MidnightTechnologies was describing. Here is the link to yahoo_fin. However, be aware that the methods are faulty at times. I already contacted the creator and sent him my suggestion for the corrected code and now created a pull request on his repository. |
Beta Was this translation helpful? Give feedback.
-
I've made a python3 script that does this: https://github.com/earth-C137/Stock-Symbol-List-Maker. You need to know how to code some to use it. You have to manually download the file from the nasdaq ftp and write your file paths in the script. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the idea. I am going to code something similar. |
Beta Was this translation helpful? Give feedback.
-
Copying over a message from @elamey
|
Beta Was this translation helpful? Give feedback.
-
Another discussion: #1699 |
Beta Was this translation helpful? Give feedback.
-
Is there a way to get a list of current tickers? I'd like to write something that walks through the entire nasdaq etc. and checks balance sheets, P/E etc. But as a starting point I need the ticker symbols. Does yf or any API that you know of provide such a list?
Beta Was this translation helpful? Give feedback.
All reactions