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.1700.tar.gz (28.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.1700-py3-none-any.whl (81.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qfinlib-2025.1228.1700.tar.gz
  • Upload date:
  • Size: 28.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.1700.tar.gz
Algorithm Hash digest
SHA256 c54e5bd0ddd0426eedfedc4abf8b0413d0545157b7b72ebd8389db19df73a174
MD5 44d6bda967294b7fa8a15442caaa4a84
BLAKE2b-256 716f333a5ea1a2ec639b73ded65ded5178f69e4be5511a86e8a80bdeb4a18a37

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qfinlib-2025.1228.1700-py3-none-any.whl
  • Upload date:
  • Size: 81.6 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.1700-py3-none-any.whl
Algorithm Hash digest
SHA256 3719371a4d857d7fbf26e0691e7fefa08411dd16477f68e953936e8efd57de9b
MD5 c2af2c042f29f1f36a7a94356410b251
BLAKE2b-256 3754b0d9ce166cf4f5b6d3b0e25916679e3262916dddd5ca7c30f669ca10b5bc

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