def get_day_amount(self, channel: ChannelConfigEnum): value = self.hget(channel.name) if not value: return 0 value = int(value.decode('utf8')) return BalanceKit.divide_hundred(value)
def limit_day_max(self): if not self._limit_day_max: return 0 return BalanceKit.divide_hundred(self._limit_day_max)
def limit_per_max(self): return BalanceKit.divide_hundred(self._limit_per_max)
def fee(self): return BalanceKit.divide_hundred(self._fee)
def tx_amount(self): if not self._tx_amount: return 0 return BalanceKit.divide_hundred(self._tx_amount)
def amount(self): return BalanceKit.divide_hundred(self._amount)
def offer(self): if not self._offer: return 0 return BalanceKit.divide_hundred(self._offer)
def balance_frozen(self): """ 冻结余额,浮点显示 :return: """ return BalanceKit.divide_hundred(self.bl_fro)
def cost(self): if not self._cost: return 0 return BalanceKit.divide_hundred(self._cost)
def profit(self): if not self._profit: return 0 return BalanceKit.divide_hundred(self._profit)
def balance_income(self): """ 在途余额,浮点显示 :return: """ return BalanceKit.divide_hundred(self.bl_inc)
def balance_available(self): """ 可用余额,浮点显示 :return: """ return BalanceKit.divide_hundred(self.bl_ava)
def value(self): return BalanceKit.divide_hundred(self._value)
def value_real(self): return BalanceKit.divide_hundred(self.value)
def amount_min(self): if self._amount_min: return BalanceKit.divide_hundred(self._amount_min) return 0
def fee(self): if not self._fee: return 0 return BalanceKit.divide_hundred(self._fee)
def amount_max(self): if self._amount_max: return BalanceKit.divide_hundred(self._amount_max) return 0
def real_balance(self): return BalanceKit.divide_hundred(self.balance)