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 for live
8//!   klines, or pull historical klines over REST — both yield typed candles
9//!   compatible with the rest of the crate.
10
11#![cfg_attr(docsrs, feature(doc_cfg))]
12// `tokio_tungstenite::Error` is large by itself (~200 B). Boxing every Err
13// variant per clippy::result_large_err just shifts allocation pressure into
14// the hot path. We accept the size because errors are rare in this crate.
15#![allow(clippy::result_large_err)]
16
17pub mod aggregator;
18pub mod csv;
19pub mod error;
20pub mod resample;
21
22#[cfg(feature = "live-binance")]
23pub mod live;
24
25pub use error::{Error, Result};