Skip to main content

A comprehensive quantitative finance library

Project description

qfinlib

A comprehensive quantitative finance library for Python.

Disclaimer

This repository contains personal, educational research only. It is not related to any professional role, employer, or investment activity. All material is based on public information.

Overview

qfinlib provides a complete toolkit for quantitative finance, including:

  • Date handling: Serial dates, tenors, schedules, holiday calendars, day count fractions
  • Mathematical utilities: Interpolation, solvers, statistics, auto-differentiation
  • Market data: Curves, FX, rates, volatility, credit, inflation, bonds
  • Financial instruments: Swaps, bonds, FRA, futures, options, CDS, FX forwards, deposits, ZCIS
  • Valuation: Pricing engines for all instrument types
  • Risk analytics: PV, DV01, gamma, theta, carry/roll, scenario analysis
  • Calibration: Curve and volatility model calibration
  • Models: Interest rate models (LGM, Hull-White)

Installation

pip install qfinlib

Quick Start

import qfinlib as qf

# Example usage coming soon

Documentation

See the docs/ directory for detailed documentation and tutorials.

Development

See CONTRIBUTING.md for development guidelines.

CI/CD

This project uses GitHub Actions for continuous integration and deployment:

  • Tests run automatically on pull requests
  • Package is automatically published to PyPI when merged to main

See .github/CI_SETUP.md for CI/CD setup instructions.

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qfinlib-2025.1224.1130.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qfinlib-2025.1224.1130-py3-none-any.whl (62.8 kB view details)

Uploaded Python 3

File details

Details for the file qfinlib-2025.1224.1130.tar.gz.

File metadata

  • Download URL: qfinlib-2025.1224.1130.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.11.14 Linux/6.11.0-1018-azure

File hashes

Hashes for qfinlib-2025.1224.1130.tar.gz
Algorithm Hash digest
SHA256 98291792503d9d3150cf295201c5a87bd482b4d6a90fd7b125c0477762019480
MD5 e3d98a32d5d4b27b1dfdfd7cc4808b0a
BLAKE2b-256 3d66daf13a6653abab78d68e303f4610efc83e2f3aa8191c4160e12b43a10d15

See more details on using hashes here.

File details

Details for the file qfinlib-2025.1224.1130-py3-none-any.whl.

File metadata

  • Download URL: qfinlib-2025.1224.1130-py3-none-any.whl
  • Upload date:
  • Size: 62.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.11.14 Linux/6.11.0-1018-azure

File hashes

Hashes for qfinlib-2025.1224.1130-py3-none-any.whl
Algorithm Hash digest
SHA256 4d71051a5463e38ad5abc26ae48811ea78746c66213a0ad0e34dec448a87abc3
MD5 c79af117fe502a27314b7b8b3904e274
BLAKE2b-256 c8c6c29c39d92b3d2ed921496feb0e37ad5d2274c0966f9860e541c2671a6fd6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page