You can also use and manage this app in your dashboard.
With the Wallet Scrubber you can automatically let new sell orders include leftover balance amounts, and you can scrub your wallet. This will place buy orders for the leftover amounts, just the minimum amount (plus fees) and places a sell order immediately after.