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

14 Replies, 1240 Views

Hey! I had the same issue a while back. For python get list of all stock ticker symbols, I found that the `yfinance` library actually has a workaround. You can scrape the tickers from Yahoo Finance's website using their `download` method.

Here's a quick snippet:
```python
import yfinance as yf
tickers = yf.Tickers('AAPL MSFT GOOGL')
print(tickers.tickers)
```
It’s not perfect, but it works for most cases. Also, check out the NASDAQ website—they have a CSV with all tickers you can download for free.

Messages In This Thread



Users browsing this thread: 1 Guest(s)