This repository has been archived by the owner on Jan 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
Can't cancel trigger orders with the cancel order function #8
Comments
i have used client.cancel_orders(pair) to cancel all trigger orders on a specific coin. |
cancel_order needs an order id to know which order to cancel. you can specify conditional or limit order in cancel_orders(line 153 maybe) line 149 |
i've just added
@authentication_required
def cancel_trigger_order(self, order_id: str) -> dict:
return self._delete(f'conditional_orders/{order_id}')
and it works just fine
…On Sun, Mar 7, 2021 at 1:26 AM zombiegriff ***@***.***> wrote:
cancel_order needs an order id to know which order to cancel. you can
specify conditional or limit order in cancel_orders(line 153 maybe)
line 149
def cancel_order(self, order_id: str) -> dict:
return self._delete(f'orders/{order_id}')
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQCGUYP7FD5FFJI46CSSTKDTCLB33ANCNFSM4YVRTUOQ>
.
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Can't cancel trigger orders with the cancel_order()
Probably need to have another function with DELETE /conditional_orders/{id}
The text was updated successfully, but these errors were encountered: