> For the complete documentation index, see [llms.txt](https://docs.algo724.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.algo724.com/getting-started/connecting-on-exchange-via-api.md).

# Connecting on Exchange via API

<figure><img src="/files/SSXJiYMGHpbXRqA0qMSl" alt=""><figcaption><p>Connecting on Exchagne via API</p></figcaption></figure>

To allow our bots to trade on your behalf, you need to connect your exchange account (like Binance) to Algo724. This is done using an API (Application Programming Interface) key, which is a very secure method that grants our platform trading permissions **without** ever exposing your login credentials.

This guide will walk you through creating a secure API key on Binance and connecting it to Algo724.

### Part 1: Get Your Secure IP Whitelist from Algo724

First, we need to get a special list of IP addresses from our platform. This list tells Binance that only requests from Algo724's secure servers are allowed to use your API key, adding a critical layer of security.

1. In the Algo724 platform, navigate to the **Account** tab in the bottom-left menu.

   <figure><img src="/files/WksuK35qkMgyTV8R8EPz" alt="" width="346"><figcaption><p>Navigate to the Account section</p></figcaption></figure>
2. Click the **Connect New** button at the top right.

   <figure><img src="/files/9xRkRRvdxCb8nuxSEytN" alt="" width="309"><figcaption><p>Click Connect New</p></figcaption></figure>
3. A "Connect to exchange" window will pop up. At the top, you will see the **IP White List**. Click the copy icon next to the list of IPs.

   <figure><img src="/files/VZkEEK5Q4p7buD9Bjdzw" alt="" width="375"><figcaption><p>Copy the IP White List. Keep this window open in a tab</p></figcaption></figure>

Keep these IPs saved on your clipboard; you will need them in the next part.

### Part 2: Create a Secure API Key on Binance

Now, let's head over to Binance to create the API key.

1. Log in to your Binance account. Click on your user profile icon, and navigate to the **API Management** section.

   <figure><img src="/files/8ZjIqK1gz3ZCfInJikzb" alt=""><figcaption><p>Navigate to API Management in Binance</p></figcaption></figure>
2. Click the **Create API** button and select **System generated**. Give your API key a memorable label, like `Algo724`, and click **Next**.

   <figure><img src="/files/A6h2MjN9tZKmXhl4QUIb" alt=""><figcaption><p>Choose system-generated API key</p></figcaption></figure>
3. Complete Binance's security verification (2FA, email, etc.).
4. Your key is now created! You will see the **API Key** and a **Secret Key**.

<figure><img src="/files/myp3znGsiq1qIYbjC2O5" alt=""><figcaption><p>Create a new API key</p></figcaption></figure>

> ⚠️ **IMPORTANT:** Your `Secret Key` is only displayed **ONCE**, right after you create it. Copy it immediately and store it somewhere safe. If you lose it, you will have to delete this key and create a new one.

5. Click the **Edit restrictions** button.
6. **Set Key Permissions (Crucial Security Step)**
   * CHECK ☑️ `Enable Spot & Margin Trading`. Our bots need this to place trades.
   * LEAVE UNCHECKED ❌ `Enable Withdrawals`. **NEVER enable withdrawals.** This ensures that even in the worst-case scenario, your funds cannot be moved out of your account.
   * LEAVE UNCHECKED ❌ All other options unless you are an advanced user creating a specific bot (e.g., for Futures).
7. **Set IP Access (Crucial Security Step)**

   * Select the option `Restrict access to trusted IPs only (Recommended)`.
   * Paste the list of IPs you copied from Algo724 into the text box.
   * Click **Confirm**.

   <figure><img src="/files/tdj2G1S0px71dQyJIWEB" alt=""><figcaption><p>Input IP white list</p></figcaption></figure>

<figure><img src="/files/Bhe62ZPfMxpGoNNC2nxK" alt=""><figcaption><p>Confirm the list</p></figcaption></figure>

5. (✅ Important)Click **Save**. Binance will ask for 2FA verification again.

### Part 3: Enter the API Keys into Algo724

Now for the final step! Let's go back to the Algo724 "Connect to exchange" window.

1. **Account Name**: Give this connection a nickname (e.g., `My Binance Spot`).
2. **Account**: Select `binance` from the dropdown.
3. **AccountType**: Select `spot`.
4. **API key**: Paste the `API Key` from Binance here.
5. **Secret key**: Paste the `Secret Key` you saved from Binance here.
6. Click **CONFIRM**.

   <figure><img src="/files/gIQq90es9KCOVFpf16Z2" alt="" width="375"><figcaption><p>Fill in your details and new API keys</p></figcaption></figure>

#### Success!

You should now see your new connection in the Account list with a green **ONLINE** status.

<figure><img src="/files/OtaNYtbzdeJeAAu5bCxu" alt=""><figcaption><p>Connection Online</p></figcaption></figure>

Your account is now securely connected, and you are ready to launch your first bot!
