Save ticker symbols from Intrinio's stock screening API.
You need to have an active subscription to Intrinio's "US Fundamentals and Stock Prices"
Intrinio's screener API settings can be found at http://blog.intrinio.com/stock-screener-api-intrinio/
Create environmental variables:
export INTRINIO_USERNAME="Intrinio username"
export INTRINIO_PASSWORD="Intrinio password"
Import
from IntrinioPy import Intrinio
intrinio = Intrinio()
Example # Market-cap greater than 2 billion intrinio.url = 'https://api.intrinio.com/securities/search?conditions=marketcap~gt~2000000000&page_size=500'
Start request
symbols = intrinio.get_stock_ticker_list()
Save for later
intrinio.save(symbols, "less_than_200m.p")