Created
May 11, 2022 01:01
-
-
Save KenoLeon/d9537030298320ebaa0212a8e02e5cd0 to your computer and use it in GitHub Desktop.
Simple Yfinance API call
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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