Часто задаваемые вопросы
Эта статья пока недоступна на вашем языке. Рекомендуем воспользоваться автопереводчиком с английского языка.
Главная
Центр поддержки
Часто задаваемые вопросы
API
Руководство по API
How to Generate an RSA Key Pair to Send API Requests on Binance

How to Generate an RSA Key Pair to Send API Requests on Binance

2022-12-29 02:52
Binance now supports using RSA keys to create signed API requests. All you need to do is generate an RSA key pair and register the public key on Binance.

How to create an RSA key pair?

1. Go to the official RSA Keys Generator website to download and install the latest version of the generator.
Note: The “.CHECKSUM” file is used to verify the integrity of the generator package. Please download both files to the same directory. Click here for more information.
2. Launch the application and you can use it to:
  • Adjust Key Size: Choose the size of the RSA key to be generated. You can choose 2048 bit (default) or 4096 bit.
  • Generate Key Pairs: Create new private and public RSA key pairs. You may also paste your existing private key to the text box, and the application will automatically generate an associated public key.
  • Copy/Save Key Pairs: Copy the keys or save the keys into Private_key.txt and Public_key.txt files. Please note that the file extension has defaulted to .txt, but you can customize it to other formats. Do not share your private keys with anyone.

How to register my RSA key on Binance?

1. Log in to your Binance account and go to [Profile] - [API Management]. Click [Create API].
2. Choose [Self-generated API key].
3. Copy the public key generated from RSA Keys Generator and paste it into the box to register.
4. Enter a name for your API key. Click [Next] and complete 2FA.

How to send a signed API request?

To send a signed API request, you can follow the steps in the API documentation. Go to [SIGNED Endpoint Example for POST /api/v3/order - RSA Keys] under the [SIGNED Endpoint security] section.