yfinance 上午 11:30 卡住
我正在尝试构建一个不和谐的股票机器人,并且正在尝试从 yfinance 获取数据,将其放入图表中并发送,但是当我这样做时 yfinance 并没有发送所有时间:
获取数据
from pandas_datareader import data as pdr
stock = pdr.get_data_yahoo(stock, period="1d", interval="30m")
return stock['Adj Close']
I am trying to build a discord stock bot and I am trying to get data from yfinance, put it in a chart and send it, but when I do that yfinance is not sending all the hours :
getting data
from pandas_datareader import data as pdr
stock = pdr.get_data_yahoo(stock, period="1d", interval="30m")
return stock['Adj Close']
The hour in my country is 6 pm
The chart is stuck at 11:30 all the time.
btw, the response is also stuck at 11:30 so is not a graph issue
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在这里没有看到任何问题。
运行此命令: pip install yfinance --upgrade --no-cache-dir
谢谢再试一次。
另外,看看这个。
https://pypi.org/project/fix-yahoo-finance/
I'm don't see any problem here.
Run this: pip install yfinance --upgrade --no-cache-dir
Thanks try it again.
Also, see this.
https://pypi.org/project/fix-yahoo-finance/