Skip to main content

rebalanced

WIP: A Python framework for market simulation and investment strategy modeling, built from composable primitives.

Overview

rebalanced is a financial simulation framework built from composable primitives — reusable building blocks for modeling markets, portfolios, and trading strategies.

Planned Primitives

  • Finite State Machines (FSM): Event-driven state transitions ✓ (implemented)
  • Event Streams: Time-series data processing
  • Portfolio Models: Pluggable representations of holdings
  • Simulation Engine: Orchestration and lifecycle management
  • Analytics: Reporting and visualization

Use Cases

  • Strategy Backtesting: Simulate trading strategies against historical data
  • Portfolio Rebalancing: Model rebalancing rules as composable state machines
  • Market Simulation: Build agent-based models of market behavior
  • Risk Analysis: Stress-test strategies across scenarios

Installation

pip install rebalanced

Packages

This is a monorepo with the following packages:

Package Description
rebalanced Core namespace package
rebalanced-core TBD: Simulation orchestration engine (planned)
rebalanced-fsm Finite state machine primitives - event-driven state transitions
rebalanced-cli TBD: Command-line interface for the simulation engine (planned)
rebalanced-lens TBD: Analytics and reporting (planned)

Development

This project uses uv for dependency management:

# Install dependencies
uv sync

# Run tests
uv run pytest

# Run linters
uv run ruff check .

Status

🚧 This project is in early development. APIs are subject to change.

License

Apache 2.0 License - see LICENSE for details.

Metadata

Release files for rebalanced 0.1.0

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

Source distribution (sdist)

Source distribution for rebalanced 0.1.0
File Size Uploaded Provenance Actions
rebalanced-0.1.0.tar.gz 6.0 kB Without provenance Details for rebalanced-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 12.7 kB

Release files / rebalanced-0.1.0.tar.gz

Download URL rebalanced-0.1.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3ce0e481625e5700f717fed195de25cc6c1f425c5568dfee44219d5d82aeca03
BLAKE2b-256 checksum
How to use checksums
d53a89cd304f68d6273d172af02db4e1e40dc38c820b84b12f3c101c9bd35f7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / rebalanced-0.1.0-py3-none-any.whl

Download URL rebalanced-0.1.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cadf8638547e242369f95bc0a71feb2154b8e4c5dedf439f8b40c5bad07c8aca
BLAKE2b-256 checksum
How to use checksums
b00a3c0c222548d69aa76e04795179ea0fb78061fb0403104440091074392099
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for rebalanced 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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