¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date
Re: Canceling one order in bracket order
Thank you so much, J¨¹rgen! How do you acquire this knowledge? Do you read through docs or code? I looked at Bracket Order ( https://interactivebrokers.github.io/tws-api/bracket_order.html ) page and
By GreenGreen · #50608 ·
Re: How to check order init margin (Java API)
TWS API uses Double.MAX_VALUE or Integer.MAX_VALUE to indicate a field/value that is not present, not known, or not initialized. A MAX_VALUE response for initMarginChange in orderStatus (not
By J¨¹rgen Reinold · #50607 ·
Re: Canceling one order in bracket order
Yes, it is. You can also verify this manually in TWS. Internally, TWS/IBKR adds all child orders of the bracket to a single One Cancels All ( https://interactivebrokers.github.io/tws-api/oca.html )
Canceling one order in bracket order
Here is my question. I submit bracket order (main order, stop loss and take profit). Then later I cancel stop loss order order and for some reason take profit order gets cancelled as well. Is this
By GreenGreen · #50605 ·
How to check order init margin (Java API)
Hi. I have to check option order margin requirements. For that purpose Im sending whatif order and gather info from return data. But sometimes Im recieving openOrder responce:
By leonid.dmitricenko@... · #50604 ·
Re: Order change does not get transmitted
Thank you again, Jurgen! I will post lengthy code only in external links going forward. Fun fact about child order. When setting totalQuantity the value should be numeric (could not be empty), but
By GreenGreen · #50603 ·
Re: Order change does not get transmitted
*Please refrain from posting large chunks of code and log output. You cannot expect that the 6,000 members of the group spend a lot of time to understand and debug your code for you by email. And most
Re: Cannot transmit order (main order and stop loss orders)
The example code does sets the parentID, so it does correctly attempts to have a parent/child relation. *order.orderId = app.nextValidOrderId* *stopLossOrder.orderId = app.nextValidOrderId + 1*
By mdelvaux2 · #50601 ·
Order change does not get transmitted
I hope there are less fat fingers mistake in this post then in previous one My goal is to submit parent/child order (main order and stop loss order) and then change quantity for both orders (from 17
By GreenGreen · #50600 ·
Re: Cannot transmit order (main order and stop loss orders)
My apologies, GreenGreen. You are correct in that you have declared the callback. But you disconnect and exit immediately after placing the order, so that your program is gone well before the callback
By J¨¹rgen Reinold · #50599 ·
Re: Cannot transmit order (main order and stop loss orders)
Thank you for clarifying, J¨¹rgen?! I am not sure I understand you saying that my code does not handle errors from??IBApi::EWrapper::error. I do have in my code: def error(self, reqId, errorCode,
By GreenGreen · #50598 ·
Re: Cannot transmit order (main order and stop loss orders)
That is correct, because you are using a legitimate Python feature that has nothing to do with the TWS API. There is nothing "wrong" with your code (from a Python point of view), it just does not work
By J¨¹rgen Reinold · #50597 ·
Re: Cannot transmit order (main order and stop loss orders)
I am sorry for keeping this chat grow, but I feel this is important. I confirmed that when I submit *stopLossOrder.OrderType = "STP"* (incorrect capitalization) , there is neither error message in
By GreenGreen · #50596 ·
Re: Cannot transmit order (main order and stop loss orders)
Thank you so much, J¨¹rgen! What a blunder on my side! Still, I wish there would be better error message at least in logs
By GreenGreen · #50595 ·
Re: Cannot transmit order (main order and stop loss orders)
thank YOU J¨¹rgen !
By dent · #50594 ·
Re: Cannot transmit order (main order and stop loss orders)
Just a quick reminder. There are 6,000++ members listening and this post is becoming more like a chat. The error message (assuming it is related) is pretty clear. Please clean up the order type
By J¨¹rgen Reinold · #50593 ·
Re: Cannot transmit order (main order and stop loss orders)
As far as I understand, there is no particular designation for parent order. When we write stopLoss.parentId = some_integer, that is where parent child connection is established. For the sake of
By GreenGreen · #50592 ·
Re: Cannot transmit order (main order and stop loss orders)
I didn't see *any* parent order in your code... are we overlooking something? Did you post the same code you're using? Are you sure you don't want to follow the instructions from IB? Or do you still
By buddy · #50591 ·
Re: Cannot transmit order (main order and stop loss orders)
I don't really know, but from docs: parent order should be submitted with transmit = False and child order (stop loss) with transmit = True. This way system ensures that both orders submitted
By GreenGreen · #50590 ·
Re: Cannot transmit order (main order and stop loss orders)
Do you think that could be because it saw a _transmit_ on an individual order that wasn't part of a parent order?
By buddy · #50589 ·