moru-quant 0.1.0

Rust library for quantitative finance and derivatives valuation: option pricing, implied volatility, Greeks, yield curves, and finite-difference / Monte Carlo engines.
Documentation
  • Coverage
  • 100%
    35 out of 35 items documented6 out of 7 items with examples
  • Size
  • Source code size: 65.7 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 340.6 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • nanticj/moru-quant
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • nanticj

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.

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. 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

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.