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

How to cancel several orders in just one single transaction? #233

Open
Danilo-Araujo-Silva opened this issue Apr 29, 2022 · 0 comments
Open

Comments

@Danilo-Araujo-Silva
Copy link

How can we cancel several orders in just one transaction?
Guaranteeing this way that it returns success only if all of them succeeded?

For example, we have this documentation here:
https://github.com/project-serum/serum-ts/tree/master/packages/serum

But we only have an example to be canceling a single order at a time, how can we achieve the proposed above?
This is very needed.

Maybe we could have something like:

await market.cancelOrder(connection, owner, [order1, order2, order3, ...]);
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