The goal of the IB-insync library is to make working with the Trader Workstation API from Interactive Brokers as easy as possible. Python 3.6 or higher; A running TWS or IB Gateway application ...
Pre-market (4:00–9:30 AM ET): Limit orders at ask price. Regular hours (9:30 AM–4:00 PM ET): Market orders. Post-market (4:00–8:00 PM ET): Limit orders at bid price.