Avoid raising ValueError in get_balance
if currency is not found in the portfolio
#46
Labels
Milestone
get_balance
if currency is not found in the portfolio
#46
Is your feature request related to a problem? Please describe.
When using
kraken.spot.client.User.get_balances
it raises a ValueError if the currency is not found in the portfolio or if the value is 0. This occurs in the current version v1.0.1. This is bad, because I have to catch the exception and set the values to zero by hand. There is no reason for raising the ValueError.Describe the solution you'd like
The behaviour should be like not raising this error, instead returning zero balances.
Additional context
Remove this lines: kraken/spot/user/user.py#L27-L28
The text was updated successfully, but these errors were encountered: