1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Copyright 2026 Regit.io — Nicolas Koenig
// SPDX-License-Identifier: Apache-2.0
//! Zero-dependency Black-Scholes options pricing engine in pure Rust.
//!
//! Covers four European pricing models — Black-Scholes-Merton, Black-76,
//! Bachelier, and Displaced Diffusion — with all 17 analytic Greeks through
//! 3rd order and a multi-strategy implied volatility solver.
//!
//! Designed for auditability: every algorithm is hand-rolled from primary
//! paper sources with no external math dependencies. A regulator, quant
//! auditor, or new engineer can trace every number to a citable formula.
//!
//! # Models
//!
//! - [`models::black_scholes`] — Vanilla European, continuous dividend (Merton 1973)
//! - [`models::black76`] — Futures/forwards (Black 1976)
//! - [`models::bachelier`] — Normal model for rates near/below zero
//! - [`models::displaced`] — Shifted log-normal (Rubinstein 1983)
//!
//! # Architecture
//!
//! ```text
//! types/errors → math primitives (ncdf, npdf) → pricing models
//! → greeks (analytic, 17 total)
//! → implied volatility (solver chain)
//! ```
//!
//! Part of [Regit OS](https://www.regit.io) — the operating system for
//! investment products. From Luxembourg.
// ─── Re-exports for ergonomic top-level access ─────────────────────────────
pub use ;
pub use IvSolver;
pub use BachelierParams;
pub use Black76Params;
pub use DisplacedParams;
pub use ;