API Support Forum
OEC API > Advanced Order Management > LinkedOrders
Author Topic: LinkedOrders
(4 messages, Page 1 of 1)
Moderators: VPfau
PArnoldson
Posts: 154
Joined: Oct 03, 2007


Posted: May 01, 2009 @ 01:26 PM             Msg. 1 of 4
I am trying to send a linked order with the call SendLinkedOrders()
I am sending two or three orders. On one of the orders I set the drafts Quantity to be different that the main order in the list. When I get these orders back the quantity is the same on all of these. I would like to know the reason behind this modification to my order.

Why does the Quantity on linked orders need to be forced to be the same value?

There are 10 kinds of people in the world; those who understand binary and those who don't.
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: May 01, 2009 @ 02:30 PM             Msg. 2 of 4
Linked orders must have equal quantity. If you modify quantity of the working main order, the quantity of linked order will be modified accordingly. When main order is filled partially, linked orders are released for the filled quantity only.
PArnoldson
Posts: 154
Joined: Oct 03, 2007


Posted: May 01, 2009 @ 04:56 PM             Msg. 3 of 4
Is there some way of getting this to work without equal quantities?

This is our goal, We are wanting to place an order that has a stop and limit attached to it. If the stop is hit we would like to reverse our position. so, If the quantity on the stop order is twice the original order it will reverse our position in the market if hit. Is there any way of setting this up?

There are 10 kinds of people in the world; those who understand binary and those who don't.
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: May 01, 2009 @ 05:08 PM             Msg. 4 of 4
This is not currently possible using OEC API linked orders - you need to implement this logic yourself.