# Connect a Centralized Exchange

Adding an API key to UpBots is generally the same for all the exchanges we currently support with the exception that it's also possible to add sub accounts if you are using Binance. **Just make sure when creating the API key to disable transfers/withdrawing** and don't forget **IP white listing** for Binance API. \
If you want to use Algo bots, you will need to make sure "**allow trading**" or "**allow spot trading**" is turned on for the API key.

In the written and video tutorials below we will be creating and adding an Binance API key to UpBots.

{% hint style="info" %}
UpBots Currently supports Portfolio tracking on Binance, BitMEX, Huobi, Kucoin and OKex, as well as, Algo bots for Binance and Kucoin and finally manual trading on Binance and Kucoin. We are continually developing and adding more support for centralized exchanges, so expect more updates soon!
{% endhint %}

{% hint style="warning" %}
When using Binance please be aware that old Binance API keys are only valid for trading for 90 days. After this time you will need to login to your Binance account and once again update the setting "enable spot and margin trading" should you wish to continue trading on Binance via UpBots. This is especially important for Algo Bots to prevent any issues when the spot and margin trading permission is reset every 90 days.
{% endhint %}

{% hint style="danger" %}
**New rules have been introduced for Binance. It is important to whitelist our IPs in order to be able to trade on Binance from UpBots.**&#x20;

Please check bellow for more information
{% endhint %}

## Connecting a crypto exchange to UpBots

* **Step 1**\
  Sign into your UpBots account. Then click on the menu, under **My Portfolios > API Keys**

<figure><img src="https://867784384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MLqegM7gFFwrY__4QMW%2Fuploads%2FxohCyVZwBPtYoH9mORHv%2Fimage.png?alt=media&#x26;token=bb13901e-a050-4c94-8117-1684783cb8e3" alt=""><figcaption></figcaption></figure>

* **Step 2**\
  Now you'll need to retrieve the API keys for your wallet on the chosen exchange. \
  \
  NB: *If you haven't set up an account yet click `Open an account now` and go to step 3. If you already have an account on an exchange then proceed to step 4.*&#x20;

![](https://867784384-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MLqegM7gFFwrY__4QMW%2F-MkcuWp5KER0sVogr-yg%2F-MkcxJ4mymry8SWqXoJN%2Fimage.png?alt=media\&token=a30a9f9c-5896-4f96-bd8b-5d5e340be8e8)

* **Step 3** \
  Head to Binance  or any of our other supported exchanges (BitMEX, Huobi, etc) and set up an account. Locate your wallet's API key and secret as its located in your chosen exchange.&#x20;

* **Step 4**\
  Locate your wallet's API Key and Secret through your exchange. Fill out all the request data for your exchange and hit `Connect`

{% hint style="danger" %}
**New rules have been introduced for Binance. It is important to whitelist our IPs in order to be able to trade on Binance from UpBots.**
{% endhint %}

\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_

## <mark style="color:red;">⚠️ For Binance API ⚠️</mark> <a href="#binance-api" id="binance-api"></a>

If you don’t follow these steps, you won’t be able to connect your Binance account to our bots on UpBots. But don’t worry, it’s **easy to do and only takes a few minutes.** Just follow these steps:

1. Go to <https://www.binance.com/en/my/settings/api-management>
2. Press “Create API”
3. Choose “System generated API Key” and click “NEXT”

<figure><img src="https://cdn-images-1.medium.com/max/800/1*rf_gJenMY7tB8hTLlB3nvg.png" alt=""><figcaption></figcaption></figure>

4\. Enter a name for your API (e.g. UpBots Dashboard)

<figure><img src="https://cdn-images-1.medium.com/max/800/1*863qmoMg8UTLeD_Gkxpb9w.png" alt=""><figcaption></figcaption></figure>

5\. When you have your key, press “Edit Restrictions”

<figure><img src="https://cdn-images-1.medium.com/max/800/1*bSaqdEf6_0apYGALubLGlw.png" alt=""><figcaption></figcaption></figure>

<br>

6\. Select :

&#x20;   a) “**Enable Spot & Margin Trading**” and/or “**Enable Futures**” depending on the option you selected on UpBots

&#x20;   b) Select “**Restricted access to trusted IPs only (Recommended)**”

&#x20;   c) Copy and paste the following IP addresses into the box and confirm.

```
3.122.7.156 3.124.225.91 3.66.12.169 3.76.25.233 35.156.164.239
```

9\. Press “**save**” and you’re done! You can now start trading on UpBots.

\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_

* **Step 5** \
  Once your wallet has successfully been added you'll be redirected to the Portfolio Monitoring (CEXs) page. You'll immediately see this section display data insights on the owned crypto in this account

![](https://867784384-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MLqegM7gFFwrY__4QMW%2F-MkcuWp5KER0sVogr-yg%2F-MkcxxpbdV1dRM2aQN2e%2Fimage.png?alt=media\&token=9a1bf68b-a4b0-42cd-81ed-9f0cfc205865)

That is all! Now your wallet and exchange has been linked to UpBots. You can add as many CEX accounts as you wish using this method.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://upbots.gitbook.io/upbots/2.-features/wallets-manager/connect-an-exchange.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
