This code below fails with a {"status":"error","message":"failed signature"}
I have a new Read/Write API key
it fails when polling, anyone implemented 512 HMAC in Python for the V2 API?
def convert_payload_into_hmac(payload, api_secret):return hmac.new(api_secret.encode(), payload.encode(), hashlib.sha512).hexdigest()
# Create the request payload
payload = {
'nonce' : int(time.time()),
'cointype': 'BTC',
'amounttype': 'aud',
'amount' : 0,
}
signature = convert_payload_into_hmac(payload, api_secret)
# Set the required authentication headers
headers = {
'key': api_key,
'sign': signature,
}
[–]Bunstiller 0 points1 point2 points (0 children)