0

I use Python to access abiapi..

   order = Order()
   
    order.action = "BUY"  # or "SELL" 
    order.action = "SELL"
    order.totalQuantity = quantity  # the quantity of the asset to buy/sell
    order.orderType = "LMT"  # the order type, such as "LMT" for limit order
    order.tif = "GTC"
    order.eTradeOnly = False
    order.firmQuoteOnly = False
    order.lmtPrice = limitprice

What do I need to change so that the order is executed anytime even after hours?

"Outside rth" order...

petezurich
  • 9,280
  • 9
  • 43
  • 57
Aftershock
  • 5,205
  • 4
  • 51
  • 64

1 Answers1

0

See OutsideRth at https://interactivebrokers.github.io/tws-api/classIBApi_1_1Order.html

You all but had it.

order.outsideRth = true

dno
  • 971
  • 6
  • 13