# Connecting API BingX

> Detailed instructions for creating BingX API key and connecting it to Veles platform - via a Fast or Manual connection.

:::caution[Attention!]
1. In order for the API key to work correctly, **"Single Asset Mode"** must be enabled on the BingX trading account. If the "Multi-asset Mode" is set, the bot will stop with an error.
2. Before creating the key, make sure that your trading account **is topped up** — without this, the connection will not work.
:::

## Fast connection to BingX

A Fast connection is available for **main accounts**.
Subaccounts are connected **only manually**.

1. Go to the [API Key Management page](https://veles.finance/cabinet/account/api)
or open the bot creation window.

2. Click **"Add API Key"** and select **BingX**.

3. Click **"One-click connection"**.

4. After authorization, click **"Agree"** to confirm the request.

:::caution[Important!]
By connecting, be sure to set up **lock "By Position"** for the new Binding.
:::

## Manually creating a BingX API key and linking to Veles

If the "Fast Connection" is unavailable or does not work, use the manual procedure.

### Creating API Key on the exchange

1. Log in to your BingX account, click on the profile icon and select **"API Management"**.

2. Click **"Create API"**.

3. Set an informative name for the key, allow **Futures trading**
   and provide **a list of Veles IP addresses** for security:
   5.9.195.106,5.9.195.107,5.9.195.108,5.9.195.109,5.9.195.110,5.9.200.58,5.9.200.59,5.9.200.60,5.9.200.61,5.9.200.62,88.198.100.162,88.198.100.163,88.198.100.164,88.198.100.165,88.198.100.166
   If you plan to trade on the Spot, then also mark **"Spot trading"**.

4. Confirm the creation of the key using the code from mail and Google Authenticator.

5. After confirmation, the exchange will show a window with **API Key** and **Secret Key**.
   Copy them and save in a safe place — the "Secret Key" is displayed **only once**.

### Creating an API key Binding to Veles

1. Log in to your Veles personal account and open the **"API Keys"** section ( ⚙ icon → API Keys).

2. Click **"Add API Key"** and select **BingX**.

3. Select **"Manual Connection"**, fill in the API key data from BingX and click **"Connect"**.

:::caution[Important!]
By connecting, be sure to set up **lock "By position"** to eliminate conflicts between bots.
:::

---

Now your **BingX** account is successfully linked to **Veles**,
and you can launch trading bots on the Futures market.
