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 key permissions
If your Prime account belongs to an organization, enable Prime Ops on the
API key in addition to the permissions above. Requests from an organization
key without Prime Ops are rejected with
EGeneral:Permission denied:prime ops.
Typical workflow
1
Trade
Execute trades over Prime WebSocket or Prime FIX. Trades book against
your Prime credit line.
2
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.3
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.4
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
Settlement
Snapshot trades into batches and settle each leg.
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
Which Institutional API fits your workflow.