To request historical bar data from outside regular trading hours, you must set the useRTH parameter of EClient.reqHistoricalData() to False. For more information on this function, please see the documentation on Requesting Historical Bars.
How can I download historical data from outside regular trading hours using the TWS API ?
Powered by IBot
How do I obtain historical data via API?
How can I receive updates on incomplete bars/candles using the TWS API?
How do I obtain historical option implied volatility data via API?
How do I obtain historical open interest data for futures?