Iâm wondering if anyone else is having the following problem?
I have the TWS ActiveX control integrated into my program. It connects to TWS just fine, and in general communicates just fine. The problem is that some limit orders are rejected and it appears to be linked to certain prices.
For example, a buy order with a limit price of 27.50 is accepted. A limit order with a price of 27.56 is rejected (it shows up in the TWS screen, but is immediately cancelled by the system and a message box appears that says âOrder rejected â Unknown reasonâ). I tested with various other prices, such as 30.00 worked while 3.03 didnât (although 30.01 did IIRC).
My only guess is that it possibly has something to do with float imprecision? The only thing changed in any of the orders (other than the order ID) was the price. None of the orders crossed the market. I tested the prices both with my application as well as with the Active X test program supplied by IB.
Anyway have similar issues?
I have the TWS ActiveX control integrated into my program. It connects to TWS just fine, and in general communicates just fine. The problem is that some limit orders are rejected and it appears to be linked to certain prices.
For example, a buy order with a limit price of 27.50 is accepted. A limit order with a price of 27.56 is rejected (it shows up in the TWS screen, but is immediately cancelled by the system and a message box appears that says âOrder rejected â Unknown reasonâ). I tested with various other prices, such as 30.00 worked while 3.03 didnât (although 30.01 did IIRC).
My only guess is that it possibly has something to do with float imprecision? The only thing changed in any of the orders (other than the order ID) was the price. None of the orders crossed the market. I tested the prices both with my application as well as with the Active X test program supplied by IB.
Anyway have similar issues?
