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

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-3.0.2.tar.gz (11.4 MB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for qf_lib-3.0.2.tar.gz
Algorithm Hash digest
SHA256 2429ec0160be0370b10915492ab33408a14837bd3771d1f6e5348b7289835f91
MD5 7c136f0024fb9883af008274fb00908d
BLAKE2b-256 31b80b0e50f621ab09c4a0ebf4b0f8e294a9e1d59334b9108f578ce645e49dbf

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for qf_lib-3.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 440422f7e7eec6d5ff2cad8696c0d5c7233c3c8fce7720f0dff0450cdfb2c12e
MD5 b7d9ba3eb06a9adac458a008568b69a0
BLAKE2b-256 b14024a424e5250835e20f1250c20ca7bfa7bbfb11076861e48def22c2bf15d5

See more details on using hashes here.

Supported by

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