You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error:
m = hmac.new(secret.encode("utf-8"), payload.encode("utf-8"), hashlib.sha256)
AttributeError: 'bytes' object has no attribute 'encode'. Did you mean: 'decode'?
Environment
Provide any relevant information about your setup, such as:
Version of binance-connector-python
Python version 3.10
Operating system macos
The text was updated successfully, but these errors were encountered:
API_KEY='./ssh_key/api_key.txt'
PRIVATE_KEY_PATH='./ssh_key/Private_key.txt'
with open(API_KEY, 'rb') as f:
api_key = f.read()
with open(PRIVATE_KEY_PATH, 'rb') as f:
private_key = f.read()
client = UMFutures(key=api_key,
secret=private_key,
base_url='https://testnet.binancefuture.com')
Error:
m = hmac.new(secret.encode("utf-8"), payload.encode("utf-8"), hashlib.sha256)
AttributeError: 'bytes' object has no attribute 'encode'. Did you mean: 'decode'?
Environment
Provide any relevant information about your setup, such as:
The text was updated successfully, but these errors were encountered: