Skip to content

Bitget – API Import Guide

This guide explains how to create and bind a Bitget API Key to your trading platform.
By connecting your Bitget account via API, you can enable automated trading, strategy execution and real-time account data access securely.


⚠️ Important Notes Before You Start

Before creating an API Key on Bitget, please note:

  • You can create up to 10 API Keys per account.
  • Each key has three credentials:
    • APIKey – the public key for identification,
    • SecretKey – the private key used for signing,
    • Passphrase – a user-defined password required for authentication.
  • Save your Passphrase and SecretKey securely — they are shown only once.
  • Strongly recommend enabling IP Whitelist for security.

Step 1: Log in to Bitget

  1. Visit the official Bitget website
    👉 https://www.bitget.com
  2. Log in with your username and password.
  3. Make sure 2FA (Two-Factor Authentication) is enabled.

📸 Screenshot Example
Bitget Login Page


Step 2: Navigate to API Management

  1. Click your profile avatar at the top-right corner of the screen.
  2. Select API Keys from the dropdown menu.
  3. The API Management dashboard will open.

📸 Screenshot Example
Bitget API Management Entry


Step 3: Create a New API Key

  1. Click Create API Key.
  2. Choose System-generated API Key.
  3. Enter an API Name / Note (e.g., UFOX-Bitget-API).
  4. Enter a Passphrase — keep this safe, as it cannot be recovered later.

📸 Screenshot Example
Bitget Create API Key


Step 4: Configure API Permissions (Very Important)

Bitget allows you to set different API permissions. Typical settings for automated trading:

✅ Permissions

  • ☑️ Read – allows candle, order, and account data reads.
  • ☑️ Trade (Read-Write) – allows placing and canceling orders.
  • (Optional) Transfer – moves assets between sub-accounts.
  • (Optional) Withdraw – enables withdrawals (only use with IP whitelist).

⚠️ Withdrawal permission is risky — enable only if absolutely necessary and with strict IP restrictions.

📸 Screenshot Example
Bitget API Permissions


  1. In the IP Whitelist field, enter the list of trusted IPs.
    • Your trading platform’s IPs (provided by your platform).
  2. Enabling IP restriction significantly improves security.

📸 Screenshot Example
Bitget API IP Whitelist

If you don’t have IPs yet, you may temporarily skip this step and update it later.


Step 6: Complete Security Verification

After setting the permissions:

  1. Click Next / Confirm.
  2. Complete email verification.
  3. Enter your 2FA code (Google Auth / SMS).
  4. Bitget will show your:
    • API Key
    • Secret Key
    • Passphrase

📸 Screenshot Example
Bitget API Created

⚠️ Save the SecretKey and Passphrase securely — they will not be shown again.


Step 7: Bind API Key on the Trading Platform

  1. Go to Account → API Management in your platform’s dashboard.
  2. Select Bitget as the exchange.
  3. Enter:
    • API Key
    • Secret Key
    • Passphrase
  4. Select scopes:
    • Spot / Futures / Both (depending on strategy).
  5. Click Bind / Connect.

📸 Screenshot Example
Bind Bitget API on Platform


Step 8: Verify Connection Status

Once bound:

  • ✅ API Status: Connected
  • 📊 Account balances updated
  • 🤖 Strategies available

📸 Screenshot Example
Bitget API Connected Status


Common Errors & Solutions

Invalid API Key / Secret / Passphrase

  • Double-check for extra spaces.
  • Ensure you copied the correct keys.
  • If lost, delete and recreate the API.

📸 Screenshot Example
Bitget API Error


Permission Denied

  • Ensure Trade is enabled for trading strategies.
  • For futures execution, enable appropriate permissions.

IP Whitelist Rejection

  • Add correct platform IPs.
  • Or temporarily disable IP restriction for testing.

Security Best Practices

  • 🔐 Use dedicated API Keys per platform.
  • 🔄 Rotate keys periodically.
  • 🚫 Disable unused permissions.
  • 🛑 Delete old or compromised keys immediately.

FAQ

What permissions should I set?

Mostly Read + Trade (Read-Write).
Avoid Withdraw unless needed with restricted IP.

Can I modify API permissions later?

Yes — permissions and IP whitelist can be updated anytime.

How many API keys can I create?

Bitget allows up to 10 API Keys per account.


🎯 Finished

Your Bitget account is now connected and ready for automated or quantitative trading.

For more guides, please refer to other exchange API import documentation.

Released under the MIT License.