Author |
Topic: Persistence order number, Trailing stop (3 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
AAlan Posts: 13 Joined: Jun 01, 2010 |
Hi,
Is the order number persistence? Last week, I opened two GTC orders in my account. In this week, I use the API to check open orders and I found that the order number of the two open orders had been changed. I would like to get a permanent reference number for each order and execution. Which field should I use to get this perm reference number? My second question is how to use the trailing stop. The trailing stop in the OEC trader has a value called "Delta". What's that and how can I creat a trailing stop order in API? Do you have documentation regarding the trailing stop setup. Thanks a lot for your help. Alan Chau |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
Hello,
Order.ID is persistent reference number. If you mean that this value was changed over weekend, could you please send me order numbers, I need to investigate this issue. To create trailing stop order, you need to call http://www.openecry.com/api/api/OEC.API.OrderDraft.SetTSData.html to setup reference price and delta value (price threshold). Trailing stop logic uses Reference price as a base line when to start trailing of Stop price |
||||
AAlan Posts: 13 Joined: Jun 01, 2010 |
Victor,
Thanks for the reply. I had traced the ORder.ID issue and found a bug in my software. Thanks. Alan Chau |
||||