finance_datagen/lib.rs
1//! Pure-Rust core for finance-datagen.
2//!
3//! This crate is deliberately polars-free: every generator emits Apache
4//! Arrow `RecordBatch` values. The Python bindings hand those `RecordBatch`
5//! objects to Python via the Arrow C Data Interface (PyCapsule) and Python
6//! constructs the polars `DataFrame` on its side. This avoids the
7//! polars-Rust / polars-Python ABI mismatch.
8
9pub mod arrow_util;
10pub mod error;
11pub mod ohlc;
12pub mod rng;
13pub mod schema;
14
15pub mod garch;
16pub mod gbm;
17pub mod heston;
18
19pub use error::{DatagenError, DatagenResult};
20pub use garch::{GarchConfig, GarchGenerator};
21pub use gbm::{GbmConfig, GbmGenerator};
22pub use heston::{HestonConfig, HestonGenerator};
23pub use ohlc::{ohlc_from_close, OhlcConfig};