def main():
    """
    list all balances
    """
    for bal in models.Wallet.get_balances():
        amt = bal.amount + bal.held
        if 0 > amt:
            print("{0} {1} ({2} held)".format(
                bal.currency.abbreviation,
                bal.amount + bal.held,
                bal.held
                )
            )
dataset/ETHPy150Open robmcl4/Coinex/list_balances.py/main/swapped operands of `>`