Вот так создается подпись для kuna.io
r = 'https://api.kuna.io/v3/auth/me'
api_path = "/v3/auth/me"
nonce = str(int(time.time()*1000.0))
body = str('')
msg = api_path+nonce+body
print(msg)
kun_signature = hmac.new(secret_key.encode('ascii'), msg.encode('ascii'), hashlib.sha384).hexdigest()
headers = {'accept': 'application/json',
'content-type': 'application/json',
'kun-nonce': nonce,
'kun-apikey': public_key,
'kun-signature': kun_signature}
pool = requests.post(r, headers=headers)
print(pool.text)