Python中的Alphavantage API-X轴上没有日期

时间:2018-12-03 19:29:39

标签: python python-3.x alphavantage

一些基本知识-使用Alpha Vantage运行python 3.x(Jupyter Notebook)

我正在运行此简单代码。一切正常,我唯一的问题是它没有在x轴上显示日期。任何人都知道为什么要这样做吗?

from alpha_vantage.timeseries import TimeSeries
import matplotlib.pyplot as plt

ts = TimeSeries(key='06VFCKNZ709V6XFG', output_format='pandas')
data, meta_data = ts.get_intraday(symbol='MSFT',interval='1min', outputsize='full')
data['4. close'].plot()
plt.title('Intraday Times Series for the MSFT stock (1 min)')
plt.show()

1 个答案:

答案 0 :(得分:0)

因此需要此行才能打印出日期

File owner and permissions,
Is there classes/Tools.php?
Replace all files with the same version.

现在的问题是,它显示股市收盘后的时间。而且API没有这些日期。我会继续发布答案,以防万一。