py-beacon-kit 0.9.1__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.
Files changed (547) hide show
  1. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/CHANGELOG.md +12 -1
  2. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/PKG-INFO +2 -1
  3. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/README.md +1 -0
  4. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/__init__.py +1 -1
  5. py_beacon_kit-0.9.2/src/beacon/analysis/comparison.py +244 -0
  6. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/metrics.py +14 -0
  7. py_beacon_kit-0.9.2/src/beacon/data/reference_as_of.py +147 -0
  8. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/expressions/catalogue.py +24 -1
  9. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/backtests.py +23 -16
  10. py_beacon_kit-0.9.2/src/beacon/server/comparisons.py +78 -0
  11. py_beacon_kit-0.9.2/src/beacon/server/holding_reference.py +141 -0
  12. py_beacon_kit-0.9.2/src/beacon/server/periods.py +64 -0
  13. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/routers/indices.py +28 -8
  14. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/routers/optimise.py +35 -7
  15. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/routers/strategy_runs.py +116 -17
  16. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/schemas.py +172 -0
  17. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_api_contract.py +13 -4
  18. py_beacon_kit-0.9.2/tests/test_comparison.py +129 -0
  19. py_beacon_kit-0.9.2/tests/test_reference_as_of.py +112 -0
  20. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_backtest.py +7 -3
  21. py_beacon_kit-0.9.2/tests/test_server_comparisons.py +205 -0
  22. py_beacon_kit-0.9.2/tests/test_server_holding_reference.py +238 -0
  23. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_optimised_indices.py +2 -1
  24. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/.gitignore +0 -0
  25. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/LICENSE.txt +0 -0
  26. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/examples/01_index_and_backtest.ipynb +0 -0
  27. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/examples/02_backtest_analysis.ipynb +0 -0
  28. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/examples/03_index_futures.ipynb +0 -0
  29. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/examples/04_optimised_index.ipynb +0 -0
  30. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/examples/05_optimised_backtest.ipynb +0 -0
  31. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/examples/README.md +0 -0
  32. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/examples/data/templates/equities_corp_actions_data.xlsx +0 -0
  33. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/examples/data/templates/equities_fundamental_data.xlsx +0 -0
  34. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/examples/data/templates/equities_market_data.xlsx +0 -0
  35. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/examples/data/templates/equities_reference_data.xlsx +0 -0
  36. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/examples/data/templates/fx_rates_data.xlsx +0 -0
  37. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/pyproject.toml +0 -0
  38. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/_optional.py +0 -0
  39. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/analysis/__init__.py +0 -0
  40. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/analysis/attribution.py +0 -0
  41. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/analysis/concentration.py +0 -0
  42. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/analysis/etf/__init__.py +0 -0
  43. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/analysis/etf/analytics.py +0 -0
  44. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/analysis/liquidity.py +0 -0
  45. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/analysis/relative.py +0 -0
  46. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/analysis/risk.py +0 -0
  47. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/asset/__init__.py +0 -0
  48. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/asset/base.py +0 -0
  49. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/asset/bond.py +0 -0
  50. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/asset/commodity.py +0 -0
  51. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/asset/equity.py +0 -0
  52. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/asset/view.py +0 -0
  53. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/assumptions.py +0 -0
  54. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/__init__.py +0 -0
  55. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/accounting.py +0 -0
  56. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/asset_view.py +0 -0
  57. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/books.py +0 -0
  58. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/capacity.py +0 -0
  59. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/class_benchmark.py +0 -0
  60. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/costs.py +0 -0
  61. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/dealing.py +0 -0
  62. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/dividends.py +0 -0
  63. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/engine.py +0 -0
  64. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/etf.py +0 -0
  65. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/execution.py +0 -0
  66. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/flows.py +0 -0
  67. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/futures.py +0 -0
  68. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/hedging.py +0 -0
  69. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/implementation.py +0 -0
  70. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/limits.py +0 -0
  71. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/listings.py +0 -0
  72. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/main.py +0 -0
  73. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/presets.py +0 -0
  74. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/pricing.py +0 -0
  75. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/redistribution.py +0 -0
  76. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/result.py +0 -0
  77. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/rules.py +0 -0
  78. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/screens.py +0 -0
  79. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/settings.py +0 -0
  80. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/share_classes.py +0 -0
  81. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/swap.py +0 -0
  82. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/vehicle.py +0 -0
  83. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/backtest/withholding.py +0 -0
  84. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/catalogue.py +0 -0
  85. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/changelog.py +0 -0
  86. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/data/__init__.py +0 -0
  87. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/data/adjustment.py +0 -0
  88. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/data/base.py +0 -0
  89. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/data/corporate_actions.py +0 -0
  90. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/data/features.py +0 -0
  91. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/data/fetcher.py +0 -0
  92. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/data/free_float.py +0 -0
  93. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/data/fx.py +0 -0
  94. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/data/identifiers.py +0 -0
  95. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/data/importing.py +0 -0
  96. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/data/ingest.py +0 -0
  97. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/data/kinds.py +0 -0
  98. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/data/layout.py +0 -0
  99. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/data/loader.py +0 -0
  100. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/data/postgres.py +0 -0
  101. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/data/prices.py +0 -0
  102. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/data/session.py +0 -0
  103. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/data/store.py +0 -0
  104. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/derivatives/__init__.py +0 -0
  105. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/derivatives/base.py +0 -0
  106. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/derivatives/curves.py +0 -0
  107. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/derivatives/forwards.py +0 -0
  108. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/derivatives/futures.py +0 -0
  109. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/derivatives/pricing.py +0 -0
  110. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/derivatives/swaps.py +0 -0
  111. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/derivatives/term_structure.py +0 -0
  112. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/environment/__init__.py +0 -0
  113. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/environment/config.py +0 -0
  114. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/exceptions.py +0 -0
  115. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/expressions/__init__.py +0 -0
  116. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/expressions/core.py +0 -0
  117. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/expressions/namespaces.py +0 -0
  118. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/expressions/resolve.py +0 -0
  119. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/expressions/stubs.py +0 -0
  120. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/expressions/validation.py +0 -0
  121. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/fund/__init__.py +0 -0
  122. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/fund/fund.py +0 -0
  123. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/index/__init__.py +0 -0
  124. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/index/asset_view.py +0 -0
  125. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/index/cache.py +0 -0
  126. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/index/calculation/__init__.py +0 -0
  127. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/index/calculation/calculator.py +0 -0
  128. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/index/calculation/corporate_actions.py +0 -0
  129. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/index/calculation/deletions.py +0 -0
  130. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/index/calculation/market_values.py +0 -0
  131. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/index/calculation/price_gaps.py +0 -0
  132. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/index/calculation/selection.py +0 -0
  133. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/index/calculation/total_return.py +0 -0
  134. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/index/capping.py +0 -0
  135. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/index/chaining.py +0 -0
  136. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/index/constructor.py +0 -0
  137. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/index/context.py +0 -0
  138. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/index/derived.py +0 -0
  139. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/index/expression_rules.py +0 -0
  140. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/index/feature_rules.py +0 -0
  141. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/index/methodology.py +0 -0
  142. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/index/requirements.py +0 -0
  143. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/index/result.py +0 -0
  144. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/index/schedule.py +0 -0
  145. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/optimise/__init__.py +0 -0
  146. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/optimise/config.py +0 -0
  147. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/optimise/constraints.py +0 -0
  148. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/optimise/frontier.py +0 -0
  149. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/optimise/result.py +0 -0
  150. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/optimise/solver.py +0 -0
  151. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/__init__.py +0 -0
  152. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/accessors.py +0 -0
  153. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/analysis_charts.py +0 -0
  154. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/arrange.py +0 -0
  155. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/base.py +0 -0
  156. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/charts/__init__.py +0 -0
  157. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/charts/bars.py +0 -0
  158. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/charts/base.py +0 -0
  159. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/charts/data.py +0 -0
  160. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/charts/grid.py +0 -0
  161. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/charts/heatmap.py +0 -0
  162. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/charts/lines.py +0 -0
  163. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/charts/points.py +0 -0
  164. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/charts/table.py +0 -0
  165. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/colormaps.py +0 -0
  166. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/colours.py +0 -0
  167. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/comparison.py +0 -0
  168. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/dateticks.py +0 -0
  169. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/design.py +0 -0
  170. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/fitting.py +0 -0
  171. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/fonts/InterTight-Light.ttf +0 -0
  172. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/fonts/InterTight-LightItalic.ttf +0 -0
  173. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/fonts/InterTight-Regular.ttf +0 -0
  174. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/fonts/OFL-InterTight.txt +0 -0
  175. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/fonts/OFL-SourceSerif4.txt +0 -0
  176. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/fonts/SourceSerif4-Italic350.ttf +0 -0
  177. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/frame.py +0 -0
  178. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/gridding.py +0 -0
  179. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/groups.py +0 -0
  180. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/interactive/__init__.py +0 -0
  181. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/interactive/axes.py +0 -0
  182. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/interactive/baseline.py +0 -0
  183. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/interactive/figure.py +0 -0
  184. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/interactive/frame.py +0 -0
  185. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/interactive/html.py +0 -0
  186. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/interactive/popup.py +0 -0
  187. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/interactive/readout.py +0 -0
  188. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/interactive/spines.py +0 -0
  189. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/interactive/traces.py +0 -0
  190. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/interactive/units.py +0 -0
  191. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/layout.py +0 -0
  192. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/legend.py +0 -0
  193. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/mark.py +0 -0
  194. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/marks.py +0 -0
  195. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/metrics.py +0 -0
  196. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/notes.py +0 -0
  197. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/paint.py +0 -0
  198. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/panels.py +0 -0
  199. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/style.py +0 -0
  200. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/tables/__init__.py +0 -0
  201. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/tables/css.py +0 -0
  202. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/tables/draw.py +0 -0
  203. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/tables/fonts.py +0 -0
  204. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/tables/geometry.py +0 -0
  205. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/tables/html.py +0 -0
  206. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/tables/model.py +0 -0
  207. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/tables/paint.py +0 -0
  208. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/tables/script.py +0 -0
  209. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/tables/sizes.py +0 -0
  210. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/themes.py +0 -0
  211. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/ticks.py +0 -0
  212. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/plot/webfonts.py +0 -0
  213. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/portfolio/__init__.py +0 -0
  214. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/portfolio/asset_view.py +0 -0
  215. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/portfolio/base.py +0 -0
  216. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/portfolio/cash_flows.py +0 -0
  217. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/portfolio/history.py +0 -0
  218. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/portfolio/reporting.py +0 -0
  219. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/py.typed +0 -0
  220. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/report/__init__.py +0 -0
  221. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/report/blocks.py +0 -0
  222. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/report/pdf.py +0 -0
  223. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/risk/__init__.py +0 -0
  224. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/risk/contribution.py +0 -0
  225. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/risk/covariance.py +0 -0
  226. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/risk/factors.py +0 -0
  227. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/risk/model.py +0 -0
  228. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/__init__.py +0 -0
  229. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/__main__.py +0 -0
  230. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/active_data.py +0 -0
  231. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/app.py +0 -0
  232. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/backtest_options.py +0 -0
  233. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/backtest_settings.py +0 -0
  234. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/benchmarks.py +0 -0
  235. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/config.py +0 -0
  236. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/constraints.py +0 -0
  237. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/data_stores.py +0 -0
  238. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/definitions.py +0 -0
  239. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/derivative_records.py +0 -0
  240. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/derivatives.py +0 -0
  241. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/documents.py +0 -0
  242. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/errors.py +0 -0
  243. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/index_level.py +0 -0
  244. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/jobs.py +0 -0
  245. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/market_caps.py +0 -0
  246. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/methods.py +0 -0
  247. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/optimisation.py +0 -0
  248. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/preview.py +0 -0
  249. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/reference.py +0 -0
  250. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/reports.py +0 -0
  251. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/risk.py +0 -0
  252. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/routers/__init__.py +0 -0
  253. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/routers/backtest.py +0 -0
  254. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/routers/coverage.py +0 -0
  255. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/routers/data.py +0 -0
  256. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/routers/derivatives.py +0 -0
  257. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/routers/importing.py +0 -0
  258. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/routers/jobs.py +0 -0
  259. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/routers/refresh.py +0 -0
  260. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/routers/reports.py +0 -0
  261. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/routers/risk.py +0 -0
  262. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/routers/stores.py +0 -0
  263. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/routers/strategies.py +0 -0
  264. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/routers/synthetic.py +0 -0
  265. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/routers/universes.py +0 -0
  266. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/routers/watchlists.py +0 -0
  267. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/runs.py +0 -0
  268. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/security.py +0 -0
  269. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/serialisation.py +0 -0
  270. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/share_class_results.py +0 -0
  271. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/share_class_settings.py +0 -0
  272. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/store.py +0 -0
  273. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/store_schemas.py +0 -0
  274. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/strategies.py +0 -0
  275. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/strategy_runs.py +0 -0
  276. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/strategy_schemas.py +0 -0
  277. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/types.py +0 -0
  278. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/views.py +0 -0
  279. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/server/weights.py +0 -0
  280. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/sources.py +0 -0
  281. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/strategy/__init__.py +0 -0
  282. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/strategy/active.py +0 -0
  283. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/strategy/allocations.py +0 -0
  284. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/strategy/base.py +0 -0
  285. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/strategy/constraints.py +0 -0
  286. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/strategy/constructions.py +0 -0
  287. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/strategy/futures.py +0 -0
  288. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/strategy/signals.py +0 -0
  289. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/strategy/synthetic.py +0 -0
  290. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/strategy/tracking.py +0 -0
  291. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/synthetic/__init__.py +0 -0
  292. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/synthetic/__main__.py +0 -0
  293. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/synthetic/dataset.py +0 -0
  294. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/synthetic/extend.py +0 -0
  295. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/synthetic/features.py +0 -0
  296. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/synthetic/fx.py +0 -0
  297. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/synthetic/listings.py +0 -0
  298. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/synthetic/prices.py +0 -0
  299. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/synthetic/profiles.py +0 -0
  300. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/synthetic/regimes.py +0 -0
  301. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/synthetic/regions.py +0 -0
  302. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/synthetic/returns.py +0 -0
  303. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/synthetic/state.py +0 -0
  304. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/synthetic/universe.py +0 -0
  305. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/testing/__init__.py +0 -0
  306. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/testing/dataset.py +0 -0
  307. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/testing/weights.py +0 -0
  308. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/tokens/__init__.py +0 -0
  309. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/tokens/colors.json +0 -0
  310. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/src/beacon/universe.py +0 -0
  311. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_annual_returns_dark.png +0 -0
  312. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_annual_returns_light.png +0 -0
  313. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_area_filled_dark.png +0 -0
  314. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_area_filled_light.png +0 -0
  315. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_area_stacked_dark.png +0 -0
  316. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_area_stacked_light.png +0 -0
  317. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_bar_capped_dark.png +0 -0
  318. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_bar_capped_light.png +0 -0
  319. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_blended_both_dark.png +0 -0
  320. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_blended_both_light.png +0 -0
  321. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_boxed_dark.png +0 -0
  322. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_boxed_light.png +0 -0
  323. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_column_grouped_dark.png +0 -0
  324. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_column_grouped_light.png +0 -0
  325. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_column_signed_dark.png +0 -0
  326. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_column_signed_light.png +0 -0
  327. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_combo_daily_dark.png +0 -0
  328. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_combo_daily_light.png +0 -0
  329. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_compare_dark.png +0 -0
  330. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_compare_light.png +0 -0
  331. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_constituents_dark.png +0 -0
  332. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_constituents_light.png +0 -0
  333. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_contributions_dark.png +0 -0
  334. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_contributions_light.png +0 -0
  335. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_correlation_dark.png +0 -0
  336. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_correlation_light.png +0 -0
  337. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_exposures_dark.png +0 -0
  338. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_exposures_light.png +0 -0
  339. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_frontier_dark.png +0 -0
  340. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_frontier_light.png +0 -0
  341. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_grid_one_by_three_dark.png +0 -0
  342. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_grid_one_by_three_light.png +0 -0
  343. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_grid_spanning_dark.png +0 -0
  344. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_grid_spanning_light.png +0 -0
  345. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_grid_two_by_two_dark.png +0 -0
  346. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_grid_two_by_two_light.png +0 -0
  347. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_group_and_row_boxes_dark.png +0 -0
  348. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_group_and_row_boxes_light.png +0 -0
  349. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_heatmap_blended_dark.png +0 -0
  350. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_heatmap_blended_light.png +0 -0
  351. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_heatmap_correlation_dark.png +0 -0
  352. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_heatmap_correlation_light.png +0 -0
  353. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_heatmap_monthly_dark.png +0 -0
  354. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_heatmap_monthly_light.png +0 -0
  355. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_histogram_dark.png +0 -0
  356. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_histogram_light.png +0 -0
  357. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_level_dark.png +0 -0
  358. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_level_light.png +0 -0
  359. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_line_dark.png +0 -0
  360. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_line_light.png +0 -0
  361. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_line_periods_dark.png +0 -0
  362. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_line_periods_light.png +0 -0
  363. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_line_secondary_dark.png +0 -0
  364. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_line_secondary_light.png +0 -0
  365. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_lines_dark.png +0 -0
  366. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_lines_light.png +0 -0
  367. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_one_column_without_values_dark.png +0 -0
  368. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_one_column_without_values_light.png +0 -0
  369. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_performance_dark.png +0 -0
  370. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_performance_light.png +0 -0
  371. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_plain_dark.png +0 -0
  372. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_plain_light.png +0 -0
  373. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_row_group_headings_dark.png +0 -0
  374. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_row_group_headings_light.png +0 -0
  375. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_scatter_fitted_dark.png +0 -0
  376. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_scatter_fitted_light.png +0 -0
  377. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_scatter_origin_dark.png +0 -0
  378. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_scatter_origin_light.png +0 -0
  379. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_squares_faded_dark.png +0 -0
  380. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_squares_faded_light.png +0 -0
  381. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_stripes_dark.png +0 -0
  382. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_stripes_light.png +0 -0
  383. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_weights_dark.png +0 -0
  384. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/baseline/test_weights_light.png +0 -0
  385. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/conftest.py +0 -0
  386. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/docstyle.py +0 -0
  387. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_adjustment.py +0 -0
  388. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_asset.py +0 -0
  389. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_asset_view.py +0 -0
  390. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_attribution.py +0 -0
  391. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_backtest_capacity.py +0 -0
  392. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_backtest_dealing.py +0 -0
  393. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_backtest_dividends.py +0 -0
  394. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_backtest_engine.py +0 -0
  395. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_backtest_engine_integration.py +0 -0
  396. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_backtest_etf.py +0 -0
  397. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_backtest_execution.py +0 -0
  398. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_backtest_fills.py +0 -0
  399. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_backtest_flows.py +0 -0
  400. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_backtest_hedged_classes.py +0 -0
  401. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_backtest_main.py +0 -0
  402. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_backtest_modifier.py +0 -0
  403. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_backtest_pricing.py +0 -0
  404. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_backtest_result.py +0 -0
  405. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_backtest_share_classes.py +0 -0
  406. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_backtest_stages.py +0 -0
  407. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_backtest_withholding.py +0 -0
  408. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_benchmark.py +0 -0
  409. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_book_currency.py +0 -0
  410. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_canonical_dataset_integration.py +0 -0
  411. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_capping.py +0 -0
  412. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_catalogue.py +0 -0
  413. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_chaining.py +0 -0
  414. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_changelog.py +0 -0
  415. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_chart_images.py +0 -0
  416. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_class_benchmark.py +0 -0
  417. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_concentration.py +0 -0
  418. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_constraint_catalogue.py +0 -0
  419. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_corporate_action_kind.py +0 -0
  420. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_corporate_actions.py +0 -0
  421. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_coverage_fields.py +0 -0
  422. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_currency_conversion.py +0 -0
  423. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_daily_weights.py +0 -0
  424. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_data_fetcher.py +0 -0
  425. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_data_import.py +0 -0
  426. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_data_kinds.py +0 -0
  427. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_data_store.py +0 -0
  428. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_data_tables.py +0 -0
  429. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_derivatives_base.py +0 -0
  430. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_derivatives_curves.py +0 -0
  431. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_derivatives_etf_future.py +0 -0
  432. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_derivatives_futures.py +0 -0
  433. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_derivatives_pricing.py +0 -0
  434. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_derivatives_swaps.py +0 -0
  435. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_derived_index.py +0 -0
  436. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_docs_examples.py +0 -0
  437. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_docs_style.py +0 -0
  438. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_effective_lag.py +0 -0
  439. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_examples.py +0 -0
  440. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_expression_namespaces.py +0 -0
  441. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_expression_rules.py +0 -0
  442. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_expression_schema.py +0 -0
  443. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_expression_validation.py +0 -0
  444. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_expressions.py +0 -0
  445. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_factors.py +0 -0
  446. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_feature_rules.py +0 -0
  447. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_features.py +0 -0
  448. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_free_float_backfill.py +0 -0
  449. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_frontier.py +0 -0
  450. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_fund_record.py +0 -0
  451. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_fx_data.py +0 -0
  452. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_fx_pairs.py +0 -0
  453. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_fx_routes.py +0 -0
  454. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_identifier_search.py +0 -0
  455. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_index_asset_view.py +0 -0
  456. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_index_batch_reads.py +0 -0
  457. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_index_cache.py +0 -0
  458. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_index_calculator.py +0 -0
  459. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_index_calculator_integration.py +0 -0
  460. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_index_currency.py +0 -0
  461. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_index_definition.py +0 -0
  462. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_index_eligibility.py +0 -0
  463. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_index_result.py +0 -0
  464. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_index_schedule.py +0 -0
  465. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_index_selection.py +0 -0
  466. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_index_weighting.py +0 -0
  467. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_ingest.py +0 -0
  468. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_integration.py +0 -0
  469. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_job_persistence.py +0 -0
  470. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_look_ahead.py +0 -0
  471. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_modelling_assumptions.py +0 -0
  472. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_optimise.py +0 -0
  473. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_optional_dependencies.py +0 -0
  474. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_plot.py +0 -0
  475. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_plot_charts.py +0 -0
  476. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_plot_design.py +0 -0
  477. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_plot_frame.py +0 -0
  478. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_plot_grid.py +0 -0
  479. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_plot_heatmap.py +0 -0
  480. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_plot_images.py +0 -0
  481. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_plot_interactive.py +0 -0
  482. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_plot_layout.py +0 -0
  483. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_plot_table.py +0 -0
  484. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_portfolio.py +0 -0
  485. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_portfolio_asset_view.py +0 -0
  486. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_postgres_store.py +0 -0
  487. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_properties.py +0 -0
  488. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_read_volume.py +0 -0
  489. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_readme.py +0 -0
  490. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_reference_currency.py +0 -0
  491. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_reference_dimensions.py +0 -0
  492. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_reference_profile.py +0 -0
  493. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_report.py +0 -0
  494. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_reporting.py +0 -0
  495. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_requirements.py +0 -0
  496. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_risk_contribution.py +0 -0
  497. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_risk_model.py +0 -0
  498. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server.py +0 -0
  499. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_backtest_settings.py +0 -0
  500. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_cors.py +0 -0
  501. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_data_router.py +0 -0
  502. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_data_stores.py +0 -0
  503. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_derivative_records.py +0 -0
  504. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_derivatives.py +0 -0
  505. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_document_faults.py +0 -0
  506. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_features.py +0 -0
  507. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_import.py +0 -0
  508. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_index_level.py +0 -0
  509. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_indices.py +0 -0
  510. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_jobs.py +0 -0
  511. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_listing_discovery.py +0 -0
  512. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_optimise.py +0 -0
  513. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_preview.py +0 -0
  514. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_preview_caps.py +0 -0
  515. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_preview_document.py +0 -0
  516. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_preview_optimised.py +0 -0
  517. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_reference_batch.py +0 -0
  518. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_refresh.py +0 -0
  519. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_reports.py +0 -0
  520. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_risk.py +0 -0
  521. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_share_classes.py +0 -0
  522. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_store.py +0 -0
  523. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_strategies.py +0 -0
  524. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_strategy_runs.py +0 -0
  525. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_synthetic.py +0 -0
  526. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_universes.py +0 -0
  527. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_views.py +0 -0
  528. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_server_weights_rows.py +0 -0
  529. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_session_agreement.py +0 -0
  530. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_spec_conformance.py +0 -0
  531. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_splits.py +0 -0
  532. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_stale_prices.py +0 -0
  533. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_strategy_active.py +0 -0
  534. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_strategy_constructions.py +0 -0
  535. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_strategy_futures.py +0 -0
  536. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_strategy_synthetic.py +0 -0
  537. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_strategy_tracking.py +0 -0
  538. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_survivorship.py +0 -0
  539. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_synthetic.py +0 -0
  540. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_synthetic_extend.py +0 -0
  541. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_synthetic_features.py +0 -0
  542. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_table_images.py +0 -0
  543. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_testing_dataset.py +0 -0
  544. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_tokens.py +0 -0
  545. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_total_return.py +0 -0
  546. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_universe_batch_reads.py +0 -0
  547. {py_beacon_kit-0.9.1 → py_beacon_kit-0.9.2}/tests/test_universe_filters.py +0 -0
@@ -8,6 +8,16 @@ 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
+
11
21
  ## [0.9.1] - 2026-10-18
12
22
 
13
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.
@@ -341,7 +351,8 @@ The first release.
341
351
  - An index or backtest never uses a price, rate or free float dated after the day it is working on.
342
352
  - Requires Python 3.11 or later.
343
353
 
344
- [Unreleased]: https://github.com/karanbh01/py-beacon/compare/v0.9.1...HEAD
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
345
356
  [0.9.1]: https://github.com/karanbh01/py-beacon/compare/v0.9.0...v0.9.1
346
357
  [0.9.0]: https://github.com/karanbh01/py-beacon/compare/v0.8.1...v0.9.0
347
358
  [0.8.1]: https://github.com/karanbh01/py-beacon/compare/v0.8.0...v0.8.1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: py-beacon-kit
3
- Version: 0.9.1
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
 
@@ -134,6 +134,7 @@ pd.DataFrame({"Portfolio": result.summary()}).round(4)
134
134
  | volatility | 0.1214 |
135
135
  | sharpe_ratio | 1.0950 |
136
136
  | max_drawdown | -0.1148 |
137
+ | hit_rate_monthly | 0.5000 |
137
138
  | tracking_error | 0.0005 |
138
139
  | tracking_difference | -0.0008 |
139
140
 
@@ -3,7 +3,7 @@
3
3
  py-beacon, an end-to-end toolkit for index, ETF, and Delta-1 derivatives
4
4
  development.
5
5
  """
6
- __version__ = "0.9.1"
6
+ __version__ = "0.9.2"
7
7
 
8
8
  from . import derivatives
9
9
  from .assumptions import (
@@ -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
 
@@ -28,6 +28,7 @@ from ..portfolio.cash_flows import FEE
28
28
  from .backtest_settings import ACTIVE, INDEX_TRACKING, BuiltSettings
29
29
  from .backtest_settings import build as build_settings
30
30
  from .benchmarks import resolve_benchmark
31
+ from .comparisons import Comparators, comparison_payloads
31
32
  from .definitions import build_definition
32
33
  from .derivative_records import derivative_payloads
33
34
  from .errors import FindingsError
@@ -38,6 +39,7 @@ from .schemas import (
38
39
  BacktestResultSummary,
39
40
  BacktestRunResult,
40
41
  BenchmarkRef,
42
+ ComparisonsPayload,
41
43
  IndexDocument,
42
44
  MarketPayload,
43
45
  RebalanceStepPayload,
@@ -150,7 +152,8 @@ def assemble_result(result: BacktestResult,
150
152
  benchmark: RelativeMetricsPayload | None = None,
151
153
  cap: float | None = None,
152
154
  settings: dict[str, Any] | None = None,
153
- classes: ClassContext | None = None) -> BacktestRunResult:
155
+ classes: ClassContext | None = None,
156
+ comparators: Comparators | None = None) -> BacktestRunResult:
154
157
  """Build the wire payload from a completed backtest.
155
158
 
156
159
  Args:
@@ -159,6 +162,8 @@ def assemble_result(result: BacktestResult,
159
162
  replication reference.
160
163
  benchmark: Optional comparison against an external benchmark.
161
164
  classes: What measuring its share classes needs; None without them.
165
+ comparators: The index and benchmark it is compared against; None
166
+ leaves the comparisons empty.
162
167
 
163
168
  Returns:
164
169
  BacktestRunResult: Level, returns, drawdown, annual returns, the
@@ -192,6 +197,8 @@ def assemble_result(result: BacktestResult,
192
197
  settings=settings,
193
198
  **strategy_and_vehicle_payloads(result),
194
199
  **derivative_payloads(result, level.index),
200
+ comparisons=(comparison_payloads(result, index_result, comparators)
201
+ if comparators is not None else ComparisonsPayload()),
195
202
  **(share_class_payloads(result, classes.share_classes, level.index,
196
203
  index_result.index_levels, classes.index_currency,
197
204
  classes.fetcher)
@@ -226,11 +233,8 @@ def _total_costs(result: BacktestResult) -> float:
226
233
 
227
234
  def compare_against_benchmark(nav: pd.Series,
228
235
  reference: BenchmarkRef,
229
- fetcher: DataFetcher,
230
- index_store: DocumentStore,
231
- start: str,
232
- end: str) -> RelativeMetricsPayload:
233
- """Resolve a benchmark and measure the portfolio against it.
236
+ levels: pd.Series) -> RelativeMetricsPayload:
237
+ """Measure the portfolio against a resolved benchmark.
234
238
 
235
239
  The benchmark series is rebased on the *aligned* window rather than its own
236
240
  full history, so both lines start at 100 on the same date and can be read
@@ -239,16 +243,12 @@ def compare_against_benchmark(nav: pd.Series,
239
243
 
240
244
  Args:
241
245
  nav: Portfolio NAV series.
242
- reference: What to compare against.
243
- fetcher: Data source.
244
- index_store: Where stored index definitions live.
245
- start: Window start, YYYY-MM-DD.
246
- end: Window end, YYYY-MM-DD.
246
+ reference: What it is compared against.
247
+ levels: The benchmark's levels, resolved.
247
248
 
248
249
  Returns:
249
250
  RelativeMetricsPayload: The comparison and the rebased benchmark.
250
251
  """
251
- levels = resolve_benchmark(reference, fetcher, index_store, start, end)
252
252
  metrics = relative_metrics(nav, levels)
253
253
 
254
254
  _, aligned_benchmark = align_on_common_window(nav, levels)
@@ -353,11 +353,14 @@ def build_backtest_job(strategy: StrategyDocument,
353
353
  index_result = book.source
354
354
 
355
355
  comparison = None
356
+ benchmark_levels = None
356
357
  if request.benchmark is not None:
357
358
  await report(0.8, f"Comparing against benchmark '{request.benchmark.id}'.")
358
- comparison = compare_against_benchmark(
359
- backtest.trading_nav, request.benchmark, fetcher, index_store,
360
- start, end)
359
+ # Resolved once, for this comparison and the run's comparisons.
360
+ benchmark_levels = resolve_benchmark(request.benchmark, fetcher, index_store,
361
+ start, end)
362
+ comparison = compare_against_benchmark(backtest.trading_nav, request.benchmark,
363
+ benchmark_levels)
361
364
 
362
365
  await report(0.9, "Assembling results.")
363
366
  # From the document rather than the definition: an optimised index has
@@ -368,7 +371,11 @@ def build_backtest_job(strategy: StrategyDocument,
368
371
  payload = assemble_result(backtest, index_result, comparison, cap=cap,
369
372
  settings=resolved,
370
373
  classes=ClassContext(settings.share_classes,
371
- document.currency, fetcher))
374
+ document.currency, fetcher),
375
+ comparators=Comparators(
376
+ index_id=document.id,
377
+ benchmark=request.benchmark,
378
+ benchmark_levels=benchmark_levels))
372
379
 
373
380
  # The record is captured here or never: the library BacktestResult
374
381
  # exists only inside this job, and the run payload the job returns is