API Guide: Public vs Private Endpoints

Understanding Public & Private Binance API Endpoints

The Binance API provides both public and private endpoints, each serving different purposes.

Public Endpoints

  • ✅ No authentication required
  • ✅ Provides real-time market data
  • ✅ Fetching current price trends

Private Endpoints

  • 🔒 Requires authentication (API Key & Secret Key)
  • 🔒 Allows access to user-specific data (balances, trade history)
  • 🔒 Enables order execution and trade automation

Our Binance API Dashboard uses only public endpoints, meaning users do not need to register or provide an API key. However, if you want to access account-related data, you will need to generate an API key. You can learn how below.

Process Overview for Private API Access

1️⃣

Register on Binance → Create an account

2️⃣

Generate an API Key → Found in Binance API Management

3️⃣

Add API Key to Your Code → Securely update script.js

4️⃣

Authenticate API Requests → Use API Key to fetch private data

Step 1: Register on Binance

  1. Visit the Binance website.
  2. Click on Sign Up and create an account.
  3. Verify your email and complete any required KYC verification.

Step 2: Generate an API Key

  1. Log in to Binance and go to API Management.
  2. Click Create API and give it a name (e.g., "DashboardAccess").
  3. Enable the following permissions:
    • ✔️ Read-Only (for retrieving account balances and trade history)
    • ✔️ Trading Access (only if placing orders via API)
  4. Complete the security verification process and save your **API Key** and **Secret Key** securely.
Binance API Key Generation

Step 3: Using Your API Key in the Dashboard

  1. Open script.js in your project.
  2. Update the API URL if needed:
  3. const BINANCE_API_URL = "https://api.binance.com/api/v3/ticker/price";
  4. To make requests using a private endpoint, include your API Key in the request headers:
  5. 
    const response = await fetch("https://api.binance.com/api/v3/account", {
      headers: {
        "X-MBX-APIKEY": "your-api-key-here",
      },
    });
            
  6. Save your changes and refresh the dashboard.

FAQ and Troubleshooting