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()

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

# 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.1.0.tar.gz (4.1 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.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for corefolio-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5a0d5069f56c90e23ddacf6dbab93b2bc6367874408e29b5fce61285f5569a0c
MD5 3fa0ce43ead86e06ac38b086065366c5
BLAKE2b-256 9a43a52cba3233e06bf7d37bd564e785e2446305bf25c663d86d0297d976e538

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for corefolio-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cbf9761ed3731f8d1886ebae8b37a4e967c97ef52e149b58c027ac987f4b9417
MD5 4d51058b941abc52a23e0728c0a388d1
BLAKE2b-256 77eaf9a5a84f7f800cd1b85a9723a46e03748bd6a4b8a3adf59998b747f8f7a2

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