def all_balances(currency, services=None, verbose=False, timeout=None):
balances = {}<EOL>if not services:<EOL><INDENT>services = [<EOL>x(verbose=verbose, timeout=timeout)<EOL>for x in ExchangeUniverse.get_authenticated_services()<EOL>]<EOL><DEDENT>for e in services:<EOL><INDENT>try:<EOL><INDENT>balances[e] = e.get_exchange_balance(currency)<EOL><DEDENT>except NotImplementedError:<EOL><INDENT>if verbose:<EOL><INDENT>print(e.name, "<STR_LIT>")<EOL><DEDENT><DEDENT>except Exception as exc:<EOL><INDENT>if verbose:<EOL><INDENT>print(e.name, "<STR_LIT>", exc.__class__.__name__, str(exc))<EOL><DEDENT><DEDENT><DEDENT>return balances<EOL>
Get balances for passed in currency for all exchanges.