예제 #1
0
    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)
예제 #2
0
 def limit_day_max(self):
     if not self._limit_day_max:
         return 0
     return BalanceKit.divide_hundred(self._limit_day_max)
예제 #3
0
 def limit_per_max(self):
     return BalanceKit.divide_hundred(self._limit_per_max)
예제 #4
0
 def fee(self):
     return BalanceKit.divide_hundred(self._fee)
예제 #5
0
 def tx_amount(self):
     if not self._tx_amount:
         return 0
     return BalanceKit.divide_hundred(self._tx_amount)
예제 #6
0
 def amount(self):
     return BalanceKit.divide_hundred(self._amount)
예제 #7
0
 def offer(self):
     if not self._offer:
         return 0
     return BalanceKit.divide_hundred(self._offer)
예제 #8
0
 def balance_frozen(self):
     """
     冻结余额,浮点显示
     :return:
     """
     return BalanceKit.divide_hundred(self.bl_fro)
예제 #9
0
 def cost(self):
     if not self._cost:
         return 0
     return BalanceKit.divide_hundred(self._cost)
예제 #10
0
 def profit(self):
     if not self._profit:
         return 0
     return BalanceKit.divide_hundred(self._profit)
예제 #11
0
 def balance_income(self):
     """
     在途余额,浮点显示
     :return:
     """
     return BalanceKit.divide_hundred(self.bl_inc)
예제 #12
0
 def balance_available(self):
     """
     可用余额,浮点显示
     :return:
     """
     return BalanceKit.divide_hundred(self.bl_ava)
예제 #13
0
 def value(self):
     return BalanceKit.divide_hundred(self._value)
예제 #14
0
 def value_real(self):
     return BalanceKit.divide_hundred(self.value)
예제 #15
0
 def amount_min(self):
     if self._amount_min:
         return BalanceKit.divide_hundred(self._amount_min)
     return 0
예제 #16
0
 def fee(self):
     if not self._fee:
         return 0
     return BalanceKit.divide_hundred(self._fee)
예제 #17
0
 def amount_max(self):
     if self._amount_max:
         return BalanceKit.divide_hundred(self._amount_max)
     return 0
예제 #18
0
 def real_balance(self):
     return BalanceKit.divide_hundred(self.balance)