You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, is there a way to get the last price/quote with the corresponding date?
I know I can use ticker.basic_info['lastPrice'], but it only gives me the price. What if the company got delisted but the stock data is still available. I'd like know when was the last time a ticker traded and if it's been years since it did't trade, I'd know not to update this ticker anymore.
Thanks
import yfinance as yf
ticker = yf.Ticker("SFB")
ticker.basic_info['lastPrice']
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, is there a way to get the last price/quote with the corresponding date?
I know I can use
ticker.basic_info['lastPrice']
, but it only gives me the price. What if the company got delisted but the stock data is still available. I'd like know when was the last time a ticker traded and if it's been years since it did't trade, I'd know not to update this ticker anymore.Thanks
Output: 20.989999771118164
Beta Was this translation helpful? Give feedback.
All reactions