code: def sync_account(self, sync_message):
          
  
          self.init_hold = sync_message['hold_available']
          self.init_cash = sync_message['cash_available']
  
          self.sell_available = copy.deepcopy(self.init_hold)
          self.history = []
          self.cash = [self.init_cash]
          self.cash_available = self.cash[-1]
docs: 同步账户
  
          Arguments:
              sync_message {[type]} -- [description]