gs-quant 2.2.2__tar.gz → 2.2.3__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 (440) hide show
  1. {gs_quant-2.2.2 → gs_quant-2.2.3}/PKG-INFO +1 -1
  2. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/_version.py +3 -3
  3. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/skills/gs-quant-overview/SKILL.md +1 -1
  4. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/skills/gs-quant-overview/backtesting.md +166 -4
  5. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/skills/gs-quant-overview/pricing.md +6 -2
  6. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_etf.py +146 -38
  7. gs_quant-2.2.3/gs_quant/timeseries/etf_classification.py +971 -0
  8. gs_quant-2.2.3/gs_quant/timeseries/measures_etf.py +470 -0
  9. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant.egg-info/PKG-INFO +1 -1
  10. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant.egg-info/SOURCES.txt +1 -0
  11. gs_quant-2.2.2/gs_quant/timeseries/measures_etf.py +0 -327
  12. {gs_quant-2.2.2 → gs_quant-2.2.3}/LICENSE +0 -0
  13. {gs_quant-2.2.2 → gs_quant-2.2.3}/MANIFEST.in +0 -0
  14. {gs_quant-2.2.2 → gs_quant-2.2.3}/NOTICE +0 -0
  15. {gs_quant-2.2.2 → gs_quant-2.2.3}/NOTICE.txt +0 -0
  16. {gs_quant-2.2.2 → gs_quant-2.2.3}/README.md +0 -0
  17. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/__init__.py +0 -0
  18. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/__init__.py +0 -0
  19. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/common/__init__.py +0 -0
  20. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/common/constants.py +0 -0
  21. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/common/enumerators.py +0 -0
  22. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/common/helpers.py +0 -0
  23. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/core/__init__.py +0 -0
  24. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/core/processor.py +0 -0
  25. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/core/processor_result.py +0 -0
  26. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/core/query_helpers.py +0 -0
  27. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/datagrid/__init__.py +0 -0
  28. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/datagrid/data_cell.py +0 -0
  29. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/datagrid/data_column.py +0 -0
  30. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/datagrid/data_row.py +0 -0
  31. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/datagrid/datagrid.py +0 -0
  32. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/datagrid/serializers.py +0 -0
  33. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/datagrid/utils.py +0 -0
  34. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/processors/__init__.py +0 -0
  35. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/processors/analysis_processors.py +0 -0
  36. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/processors/econometrics_processors.py +0 -0
  37. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/processors/scale_processors.py +0 -0
  38. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/processors/special_processors.py +0 -0
  39. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/processors/statistics_processors.py +0 -0
  40. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/processors/utility_processors.py +0 -0
  41. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/workspaces/__init__.py +0 -0
  42. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/workspaces/components.py +0 -0
  43. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/analytics/workspaces/workspace.py +0 -0
  44. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/__init__.py +0 -0
  45. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/api_cache.py +0 -0
  46. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/api_session.py +0 -0
  47. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/data.py +0 -0
  48. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/fred/__init__.py +0 -0
  49. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/fred/data.py +0 -0
  50. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/fred/fred_query.py +0 -0
  51. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/__init__.py +0 -0
  52. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/assets.py +0 -0
  53. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/backtests.py +0 -0
  54. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/__init__.py +0 -0
  55. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/apis.py +0 -0
  56. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/json_encoders/__init__.py +0 -0
  57. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/json_encoders/request_encoders.py +0 -0
  58. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/json_encoders/response_datatypes/__init__.py +0 -0
  59. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/json_encoders/response_datatypes/generic_datatype_encoders.py +0 -0
  60. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/json_encoders/response_datatypes/risk_result_datatype_encoders.py +0 -0
  61. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/json_encoders/response_datatypes/risk_result_encoders.py +0 -0
  62. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/json_encoders/response_datatypes/test_backtest_datatypes_encoders.py +0 -0
  63. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/json_encoders/response_encoders.py +0 -0
  64. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/request.py +0 -0
  65. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/response.py +0 -0
  66. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/response_datatypes/__init__.py +0 -0
  67. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/response_datatypes/backtest_datatypes.py +0 -0
  68. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/response_datatypes/generic_backtest_datatypes.py +0 -0
  69. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/response_datatypes/risk_result.py +0 -0
  70. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/response_datatypes/risk_result_datatypes.py +0 -0
  71. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/base_screener.py +0 -0
  72. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/carbon.py +0 -0
  73. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/content.py +0 -0
  74. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/countries.py +0 -0
  75. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/data.py +0 -0
  76. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/data_screen.py +0 -0
  77. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/datagrid.py +0 -0
  78. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/esg.py +0 -0
  79. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/federated_secmaster.py +0 -0
  80. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/groups.py +0 -0
  81. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/hedges.py +0 -0
  82. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/indices.py +0 -0
  83. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/marketview/__init__.py +0 -0
  84. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/marketview/dashboards.py +0 -0
  85. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/marketview/types.py +0 -0
  86. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/marketview/widgets.py +0 -0
  87. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/monitors.py +0 -0
  88. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/parser.py +0 -0
  89. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/plots.py +0 -0
  90. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/portfolios.py +0 -0
  91. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/price.py +0 -0
  92. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/reports.py +0 -0
  93. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/risk.py +0 -0
  94. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/risk_models.py +0 -0
  95. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/scenarios.py +0 -0
  96. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/screens.py +0 -0
  97. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/secmaster.py +0 -0
  98. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/thematics.py +0 -0
  99. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/users.py +0 -0
  100. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/gs/workspaces.py +0 -0
  101. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/risk.py +0 -0
  102. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/api/utils.py +0 -0
  103. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/backtests/__init__.py +0 -0
  104. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/backtests/action_handler.py +0 -0
  105. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/backtests/actions.py +0 -0
  106. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/backtests/backtest_engine.py +0 -0
  107. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/backtests/backtest_objects.py +0 -0
  108. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/backtests/backtest_utils.py +0 -0
  109. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/backtests/core.py +0 -0
  110. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/backtests/data_handler.py +0 -0
  111. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/backtests/data_sources.py +0 -0
  112. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/backtests/decorator.py +0 -0
  113. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/backtests/equity_vol_engine.py +0 -0
  114. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/backtests/event.py +0 -0
  115. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/backtests/execution_engine.py +0 -0
  116. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/backtests/generic_engine.py +0 -0
  117. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/backtests/generic_engine_action_impls.py +0 -0
  118. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/backtests/order.py +0 -0
  119. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/backtests/predefined_asset_engine.py +0 -0
  120. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/backtests/strategy.py +0 -0
  121. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/backtests/strategy_systematic.py +0 -0
  122. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/backtests/triggers.py +0 -0
  123. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/base.py +0 -0
  124. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/common.py +0 -0
  125. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/config/__init__.py +0 -0
  126. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/config/options.py +0 -0
  127. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/config/utils.py +0 -0
  128. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/config.ini +0 -0
  129. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/content/__init__.py +0 -0
  130. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/content/events/00_gsquant_meets_markets/02_optimizing_equity_trading/qes_utils.py +0 -0
  131. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/content/reports_and_screens/00_fx/__init__.py +0 -0
  132. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/content/reports_and_screens/00_fx/vol_screen_app.py +0 -0
  133. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/content/reports_and_screens/__init__.py +0 -0
  134. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/context_base.py +0 -0
  135. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/data/__init__.py +0 -0
  136. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/data/coordinate.py +0 -0
  137. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/data/core.py +0 -0
  138. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/data/dataset.py +0 -0
  139. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/data/fields.py +0 -0
  140. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/data/log.py +0 -0
  141. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/data/query.py +0 -0
  142. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/data/stream.py +0 -0
  143. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/data/utilities.py +0 -0
  144. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/datetime/__init__.py +0 -0
  145. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/datetime/date.py +0 -0
  146. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/datetime/gscalendar.py +0 -0
  147. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/datetime/point.py +0 -0
  148. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/datetime/relative_date.py +0 -0
  149. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/datetime/rules.py +0 -0
  150. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/datetime/time.py +0 -0
  151. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/entities/__init__.py +0 -0
  152. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/entities/entitlements.py +0 -0
  153. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/entities/entity.py +0 -0
  154. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/entities/entity_utils.py +0 -0
  155. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/entities/tree_entity.py +0 -0
  156. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/errors.py +0 -0
  157. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/instrument/__init__.py +0 -0
  158. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/instrument/core.py +0 -0
  159. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/instrument/overrides.py +0 -0
  160. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/interfaces/__init__.py +0 -0
  161. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/interfaces/algebra.py +0 -0
  162. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/json_convertors.py +0 -0
  163. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/json_convertors_common.py +0 -0
  164. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/json_encoder.py +0 -0
  165. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/markets/__init__.py +0 -0
  166. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/markets/baskets.py +0 -0
  167. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/markets/core.py +0 -0
  168. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/markets/factor.py +0 -0
  169. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/markets/factor_analytics.py +0 -0
  170. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/markets/hedge.py +0 -0
  171. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/markets/historical.py +0 -0
  172. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/markets/index.py +0 -0
  173. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/markets/indices_utils.py +0 -0
  174. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/markets/markets.py +0 -0
  175. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/markets/optimizer.py +0 -0
  176. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/markets/portfolio.py +0 -0
  177. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/markets/portfolio_manager.py +0 -0
  178. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/markets/portfolio_manager_utils.py +0 -0
  179. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/markets/position_set.py +0 -0
  180. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/markets/position_set_utils.py +0 -0
  181. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/markets/realtime.py +0 -0
  182. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/markets/report.py +0 -0
  183. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/markets/report_utils.py +0 -0
  184. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/markets/scenario.py +0 -0
  185. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/markets/screens.py +0 -0
  186. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/markets/securities.py +0 -0
  187. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/mcp/__init__.py +0 -0
  188. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/mcp/__main__.py +0 -0
  189. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/mcp/client.py +0 -0
  190. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/mcp/config.py +0 -0
  191. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/mcp/dependencies.py +0 -0
  192. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/mcp/middleware.py +0 -0
  193. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/mcp/run.py +0 -0
  194. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/mcp/session_utils.py +0 -0
  195. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/mcp/tools/__init__.py +0 -0
  196. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/mcp/tools/data/__init__.py +0 -0
  197. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/mcp/tools/data/tools.py +0 -0
  198. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/mcp/tools/marketview/__init__.py +0 -0
  199. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/mcp/tools/marketview/tools.py +0 -0
  200. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/mcp/tools/registry.py +0 -0
  201. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/mcp/tools/users/__init__.py +0 -0
  202. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/mcp/tools/users/tools.py +0 -0
  203. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/models/__init__.py +0 -0
  204. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/models/epidemiology.py +0 -0
  205. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/models/risk_model.py +0 -0
  206. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/models/risk_model_utils.py +0 -0
  207. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/priceable.py +0 -0
  208. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/quote_reports/__init__.py +0 -0
  209. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/quote_reports/core.py +0 -0
  210. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/risk/__init__.py +0 -0
  211. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/risk/core.py +0 -0
  212. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/risk/measures.py +0 -0
  213. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/risk/result_handlers.py +0 -0
  214. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/risk/results.py +0 -0
  215. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/risk/scenario_utils.py +0 -0
  216. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/risk/scenarios.py +0 -0
  217. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/risk/transform.py +0 -0
  218. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/session.py +0 -0
  219. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/skills/__init__.py +0 -0
  220. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/skills/__main__.py +0 -0
  221. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/skills/gs-quant-overview/datasets.md +0 -0
  222. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/skills/gs-quant-overview/errors.md +0 -0
  223. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/skills/gs-quant-overview/instruments.md +0 -0
  224. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/skills/gs-quant-overview/measure.md +0 -0
  225. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/skills/gs-quant-overview/results.md +0 -0
  226. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/skills/gs-quant-overview/risk-measures.md +0 -0
  227. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/skills/gs-quant-overview/scenarios.md +0 -0
  228. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/__init__.py +0 -0
  229. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/assets.py +0 -0
  230. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/assets_screener.py +0 -0
  231. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/backtests.py +0 -0
  232. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/base_screener.py +0 -0
  233. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/charts.py +0 -0
  234. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/common.py +0 -0
  235. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/content.py +0 -0
  236. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/coordinates.py +0 -0
  237. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/countries.py +0 -0
  238. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/data.py +0 -0
  239. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/data_screen.py +0 -0
  240. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/groups.py +0 -0
  241. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/hedge.py +0 -0
  242. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/indices.py +0 -0
  243. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/instrument.py +0 -0
  244. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/measures.py +0 -0
  245. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/monitor.py +0 -0
  246. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/portfolios.py +0 -0
  247. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/positions_v2_pricing.py +0 -0
  248. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/price.py +0 -0
  249. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/reports.py +0 -0
  250. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/risk.py +0 -0
  251. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/risk_models.py +0 -0
  252. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/scenarios.py +0 -0
  253. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/screens.py +0 -0
  254. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/secmaster.py +0 -0
  255. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/trades.py +0 -0
  256. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/workflow_quote.py +0 -0
  257. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/target/workspaces_markets.py +0 -0
  258. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/__init__.py +0 -0
  259. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/analytics/__init__.py +0 -0
  260. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/analytics/test_datagrid.py +0 -0
  261. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/analytics/test_sorting_and_filtering.py +0 -0
  262. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/analytics/test_sparkline_processor.py +0 -0
  263. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/analytics/test_workspace.py +0 -0
  264. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/__init__.py +0 -0
  265. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/backtests_xasset/__init__.py +0 -0
  266. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/backtests_xasset/json_encoders/__init__.py +0 -0
  267. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/backtests_xasset/json_encoders/response_datatypes/__init__.py +0 -0
  268. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/backtests_xasset/json_encoders/response_datatypes/test_risk_result_datatype_encoders.py +0 -0
  269. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/backtests_xasset/json_encoders/response_datatypes/test_risk_result_encoders.py +0 -0
  270. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/backtests_xasset/json_encoders/test_request_encoders.py +0 -0
  271. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/backtests_xasset/json_encoders/test_response_encoders.py +0 -0
  272. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/backtests_xasset/response_datatypes/test_backtest_datatypes.py +0 -0
  273. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/backtests_xasset/response_datatypes/test_risk_result.py +0 -0
  274. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/backtests_xasset/response_datatypes/test_risk_result_datatypes.py +0 -0
  275. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/backtests_xasset/test_request.py +0 -0
  276. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/backtests_xasset/test_response.py +0 -0
  277. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/test_assets.py +0 -0
  278. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/test_backtests.py +0 -0
  279. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/test_base_screener.py +0 -0
  280. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/test_cache.py +0 -0
  281. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/test_carbon.py +0 -0
  282. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/test_content.py +0 -0
  283. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/test_data.py +0 -0
  284. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/test_data_screen.py +0 -0
  285. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/test_esg.py +0 -0
  286. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/test_fred.py +0 -0
  287. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/test_groups.py +0 -0
  288. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/test_gs_data_tracing.py +0 -0
  289. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/test_index.py +0 -0
  290. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/test_instruments.py +0 -0
  291. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/test_json.py +0 -0
  292. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/test_monitor.py +0 -0
  293. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/test_portfolios.py +0 -0
  294. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/test_reports.py +0 -0
  295. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/test_risk.py +0 -0
  296. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/test_risk_models.py +0 -0
  297. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/test_scenarios.py +0 -0
  298. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/test_target.py +0 -0
  299. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/test_thread_manager.py +0 -0
  300. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/api/test_users.py +0 -0
  301. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/backtest/__init__.py +0 -0
  302. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/backtest/test_backtest_eq_vol_engine.py +0 -0
  303. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/backtest/test_backtest_flow_vol.py +0 -0
  304. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/backtest/test_backtest_predefined.py +0 -0
  305. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/backtest/test_generic_engine.py +0 -0
  306. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/backtest/test_triggers.py +0 -0
  307. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/config/test_config_loader.py +0 -0
  308. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/config/test_options.py +0 -0
  309. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/data/__init__.py +0 -0
  310. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/data/test_data_caching.py +0 -0
  311. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/data/test_data_coordinate.py +0 -0
  312. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/data/test_dataset.py +0 -0
  313. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/data/test_dataset_tracing.py +0 -0
  314. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/data/test_query.py +0 -0
  315. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/datetime_/__init__.py +0 -0
  316. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/datetime_/test_date.py +0 -0
  317. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/datetime_/test_gscalendar.py +0 -0
  318. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/datetime_/test_point.py +0 -0
  319. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/datetime_/test_relative_date.py +0 -0
  320. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/datetime_/test_time.py +0 -0
  321. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/entities/test_entitlements.py +0 -0
  322. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/entities/test_group.py +0 -0
  323. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/entities/test_user.py +0 -0
  324. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/fixtures/__init__.py +0 -0
  325. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/fixtures/content.py +0 -0
  326. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/markets/__init__.py +0 -0
  327. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/markets/test_baskets.py +0 -0
  328. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/markets/test_close_market.py +0 -0
  329. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/markets/test_hedger.py +0 -0
  330. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/markets/test_indices_utils.py +0 -0
  331. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/markets/test_instrument.py +0 -0
  332. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/markets/test_portfolio.py +0 -0
  333. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/markets/test_portfolio_manager.py +0 -0
  334. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/markets/test_position_set.py +0 -0
  335. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/markets/test_pricing_context.py +0 -0
  336. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/markets/test_realtime_pricing_context.py +0 -0
  337. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/markets/test_report.py +0 -0
  338. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/markets/test_scenarios.py +0 -0
  339. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/markets/test_securities.py +0 -0
  340. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/mock_data_test_utils.py +0 -0
  341. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/models/__init__.py +0 -0
  342. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/models/test_epidemiology.py +0 -0
  343. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/models/test_risk_model.py +0 -0
  344. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/models/test_risk_model_utils.py +0 -0
  345. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/risk/test_measures.py +0 -0
  346. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/risk/test_results.py +0 -0
  347. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/skills/__init__.py +0 -0
  348. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/skills/test_installer.py +0 -0
  349. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/test_base.py +0 -0
  350. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/test_context_base.py +0 -0
  351. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/test_session.py +0 -0
  352. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/__init__.py +0 -0
  353. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/multi_measure/__init__.py +0 -0
  354. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/multi_measure/test_commod.py +0 -0
  355. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/multi_measure/test_measure_registry.py +0 -0
  356. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_algebra.py +0 -0
  357. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_analysis.py +0 -0
  358. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_backtesting.py +0 -0
  359. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_datetime.py +0 -0
  360. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_econometrics.py +0 -0
  361. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_event_study.py +0 -0
  362. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_helper.py +0 -0
  363. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures.py +0 -0
  364. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_bonds.py +0 -0
  365. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_cognitive_credit.py +0 -0
  366. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_countries.py +0 -0
  367. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_factset.py +0 -0
  368. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_fx_vol.py +0 -0
  369. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_inflation.py +0 -0
  370. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_portfolios.py +0 -0
  371. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_rates.py +0 -0
  372. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_reports.py +0 -0
  373. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_risk_models.py +0 -0
  374. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_tba.py +0 -0
  375. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_xccy.py +0 -0
  376. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_plot_measure_signatures.py +0 -0
  377. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_query_kwarg_casing.py +0 -0
  378. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_rolling.py +0 -0
  379. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_statistics.py +0 -0
  380. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_tca.py +0 -0
  381. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_technicals.py +0 -0
  382. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_timeseries.py +0 -0
  383. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/timeseries/utils.py +0 -0
  384. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/tracing/__init__.py +0 -0
  385. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/tracing/test_tracing.py +0 -0
  386. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/utils/__init__.py +0 -0
  387. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/utils/datagrid_test_utils.py +0 -0
  388. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/utils/mock_calc.py +0 -0
  389. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/utils/mock_data.py +0 -0
  390. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/utils/mock_request.py +0 -0
  391. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/utils/test_utilities.py +0 -0
  392. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/test/utils/test_utils.py +0 -0
  393. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/__init__.py +0 -0
  394. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/_event_study/__init__.py +0 -0
  395. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/_event_study/event_study_api.py +0 -0
  396. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/_event_study/event_study_asset_source.py +0 -0
  397. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/_event_study/event_study_definitions.py +0 -0
  398. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/_event_study/event_study_frame.py +0 -0
  399. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/_event_study/event_study_impact.py +0 -0
  400. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/_event_study/event_study_labels.py +0 -0
  401. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/_event_study/event_study_macro_source.py +0 -0
  402. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/_event_study/event_study_objects.py +0 -0
  403. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/_event_study/event_study_processing.py +0 -0
  404. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/_event_study/event_study_query.py +0 -0
  405. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/algebra.py +0 -0
  406. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/analysis.py +0 -0
  407. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/backtesting.py +0 -0
  408. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/datetime.py +0 -0
  409. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/econometrics.py +0 -0
  410. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/event_study.py +0 -0
  411. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/helper.py +0 -0
  412. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/measure_registry.py +0 -0
  413. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/measures.py +0 -0
  414. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/measures_bonds.py +0 -0
  415. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/measures_cognitive_credit.py +0 -0
  416. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/measures_countries.py +0 -0
  417. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/measures_factset.py +0 -0
  418. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/measures_fx_vol.py +0 -0
  419. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/measures_helper.py +0 -0
  420. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/measures_inflation.py +0 -0
  421. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/measures_portfolios.py +0 -0
  422. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/measures_rates.py +0 -0
  423. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/measures_reports.py +0 -0
  424. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/measures_risk_models.py +0 -0
  425. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/measures_tba.py +0 -0
  426. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/measures_xccy.py +0 -0
  427. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/statistics.py +0 -0
  428. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/tca.py +0 -0
  429. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/timeseries/technicals.py +0 -0
  430. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/tracing/__init__.py +0 -0
  431. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/tracing/tracing.py +0 -0
  432. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/workflow/__init__.py +0 -0
  433. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant/workflow/workflow.py +0 -0
  434. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant.egg-info/dependency_links.txt +0 -0
  435. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant.egg-info/requires.txt +0 -0
  436. {gs_quant-2.2.2 → gs_quant-2.2.3}/gs_quant.egg-info/top_level.txt +0 -0
  437. {gs_quant-2.2.2 → gs_quant-2.2.3}/pyproject.toml +0 -0
  438. {gs_quant-2.2.2 → gs_quant-2.2.3}/setup.cfg +0 -0
  439. {gs_quant-2.2.2 → gs_quant-2.2.3}/setup.py +0 -0
  440. {gs_quant-2.2.2 → gs_quant-2.2.3}/versioneer.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gs_quant
3
- Version: 2.2.2
3
+ Version: 2.2.3
4
4
  Summary: Goldman Sachs Quant
5
5
  Author-email: Goldman Sachs <developer@gs.com>
6
6
  License: Apache-2.0
@@ -8,11 +8,11 @@ import json
8
8
 
9
9
  version_json = '''
10
10
  {
11
- "date": "2026-10-27T11:03:07+0000",
11
+ "date": "2026-10-28T18:51:11+0000",
12
12
  "dirty": false,
13
13
  "error": null,
14
- "full-revisionid": "e2b98f5fa0bfd3a931b9a6fcbee84c027588edea",
15
- "version": "2.2.2"
14
+ "full-revisionid": "ae7eb6b3fd1f50ce3f5128a4c935e9adf885a74f",
15
+ "version": "2.2.3"
16
16
  }
17
17
  ''' # END VERSION_JSON
18
18
 
@@ -146,5 +146,5 @@ For detailed guidance on specific topics, open the file whose topic or symptoms
146
146
  - `risk-measures.md` — What each risk measure's number means: units, scaling with size, `currency=` and `aggregation_level=`, by asset class.
147
147
  - `errors.md` — gs_quant error messages and what to do, and how to reach support when nothing fixes it.
148
148
  - `datasets.md` — Accessing market and reference data via the gs_quant Dataset class: get_data, get_data_series, get_data_last, get_coverage, uploading data, batching large queries. Covers TREOD for equities, FXIVOL_STANDARD, symbol dimensions, and common pitfalls.
149
- - `backtesting.md` — Guide to the gs_quant backtesting framework: Strategy, triggers, actions, GenericEngine, EquityVolEngine, transaction costs, and result extraction.
149
+ - `backtesting.md` — Guide to the gs_quant backtesting framework: when to price directly instead, Strategy, triggers, actions, GenericEngine, EquityVolEngine, transaction costs, skipping dates, P&L breakdowns, and result extraction.
150
150
  - `measure.md` — writing custom measures with `@plot_measure` and `@risk_measure` decorators
@@ -1,5 +1,16 @@
1
1
  # gs_quant Backtesting Guide
2
2
 
3
+ ## Do you need a backtest engine?
4
+
5
+ **If the strategy is one instrument or a fixed portfolio held over a date range, with no triggers,
6
+ rebalancing or hedging, don't use an engine: price it with a `HistoricalPricingContext`.** The
7
+ engines add trade management (triggers, actions, hedges) on top of pricing on each date; with
8
+ nothing to manage, price directly. For example, to track a trade entered on a given date, resolve
9
+ it on that date, then price it over the range in one `HistoricalPricingContext` (see "Relative
10
+ terms and resolve()" in `pricing.md`).
11
+
12
+ ---
13
+
3
14
  ## 1. Architecture Overview
4
15
 
5
16
  | Concept | Description |
@@ -58,7 +69,10 @@ from gs_quant.backtests.data_sources import GenericDataSource, GsDataSource, Mis
58
69
  | **EquityVolEngine** | Equity vol strategies (server-side) | EqOption, EqVarianceSwap |
59
70
  | **PredefinedAssetEngine** | Custom order-based backtests | Predefined assets |
60
71
 
61
- Use `GenericEngine` unless you specifically need `EquityVolEngine` performance for equity options.
72
+ **`EquityVolEngine` is faster, but runs only on the equity underliers and dates for which the
73
+ service holds market data, and accepts only a restricted strategy shape. `GenericEngine` prices
74
+ anything gs_quant can price.** Use `GenericEngine` unless you need `EquityVolEngine`'s speed for
75
+ equity options or variance swaps.
62
76
 
63
77
  ---
64
78
 
@@ -141,6 +155,29 @@ agg_req = AggregateTriggerRequirements(
141
155
  trigger = AggregateTrigger(agg_req, action)
142
156
  ```
143
157
 
158
+ **To trigger when a risk is outside ±X**, put a requirement for each side in an `AggregateTrigger`
159
+ with `ANY_OF`, and pass the measure in `run_backtest(risks=[...])`:
160
+
161
+ ```python
162
+ from gs_quant.backtests.triggers import RiskTriggerRequirements, TriggerDirection
163
+
164
+ delta = FXDelta(aggregation_level=AggregationLevel.Type, currency='USD')
165
+ agg_req = AggregateTriggerRequirements(
166
+ triggers=[
167
+ RiskTriggerRequirements(risk=delta, trigger_level=50_000, direction=TriggerDirection.ABOVE),
168
+ RiskTriggerRequirements(risk=delta, trigger_level=-50_000, direction=TriggerDirection.BELOW),
169
+ ],
170
+ aggregate_type=AggType.ANY_OF,
171
+ )
172
+ trigger = AggregateTrigger(agg_req, action)
173
+ backtest = GE.run_backtest(Strategy(None, trigger), start=start_date, end=end_date, risks=[delta])
174
+ ```
175
+
176
+ **On each date `GenericEngine` calculates only the price, the measures in `risks=` and
177
+ `pnl_explain`, and the measures of top-level `StrategyRiskTrigger`s and of `HedgeAction`s.** A risk
178
+ condition inside an `AggregateTrigger` or `NotTrigger` isn't among them: without `risks=[delta]`,
179
+ the run raises `ValueError: <measure> not computed`.
180
+
144
181
  ### 4.6 NotTrigger — Invert a Trigger
145
182
 
146
183
  ```python
@@ -159,12 +196,46 @@ trigger = NotTrigger(not_req, action)
159
196
  ```python
160
197
  action = AddTradeAction(
161
198
  priceables=instrument,
162
- trade_duration='1m', # tenor, date, 'expiration_date', 'next schedule', or None (forever)
199
+ trade_duration='1m',
163
200
  name='my_trade',
164
201
  )
165
202
  ```
166
203
 
167
- **`trade_duration` options:** `None` (hold forever), tenor string (`'1m'`, `'3m'`), `'expiration_date'` (hold until expiry), `'next schedule'` (auto-rolling), explicit `datetime.date`, or `datetime.timedelta`.
204
+ **In `GenericEngine`, `trade_duration` sets when each added trade is closed:**
205
+
206
+ - `None`: no closing date; the trade stays in the portfolio until the backtest ends or an exit
207
+ action removes it, even after it expires
208
+ - a tenor such as `'1m'`: that long after the trade date
209
+ - a `datetime.date`: on that date
210
+ - the name of a date field on the instrument: on that field's date as resolved on the trade date,
211
+ for example `'expiration_date'` on an `FXOption`, `EqOption` or `IRSwaption`, or
212
+ `'termination_date'` on an `IRSwap`
213
+ - `'next schedule'`: on the trigger's next date, for a trigger that has one, as a `PeriodicTrigger`
214
+ or `DateTrigger` does
215
+
216
+ **In `GenericEngine`, each added trade is resolved on the date it is added, and the resolved trade
217
+ is then held unchanged for its whole life**, so a field that resolution fills in keeps the value it
218
+ had on that date. To keep a field unresolved, or to change how trades are built, subclass the
219
+ action's handler and map the action to it when you create the engine. For example, to leave an
220
+ inflation swap's `base_cpi` unset after the trade is added:
221
+
222
+ ```python
223
+ from gs_quant.backtests.actions import AddTradeAction
224
+ from gs_quant.backtests.generic_engine import GenericEngine
225
+ from gs_quant.backtests.generic_engine_action_impls import AddTradeActionImpl
226
+ from gs_quant.markets.portfolio import Portfolio
227
+
228
+
229
+ class FloatingBaseCpiAddTrade(AddTradeActionImpl):
230
+ def _raise_order(self, state, trigger_info=None):
231
+ orders = super()._raise_order(state, trigger_info)
232
+ return {
233
+ d: (Portfolio([i.clone(base_cpi=None) for i in p.all_instruments]), ti) for d, (p, ti) in orders.items()
234
+ }
235
+
236
+
237
+ engine = GenericEngine(action_impl_map={AddTradeAction: FloatingBaseCpiAddTrade})
238
+ ```
168
239
 
169
240
  ### 5.2 HedgeAction — Delta Hedge
170
241
 
@@ -193,6 +264,18 @@ action = AddScaledTradeAction(
193
264
  )
194
265
  ```
195
266
 
267
+ **In `GenericEngine`, `scaling_type` sets the size of each added trade:**
268
+
269
+ | `scaling_type` | Each trade is multiplied by |
270
+ |---|---|
271
+ | `ScalingActionType.size` | `scaling_level` |
272
+ | `ScalingActionType.risk_measure` | `scaling_level` divided by `scaling_risk` of the action's priceables (summed) on the trade date, so the trade starts with that risk equal to `scaling_level` |
273
+ | `ScalingActionType.NAV` | whatever makes the trade cost the cash available, net of transaction costs: `scaling_level` for the action's first trade, then the proceeds of the trades it closed since its previous one |
274
+
275
+ For example, to spend a fixed premium on each trade, use `risk_measure` with `scaling_risk=Price`.
276
+ On FX options this needs `premium=0`, or the premium is solved so that `Price` is zero (see "Always
277
+ Set `premium=0` on FX Options" in `instruments.md`).
278
+
196
279
  ### 5.4 EnterPositionQuantityScaledAction — Quantity-Based Entry
197
280
 
198
281
  ```python
@@ -235,10 +318,24 @@ trigger = StrategyRiskTrigger(trig_req, [exit_action, add_action])
235
318
  | `risks` | Additional risk measures to compute | None |
236
319
  | `show_progress` | Show progress bar | True |
237
320
  | `initial_value` | Starting cash value | 0 |
238
- | `result_ccy` | Currency for results | None |
321
+ | `result_ccy` | Currency to report every risk, price and cash amount in; see below | None |
322
+ | `holiday_calendar` | Dates left out of the schedule built from `start`, `end` and `frequency` | None |
239
323
  | `market_data_location` | `'LDN'`, `'NYC'`, `'HKG'`, `'TKO'` | None |
240
324
  | `is_batch` | Use websocket batching | True |
241
325
 
326
+ **`result_ccy` adds `currency=` to every measure in the run**: the price, those in `risks`, those
327
+ of triggers and actions, and those in `pnl_explain`. A measure that has no currency, for example
328
+ `FXSpot`, `FXAnnualImpliedVol` or `IRFwdRate`, makes the run raise `Unparameterised risk`, so
329
+ `result_ccy` can't be used with `fx_pnl_definition()`. In that case leave `result_ccy` unset and
330
+ pass the currency only to the measures that take one: `GenericEngine(price_measure=Price(currency='EUR'))`
331
+ for the price and cash, and for example `FXDelta(aggregation_level='Type', currency='EUR')` in `risks`.
332
+
333
+ **To skip dates, for example ones whose market data fails, give the list of dates in three
334
+ places**: `GenericEngine.run_backtest(holiday_calendar=...)` leaves them out of the schedule built
335
+ from `start`, `end` and `frequency`, `PeriodicTriggerRequirements(calendar=...)` stops trades
336
+ opening on them, and `holiday_calendar=` on each action stops a `trade_duration` given as a tenor
337
+ from ending on them.
338
+
242
339
  ---
243
340
 
244
341
  ## 7. Extracting Results
@@ -292,6 +389,27 @@ backtest = GE.run_backtest(
292
389
  delta_series = backtest.result_summary[FXDelta(aggregation_level=AggregationLevel.Type, currency='USD')]
293
390
  ```
294
391
 
392
+ ### P&L Explain
393
+
394
+ **`GenericEngine.run_backtest(pnl_explain=...)` splits the P&L into named parts, each a
395
+ sensitivity times the daily move in a market quantity.** A `PnlDefinition` is a list of parts, each
396
+ `PnlAttribute(attribute_name, attribute_metric, market_data_metric, scaling_factor)`, with
397
+ `second_order=True` added for a second-order part. Each day, for every instrument held the day before, a part adds
398
+ `scaling_factor * sensitivity * move`, or `0.5 * scaling_factor * sensitivity * move**2` when
399
+ `second_order=True`, where `sensitivity` is `attribute_metric` on the day before and `move` is the
400
+ change in `market_data_metric` since then. For FX options, `fx_pnl_definition()` gives delta, gamma
401
+ and vega parts:
402
+
403
+ ```python
404
+ from gs_quant.backtests.backtest_objects import fx_pnl_definition
405
+
406
+ backtest = GE.run_backtest(strategy, start=start_date, end=end_date, frequency='1b', pnl_explain=fx_pnl_definition())
407
+ explain = backtest.pnl_explain() # {'PNL_delta': {date: cumulative P&L}, 'PNL_gamma': ..., 'VegaPnL': ...}
408
+ ```
409
+
410
+ `fx_pnl_definition()`'s parts don't add up to the change in `Total`: they leave out, for example,
411
+ time decay.
412
+
295
413
  ---
296
414
 
297
415
  ## 8. Transaction Costs
@@ -367,6 +485,7 @@ Transaction costs appear in `backtest.result_summary` as the `'Transaction Costs
367
485
  - **Order actions within a trigger** — exit before add: `PeriodicTrigger(trig_req, [exit_action, add_action])`
368
486
  - **Name your instruments** — names appear in trade_ledger and aid debugging
369
487
  - **`frequency='1b'`** for daily P&L; trigger frequency and evaluation frequency are independent
488
+ - **Before a long run, time a short one when a trigger depends on the strategy's own risk**, for example a `StrategyRiskTrigger`: the engine then has to price each date before it can decide what to do on the next, so it sends requests one date at a time and a run over several years can take hours
370
489
 
371
490
  ---
372
491
 
@@ -399,6 +518,49 @@ engine = EquityVolEngine()
399
518
  backtest = engine.run_backtest(Strategy(None, trigger), start=start_date, end=end_date)
400
519
  ```
401
520
 
521
+ **`EquityVolEngine` accepts only one shape of strategy**; `run_backtest` raises `RuntimeError`
522
+ listing every rule the strategy breaks, and `EquityVolEngine.check_strategy(strategy)` returns that
523
+ list without running. The main rules:
524
+
525
+ - one underlier: every trade on the same asset
526
+ - no initial portfolio, at most 3 triggers, each a `PeriodicTrigger` or an `AggregateTrigger` of one
527
+ `DateTrigger` and one `PortfolioTrigger` (`data_source='len'`, `trigger_level=0`)
528
+ - one action per trigger, no two actions of the same type, each one of `AddTradeAction`,
529
+ `AddScaledTradeAction`, `EnterPositionQuantityScaledAction`, `HedgeAction` or `ExitTradeAction`
530
+ - trades are `EqOption` or `EqVarianceSwap` whose `quantity`, `number_of_options` and `multiplier`
531
+ multiply to 1 (unset counts as 1); set the size on the action instead
532
+ - a `PeriodicTrigger`'s `frequency` equals its action's `trade_duration`, so trades roll at a fixed
533
+ interval
534
+ - the only hedge is a delta hedge (`risk=EqDelta`) with a synthetic forward: a long call and a short
535
+ put with the same underlier, strike and expiry
536
+
537
+ The service applies further checks, for example a maximum expiry. For anything else, use
538
+ `GenericEngine`.
539
+
540
+ **`EquityVolEngine` returns a P&L breakdown by date, each part cumulative from the start**:
541
+ `backtest.get_measure_series(FlowVolBacktestMeasure.PNL_delta)` (import `FlowVolBacktestMeasure`
542
+ from `gs_quant.target.backtests`), and likewise `PNL_gamma`, `PNL_vega`, `PNL_theta`,
543
+ `PNL_transactions` and the total `PNL`. `PNL_spot` is delta plus gamma plus the higher-order spot
544
+ part, `PNL_vol` is vega plus the higher-order vol part, and `PNL_carry` is `PNL_spot` plus
545
+ `PNL_theta`. `PNL` minus `PNL_spot`, `PNL_vol` and `PNL_theta` is the unexplained part.
546
+
547
+ **To see the strike that a relative strike such as `'ATM'` gives on each date of a range**, request
548
+ `Strike_Level` from the backtest API. The strike is set again on each date, and the result is
549
+ `{'Strike Level': [['YYYY-MM-DD', strike], ...]}`:
550
+
551
+ ```python
552
+ from gs_quant.api.gs.backtests import GsBacktestApi
553
+ from gs_quant.target.backtests import BacktestRiskMeasureType, BacktestRiskPosition, BacktestRiskRequest
554
+
555
+ request = BacktestRiskRequest(
556
+ positions=(BacktestRiskPosition(instrument=option, quantity=1),),
557
+ measures=(BacktestRiskMeasureType.Strike_Level,),
558
+ start_date=start_date,
559
+ end_date=end_date,
560
+ )
561
+ strikes = GsBacktestApi.calculate_position_risk(request)['Strike Level']
562
+ ```
563
+
402
564
  ---
403
565
 
404
566
  ## 11. Quick Reference Template
@@ -75,9 +75,9 @@ After that time, if today's close isn't in yet, pricing fails.
75
75
 
76
76
  | Job | Use |
77
77
  |---|---|
78
- | Same instrument(s), many dates | one `HistoricalPricingContext` |
78
+ | Same instrument(s), many dates, including a trade fixed on its start date and priced over its life | one `HistoricalPricingContext` per instrument or trade |
79
79
  | Many instruments, one date | one `PricingContext` around a `Portfolio` |
80
- | Instrument terms change per date (strike from that day's spot, expiry from a row, a field that must equal the pricing date) | an outer `PricingContext` with an inner dated one per date |
80
+ | A new trade on each date, with terms from that date (strike from that day's spot, expiry from a row, a field that must equal the pricing date) | an outer `PricingContext` with an inner dated one per date |
81
81
  | A step needs an earlier result (resolve, then price later; hedge on the previous delta) | separate contexts in sequence, `.result()` in between |
82
82
 
83
83
  ```python
@@ -89,6 +89,10 @@ with PricingContext(market_data_location='NYC'): # outer: sends everything on e
89
89
  prices = {d: f.result() for d, f in prices.items()}
90
90
  ```
91
91
 
92
+ **A job can combine shapes.** For example, strikes set from each start date's spot and each trade
93
+ then priced over its life: work out the strikes first, then price each trade in one
94
+ `HistoricalPricingContext` over its life.
95
+
92
96
  **Don't open and exit a `PricingContext` on every pass of a loop:** each exit sends and waits, so
93
97
  requests go one at a time. If you must, set `is_async=True` and call `.result()` only after the loop.
94
98
 
@@ -51,7 +51,7 @@ def _mock_frame():
51
51
 
52
52
  def test_etf_flow_real_time_not_supported():
53
53
  with pytest.raises(NotImplementedError):
54
- tm.etf_flow('US', real_time=True)
54
+ tm.total_etf_flow('US', real_time=True)
55
55
 
56
56
 
57
57
  def test_etf_flow_all_aggregates():
@@ -60,7 +60,7 @@ def test_etf_flow_all_aggregates():
60
60
  mock.return_value = _mock_frame()
61
61
 
62
62
  with DataContext(dt.date(2024, 1, 1), dt.date(2024, 1, 2)):
63
- actual = tm.etf_flow('US') # All asset classes -> sum per date
63
+ actual = tm.total_etf_flow('US') # All asset classes -> sum per date
64
64
 
65
65
  # 2024-01-01: 100 + 200 = 300 ; 2024-01-02: 300 + 400 = 700
66
66
  assert list(actual.values) == [300.0, 700.0]
@@ -74,7 +74,8 @@ def test_etf_flow_client_side_comma_filter():
74
74
  mock.return_value = _mock_frame()
75
75
 
76
76
  with DataContext(dt.date(2024, 1, 1), dt.date(2024, 1, 2)):
77
- actual = tm.etf_flow('US', tm.ETFAssetClass.FIXED_INCOME, tm.ETFCategory.GOVERNMENT_TREASURY)
77
+ # Parser-safe labels (case-insensitive) resolve to the real dataset values
78
+ actual = tm.total_etf_flow('US', 'fixed income', 'Government Treasury')
78
79
 
79
80
  # Comma category filtered client-side -> only the two Fixed Income rows remain
80
81
  assert list(actual.values) == [100.0, 300.0]
@@ -91,7 +92,7 @@ def test_etf_flow_metric_selection():
91
92
  mock.return_value = _mock_frame()
92
93
 
93
94
  with DataContext(dt.date(2024, 1, 1), dt.date(2024, 1, 2)):
94
- actual = tm.etf_flow('US', metric=tm.ETFFlowMetric.TOTAL_ASSETS)
95
+ actual = tm.total_etf_assets('US')
95
96
 
96
97
  assert list(actual.values) == [30.0, 70.0]
97
98
  replace.restore()
@@ -104,32 +105,28 @@ def test_etf_flow_no_data_raises():
104
105
 
105
106
  with pytest.raises(MqValueError):
106
107
  with DataContext(dt.date(2024, 1, 1), dt.date(2024, 1, 2)):
107
- tm.etf_flow('US')
108
+ tm.total_etf_flow('US')
108
109
  replace.restore()
109
110
 
110
111
 
111
112
  def test_etf_flow_coverage_next_level():
112
- replace = Replacer()
113
- mock = replace('gs_quant.timeseries.measures_etf.Dataset.get_data', Mock())
114
- mock.return_value = _mock_frame()
115
-
116
113
  with DataContext(dt.date(2024, 1, 1), dt.date(2024, 1, 2)):
117
- # Next level after asset class -> categories under Fixed Income
118
- cats = tm.etf_flow_coverage('US', tm.ETFAssetClass.FIXED_INCOME)
114
+ # Next level after asset class -> categories under Fixed Income (from the
115
+ # static classification tree, returned as parser-safe labels)
116
+ cats = tm.etf_flow_coverage('US', 'Fixed Income')
119
117
 
120
118
  assert cats[0] == tm.ETF_FLOW_ALL
121
- assert 'Government, Treasury' in cats
122
- replace.restore()
119
+ assert 'Government Treasury' in cats
123
120
 
124
121
 
125
122
  def test_etf_flow_coverage_fully_selected_returns_empty():
126
123
  with DataContext(dt.date(2024, 1, 1), dt.date(2024, 1, 2)):
127
124
  result = tm.etf_flow_coverage(
128
125
  'US',
129
- tm.ETFAssetClass.FIXED_INCOME,
130
- tm.ETFCategory.GOVERNMENT_TREASURY,
131
- 'Short-Term',
126
+ 'Fixed Income',
127
+ 'Government Treasury',
132
128
  'Investment Grade',
129
+ 'Short Term',
133
130
  )
134
131
  assert result == []
135
132
 
@@ -165,53 +162,164 @@ def test_resolve_country_code_lookup_exception_raises():
165
162
  replace.restore()
166
163
 
167
164
 
168
- def test_etf_flow_invalid_asset_class_raises():
169
- with pytest.raises(MqValueError):
170
- with DataContext(dt.date(2024, 1, 1), dt.date(2024, 1, 2)):
171
- tm.etf_flow('US', asset_class='not-an-enum')
172
-
173
-
174
- def test_etf_flow_invalid_category_raises():
175
- with pytest.raises(MqValueError):
176
- with DataContext(dt.date(2024, 1, 1), dt.date(2024, 1, 2)):
177
- tm.etf_flow('US', category='not-an-enum')
178
-
179
-
180
- def test_etf_flow_invalid_metric_raises():
181
- with pytest.raises(MqValueError):
182
- with DataContext(dt.date(2024, 1, 1), dt.date(2024, 1, 2)):
183
- tm.etf_flow('US', metric='not-an-enum')
184
-
185
-
186
165
  def test_etf_flow_query_error_raises():
187
166
  replace = Replacer()
188
167
  mock = replace('gs_quant.timeseries.measures_etf.Dataset.get_data', Mock())
189
168
  mock.side_effect = Exception('boom')
190
169
  with pytest.raises(MqValueError):
191
170
  with DataContext(dt.date(2024, 1, 1), dt.date(2024, 1, 2)):
192
- tm.etf_flow('US')
171
+ tm.total_etf_flow('US')
193
172
  replace.restore()
194
173
 
195
174
 
196
175
  def test_etf_flow_coverage_query_error_raises():
176
+ # A branch NOT present in the static classification tree falls through to the
177
+ # dataset query, so a backend error surfaces as MqValueError.
197
178
  replace = Replacer()
198
179
  mock = replace('gs_quant.timeseries.measures_etf.Dataset.get_data', Mock())
199
180
  mock.side_effect = Exception('boom')
200
181
  with pytest.raises(MqValueError):
201
182
  with DataContext(dt.date(2024, 1, 1), dt.date(2024, 1, 2)):
202
- tm.etf_flow_coverage('US')
183
+ tm.etf_flow_coverage('US', 'Not A Real Asset Class')
203
184
  replace.restore()
204
185
 
205
186
 
206
- def test_etf_flow_coverage_empty_returns_all():
187
+ def test_etf_flow_coverage_top_level_from_tree():
188
+ # The top level (asset classes) is served from the static classification tree
189
+ # and never queries the dataset.
190
+ with DataContext(dt.date(2024, 1, 1), dt.date(2024, 1, 2)):
191
+ result = tm.etf_flow_coverage('US')
192
+ assert result[0] == tm.ETF_FLOW_ALL
193
+ assert 'Fixed Income' in result
194
+ assert 'Equity' in result
195
+
196
+
197
+ def test_dataset_value_case_insensitive_and_parser_safe():
198
+ # Parser-safe labels (commas/dashes stripped) resolve back to real values
199
+ assert tm._dataset_value('Government Treasury') == 'Government, Treasury'
200
+ assert tm._dataset_value('Long BTC Short USD') == 'Long BTC, Short USD'
201
+ # Case-insensitive resolution
202
+ assert tm._dataset_value('fixed income') == 'Fixed Income'
203
+ # 'All' passes through (any case)
204
+ assert tm._dataset_value('all') == tm.ETF_FLOW_ALL
205
+
206
+
207
+ def test_parser_safe_label_passthrough():
208
+ # None and the 'All' sentinel are returned unchanged
209
+ assert tm._parser_safe_label(None) is None
210
+ assert tm._parser_safe_label(tm.ETF_FLOW_ALL) == tm.ETF_FLOW_ALL
211
+
212
+
213
+ def test_dataset_value_none_passthrough():
214
+ assert tm._dataset_value(None) is None
215
+ # An unknown label is returned unchanged
216
+ assert tm._dataset_value('Totally Unknown Thing') == 'Totally Unknown Thing'
217
+
218
+
219
+ def test_classification_children_deeper_levels():
220
+ # Niche-focus level under a known asset class / category
221
+ focuses = tm._classification_children(
222
+ {'etfAssetClass': 'Fixed Income', 'etfCategory': 'Government, Treasury'},
223
+ 'etfNicheFocus',
224
+ )
225
+ assert 'Investment Grade' in focuses
226
+
227
+ # Focus level under a known asset class / category / niche-focus
228
+ niches = tm._classification_children(
229
+ {
230
+ 'etfAssetClass': 'Fixed Income',
231
+ 'etfCategory': 'Government, Treasury',
232
+ 'etfNicheFocus': 'Investment Grade',
233
+ },
234
+ 'etfFocus',
235
+ )
236
+ assert 'Short-Term' in niches
237
+
238
+ # Unknown category -> None (branch not in the tree)
239
+ assert tm._classification_children(
240
+ {'etfAssetClass': 'Fixed Income', 'etfCategory': 'Not Real'}, 'etfNicheFocus'
241
+ ) is None
242
+ # Unknown niche-focus -> None
243
+ assert tm._classification_children(
244
+ {
245
+ 'etfAssetClass': 'Fixed Income',
246
+ 'etfCategory': 'Government, Treasury',
247
+ 'etfNicheFocus': 'Not Real',
248
+ },
249
+ 'etfFocus',
250
+ ) is None
251
+
252
+
253
+ def test_etf_flow_coverage_dataset_fallback():
254
+ # An asset class not in the static tree falls through to the dataset query;
255
+ # the next level (categories) is derived from the returned data.
256
+ replace = Replacer()
257
+ mock = replace('gs_quant.timeseries.measures_etf.Dataset.get_data', Mock())
258
+ mock.return_value = _mock_frame()
259
+
260
+ with DataContext(dt.date(2024, 1, 1), dt.date(2024, 1, 2)):
261
+ result = tm.etf_flow_coverage('US', 'Made Up Class')
262
+
263
+ assert result[0] == tm.ETF_FLOW_ALL
264
+ # Values come back parser-safe (e.g. 'Government, Treasury' -> 'Government Treasury')
265
+ assert 'Government Treasury' in result
266
+ replace.restore()
267
+
268
+
269
+ def test_etf_flow_coverage_dataset_fallback_empty():
270
+ # Fallback with no data returns just the aggregate option
207
271
  replace = Replacer()
208
272
  mock = replace('gs_quant.timeseries.measures_etf.Dataset.get_data', Mock())
209
273
  mock.return_value = pd.DataFrame()
274
+
210
275
  with DataContext(dt.date(2024, 1, 1), dt.date(2024, 1, 2)):
211
- result = tm.etf_flow_coverage('US')
276
+ result = tm.etf_flow_coverage('US', 'Made Up Class')
277
+
212
278
  assert result == [tm.ETF_FLOW_ALL]
213
279
  replace.restore()
214
280
 
215
281
 
282
+ def _metric_frame():
283
+ idx = pd.DatetimeIndex(['2024-01-01', '2024-01-01', '2024-01-02', '2024-01-02'], name='date')
284
+ return pd.DataFrame(
285
+ {
286
+ 'etfAssetClass': ['Fixed Income', 'Equity', 'Fixed Income', 'Equity'],
287
+ 'etfTotalSharesOutstanding': [1.0, 2.0, 3.0, 4.0],
288
+ 'etfTotalFunds': [5.0, 6.0, 7.0, 8.0],
289
+ },
290
+ index=idx,
291
+ )
292
+
293
+
294
+ def test_total_etf_shares_outstanding():
295
+ replace = Replacer()
296
+ mock = replace('gs_quant.timeseries.measures_etf.Dataset.get_data', Mock())
297
+ mock.return_value = _metric_frame()
298
+ with DataContext(dt.date(2024, 1, 1), dt.date(2024, 1, 2)):
299
+ actual = tm.total_etf_shares_outstanding('US')
300
+ assert list(actual.values) == [3.0, 7.0]
301
+ replace.restore()
302
+
303
+
304
+ def test_total_etf_funds():
305
+ replace = Replacer()
306
+ mock = replace('gs_quant.timeseries.measures_etf.Dataset.get_data', Mock())
307
+ mock.return_value = _metric_frame()
308
+ with DataContext(dt.date(2024, 1, 1), dt.date(2024, 1, 2)):
309
+ actual = tm.total_etf_funds('US')
310
+ assert list(actual.values) == [11.0, 15.0]
311
+ replace.restore()
312
+
313
+
314
+ def test_metric_functions_real_time_not_supported():
315
+ for fn in (
316
+ tm.total_etf_shares_outstanding,
317
+ tm.total_etf_assets,
318
+ tm.total_etf_funds,
319
+ ):
320
+ with pytest.raises(NotImplementedError):
321
+ fn('US', real_time=True)
322
+
323
+
216
324
  if __name__ == '__main__':
217
325
  pytest.main(args=[__file__])