> ## Documentation Index
> Fetch the complete documentation index at: https://docs.redmind.global/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect an exchange to RedMind with an API key

> Learn the rules for every exchange connection: where to connect in RedMind, which fields to fill in, how to verify and how to manage a connection.

To connect an exchange, you create an API key on the exchange and paste it in the RedMind Terminal. An API key lets RedMind read your balance and send orders to your exchange account. RedMind never gets your exchange password.

> [!WARNING]
>
> Give the API key **read** and **trade** permissions only. **Never give withdrawal permission.** Keep the IP access unrestricted, because RedMind uses several IPs.

## Choose your exchange

Each guide shows the full process with a screenshot for each step.

> [card] [OKX](https://docs.redmind.global/guides/connect-okx.md)
>
> 15 steps. OKX is the only exchange that asks for a passphrase.

> [card] [Binance](https://docs.redmind.global/guides/connect-binance.md)
>
> 12 steps. You must uncheck the Default Security Controls.

> [card] [Kraken](https://docs.redmind.global/guides/connect-kraken.md)
>
> 16 steps. You switch Kraken to English to unlock xStocks.

For Bitpanda and Mercado Bitcoin, the process is similar: create an API key on the exchange with read and trade permissions only, then paste the API key and the API secret in RedMind.

## Open the connection window in RedMind

**1. Log in**

Log in to the RedMind Terminal.

**2. Open your account menu**

Click your name in the bottom-left corner.

**3. Open Contas e acessos**

Click **Contas e acessos** (Accounts and access).

**4. Start a connection**

Click **Conectar exchange** (Connect exchange) in the top-right corner, then choose the exchange.

**5. Keep the window open**

Keep this window open. You paste the keys here at the end of the exchange guide.

## Fields that RedMind asks for

| Exchange | RedMind fields |
| - | - |
| OKX | **Chave API** (API key), **Segredo API** (API secret), **Passphrase** |
| Binance, Kraken, Bitpanda, Mercado Bitcoin | **Chave API** (API key), **Segredo API** (API secret) |

Each exchange uses its own names for the keys.

| Exchange | Name on the exchange | RedMind field |
| - | - | - |
| OKX | Chave de API (API key) | Chave API |
| OKX | Chave secreta (Secret key) | Segredo API |
| OKX | Frase secreta (Passphrase) | Passphrase |
| Binance | API Key | Chave API |
| Binance | Chave Secreta (Secret Key) | Segredo API |
| Kraken | API key | Chave API |
| Kraken | Private key | Segredo API |

## Verify the connection

After you click **Conectar e verificar** (Connect and verify), the badge changes from **Aguardando** (Waiting) to **Conectada** (Connected) in a few seconds. You see the message **Conexão verificada com a exchange** (Exchange connection verified), the available balance and the date of the last sync.

## Manage a connection

Go to **Contas e acessos** (Accounts and access) and click **Gerenciar conexão** (Manage connection).

| Button | Use |
| - | - |
| **Sincronizar** (Sync) | Update the balance. |
| **Atualizar credenciais** (Update credentials) | Replace the keys. |
| **Desconectar** (Disconnect) | Remove the connection. |

## Keep your keys safe

The exchange shows the secret key only once. Keep the API key, the secret key and the passphrase (OKX) in a safe place, for example a password manager. Do not share them with anyone, also not with support. If you lose the secret key, create a new API key. See [Security](https://docs.redmind.global/overview/security.md).

## Next steps

> [card] [Create your first portfolio](https://docs.redmind.global/guides/first-portfolio.md)
>
> Describe the portfolio that you want and let RedMind AI build it.

> [card] [Troubleshooting](https://docs.redmind.global/help/troubleshooting.md)
>
> What to check when the connection fails.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.