-
Notifications
You must be signed in to change notification settings - Fork 313
Canceling all orders does not cancel stop order #25
Comments
Unfortunately named, |
I am experiencing this problem too |
I've been waiting for an extraordinarily long time to figure out how to do this. Does anyone have any idea? |
If stop orders are listed when you call getOrders() then you could getOrders after you cancelAllOrders and whatever is left cancel by iterating through with cancelOrder
… On Apr 18, 2018, at 6:53 PM, aamazie ***@***.***> wrote:
I've been waiting for an extraordinarily long time to figure out how to do this. Does anyone have any idea?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
When I request get orders, I just get a [200] confirmation response, which I assume means there aren't any "open" orders but that the call went through. |
You’re getting that response code in the body?
… On Apr 18, 2018, at 7:56 PM, aamazie ***@***.***> wrote:
When I request get orders, I just get a [200] confirmation response, which I assume means there aren't any "open" orders but that the call went through.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
(I use fibers and futures to make my code run synchronously when I need it to) |
With Python I'm running print(requests.get(api_url + "orders", auth=auth)) and getting a [200]. getOrders() doesn't work. I assume that's JavaScript and I'm not totally sure what to do with that currently unless I can JSONify something somehow |
Yeah this is a forum for “gdax-node”, as in nodeJS. You can definitely interconvert between JavaScript and python, js is easy to pick up, and if you run your command in js you can write your JSON.stringify-ed data to a text file and then read the file with python
… On Apr 18, 2018, at 8:22 PM, aamazie ***@***.***> wrote:
With Python I'm running print(requests.get(api_url + "orders", auth=auth)) and getting a [200]. getOrders() doesn't work. I assume that's JavaScript and I'm not totally sure what to do with that currently unless I can JSONify something somehow
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Ah. So it is. Well thanks @JThobbyist for showing me that at least it's possible :) |
While I agree that this method is named somewhat unfortunately, the API reference names it the same and also documents it as only canceling open orders. However, I did add some additional information to the README. |
When I call
cancelOrders
(orcancelAllOrders
) from anAuthenticatedClient
, it returns0
cancelled orders even though I have one active buy-stop order on theBTC-EUR
product.Calling
cancelOrder
with the correctorderID
works fine, although from time-to-time also this method fails with thestatus code: 400
.The text was updated successfully, but these errors were encountered: