|
Attention! Read the forum rules carefully before posting a topic.
Try to find an answer in Wiki before asking a question. Submit programming questions in this forum only. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
setStopLossPrice() - order.getState while processing |
[wheelsofsteel]
|
Post subject: setStopLossPrice() - order.getState while processing |
Post rating: 0
|
Posted: Fri 25 Feb, 2011, 18:48
|
|
User rating: 0
Joined: Sat 01 Jan, 2011, 11:29 Posts: 6
|
When calling setStopLossPrice() which IOrder.State is assigned whilst the stop is being actioned by the system and what state is assigned on success?
I typically call e.g. order.waitForUpdate(...) in a loop until either I decide to time out or I get a successful state assigned to the order.
|
|
|
|
 |
API Support
|
Post subject: Re: setStopLossPrice() - order.getState while processing |
Post rating: 0
|
Posted: Mon 28 Feb, 2011, 09:12
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Hi, An order state not changed while the stop price is being assigned to the order. Restrictions for setting stop loss are: 1. Order must be in the Filled or Opened states. 2. You can not set stop loss price more than once in a second.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|