Skip to main content

⚠️ Archived repository.

Active development has moved to Oryon.

Quantreo is no longer maintained and has been archived.

The project now continues under Oryon, a complete rebuild designed for high-performance quantitative research and live trading workflows.

➡️ Please use Oryon for all new work.

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.

Release files for quantreo 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quantreo 0.1.1
File Size Uploaded
quantreo-0.1.1.tar.gz 5.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for quantreo 0.1.1
File Interpreter ABI Platform
quantreo-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 MB

Release files / quantreo-0.1.1.tar.gz

Download URL quantreo-0.1.1.tar.gz
Size 5.2 MB
Tags Source
SHA-256 checksum
How to use checksums
057a5683830873e1fe97f27898ab078a86a19c8b815e434e4648b6b996b833c6
BLAKE2b-256 checksum
How to use checksums
bcfe1647c3e054d1d15934bd563f8302c6406170d1c43f48343f8bb7b7047b1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.1

Release files / quantreo-0.1.1-py3-none-any.whl

Download URL quantreo-0.1.1-py3-none-any.whl
Size 5.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
69714d2f21defc5663d555dba6070fd0029cc930bd0ce86a199315f7a1ad87d6
BLAKE2b-256 checksum
How to use checksums
5291e6974eaf281102becaf649cae9a71b998446d5391faf86b7fed03fb77cd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.1

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.30

2 release files

0.0.28

2 release files

0.0.26

2 release files

0.0.15

1 release file

0.0.13

2 release files

0.0.9

2 release files

0.0.7

2 release files

0.0.5

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page