quantlibEasy Examples

Quantitative finance: derivatives pricing, risk management

Getting started with quantlib

Installation and basic usage of quantlib.

python
# Install: pip install QuantLib-Python
import quantlib

# Basic quantlib usage
print(f"Using quantlib")
# See documentation for detailed examples
Expected Output
# Expected output shown below
# (Run locally with: quantlib)

quantlib is a third-party package. Quantitative finance: derivatives pricing, risk management. Install with: pip install QuantLib-Python

Common quantlib operations

Frequently used features of quantlib.

python
# Install: pip install QuantLib-Python
import quantlib

# Common quantlib patterns
print(f"quantlib version: {quantlib.__version__}")

These are the most commonly used features of quantlib in everyday development.

Want to try these examples interactively?

Open Easy Playground