hash_hmac sha512 authentication in python
I'm trying to write python authentication bot for: https://comkort.com/page/private_api There is no full php example. I'm guess somebody could put it here. There is only snippet of php code: $query_string = http_build_query($_POST, '', '&'); $ethalon_sign = hash_hmac("sha512", $query_string, $api_secret_key); How to write authentication on python with hash_hmac sha512 ? I want to extract my open orders POST https://api.comkort.com/v1/private/order/list . My current variant is: import hashlib import hmac import requests import time privateKey = b'myprivatekey' publicKey = 'my public key' url =