Hey, thanks for posting this by the way.
Was wondering how you figured out the amount available in account balances using kraken's api 'Balance'.
From what I see - he did not. Only way to get
true available balance - use 'balance' endpoint and subtract volume of open orders.
I had a heck of a time trying to get volume of all open orders using a for loop so i gave up but now that i've found method, 'WithdrawInfo' we're all good.