Skip to content
This repository has been archived by the owner on Jan 20, 2020. It is now read-only.

Commit

Permalink
Add clarification info to README for cancelOrders and cancelAllOrders
Browse files Browse the repository at this point in the history
Closes #25
  • Loading branch information
rmm5t committed Jun 25, 2018
1 parent daaeae3 commit 715dda4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,14 +337,15 @@ authedClient.cancelOrder(orderID, callback);
* [`cancelOrders`](https://docs.gdax.com/#cancel-all)

```js
// Cancels "open" orders
authedClient.cancelOrders(callback);
```

* [`cancelAllOrders`](https://docs.gdax.com/#cancel-all)

```js
// `cancelOrders` may require you to make the request multiple times until
// all of the orders are deleted.
// all of the "open" orders are deleted.

// `cancelAllOrders` will handle making these requests for you asynchronously.
// Also, you can add a `product_id` param to only delete orders of that product.
Expand Down

0 comments on commit 715dda4

Please sign in to comment.