Skip to content

Instantly share code, notes, and snippets.

@cameronShadmehry
Created November 26, 2020 14:33
Show Gist options
  • Save cameronShadmehry/54fc47f79a239e4ac87dc2b55ba2c25c to your computer and use it in GitHub Desktop.
Save cameronShadmehry/54fc47f79a239e4ac87dc2b55ba2c25c to your computer and use it in GitHub Desktop.
tick = yf.Ticker(str('MSFT'))
hist_data = tick.history(period="max") # Tells yfinance what kind of data we want about this stock (In this example, all of the historical data)
hist_data.head() # Observe the historical stock data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment