Getting Started

Installation

From PyPI

pip install vade

From Source (Development)

Requires Rust toolchain (1.70+) and maturin:

git clone https://github.com//vade.git
cd vade
pip install maturin
maturin develop --release

Verify Installation

import vade
from vade import DiscountCurve
import datetime

# Build a simple discount curve
curve = DiscountCurve(
    {datetime.date(2024, 1, 1): 1.0, datetime.date(2025, 1, 1): 0.96},
)
df = curve.discount_factor(datetime.date(2024, 7, 1))
print(round(float(df), 6))  # prints a discount factor

If the above runs without errors, vade is correctly installed.

On this page