How can I get the current stock's open price from the TWS API ?

I am writing a Machine Learning Stock price software. I can't find a way get the current stock's open price after the starting of the trading hours.

#1) The reqMktData API, the tickPrice event can be sent by tickType 'Open Tick', but this is a realtime event

#2) The reqHistoricalData API, I am not sure the price when the beginning of the trading hour is accurate as the official open price

Anybody please help... Thanks
 
Back
Top