-
Notifications
You must be signed in to change notification settings - Fork 62
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
Querying ALL Orders #431
Comments
Hi @jonathansampson, can you point me to Coinbase's documentation for |
@bennycode Certainly, see https://docs.pro.coinbase.com/#list-orders. I would suggest a |
I think extending the existing parameter is a good idea. What's your take on that? https://github.com/bennycode/coinbase-pro-node/pull/432/files |
@bennycode Thanks! I added a couple comments for your consideration. |
Thank you! 🤝 Fixed with #432 |
An opportunity to improve documentation:
Related to #339, I was curious how to query for all orders (rather than for open orders alone). It seemed like the only parameters we could pass with the request were pagination values. After a quick scan of the source I realized a general query-string is created from whatever object is passed as the pagination object (thanks to loose restrictions on the interface). As such,
getOpenOrders({ status: 'all' })
would suffice to retrieve all orders.coinbase-pro-node/src/order/OrderAPI.ts
Lines 145 to 155 in a3ed45b
The text was updated successfully, but these errors were encountered: