How do I use the yfinance API in Python to get today’s DJI open? If you are using the yfinance package, then you can get the last day’s open this way.