atelier_data 0.0.15

Data Artifacts and I/O for the atelier-rs engine
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Kraken WebSocket v2 event types.
//!
//! For Kraken spot, the public `book` and `trade` channels are available
//! without authentication.  Liquidations, funding rates, and open interest
//! are only available on Kraken Futures (separate endpoint + auth model).

use crate::sources::kraken::responses::*;

/// Events produced by [`KrakenDecoder`](crate::sources::kraken::decoder::KrakenDecoder) from the WebSocket v2 feed.
#[derive(Debug, Clone)]
pub enum KrakenWssEvent {
    /// `book` channel — orderbook snapshot or incremental update.
    OrderbookData(KrakenBookResponse),
    /// `trade` channel — public trade executions.
    TradeData(KrakenTradeData),
}