Skip to content
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 spot orders #63

Open
farslanku opened this issue Feb 24, 2022 · 1 comment
Open

how to cancel spot orders #63

farslanku opened this issue Feb 24, 2022 · 1 comment

Comments

@farslanku
Copy link

Documentation states that "DELETE /spot/price_orders" end point can cancel all open orders without any additional parameters, and also "DELETE /spot/orders" endpoint can cancel open orders in the specified currency pairs, so currency pairs is a required parameter in the second call.
Unfortunately this is not how it works when being tested. The first endpoint(DELETE /spot/price_orders) does not cancel any open order and second endpoint works in the way that s described in the documentation but it can also cancel all open order if no parameter is given .
DELETE /spot/orders with no parameters should be used instead of DELETE /spot/price_orders to cancel all open orders as opposed to what the documentation says?

@revilwang
Copy link
Collaborator

The document doesn't make it clear DELETE /spot/price_orders cancel all open Price-Triggered auto orders only. Plain orders are not included.

You should use DELETE /spot/orders. The currency_pair parameter can be set to empty to allow cancelling all open orders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants