Solved. I encrypted the key with a message.
Good There is such a code.
import requests import hmac, hashlib request_url = "https://yobit.io/tapi" request_body = bytes('method=getInfo&nonce=1'.encode('utf-8')) apikey = 'F01C58D09F417509BB427FD2A3EA57DC' apisecret = bytes('96e36a62ec51ff3be9c4ba0c510cd618'.encode('utf-8')) signature = hmac.new(request_body, apisecret, hashlib.sha512).hexdigest() http_headers = { "Content-Type":"application/x-www-form-urlencoded", "Key":apikey, "Sign":signature } req = requests.post(request_url,data='method=getInfo&nonce=1',headers=http_headers) print(signature) print(req.text) Actually, he must log in to the exchange, but the exchange responds that my signature is not correct. How to correctly sign my data with a secret key?
PS Key is authorized for info only
Description of api https://yobit.io/ru/api/