> ## 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 (Kraken)

> How to create an API key on Kraken Pro with the right permissions and connect it to RedMind.

This guide shows the 16 steps of the RedMind tutorial "Connect an exchange (Kraken)". Each step has a screenshot, the action and the details. Select a screenshot to zoom.

> [!NOTE]
>
> The RedMind Terminal and most exchange screens are in Portuguese. This guide gives each label as it shows on the screen, with the translation in parentheses.

**1. In RedMind, open Contas e acessos (Accounts and access) and choose Kraken**

In Contas e acessos (Accounts and access), click **Conectar exchange** (Connect exchange) and choose Kraken.

![In RedMind, open Contas e acessos (Accounts and access) and choose Kraken](https://mintcdn.com/red-mind/5_H-MtwoZ7t_m7Up/images/04-conectar-kraken/01-na-redmind-abra-contas-e-acessos-e-escolha-kraken.webp?fit=max\&auto=format\&n=5_H-MtwoZ7t_m7Up\&q=85\&s=cb48955a4eedb85245939ef8928046e3)

Log in to the RedMind Terminal. Click your name in the bottom-left corner and choose **Contas e acessos** (Accounts and access).

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

Keep this window open: you will come back to it in Step 16.

**2. Log in to Kraken Pro**

Open pro.kraken.com, enter your e-mail and password, and click **Continuar** (Continue).

![Log in to Kraken Pro](https://mintcdn.com/red-mind/5_H-MtwoZ7t_m7Up/images/04-conectar-kraken/02-faca-login-na-kraken-pro.webp?fit=max\&auto=format\&n=5_H-MtwoZ7t_m7Up\&q=85\&s=c3c0beaa9e23d049f1884c9d4c18dcd6)

Go to **pro.kraken.com** on your computer, enter your email or username and your password, and click **Continuar** (Continue).

**3. Enter the 2FA code**

Enter the code from your authenticator app and click **Inserir** (Enter).

![Enter the 2FA code](https://mintcdn.com/red-mind/5_H-MtwoZ7t_m7Up/images/04-conectar-kraken/03-digite-o-codigo-2fa.webp?fit=max\&auto=format\&n=5_H-MtwoZ7t_m7Up\&q=85\&s=a4324bd2560db73f550b8ac5100b3668)

If your account has two-step verification turned on, enter the code from your authenticator app and click **Inserir** (Enter).

**4. Open Profile > Configurações (Settings)**

Click the profile icon in the top right corner, then **Configurações** (Settings).

![Open Profile > Configurações (Settings)](https://mintcdn.com/red-mind/5_H-MtwoZ7t_m7Up/images/04-conectar-kraken/04-abra-perfil-configuracoes.webp?fit=max\&auto=format\&n=5_H-MtwoZ7t_m7Up\&q=85\&s=1a669bc9813f195b8f9d34e29b70d225)

On the home screen, click the profile icon in the top-right corner, then click **Configurações** (Settings).

**5. Unlock the global platform**

Under Definições regionais (Regional settings), click **Editar** (Edit) next to Idioma (Language), tick the box and click **Acessar plataforma global** (Access global platform).

![Unlock the global platform](https://mintcdn.com/red-mind/5_H-MtwoZ7t_m7Up/images/04-conectar-kraken/05-libere-a-plataforma-global.webp?fit=max\&auto=format\&n=5_H-MtwoZ7t_m7Up\&q=85\&s=d0acba3d8e359cb1c01dc54bf89e7721)

Under **Configurações → Conta** (Settings → Account), scroll to **Definições regionais** (Regional settings) and click **Editar** (Edit) next to **Idioma** (Language). Kraken displays the *Alterações no seu acesso* (Changes to your access) notice: xStocks are available only on the global platform, which isn't offered in Portuguese.

Check **Entendo que esses produtos são oferecidos fora do Brasil** (I understand that these products are offered outside Brazil) and click **Acessar plataforma global** (Access global platform).

> [!NOTE]
>
> **Why unlock xStocks:** xStocks aren't required, but we recommend them. RedMind can only tell whether your account can trade tokenized stocks at the moment it sends an order. Without xStocks, a tokenized stock order (placed by you or recommended by the AI) fails at execution.

**6. Change the language to English (US)**

Choose English (US) under Idioma (Language) and click **Atualizar configurações** (Update settings). Do not switch back to Portuguese.

![Change the language to English (US)](https://mintcdn.com/red-mind/5_H-MtwoZ7t_m7Up/images/04-conectar-kraken/06-mude-o-idioma-para-english-us.webp?fit=max\&auto=format\&n=5_H-MtwoZ7t_m7Up\&q=85\&s=4c3a3ec7e8c9a1f04d55519deb45dafd)

In the **Idioma** (Language) field, choose **English (US)** and click **Atualizar configurações** (Update settings).

> [!WARNING]
>
> **Warning:** Don't switch the language back to Portuguese. In Portuguese, your account goes back to the Brazilian platform, which has no xStocks.

**7. Check that xStocks is unlocked**

Under Eligibility, check that xStocks shows Unlocked. If it does, you do not need to click.

![Check that xStocks is unlocked](https://mintcdn.com/red-mind/5_H-MtwoZ7t_m7Up/images/04-conectar-kraken/07-confira-se-as-xstocks-estao-liberadas.webp?fit=max\&auto=format\&n=5_H-MtwoZ7t_m7Up\&q=85\&s=76eaa1547bd22f971ec44bc8dfbe5c31)

On the **Account** tab, under **Eligibility**, check that **xStocks** shows **Unlocked**. If it doesn't, click the button next to it and follow Kraken's instructions.

> [!NOTE]
>
> **Kraken is now in English:** From here on, the screens and button names are in English. This tutorial shows each name exactly as it appears on the screen.

**8. Open Connections & API and click Create API key**

On the Connections & API tab, click **Create API key** under Spot trading API.

![Open Connections & API and click Create API key](https://mintcdn.com/red-mind/5_H-MtwoZ7t_m7Up/images/04-conectar-kraken/08-abra-connections-api-e-clique-em-create-api-key.webp?fit=max\&auto=format\&n=5_H-MtwoZ7t_m7Up\&q=85\&s=061a89e2a21299acbb64fa2a7e9518a1)

Open the **Connections & API** tab. Under **Spot trading API**, click **Create API key**.

**9. Name the key**

In the Name field, type an easy-to-remember name, for example RedMind.

![Name the key](https://mintcdn.com/red-mind/5_H-MtwoZ7t_m7Up/images/04-conectar-kraken/09-de-um-nome-para-a-chave.webp?fit=max\&auto=format\&n=5_H-MtwoZ7t_m7Up\&q=85\&s=682a8b3bc0be5766f4202c7d753e103f)

The **Add API key** window opens. In the **Name** field, enter an easy-to-remember name, for example `RedMind`.

**10. Select the permissions**

Under Permissions, tick only the query, order and export permissions. Never tick Withdraw.

![Select the permissions](https://mintcdn.com/red-mind/5_H-MtwoZ7t_m7Up/images/04-conectar-kraken/10-marque-as-permissoes.webp?fit=max\&auto=format\&n=5_H-MtwoZ7t_m7Up\&q=85\&s=dbe9407f2b3c21b341fbb9257ac4bc7d)

Under **Permissions**, check:

**Query** (under Funds permissions)

**Query open orders & trades**

**Query closed orders & trades**

**Create & modify orders**

**Cancel & close orders**

**Query ledger entries**

**Export data**

> [!WARNING]
>
> **Golden rule: never grant Withdraw permission:** Never check **Withdraw**. Also leave **Deposit**, **Add withdrawal addresses**, **Earn**, and **Query affiliate participants** unchecked. RedMind trades for you, but it never withdraws.

**11. Leave the IP restriction off**

Keep the IP address restriction option off, because RedMind uses several IPs.

![Leave the IP restriction off](https://mintcdn.com/red-mind/5_H-MtwoZ7t_m7Up/images/04-conectar-kraken/11-deixe-a-restricao-de-ip-desligada.webp?fit=max\&auto=format\&n=5_H-MtwoZ7t_m7Up\&q=85\&s=e1ef4bcc95e3ae1c9a143004a0aed099)

Leave **IP address restriction** turned off, because RedMind uses several IPs.

**12. Click Generate key**

Keep the other options off, scroll to the bottom and click **Generate key**.

![Click Generate key](https://mintcdn.com/red-mind/5_H-MtwoZ7t_m7Up/images/04-conectar-kraken/12-clique-em-generate-key.webp?fit=max\&auto=format\&n=5_H-MtwoZ7t_m7Up\&q=85\&s=6fece5f335c177db3ebd17d77096c0a9)

Leave the other options turned off: **WebSocket interface**, **Key expiration**, **Query start date** and **Query end date**, and **Custom nonce window**.

Scroll to the bottom and click **Generate key**.

**13. Confirm with your authentication code**

Type the authentication code in the Authentication code field and click **Enter**.

![Confirm with your authentication code](https://mintcdn.com/red-mind/5_H-MtwoZ7t_m7Up/images/04-conectar-kraken/13-confirme-com-seu-codigo-de-autenticacao.webp?fit=max\&auto=format\&n=5_H-MtwoZ7t_m7Up\&q=85\&s=79aa04c9b6ba25a5d8522f91d9aeaa61)

Kraken asks for your authentication code one more time (**Enter your authentication code**). Enter the code in the **Authentication code** field and click **Enter**.

**14. Copy the API key and the Private key**

Copy the API key and the Private key and save both. The Private key is shown only once.

![Copy the API key and the Private key](https://mintcdn.com/red-mind/5_H-MtwoZ7t_m7Up/images/04-conectar-kraken/14-copie-a-api-key-e-a-private-key.webp?fit=max\&auto=format\&n=5_H-MtwoZ7t_m7Up\&q=85\&s=1e518d1d2cf028ab9513a8c3cc9c4aa7)

Kraken shows **API key created**. Click the copy button next to the **API key** and next to the **Private key**, and store both somewhere safe.

> [!WARNING]
>
> **Warning:** After you click **Close**, Kraken won't show the Private key again. If you lose it, you'll have to create a new key.

**15. Check the key in the list**

Check that the RedMind key shows in the Spot trading API list. You do not need to click.

![Check the key in the list](https://mintcdn.com/red-mind/5_H-MtwoZ7t_m7Up/images/04-conectar-kraken/15-confira-a-chave-na-lista.webp?fit=max\&auto=format\&n=5_H-MtwoZ7t_m7Up\&q=85\&s=da98dd5b02f9552b20172f7aa1b3dd88)

Your new **RedMind** key now appears in the **Spot trading API** list.

**16. Paste the keys into RedMind**

Paste Chave API (API key) and Segredo API (the Private key) into the RedMind window and click **Conectar e verificar** (Connect and verify).

![Paste the keys into RedMind](https://mintcdn.com/red-mind/5_H-MtwoZ7t_m7Up/images/04-conectar-kraken/16-cole-as-chaves-na-redmind.webp?fit=max\&auto=format\&n=5_H-MtwoZ7t_m7Up\&q=85\&s=479ccd291b33c50785ca0a4f55e12b64)

Go back to RedMind, to the Kraken window, and paste:

**Chave API** (API key): the API key that you copied from Kraken

**Segredo API** (API secret): the Private key

Click **Conectar e verificar** (Connect and verify). When the badge changes to **Conectada** (Connected), you see the available USD balance.

## 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] [Common questions](https://docs.redmind.global/help/common-questions.md)
>
> Find short answers about accounts, exchanges and portfolios.


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