Skip to main content

Python library for quantitative trading

Project description

Quantreo LIB logo

Welcome to Quantreo

A faster way to build quantitative features, targets, and alternative bars in Python. Powered by Numba.

PyPI Python versions Downloads Documentation Status License Last Commit


What is Quantreo?

Quantreo is a Python toolbox that helps you build quantitative features, targets, and alternative bars, faster and more efficiently.

It’s designed for quantitative researchers, data scientists, and traders who want to transform raw market data into ML-ready datasets in just a few lines of code. From volatility estimators to event-based bars and regime indicators, Quantreo provides a high-performance foundation for systematic trading research.

1. Why choose Quantreo?

  • High-performance: Built with Numba and vectorization for ultra-fast computations
  • Research-oriented: Designed for feature and target engineering in quant finance
  • Modular & Pythonic: Clean, intuitive API compatible with pandas & scikit-learn
  • Alternative bars included: Time, tick, volume & run bars
  • Robust by design: Functions implemented to avoid data leakage and look-ahead bias.

2. Main modules

  • quantreo.features_engineering: Volatility, trend, entropy, and statistical indicators
  • quantreo.target_engineering: triple barrier, event-based targets and regime classification
  • quantreo.alternative_bars: Time, tick, volume, and run bars
  • quantreo.datasets: Synthetic or real OHLCV generators for fast testing

Install Quantreo

pip install quantreo

If the installation completes successfully, you're all set to start using Quantreo. If you encounter any issues, please refer to our documentation for troubleshooting tips.

Quantreo provides a collection of ready-to-use tools for feature engineering, target construction, and alternative bar generation, all optimized for performance and ease of use.
Jump to the Quick start section below to see how it works in practice.


Quickstart

Quantreo makes it easy to test, explore, and create new quantitative features and targets in just a few lines.

1. Generate synthetic OHLCV data

Use the built-in dataset generator to quickly get a realistic sample of market data.
Perfect for experimenting or creating your own custom functions.

from quantreo.datasets import load_generated_ohlcv

df = load_generated_ohlcv()
df.head()

2. Use existing functions: example with volatility

Compute a ready-to-use volatility feature in just two lines.

import quantreo.features_engineering as fe

df["parkinson_vol"] = fe.volatility.parkinson_volatility(df=df, high_col="high", low_col="low", window_size=30)

Then, you can easily visualize your computed feature to check its behavior over time:

Parkinson Volatility Feature example

3. Give me more!

Want to go further? Here are a few examples of what you can build with Quantreo:

See all tutorials here → Quantreo for Beginners


Resources


Cite Quantreo

If you use Quantreo in your research or project, please consider citing it as:

Inglese, L. (2025). Quantreo: A Python library for quantitative feature and target engineering.
Available at: https://github.com/Quantreo/quantreo


License

MIT © Lucas Inglese, 2025

Feel free to reach out at lucas@quantreo.com.

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

quantreo-0.1.0.tar.gz (5.2 MB view details)

Uploaded Source

Built Distribution

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

quantreo-0.1.0-py3-none-any.whl (5.7 MB view details)

Uploaded Python 3

File details

Details for the file quantreo-0.1.0.tar.gz.

File metadata

  • Download URL: quantreo-0.1.0.tar.gz
  • Upload date:
  • Size: 5.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for quantreo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6783b03da47f740e3ed068937f65580ab5507304de6c5b9cbd3784f2caaecabf
MD5 270587e17f3b19e5b1fd3baef85455b8
BLAKE2b-256 0450c53f2adae0cedeffb318a3e61375803b45e29087b8d81fe1a90171b3bfe9

See more details on using hashes here.

File details

Details for the file quantreo-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: quantreo-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for quantreo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af64a65e25a1e21d6df83eb0eaacaa39cd7717c26e7a57b9e83c3f50dab6e12c
MD5 6afc29f4731a04442bba9f0dfd843f86
BLAKE2b-256 875dea1d8bb4e10923186cf119f9197f5dbbae78627140d7b94f68b0151d5c66

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