sammchardy / python-binance

Binance Exchange API python implementation for automated trading
https://python-binance.readthedocs.io/en/latest/
MIT License
5.88k stars 2.2k forks source link

Authentication using Ed25519 API keys #1396

Open iden83 opened 5 months ago

iden83 commented 5 months ago

Describe the improvement Hi there,

Is there a chance to use the Ed25519 keys to authenticate? Binance has implemented them July 2023. There's a description here but I didn't manage to implement it in python: https://binance-docs.github.io/apidocs/spot/en/#signed-trade-user_data-and-margin-endpoint-security

Thanks a lot for your work everyone ( @sammchardy )

To implement Adding Ed25519 keys for binance-python project

Challenging part Ed25519 is supported by newer Python version in Crypto module, but importKey function doesn't deal with that well...

This is the announcement post: https://www.binance.com/en/support/announcement/binance-now-supports-ed25519-api-keys-2023-07-19-30372026b6af4fbbb9b38ab5c3f91755

Users are advised to switch to Ed25519 API keys as they offer optimized API performance and enhanced security