@apigen.command()
    def getbalances(self, unconfirmed=False, available=False):

        # sanitize inputs
        unconfirmed = sanitize.flag(unconfirmed)
        available = sanitize.flag(available)

        assets = self.controller.get_all_assets()
        func = lambda asset: self._getbalance(asset, unconfirmed, available)
        balances = dict(map(func, assets))
        return _print(balances)
Returns the balances for all assets/colors.
dataset/ETHPy150Open chromaway/ngcccbase/ngcccbase/api.py/Ngccc.getbalances