# moru-quant
Rust library for quantitative finance and derivatives valuation: option
pricing, implied volatility, Greeks, yield curves, and finite-difference /
Monte Carlo engines.
> **Status: pre-alpha.** Only the standard normal functions and
> generalized Black–Scholes–Merton prices exist; the API may change in any
> release.
*moru* is a family of Rust libraries built to be **correct, secure and
fast**. The name is Korean for *anvil*: the block that other tools are
forged on. Every moru library follows the same priorities, in order:
correctness and security, performance, minimal external dependencies.
Family home: [nanticj/moru](https://github.com/nanticj/moru).
## Principles
1. **Correctness and security.** Every pricer is checked against
independent reference values with a documented tolerance; numerical
methods state their accuracy and convergence order; no `unsafe` code.
2. **Performance.** Cache-friendly grids, no allocation in inner loops,
deterministic parallel Monte Carlo.
3. **Minimal external dependencies.** None, permanently: special functions,
linear algebra, random number generation and automatic differentiation
are implemented in the crate.
## Scope
- Black–Scholes–Merton, Black-76, generalized BSM; Greeks; implied volatility
- Volatility estimation and surfaces
- Calendars, business-day and day-count conventions, schedules
- Yield curve construction and bootstrapping
- GBM 1–3 asset FDM (ADI) and Monte Carlo engines: vanilla, forward, Asian,
barrier, digital, autocallable (step-down), cliquet, American, convertible
- Short-rate models (Hull–White 1F, G2++, CIR) and LMM, with calibration
## Development
Developed with AI assistance under the
[moru common rules](https://github.com/nanticj/moru/tree/develop/rules).
Every change, however it was produced, passes the same mechanical gates —
formatting, lints, tests, documentation, dependency allow-list, private-data
scan — and an independent review before it merges. Releases are approved by
the maintainer.
## License
Licensed under either of
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE))
- MIT license ([LICENSE-MIT](LICENSE-MIT))
at your option.
Unless you explicitly state otherwise, any contribution intentionally
submitted for inclusion in the work by you, as defined in the Apache-2.0
license, shall be dual licensed as above, without any additional terms or
conditions.