Repository navigation
Release 0.2.0 of the optimizer workspace (library, ingestion daemon, shared database layer and the fund). It is not published to PyPI: install from the source tree with uv sync --all-packages --all-extras.
Upgrading from 0.1.0.
- Library users: the distribution is now
portopt-core(it wasportoptin 0.1.0;
the import nameoptimizeris unchanged, so uninstall the oldportoptbefore you
install it). It needs Python 3.12 or newer, pins exact dependency versions, and is
licensed under PolyForm Noncommercial 1.0.0 instead of BSD-3-Clause. Theoptimizer
console command andoptimizer.pipelineare gone (compose runs from the primitives;
build_portfolio_pipelinenow lives inoptimizer.pre_selection), and so are the HMM
and DMM moment blending and several other names the subpackages used to export.
Severaloptimizer.factorsconfigs validate at construction, andCPCVConfigpurges
and embargoes by default. The two BREAKING sections of the changelog list the main breaks: the
removed names, the packaging and dependency changes and some behaviour changes. They are
not complete. The configs and builders that are still exported also lost or renamed
fields, presets and parameters and changed some defaults, and most of those are not
itemised: for exampleMomentEstimationConfigtakesew_mu_half_lifeand
ew_cov_half_lifewhere it tookew_mu_alphaandew_cov_alpha,RiskBudgetingConfig
no longer hasrisk_measure,DistanceConfighasestimatorwhere it had
distance_type, andWalkForwardConfig.purged_sizedefaults to 5 where it was 0. Check
the signatures you call against the 0.1.0 source and run your code against this
release before you rely on it. - Docker users: dump the database first, because four migrations cannot be
downgraded (d1e2f3a4b5c6, which drops 17 tables, and three later ones,
a5ac0fa9b0ec,a6f1c8d3e2b7andb9c8d7e6f5a4) anda5ac0fa9b0ecdeletes rows
fromtrading_economics_indicatorsandtrading_economics_observations. Every
compose service now sits behind a profile, so a baredocker compose upstarts
nothing (use--profile ingestionor--profile fund). The scheduler reads its API
keys from.env,.env.scheduleror the./secrets/files, so a key exported only
in the shell no longer reaches it. The database (54320) and Adminer (18081) ports are
published on127.0.0.1only, so other hosts can no longer reach them.
docker-compose.ymlpins the project name tooptimizer, so a checkout under
another directory name needs the steps in the Fixed entry on that pin before it
upgrades.
The full list of changes is in the changelog.