Hi, 

I am trying to do a market on open order for IBKR and I keep on consistently running into this issue: 

Brokerage Info: Order Canceled - reason:On-Open order cannot have post-only attribute..

I can't seem to find any documentation on QC or IBKR about this. I've also tried the following code, but this doesn't work either - does anyone have any recommendations? 

Init: 

self.default_order_properties = OrderProperties()
self.default_order_properties.post_only = False

Order: 

self.market_on_open_order(self.symbol,self.quantity,order_properties=self.default_order_properties)

Author

Khoa Cao

10 days ago