TheDocumentation 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.
level3 channel includes a CRC32 checksum with each update. Validating it confirms your local book is correctly synchronised with the exchange, including the order sequence within each price level.
Checksum verification is optional. You can validate on every update or periodically depending on throughput requirements. The checksum is always calculated over the top 10 price levels regardless of subscription depth.
The level3 checksum logic is similar to the book feed — see the Book checksum (v2) guide. The key difference is that level3 iterates through individual orders within each price level, so it also verifies queue priority.
Maintaining the book
- Process all orders in a message before calculating the checksum.
- A price level with no remaining orders or quantity should be removed from your book.
- After each update, truncate your book to the subscribed depth. If a price level drops out of scope, all orders at the next available price level will be published to maintain the subscription depth.
Checksum calculation
Algorithm
Build the asks string
For each of the top 10 ask price levels, sorted by price low to high, iterate through each order in the price level:
- Remove
.fromlimit_price→"44939.5"→"449395" - Remove leading zeros →
"449395"→"449395" - Remove
.fromorder_qty→"4.52308393"→"452308393" - Remove leading zeros →
"452308393"→"452308393" - Append
limit_price + order_qtyto the asks string →"449395452308393"
Build the bids string
For each of the top 10 bid price levels, sorted by price high to low, iterate through each order in the price level and apply the same formatting, appending to the bids string.
Example
Input snapshot:1063832831