shilewenuw / get_all_tickers

Get all publicly traded tickers with this library
MIT License
273 stars 123 forks source link

get_tickers.py returns tickers from nasdaq only not other exchanges #26

Open mohsen-imani opened 2 years ago

mohsen-imani commented 2 years ago

Contrary to what is claimed in the Readme, get_tickers_filtered only returns tickers from Nasdaq not other exchanges like NYSE.

def __exchange2df(exchange):
    r = requests.get('https://api.nasdaq.com/api/screener/stocks', headers=headers, params=params)
    data = r.json()['data']
    df = pd.DataFrame(data['rows'], columns=data['headers'])
    return df