Skip to main content

How to Create and Set Up
Bybit API Key

Step-by-step guide on how to create an API key on Bybit, set up 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 Bybit, configure the proper permissions, and connect it to Bothub so you can start automated trading safely and efficiently.

💡 Estimated setup time: 5–10 minutes

Step 1 — Log In to Your Bybit Account

1. Go to bybit.com and sign in.

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

3. From the dropdown menu, select API.

4. Make sure your account is KYC Verified — this is required for API access and trading.


Step 2 — Create a New API Key

1. In the API Management section, click Create New API Key.

2. Choose System-generated API Keys.

3. In the API Name field, enter a name — for example: Bothub Trade


Step 3 — Set API Permissions

1. In the API Key Permissions section, select Read-write. This permission allows Bothub to view data and execute trading logic safely without any withdrawal capability.

2. Scroll down and enable “API Restrictions”.

3. In the IP restriction field, paste the IP address provided in the Bothub “Connect Exchange” modal.

🔒 Important: Restricting your key to Bothub’s IP ensures that only BotHub’s servers can access your API — protecting your funds even if your key is exposed.


Step 4 — Configure Trading Permissions

Scroll further down to enable the correct trading and data access scopes:

✅ Under Unified Trading, enable:

- All available options

✅ Under Fiat Trading, enable:

- All available options

✅ Under Asstes, enable:

- Exchange History


Step 5 — Complete Security Verification

Click Confirm to create the API key. Bybit will prompt you to complete security verification, which may include:

  • Email confirmation

  • SMS verification

  • Google Authenticator (2FA)

Complete all steps as required by your account settings.


Step 6 — Copy Your API Credentials

Once verification is complete, Bybit will display:

  • API Key

  • API Secret

⚠️ Do not close this window until you’ve copied both keys. The Secret Key is shown only once and cannot be recovered later.

1. Copy both keys.

2. Open Exchanges → Connect Exchange → Bybit.

3. Paste the keys into the corresponding fields.

4. Click Connect.


Step 7 — Finalize and Verify Connection

1. Return to Bybit and click Understood to confirm API key creation.

2. Back on Bothub and press "Connect", wait for the confirmation message — if everything is correct, you’ll see a “Connection Successful” message.

Your Bybit account is now securely connected to Bothub and ready for automated trading.


Step 9 — Verify and Start Trading

After connection:

  • Your Bybit 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 Bybit.

  • 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?