sammchardy / python-binance

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

Authentication using RSA API keys #1281

Open silviumatei opened 1 year ago

silviumatei commented 1 year ago

Hi there,

Is there a chance to use the RSA keys to authenticate? Binance has implemented them last December. 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!

janekaze commented 1 year ago

@sammchardy

sea212 commented 1 year ago

This is the announcement post: https://www.binance.com/en/support/announcement/binance-now-supports-rsa-api-keys-2022-12-29-f418fed3f05f4854a7bbccaad3104a1c

They use RSA PKCS#8 key pairs

sammchardy commented 1 year ago

This will be included in the next update shortly.

You can test it if you clone the code now, supports Path or str contents of public key file.

noskule commented 1 year ago

Is there somewhere an example how to use it? Thanks.

aekiratli commented 1 year ago

Following

janekaze commented 1 year ago

Current I Fixed by:

  1. generate token id and key on binance API
  2. add fix my ip (proxy IP) in restrict IP inputbox on binance API
  3. add proxy to bot and test run.

On Fri, 28 Jul 2023 at 00:17, aekiratli @.***> wrote:

Following

— Reply to this email directly, view it on GitHub https://github.com/sammchardy/python-binance/issues/1281#issuecomment-1654059986, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIMTMDL27KL65RXBBB6VEYTXSKPBJANCNFSM6AAAAAAUDUN77Q . You are receiving this because you commented.Message ID: @.***>