04.导入yfinance数据

案例完整代码:

正常版:

import yfinance as yf
aapl= yf.Ticker("aapl")
aapl_historical = aapl.history(start="2022-11-06", end="2022-11-11", interval="1m")
aapl_historical
04.导入yfinance数据

科学上网版:

import yfinance as yf
aapl= yf.Ticker("aapl")
aapl_historical = aapl.history(start="2022-11-06", end="2022-11-11", interval="1m", proxy="http://127.0.0.1:7890")
aapl_historical
04.导入yfinance数据

原创文章,作者:朋远方,如若转载,请注明出处:https://caovan.com/04-daoruyfinanceshuju/.html

(0)
打赏 微信扫一扫 微信扫一扫
朋远方的头像朋远方
上一篇 2022年11月13日 下午1:19
下一篇 2022年11月14日 上午11:27

相关推荐

发表回复

登录后才能评论