code: def get_nonce(self):
          
          nonce = getattr(self, '_nonce', 0)
          if nonce:
              nonce += 1
          # If the unix time is greater though, use that instead (helps low
          # concurrency multi-threaded apps always call with the largest nonce).
          self._nonce = max(int(time.time()), nonce)
          return self._nonce
docs: Get a unique nonce for the bitstamp API.
  
          This integer must always be increasing, so use the current unix time.
          Every time this variable is requested, it automatically increments to
          allow for more than one API request per second.
  
          This isn't a thread-safe function however, so you should only rely on a
          single thread if you have a high level of concurrent API requests in
          your application.