Skip to main content

wickra_data/
lib.rs

1//! `wickra-data`: offline and online data sources for the Wickra indicator engine.
2//!
3//! - [`csv`]: stream OHLCV bars out of CSV files without buffering the whole
4//!   history in memory.
5//! - [`aggregator`]: roll trade ticks up into candles of arbitrary timeframes.
6//! - [`resample`]: convert a stream of candles from one timeframe to a coarser one.
7//! - [`live`] (feature `live-binance`): connect to exchange websockets and yield
8//!   typed events compatible with the rest of the crate.
9
10#![cfg_attr(docsrs, feature(doc_cfg))]
11// `tokio_tungstenite::Error` is large by itself (~200 B). Boxing every Err
12// variant per clippy::result_large_err just shifts allocation pressure into
13// the hot path. We accept the size because errors are rare in this crate.
14#![allow(clippy::result_large_err)]
15
16pub mod aggregator;
17pub mod csv;
18pub mod error;
19pub mod resample;
20
21#[cfg(feature = "live-binance")]
22pub mod live;
23
24pub use error::{Error, Result};