I'm using pandas_datareader.data.DataReader and I need to list every ticker available to fetch information from, using yahoo as data source. Is there a method to list them? I've been sent to this web https://www.nasdaq.com/market-activity/stocks/screener, but I want to do it within a python program. Could it be possible?
1 Answer
$\begingroup$ $\endgroup$
2 You can download that csv file using a GET request to url or with pandas directly into a DataFrame https://api.nasdaq.com/api/screener/stocks?tableonly=true&limit=25&offset=0&download=true
Alternatively, you can check some Python packages to get financial data from Yahoo! like the following:
- $\begingroup$ Do you need to have authentication to access the end-point in the long run? $\endgroup$vic– vic2023-05-10 03:51:49 +00:00Commented May 10, 2023 at 3:51
- $\begingroup$ Looks good, no authentication needed $\endgroup$Derek Chia– Derek Chia2023-06-25 03:10:11 +00:00Commented Jun 25, 2023 at 3:10