Access to Prime requires onboarding. Contact
prime_trading@kraken.com or your Account
Manager to begin.
Connection
Authentication
Prime REST uses the same HMAC-SHA512 signature scheme as the Spot REST API. See the Spot REST authentication guide for the exact request signing flow — the algorithm, headers, and nonce handling are identical. Sign requests with a standard Kraken API key that has the permissions listed below. API keys created for Prime API users withCreatePrimeApiUserKey
are for the Prime WebSocket API only.
API key permissions
Typical workflow
1
Create an API user
Call
CreatePrimeApiUser
with either a Viewer (read-only) or Trader (read + trade) role.2
Generate an API key
Call
CreatePrimeApiUserKey
to issue credentials for the user. The API secret is returned once
at creation time — store it securely; it cannot be retrieved later.3
Trade
Execute trades over Prime WebSocket or Prime FIX using the issued
credentials. Trades book against your Prime credit line.
4
Snapshot a settlement batch
At the end of a trading period, call
CreatePrimeSettlementBatch
to capture all unsettled trades into a batch. Each batch contains legs
representing the net position per asset, and trade_ids listing the
trade IDs included in the snapshot. Only one batch per asset_kind can
be active at a time.5
Wait for Kraken to confirm the batch
A new batch has
confirmed: false until Kraken confirms it. There is no
confirm endpoint. Poll
GetPrimeSettlementBatch
until batch.attributes.confirmed is true before you settle. Calling
SettlePrimeSettlementBatchAsset on an unconfirmed batch returns
EOTC:Conflict:settlement batch is not confirmed.6
Settle each outgoing leg
For each
outgoing leg you owe (where can_settle is true), call
SettlePrimeSettlementBatchAsset
to initiate the transfer. Kraken settles incoming legs. Track progress and retrieve trade_ids via
GetPrimeSettlementBatch.Endpoint groups
API Users
Create, list, get, and update Prime API users. Manage user roles.
API User Keys
Issue, list, update, and delete API keys for a Prime user.
Settlement
Snapshot trades into batches and settle each leg.
Roles
The role is set at user creation and can be changed via
UpdatePrimeApiUserRoles.
Key lifecycle
API keys are tied to an API user, not directly to a Prime account. A user may have multiple keys; revoking a key does not affect other keys for the same user.CreatePrimeApiUserKey— issues a key pair; the secret is returned once and never persisted server-side.UpdatePrimeApiUserKey— rotate the IP allow-list or other key metadata.DeletePrimeApiUserKey— immediate revocation; subsequent requests signed with the deleted key fail authentication.
Errors
Responses includeresult and error. On success, error is an empty array.
Common error prefixes:
Settlement errors you may encounter:
Related
Prime WebSocket
Real-time order entry, executions, exposure, and balance streaming.
Prime FIX
Session-based order entry with deterministic ordering and replay.
Spot REST authentication
HMAC-SHA512 signing flow shared with Prime REST.
Choose your protocol
REST vs WebSocket vs FIX trade-offs.