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.

Cancel Order But Never Close
 Post subject: Cancel Order But Never Close Post rating: 0   New post Posted: Mon 15 Dec, 2008, 17:08 

User rating: 0
Joined: Mon 15 Dec, 2008, 16:59
Posts: 11
Hello,

I want to cancel an order without it closing (ie: never create a closing order on the opposite side).

The order being cancelled may be completely unfilled, or it may be partially filled, but I always want to cancel the remaining unfilled portion without creating a closing order.

The documentation for IOrder.close says "Sends a request to fully close position by market price or cancel entry order", which is ambiguous, and I can find no cancel method.

What is it best for me to do in this case?

Many thanks


 
 Post subject: Re: Cancel Order But Never Close Post rating: 0   New post Posted: Tue 16 Dec, 2008, 09:43 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hello,
IOrder.setRequestedAmount(0) will cancel unfilled portion without closing filled part


 

Jump to:  

cron
  © 1998-2024 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