def get_balances():
    if not hasattr(get_balances, '_balances'):
        bals = models.Wallet.get_balances()
        for bal in bals:
            bal.amount += bal.held
            bal.held = Decimal(0)
        get_balances._balances = bals
    return get_balances._balances
Memoized method to get a list of all balances.
dataset/ETHPy150Open robmcl4/Coinex/market_cap.py/get_balances