Skip to main content

Sistema de optimización MAT + Decision Resilience Engine (DRE)

Framework de investigación y ejecución para optimización cuantitativa resiliente:

  • MAT: backtest compuesto BTC/ETH (futuros USDT) con ventanas deslizantes, funding y optimización de reglas de señal.
  • DRE (MVP): orquestador con FSM, governance append-only, checkpoints/resume, API FastAPI, storage memoria/Redis y puente de medición a MAT.

CI Python 3.11+ License: MIT PyPI

Aviso legal: software experimental para investigación. El rendimiento pasado no garantiza resultados futuros.


Qué aporta este proyecto

  • Reproducibilidad: CI y tests activos, dataset sintético y contratos versionados.
  • Resiliencia de decisiones: flujo con estados, auditoría, colisión run_id/data_hash, checkpoints y reanudación.
  • Operabilidad real: API HTTP, almacenamiento Redis opcional y trazas append-only en SQLite.
  • Extensibilidad: separación clara entre simulador MAT, skills DRE y contratos ICD.

Instalación

Uso rápido desde PyPI (MAT)

pip install sistema-optimizacion-mat

Entorno completo del repo (MAT + DRE)

pip install -r requirements.txt -r requirements-dev.txt

Inicio rápido MAT

python scripts/bootstrap_synthetic_candles_db.py
pytest tests/ -q
python compound_optimize_runner.py --db data/synthetic_signal_tune.db --holdout-frac 0.2

Salida: JSON en stdout (por ejemplo p_win_terminal, p_ruin, walk_forward).

Optimización de señales:

python scripts/optimize_signal_grid.py --db data/synthetic_signal_tune.db --preset smoke --skip-pairs --holdout-frac 0.2

API DRE (MVP)

Levantar servicio:

python scripts/run_dre_api.py --db data/dre_governance.sqlite

Endpoints:

  • GET /dre/health
  • POST /dre/simulate
  • POST /dre/resume

Ejemplo mínimo:

curl -X POST "http://127.0.0.1:8000/dre/simulate" \
  -H "Content-Type: application/json" \
  -d '{
    "run_id": "opt_20260506_000100_v5.0",
    "data_hash": "sha256:demo",
    "rng_seed": 7,
    "variant": "standard"
  }'

Arquitectura y documentos


Estado actual

  • Tests: pytest tests/ -q (incluye test_dre_*).
  • Calidad: ruff check ..
  • main con pipeline estable y documentación lista para comité técnico.

Licencia y seguridad

Metadata

Release files for sistema-optimizacion-mat 0.2.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 sistema-optimizacion-mat 0.2.0
File Size Uploaded
sistema_optimizacion_mat-0.2.0.tar.gz 21.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sistema-optimizacion-mat 0.2.0
File Interpreter ABI Platform
sistema_optimizacion_mat-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 39.4 kB

Release files / sistema_optimizacion_mat-0.2.0.tar.gz

Download URL sistema_optimizacion_mat-0.2.0.tar.gz
Size 21.9 kB
Tags Source
SHA-256 checksum
How to use checksums
27608c1e4c2cfb326b07d71d4d9c4265da5bde3c1b0da1777181e4db070f4a6b
BLAKE2b-256 checksum
How to use checksums
a1e06a4af19f9c2659ddae71066a7c1660b6931d9e0eb0e9ea36b965c73d55a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 6, 2026.

Transparency log

Release files / sistema_optimizacion_mat-0.2.0-py3-none-any.whl

Download URL sistema_optimizacion_mat-0.2.0-py3-none-any.whl
Size 17.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
54015ed66e9129ab6efb02a514f7ce56166eeb1d2d53013b3c4ab9ef69188128
BLAKE2b-256 checksum
How to use checksums
83d88aee4ebf2d144ae5469ce0e22481b168e9d73a9929a0149690904586e0e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.4

2 release files

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