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

fix(orderbook): don't remove 0 quantity w/ hold #1921

Merged
merged 1 commit into from
Sep 28, 2020

Conversation

sangaman
Copy link
Collaborator

This fixes a bug whereby attempting to remove an order that is entirely on hold would throw an error due to trying to remove zero quantity from an order. Instead, if the entire order is on hold we skip removing any portion that is not on hold (since there is none) and wait for the hold to be lifted and remove any quantity.

This fixes a bug whereby attempting to remove an order that is entirely
on hold would throw an error due to trying to remove zero quantity from
an order. Instead, if the entire order is on hold we skip removing any
portion that is not on hold (since there is none) and wait for the hold
to be lifted and remove any quantity.
@sangaman sangaman added bug Something isn't working order book labels Sep 25, 2020
@sangaman sangaman requested review from a user and raladev September 25, 2020 16:37
@sangaman sangaman self-assigned this Sep 25, 2020
@raladev raladev merged commit 5f3793a into master Sep 28, 2020
@sangaman sangaman deleted the fix/remove-order-on-hold branch October 14, 2020 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working order book
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants