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.

Sometimes, a FILLED order cannot be closed by strategy because local API persistently thinks it is in OPENED state
 Post subject: Sometimes, a FILLED order cannot be closed by strategy because local API persistently thinks it is in OPENED state Post rating: 0   New post Posted: Tue 29 Jan, 2013, 21:32 
User avatar

User rating: 6
Joined: Thu 19 May, 2011, 11:14
Posts: 235
Location: South Africa,
Is it under any circumstances supposed to be possible to receive the following message for an order that is in OPENED state?
IMessage of type ORDER_CLOSE_REJECTED wrote:
ORDER_ALREADY_FILLED-Order can't be processed: order in FILLED state


(Just confirming.)


 
 Post subject: Re: Receiving ORDER_CLOSE_REJECTED:ORDER_ALREADY_FILLED message while in OPENED state Post rating: 0   New post Posted: Wed 30 Jan, 2013, 09:58 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please provide a precise case, should you encounter this.


 
 Post subject: Re: Receiving ORDER_CLOSE_REJECTED:ORDER_ALREADY_FILLED message while in OPENED state Post rating: 0   New post Posted: Fri 01 Feb, 2013, 15:00 
User avatar

User rating: 6
Joined: Thu 19 May, 2011, 11:14
Posts: 235
Location: South Africa,
Here is the precise case:
https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=88&t=48836


 
 Post subject: Re: Receiving ORDER_CLOSE_REJECTED:ORDER_ALREADY_FILLED message while in OPENED state Post rating: 0   New post Posted: Wed 27 Feb, 2013, 10:34 
User avatar

User rating: 6
Joined: Thu 19 May, 2011, 11:14
Posts: 235
Location: South Africa,
Supposing I want to close the order (which getState() still says is in OPENED state, but the message says is "in FILLED state"). How do I go about it?

If I call order.close(), another CANCEL message will be sent to the server, to which it will respond with another
ORDER_CLOSE_REJECTED: ORDER_ALREADY_FILLED-Order can't be processed: order in FILLED state...

In fact, this is exactly what is happening over and over and over.


 

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