This fixes a bug where fully removing an order via RemoveOrder would return the entire quantity of the order as the remaining quantity instead of zero. The problem was that when removing a quantity in full, we would simply delete it from our collection of orders but not modify its quantity, which is used (since #1986) for informational purposes on the rpc response.
It also tidies up the cli output a bit so as not to display zero amounts for holds or remaining quantity.
This fixes a bug where fully removing an order via
RemoveOrder
would return the entire quantity of the order as the remaining quantity instead of zero. The problem was that when removing a quantity in full, we would simply delete it from our collection of orders but not modify its quantity, which is used (since #1986) for informational purposes on the rpc response.It also tidies up the cli output a bit so as not to display zero amounts for holds or remaining quantity.
Fixes #2020