Created
February 11, 2020 17:27
-
-
Save PatrickAlphaC/2c23cb69de01b8ac9c0708b63cc9ddd0 to your computer and use it in GitHub Desktop.
Get a list of NASDAQ tickers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
url = "http://ftp.nasdaqtrader.com/dynamic/SymDir/nasdaqlisted.txt" | |
response = requests.get(url) | |
tickers = [line.split("|")[0] for line in response.text.split("\n")][1:-2] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment