Skip to main content

A package for optimizing asset selection using CVXPY.

Project description

CoreFolio

corefolio is a Python package for optimizing asset selection using CVXPY. It allows users to define a universe of assets, apply constraints, and optimize the portfolio based on specified criteria.

Installation

To install the package, use the following command:

pip install corefolio

Requirements

  • Python >= 3.10
  • pandas
  • cvxpy >= 1.6.2
  • pytest

Usage

from corefolio.optimizer import Optimizer
from corefolio.universe import Universe
from corefolio.constraints import Constraints

# Define your universe and constraints
universe = Universe(data)
constraints = Constraints(max_assets=5)

# Create an optimizer instance
optimizer = Optimizer(universe, constraints, sense="maximize")

# Optimize the portfolio
selected_assets = optimizer.optimize()

print("Selected assets:", selected_assets)

License

This project is licensed under the MIT License.

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

corefolio-0.2.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

corefolio-0.2.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file corefolio-0.2.1.tar.gz.

File metadata

  • Download URL: corefolio-0.2.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for corefolio-0.2.1.tar.gz
Algorithm Hash digest
SHA256 bbdc226193c9faf0e133669580e4b87a36f7816fbec1955e84401e735eead2ba
MD5 3d32477c4a05ecf5de6da9bd66908aad
BLAKE2b-256 054033d5cbcfcfaa21d1ff2d40de70285940840457783be01d6c7d03ad1958f8

See more details on using hashes here.

File details

Details for the file corefolio-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: corefolio-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for corefolio-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 313ce5d686d0149f334ed691921bc702ba205fc6b7cde0b16be55f2843feb59e
MD5 28019ba3854ec37bbf745cc2afa569bc
BLAKE2b-256 f1ffc05f0e598cd82adaf007480817dbddbb70c3451a9ad71603fbd67749dfc3

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