Post subject: Re: Receiving ORDER_CLOSE_REJECTED:ORDER_ALREADY_FILLED message while in OPENED state
Post rating: 0
Posted: Wed 27 Feb, 2013, 10:34
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.