Introduction
Stocksymbol connects to the StockSymbol API that I created to provide a list of stock symbols from all major stock exchanges across various regions and markets.
Quick Start
Install package
pip install stocksymbol
Get an API key
You can register for a free API key here.
Symbol list
from stocksymbol import StockSymbol
api_key = '<your API key here>'
ss = StockSymbol(api_key)
symbol_list_us = ss.get_symbol_list(market="US")
symbol_list_spx = ss.get_symbol_list(index="SPX")
market_list = ss.market_list
index_list = ss.index_list
Further reads
Check out this blog post (free link here) for a detailed tutorial with output examples and the motivation behind stocksymbol.