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.1228.1539.tar.gz (20.3 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.1228.1539-py3-none-any.whl (69.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qfinlib-2025.1228.1539.tar.gz
  • Upload date:
  • Size: 20.3 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.1228.1539.tar.gz
Algorithm Hash digest
SHA256 76ff68a53fdf0f6403ad258965d90ee4658afd4dd4ade92a633ef98abbf5495b
MD5 5753b9bbb9707b726d1b265fc61e7547
BLAKE2b-256 a156c3aa212267228fd44c3b3643f84027370d8a7a17e18b61f00724ee1ee31b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qfinlib-2025.1228.1539-py3-none-any.whl
  • Upload date:
  • Size: 69.7 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.1228.1539-py3-none-any.whl
Algorithm Hash digest
SHA256 90248fc127d6dc2900589857988a9b2ecc6c94ae1e613d828e218a82f3239b84
MD5 b52baf6b8b574c9f42ff114dc15f7c56
BLAKE2b-256 43a691dbe76a7d5ea5ae17cc852d397a2d718cb474fc9bcdfa31073684c464ec

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