📜  python 获取股票数据 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:44.988000             🧑  作者: Mango

代码示例1
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()