The Logon message (Documentation Index
Fetch the complete documentation index at: https://kraken-sandbox.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
35=A) must be the first message sent after establishing the TCP connection. It authenticates the session and sets session-level parameters.
If logon succeeds, Kraken responds with a Logon message. If it fails, Kraken sends a Logout with a reason, or silently closes the connection.
Session Types
Kraken FIX offers two session types that use different TargetCompIDs and have different authentication requirements:| Market Data | Trading | |
|---|---|---|
| TargetCompID (56) | KRAKEN-MD | KRAKEN-TRD |
| Authentication required | No | Yes (API Key + Password) |
| Fields 553, 554, 5025 | Not required | Required |
| Purpose | Subscribe to order book, trades, OHLC | Place/cancel orders, account data |
Spot and Derivatives use separate SenderCompIDs. Your Derivatives SenderCompID will have a
DRV suffix. Both are provided by Kraken during onboarding.Fields
35=
AAlways set to
0 (None).Heartbeat interval in seconds. Recommended value:
60.Your FIX API Key. Create it in Kraken Pro settings with FIX as the key type.Condition: Trading session only
HMAC-SHA512 signature. See Password Generation below.Condition: Trading session only
Current timestamp in milliseconds since Unix epoch, as a string.Condition: Trading session only
Associates this connection with another connection (e.g. linking a trading session to a market data session).
If
Y, both sides reset their sequence numbers to 1. Use on initial connect or after a session reset. Default: N.Controls what happens to open orders if the session disconnects.Possible values:
0— Cancel all open orders placed during this session (default)1— Leave open orders in place after disconnect
Resets your ClOrdID sequence on re-logon. Use in emergencies only. Default:
N.Applies to xStocks trading only.
N— Orders and execution reports use SPV token quantities (default)Y— Orders and execution reports use underlying equity quantities (Kraken applies the multiplier automatically)
Password Generation
The password is computed as:\x01):
Nonce (tag 5025) and the value used in MessageInput must be identical. Generate nonce once and use it in both places.