py-beacon-kit 0.9.3__tar.gz → 0.9.4__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.3 → py_beacon_kit-0.9.4}/CHANGELOG.md +17 -1
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/PKG-INFO +1 -1
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/__init__.py +1 -1
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/data/store.py +86 -22
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/app.py +3 -1
- py_beacon_kit-0.9.4/src/beacon/server/query_guard.py +54 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/routers/data.py +10 -1
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/routers/derivatives.py +32 -5
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/schemas.py +35 -30
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/store_schemas.py +3 -3
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/synthetic/dataset.py +19 -10
- py_beacon_kit-0.9.4/tests/test_data_store_save.py +110 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_data_router.py +16 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_derivatives.py +11 -0
- py_beacon_kit-0.9.4/tests/test_server_query_guard.py +82 -0
- py_beacon_kit-0.9.4/tests/test_server_request_numbers.py +115 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/.gitignore +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/LICENSE.txt +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/README.md +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/examples/01_index_and_backtest.ipynb +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/examples/02_backtest_analysis.ipynb +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/examples/03_index_futures.ipynb +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/examples/04_optimised_index.ipynb +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/examples/05_optimised_backtest.ipynb +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/examples/README.md +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/examples/data/templates/equities_corp_actions_data.xlsx +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/examples/data/templates/equities_fundamental_data.xlsx +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/examples/data/templates/equities_market_data.xlsx +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/examples/data/templates/equities_reference_data.xlsx +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/examples/data/templates/fx_rates_data.xlsx +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/pyproject.toml +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/_optional.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/analysis/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/analysis/attribution.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/analysis/comparison.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/analysis/concentration.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/analysis/etf/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/analysis/etf/analytics.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/analysis/liquidity.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/analysis/relative.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/analysis/risk.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/asset/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/asset/base.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/asset/bond.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/asset/commodity.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/asset/equity.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/asset/view.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/assumptions.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/accounting.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/asset_view.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/books.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/capacity.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/class_benchmark.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/costs.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/dealing.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/dividends.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/engine.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/etf.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/execution.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/flows.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/futures.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/hedging.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/implementation.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/limits.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/listings.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/main.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/metrics.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/presets.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/pricing.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/redistribution.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/result.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/rules.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/screens.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/settings.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/share_classes.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/swap.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/vehicle.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/backtest/withholding.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/catalogue.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/changelog.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/data/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/data/adjustment.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/data/base.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/data/corporate_actions.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/data/features.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/data/fetcher.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/data/free_float.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/data/fx.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/data/identifiers.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/data/importing.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/data/ingest.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/data/kinds.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/data/layout.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/data/loader.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/data/postgres.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/data/prices.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/data/reference_as_of.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/data/session.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/derivatives/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/derivatives/base.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/derivatives/curves.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/derivatives/forwards.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/derivatives/futures.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/derivatives/pricing.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/derivatives/swaps.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/derivatives/term_structure.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/environment/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/environment/config.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/exceptions.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/expressions/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/expressions/catalogue.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/expressions/core.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/expressions/namespaces.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/expressions/resolve.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/expressions/stubs.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/expressions/validation.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/fund/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/fund/fund.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/index/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/index/asset_view.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/index/cache.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/index/calculation/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/index/calculation/calculator.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/index/calculation/corporate_actions.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/index/calculation/deletions.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/index/calculation/market_values.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/index/calculation/price_gaps.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/index/calculation/selection.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/index/calculation/total_return.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/index/capping.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/index/chaining.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/index/constructor.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/index/context.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/index/derived.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/index/expression_rules.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/index/feature_rules.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/index/methodology.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/index/requirements.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/index/result.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/index/schedule.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/optimise/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/optimise/config.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/optimise/constraints.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/optimise/frontier.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/optimise/result.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/optimise/solver.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/accessors.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/analysis_charts.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/arrange.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/base.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/charts/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/charts/bars.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/charts/base.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/charts/data.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/charts/grid.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/charts/heatmap.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/charts/lines.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/charts/points.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/charts/table.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/colormaps.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/colours.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/comparison.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/dateticks.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/design.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/fitting.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/fonts/InterTight-Light.ttf +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/fonts/InterTight-LightItalic.ttf +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/fonts/InterTight-Regular.ttf +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/fonts/OFL-InterTight.txt +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/fonts/OFL-SourceSerif4.txt +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/fonts/SourceSerif4-Italic350.ttf +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/frame.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/gridding.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/groups.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/interactive/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/interactive/axes.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/interactive/baseline.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/interactive/figure.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/interactive/frame.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/interactive/html.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/interactive/popup.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/interactive/readout.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/interactive/spines.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/interactive/traces.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/interactive/units.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/layout.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/legend.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/mark.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/marks.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/metrics.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/notes.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/paint.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/panels.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/style.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/tables/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/tables/css.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/tables/draw.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/tables/fonts.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/tables/geometry.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/tables/html.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/tables/model.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/tables/paint.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/tables/script.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/tables/sizes.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/themes.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/ticks.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/plot/webfonts.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/portfolio/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/portfolio/asset_view.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/portfolio/base.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/portfolio/cash_flows.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/portfolio/history.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/portfolio/reporting.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/py.typed +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/report/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/report/blocks.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/report/pdf.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/risk/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/risk/contribution.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/risk/covariance.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/risk/factors.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/risk/model.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/__main__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/active_data.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/backtest_options.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/backtest_settings.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/backtests.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/benchmarks.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/comparisons.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/config.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/constraints.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/data_stores.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/definitions.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/derivative_records.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/derivatives.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/documents.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/errors.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/holding_reference.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/holdings.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/holdings_schemas.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/index_level.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/jobs.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/market_caps.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/methods.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/optimisation.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/parameter_schemas.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/periods.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/preview.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/reference.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/reports.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/risk.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/routers/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/routers/backtest.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/routers/coverage.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/routers/importing.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/routers/indices.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/routers/jobs.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/routers/optimise.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/routers/reference_values.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/routers/refresh.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/routers/reports.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/routers/risk.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/routers/stores.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/routers/strategies.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/routers/strategy_runs.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/routers/synthetic.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/routers/universes.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/routers/watchlists.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/runs.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/security.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/serialisation.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/share_class_results.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/share_class_settings.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/stage_descriptions.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/store.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/strategies.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/strategy_runs.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/strategy_schemas.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/types.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/views.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/server/weights.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/sources.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/strategy/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/strategy/active.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/strategy/allocations.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/strategy/base.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/strategy/constraints.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/strategy/constructions.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/strategy/futures.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/strategy/signals.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/strategy/synthetic.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/strategy/tracking.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/synthetic/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/synthetic/__main__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/synthetic/extend.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/synthetic/features.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/synthetic/fx.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/synthetic/listings.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/synthetic/prices.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/synthetic/profiles.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/synthetic/regimes.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/synthetic/regions.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/synthetic/returns.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/synthetic/state.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/synthetic/universe.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/testing/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/testing/dataset.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/testing/weights.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/tokens/__init__.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/tokens/colors.json +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/src/beacon/universe.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_annual_returns_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_annual_returns_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_area_filled_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_area_filled_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_area_stacked_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_area_stacked_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_bar_capped_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_bar_capped_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_blended_both_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_blended_both_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_boxed_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_boxed_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_column_grouped_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_column_grouped_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_column_signed_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_column_signed_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_combo_daily_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_combo_daily_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_compare_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_compare_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_constituents_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_constituents_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_contributions_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_contributions_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_correlation_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_correlation_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_exposures_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_exposures_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_frontier_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_frontier_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_grid_one_by_three_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_grid_one_by_three_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_grid_spanning_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_grid_spanning_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_grid_two_by_two_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_grid_two_by_two_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_group_and_row_boxes_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_group_and_row_boxes_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_heatmap_blended_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_heatmap_blended_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_heatmap_correlation_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_heatmap_correlation_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_heatmap_monthly_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_heatmap_monthly_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_histogram_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_histogram_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_level_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_level_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_line_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_line_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_line_periods_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_line_periods_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_line_secondary_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_line_secondary_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_lines_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_lines_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_one_column_without_values_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_one_column_without_values_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_performance_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_performance_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_plain_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_plain_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_row_group_headings_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_row_group_headings_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_scatter_fitted_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_scatter_fitted_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_scatter_origin_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_scatter_origin_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_squares_faded_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_squares_faded_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_stripes_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_stripes_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_weights_dark.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/baseline/test_weights_light.png +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/conftest.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/docstyle.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_adjustment.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_api_contract.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_asset.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_asset_view.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_attribution.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_backtest_capacity.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_backtest_dealing.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_backtest_dividends.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_backtest_engine.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_backtest_engine_integration.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_backtest_etf.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_backtest_execution.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_backtest_fills.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_backtest_flows.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_backtest_hedged_classes.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_backtest_main.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_backtest_modifier.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_backtest_pricing.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_backtest_result.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_backtest_share_classes.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_backtest_stages.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_backtest_withholding.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_benchmark.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_book_currency.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_canonical_dataset_integration.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_capping.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_catalogue.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_chaining.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_changelog.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_chart_images.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_class_benchmark.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_comparison.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_concentration.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_constraint_catalogue.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_corporate_action_kind.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_corporate_actions.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_coverage_fields.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_currency_conversion.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_daily_weights.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_data_fetcher.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_data_import.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_data_kinds.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_data_store.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_data_tables.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_derivatives_base.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_derivatives_curves.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_derivatives_etf_future.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_derivatives_futures.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_derivatives_pricing.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_derivatives_swaps.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_derived_index.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_docs_examples.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_docs_style.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_effective_lag.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_examples.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_expression_namespaces.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_expression_rules.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_expression_schema.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_expression_validation.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_expressions.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_factors.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_feature_rules.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_features.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_free_float_backfill.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_frontier.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_fund_record.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_fx_data.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_fx_pairs.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_fx_routes.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_identifier_search.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_index_asset_view.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_index_batch_reads.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_index_cache.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_index_calculator.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_index_calculator_integration.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_index_currency.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_index_definition.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_index_eligibility.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_index_result.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_index_schedule.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_index_selection.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_index_weighting.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_ingest.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_integration.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_job_persistence.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_look_ahead.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_modelling_assumptions.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_optimise.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_optional_dependencies.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_plot.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_plot_charts.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_plot_design.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_plot_frame.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_plot_grid.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_plot_heatmap.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_plot_images.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_plot_interactive.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_plot_layout.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_plot_table.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_portfolio.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_portfolio_asset_view.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_postgres_store.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_properties.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_read_volume.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_readme.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_reference_as_of.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_reference_currency.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_reference_dimensions.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_reference_profile.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_report.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_reporting.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_requirements.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_risk_contribution.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_risk_model.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_backtest.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_backtest_settings.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_comparisons.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_cors.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_data_stores.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_derivative_records.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_document_faults.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_features.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_holding_reference.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_holdings.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_import.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_index_level.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_indices.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_jobs.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_listing_discovery.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_optimise.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_optimised_indices.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_parameter_schemas.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_preview.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_preview_caps.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_preview_document.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_preview_optimised.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_reference_batch.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_refresh.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_reports.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_risk.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_share_classes.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_store.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_strategies.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_strategy_runs.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_synthetic.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_universes.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_views.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_server_weights_rows.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_session_agreement.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_spec_conformance.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_splits.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_stage_descriptions.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_stale_prices.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_strategy_active.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_strategy_constructions.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_strategy_futures.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_strategy_synthetic.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_strategy_tracking.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_survivorship.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_synthetic.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_synthetic_extend.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_synthetic_features.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_table_images.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_testing_dataset.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_tokens.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_total_return.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_universe_batch_reads.py +0 -0
- {py_beacon_kit-0.9.3 → py_beacon_kit-0.9.4}/tests/test_universe_filters.py +0 -0
|
@@ -8,6 +8,21 @@ 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.4] - 2026-10-21
|
|
12
|
+
|
|
13
|
+
A store saves in well under half the time with its progress shown, and the API refuses requests it used to misread: a parameter given twice, a boolean for a number, a price column it does not hold.
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- `GET /data/prices/{identifier}` reads `columns` as the other list parameters do, so `?columns=CLOSE,VOLUME` names two columns, and an unknown column is refused with 422 `INVALID_ARGUMENT` rather than failing with a 500.
|
|
18
|
+
- `POST /derivatives/trs/price` and `/derivatives/futures/price` refuse inputs whose result overflows to infinity with 422 `INVALID_ARGUMENT`, where they answered 200 with `null` in place of a number.
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- Saving a data store takes well under half as long: on 1.16M market rows, 11 s rather than about 24 s, for a file 2% larger. A synthetic store at the API's default size should save in about 110 s rather than four minutes (estimated from the measured tenth). Each file is written a chunk of rows at a time and compressed as it goes, at gzip level 6 rather than 9. `store.save` takes a `progress` callback, and generating synthetic data reports the save's progress by dataset and chunk ("Saving market data") instead of sitting at one stage, with each stage's share of the progress bar matching the time it takes.
|
|
23
|
+
- A query parameter that takes one value is refused with 422 `INVALID_ARGUMENT` when it is given more than once. The last value used to win, so `?limit=10&limit=500` answered with 500 rows.
|
|
24
|
+
- A decimal number in a request body must be a JSON number: `true`, `false` and numbers sent as strings are refused with 422 where they were read as numbers, in a strategy, a backtest request, an index, a risk model or optimisation request, feature rows and synthetic data. A risk model's `index_id` and `strategy_id` must be ids like any other.
|
|
25
|
+
|
|
11
26
|
## [0.9.3] - 2026-10-20
|
|
12
27
|
|
|
13
28
|
A strategy's holdings at any date, from the universe to the book, with each step explained, and a backtest editor that can offer pickers and rows for every structured setting.
|
|
@@ -371,7 +386,8 @@ The first release.
|
|
|
371
386
|
- An index or backtest never uses a price, rate or free float dated after the day it is working on.
|
|
372
387
|
- Requires Python 3.11 or later.
|
|
373
388
|
|
|
374
|
-
[Unreleased]: https://github.com/karanbh01/py-beacon/compare/v0.9.
|
|
389
|
+
[Unreleased]: https://github.com/karanbh01/py-beacon/compare/v0.9.4...HEAD
|
|
390
|
+
[0.9.4]: https://github.com/karanbh01/py-beacon/compare/v0.9.3...v0.9.4
|
|
375
391
|
[0.9.3]: https://github.com/karanbh01/py-beacon/compare/v0.9.2...v0.9.3
|
|
376
392
|
[0.9.2]: https://github.com/karanbh01/py-beacon/compare/v0.9.1...v0.9.2
|
|
377
393
|
[0.9.1]: https://github.com/karanbh01/py-beacon/compare/v0.9.0...v0.9.1
|
|
@@ -24,7 +24,8 @@ otherwise break that, and each is pinned:
|
|
|
24
24
|
* **Line endings.** `to_csv` follows the platform by default, so the same
|
|
25
25
|
frame written on Windows and Linux differs in every row. Pinned to ``\\n``.
|
|
26
26
|
* **The gzip header carries an mtime.** Two writes a second apart produce
|
|
27
|
-
different bytes for identical content. Pinned to 0
|
|
27
|
+
different bytes for identical content. Pinned to 0, and the header names no
|
|
28
|
+
file, so a file written under a staging name matches one written in place.
|
|
28
29
|
* **Manifest key order.** Written sorted.
|
|
29
30
|
|
|
30
31
|
Timestamps are deliberately *not* recorded in the manifest. The store's age is
|
|
@@ -51,6 +52,7 @@ import json
|
|
|
51
52
|
import logging
|
|
52
53
|
import zlib
|
|
53
54
|
from collections.abc import Callable
|
|
55
|
+
from concurrent.futures import Future, ThreadPoolExecutor
|
|
54
56
|
from dataclasses import dataclass
|
|
55
57
|
from pathlib import Path
|
|
56
58
|
from typing import TypeVar
|
|
@@ -109,8 +111,20 @@ SOURCE_IMPORTED = "imported"
|
|
|
109
111
|
# written on two platforms differs in every row.
|
|
110
112
|
_CSV_OPTIONS = {"index": False, "lineterminator": "\n"}
|
|
111
113
|
|
|
112
|
-
#
|
|
113
|
-
|
|
114
|
+
# BN-332: level 6 rather than gzip's default of 9. On 1.16M market rows level
|
|
115
|
+
# 9 took 14.1 s for a 29.4 MB file and level 6 8.2 s for 30.0 MB; written as
|
|
116
|
+
# below, level 6 costs no time at all, where level 9 would still cost some.
|
|
117
|
+
GZIP_LEVEL = 6
|
|
118
|
+
|
|
119
|
+
# Rows formatted at a time. Formatting holds the GIL and compression releases
|
|
120
|
+
# it, so each chunk is compressed on a second thread while the next is
|
|
121
|
+
# formatted, and the compression is hidden behind the formatting: 9.8 s for
|
|
122
|
+
# those 1.16M rows, against 24 s for one `to_csv` call at level 9. A chunk is
|
|
123
|
+
# also how far a save's progress moves at a time.
|
|
124
|
+
CHUNK_ROWS = 100_000
|
|
125
|
+
|
|
126
|
+
# Called with the share of a save done, from 0 to 1, and what is being saved.
|
|
127
|
+
SaveProgress = Callable[[float, str], None]
|
|
114
128
|
|
|
115
129
|
|
|
116
130
|
@dataclass(frozen=True)
|
|
@@ -263,9 +277,38 @@ def flatten_index(frame: pd.DataFrame) -> pd.DataFrame:
|
|
|
263
277
|
|
|
264
278
|
|
|
265
279
|
def _write_frame(frame: pd.DataFrame,
|
|
266
|
-
path: Path
|
|
267
|
-
|
|
268
|
-
|
|
280
|
+
path: Path,
|
|
281
|
+
progress: Callable[[float], None] | None = None) -> None:
|
|
282
|
+
"""Write one gzipped CSV reproducibly.
|
|
283
|
+
|
|
284
|
+
Args:
|
|
285
|
+
frame: What to write, its index left out.
|
|
286
|
+
path: The file to write.
|
|
287
|
+
progress: Called after each chunk with the share of the rows written.
|
|
288
|
+
"""
|
|
289
|
+
rows = len(frame)
|
|
290
|
+
|
|
291
|
+
with (path.open("wb") as handle,
|
|
292
|
+
gzip.GzipFile(filename="", mode="wb", fileobj=handle,
|
|
293
|
+
compresslevel=GZIP_LEVEL, mtime=0) as packed,
|
|
294
|
+
ThreadPoolExecutor(max_workers=1) as compressor):
|
|
295
|
+
pending: Future[int] | None = None
|
|
296
|
+
|
|
297
|
+
# One pass even for an empty frame, which still writes its header.
|
|
298
|
+
for start in range(0, max(rows, 1), CHUNK_ROWS):
|
|
299
|
+
text = frame.iloc[start:start + CHUNK_ROWS].to_csv(header=start == 0,
|
|
300
|
+
**_CSV_OPTIONS)
|
|
301
|
+
|
|
302
|
+
if pending is not None:
|
|
303
|
+
pending.result()
|
|
304
|
+
|
|
305
|
+
pending = compressor.submit(packed.write, text.encode("utf-8"))
|
|
306
|
+
|
|
307
|
+
if progress is not None:
|
|
308
|
+
progress(min(start + CHUNK_ROWS, rows) / rows if rows else 1.0)
|
|
309
|
+
|
|
310
|
+
if pending is not None:
|
|
311
|
+
pending.result()
|
|
269
312
|
|
|
270
313
|
|
|
271
314
|
def outdated(path: Path) -> str | None:
|
|
@@ -331,7 +374,8 @@ def _build(path: Path,
|
|
|
331
374
|
|
|
332
375
|
def save(fetcher: DataFetcher,
|
|
333
376
|
path: Path,
|
|
334
|
-
source: str = SOURCE_LOCAL
|
|
377
|
+
source: str = SOURCE_LOCAL,
|
|
378
|
+
progress: SaveProgress | None = None) -> Path:
|
|
335
379
|
"""Write a fetcher's data to a store directory.
|
|
336
380
|
|
|
337
381
|
Args:
|
|
@@ -341,29 +385,35 @@ def save(fetcher: DataFetcher,
|
|
|
341
385
|
than as one carrying empty files.
|
|
342
386
|
path: Directory to write into; created if absent.
|
|
343
387
|
source: Recorded in the manifest and reported by `/data/coverage`.
|
|
388
|
+
progress: Called as the files are written, with the share of the
|
|
389
|
+
save done (by rows) and what is being saved.
|
|
344
390
|
|
|
345
391
|
Returns:
|
|
346
392
|
Path: The directory written.
|
|
347
393
|
"""
|
|
348
394
|
path.mkdir(parents=True, exist_ok=True)
|
|
349
395
|
|
|
350
|
-
datasets = ["market"]
|
|
351
|
-
_write_frame(flatten_index(fetcher.market.data), path / MARKET_FILE)
|
|
352
|
-
|
|
353
|
-
if fetcher.reference is not None:
|
|
354
|
-
datasets.append("reference")
|
|
355
|
-
_write_frame(flatten_index(fetcher.reference.data), path / REFERENCE_FILE)
|
|
356
|
-
|
|
357
396
|
actions = fetcher.corporate_actions
|
|
358
|
-
if not actions.is_empty:
|
|
359
|
-
datasets.append("corporate_actions")
|
|
360
|
-
_write_frame(flatten_index(actions.data), path / ACTIONS_FILE)
|
|
361
|
-
|
|
362
397
|
features = fetcher.features
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
398
|
+
parts = [("market", "market data", fetcher.market.data, MARKET_FILE),
|
|
399
|
+
("reference", "reference data",
|
|
400
|
+
fetcher.reference.data if fetcher.reference is not None else None,
|
|
401
|
+
REFERENCE_FILE),
|
|
402
|
+
("corporate_actions", "corporate actions",
|
|
403
|
+
None if actions.is_empty else actions.data, ACTIONS_FILE),
|
|
404
|
+
("features", "features", None if features.is_empty else features.data,
|
|
405
|
+
FEATURES_FILE)]
|
|
406
|
+
written = [(name, label, frame, file) for name, label, frame, file in parts
|
|
407
|
+
if frame is not None]
|
|
408
|
+
total = sum(len(frame) for _, _, frame, _ in written) or 1
|
|
409
|
+
done = 0
|
|
410
|
+
|
|
411
|
+
for _, label, frame, file in written:
|
|
412
|
+
_write_frame(flatten_index(frame), path / file,
|
|
413
|
+
_share(progress, done, len(frame), total, f"Saving {label}"))
|
|
414
|
+
done += len(frame)
|
|
415
|
+
|
|
416
|
+
datasets = [name for name, _, _, _ in written]
|
|
367
417
|
manifest = {"schema_version": STORE_SCHEMA_VERSION,
|
|
368
418
|
"source": source,
|
|
369
419
|
"datasets": datasets}
|
|
@@ -376,6 +426,20 @@ def save(fetcher: DataFetcher,
|
|
|
376
426
|
return path
|
|
377
427
|
|
|
378
428
|
|
|
429
|
+
def _share(progress: SaveProgress | None,
|
|
430
|
+
done: int,
|
|
431
|
+
rows: int,
|
|
432
|
+
total: int,
|
|
433
|
+
message: str) -> Callable[[float], None] | None:
|
|
434
|
+
"""One file's progress as a share of the whole save, or None."""
|
|
435
|
+
if progress is None:
|
|
436
|
+
return None
|
|
437
|
+
|
|
438
|
+
report = progress
|
|
439
|
+
|
|
440
|
+
return lambda fraction: report((done + fraction * rows) / total, message)
|
|
441
|
+
|
|
442
|
+
|
|
379
443
|
def save_features(features: FeatureData,
|
|
380
444
|
path: Path) -> None:
|
|
381
445
|
"""Write a store's feature table, leaving its other datasets as they are.
|
|
@@ -28,6 +28,7 @@ from .data_stores import StoreRegistry # noqa: E402
|
|
|
28
28
|
from .errors import register_exception_handlers # noqa: E402
|
|
29
29
|
from .jobs import JobRegistry # noqa: E402
|
|
30
30
|
from .methods import LiteralPathMethods # noqa: E402
|
|
31
|
+
from .query_guard import single_valued_query # noqa: E402
|
|
31
32
|
from .routers import ( # noqa: E402
|
|
32
33
|
build_backtest_router,
|
|
33
34
|
build_coverage_router,
|
|
@@ -281,7 +282,8 @@ def create_app(config: ServerConfig) -> FastAPI:
|
|
|
281
282
|
|
|
282
283
|
# Auth and the documented error responses are applied at mount time, so a
|
|
283
284
|
# router cannot end up unauthenticated by forgetting to declare them.
|
|
284
|
-
|
|
285
|
+
# A repeated single-valued query parameter is refused too (BN-331).
|
|
286
|
+
guard = [Depends(verify_bearer_token), Depends(single_valued_query)]
|
|
285
287
|
for router in (build_data_router(),
|
|
286
288
|
build_reference_values_router(),
|
|
287
289
|
build_watchlists_router(),
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# src/beacon/server/query_guard.py
|
|
2
|
+
"""
|
|
3
|
+
A query parameter that takes one value is refused when it is given twice.
|
|
4
|
+
|
|
5
|
+
Without this, `?limit=10&limit=500` quietly answers with the last value, so a
|
|
6
|
+
client that built a URL wrong gets an answer to a question it did not ask. A
|
|
7
|
+
list parameter, such as `?fields=NAME&fields=SECTOR`, may repeat. Which is
|
|
8
|
+
which is read from the published OpenAPI document, so the rule is the
|
|
9
|
+
contract's rather than a second list kept beside it.
|
|
10
|
+
"""
|
|
11
|
+
# BN-331, found by the nightly fuzz run.
|
|
12
|
+
from collections import Counter
|
|
13
|
+
from typing import Any
|
|
14
|
+
|
|
15
|
+
from fastapi import Request
|
|
16
|
+
from fastapi.routing import APIRoute
|
|
17
|
+
|
|
18
|
+
from ..exceptions import InvalidArgumentError
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def single_valued_query(request: Request) -> None:
|
|
22
|
+
"""Refuse a repeated query parameter that takes a single value.
|
|
23
|
+
|
|
24
|
+
Raises:
|
|
25
|
+
InvalidArgumentError: Naming each parameter given more than once.
|
|
26
|
+
"""
|
|
27
|
+
counts = Counter(name for name, _ in request.query_params.multi_items())
|
|
28
|
+
repeated = {name for name, count in counts.items() if count > 1}
|
|
29
|
+
route = request.scope.get("route")
|
|
30
|
+
|
|
31
|
+
if not repeated or not isinstance(route, APIRoute):
|
|
32
|
+
return
|
|
33
|
+
|
|
34
|
+
single = repeated & _single_valued(request, route)
|
|
35
|
+
|
|
36
|
+
if single:
|
|
37
|
+
raise InvalidArgumentError(
|
|
38
|
+
f"Give {', '.join(f'`{name}`' for name in sorted(single))} once: "
|
|
39
|
+
f"{'it takes' if len(single) == 1 else 'each takes'} a single value.")
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def _single_valued(request: Request,
|
|
43
|
+
route: APIRoute) -> set[str]:
|
|
44
|
+
"""The route's query parameters that take one value, by the spec."""
|
|
45
|
+
operation = (request.app.openapi().get("paths", {}).get(route.path_format, {})
|
|
46
|
+
.get(request.method.lower(), {}))
|
|
47
|
+
|
|
48
|
+
return {parameter["name"] for parameter in operation.get("parameters", [])
|
|
49
|
+
if parameter.get("in") == "query" and not _is_list(parameter.get("schema", {}))}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def _is_list(schema: dict[str, Any]) -> bool:
|
|
53
|
+
"""Whether a parameter's schema takes an array, alone or among its arms."""
|
|
54
|
+
return any(arm.get("type") == "array" for arm in [schema, *schema.get("anyOf", [])])
|
|
@@ -457,7 +457,16 @@ def build_data_router() -> APIRouter:
|
|
|
457
457
|
"An adjusted series needs CLOSE among the columns requested, "
|
|
458
458
|
"because ADJ_CLOSE is derived from it.")
|
|
459
459
|
|
|
460
|
-
|
|
460
|
+
# BN-331: the parsed list, so the comma form names several columns,
|
|
461
|
+
# and an unknown column is refused rather than failing as a fault.
|
|
462
|
+
unknown = [name for name in wanted or [] if name not in fetcher.market_columns]
|
|
463
|
+
|
|
464
|
+
if unknown:
|
|
465
|
+
raise InvalidArgumentError(
|
|
466
|
+
f"No market-data column {', '.join(repr(name) for name in unknown)}. "
|
|
467
|
+
f"The columns are {', '.join(fetcher.market_columns)}.")
|
|
468
|
+
|
|
469
|
+
frame = fetcher.fetch_market_data(identifier, start, end, wanted)
|
|
461
470
|
|
|
462
471
|
if frame.empty:
|
|
463
472
|
raise DataNotFoundError(f"market data for '{identifier}'",
|
|
@@ -11,8 +11,9 @@ the claim.
|
|
|
11
11
|
The term-structure and roll reads resolve a spot price from the data source.
|
|
12
12
|
They still write nothing.
|
|
13
13
|
"""
|
|
14
|
+
import math
|
|
14
15
|
from collections.abc import Callable
|
|
15
|
-
from typing import Annotated, TypeVar
|
|
16
|
+
from typing import Annotated, Any, TypeVar
|
|
16
17
|
|
|
17
18
|
from ..._optional import require
|
|
18
19
|
from ...data.fetcher import DataFetcher
|
|
@@ -58,13 +59,39 @@ def _within_range(price: Callable[[], Priced]) -> Priced:
|
|
|
58
59
|
A rate, yield or time to expiry far outside any real value makes
|
|
59
60
|
``exp(rate * time)`` overflow. That is a mistake in the request, not a
|
|
60
61
|
fault in the engine (BN-250, found by the fuzz run, which answered 500).
|
|
62
|
+
Arithmetic that overflows without raising gives an infinity or NaN
|
|
63
|
+
instead, which would reach the client as null where a number is promised,
|
|
64
|
+
so a result holding one is refused the same way (BN-331).
|
|
61
65
|
"""
|
|
62
66
|
try:
|
|
63
|
-
|
|
67
|
+
priced = price()
|
|
64
68
|
except OverflowError as error:
|
|
65
|
-
raise
|
|
66
|
-
|
|
67
|
-
|
|
69
|
+
raise _too_large() from error
|
|
70
|
+
|
|
71
|
+
if not _finite(priced.model_dump() if hasattr(priced, "model_dump") else priced):
|
|
72
|
+
raise _too_large()
|
|
73
|
+
|
|
74
|
+
return priced
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def _too_large() -> InvalidArgumentError:
|
|
78
|
+
return InvalidArgumentError(
|
|
79
|
+
"These inputs give a value too large to represent. Check the "
|
|
80
|
+
"rates, the dividend yield and the time to expiry.")
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def _finite(value: Any) -> bool:
|
|
84
|
+
"""Whether every number in a dumped response is finite."""
|
|
85
|
+
if isinstance(value, float):
|
|
86
|
+
return math.isfinite(value)
|
|
87
|
+
|
|
88
|
+
if isinstance(value, dict):
|
|
89
|
+
return all(_finite(item) for item in value.values())
|
|
90
|
+
|
|
91
|
+
if isinstance(value, list | tuple):
|
|
92
|
+
return all(_finite(item) for item in value)
|
|
93
|
+
|
|
94
|
+
return True
|
|
68
95
|
|
|
69
96
|
|
|
70
97
|
def _data_fetcher(request: Request) -> DataFetcher:
|
|
@@ -183,6 +183,20 @@ IsoDate = Annotated[str, Field(pattern=ISO_DATE_PATTERN,
|
|
|
183
183
|
json_schema_extra={"format": "date"},
|
|
184
184
|
description="Calendar date, YYYY-MM-DD."),
|
|
185
185
|
AfterValidator(_real_date)]
|
|
186
|
+
# A number that must arrive as a number. Lax mode reads JSON `false` as 0.0,
|
|
187
|
+
# and the fuzz run priced a future with `time_to_expiry: false` -- a 200 for a
|
|
188
|
+
# contract expiring now, from a request the spec says is malformed (BN-131). A
|
|
189
|
+
# pricer is where that matters most: the answer looks like an answer.
|
|
190
|
+
#
|
|
191
|
+
# Per field rather than `strict=True` on the model, because FastAPI validates
|
|
192
|
+
# a body in Python mode, where a strict model also refuses a JSON array for a
|
|
193
|
+
# tuple -- and `dividends` is a list of pairs. An integer is still a number.
|
|
194
|
+
Number = Annotated[float, Field(strict=True)]
|
|
195
|
+
# A whole number stays a lax `int` (BN-331). A validator that refuses `true`
|
|
196
|
+
# hides each field's bounds from the published schema, and strict mode
|
|
197
|
+
# refuses 96.0, which JSON Schema counts as an integer.
|
|
198
|
+
|
|
199
|
+
|
|
186
200
|
Identifier = Annotated[str, Field(pattern=IDENTIFIER_PATTERN,
|
|
187
201
|
description="Letters, digits, dash and "
|
|
188
202
|
"underscore; up to 64.")]
|
|
@@ -1184,7 +1198,7 @@ class FeatureRow(BaseModel):
|
|
|
1184
1198
|
date: IsoDate
|
|
1185
1199
|
type: str = Field(min_length=1)
|
|
1186
1200
|
field: str = Field(min_length=1)
|
|
1187
|
-
value:
|
|
1201
|
+
value: Number
|
|
1188
1202
|
detail: str | None = None
|
|
1189
1203
|
|
|
1190
1204
|
|
|
@@ -1512,7 +1526,7 @@ class WeightingSpec(BaseModel):
|
|
|
1512
1526
|
min_length=1)
|
|
1513
1527
|
params: dict[str, Any] = Field(default_factory=dict,
|
|
1514
1528
|
description="Constructor arguments for the scheme.")
|
|
1515
|
-
max_weight:
|
|
1529
|
+
max_weight: Number | None = Field(
|
|
1516
1530
|
default=None,
|
|
1517
1531
|
description="Cap on any single constituent's weight, as a fraction "
|
|
1518
1532
|
"(0.1 is 10%). Applied after the scheme and iterated until "
|
|
@@ -1617,7 +1631,7 @@ class IndexDocument(BaseModel):
|
|
|
1617
1631
|
min_length=1, max_length=64)
|
|
1618
1632
|
name: str = Field(description="Display name.", min_length=1)
|
|
1619
1633
|
base_date: str = Field(description="Base date, YYYY-MM-DD.")
|
|
1620
|
-
base_value:
|
|
1634
|
+
base_value: Number = Field(description="Index level on the base date.")
|
|
1621
1635
|
currency: str = Field(description="Index currency.", min_length=3, max_length=3)
|
|
1622
1636
|
# Deliberately `str` rather than a Literal of the four cadences, even
|
|
1623
1637
|
# though that would put them in the OpenAPI document and stop the fuzz run
|
|
@@ -1664,7 +1678,7 @@ class IndexDocument(BaseModel):
|
|
|
1664
1678
|
"TOTAL_RETURN reinvests them across the index by shrinking "
|
|
1665
1679
|
"the divisor; NET_TOTAL_RETURN does the same after "
|
|
1666
1680
|
"withholding tax. PRICE is the default.")
|
|
1667
|
-
withholding_tax_rate:
|
|
1681
|
+
withholding_tax_rate: Number = Field(
|
|
1668
1682
|
default=0.0,
|
|
1669
1683
|
ge=0.0,
|
|
1670
1684
|
lt=1.0,
|
|
@@ -1915,15 +1929,6 @@ class RenderResult(BaseModel):
|
|
|
1915
1929
|
"gives two `rendered_at` values over identical content.")
|
|
1916
1930
|
|
|
1917
1931
|
|
|
1918
|
-
# A number that must arrive as a number. Lax mode reads JSON `false` as 0.0,
|
|
1919
|
-
# and the fuzz run priced a future with `time_to_expiry: false` -- a 200 for a
|
|
1920
|
-
# contract expiring now, from a request the spec says is malformed (BN-131). A
|
|
1921
|
-
# pricer is where that matters most: the answer looks like an answer.
|
|
1922
|
-
#
|
|
1923
|
-
# Per field rather than `strict=True` on the model, because FastAPI validates
|
|
1924
|
-
# a body in Python mode, where a strict model also refuses a JSON array for a
|
|
1925
|
-
# tuple -- and `dividends` is a list of pairs. An integer is still a number.
|
|
1926
|
-
Number = Annotated[float, Field(strict=True)]
|
|
1927
1932
|
|
|
1928
1933
|
|
|
1929
1934
|
class FuturesPriceRequest(BaseModel):
|
|
@@ -2177,12 +2182,12 @@ class RiskModelRequest(BaseModel):
|
|
|
2177
2182
|
default_factory=list,
|
|
2178
2183
|
description="Names to estimate over. Empty takes them from `index_id` "
|
|
2179
2184
|
"or `strategy_id`.")
|
|
2180
|
-
index_id:
|
|
2185
|
+
index_id: Identifier | None = Field(
|
|
2181
2186
|
default=None,
|
|
2182
2187
|
description="Take the names from this index's latest rebalance, "
|
|
2183
2188
|
"calculated, instead of listing them.")
|
|
2184
2189
|
# BN-313.
|
|
2185
|
-
strategy_id:
|
|
2190
|
+
strategy_id: Identifier | None = Field(
|
|
2186
2191
|
default=None,
|
|
2187
2192
|
description="Take the names from what this stored strategy held at "
|
|
2188
2193
|
"its latest run's last rebalance instead of listing them.")
|
|
@@ -2193,7 +2198,7 @@ class RiskModelRequest(BaseModel):
|
|
|
2193
2198
|
default="constant_correlation",
|
|
2194
2199
|
description="Structured target to shrink toward: 'constant_correlation' "
|
|
2195
2200
|
"or 'scaled_identity'.")
|
|
2196
|
-
intensity:
|
|
2201
|
+
intensity: Number | None = Field(
|
|
2197
2202
|
default=None,
|
|
2198
2203
|
description="Weight on the target, in [0, 1]. Null uses the heuristic "
|
|
2199
2204
|
"from the panel's shape; 0 gives the raw sample covariance, "
|
|
@@ -2523,7 +2528,7 @@ class OptimisationRunRequest(BaseModel):
|
|
|
2523
2528
|
default=None,
|
|
2524
2529
|
description="Start of the window the risk model is estimated over.")
|
|
2525
2530
|
end: str | None = Field(default=None, description="End of that window.")
|
|
2526
|
-
risk_free_rate:
|
|
2531
|
+
risk_free_rate: Number = Field(
|
|
2527
2532
|
default=0.0,
|
|
2528
2533
|
description="Used for the frontier's tangency point.")
|
|
2529
2534
|
|
|
@@ -3395,15 +3400,15 @@ class ImplementationSpec(BaseModel):
|
|
|
3395
3400
|
description="Which names may be held.")
|
|
3396
3401
|
caps: list[TypedSpec] = Field(default_factory=list,
|
|
3397
3402
|
description="How much of each may be held.")
|
|
3398
|
-
minimum_position: dict[str,
|
|
3403
|
+
minimum_position: dict[str, Number | None] | None = Field(
|
|
3399
3404
|
default=None,
|
|
3400
3405
|
description="Positions too small to keep: `value` (money, in the "
|
|
3401
3406
|
"book's currency) and `weight` (a fraction).")
|
|
3402
|
-
impact: dict[str,
|
|
3407
|
+
impact: dict[str, Number] | None = Field(
|
|
3403
3408
|
default=None,
|
|
3404
3409
|
description="Market impact: `coefficient` and `lookback_days`. Null "
|
|
3405
3410
|
"for none.")
|
|
3406
|
-
execution: dict[str,
|
|
3411
|
+
execution: dict[str, Number | None] | None = Field(
|
|
3407
3412
|
default=None,
|
|
3408
3413
|
description="Execution limits: `participation` (a fraction of the "
|
|
3409
3414
|
"day's volume), `days` and `lookback_days`. Null to trade "
|
|
@@ -3411,14 +3416,14 @@ class ImplementationSpec(BaseModel):
|
|
|
3411
3416
|
redistribution: str = Field(
|
|
3412
3417
|
default="pro_rata",
|
|
3413
3418
|
description="Where removed or capped weight goes: 'pro_rata' or 'cash'.")
|
|
3414
|
-
cash_buffer:
|
|
3419
|
+
cash_buffer: Number = Field(
|
|
3415
3420
|
default=0.0, ge=0.0, lt=1.0,
|
|
3416
3421
|
description="The share of the book kept in cash, a fraction.")
|
|
3417
3422
|
invest_flows: str = Field(
|
|
3418
3423
|
default="target",
|
|
3419
3424
|
description="What money arriving between rebalances buys: 'target' "
|
|
3420
3425
|
"(the last rebalance's weights) or 'holdings'.")
|
|
3421
|
-
equitise: dict[str,
|
|
3426
|
+
equitise: dict[str, Number | None] | None = Field(
|
|
3422
3427
|
default=None,
|
|
3423
3428
|
description="Index futures held on the uninvested cash, so the buffer "
|
|
3424
3429
|
"earns the index's return: `roll_days`, `roll_cost_bps` and "
|
|
@@ -3462,15 +3467,15 @@ class ModellingAssumptionsSpec(BaseModel):
|
|
|
3462
3467
|
free_float_backfill_days: int | None = Field(
|
|
3463
3468
|
default=None, ge=0,
|
|
3464
3469
|
description="Calendar days a reported free float carries over blanks.")
|
|
3465
|
-
cash_rate:
|
|
3470
|
+
cash_rate: Number | None = Field(
|
|
3466
3471
|
default=None, gt=-1.0, lt=1.0,
|
|
3467
3472
|
description="The annual rate cash earns, a fraction, ACT/365.")
|
|
3468
|
-
risk_free_rate:
|
|
3473
|
+
risk_free_rate: Number | None = Field(
|
|
3469
3474
|
default=None, gt=-1.0, lt=1.0,
|
|
3470
3475
|
description="The annual rate the Sharpe ratio is measured against.")
|
|
3471
3476
|
periods_per_year: int | None = Field(
|
|
3472
3477
|
default=None, ge=1, description="How many periods make a year.")
|
|
3473
|
-
withholding_tax_rate:
|
|
3478
|
+
withholding_tax_rate: Number | None = Field(
|
|
3474
3479
|
default=None, ge=0.0, lt=1.0,
|
|
3475
3480
|
description="The share of each dividend withheld, a fraction.")
|
|
3476
3481
|
volume_backfill_days: int | None = Field(
|
|
@@ -3492,14 +3497,14 @@ class ShareClassSpec(BaseModel):
|
|
|
3492
3497
|
default=False,
|
|
3493
3498
|
description="Whether it hedges its share of the assets into its currency with "
|
|
3494
3499
|
"a monthly forward. Needs a currency other than the book's.")
|
|
3495
|
-
hedge_ratio:
|
|
3500
|
+
hedge_ratio: Number = Field(
|
|
3496
3501
|
default=1.0, gt=0.0, le=2.0,
|
|
3497
3502
|
description="The share of its net assets it hedges, as a fraction: 1 for all.")
|
|
3498
|
-
hedge_band:
|
|
3503
|
+
hedge_band: Number | None = Field(
|
|
3499
3504
|
default=0.03, ge=0.0,
|
|
3500
3505
|
description="How far the hedge ratio may drift between monthly rolls before "
|
|
3501
3506
|
"the forward is resized, as a fraction. Null resizes only at rolls.")
|
|
3502
|
-
management_fee_bps:
|
|
3507
|
+
management_fee_bps: Number | None = Field(
|
|
3503
3508
|
default=None, ge=0.0,
|
|
3504
3509
|
description="The class's annual management fee in basis points. Null is the "
|
|
3505
3510
|
"vehicle's.")
|
|
@@ -3524,11 +3529,11 @@ class StrategyBacktestRequest(BaseModel):
|
|
|
3524
3529
|
default=None,
|
|
3525
3530
|
description="Start date, YYYY-MM-DD. Defaults to the index base date.")
|
|
3526
3531
|
end: str | None = Field(default=None, description="End date, YYYY-MM-DD.")
|
|
3527
|
-
initial_capital:
|
|
3532
|
+
initial_capital: Number | dict[str, Number] = Field(
|
|
3528
3533
|
default=1_000_000.0,
|
|
3529
3534
|
description="The capital the fund starts with, in the book's currency. With "
|
|
3530
3535
|
"share classes, by class name, each in its class's currency.")
|
|
3531
|
-
transaction_cost_bps:
|
|
3536
|
+
transaction_cost_bps: Number = Field(
|
|
3532
3537
|
default=0.0, ge=0,
|
|
3533
3538
|
description="Cost per trade in basis points of notional.")
|
|
3534
3539
|
benchmark: BenchmarkRef | None = Field(
|
|
@@ -7,7 +7,7 @@ from typing import Literal
|
|
|
7
7
|
|
|
8
8
|
from pydantic import BaseModel, ConfigDict, Field, model_validator
|
|
9
9
|
|
|
10
|
-
from .schemas import Identifier, IsoDate, LoadJobStatus, TolerantCollection
|
|
10
|
+
from .schemas import Identifier, IsoDate, LoadJobStatus, Number, TolerantCollection
|
|
11
11
|
|
|
12
12
|
# What a store is, physically: a py-beacon data folder, or a Postgres
|
|
13
13
|
# database read through tables or views in the import layout.
|
|
@@ -219,9 +219,9 @@ class GenerateSyntheticRequest(BaseModel):
|
|
|
219
219
|
default=None, ge=0,
|
|
220
220
|
description="Everything random is drawn from this, so the same seed "
|
|
221
221
|
"and settings always give the same data.")
|
|
222
|
-
risk_free_rate:
|
|
222
|
+
risk_free_rate: Number | None = Field(
|
|
223
223
|
default=None, description="Annualised, as a decimal.")
|
|
224
|
-
equity_premium:
|
|
224
|
+
equity_premium: Number | None = Field(
|
|
225
225
|
default=None,
|
|
226
226
|
description="Annualised excess return on a beta-one name, as a "
|
|
227
227
|
"decimal.")
|
|
@@ -45,6 +45,12 @@ logger = logging.getLogger(__name__)
|
|
|
45
45
|
# Matches the universe pane in the client, so the default generation fills it.
|
|
46
46
|
DEFAULT_ASSETS = 512
|
|
47
47
|
|
|
48
|
+
# Where the save sits in a write's progress (BN-332). The stages' fractions are
|
|
49
|
+
# shares of the time a write takes at the API's default size (6,000 names over
|
|
50
|
+
# ten years), measured on a desktop: about 66 s to generate and 100 s to save.
|
|
51
|
+
SAVE_START = 0.40
|
|
52
|
+
SAVE_END = 0.99
|
|
53
|
+
|
|
48
54
|
# A fixed window, so `generate(SyntheticConfig())` is reproducible on any day.
|
|
49
55
|
# The CLI defaults differently — it ends today, because demo data that stopped
|
|
50
56
|
# eighteen months ago reads as stale in every freshness indicator.
|
|
@@ -179,8 +185,9 @@ def generate(config: SyntheticConfig | None = None,
|
|
|
179
185
|
config: What to generate; defaults to 512 names over a fixed five-year
|
|
180
186
|
window.
|
|
181
187
|
progress: Called at each stage with the fraction done and what is
|
|
182
|
-
happening. The fractions are rough shares of the time
|
|
183
|
-
takes at the default size, not exact
|
|
188
|
+
happening. The fractions are rough shares of the time a whole
|
|
189
|
+
:func:`write` takes at the API's default size, not exact, so
|
|
190
|
+
generating alone ends near 0.40, where the save begins.
|
|
184
191
|
|
|
185
192
|
Returns:
|
|
186
193
|
SyntheticDataset: The panels and the parameters behind them.
|
|
@@ -202,18 +209,18 @@ def generate(config: SyntheticConfig | None = None,
|
|
|
202
209
|
f"{settings.calendar} has no sessions between {settings.start} "
|
|
203
210
|
f"and {settings.end}.")
|
|
204
211
|
|
|
205
|
-
progress(0.
|
|
212
|
+
progress(0.01, "Building the universe")
|
|
206
213
|
names = universe.build(settings.assets, rng, dates=dates,
|
|
207
214
|
currency=settings.currency,
|
|
208
215
|
delisting_rate=settings.delisting_rate,
|
|
209
216
|
listing_rate=settings.listing_rate)
|
|
210
217
|
|
|
211
|
-
progress(0.
|
|
218
|
+
progress(0.02, "Simulating returns")
|
|
212
219
|
panel = returns.simulate(names, dates, rng,
|
|
213
220
|
risk_free_rate=settings.risk_free_rate,
|
|
214
221
|
equity_premium=settings.equity_premium)
|
|
215
222
|
|
|
216
|
-
progress(0.
|
|
223
|
+
progress(0.05, "Building prices and corporate actions")
|
|
217
224
|
market_frame, action_frame = prices.build(names, panel, rng)
|
|
218
225
|
|
|
219
226
|
# FX pairs live in the market data as identifiers of their own, and a
|
|
@@ -221,13 +228,13 @@ def generate(config: SyntheticConfig | None = None,
|
|
|
221
228
|
# exchange rate has no volume, no shares outstanding and no free float,
|
|
222
229
|
# and inventing zeros for those would make an FX row answer questions it
|
|
223
230
|
# has no answer to.
|
|
224
|
-
progress(0.
|
|
231
|
+
progress(0.16, "Generating exchange rates")
|
|
225
232
|
rates = fx.build(dates, rng)
|
|
226
233
|
|
|
227
234
|
# Derived from the prices above rather than drawn beside them: a P/E that
|
|
228
235
|
# contradicts the price series in the same dataset would make a valuation
|
|
229
236
|
# screen and a price screen disagree about the same company.
|
|
230
|
-
progress(0.
|
|
237
|
+
progress(0.17, "Generating features")
|
|
231
238
|
close = market_frame.pivot(index="DATE", columns="IDENTIFIER",
|
|
232
239
|
values="CLOSE") if settings.features else None
|
|
233
240
|
feature_rows = (features_module.build(names, close, panel, rng)
|
|
@@ -236,7 +243,7 @@ def generate(config: SyntheticConfig | None = None,
|
|
|
236
243
|
# The profile fields a client's instrument view needs. Generated from the
|
|
237
244
|
# universe rather than beside it, so status agrees with the listing dates
|
|
238
245
|
# and dividend frequency agrees with the dividends (BN-148).
|
|
239
|
-
progress(0.
|
|
246
|
+
progress(0.36, "Writing profiles")
|
|
240
247
|
profile = profiles.build(names, rng, dates[-1])
|
|
241
248
|
|
|
242
249
|
logger.info("Generated %d identifier(s) over %d %s session(s) (seed %d).",
|
|
@@ -273,8 +280,10 @@ def write(config: SyntheticConfig,
|
|
|
273
280
|
"""
|
|
274
281
|
dataset = generate(config, progress)
|
|
275
282
|
|
|
276
|
-
progress(
|
|
277
|
-
written = store.save(dataset.fetcher(), path, source=store.SOURCE_SYNTHETIC
|
|
283
|
+
progress(SAVE_START, "Saving the store")
|
|
284
|
+
written = store.save(dataset.fetcher(), path, source=store.SOURCE_SYNTHETIC,
|
|
285
|
+
progress=lambda fraction, message: progress(
|
|
286
|
+
SAVE_START + (SAVE_END - SAVE_START) * fraction, message))
|
|
278
287
|
state.save(written, settings_of(config), dataset.universe)
|
|
279
288
|
progress(1.0, "Done")
|
|
280
289
|
|