Alpha optimizer library for quantitative finance research
Project description
AlphaBuilder-Optimizer
AlphaBuilder-Optimizer is an experimental Python package for building and testing optimization tools in trading and portfolio management.
It provides a clean API interface and serves as a foundation for research, development, and integration into modular trading systems.
Current Status
The project is in its early stages. The current version includes:
- A FastAPI backend for portfolio optimization.
- An equal-weighted strategy as the initial supported method.
- A framework for extending to more optimization approaches.
Planned Features
- Portfolio Optimization
- Classical methods: Markowitz, Black-Litterman, convex optimization.
- Metaheuristics
- Genetic algorithms, simulated annealing, swarm intelligence.
- Reinforcement Learning
- Adaptive and regime-aware optimization approaches.
Installation
You can install the package directly from PyPI:
pip install alphabuilder-optimizer
Quickstart Example
# Import
from alphabuilder_optimizer import OptimizerClient
# Initialize client
client = OptimizerClient(api_key="YOUR_API_KEY")
# Run optimization
result = client.optimize(
idempotency_key="ALPHABUILDER042",
assets=["asset_A", "asset_B", "asset_C", "asset_D", "asset_E"],
constraint="equal_weighted",
risk_free_rate=0.05,
expected_returns=[0.1, 0.12, 0.15, 0.23, 0.56],
covariance=[
[0.1, 0.02, 0.03, 0.04, 0.05],
[0.02, 0.08, 0.01, 0.06, 0.07],
[0.03, 0.01, 0.09, 0.02, 0.03],
[0.04, 0.06, 0.02, 0.11, 0.08],
[0.05, 0.07, 0.03, 0.08, 0.12]
])
print(result) # JSON/dict with optimized portfolio weights
# Retrieve stored items
res = client.get_items()
res
Documentation
Full Optimizing Documentation Docs
Read more about the Optimizer AlphaBuilder-Optimizer
Learn more about AlphaBuilder Project AlphaBuilder
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file alphabuilder_optimizer-0.0.1.3.tar.gz.
File metadata
- Download URL: alphabuilder_optimizer-0.0.1.3.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33f3384de9889c2e15b98480c6b08f9605b8a9bfbc48f2c5a63d37cdb92c7ada
|
|
| MD5 |
63531dc1c71a20a6bc6bfd7a0b5f0f7b
|
|
| BLAKE2b-256 |
a43cb805cb5140123913c86ceb352182a55e235fa36bb1d99ac3e66210bd0486
|
File details
Details for the file alphabuilder_optimizer-0.0.1.3-py3-none-any.whl.
File metadata
- Download URL: alphabuilder_optimizer-0.0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df294ca379b9c5b15dcca990072b0ed8eaa3cbbe058c1ef72bbcbb6fa4a23609
|
|
| MD5 |
5435857fadf9225949da3bb131d61619
|
|
| BLAKE2b-256 |
dc1deeffe5b1b416c60badeae7ccd1aa9ff5e637c849d5c2817b05e28117eb45
|