-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to cancel an order? #85
Comments
It will look something like: kraken.query_private('CancelOrder', {'txid': 'ORDERS-GOES-HERESS'}) |
Hi when I use this to cancel an order (using correct, known txid) I am getting the Error response My keys are set to allow any activity so wondering if you could think what might cause this. Happy to open a new question/thread if you prefer. Thanks |
@TOTANICS Check if the order is not closed already. |
I am running some code to test... the code first places an order. I am also logged into my orders page on Kraken.com and as the code runs I see the order place. The code pauses for a good while and then uses the txid which is given by the placed order, and uses this in a CancelOrder call. But the response I get is as I have described. I am wondering if I need to have done something in the AddOrder code which I am not perhaps? If the close type parameter is not set for example, would this mean the order can't be canceled? For example my AddOrder code only goes as far as
I haven't specified Close ordertype as 'limit' as well. Does this seem the likely cause? Thanks |
@TOTANICS This is considerably more complex than this particular issue. Do open a new issue then, with a full example script that can reliably reproduce the behaviour you describe. |
Thank you, I have opened a new issue. |
I'm having the same issue as mentioned above. Wonder if there is any solution or has answered in another thread? |
Which one of the above?
FTR, this was opened as #110, and shortly closed by the author without explanation. :/ |
Versions
What are you trying to achieve?
To cancel an order that was not executed.
I managed to buy with the code below. I want the same to cancel an order.
Where's the documentation about what query_private() can accept as arguments instead of AddOrder?
What do you expect to happen?
Order should be cancelled.
What happens instead?
# error message
The text was updated successfully, but these errors were encountered: