How to get the 'Last Close' from yfinance

Is there a simple way to import the last close for a given stock (or a list of stock) from 'yfinance' ?
The only way I could can find is to pull the data using:

data = yf.download(tickers="MSFT",
period="1d",
interval="1m"
data.head()

And then filtering for 'Adj Close'.
Is there a simpler way to do this ?

Many thanks

You can use the following code to get last price



import yfinance as yf

stock_list = ["MSFT",'AAPL','IBM','GM','FB']

data = yf.download(tickers=stock_list,

 period="1d",

 interval="1m")['Adj Close'].iloc[-1]

print(data)



I hope this helps.

Thanks a lot, Ishan