py-beacon-kit 0.9.0__tar.gz → 0.9.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/CHANGELOG.md +23 -1
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/PKG-INFO +2 -1
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/README.md +1 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/__init__.py +1 -1
- py_beacon_kit-0.9.2/src/beacon/analysis/comparison.py +244 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/metrics.py +14 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/catalogue.py +2 -0
- py_beacon_kit-0.9.2/src/beacon/data/reference_as_of.py +147 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/expressions/catalogue.py +24 -1
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/backtest_options.py +35 -1
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/backtest_settings.py +8 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/backtests.py +25 -17
- py_beacon_kit-0.9.2/src/beacon/server/comparisons.py +78 -0
- py_beacon_kit-0.9.2/src/beacon/server/holding_reference.py +141 -0
- py_beacon_kit-0.9.2/src/beacon/server/periods.py +64 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/routers/indices.py +28 -8
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/routers/optimise.py +35 -7
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/routers/strategy_runs.py +128 -14
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/schemas.py +185 -4
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_api_contract.py +13 -4
- py_beacon_kit-0.9.2/tests/test_comparison.py +129 -0
- py_beacon_kit-0.9.2/tests/test_reference_as_of.py +112 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_backtest.py +7 -3
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_backtest_settings.py +26 -0
- py_beacon_kit-0.9.2/tests/test_server_comparisons.py +205 -0
- py_beacon_kit-0.9.2/tests/test_server_holding_reference.py +238 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_optimised_indices.py +2 -1
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_strategy_runs.py +70 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/.gitignore +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/LICENSE.txt +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/examples/01_index_and_backtest.ipynb +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/examples/02_backtest_analysis.ipynb +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/examples/03_index_futures.ipynb +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/examples/04_optimised_index.ipynb +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/examples/05_optimised_backtest.ipynb +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/examples/README.md +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/examples/data/templates/equities_corp_actions_data.xlsx +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/examples/data/templates/equities_fundamental_data.xlsx +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/examples/data/templates/equities_market_data.xlsx +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/examples/data/templates/equities_reference_data.xlsx +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/examples/data/templates/fx_rates_data.xlsx +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/pyproject.toml +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/_optional.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/analysis/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/analysis/attribution.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/analysis/concentration.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/analysis/etf/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/analysis/etf/analytics.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/analysis/liquidity.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/analysis/relative.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/analysis/risk.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/asset/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/asset/base.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/asset/bond.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/asset/commodity.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/asset/equity.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/asset/view.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/assumptions.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/accounting.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/asset_view.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/books.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/capacity.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/class_benchmark.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/costs.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/dealing.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/dividends.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/engine.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/etf.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/execution.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/flows.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/futures.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/hedging.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/implementation.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/limits.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/listings.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/main.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/presets.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/pricing.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/redistribution.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/result.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/rules.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/screens.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/settings.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/share_classes.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/swap.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/vehicle.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/backtest/withholding.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/changelog.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/data/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/data/adjustment.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/data/base.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/data/corporate_actions.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/data/features.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/data/fetcher.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/data/free_float.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/data/fx.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/data/identifiers.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/data/importing.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/data/ingest.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/data/kinds.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/data/layout.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/data/loader.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/data/postgres.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/data/prices.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/data/session.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/data/store.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/derivatives/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/derivatives/base.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/derivatives/curves.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/derivatives/forwards.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/derivatives/futures.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/derivatives/pricing.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/derivatives/swaps.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/derivatives/term_structure.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/environment/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/environment/config.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/exceptions.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/expressions/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/expressions/core.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/expressions/namespaces.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/expressions/resolve.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/expressions/stubs.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/expressions/validation.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/fund/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/fund/fund.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/index/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/index/asset_view.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/index/cache.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/index/calculation/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/index/calculation/calculator.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/index/calculation/corporate_actions.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/index/calculation/deletions.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/index/calculation/market_values.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/index/calculation/price_gaps.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/index/calculation/selection.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/index/calculation/total_return.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/index/capping.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/index/chaining.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/index/constructor.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/index/context.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/index/derived.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/index/expression_rules.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/index/feature_rules.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/index/methodology.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/index/requirements.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/index/result.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/index/schedule.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/optimise/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/optimise/config.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/optimise/constraints.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/optimise/frontier.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/optimise/result.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/optimise/solver.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/accessors.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/analysis_charts.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/arrange.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/base.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/charts/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/charts/bars.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/charts/base.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/charts/data.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/charts/grid.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/charts/heatmap.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/charts/lines.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/charts/points.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/charts/table.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/colormaps.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/colours.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/comparison.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/dateticks.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/design.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/fitting.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/fonts/InterTight-Light.ttf +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/fonts/InterTight-LightItalic.ttf +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/fonts/InterTight-Regular.ttf +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/fonts/OFL-InterTight.txt +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/fonts/OFL-SourceSerif4.txt +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/fonts/SourceSerif4-Italic350.ttf +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/frame.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/gridding.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/groups.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/interactive/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/interactive/axes.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/interactive/baseline.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/interactive/figure.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/interactive/frame.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/interactive/html.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/interactive/popup.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/interactive/readout.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/interactive/spines.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/interactive/traces.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/interactive/units.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/layout.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/legend.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/mark.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/marks.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/metrics.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/notes.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/paint.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/panels.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/style.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/tables/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/tables/css.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/tables/draw.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/tables/fonts.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/tables/geometry.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/tables/html.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/tables/model.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/tables/paint.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/tables/script.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/tables/sizes.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/themes.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/ticks.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/plot/webfonts.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/portfolio/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/portfolio/asset_view.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/portfolio/base.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/portfolio/cash_flows.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/portfolio/history.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/portfolio/reporting.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/py.typed +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/report/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/report/blocks.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/report/pdf.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/risk/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/risk/contribution.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/risk/covariance.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/risk/factors.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/risk/model.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/__main__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/active_data.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/app.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/benchmarks.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/config.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/constraints.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/data_stores.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/definitions.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/derivative_records.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/derivatives.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/documents.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/errors.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/index_level.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/jobs.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/market_caps.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/methods.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/optimisation.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/preview.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/reference.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/reports.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/risk.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/routers/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/routers/backtest.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/routers/coverage.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/routers/data.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/routers/derivatives.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/routers/importing.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/routers/jobs.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/routers/refresh.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/routers/reports.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/routers/risk.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/routers/stores.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/routers/strategies.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/routers/synthetic.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/routers/universes.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/routers/watchlists.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/runs.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/security.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/serialisation.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/share_class_results.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/share_class_settings.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/store.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/store_schemas.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/strategies.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/strategy_runs.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/strategy_schemas.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/types.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/views.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/server/weights.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/sources.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/strategy/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/strategy/active.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/strategy/allocations.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/strategy/base.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/strategy/constraints.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/strategy/constructions.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/strategy/futures.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/strategy/signals.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/strategy/synthetic.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/strategy/tracking.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/synthetic/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/synthetic/__main__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/synthetic/dataset.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/synthetic/extend.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/synthetic/features.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/synthetic/fx.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/synthetic/listings.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/synthetic/prices.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/synthetic/profiles.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/synthetic/regimes.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/synthetic/regions.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/synthetic/returns.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/synthetic/state.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/synthetic/universe.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/testing/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/testing/dataset.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/testing/weights.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/tokens/__init__.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/tokens/colors.json +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/src/beacon/universe.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_annual_returns_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_annual_returns_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_area_filled_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_area_filled_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_area_stacked_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_area_stacked_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_bar_capped_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_bar_capped_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_blended_both_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_blended_both_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_boxed_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_boxed_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_column_grouped_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_column_grouped_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_column_signed_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_column_signed_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_combo_daily_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_combo_daily_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_compare_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_compare_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_constituents_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_constituents_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_contributions_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_contributions_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_correlation_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_correlation_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_exposures_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_exposures_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_frontier_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_frontier_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_grid_one_by_three_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_grid_one_by_three_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_grid_spanning_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_grid_spanning_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_grid_two_by_two_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_grid_two_by_two_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_group_and_row_boxes_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_group_and_row_boxes_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_heatmap_blended_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_heatmap_blended_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_heatmap_correlation_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_heatmap_correlation_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_heatmap_monthly_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_heatmap_monthly_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_histogram_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_histogram_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_level_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_level_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_line_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_line_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_line_periods_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_line_periods_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_line_secondary_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_line_secondary_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_lines_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_lines_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_one_column_without_values_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_one_column_without_values_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_performance_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_performance_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_plain_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_plain_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_row_group_headings_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_row_group_headings_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_scatter_fitted_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_scatter_fitted_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_scatter_origin_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_scatter_origin_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_squares_faded_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_squares_faded_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_stripes_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_stripes_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_weights_dark.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/baseline/test_weights_light.png +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/conftest.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/docstyle.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_adjustment.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_asset.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_asset_view.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_attribution.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_backtest_capacity.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_backtest_dealing.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_backtest_dividends.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_backtest_engine.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_backtest_engine_integration.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_backtest_etf.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_backtest_execution.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_backtest_fills.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_backtest_flows.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_backtest_hedged_classes.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_backtest_main.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_backtest_modifier.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_backtest_pricing.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_backtest_result.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_backtest_share_classes.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_backtest_stages.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_backtest_withholding.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_benchmark.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_book_currency.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_canonical_dataset_integration.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_capping.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_catalogue.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_chaining.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_changelog.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_chart_images.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_class_benchmark.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_concentration.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_constraint_catalogue.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_corporate_action_kind.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_corporate_actions.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_coverage_fields.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_currency_conversion.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_daily_weights.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_data_fetcher.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_data_import.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_data_kinds.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_data_store.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_data_tables.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_derivatives_base.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_derivatives_curves.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_derivatives_etf_future.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_derivatives_futures.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_derivatives_pricing.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_derivatives_swaps.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_derived_index.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_docs_examples.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_docs_style.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_effective_lag.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_examples.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_expression_namespaces.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_expression_rules.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_expression_schema.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_expression_validation.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_expressions.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_factors.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_feature_rules.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_features.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_free_float_backfill.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_frontier.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_fund_record.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_fx_data.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_fx_pairs.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_fx_routes.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_identifier_search.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_index_asset_view.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_index_batch_reads.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_index_cache.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_index_calculator.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_index_calculator_integration.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_index_currency.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_index_definition.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_index_eligibility.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_index_result.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_index_schedule.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_index_selection.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_index_weighting.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_ingest.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_integration.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_job_persistence.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_look_ahead.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_modelling_assumptions.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_optimise.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_optional_dependencies.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_plot.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_plot_charts.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_plot_design.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_plot_frame.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_plot_grid.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_plot_heatmap.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_plot_images.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_plot_interactive.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_plot_layout.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_plot_table.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_portfolio.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_portfolio_asset_view.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_postgres_store.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_properties.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_read_volume.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_readme.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_reference_currency.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_reference_dimensions.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_reference_profile.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_report.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_reporting.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_requirements.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_risk_contribution.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_risk_model.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_cors.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_data_router.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_data_stores.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_derivative_records.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_derivatives.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_document_faults.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_features.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_import.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_index_level.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_indices.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_jobs.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_listing_discovery.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_optimise.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_preview.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_preview_caps.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_preview_document.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_preview_optimised.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_reference_batch.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_refresh.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_reports.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_risk.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_share_classes.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_store.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_strategies.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_synthetic.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_universes.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_views.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_server_weights_rows.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_session_agreement.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_spec_conformance.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_splits.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_stale_prices.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_strategy_active.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_strategy_constructions.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_strategy_futures.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_strategy_synthetic.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_strategy_tracking.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_survivorship.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_synthetic.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_synthetic_extend.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_synthetic_features.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_table_images.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_testing_dataset.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_tokens.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_total_return.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_universe_batch_reads.py +0 -0
- {py_beacon_kit-0.9.0 → py_beacon_kit-0.9.2}/tests/test_universe_filters.py +0 -0
|
@@ -8,6 +8,26 @@ Before 1.0, a breaking change raises the middle number, as in 0.1 to 0.2.
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [0.9.2] - 2026-10-19
|
|
12
|
+
|
|
13
|
+
Every figure a run shows comes from the engine: a run compared with its index and its benchmark, its figures by year, quarter and month, and each holding's reference columns as they stood on the row's date.
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- A run's `comparisons` compare it with its index and its benchmark: each comparator's level and own figures over the days both have (total and annualised return, volatility, Sharpe ratio, maximum drawdown and monthly hit rate) and the run's figures against it (relative and annualised relative return, tracking error, information ratio, correlation, beta and the share of months it beat it), for every kind of strategy. The run's metrics add `hit_rate_monthly`. `beacon.analysis.comparison` computes them in Python.
|
|
18
|
+
- `GET /strategies/{id}/periods?frequency=annual|quarterly|monthly` gives a run's figures in each calendar year, quarter or month, and against its index and its benchmark, each period from the previous period's close so they compound to the whole run.
|
|
19
|
+
- Reference columns on every row that names a holding, as they stood on the row's date: the weights view, each rebalance of a run with its unfilled orders and price gaps, attribution, an optimisation run's rows and frontier, and a constituent preview. `reference_fields` chooses the columns; without it a row carries the name, asset class, sector and country. A missing `ASSET_CLASS` answers `Equity`, as the engine reads it. `GET /optimise/runs/{id}` serves a run's rows, and `GET /data/fields` gives each field a `label`. `beacon.data.reference_as_of.ReferenceAsOf` answers many names on many dates from one read.
|
|
20
|
+
|
|
21
|
+
## [0.9.1] - 2026-10-18
|
|
22
|
+
|
|
23
|
+
For a backtest form and its runs: a strategy's latest run result by strategy, every setting a backtest request takes described in the options, and a run's settings complete enough to start a new backtest from.
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
|
|
27
|
+
- `GET /strategies/{id}/result` gives a strategy's latest run payload, every series and record in it, without the job's id, and answers 404 until the strategy has a run.
|
|
28
|
+
- `GET /backtest/options` describes the run's own settings in `run_settings`: `start` and `end` (a new `date` field type), `initial_capital`, `transaction_cost_bps`, `currency`, `dividends` and `benchmark`, with their defaults, units and choices. A request always took them, but the options never said so, so a form built from them could not set the dates, capital or cost.
|
|
29
|
+
- A run's resolved `settings` carry its `start` and `end` (the dates it ran over, defaults filled in), `initial_capital`, `transaction_cost_bps` and `benchmark`, so a new backtest can start from a run's settings.
|
|
30
|
+
|
|
11
31
|
## [0.9.0] - 2026-10-16
|
|
12
32
|
|
|
13
33
|
Strategies you save and backtest: a stored strategy holds what a backtest holds and how it trades, and every backtest runs one, keeping its runs apart from any other strategy's on the same index. An index can be calculated on its own, with no backtest. Share classes, synthetic replication and futures reach the API, and a hedged share class is measured against the index hedged the same way. **Breaking** for API clients: backtests and their results moved from `/beacon/{index_id}/...` to `/strategies/{id}/...`, and runs saved before this release are no longer served.
|
|
@@ -331,7 +351,9 @@ The first release.
|
|
|
331
351
|
- An index or backtest never uses a price, rate or free float dated after the day it is working on.
|
|
332
352
|
- Requires Python 3.11 or later.
|
|
333
353
|
|
|
334
|
-
[Unreleased]: https://github.com/karanbh01/py-beacon/compare/v0.9.
|
|
354
|
+
[Unreleased]: https://github.com/karanbh01/py-beacon/compare/v0.9.2...HEAD
|
|
355
|
+
[0.9.2]: https://github.com/karanbh01/py-beacon/compare/v0.9.1...v0.9.2
|
|
356
|
+
[0.9.1]: https://github.com/karanbh01/py-beacon/compare/v0.9.0...v0.9.1
|
|
335
357
|
[0.9.0]: https://github.com/karanbh01/py-beacon/compare/v0.8.1...v0.9.0
|
|
336
358
|
[0.8.1]: https://github.com/karanbh01/py-beacon/compare/v0.8.0...v0.8.1
|
|
337
359
|
[0.8.0]: https://github.com/karanbh01/py-beacon/compare/v0.7.0...v0.8.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: py-beacon-kit
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.2
|
|
4
4
|
Summary: End-to-end tool kit for index, ETF & Delta-1 derivatives development
|
|
5
5
|
Project-URL: Homepage, https://pybeacon.dev
|
|
6
6
|
Project-URL: Documentation, https://pybeacon.dev/library/
|
|
@@ -207,6 +207,7 @@ pd.DataFrame({"Portfolio": result.summary()}).round(4)
|
|
|
207
207
|
| volatility | 0.1214 |
|
|
208
208
|
| sharpe_ratio | 1.0950 |
|
|
209
209
|
| max_drawdown | -0.1148 |
|
|
210
|
+
| hit_rate_monthly | 0.5000 |
|
|
210
211
|
| tracking_error | 0.0005 |
|
|
211
212
|
| tracking_difference | -0.0008 |
|
|
212
213
|
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
# src/beacon/analysis/comparison.py
|
|
2
|
+
"""
|
|
3
|
+
A strategy against a comparator: the comparator's own figures and the
|
|
4
|
+
strategy's relative to it, over the window they share.
|
|
5
|
+
|
|
6
|
+
The strategy is given as its daily returns, the first running from its
|
|
7
|
+
starting point (a backtest's initial capital), and the comparator as its
|
|
8
|
+
levels. Over the run's whole window the comparator's first day returns
|
|
9
|
+
nothing, so its figures run from its level that day, as a backtest's tracking
|
|
10
|
+
does; over a later window both start there. Every figure is defined as a
|
|
11
|
+
backtest's metrics are (see `beacon.backtest.metrics.headline_metrics`), so a
|
|
12
|
+
comparison against a backtest's own index agrees with its tracking error and
|
|
13
|
+
tracking difference.
|
|
14
|
+
|
|
15
|
+
Figures by period split the same returns into calendar years, quarters or
|
|
16
|
+
months, each period from the previous period's close and the first from the
|
|
17
|
+
start, so the periods compound to the whole window's figures.
|
|
18
|
+
"""
|
|
19
|
+
# BN-323 and BN-324: every figure a run shows, computed here rather than by
|
|
20
|
+
# each client.
|
|
21
|
+
from dataclasses import dataclass
|
|
22
|
+
from typing import Any
|
|
23
|
+
|
|
24
|
+
import numpy as np
|
|
25
|
+
import pandas as pd
|
|
26
|
+
|
|
27
|
+
from ..assumptions import DEFAULT_PERIODS_PER_YEAR
|
|
28
|
+
from ..backtest.metrics import headline_metrics
|
|
29
|
+
|
|
30
|
+
# How a calendar period is named and grouped.
|
|
31
|
+
ANNUAL, QUARTERLY, MONTHLY = "annual", "quarterly", "monthly"
|
|
32
|
+
FREQUENCIES = (ANNUAL, QUARTERLY, MONTHLY)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
@dataclass(frozen=True)
|
|
36
|
+
class Comparison:
|
|
37
|
+
"""A strategy against one comparator over the window they share.
|
|
38
|
+
|
|
39
|
+
Attributes:
|
|
40
|
+
start: The window's first day.
|
|
41
|
+
end: Its last day.
|
|
42
|
+
observations: Its days.
|
|
43
|
+
level: The comparator's level over it, rebased to 100 on its first day.
|
|
44
|
+
own: The comparator's figures: total_return, annualised_return,
|
|
45
|
+
volatility, sharpe_ratio, max_drawdown and hit_rate_monthly.
|
|
46
|
+
relative: The strategy against it: relative_return,
|
|
47
|
+
annualised_relative_return, tracking_error, information_ratio,
|
|
48
|
+
correlation, beta and hit_rate_monthly.
|
|
49
|
+
"""
|
|
50
|
+
start: pd.Timestamp
|
|
51
|
+
end: pd.Timestamp
|
|
52
|
+
observations: int
|
|
53
|
+
level: pd.Series
|
|
54
|
+
own: dict[str, float | None]
|
|
55
|
+
relative: dict[str, float | None]
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def hit_rate_monthly(returns: pd.Series) -> float | None:
|
|
59
|
+
"""The share of calendar months whose compounded return was positive;
|
|
60
|
+
None with no returns."""
|
|
61
|
+
monthly = _compounded(returns, MONTHLY)
|
|
62
|
+
|
|
63
|
+
return float((monthly > 0).mean()) if len(monthly) else None
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def compare(strategy_returns: pd.Series,
|
|
67
|
+
comparator_levels: pd.Series,
|
|
68
|
+
periods_per_year: int = DEFAULT_PERIODS_PER_YEAR,
|
|
69
|
+
risk_free_rate: float = 0.0) -> Comparison | None:
|
|
70
|
+
"""A strategy against a comparator over the days both have.
|
|
71
|
+
|
|
72
|
+
Args:
|
|
73
|
+
strategy_returns: The strategy's daily returns, the first from its
|
|
74
|
+
starting point.
|
|
75
|
+
comparator_levels: The comparator's levels.
|
|
76
|
+
periods_per_year: How many daily returns make a year.
|
|
77
|
+
risk_free_rate: The annual rate Sharpe ratios are in excess of.
|
|
78
|
+
|
|
79
|
+
Returns:
|
|
80
|
+
Comparison | None: The comparison, or None when they share fewer than
|
|
81
|
+
two days.
|
|
82
|
+
"""
|
|
83
|
+
levels = comparator_levels.dropna()
|
|
84
|
+
window = strategy_returns.index.intersection(levels.index)
|
|
85
|
+
|
|
86
|
+
if len(window) < 2:
|
|
87
|
+
return None
|
|
88
|
+
|
|
89
|
+
levels = levels.loc[window].astype(float)
|
|
90
|
+
ours = strategy_returns.loc[window].astype(float)
|
|
91
|
+
theirs = levels.pct_change()
|
|
92
|
+
theirs.iloc[0] = 0.0
|
|
93
|
+
|
|
94
|
+
# From a later start, the strategy starts there too, as the comparator does.
|
|
95
|
+
if window[0] != strategy_returns.index[0]:
|
|
96
|
+
ours = ours.copy()
|
|
97
|
+
ours.iloc[0] = 0.0
|
|
98
|
+
|
|
99
|
+
return Comparison(start=window[0],
|
|
100
|
+
end=window[-1],
|
|
101
|
+
observations=len(window),
|
|
102
|
+
level=levels / levels.iloc[0] * 100.0,
|
|
103
|
+
own=_own(theirs, levels, periods_per_year, risk_free_rate),
|
|
104
|
+
relative=_relative(ours, theirs, periods_per_year))
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
def by_period(strategy_returns: pd.Series,
|
|
108
|
+
frequency: str,
|
|
109
|
+
periods_per_year: int = DEFAULT_PERIODS_PER_YEAR,
|
|
110
|
+
risk_free_rate: float = 0.0) -> list[dict[str, Any]]:
|
|
111
|
+
"""The strategy's figures in each calendar period.
|
|
112
|
+
|
|
113
|
+
Each period's returns are its own days', so the first runs from the
|
|
114
|
+
strategy's starting point and each later one from the previous close.
|
|
115
|
+
|
|
116
|
+
Args:
|
|
117
|
+
strategy_returns: The strategy's daily returns, the first from its
|
|
118
|
+
starting point.
|
|
119
|
+
frequency: ``"annual"``, ``"quarterly"`` or ``"monthly"``.
|
|
120
|
+
periods_per_year: How many daily returns make a year.
|
|
121
|
+
risk_free_rate: The annual rate the Sharpe ratio is in excess of.
|
|
122
|
+
|
|
123
|
+
Returns:
|
|
124
|
+
list: One ``{period, start, end, returns, figures}`` per period, in
|
|
125
|
+
order; ``returns`` are the period's own, for comparing it.
|
|
126
|
+
|
|
127
|
+
Raises:
|
|
128
|
+
ValueError: If the frequency is not one of the three.
|
|
129
|
+
"""
|
|
130
|
+
if frequency not in FREQUENCIES:
|
|
131
|
+
raise ValueError(f"Unknown frequency {frequency!r}. Known: {', '.join(FREQUENCIES)}.")
|
|
132
|
+
|
|
133
|
+
periods = []
|
|
134
|
+
|
|
135
|
+
for label, returns in _grouped(strategy_returns, frequency):
|
|
136
|
+
path = _path(returns)
|
|
137
|
+
figures = headline_metrics(returns, float(path.iloc[-1] - 1.0), path,
|
|
138
|
+
periods_per_year, risk_free_rate)
|
|
139
|
+
periods.append({"period": label, "start": returns.index[0], "end": returns.index[-1],
|
|
140
|
+
"returns": returns,
|
|
141
|
+
"figures": {**figures, "positive_days": float((returns > 0).mean())}})
|
|
142
|
+
|
|
143
|
+
return periods
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
def compare_returns(strategy_returns: pd.Series,
|
|
147
|
+
comparator_returns: pd.Series,
|
|
148
|
+
periods_per_year: int = DEFAULT_PERIODS_PER_YEAR,
|
|
149
|
+
risk_free_rate: float = 0.0) -> dict[str, dict[str, float | None]] | None:
|
|
150
|
+
"""A strategy against a comparator over a period, from both's daily
|
|
151
|
+
returns there: the comparator's ``own`` figures and the ``relative`` ones,
|
|
152
|
+
or None when the period has no common days."""
|
|
153
|
+
window = strategy_returns.index.intersection(comparator_returns.index)
|
|
154
|
+
|
|
155
|
+
if len(window) < 1:
|
|
156
|
+
return None
|
|
157
|
+
|
|
158
|
+
ours = strategy_returns.loc[window]
|
|
159
|
+
theirs = comparator_returns.loc[window]
|
|
160
|
+
|
|
161
|
+
return {"own": _own(theirs, _path(theirs), periods_per_year, risk_free_rate),
|
|
162
|
+
"relative": _relative(ours, theirs, periods_per_year)}
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
def daily_returns(levels: pd.Series) -> pd.Series:
|
|
166
|
+
"""A comparator's daily returns, the first day's nothing: the returns a
|
|
167
|
+
comparison over the whole window uses."""
|
|
168
|
+
returns = levels.astype(float).pct_change()
|
|
169
|
+
|
|
170
|
+
if len(returns):
|
|
171
|
+
returns.iloc[0] = 0.0
|
|
172
|
+
|
|
173
|
+
return returns
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
def _own(returns: pd.Series,
|
|
177
|
+
path: pd.Series,
|
|
178
|
+
periods_per_year: int,
|
|
179
|
+
risk_free_rate: float) -> dict[str, float | None]:
|
|
180
|
+
"""A series' own figures, from its returns and the level they move."""
|
|
181
|
+
total = float(path.iloc[-1] / path.iloc[0] - 1.0)
|
|
182
|
+
figures: dict[str, float | None] = {**headline_metrics(returns, total, path,
|
|
183
|
+
periods_per_year, risk_free_rate)}
|
|
184
|
+
figures["hit_rate_monthly"] = hit_rate_monthly(returns)
|
|
185
|
+
|
|
186
|
+
return figures
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
def _relative(ours: pd.Series,
|
|
190
|
+
theirs: pd.Series,
|
|
191
|
+
periods_per_year: int) -> dict[str, float | None]:
|
|
192
|
+
"""The strategy against the comparator, over the same days."""
|
|
193
|
+
n = len(ours)
|
|
194
|
+
years = n / float(periods_per_year)
|
|
195
|
+
our_total = float((1.0 + ours).prod() - 1.0)
|
|
196
|
+
their_total = float((1.0 + theirs).prod() - 1.0)
|
|
197
|
+
annualised = (((1.0 + our_total) ** (1.0 / years) - (1.0 + their_total) ** (1.0 / years))
|
|
198
|
+
if years > 0 else 0.0)
|
|
199
|
+
difference = ours - theirs
|
|
200
|
+
tracking_error = (float(difference.std() * np.sqrt(periods_per_year)) if n > 1 else None)
|
|
201
|
+
variance = float(theirs.var()) if n > 1 else 0.0
|
|
202
|
+
monthly_ours = _compounded(ours, MONTHLY)
|
|
203
|
+
monthly_theirs = _compounded(theirs, MONTHLY)
|
|
204
|
+
|
|
205
|
+
return {
|
|
206
|
+
"relative_return": our_total - their_total,
|
|
207
|
+
"annualised_relative_return": float(annualised),
|
|
208
|
+
"tracking_error": tracking_error,
|
|
209
|
+
"information_ratio": (float(annualised / tracking_error)
|
|
210
|
+
if tracking_error else None),
|
|
211
|
+
"correlation": (float(ours.corr(theirs))
|
|
212
|
+
if n > 1 and ours.std() > 0 and theirs.std() > 0 else None),
|
|
213
|
+
"beta": float(ours.cov(theirs) / variance) if variance > 0 else None,
|
|
214
|
+
"hit_rate_monthly": (float((monthly_ours > monthly_theirs).mean())
|
|
215
|
+
if len(monthly_ours) else None),
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
def _path(returns: pd.Series) -> pd.Series:
|
|
220
|
+
"""The level a run of returns moves, from 1 before its first."""
|
|
221
|
+
return pd.concat([pd.Series([1.0]), (1.0 + returns.reset_index(drop=True)).cumprod()],
|
|
222
|
+
ignore_index=True)
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
def _compounded(returns: pd.Series,
|
|
226
|
+
frequency: str) -> pd.Series:
|
|
227
|
+
"""Returns compounded within each calendar period."""
|
|
228
|
+
if returns.empty:
|
|
229
|
+
return pd.Series(dtype=float)
|
|
230
|
+
|
|
231
|
+
return pd.Series({label: float((1.0 + period).prod() - 1.0)
|
|
232
|
+
for label, period in _grouped(returns, frequency)})
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
def _grouped(returns: pd.Series,
|
|
236
|
+
frequency: str) -> list[tuple[str, pd.Series]]:
|
|
237
|
+
"""Returns split into calendar periods, each named, in order."""
|
|
238
|
+
index = pd.DatetimeIndex(returns.index)
|
|
239
|
+
keys = {ANNUAL: index.strftime("%Y"),
|
|
240
|
+
QUARTERLY: [f"{day.year} Q{(day.month - 1) // 3 + 1}" for day in index],
|
|
241
|
+
MONTHLY: index.strftime("%Y-%m")}[frequency]
|
|
242
|
+
|
|
243
|
+
return [(str(label), period) for label, period
|
|
244
|
+
in returns.groupby(pd.Index(keys, name="period"), sort=False)]
|
|
@@ -372,6 +372,9 @@ class MetricsMixin:
|
|
|
372
372
|
self._periods_per_year(),
|
|
373
373
|
self._risk_free_rate())}
|
|
374
374
|
|
|
375
|
+
# BN-323: the share of calendar months with a positive return.
|
|
376
|
+
result["hit_rate_monthly"] = _hit_rate_monthly(returns)
|
|
377
|
+
|
|
375
378
|
# Tracking metrics (only if the run tracked an index)
|
|
376
379
|
te = self.get_tracking_error()
|
|
377
380
|
td = self.get_tracking_difference()
|
|
@@ -476,6 +479,17 @@ class MetricsMixin:
|
|
|
476
479
|
"days_at_premium": float((market["premium"] > 0).mean())}
|
|
477
480
|
|
|
478
481
|
|
|
482
|
+
def _hit_rate_monthly(returns: pd.Series) -> float | None:
|
|
483
|
+
"""The share of calendar months whose compounded return was positive."""
|
|
484
|
+
if returns.empty:
|
|
485
|
+
return None
|
|
486
|
+
|
|
487
|
+
index = pd.DatetimeIndex(returns.index)
|
|
488
|
+
monthly = (1.0 + returns).groupby([index.year, index.month]).prod() - 1.0
|
|
489
|
+
|
|
490
|
+
return float((monthly > 0).mean())
|
|
491
|
+
|
|
492
|
+
|
|
479
493
|
def _from_start(levels: pd.Series) -> pd.Series:
|
|
480
494
|
"""Daily returns of a level series, the first day's being zero.
|
|
481
495
|
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# src/beacon/data/reference_as_of.py
|
|
2
|
+
"""
|
|
3
|
+
Reference columns for many names on many dates, each as it stood then.
|
|
4
|
+
|
|
5
|
+
A weight history asks for the same few columns of the same names on every
|
|
6
|
+
rebalance date. Asking the reference data once per date would read it as many
|
|
7
|
+
times as there are dates; this reads every validity window of the names once
|
|
8
|
+
and answers each (name, date) from them, by the rule
|
|
9
|
+
`ReferenceData.get` uses: the row whose ``DATE_FROM`` is on or before the date
|
|
10
|
+
and whose ``DATE_TO`` is on or after it, or open.
|
|
11
|
+
|
|
12
|
+
The columns that say what a series is (``ASSET_CLASS``, ``SECURITY_TYPE`` and
|
|
13
|
+
``TRADABLE``) are answered as `beacon.data.kinds` reads them, so a dataset with
|
|
14
|
+
no ``ASSET_CLASS`` column answers ``Equity``, as the engine takes it to be.
|
|
15
|
+
Any other column the dataset lacks answers None.
|
|
16
|
+
"""
|
|
17
|
+
# BN-325.
|
|
18
|
+
from collections.abc import Iterable
|
|
19
|
+
from typing import Any
|
|
20
|
+
|
|
21
|
+
import pandas as pd
|
|
22
|
+
|
|
23
|
+
from .fetcher import DataFetcher
|
|
24
|
+
from .kinds import ASSET_CLASS, EQUITY, SECURITY_TYPE, TRADABLE, SeriesError, describe
|
|
25
|
+
|
|
26
|
+
# The columns answered as the engine reads them rather than as stored.
|
|
27
|
+
KIND_COLUMNS = (ASSET_CLASS, SECURITY_TYPE, TRADABLE)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class ReferenceAsOf:
|
|
31
|
+
"""Reference columns of a set of names, answerable on any date.
|
|
32
|
+
|
|
33
|
+
Args:
|
|
34
|
+
fetcher: The loaded data.
|
|
35
|
+
identifiers: The names that will be asked about.
|
|
36
|
+
columns: The columns to answer, as stored (upper case).
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
def __init__(self,
|
|
40
|
+
fetcher: DataFetcher,
|
|
41
|
+
identifiers: Iterable[str],
|
|
42
|
+
columns: list[str]):
|
|
43
|
+
self.columns = list(columns)
|
|
44
|
+
names = sorted(set(identifiers))
|
|
45
|
+
frame = fetcher.fetch_reference_data(names) if names else pd.DataFrame()
|
|
46
|
+
# Each window's answer is worked out once, as a plain mapping, so a
|
|
47
|
+
# long history costs a dictionary copy per row rather than a pandas
|
|
48
|
+
# lookup and a classification (measured: 11 ms a date for 500 names
|
|
49
|
+
# before, BN-325).
|
|
50
|
+
self._windows: dict[str, list[tuple[pd.Timestamp, pd.Timestamp | None,
|
|
51
|
+
dict[str, Any]]]] = {}
|
|
52
|
+
|
|
53
|
+
# Plain records rather than iterrows: a pandas Series per row and a
|
|
54
|
+
# lookup per column were most of the cost (measured, BN-325).
|
|
55
|
+
records = frame.reset_index().to_dict("records") if not frame.empty else []
|
|
56
|
+
|
|
57
|
+
for record in records:
|
|
58
|
+
identifier = str(record["IDENTIFIER"])
|
|
59
|
+
end = record.get("DATE_TO")
|
|
60
|
+
self._windows.setdefault(identifier, []).append(
|
|
61
|
+
(pd.Timestamp(record["DATE_FROM"]),
|
|
62
|
+
None if end is None or pd.isna(end) else pd.Timestamp(end),
|
|
63
|
+
self._answer(identifier, record)))
|
|
64
|
+
|
|
65
|
+
for windows in self._windows.values():
|
|
66
|
+
windows.sort(key=lambda window: window[0])
|
|
67
|
+
|
|
68
|
+
def of(self,
|
|
69
|
+
identifier: str,
|
|
70
|
+
date: str | pd.Timestamp) -> dict[str, Any] | None:
|
|
71
|
+
"""The columns of *identifier* as they stood on *date*, keyed in
|
|
72
|
+
lower case; None when no reference row was valid then."""
|
|
73
|
+
day = pd.Timestamp(date)
|
|
74
|
+
answer = None
|
|
75
|
+
|
|
76
|
+
# The latest-starting valid window wins, as windows are in start order.
|
|
77
|
+
for start, end, values in self._windows.get(identifier, ()):
|
|
78
|
+
if start > day:
|
|
79
|
+
break
|
|
80
|
+
|
|
81
|
+
if end is None or end >= day:
|
|
82
|
+
answer = values
|
|
83
|
+
|
|
84
|
+
return dict(answer) if answer is not None else None
|
|
85
|
+
|
|
86
|
+
def map_of(self,
|
|
87
|
+
identifiers: Iterable[str],
|
|
88
|
+
date: str | pd.Timestamp) -> dict[str, dict[str, Any] | None]:
|
|
89
|
+
"""Each of *identifiers*' columns on one date."""
|
|
90
|
+
day = pd.Timestamp(date)
|
|
91
|
+
|
|
92
|
+
return {identifier: self.of(identifier, day) for identifier in identifiers}
|
|
93
|
+
|
|
94
|
+
def windows_of(self,
|
|
95
|
+
identifier: str,
|
|
96
|
+
start: str | pd.Timestamp,
|
|
97
|
+
end: str | pd.Timestamp) -> list[dict[str, Any]]:
|
|
98
|
+
"""The windows of *identifier* that overlap *start* to *end*, each its
|
|
99
|
+
``date_from``, ``date_to`` (None when open) and ``reference`` columns:
|
|
100
|
+
what a daily panel needs to read any of its dates."""
|
|
101
|
+
first, last = pd.Timestamp(start), pd.Timestamp(end)
|
|
102
|
+
|
|
103
|
+
return [{"date_from": str(window_start.date()),
|
|
104
|
+
"date_to": str(window_end.date()) if window_end is not None else None,
|
|
105
|
+
"reference": dict(values)}
|
|
106
|
+
for window_start, window_end, values in self._windows.get(identifier, ())
|
|
107
|
+
if window_start <= last and (window_end is None or window_end >= first)]
|
|
108
|
+
|
|
109
|
+
def _answer(self,
|
|
110
|
+
identifier: str,
|
|
111
|
+
record: dict[str, Any]) -> dict[str, Any]:
|
|
112
|
+
"""One window's columns, keyed in lower case."""
|
|
113
|
+
kinds = (_kinds(identifier, record)
|
|
114
|
+
if any(column in KIND_COLUMNS for column in self.columns) else {})
|
|
115
|
+
|
|
116
|
+
return {column.lower(): kinds[column] if column in kinds else _plain(record.get(column))
|
|
117
|
+
for column in self.columns}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
def _kinds(identifier: str,
|
|
121
|
+
record: dict[str, Any]) -> dict[str, Any]:
|
|
122
|
+
"""What a reference row says its series is, as the engine reads it; empty
|
|
123
|
+
when it cannot be read, so the stored values are given instead."""
|
|
124
|
+
# A row saying nothing of its kind is an equity a fund can hold: the common
|
|
125
|
+
# case, answered without building a Series to classify.
|
|
126
|
+
if all(_plain(record.get(column)) is None for column in KIND_COLUMNS):
|
|
127
|
+
return {ASSET_CLASS: EQUITY, SECURITY_TYPE: None, TRADABLE: True}
|
|
128
|
+
|
|
129
|
+
try:
|
|
130
|
+
described = describe(identifier, pd.Series(record))
|
|
131
|
+
except SeriesError:
|
|
132
|
+
return {}
|
|
133
|
+
|
|
134
|
+
return {ASSET_CLASS: described.asset_class, SECURITY_TYPE: described.security_type,
|
|
135
|
+
TRADABLE: described.tradable}
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
def _plain(value: Any) -> Any:
|
|
139
|
+
"""A stored value as JSON can carry it: None for missing, an ISO string
|
|
140
|
+
for a date, a plain number for a numpy one."""
|
|
141
|
+
if value is None or (not isinstance(value, str) and pd.isna(value)):
|
|
142
|
+
return None
|
|
143
|
+
|
|
144
|
+
if isinstance(value, pd.Timestamp):
|
|
145
|
+
return value.isoformat()
|
|
146
|
+
|
|
147
|
+
return value.item() if hasattr(value, "item") else value
|
|
@@ -51,6 +51,29 @@ def describe_fields(fetcher: DataFetcher) -> list[dict[str, Any]]:
|
|
|
51
51
|
return entries
|
|
52
52
|
|
|
53
53
|
|
|
54
|
+
# BN-325: what a column chooser shows for a field, where its name says it
|
|
55
|
+
# less well than a label would. Any other field's label is its name in words.
|
|
56
|
+
LABELS = {
|
|
57
|
+
"asset_class": "Asset class",
|
|
58
|
+
"security_type": "Security type",
|
|
59
|
+
"base_currency": "Base currency",
|
|
60
|
+
"quote_currency": "Quote currency",
|
|
61
|
+
"day_count": "Day count",
|
|
62
|
+
"date_from": "Valid from",
|
|
63
|
+
"date_to": "Valid to",
|
|
64
|
+
"sub_industry": "Sub-industry",
|
|
65
|
+
"country_domicile": "Country of domicile",
|
|
66
|
+
"country_listing": "Country of listing",
|
|
67
|
+
"shares_outstanding": "Shares outstanding",
|
|
68
|
+
"free_float": "Free float",
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def label_of(name: str) -> str:
|
|
73
|
+
"""A field's label: its own where it has one, else its name in words."""
|
|
74
|
+
return LABELS.get(name, name.replace("_", " ").capitalize())
|
|
75
|
+
|
|
76
|
+
|
|
54
77
|
def _entry(namespace: str,
|
|
55
78
|
name: str,
|
|
56
79
|
dataset: str | None = None,
|
|
@@ -58,7 +81,7 @@ def _entry(namespace: str,
|
|
|
58
81
|
"""One descriptor."""
|
|
59
82
|
path = ".".join(part for part in (namespace, dataset, name) if part)
|
|
60
83
|
|
|
61
|
-
return {"path": path, "namespace": namespace, "name": name,
|
|
84
|
+
return {"path": path, "namespace": namespace, "name": name, "label": label_of(name),
|
|
62
85
|
"dataset": dataset, "derived": derived}
|
|
63
86
|
|
|
64
87
|
|
|
@@ -34,7 +34,7 @@ from .backtest_settings import (
|
|
|
34
34
|
preset_vehicle,
|
|
35
35
|
vehicle_settings,
|
|
36
36
|
)
|
|
37
|
-
from .schemas import BacktestOptions, ParameterSpec, VehiclePreset
|
|
37
|
+
from .schemas import BENCHMARK_KINDS, BacktestOptions, ParameterSpec, VehiclePreset
|
|
38
38
|
from .types import parameter_spec, specs_for
|
|
39
39
|
|
|
40
40
|
VEHICLE_DISPLAYS = {
|
|
@@ -137,6 +137,7 @@ def backtest_options() -> BacktestOptions:
|
|
|
137
137
|
for key in preset_keys()],
|
|
138
138
|
vehicle_settings=_vehicle_settings(),
|
|
139
139
|
market_settings=_described(EtfMarket, MARKET_DISPLAYS),
|
|
140
|
+
run_settings=_run_settings(),
|
|
140
141
|
implementation_settings=_implementation_settings(),
|
|
141
142
|
share_class_settings=_described(ShareClass, SHARE_CLASS_DISPLAYS),
|
|
142
143
|
modelling_assumptions=_assumptions(),
|
|
@@ -188,6 +189,39 @@ def _implementation_settings() -> list[ParameterSpec]:
|
|
|
188
189
|
choices=list(FLOW_INVESTMENTS))]
|
|
189
190
|
|
|
190
191
|
|
|
192
|
+
def _run_settings() -> list[ParameterSpec]:
|
|
193
|
+
"""The run's own settings: its dates, capital, cost, currency, dividend
|
|
194
|
+
policy and benchmark."""
|
|
195
|
+
# BN-321: the request always took these, but the catalogue never described
|
|
196
|
+
# them, so a form built from it had no dates, capital or cost.
|
|
197
|
+
rows: list[dict[str, Any]] = [
|
|
198
|
+
{"name": "start", "type": catalogue.DATE, "label": "Start",
|
|
199
|
+
"help": "Leave blank to start at the index's base date."},
|
|
200
|
+
{"name": "end", "type": catalogue.DATE, "label": "End",
|
|
201
|
+
"help": "Leave blank to run to the last date the data covers."},
|
|
202
|
+
{"name": "initial_capital", "type": catalogue.NUMBER, "default": 1_000_000.0,
|
|
203
|
+
"label": "Initial capital", "unit": MONEY, "minimum": 0.0,
|
|
204
|
+
"help": "With share classes, give it by class name, each in its class's currency."},
|
|
205
|
+
{"name": "transaction_cost_bps", "type": catalogue.NUMBER, "default": 0.0,
|
|
206
|
+
"label": "Trading cost", "unit": BPS, "minimum": 0.0,
|
|
207
|
+
"help": "Per trade, on its notional."},
|
|
208
|
+
{"name": "currency", "type": catalogue.STRING, "label": "Book currency",
|
|
209
|
+
"help": "A three-letter code, such as 'EUR'. Leave blank for the index's."},
|
|
210
|
+
{"name": "dividends", "type": catalogue.STRING, "default": "reinvest",
|
|
211
|
+
"label": "Dividends", "choices": list(DIVIDEND_POLICIES)},
|
|
212
|
+
{"name": "benchmark.kind", "type": catalogue.STRING, "label": "Benchmark",
|
|
213
|
+
"choices": list(BENCHMARK_KINDS),
|
|
214
|
+
"help": "A stored index, or a series in the market data. Leave blank for none."},
|
|
215
|
+
{"name": "benchmark.id", "type": catalogue.STRING, "label": "Benchmark id"},
|
|
216
|
+
{"name": "benchmark.price_column", "type": catalogue.STRING, "default": "CLOSE",
|
|
217
|
+
"label": "Benchmark column",
|
|
218
|
+
"help": "The market-data column read for an identifier benchmark."},
|
|
219
|
+
]
|
|
220
|
+
|
|
221
|
+
return [ParameterSpec(required=False, order=order, **row)
|
|
222
|
+
for order, row in enumerate(rows)]
|
|
223
|
+
|
|
224
|
+
|
|
191
225
|
def _assumptions() -> list[ParameterSpec]:
|
|
192
226
|
"""Each modelling assumption, with the engine's default."""
|
|
193
227
|
defaults = engine_defaults()
|
|
@@ -174,7 +174,15 @@ def build(request: BacktestRequest,
|
|
|
174
174
|
return None, findings.found
|
|
175
175
|
|
|
176
176
|
currency = request.currency.upper() if request.currency else None
|
|
177
|
+
# BN-322: everything a run needs, so a client can start from a run's own
|
|
178
|
+
# settings. The dates are as asked; a run fills in the defaults it used.
|
|
177
179
|
resolved: dict[str, Any] = {
|
|
180
|
+
"start": request.start,
|
|
181
|
+
"end": request.end,
|
|
182
|
+
"initial_capital": request.initial_capital,
|
|
183
|
+
"transaction_cost_bps": request.transaction_cost_bps,
|
|
184
|
+
"benchmark": (request.benchmark.model_dump()
|
|
185
|
+
if request.benchmark is not None else None),
|
|
178
186
|
"currency": currency,
|
|
179
187
|
"dividends": request.dividends,
|
|
180
188
|
"modelling_assumptions": _resolved_assumptions(assumptions, fetcher),
|