> For the complete documentation index, see [llms.txt](https://docs.tradetomato.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tradetomato.com/fundamentals/live-trading/kraken.md).

# Kraken

{% hint style="info" %}
For improved security and to maintain a clear distinction between your automated trading activities and other investments, we advise setting up a separate **sub-account** on Kraken dedicated to Tradetomato.
{% endhint %}

Navigate to Kraken and generate new API keys for your Tradetomato account.

If you don't already have a Kraken account, you'll need to create one. Make sure to provide accurate information during the registration process.

{% hint style="info" %}
*If you already have a Kraken account with funds on it* - skip to the API integration step.
{% endhint %}

**Create an Account**

Begin your trading journey by setting up your Kraken account. Fill in your email and password. Since this account will be integral to your trading activities and will hold your funds, it's crucial to create a strong and secure password. We also strongly recommend enabling 2-factor authentication for an added layer of security.

**Account Verification**

Keep an eye on your inbox for an email containing an activation link. Kraken takes verification seriously as part of its commitment to preventing financial misconduct. You'll need to verify your identity by submitting a valid ID, driver's license, or passport, aligning with their stringent verification protocols.

**Purchase Cryptocurrencies**

With your account established, the next step is purchasing Bitcoin or other cryptocurrencies. Navigate to the top left corner of your Kraken interface and select 'Buy Crypto'. Choose your preferred payment method to acquire the cryptocurrencies of your choice.

**Deposit Funds**

If you already hold cryptocurrencies, you can deposit them into your Kraken account. Access the 'Wallet' option in the upper right corner of your interface. Choose 'Spot Wallet', locate the desired coin you wish to deposit, and click 'Deposit'. Always double-check the address and amount to ensure accuracy and security while transferring your funds.

**API Integration**

Now, let's create Kraken API keys so that you can link your exchange account with Tradetomato. This integration allows seamless interaction between your Kraken account and the Tradetomato platform, meaning you will be able to use your modules to automate your Kraken trades. \
\
**Login and Navigate to API Settings**

Log in to your Kraken account and navigate to your account settings. From there, find the "API" section.

<figure><img src="https://3546553553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOFnYWp8cljRKEyiDZ17i%2Fuploads%2FzYkkAbzILTPjAhwicuYd%2FMask%20group_5.png?alt=media&amp;token=ddaa44d1-2a7f-4497-bf72-a8b12c5afbaa" alt=""><figcaption></figcaption></figure>

**Generate API Key**

Create a new API key by clicking the "Generate New Key" button. Kraken will guide you through the process.\
\
**Label the API Key**

Give your API key a recognizable name.

**Select Permissions**&#x20;

During API key generation, ensure that you select appropriate permissions. For live trading, you'll need to enable the following permissions:

<figure><img src="https://3546553553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOFnYWp8cljRKEyiDZ17i%2Fuploads%2FeqMBoyy3RQnLOYIrtBAR%2FMask%20group-2.png?alt=media&amp;token=e2adf3c6-2003-41a7-82f0-84569c591ebf" alt=""><figcaption></figcaption></figure>

* **Funds and Permissions -** Tick off the following permissions:
  * [x] Query
* **Orders and Trades -** Tick off the following permissions:
  * [x] Query open orders and trades
  * [x] Query closed orders and trades
  * [x] Create & modify orders
  * [x] Cancel & close orders
* **Data -** Tick off the following permissions:
  * [x] Query ledger
* **WebSocket Interface**:&#x20;
  * [x] Allow WebSocket connections

Additionally, you will be required to restrict Tradetomato's IP addresses. \
\
Restricting IPs is a way to make sure that only authorized users can access Kraken API. When you restrict an IP address, it means that only requests coming from that specific IP address will be allowed to access the API.<br>

<figure><img src="https://3546553553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOFnYWp8cljRKEyiDZ17i%2Fuploads%2FdW943ef9NlhAQVGPKRE2%2FIP%20Whitelist.png?alt=media&amp;token=95477caf-5ed3-432a-b6fe-76ebb7636ac5" alt=""><figcaption></figcaption></figure>

Copy the IP addresses provided to you on your Tradetomato account into the field provided on Kraken. Please make sure they're separated by a comma.\
\
Once all your permissions are set and you've restricted our IPs, you can go ahead and generate the keys.

**Generate Key**

After confirming the settings, save the API key. Kraken will prompt you to complete this step through multi-factor authentication (MFA).

<figure><img src="https://3546553553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOFnYWp8cljRKEyiDZ17i%2Fuploads%2F0HBsYnLaKLIF7tnttVYH%2FMask%20group.png?alt=media&amp;token=7b1512da-992f-4f44-8a65-cfb970d2d4ca" alt=""><figcaption></figcaption></figure>

**API Key and Secret**&#x20;

Once your API key is created, you'll receive an API key and a secret. Copy these for these and navigate back to the platform's connection setup. Paste the copied API key and secret it into the respective fields.

<figure><img src="https://3546553553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOFnYWp8cljRKEyiDZ17i%2Fuploads%2FM7JsjQFcMCsuxAeOWMMa%2FMask%20group-1.png?alt=media&amp;token=3cd36f52-dad9-488f-b236-e3df9cc34869" alt=""><figcaption></figcaption></figure>

Double-check that the API key and secret were pasted correctly. Be cautious not to include any additional spaces or characters. After verifying, submit the connection request. You should see a confirmation of the API key being stored securely.\
\
You did it! Head to your portfolio on the platform. Data from your Kraken account should start appearing.\
\
With your connection set up and functioning properly, you can get started with your automation journey at Tradetomato.
