I would like to get spy price on open and based on the price is, I would like to buy other stocks from an array. How do I check the spy price on open in python?

Author