Closed StephanAkkerman closed 8 months ago
Other option: https://github.com/portfolioplus/pytickersymbols (does not seem to be completely up to date)
Or we could look for ways to suppress it 🤷
Could maybe look into: https://github.com/dpguthrie/yahooquery for getting all tickers
Maybe convert yfinance code into yahooquery:
tickers = Ticker(sp500, asynchronous=True)
Could also add some rules for this: like skipping it when the ticker is longer than 4 letters
The bot will now throw a warning for all tickers that are not valid:
To prevent this from happening we should first check if the ticker is valid at all for instance by using: https://api.nasdaq.com/api/screener/stocks?tableonly=true&limit=25&offset=0&download=true or https://scanner.tradingview.com/america/scan
Maybe there are other APIs for finding all the stock tickers available on yahoo finance