Best way to source open price right after open

This works for me:

# Whichever stock you want...
_symbol = 'AAPL'

# Get the bars for the specified ticker, using the Day timeframe and limit to only 1 (today).
_bars = api.get_bars(_symbol, TimeFrame.Day, limit=1)

# Get the 'Open' value from the first item in the array.
_openPrice = _bars[0].o

print(f'Open price for {_symbol}: ${_openPrice}')

Bear in mind, if you run this when the market is closed, it will probably return the open price for the previous day. I wrote and tested this just now (during market hours) so cannot confirm for out of hours.