The WebSocket API v1 order book feed provides all of the market data needed to maintain a local copy of a Kraken order book.
For example, the order book feed for XBT/USD could be used to retrieve and maintain the order book for our Bitcoin/US Dollar currency pair, exactly as the order book is shown on our trading platform.
The order book feed provides an initial snapshot of the current order book, and then streams updates to the order book in real time, so an order book maintained via the order book feed will be up to date at all times.
Full details of the JSON format for the order book feed are available in our WebSocket API v1 documentation.