Dukascopy
 
 
Wiki JStore Search Login

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.

Check order in EXECUTING state from API
 Post subject: Check order in EXECUTING state from API Post rating: 0   Post Posted: Wed 03 Oct, 2012, 16:24 
User avatar

User rating: 98
Joined: Mon 23 Jul, 2012, 02:02
Posts: 656
Location: United States, Durham, NC
I received this error in live trading within a Strategy module. I'm sure it was because an order operation was being attempted before the previous operation was completed.

Are there any plans for us to be able to check for the EXECUTING state, so that we might retry a bit later?

I don't think that is currently one of the states available for us to test.

14:40:51 Order can't be processed: order in EXECUTING state, order#67578783 STOP LOSS BUY 0.005 mil. EUR/USD IF ASK => 1.29152

In general, I'd like to be able to find out whether an IOrder is ready for the next order operation, since there are restrictions on the rate of issuing order operations to the server.


Attachments:
File comment: Order in EXECUTING state
ExecutingStateNotTestable.png [469.59 KiB]
Downloaded 332 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Check order in EXECUTING state from API Post rating: 0   Post Posted: Thu 04 Oct, 2012, 14:07 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
hyperscalper wrote:
Are there any plans for us to be able to check for the EXECUTING state, so that we might retry a bit later?
No, please use IOrder.waitForUpdate and process the returned IMessage according to the IOrder.State-IMessage.Type workflow:
https://www.dukascopy.com/wiki/#Order_state/Market_order_states_diagram


 

Jump to:  

cron
  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com