Skip to content

Instantly share code, notes, and snippets.

@KenoLeon
Created May 11, 2022 01:01
Show Gist options
  • Select an option

  • Save KenoLeon/d9537030298320ebaa0212a8e02e5cd0 to your computer and use it in GitHub Desktop.

Select an option

Save KenoLeon/d9537030298320ebaa0212a8e02e5cd0 to your computer and use it in GitHub Desktop.
Simple Yfinance API call
import yfinance as yf
# DEFINE TICKER FOR APPLE
aapl = yf.Ticker("AAPL")
# GET HISTORICAL TRADING DATA
print(aapl.history(period="max"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment