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

# Kraken

> Connect Kraken Spot or Futures with an API key you make on Kraken, and run your bots on it.

Kraken now works with TraderFrame. It is one venue with two markets, **Spot** and **Futures**, and you pick one each time you connect. Your bots and signal sources work on Kraken as they do on other exchanges, and your exits work as described below. Your funds stay in your Kraken account.

> [!NOTE]
>
> Futures is available where Kraken offers it. Kraken can't be connected from Russia, Belarus, Iran, North Korea or other sanctioned countries: the connect sheet says so, and your other brokers and bots are not affected.

## Spot or Futures

| | Spot | Futures |
| - | - | - |
| What you trade | Buy and hold the coin, no leverage | Perpetuals, long or short |
| Where the key is made | kraken.com | futures.kraken.com (Live) · demo-futures.kraken.com (Demo) |
| Demo | Not available: Kraken has no spot demo, so Spot connects on **Live** only | Kraken's futures demo, with its own login and balance |
| Card in TraderFrame | Kraken · Spot | Kraken · Futures |

Each market is its own connection with its own card, so you can hold Kraken · Spot and Kraken · Futures side by side. Kraken issues Futures keys separately from Spot keys, so each needs its own key.

## Make the key on Kraken

> [tab] Spot key
>
> **1. Sign in at kraken.com on a computer**
>
> Open **Settings → API** and choose **Create API key**.
>
> **2. Name the key TraderFrame**
>
> The name only helps you find it later.
>
> **3. Tick these permissions, and only these**
>
> * Query Funds
> * Query Open Orders & Trades
> * Query Closed Orders & Trades
> * Create & Modify Orders
> * Cancel & Close Orders
>
> **4. Generate the key and copy both parts**
>
> Kraken shows the private key only once. Copy it before you close the window.
>
> > [!WARNING]
> >
> > Never tick **Withdraw Funds**. TraderFrame never needs it, and a Spot key that can withdraw is refused.
>
> Kraken's own guide: [How to create an API key](https://support.kraken.com/hc/en-us/articles/360000919966-How-to-create-an-API-key).

> [tab] Futures key
>
> **1. Sign in on a computer**
>
> For **Live**, at futures.kraken.com. For **Demo**, at demo-futures.kraken.com: the demo is a separate Kraken site with its own login, and a key made on the live site does not work there (or the other way round). Open **Settings → API Keys** and choose **Create Key**.
>
> **2. Name the key TraderFrame**
>
> The name only helps you find it later.
>
> **3. Set these access levels, and only these**
>
> * General API: **Full access**
> * Withdrawal API: **No access**
>
> **4. Create the key and copy both parts**
>
> Kraken shows the private key only once. Copy it before you close the window.
>
> Kraken's own guide: [How to create an API key for Kraken Futures](https://support.kraken.com/hc/en-us/articles/360022839451-How-to-create-an-API-key-for-Kraken-Futures).

## Connect in TraderFrame

1. Open **Brokers → Connect broker → Kraken**.
2. Choose **Live** or **Demo**, then **Spot** or **Futures**. Spot is off on Demo, because Kraken has no spot demo.
3. Paste the API key and the private key, and connect. The new card shows your balance when it succeeds.
4. Pick the Kraken account on any bot.

## Trading on Kraken

* **USDT signals trade the USD pair.** Kraken lists coins against USD, so a `BTCUSDT` signal trades `BTC/USD`. Every trade shows both the signal's symbol and the pair it traded. No other asset is ever swapped in.
* **Spot exits.** Your stop-loss rests on Kraken as a stop-loss order, so it holds even while TraderFrame is offline. Your take-profit is watched by TraderFrame: when the price reaches it, the stop comes off first and then the coins are sold at market.
* **Futures exits.** Your stop-loss and take-profit rest on Kraken Futures as orders that only reduce the position.
* **Fees.** Kraken's own trading fees apply, as on any exchange.
* **Account access.** Kraken can pause or suspend API access to an account at any time. If it does, your Kraken bots stop placing orders and we let you know.

## If connecting fails

* **"This key can withdraw funds, so we didn't connect it."** Make a new key with withdrawal unticked and paste it. You can delete the old key on Kraken.
* **"Kraken didn't accept this key."** It may be mistyped, deleted on Kraken, or missing one of the permissions above. Check both parts and paste them again, or make a new key. For a Demo Futures key, check it was made on demo-futures.kraken.com.
* **"Kraken isn't available in your country."** The country on your profile, or where you connect from, is one Kraken can't serve. Your other brokers and bots keep running.


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