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

get_orders() API doesn't allow getting "all" orders #32

Open
kaspar030 opened this issue Mar 2, 2021 · 0 comments
Open

get_orders() API doesn't allow getting "all" orders #32

kaspar030 opened this issue Mar 2, 2021 · 0 comments

Comments

@kaspar030
Copy link

The official API (and the docs copied from there) allow specifying "all" orders, but the code only allows passing Option<OrderStatus>:

https://docs.rs/coinbase-pro-rs/0.6.9/src/coinbase_pro_rs/private.rs.html#357-372

Not sure if the parameter would need it's own enum, or allow a list of order statuses, or if "all" should be the default.
As is it is a bit clumsy to get "all", as that would require looping over the enum.

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

1 participant