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.

? about cancelling unfilled part of order
 Post subject: ? about cancelling unfilled part of order Post rating: 0   New post Posted: Sun 23 Oct, 2011, 13:51 

User rating: 4
Joined: Mon 19 Sep, 2011, 09:55
Posts: 29
Location: Germany,
Will code below request the cancellation of the unfilled part (if any) of an order of type (BUY|SELL)LIMIT?
void onMessage(IMessage message)
{
   if (message.getType() == IMessage.Type.ORDER_FILL_OK)
   {
      message.getOrder().setRequestedAmount(0);
   }
}


 
 Post subject: Re: ? about cancelling unfilled part of order Post rating: 0   New post Posted: Mon 24 Oct, 2011, 10:46 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Yes, it will. We have updated the Conditional order states diagram accordingly (link in the first paragraph):
https://www.dukascopy.com/wiki/index.php ... s_overview


 

Jump to:  

  © 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