API Support Forum
OEC API > API Support > Bracket Order -> Price Modification
Author Topic: Bracket Order -> Price Modification
(6 messages, Page 1 of 1)
Moderators: VPfau
MFrasson3344
Posts: 45
Joined: Nov 09, 2015


Posted: Aug 22, 2017 @ 04:43 AM             Msg. 1 of 6
Hi,

If I place a bracket order from Trader Developer and I modify the price of the "main" order on DOM (drag & drop), the linked orders are changed maintaining the same offset.

But, if I place a bracket order from my application and I modify the price of the "main" order from my application or from Trader developer the linked orders are NOT changed.

I think I forgot to set some property. Maybe DeltaTicks and/or DeltaTicks2? And if so, how should they be set?

Thank you.
Mauro frasson
SRuscak
Posts: 7
Joined:


Posted: Aug 23, 2017 @ 07:14 AM             Msg. 2 of 6
You are correct, the ModifyOrderDraft's DeltaTicks and DeltaTicks2 should be changed.

For each, if there is a value you should add to it the number of ticks of the price change.
MFrasson3344
Posts: 45
Joined: Nov 09, 2015


Posted: Aug 24, 2017 @ 05:09 AM             Msg. 3 of 6
I tried, but it does not work. I've tried setting DeltaTicks and DeltaTicks2 of the primary order, and then also of the linked orders, but nothing happens. The price of linked orders does not change if I change the price of the main order. If I change the quantity instead of the price, everything works.

Are you sure DeltaTick and Deltatick2 work? Can you write a sample code please?
Mauro frasson
SRuscak
Posts: 7
Joined:


Posted: Sep 08, 2017 @ 12:13 PM             Msg. 4 of 6
Could it be that you omitted the second argument in the SendLinkedOrders call?

client.SendLinkedOrders(mainDraft, OSOGroupingMethod.ByFirstPrice, limitDraft, stopDraft);
Seth R
MFrasson3344
Posts: 45
Joined: Nov 09, 2015


Posted: Sep 14, 2017 @ 05:54 AM             Msg. 5 of 6
Yes, I did not see the second overload of the function. Now works!

And... Can you describe OSOGroupingMethod? I cannot find it in documentation.

Thanks.
Mauro frasson
SRuscak
Posts: 7
Joined:


Posted: Sep 14, 2017 @ 09:22 AM             Msg. 6 of 6
Glad to hear you found a solution :)

Yes, we're working on expanding our documentation. It will be available soon.
SRuscak