Connect Kraken to a trading bot
Crypto · Real money · facts last checked Oct 19, 2026
Connect your Kraken account with an API key that can read balances and orders and place and cancel orders, and nothing else.
Tallimark connects to Kraken today. You paste the key into your own account; Tallimark never holds your money.
Keep these OFF: they let a key move money out
- Withdraw Funds: Never turn this on: the bot never needs to send money out of your account.
- Deposit Funds: The bot never needs deposit addresses or deposit methods. Leave it off.
Before you start(3)
A verified Kraken account can trade and create API keys (up to 16 keys; 25 with higher limits).
Source: Kraken support: verification levels (opens in a new tab) (checked Oct 11, 2026)
Kraken doesn't serve residents of New York or Maine.
Source: Kraken support: clients in the United States (opens in a new tab) (checked Oct 11, 2026)
On a brand-new account with no activity, some calls return an empty answer that tools can misread. Kraken's advice is to deposit a small amount first.
Source: Kraken support: using the API with a third-party service (opens in a new tab) (checked Oct 11, 2026)
Practise first, with no real money(1)
Kraken has no self-service sandbox for spot trading (a test environment exists only for qualified clients after onboarding). Practise with the platform's paper trading first, then start live with a small amount.
Source: Kraken support: test API or sandbox (opens in a new tab) (checked Oct 11, 2026)
Steps
Sign in to Kraken Pro, open the account menu (profile icon), choose Settings, open the API tab and choose Create API key.
Source: Kraken support: how to create an API key (opens in a new tab) (checked Oct 11, 2026) · Kraken support: API key on Kraken Pro (opens in a new tab) (checked Oct 11, 2026)
Give the key a name (Key Description) that no other key on the account uses, for example the bot's name.
Source: Kraken support: how to create an API key (opens in a new tab) (checked Oct 11, 2026)
Tick exactly these permissions: Query Funds, Query Open Orders & Trades, Query Closed Orders & Trades, Modify Orders (newer pages call it Create & Modify Orders) and Cancel/Close Orders. Leave everything else off.
Source: Kraken support: how to create an API key (opens in a new tab) (checked Oct 11, 2026) · Kraken docs: API keys and permissions (opens in a new tab) (checked Oct 11, 2026)
Leave Nonce Window at 0 and Query Start/End Date/Time empty. Consider a Key Expiration (say 90 days): the key stops on its own, and the platform reminds you first.
Source: Kraken support: nonce window (opens in a new tab) (checked Oct 11, 2026) · Kraken support: API key on Kraken Pro (opens in a new tab) (checked Oct 11, 2026)
Optionally restrict the key to IP addresses (IP Address Restriction; see below). Then choose Generate key.
Source: Kraken support: API key on Kraken Pro (opens in a new tab) (checked Oct 11, 2026)
Copy the API key and the private key straight away and keep them in a password manager.
Not yet checked against the broker's own screen: names may differ slightly.
Why it isn't checked
Because Kraken doesn't say whether the private key can be shown again; treat it as shown once.
Source: Kraken support: how to create an API key (opens in a new tab) (checked Oct 11, 2026)
Don't turn on two-factor authentication for this API key (Security, 2FA, API keys): every call would then need a code the bot can't type, and Kraken returns invalid-signature errors.
Source: Kraken support: 2FA for API keys (opens in a new tab) (checked Oct 11, 2026)
In Tallimark, open Connections, choose Kraken, paste the API key into "API key" and the private key into "Private key". Tallimark asks Kraken what the key may do and refuses one that can withdraw.
Source: Kraken support: API key on Kraken Pro (opens in a new tab) (checked Oct 11, 2026)
Optionally, back in Kraken, turn on the Global Settings Lock (Settings, Security): changes to API keys, 2FA and withdrawal addresses then wait a period you choose (1 to 30 days), so a stolen password can't quickly add a key. Set a Master Key first to be able to lift the lock at once.
Source: Kraken support: the Global Settings Lock (opens in a new tab) (checked Oct 19, 2026)
Permissions at Kraken
Turn on
- Query Funds
- Query Open Orders & Trades
- Query Closed Orders & Trades
- Modify Orders (Create & Modify Orders)
- Cancel/Close Orders
Leave off
- Withdraw Funds
- Deposit Funds
- Query Ledger Entries
- Export Data
- Access WebSockets API
Why each setting
Query Funds (turn on): Lets the bot read your balances.
Source: Kraken docs: API keys and permissions (opens in a new tab) (checked Oct 11, 2026)
Query Open Orders & Trades (turn on): Lets the bot see its open orders and fills.
Source: Kraken docs: API keys and permissions (opens in a new tab) (checked Oct 11, 2026)
Query Closed Orders & Trades (turn on): Lets the bot see finished orders and fills.
Source: Kraken docs: API keys and permissions (opens in a new tab) (checked Oct 11, 2026)
Modify Orders (Create & Modify Orders) (turn on): Lets the bot place orders.
Source: Kraken docs: API keys and permissions (opens in a new tab) (checked Oct 11, 2026) · Kraken support: how to create an API key (opens in a new tab) (checked Oct 11, 2026)
Cancel/Close Orders (turn on): Lets the bot cancel its orders.
Source: Kraken docs: API keys and permissions (opens in a new tab) (checked Oct 11, 2026)
Withdraw Funds (leave off): Never turn this on: the bot never needs to send money out of your account.
Source: Kraken docs: API keys and permissions (opens in a new tab) (checked Oct 11, 2026)
Deposit Funds (leave off): The bot never needs deposit addresses or deposit methods. Leave it off.
Source: Kraken docs: API keys and permissions (opens in a new tab) (checked Oct 11, 2026)
Query Ledger Entries (leave off): Not needed by the platform today. Leave it off.
Source: Kraken docs: API keys and permissions (opens in a new tab) (checked Oct 11, 2026)
Export Data (leave off): Not needed. Leave it off.
Source: Kraken docs: API keys and permissions (opens in a new tab) (checked Oct 11, 2026) · Kraken support: how to create an API key (opens in a new tab) (checked Oct 11, 2026)
Access WebSockets API (leave off): Not needed: the platform talks to Kraken over its REST API.
Source: Kraken support: API key on Kraken Pro (opens in a new tab) (checked Oct 11, 2026)
What to paste into Tallimark
- API key
- Kraken calls it: API key
- The public part.
- Private key
- Kraken calls it: Private key (some tools call it the API secret)
- One line, no spaces.
IP allow-list
Kraken supports IP Address Restriction on each key. If the Connections page shows Tallimark's server addresses, add every one of them to the key's IP allow-list. If it shows none, leave the allow-list empty: a list without the server's addresses makes every call fail.
Source: Kraken support: API key on Kraken Pro (opens in a new tab) (checked Oct 11, 2026)
What Tallimark checks: Tallimark asks Kraken what the key may do (its key-info call) and refuses a key that can withdraw funds or add or change withdrawal addresses, or that can't place, cancel and read orders. The check runs again before every trading cycle.
Does the key expire? Only if you set a date
Keys don't expire unless you set Key Expiration when you create them. An expired or disabled key returns EAPI:Invalid key.
Source: Kraken support: API key on Kraken Pro (opens in a new tab) (checked Oct 11, 2026) · Kraken support: API error messages (opens in a new tab) (checked Oct 11, 2026)
What Tallimark does: If you set an expiry date, Tallimark reads it from Kraken (or you enter it when you add the key) and reminds you 7 days and 1 day before. If Kraken refuses the key on 3 bot cycles in a row (outages don't count), bots using it pause: they send no orders, not even exits, and nothing at Kraken is canceled, so resting orders such as protective stops stay there and can still fill. A position with no stop resting at Kraken is not being managed until the key works: check it at Kraken and close it there if you need to. Connections shows it, and Tallimark emails every verified address on your account. Replace the key: the bots check their positions with Kraken and resume on their own once it works.
If something goes wrong(8)
- EAPI:Invalid key
- Why: The key was mistyped, deleted, disabled or expired.
- Fix: Check the key in Kraken (Settings, API), or create a new one and add it again.
Source: Kraken docs: errors (opens in a new tab) (checked Oct 11, 2026) · Kraken support: API error messages (opens in a new tab) (checked Oct 11, 2026)
- EAPI:Invalid signature
- Why: The private key was pasted wrongly, or two-factor authentication is on for the key.
- Fix: Paste both values again with no spaces; if 2FA is on for the key, create a new key without it.
Source: Kraken support: API error messages (opens in a new tab) (checked Oct 11, 2026) · Kraken support: 2FA for API keys (opens in a new tab) (checked Oct 11, 2026)
- EAPI:Invalid nonce
- Why: The same key is used by another app or bot at the same time.
- Fix: Give every app and bot its own key.
Source: Kraken support: invalid nonce errors (opens in a new tab) (checked Oct 11, 2026) · Kraken docs: errors (opens in a new tab) (checked Oct 11, 2026)
- EGeneral:Permission denied
- Why: The key works but lacks a permission the bot needs.
- Fix: Edit the key in Kraken and tick the missing permission from the list above.
Source: Kraken docs: errors (opens in a new tab) (checked Oct 11, 2026)
- EOrder:Insufficient funds
- Why: Not enough balance, or open orders already hold it (fees count too).
- Fix: Lower the trade size, cancel stale orders, or add funds yourself.
Source: Kraken support: API error messages (opens in a new tab) (checked Oct 11, 2026)
- EOrder:Order minimum not met / Cost minimum not met
- Why: The order is smaller than Kraken's minimum for that pair.
- Fix: Raise the trade size; minimums differ per pair and change over time.
Source: Kraken docs: errors (opens in a new tab) (checked Oct 11, 2026) · Kraken support: cost minimum (opens in a new tab) (checked Oct 11, 2026)
- EAPI:Rate limit exceeded / EOrder:Rate limit exceeded
- Why: Too many calls, or too many orders placed and cancelled quickly on one pair.
- Fix: Slow the bot's interval or run fewer bots on one key.
Source: Kraken docs: spot REST rate limits (opens in a new tab) (checked Oct 11, 2026) · Kraken docs: errors (opens in a new tab) (checked Oct 11, 2026)
- EGeneral:Temporary lockout
- Why: Too many failed calls or bad nonces in a short time.
- Fix: Wait about 15 minutes, fix the cause above, then resume.
Source: Kraken support: API error messages (opens in a new tab) (checked Oct 11, 2026)
Replacing a key, and other notes for Kraken
Replacing a key: Create a new key with the same permissions, use “Replace key” here, then delete the old key at Kraken. Kraken can't confirm which account a key belongs to, so replacing is refused while a live session uses the key: stop it first.
All sources (last checked Oct 19, 2026)
- Kraken support: verification levels (opens in a new tab) · checked Oct 11, 2026
- Kraken support: clients in the United States (opens in a new tab) · checked Oct 11, 2026
- Kraken support: using the API with a third-party service (opens in a new tab) · checked Oct 11, 2026
- Kraken support: test API or sandbox (opens in a new tab) · checked Oct 11, 2026
- Kraken support: how to create an API key (opens in a new tab) · checked Oct 11, 2026
- Kraken support: API key on Kraken Pro (opens in a new tab) · checked Oct 11, 2026
- Kraken support: the Global Settings Lock (opens in a new tab) · checked Oct 19, 2026
- Kraken docs: API keys and permissions (opens in a new tab) · checked Oct 11, 2026
- Kraken support: nonce window (opens in a new tab) · checked Oct 11, 2026
- Kraken support: 2FA for API keys (opens in a new tab) · checked Oct 11, 2026
- Kraken docs: errors (opens in a new tab) · checked Oct 11, 2026
- Kraken support: API error messages (opens in a new tab) · checked Oct 11, 2026
- Kraken support: invalid nonce errors (opens in a new tab) · checked Oct 11, 2026
- Kraken support: cost minimum (opens in a new tab) · checked Oct 11, 2026
- Kraken docs: spot REST rate limits (opens in a new tab) · checked Oct 11, 2026
- Kraken: create account (opens in a new tab) · checked Oct 13, 2026
- Kraken support: verification requirements (opens in a new tab) · checked Oct 13, 2026
- Kraken support: verification processing time (opens in a new tab) · checked Oct 13, 2026
Broker screens change often: if a button has moved, follow Kraken's own page.
Ready to build a bot?
Other brokers and exchanges
- AlpacaStocks, ETFs, crypto · Paper or real money
- Coinbase Advanced TradeCrypto · Real money
- TradierStocks, ETFs · Paper or real money
- WebullStocks, ETFs, crypto · Paper or real money
- moomooStocks, ETFs · Paper or real money
- GeminiCrypto · Paper or real money
- TradeStationStocks, ETFs, options, futures · Paper or real money
- Charles SchwabStocks, ETFs · Real money