VOL Order rejection on Bag order (Future Spread order) #579
-
Hi, And this same code of ib_insync works with 981 version of TWS. Please suggest resolution. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 1 reply
-
I've currently no idea what the problem could be. The volatility and volatilityType of the order should be sent as empty fields, at least that's what the IBAPI is doing. TWS 10.22 seems to have a lot of issues, perhaps try 10.19 stable. |
Beta Was this translation helpful? Give feedback.
-
It's the stable version on IB's website. |
Beta Was this translation helpful? Give feedback.
-
Thanks it worked. Also I see that ib_insync internally fetches nextValidId, but it seems I am getting it as always 1 from IB, do you know why is that so? |
Beta Was this translation helpful? Give feedback.
-
1 is the starting id, it can be higher dependent on history. |
Beta Was this translation helpful? Give feedback.
-
Reason I am investigating is because I was using ib_insync logic for order_id, but I started getting rejections as Duplicate Order Id. So how that can happen where I get rejection due to duplicate order id and at the same time get NextValidId as 1 from IB. is there a bug or am I missing something ? |
Beta Was this translation helpful? Give feedback.
-
I found the reason, Order is rejected with duplicate Order Id but actual reason for order rejection is somewhere before, that's the part of confusion. Thanks for your help. Appreciated. |
Beta Was this translation helpful? Give feedback.
I've currently no idea what the problem could be. The volatility and volatilityType of the order should be sent as empty fields, at least that's what the IBAPI is doing.
TWS 10.22 seems to have a lot of issues, perhaps try 10.19 stable.