(self, r)
return r
Called when forming a request - generates api key headers.
Called when forming a request - generates api key headers.
Called when forming a request - generates api key headers .
def __call__(self, r):
        """Called when forming a request - generates api key headers."""
        # modify and return the request
        nonce = generate_nonce()
        r.headers['api-nonce'] = str(nonce)
        r.headers['api-key'] = self.apiKey
        r.headers['api-signature'] = generate_signature(self.apiSecret, r.method, r.url, nonce, r.body or '')

        return r
def __call__ ( self , r ) : # modify and return the request nonce = generate_nonce ( ) r . headers [ 'api-nonce' ] = str ( nonce ) r . headers [ 'api-key' ] = self . apiKey r . headers [ 'api-signature' ] = generate_signature ( self . apiSecret , r . method , r . url , nonce , r . body or '' ) return r