Skip to main content

How to Create and Set Up Binance API Key

Step-by-step guide on how to create an API key on Binance, set permissions, and securely connect it to BotHub for automated trading.

Updated over a month ago

Overview

In this guide, we’ll walk you through how to create an API key on Binance, set the right permissions, and connect it to Bothub to start automated trading safely and efficiently.

💡 Estimated setup time: 5–10 minutes


Step 1 — Log in to Your Binance Account

1. Go to binance.com and sign in to your account.

2. In the top-right corner, click on your profile icon → select Account.

3. Make sure your account status shows “Verified” under the Identification section.

  • If it’s not verified, complete the KYC verification before proceeding.

  • You’ll also need to make a small deposit — bots can only trade with available funds.


Step 2 — Go to API Management

1. From the left-hand menu, select API Management.

2. Click Create API in the top-right corner.

3. Choose the type System Generated.

4. Name your key something simple, for example: “Bothub Trade”.

5. Click Next and complete the security verification (email, phone, or 2FA).

Once done, you’ll see a new API key section with:

  • API Key (Public).

  • Secret Key.

  • Permission Settings.


Step 3 — Restrict API Access for Security

1. Click Edit Restrictions in the top-right corner of the API key box.

2. Scroll down to the IP Access Restrictions section.

3. Select “Restrict Access to Trusted IPs Only.”

Now open Bothub and copy the IP address displayed in the “Connect Exchange” modal. Paste this IP into the field on Binance and confirm.

🔒 This step is critical for your account’s safety. Restricting your key ensures that only Bothub’s servers can use it — even if your key is exposed, no one else can access your funds.


Step 4 — Set API Permissions

In the same window, review the permissions carefully:

  • Enable Spot and Margin Trading

  • (Optional) Enable Futures Trading — if you plan to use futures bots

🚫 Do not enable Withdrawals — Bothub will never ask for this permission.

After adjusting permissions, click Save in the top-right corner and complete the security verification again.


Step 5 — Copy and Connect to Bothub

1. Copy your API Key and Secret Key from Binance.

2. Return to the Bothub app → go to SettingsExchangesConnect ExchangeBinance.

3. Paste both keys into their respective fields.

4. Click Connect.

If everything was entered correctly:

  • You’ll see a “Connection successful” message on the platform.

  • A confirmation email will also be sent to your registered address.


Step 6 — Verify and Start Trading

After connection:

  • Your Binance account will appear in your Exchange List.

  • You can now allocate funds and activate bots on your dashboard.

  • Check the Activity Log to confirm that your bots are trading correctly.


Troubleshooting

If you encounter an error while connecting:

  • Double-check that your IP address is correctly added on Binance.

  • Make sure withdrawal permission is not enabled.

  • Ensure your API key is active (not expired or deleted).

  • Try creating a new API key if the issue persists.

If none of these steps help, reach out to our Support Team via the in-app chat or email us at [email protected] — we’re always here to help.

Did this answer your question?