quarkfin/qf-lib
关于
模块化 Python 库,提供先进的事件驱动回测器和一套高质量的量化金融工具。支持接入各种数据供应商和经纪商,并支持加密货币、股票和期货。
商业与金融实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文QF-Lib
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'andDataframes. - 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
- Installation guide: https://qf-lib.readthedocs.io/en/latest/installation.html
- Configuration guide: https://qf-lib.readthedocs.io/en/latest/configuration.html
- API documentation: https://qf-lib.readthedocs.io/
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.
探索相关项目
加载中…