Links
Comment on page

Yahoo

get data as Dataframe from yahoo

Stock

Get stock data

Basic

naas_drivers.yahoofinance.get("TSLA")

Date

date_from = -30 # Date can be number or date or today
date_to = "today"
naas_drivers.yahoofinance.get("TSLA", date_from=date_from, date_to=date_to)

Interval

naas_drivers.yahoofinance.get("TSLA", interval="1d")

Moving average

ma = [20, 50] # max two value
naas_drivers.yahoofinance.get("TSLA", moving_averages=ma)

Official documentation