Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alphabuilder_optimizer-0.0.1.3.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

alphabuilder_optimizer-0.0.1.3-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file alphabuilder_optimizer-0.0.1.3.tar.gz.

File metadata

File hashes

Hashes for alphabuilder_optimizer-0.0.1.3.tar.gz
Algorithm Hash digest
SHA256 33f3384de9889c2e15b98480c6b08f9605b8a9bfbc48f2c5a63d37cdb92c7ada
MD5 63531dc1c71a20a6bc6bfd7a0b5f0f7b
BLAKE2b-256 a43cb805cb5140123913c86ceb352182a55e235fa36bb1d99ac3e66210bd0486

See more details on using hashes here.

File details

Details for the file alphabuilder_optimizer-0.0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for alphabuilder_optimizer-0.0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 df294ca379b9c5b15dcca990072b0ed8eaa3cbbe058c1ef72bbcbb6fa4a23609
MD5 5435857fadf9225949da3bb131d61619
BLAKE2b-256 dc1deeffe5b1b416c60badeae7ccd1aa9ff5e637c849d5c2817b05e28117eb45

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