API Support Forum
OEC API > API Support > Trail Stop Order issue
Author Topic: Trail Stop Order issue
(3 messages, Page 1 of 1)
Moderators: VPfau
BGoyal9136
Posts: 27
Joined: Sep 21, 2017


Posted: Aug 25, 2020 @ 05:04 AM             Msg. 1 of 3
For Placing Trail Order we need to use this . is there any way we give ticks to trail so it decide automatically trail Price like we used to in old api . Since if we give price trail is getting made invalid due to the market moving faster than the order can execute (We want to trail with one tick only )

new OrderDraftBuilder()
.WithOrderType(OrderType.TrailingStopLoss)
.WithTrailingStop(new TrailingStopData(contract.CurrentPrice.LastPrice, (10 - 1) * contract.TickSize))
.Build();
AMartzke
Posts: 13
Joined:


Posted: Aug 26, 2020 @ 03:17 PM             Msg. 2 of 3
This feature is not currently supported in GFAPI. I have submitted this to the business as a feature request.
JSmith5611
Posts: 187
Joined:


Posted: Feb 09, 2021 @ 11:17 AM             Msg. 3 of 3
I'm starting to implement this feature, and I have a few questions..
1) how did you achieve this in the old API?
2) Do you want the reference price or delta in ticks?
Jason Smith