Skip to main content

Quantitative Finance Library

Project description

QF-Lib

PyPI Downloads GitHub PyPI - Python Version Codecov Documentation Status CI PyPI - Format PyPI - Status

What is QF-lib?

QF-Lib is a Python library that provides high quality tools for quantitative finance. A large part of the project is dedicated to backtesting investment strategies. The Backtester uses an event-driven architecture and simulates events such as daily market opening or closing. It is designed to test and evaluate any custom investment strategy.

Main features include:

  • Flexible data sourcing - the project supports the possibility of an easy selection of the data source. Currently provides financial data from Bloomberg, Quandl, Haver Analytics or Portara. To check if there are any additional dependencies necessary for any of these data providers please visit the installation guide.
  • Tools to prevent look-ahead bias in the backtesting environment.
  • Adapted data containers, which extend the functionality of pandas Series' and Dataframes.
  • Summary generation - all performed studies can be summarized with a practical and informative document explaining the results. Several document templates are available in the project.
  • Simple adjustment of existing settings and creation of new functionalities.

Installation

You can install qf-lib using the pip command:

pip install qf-lib

Alternatively, to install the library from sources, you can download the project and in the qf_lib directory (same one where you found this file after cloning the repository) execute the following command:

python setup.py install

Prerequisites

The library uses WeasyPrint to export documents to PDF. WeasyPrint requires additional dependencies, check the platform-specific instructions for Linux, macOS and Windows installation.

In order to facilitate the GTK3+ installation process for Windows you can use following installers. Download and run the latest gtk3-runtime-x.x.x-x-x-x-ts-win64.exe file to install the GTK3+.

Documentation

How to Contribute

We welcome all contributions - bug reports, fixes, documentation improvements, new features, or ideas! Here’s how you can get involved:

  • Find an Issue: Check out the GitHub Issues tab. Look for labels like documentation or good first issue to get started.
  • Triage Issues: Help by reproducing bugs, asking for missing details (e.g., version numbers, steps to reproduce), or clarifying discussions.
  • Share Your Ideas: If you spot something missing or have an improvement in mind, open an issue or submit a pull request.
  • Join the Discussion: Have questions or want to collaborate? Join our Discord community.

Code of Conduct: All participants are expected to follow our Code of Conduct.

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

qf_lib-4.0.5.tar.gz (11.4 MB view details)

Uploaded Source

Built Distribution

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

qf_lib-4.0.5-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file qf_lib-4.0.5.tar.gz.

File metadata

  • Download URL: qf_lib-4.0.5.tar.gz
  • Upload date:
  • Size: 11.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for qf_lib-4.0.5.tar.gz
Algorithm Hash digest
SHA256 3ecbac9d3549de1857b7d4137646ace76cf099ae20244374cd21062105e161af
MD5 c74f1029a8ae632a15a125713166eda1
BLAKE2b-256 e3e275c554b7f8dbc6c1c9e90866f8998f361ec61e28e967c2fa973a3bac7926

See more details on using hashes here.

File details

Details for the file qf_lib-4.0.5-py3-none-any.whl.

File metadata

  • Download URL: qf_lib-4.0.5-py3-none-any.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for qf_lib-4.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ceea58f32259f27ae23d99d5be96c0d53e4cb6dc29c5f356166604b4dd76b8dd
MD5 9b93d11bc984c58e42e74d599fdf6be0
BLAKE2b-256 d8af8de0f2522375ed3acd9b4db20a2cb24d8bc4dd760dec25d35488f9da9517

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