How can I use Python to get a list of all stock ticker symbols?

14 Replies, 1463 Views

Hey! I’ve been down this rabbit hole before. For python get list of all stock ticker symbols, I found that the `yfinance` library can be a bit clunky, but it’s doable.

Another option is to use the `stock_analysis` package. It’s not super well-known, but it has some handy tools for pulling ticker lists.

Here’s a quick example:
```python
from stock_analysis import StockAnalyzer
analyzer = StockAnalyzer()
tickers = analyzer.get_tickers()
```
Also, check out the NYSE and NASDAQ websites—they have downloadable lists of tickers.

Messages In This Thread



Users browsing this thread: 1 Guest(s)