Closed jecepeda closed 6 years ago
Update: after talking with Interactive Brokers support and trying some things, I've found the following things:
In the "Trailing Stop Limit" section it is indicated that
Not both the 'limit price' and 'limit price offset' fields can be set in TRAIL LIMIT orders.
However, when performing this type of orders in Linux, TWS lets you perform the order, even if you have both 'limit price' and 'limit price offset' set in your Order. That's not the case in Windows, since TWS does not let you perform the order.
The problem with the second option is that you must deactivate some field inside TWS and it does not work by default
I'm sorry for opening this issue. I hope this is useful to the next person who is faced with this problem. I proceed to close the issue.
Regards
Hi,
I was just testing ib_insync on windows and there is an error when when performing a TRAIL LIMIT order on Windows which does not happen on my Linux machine.
This is the order I try to perform:
In principle there is no reason to have an error, but when I execute:
And i check the order with
whatIfOrder
, there is this output:If I remove
lmtPrice
, the order is submitted but the trail limit is not updated. However, this does not happen on Linux. On Linux the message says:OrderState(status='PreSubmitted', initMargin='1.7976931348623157E308', maintMargin='1.7976931348623157E308', equityWithLoan='1.7976931348623157E308', warningText='Important Note: Your order size is below the EUR 20000 IdealPro minimum.\nYou may cancel and increase the order size if you wish to route to IdealPro\nor select the Transmit button to route as an odd lot order.\nNote that odd lot orders are not guaranteed executions at the IdealPro displayed quotes.')
Which I see reasonable.Have this happened to any of you? I'm willing to help if necessary
The versions used of TWS are: