How to create a Binance API Key and API Secret?
Complete instructions for creating an API Key/Secret pair for binance.com, binance.us and trbinance.com

You want to connect a script or trading bot to the Binance API?
In order to proceed, you'll need an API key/secret pair. I'll explain how to create this quickly and concisely in the following steps!
Create API key/secret pair for Binance.com
First, please log in to binance.com. If you don't have a Binance user account yet, you can sign up via my referral link. With this we both get 100 USDT cashback vouchers for a 50 USD deposit.
Okay, let's get started!
Step 1
Click on the account button:
Step 2
And then on "API Management":
Now you are on the page where you can create, edit and delete your API key/secret pairs and define their respective permissions and IP whitelisting.
Step 3
To create an API access, next click on the yellow "create API" button in the upper right corner:
Step 4
Now a modal window pops up and you can decide which API key type you want to create. The definitely easier and faster process is the "System generated" HMAC-SHA256 type — the advantage of the "Self-generated" RSA type (private/public key pair) is that technically not even Binance knows your key for signing and RSA key pairs can also be stored with higher security, as they can be stored in a LUKS container or HSM and the mandatory entry of a passphrase can be activated to make the keys usable.
At the moment RSA signatures are not yet supported by the UNICORN Binance Suite, as soon as this is the case we will adapt the instructions here.
So we continue with "System generated" and click "Next":
Step 5
Since you can create multiple API Keys with different permissions and IP whitelists, you need to enter a label in this step. This will help you to identify your API key/secret pairs. To continue click on "Next":
Step 6
For security purposes, Binance wants you to play the Binance Sliding game:
Step 7
First you need to request an email verification code:
Step 8
Check your email inbox (and spam folder if necessary), Binance will now immediately send you an email with a verification code:
Step 9
Copy the verification code from the email and paste it here:
Step 10
Open Google's Authenticator app on your smartphone and enter the code for your user account. To continue, click on "Submit":
Step 11
Immediately copy the API key/secret pair to a safe place, it will be shown to you only once! If you do not want to have read-only access to the API, you have not yet finished configuring the API key/secret pair.
All further permissions you have to enable explicitly and as soon as you grant further permissions, an IP whitelist is mandatory!
Step 12
Click on "Edit restrictions":
Step 13
Before you can enable the API Restrictions check boxes, you must select "Restrict access to trusted IPs only (Recommended)" under "IP access restrictions" and whitelist one or more IPs:
Step 14
Now you can grant the desired permissions:
Step 15
When you have set everything, click on "Save":
To save the new permissions and the IP whitelist you have to run the "Security Verification" from step 7 to step 10 again.
Now you can use your API key/secret pair!
I hope you found this tutorial informative and enjoyable!
Follow me on Binance Square, GitHub, X and LinkedIn to stay updated on my latest releases. Your constructive feedback is always appreciated!
Thank you for reading, and happy coding!
Image source: pixabay.com





