You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modular Python library that provides an advanced event driven backtester and a set of high quality tools for quantitative finance. Integrated with various data vendors and brokers, supports Crypto, Stocks and Futures.
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:
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+.
Modular Python library that provides an advanced event driven backtester and a set of high quality tools for quantitative finance. Integrated with various data vendors and brokers, supports Crypto, Stocks and Futures.