Skip to content

Commit

Permalink
removed raising exception when currency not found in portfolio; inste…
Browse files Browse the repository at this point in the history
…ad return zero (#47)
  • Loading branch information
btschwertfeger authored Mar 30, 2023
1 parent 0e9b73a commit b7c6943
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kraken/spot/user/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ def get_balances(self, currency: str) -> dict:
if symbol in curr_opts:
balance = float(value)
break
if balance == float(0):
raise ValueError("Currency not found!")

available_balance = balance
for order in self.get_open_orders()["open"].values():
Expand Down

0 comments on commit b7c6943

Please sign in to comment.