Page cover

Guide to Creating and Configuring Your Binance API Key

This guide will walk you through the process of creating a secure API key on your Binance account.

1. LOG IN TO YOUR BINANCE ACCOUNT

Then, after clicking on your profile logo in the corner, select the Account section.

2. Account Menu

In the menu that opens, click on the Api management button, shown as 1 in the figure. Then, on the page that opens, press the create button, shown as 2 in the figure.

3. Choose the API Key Type

After navigating to the API Management page on Binance and clicking "Create API," the first screen will ask you to choose the key type.

  • Select "System generated". This option will create an API Key and a Secret Key for you.

  • Click the "Next" button.

4. Fill a Name for Your API

Text is better. Avoid numbers or characters. This will prevent potential API library errors caused by saving your expression as a string.

5. Save Your API Key and Secret Key

On the next screen, your API Key and Secret Key will be generated.

  • VERY IMPORTANT: The Secret Key is displayed only once. Copy this key and store it in a secure location where no one else can access it (for example, a password manager). You will not be able to see this key again after leaving this page.

  • After saving your keys, click the "Edit restrictions" button located in the upper right corner.

6. Crucial Step: Restricting IP Access

This is one of the most important steps to ensure the security of your account. You must restrict API key access to trusted IP addresses only.

As shown in the image, click on the text field. Here, you need to enter the following:

  1. Your IP Address: Find your personal IP address by visiting a website like whatismyipaddress.com or searching "what is my IP" on Google. Enter this address into the box.

  2. The Provided IP Address: We will send you a custom IP address privately. You must also add this second IP address into the same box.

You only need to do this once. Please be aware that you cannot save changes to your API permissions (like enabling trading) without first completing this IP restriction step. It is a mandatory security feature from Binance.

7. Configure API Permissions

For security, you should only grant the necessary permissions to your API key.

  • Check the following boxes:

    • Enable Reading (Enabled by default)

    • Enable Spot & Margin Trading

    • Enable Futures

    • Permits Universal Transfer

    • (Optional) Enable European Options

  • WHAT YOU MUST NOT ENABLE: For your safety, NEVER check the Enable Withdrawals box. This eliminates the risk of your funds being stolen through the API.

8. Required API Key Settings

To ensure your API key functions correctly and securely, you must make sure the following settings are configured.

API Restrictions (Permissions)

The following options must be checked (enabled):

  • Enable Reading

  • Enable Spot & Margin Trading

  • Enable Futures

  • Permits Universal Transfer

  • Enable European Options

Note: The "Enable European Options" setting may not be visible depending on your country or Binance's regional policies. If this option is not available on your screen, it is not a problem.

IMPORTANT: For the security of your funds, make sure the Enable Withdrawals box is DEFINITELY left unchecked.

IP Access Restrictions

  • ✅ The Restrict access to trusted IPs only (Recommended) option must be selected. After checking this box, you should have added both your personal IP address and the IP address provided to you into the list.

9. Save Your Changes

Once you have configured all permissions and IP restrictions, click the "Save" button at the top of the page. Binance will ask for your 2FA (Two-Factor Authentication) codes (Email, SMS, Authenticator) to confirm the changes.

After completing these steps, your API key will be ready to use with the permissions you've set and will only work from the IP addresses you have whitelisted.

Last updated