import requests
import hashlib
from data import ANYPAY_API_ID, ANYPAY_API_KEY
import json
sign = hashlib.sha256(f'balance{ANYPAY_API_ID()}{ANYPAY_API_KEY()}'.encode())
responce = requests.get(f"https://anypay.io/api/balance/{ANYPAY_API_ID()}", params=str(sign))
print(responce.json())
{'error': {'code': '102', 'message': 'Invalid sign'}}
'<sha256 HASH object @ 0x6ffffebcc88>'
requests.get(..., params={"sign":sign.hexdigest()})