Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cfRestApiV3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion cfRestApiV3Examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down