did anyone was able to submit OCA group orders ?

254 views
Skip to first unread message

Victor

unread,
Apr 4, 2010, 4:24:43 AM4/4/10
to IbPy Discuss
this is important to make for hedging and strategies implementation.

i was trying to submit OCA (one cancels all) group orders: for example
a bracket order with two orders.

after checking TWS API, i have set all the relevant for this contract/
order parameters i could find there, like parent ID and oca group. i
tried first to place the two orders and then transmit, and also to
place and transmit at the same time. the result was the same - no
complaints from TWS, orders transmitted, but TWS doesn't show the OCA
field set, so the orders are still individual, not as OCA group.

anyone, tried this before ? appreciate some comment.

Gregory Bloom

unread,
Apr 4, 2010, 10:37:01 AM4/4/10
to ibpy-d...@googlegroups.com
Not quite the same, but I have successfully placed bracket orders.  The only thing required was to set the parentID on the LMT and STP orders to be the orderID of the parent order.  They automatically formed an OCA group ensuring that if either side of the bracket triggered, the other side of the bracket would be canceled.



--
You received this message because you are subscribed to the Google Groups "IbPy Discuss" group.
To post to this group, send email to ibpy-d...@googlegroups.com.
To unsubscribe from this group, send email to ibpy-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ibpy-discuss?hl=en.


Victor

unread,
Apr 25, 2010, 12:37:48 PM4/25/10
to IbPy Discuss

yes not the same
now i can do both: bracket order with parentID, and OCA group orders.


On Apr 4, 4:37 pm, Gregory Bloom <gregory.bl...@gmail.com> wrote:
> Not quite the same, but I have successfully placed bracket orders.  The only
> thing required was to set the parentID on the LMT and STP orders to be the
> orderID of the parent order.  They automatically formed an OCA group
> ensuring that if either side of the bracket triggered, the other side of the
> bracket would be canceled.
>
> On Sun, Apr 4, 2010 at 2:24 AM, Victor <vinej...@gmail.com> wrote:
> > this is important to make for hedging and strategies implementation.
>
> > i was trying to submit OCA (one cancels all) group orders: for example
> > a bracket order with two orders.
>
> > after checking TWS API, i have set all the relevant for this contract/
> > order parameters i could find there, like parent ID and oca group.  i
> > tried first to place the two orders and then transmit, and also to
> > place and transmit at the same time.  the result was the same - no
> > complaints from TWS, orders transmitted, but TWS doesn't show the OCA
> > field set, so the orders are still individual, not as OCA group.
>
> > anyone, tried this before ? appreciate some comment.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "IbPy Discuss" group.
> > To post to this group, send email to ibpy-d...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > ibpy-discuss...@googlegroups.com<ibpy-discuss%2Bunsu...@googlegroups.com>
> > .

su...@alphamatters.com

unread,
Dec 12, 2014, 5:06:54 AM12/12/14
to ibpy-d...@googlegroups.com
Hi did anyone comeback to you about placing OCA orders.... if not i can help you.....
Reply all
Reply to author
Forward
0 new messages