alpha_vantage API (python) 不提供调整后的数据

我正在尝试访问 TSLA 股票数据,但该数据似乎并未考虑到今年早些时候的分裂。Alpha_Vantage 网站声称它将默认设置为 adjustment=true,但情况似乎并非如此,我尝试指定 adjustment=true 但这返回了意外的关键字错误。


from alpha_vantage.timeseries import TimeSeries

import pandas as pd

ts = TimeSeries(key= api_key, output_format='pandas'

data, meta_data = ts.get_daily(self.symbol, outputsize='full')

#tried ts.get_daily(self.symbol, outputsize='full') but still no luck. The image ive added shows the data in a graph. the crash, i believe is a split

https://img1.sycdn.imooc.com/658e2c5f0001b6c006100455.jpg

胡子哥哥
浏览 58回答 1
1回答

慕田峪9158850

from alpha_vantage.timeseries import TimeSeriesimport pandas as pdts = TimeSeries(key= api_key, output_format='pandas')data, meta_data = ts.get_daily_adjusted(self.symbol, outputsize='full')这是获得分段调整关闭的方法。z
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python