Ask coding questions

← Back to all posts
importing quotes from Yahoo does not work in my program any more
rogeryoung (0)

I have been using the following code to import quotes from Yahoo finance and now it does not work. Does anyone know how to import quotes from Yahoo now?

This is what I get when I run the program:

Traceback (most recent call last):
File "", line 9, in <module>
info =
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/yfinance/", line 138, in info
for my program:

Do I need to change the code below to import from yfinance now?

import yfinance as yf
stock = yf.Ticker('vti')
info =