Importing quotes from Yfinance to a Python program has been found!

Hw can I get Yfinance to import stock quotes now? Is there a new key
that is used in Python? Can you find an example of where someone is
importing quotes from Yfinance to a Python program?

Just for the record I have found the answer to my problem and here
is the code that I have written using it:

import yfinance as yf

df = yf.download('VTI')
print(df['Close'].iloc[-1])
ticker = yf.Ticker('VTI')

VTI = round(df['Close'].iloc[-1])

VTIsh = 68

VTIval = VTI * VTIsh

stock = yf.Ticker('VTI')
info = stock.info

print(info['shortName'], "previously closed at", info['previousClose'],
      info['currency'])
VTI = float(info['previousClose'])
VTIsh = 68

VTIval = VTI * VTIsh

print(("value of vti stock bucket ="), (VTIval))

The new code that is needed seems to be the:
print(df['Close'].iloc[-1])
VTI = round(df['Close'].iloc[-1])

I am sincerely grateful to anyone who tried to help me.o

A post was merged into an existing topic: Importing and using Yfinance 0.2.3