def get_stock_price(ticker: str) -> float: stock = yf.Ticker(ticker) return stock.history(period='1d')['Close'].iloc[-1]