Well I figured out what I was doing wrong: I did not properly fill the PlaceOrder struct with the order details so the gateway was receiving what I thought I was sending. Thank you everyone for your helpful insights!
Ok, thanks for the idea. I did submit the order as a LMT order with a limitPrice 10% below the last close. I see the same error:
I: May-22 11:50:09.228447 | service.go | ib.placeOrder | sent order: {OrderID:1 ClientID:0 PermID:0 Action:SELL TotalQty:100 OrderType:LMT LimitPrice:133.443...
I tried submitting the order during mkt hours and outside mkt hours and see the same error.
Is there a more detailed explanation of the specific error message? What is the validation logic for a market order?
Thanks
I'm having a hard time submitting an order to my IB Gateway. The TWS logs don't tell me much as to what I am doing wrong:
06:51:30:519 <- 3-42-0-0-IVE-STK--0---ARCA--USD-IVE-----0--0-0-----0--0-0-0-0-0-0-0-0--0-------0--0-0---0-0-0-0-0-0-0-0-0-0-0-0-0-0-0--0-0-0-0-0-0-0-0-----0---0-0--0--...