Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get stock data

import yfinance as yf
import matplotlib.pyplot as plt
# Get the data for the stock Apple by specifying the stock ticker, start date, and end date
data = yf.download('AAPL','2016-01-01','2018-01-01') 
# Plot the close prices
data.Close.plot()
plt.show()
Source by www.quora.com #
 
PREVIOUS NEXT
Tagged: #python #stock #data
ADD COMMENT
Topic
Name
9+8 =