code: def update_traded(self, traded_update):
          
          if not traded_update:
              self.traded.clear()
          else:
              self.traded.update(traded_update)
docs: :param traded_update: [price, size]