# quick example on getting current live price
# free tier : 2000 requests/hour
from yahoo_fin import stock_info as si
ticker = 'MSFT' # example
live_price = round(si.get_live_price(ticker), 3)
previous_close = round(si.get_quote_table(ticker)['Previous Close'], 3)