tula

How to create a read-only Kraken API key

Kraken lets you pick each permission a key has. To read balances and positions, turn on two and leave the rest off.

Create the key in Kraken Pro

Create a key with only Query Funds and Query Open Orders & Trades turned on. In Kraken Pro:

  1. Sign in to Kraken Pro, click the profile icon in the top-right corner and choose Settings.
  2. Open the API tab and click Create API key.
  3. Give it a description you will recognise, such as tula. It must be unique.
  4. Turn on Query Funds and Query Open Orders & Trades. Leave every other box off.
  5. Optionally set IP whitelisting and Key Expiration, then click Generate key.
  6. Copy the API key and the private key now. Kraken shows the private key once, and editing the key later does not show it again. Lost it? Delete the key and make a new one.

Give tula a key of its own — Kraken needs each call’s nonce to be higher than the last, and two programs sharing a key trip over each other.

Which Kraken permissions to tick, and which to leave off

  • Query Funds: On. Balances in every wallet. Without it there is nothing to read.
  • Query Open Orders & Trades: On. Open spot-margin positions. A query permission; it cannot place an order.
  • Create & Modify Orders: Off. Places and edits orders. tula refuses the key.
  • Cancel/Close Orders: Off. Closes positions, which is a trade. tula refuses the key.
  • Withdraw Funds: Off. Moves funds off Kraken. tula refuses the key.
  • Deposit Funds, Earn, Export Data, Query Ledger Entries, Query Closed Orders & Trades, Access WebSocket API: Off. Not read. Earn allocates funds into and out of staking.

How tula checks a Kraken key before saving it

  1. It reads Balance. A key that cannot is turned away.
  2. It reads OpenPositions. A key without Query Open Orders & Trades is turned away: it would report a leveraged book as one nothing can liquidate.
  3. It asks GetApiKeyInfo, which lists every permission the key holds and needs none of its own. A key that can trade or withdraw is refused.
  4. If Kraken does not answer that, it calls WithdrawMethods, which only lists methods but is gated on Withdraw Funds — so a success proves the power. Trading cannot be probed without an order endpoint, which tula does not have, so it connects and says it could not confirm the key cannot trade.

Nothing is written to disk until every check passes.

a trading key, refused
Verifying key scope... done.

Refused: this key can trade. tula will not hold a key that can move your funds.
Create a key with only Query Funds and Query Open Orders & Trades turned on.

Can a read-only Kraken API key withdraw or trade?

No. Kraken checks every private call against the key’s permissions, so without Withdraw Funds or Create & Modify Orders those calls fail. What the key does expose is your data: balances, positions and open orders. Treat it like a password — how tula keeps it.

Should a Kraken read-only key be IP whitelisted?

Kraken recommends restricting production keys to known IP addresses. tula runs on your machine, so the address is your connection’s. On a fixed IP, whitelist it. On home broadband, a VPN or a laptop, it changes, and every call then fails until you edit the list. Key Expiration is the other way to bound a key you might forget.

Kraken Futures needs a different key

Kraken Futures is a separate product with separate API keys, created in its own settings. tula asks for a Spot key only, so it does not read Kraken Futures positions.

What tula reads, and what it does not

Spot, staked and held balances in every wallet, and open spot-margin positions.

Not read: the account margin level, Kraken Futures positions and drawn credit lines. See why that matters for ranking.

Try it

Install tula, then connect with the key:

try it
tula connect kraken

Kraken’s own guides: creating a key and what each permission allows. The same on Binance and Coinbase.