Skip to main content

Overview

KrakenClient is the primary interface for streaming market data. It manages connections, orderbook state, and event distribution.

Creation

See Builder Configuration for all options.

Methods

Market Data

State

Events

events() can only be called once. It takes ownership of the receiver.

Lifecycle

Thread Safety

KrakenClient is Send + Sync. Safe to share across threads:
Reads are lock-free. Multiple threads can query simultaneously without blocking.

Full Example