Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connect don't support ed25519? #331

Open
Forward0908 opened this issue Jul 31, 2024 · 0 comments
Open

connect don't support ed25519? #331

Forward0908 opened this issue Jul 31, 2024 · 0 comments

Comments

@Forward0908
Copy link

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:

  • Version of binance-connector-python
  • Python version 3.10
  • Operating system macos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant