|
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 |
[adamant]
|
Post subject: Cancel Order But Never Close |
Post rating: 0
|
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
|
|
|
|
|
API Support
|
Post subject: Re: Cancel Order But Never Close |
Post rating: 0
|
Posted: Tue 16 Dec, 2008, 09:43
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Hello, IOrder.setRequestedAmount(0) will cancel unfilled portion without closing filled part
|
|
|
|
|
|
Pages: [
1
]
|
|
|
|
|