-
Notifications
You must be signed in to change notification settings - Fork 43
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
fix: added new grpc method to easily cancel all orders #1910
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments.
This is also definitely not a "fix" commit/PR, should be a |
Yeap sorry, my bad, I literally suck at commit messages. |
Signed-off-by: rsercano <ozdemirsercan27@gmail.com>
Fixed review points could you please take a look at again? |
671ab1d
to
364f8a6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Above
364f8a6
to
dfee0b6
Compare
I actually used behavior of |
Yes. You can simply append the failed cancellations:
|
My apologies, this actually looks like a bug in the existing With that fix the behavior would be that the call immediately goes through and removes all quantity for all orders that isn't on hold - for any holds it will wait and remove any freed up quantity automatically. Does that sound good to everyone? |
Will the call not return until all quantity is removed? If so, assuming an order is on hold for several minutes for whatever reason, when will the removeorder call return? |
The call returns immediately after its been received, no waiting for holds to expire since those could technically take hours. With the singular remove order call it returns the quantity that's still on hold. Maybe here we could return a boolean indicating whether any orders remain on hold, or possibly a list of orders that are still on hold if we think that may be helpful. #1921 fixes the bug I mentioned above, once that's merged we can rebase this branch on master and we shouldn't hit that "can't remove 0 quantity" error any longer. |
…ature/cancelallorders � Conflicts: � test/simulation/xudrpc/xudrpc.pb.go
dfee0b6
to
b70e72d
Compare
…ature/cancelallorders � Conflicts: � test/simulation/xudrpc/xudrpc.pb.go
can be done only after #1526 So
is last that we need and it should work after the rebase |
Rebased @raladev thanks for checking this out ! |
…ature/cancelallorders
12b1c5f
to
84f0ccf
Compare
Fixed @sangaman thanks for checking |
attempts to resolve #1878
Sorry to implement this prior p1 ones, I had already started this, so wanted to complete first.