Skip to content

BingX – API Import Guide

This guide explains how to create and bind a BingX API Key to your trading platform.
By connecting your BingX account via API, you can enable automated trading, market data access, and real‑time account synchronization securely.


⚠️ Important Notes Before You Start

Before creating an API key on BingX, please note:

  • BingX supports APIs for Spot & Perpetual Futures trading.
  • Each main account and sub‑account can hold up to 20 active API keys.
  • Keep your API key and secret confidential; linking your API key to IP addresses enhances security.
  • API keys with trading permissions that are not bound to an IP and remain inactive for 14 days may be automatically deleted.

Step 1: Log in to BingX

  1. Visit the official BingX website
    👉 https://www.bingx.com
  2. Log in with your account credentials
  3. Ensure 2FA (Google Authenticator / SMS) and KYC are completed if required

📸 Screenshot Example
BingX Login Page


Step 2: Navigate to API Management

  1. Click your profile avatar (top‑right corner)
  2. Click API Management in the dropdown

📸 Screenshot Example
BingX API Management Entry


Step 3: Create a New API Key

  1. Click Create API
  2. Enter an API Name/Label (e.g., UFOX‑BingX‑API)
  3. Select permissions based on your usage:
    • ☑️ Read – allows querying account & market data
    • ☑️ Spot Trading – execute spot orders
    • ☑️ Perpetual Futures Trading – execute futures orders
  4. Optionally enable IP Whitelisting and add trusted IP addresses

    You may bind up to 20 IP addresses per API key to enhance security.

📸 Screenshot Example
BingX Create API


Step 4: Complete Security Verification

  1. Enter your Email verification code
  2. Enter your 2FA (Authenticator / SMS) code

After verification, BingX will show:

  • API Key
  • Secret Key (⚠️ shown only once — save it securely)

📸 Screenshot Example
BingX API Created

⚠️ The Secret Key is only shown once; save it safely.
Avoid taking public screenshots or storing it in unprotected note apps.


Step 5: Bind the API Key on Your Platform

  1. Go to Account → API Management on your trading platform
  2. Select BingX as the exchange
  3. Enter:
    • API Key
    • Secret Key
  4. Choose trading authorization scopes (Spot / Futures / Both)
  5. Click Bind / Connect

📸 Screenshot Example
Bind BingX API on Platform


Step 6: Verify API Connection

After binding:

  • ✅ API Status: Connected / Active
  • 📊 Account balance and positions sync
  • 🤖 Trading/strategies can operate

📸 Screenshot Example
BingX API Connected Status


Common Errors & Solutions

❌ Invalid API Key / Secret

  • Verify there are no extra spaces when copying keys
  • Ensure correct key is used (main vs subaccount)

❌ Permission Denied

  • Confirm Spot Trading or Perpetual Futures Trading permissions are enabled
  • For futures trading, ensure that futures account is activated on BingX

❌ IP Restriction Error

  • Add platform provided IPs to whitelist
  • Or temporarily disable IP whitelist for testing

Security Best Practices

  • 🔐 Enable IP Whitelist for API keys
  • 🔄 Rotate keys periodically
  • 🚫 Do not enable risky permissions unless necessary
  • 🛑 Delete API keys immediately if compromised

FAQ

How long are BingX API keys valid?

API Keys with read-only or IP Whitelisted permissions do not expire.
Keys with trading permissions and no IP whitelist may be auto‑deleted if inactive for 14 days.

Do I need to bind IP addresses?

Yes — binding trusted IPs improves security and prevents automatic deletion for active trading keys.

Can I modify permissions later?

Yes — you can edit permissions, whitelist, and settings anytime from API Management.


🎯 Finished

Your BingX account is now connected securely via API.
You may begin automated trading or build strategies as needed.

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

Released under the MIT License.