案例完整代码:
正常版:
import yfinance as yf aapl= yf.Ticker("aapl") aapl_historical = aapl.history(start="2022-11-06", end="2022-11-11", interval="1m") aapl_historical
科学上网版:
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
原创文章,作者:朋远方,如若转载,请注明出处:https://caovan.com/04-daoruyfinanceshuju/.html