code: def from_message(self, message):
          
          self.account_cookie = message.get('account_cookie', None)
          self.portfolio_cookie = message.get('portfolio_cookie', None)
          self.user_cookie = message.get('user_cookie', None)
          self.broker = message.get('broker', None)
          self.market_type = message.get('market_type', None)
          self.strategy_name = message.get('strategy_name', None)
          self._currenttime = message.get('current_time', None)
          self.allow_sellopen = message.get('allow_sellopen', False)
          self.allow_margin = message.get('allow_margin', False)
          self.allow_t0 = message.get('allow_t0', False)
          self.margin_level = message.get('margin_level', False)
          self.frequence = message.get('frequence', FREQUENCE.FIFTEEN_MIN) #默认15min
          self.init_cash = message.get(
              'init_cash',
              message.get('init_assets',
                          1000000)
          )                                       # 兼容修改
          self.init_hold = pd.Series(message.get('init_hold', {}), name='amount')
          self.init_hold.index.name = 'code'
          self.commission_coeff = message.get('commission_coeff', 0.00015)
          self.tax_coeff = message.get('tax_coeff', 0.0015)
          self.history = message['history']
          self.cash = message['cash']
          self.time_index_max = message['trade_index']
          self.running_time = message.get('running_time', None)
          self.quantaxis_version = message.get('quantaxis_version', None)
          self.running_environment = message.get(
              'running_environment',
              RUNNING_ENVIRONMENT.BACKETEST
          )
          self.frozen = message.get('frozen', {})
          self.finishedOrderid = message.get('finished_id', [])
          self.settle()
          return self
docs: resume the account from standard message
          这个是从数据库恢复账户时需要的