diff --git a/cfRestApiV3.py b/cfRestApiV3.py index 6c71fc7..ff0437d 100644 --- a/cfRestApiV3.py +++ b/cfRestApiV3.py @@ -276,9 +276,9 @@ def make_request_raw(self, requestType, endpoint, postUrl="", postBody=""): if self.useNonce: nonce = self.get_nonce() signature = self.sign_message(endpoint, postData, nonce=nonce) - authentHeaders = {"APIKey": self.apiPublicKey, - "Nonce": nonce, "Authent": signature} - else: + authentHeaders = {"apiKey": self.apiPublicKey, + "nonce": nonce, "authent": signature} + else signature = self.sign_message(endpoint, postData) authentHeaders = { "APIKey": self.apiPublicKey, "Authent": signature} diff --git a/cfRestApiV3Examples.py b/cfRestApiV3Examples.py index 541ef21..24f6936 100644 --- a/cfRestApiV3Examples.py +++ b/cfRestApiV3Examples.py @@ -28,7 +28,7 @@ apiPrivateKey = "..." # use "api.cryptofacilities.com" if your IP is whitelisted (Settings -> API Keys -> IP Whitelist) -apiPath = "https://www.cryptofacilities.com" +apiPath = "https://futures.kraken.com" timeout = 20 checkCertificate = True # when using the test environment, this must be set to "False" useNonce = False # nonce is optional