gs-quant 2.2.1__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.1 → gs_quant-2.2.3}/PKG-INFO +1 -1
  2. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/_version.py +3 -3
  3. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/core/query_helpers.py +1 -1
  4. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/datagrid/datagrid.py +3 -3
  5. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/data.py +8 -11
  6. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/base.py +4 -1
  7. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/session.py +8 -0
  8. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/skills/gs-quant-overview/SKILL.md +3 -1
  9. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/skills/gs-quant-overview/backtesting.md +166 -4
  10. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/skills/gs-quant-overview/errors.md +7 -0
  11. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/skills/gs-quant-overview/pricing.md +6 -2
  12. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/skills/gs-quant-overview/results.md +4 -0
  13. gs_quant-2.2.3/gs_quant/skills/gs-quant-overview/risk-measures.md +79 -0
  14. gs_quant-2.2.3/gs_quant/skills/gs-quant-overview/scenarios.md +73 -0
  15. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/test_data.py +80 -13
  16. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_etf.py +146 -38
  17. gs_quant-2.2.3/gs_quant/timeseries/etf_classification.py +971 -0
  18. gs_quant-2.2.3/gs_quant/timeseries/measures_etf.py +470 -0
  19. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant.egg-info/PKG-INFO +1 -1
  20. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant.egg-info/SOURCES.txt +3 -0
  21. gs_quant-2.2.1/gs_quant/timeseries/measures_etf.py +0 -327
  22. {gs_quant-2.2.1 → gs_quant-2.2.3}/LICENSE +0 -0
  23. {gs_quant-2.2.1 → gs_quant-2.2.3}/MANIFEST.in +0 -0
  24. {gs_quant-2.2.1 → gs_quant-2.2.3}/NOTICE +0 -0
  25. {gs_quant-2.2.1 → gs_quant-2.2.3}/NOTICE.txt +0 -0
  26. {gs_quant-2.2.1 → gs_quant-2.2.3}/README.md +0 -0
  27. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/__init__.py +0 -0
  28. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/__init__.py +0 -0
  29. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/common/__init__.py +0 -0
  30. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/common/constants.py +0 -0
  31. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/common/enumerators.py +0 -0
  32. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/common/helpers.py +0 -0
  33. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/core/__init__.py +0 -0
  34. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/core/processor.py +0 -0
  35. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/core/processor_result.py +0 -0
  36. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/datagrid/__init__.py +0 -0
  37. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/datagrid/data_cell.py +0 -0
  38. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/datagrid/data_column.py +0 -0
  39. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/datagrid/data_row.py +0 -0
  40. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/datagrid/serializers.py +0 -0
  41. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/datagrid/utils.py +0 -0
  42. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/processors/__init__.py +0 -0
  43. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/processors/analysis_processors.py +0 -0
  44. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/processors/econometrics_processors.py +0 -0
  45. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/processors/scale_processors.py +0 -0
  46. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/processors/special_processors.py +0 -0
  47. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/processors/statistics_processors.py +0 -0
  48. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/processors/utility_processors.py +0 -0
  49. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/workspaces/__init__.py +0 -0
  50. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/workspaces/components.py +0 -0
  51. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/analytics/workspaces/workspace.py +0 -0
  52. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/__init__.py +0 -0
  53. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/api_cache.py +0 -0
  54. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/api_session.py +0 -0
  55. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/data.py +0 -0
  56. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/fred/__init__.py +0 -0
  57. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/fred/data.py +0 -0
  58. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/fred/fred_query.py +0 -0
  59. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/__init__.py +0 -0
  60. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/assets.py +0 -0
  61. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/backtests.py +0 -0
  62. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/__init__.py +0 -0
  63. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/apis.py +0 -0
  64. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/json_encoders/__init__.py +0 -0
  65. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/json_encoders/request_encoders.py +0 -0
  66. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/json_encoders/response_datatypes/__init__.py +0 -0
  67. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/json_encoders/response_datatypes/generic_datatype_encoders.py +0 -0
  68. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/json_encoders/response_datatypes/risk_result_datatype_encoders.py +0 -0
  69. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/json_encoders/response_datatypes/risk_result_encoders.py +0 -0
  70. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/json_encoders/response_datatypes/test_backtest_datatypes_encoders.py +0 -0
  71. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/json_encoders/response_encoders.py +0 -0
  72. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/request.py +0 -0
  73. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/response.py +0 -0
  74. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/response_datatypes/__init__.py +0 -0
  75. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/response_datatypes/backtest_datatypes.py +0 -0
  76. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/response_datatypes/generic_backtest_datatypes.py +0 -0
  77. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/response_datatypes/risk_result.py +0 -0
  78. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/backtests_xasset/response_datatypes/risk_result_datatypes.py +0 -0
  79. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/base_screener.py +0 -0
  80. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/carbon.py +0 -0
  81. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/content.py +0 -0
  82. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/countries.py +0 -0
  83. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/data_screen.py +0 -0
  84. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/datagrid.py +0 -0
  85. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/esg.py +0 -0
  86. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/federated_secmaster.py +0 -0
  87. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/groups.py +0 -0
  88. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/hedges.py +0 -0
  89. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/indices.py +0 -0
  90. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/marketview/__init__.py +0 -0
  91. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/marketview/dashboards.py +0 -0
  92. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/marketview/types.py +0 -0
  93. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/marketview/widgets.py +0 -0
  94. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/monitors.py +0 -0
  95. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/parser.py +0 -0
  96. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/plots.py +0 -0
  97. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/portfolios.py +0 -0
  98. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/price.py +0 -0
  99. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/reports.py +0 -0
  100. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/risk.py +0 -0
  101. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/risk_models.py +0 -0
  102. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/scenarios.py +0 -0
  103. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/screens.py +0 -0
  104. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/secmaster.py +0 -0
  105. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/thematics.py +0 -0
  106. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/users.py +0 -0
  107. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/gs/workspaces.py +0 -0
  108. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/risk.py +0 -0
  109. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/api/utils.py +0 -0
  110. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/backtests/__init__.py +0 -0
  111. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/backtests/action_handler.py +0 -0
  112. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/backtests/actions.py +0 -0
  113. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/backtests/backtest_engine.py +0 -0
  114. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/backtests/backtest_objects.py +0 -0
  115. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/backtests/backtest_utils.py +0 -0
  116. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/backtests/core.py +0 -0
  117. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/backtests/data_handler.py +0 -0
  118. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/backtests/data_sources.py +0 -0
  119. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/backtests/decorator.py +0 -0
  120. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/backtests/equity_vol_engine.py +0 -0
  121. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/backtests/event.py +0 -0
  122. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/backtests/execution_engine.py +0 -0
  123. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/backtests/generic_engine.py +0 -0
  124. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/backtests/generic_engine_action_impls.py +0 -0
  125. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/backtests/order.py +0 -0
  126. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/backtests/predefined_asset_engine.py +0 -0
  127. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/backtests/strategy.py +0 -0
  128. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/backtests/strategy_systematic.py +0 -0
  129. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/backtests/triggers.py +0 -0
  130. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/common.py +0 -0
  131. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/config/__init__.py +0 -0
  132. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/config/options.py +0 -0
  133. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/config/utils.py +0 -0
  134. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/config.ini +0 -0
  135. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/content/__init__.py +0 -0
  136. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/content/events/00_gsquant_meets_markets/02_optimizing_equity_trading/qes_utils.py +0 -0
  137. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/content/reports_and_screens/00_fx/__init__.py +0 -0
  138. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/content/reports_and_screens/00_fx/vol_screen_app.py +0 -0
  139. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/content/reports_and_screens/__init__.py +0 -0
  140. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/context_base.py +0 -0
  141. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/data/__init__.py +0 -0
  142. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/data/coordinate.py +0 -0
  143. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/data/core.py +0 -0
  144. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/data/dataset.py +0 -0
  145. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/data/fields.py +0 -0
  146. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/data/log.py +0 -0
  147. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/data/query.py +0 -0
  148. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/data/stream.py +0 -0
  149. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/data/utilities.py +0 -0
  150. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/datetime/__init__.py +0 -0
  151. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/datetime/date.py +0 -0
  152. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/datetime/gscalendar.py +0 -0
  153. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/datetime/point.py +0 -0
  154. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/datetime/relative_date.py +0 -0
  155. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/datetime/rules.py +0 -0
  156. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/datetime/time.py +0 -0
  157. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/entities/__init__.py +0 -0
  158. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/entities/entitlements.py +0 -0
  159. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/entities/entity.py +0 -0
  160. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/entities/entity_utils.py +0 -0
  161. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/entities/tree_entity.py +0 -0
  162. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/errors.py +0 -0
  163. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/instrument/__init__.py +0 -0
  164. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/instrument/core.py +0 -0
  165. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/instrument/overrides.py +0 -0
  166. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/interfaces/__init__.py +0 -0
  167. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/interfaces/algebra.py +0 -0
  168. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/json_convertors.py +0 -0
  169. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/json_convertors_common.py +0 -0
  170. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/json_encoder.py +0 -0
  171. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/markets/__init__.py +0 -0
  172. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/markets/baskets.py +0 -0
  173. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/markets/core.py +0 -0
  174. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/markets/factor.py +0 -0
  175. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/markets/factor_analytics.py +0 -0
  176. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/markets/hedge.py +0 -0
  177. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/markets/historical.py +0 -0
  178. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/markets/index.py +0 -0
  179. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/markets/indices_utils.py +0 -0
  180. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/markets/markets.py +0 -0
  181. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/markets/optimizer.py +0 -0
  182. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/markets/portfolio.py +0 -0
  183. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/markets/portfolio_manager.py +0 -0
  184. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/markets/portfolio_manager_utils.py +0 -0
  185. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/markets/position_set.py +0 -0
  186. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/markets/position_set_utils.py +0 -0
  187. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/markets/realtime.py +0 -0
  188. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/markets/report.py +0 -0
  189. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/markets/report_utils.py +0 -0
  190. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/markets/scenario.py +0 -0
  191. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/markets/screens.py +0 -0
  192. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/markets/securities.py +0 -0
  193. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/mcp/__init__.py +0 -0
  194. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/mcp/__main__.py +0 -0
  195. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/mcp/client.py +0 -0
  196. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/mcp/config.py +0 -0
  197. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/mcp/dependencies.py +0 -0
  198. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/mcp/middleware.py +0 -0
  199. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/mcp/run.py +0 -0
  200. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/mcp/session_utils.py +0 -0
  201. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/mcp/tools/__init__.py +0 -0
  202. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/mcp/tools/data/__init__.py +0 -0
  203. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/mcp/tools/data/tools.py +0 -0
  204. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/mcp/tools/marketview/__init__.py +0 -0
  205. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/mcp/tools/marketview/tools.py +0 -0
  206. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/mcp/tools/registry.py +0 -0
  207. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/mcp/tools/users/__init__.py +0 -0
  208. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/mcp/tools/users/tools.py +0 -0
  209. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/models/__init__.py +0 -0
  210. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/models/epidemiology.py +0 -0
  211. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/models/risk_model.py +0 -0
  212. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/models/risk_model_utils.py +0 -0
  213. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/priceable.py +0 -0
  214. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/quote_reports/__init__.py +0 -0
  215. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/quote_reports/core.py +0 -0
  216. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/risk/__init__.py +0 -0
  217. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/risk/core.py +0 -0
  218. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/risk/measures.py +0 -0
  219. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/risk/result_handlers.py +0 -0
  220. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/risk/results.py +0 -0
  221. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/risk/scenario_utils.py +0 -0
  222. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/risk/scenarios.py +0 -0
  223. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/risk/transform.py +0 -0
  224. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/skills/__init__.py +0 -0
  225. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/skills/__main__.py +0 -0
  226. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/skills/gs-quant-overview/datasets.md +0 -0
  227. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/skills/gs-quant-overview/instruments.md +0 -0
  228. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/skills/gs-quant-overview/measure.md +0 -0
  229. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/__init__.py +0 -0
  230. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/assets.py +0 -0
  231. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/assets_screener.py +0 -0
  232. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/backtests.py +0 -0
  233. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/base_screener.py +0 -0
  234. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/charts.py +0 -0
  235. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/common.py +0 -0
  236. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/content.py +0 -0
  237. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/coordinates.py +0 -0
  238. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/countries.py +0 -0
  239. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/data.py +0 -0
  240. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/data_screen.py +0 -0
  241. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/groups.py +0 -0
  242. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/hedge.py +0 -0
  243. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/indices.py +0 -0
  244. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/instrument.py +0 -0
  245. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/measures.py +0 -0
  246. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/monitor.py +0 -0
  247. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/portfolios.py +0 -0
  248. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/positions_v2_pricing.py +0 -0
  249. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/price.py +0 -0
  250. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/reports.py +0 -0
  251. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/risk.py +0 -0
  252. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/risk_models.py +0 -0
  253. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/scenarios.py +0 -0
  254. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/screens.py +0 -0
  255. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/secmaster.py +0 -0
  256. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/trades.py +0 -0
  257. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/workflow_quote.py +0 -0
  258. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/target/workspaces_markets.py +0 -0
  259. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/__init__.py +0 -0
  260. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/analytics/__init__.py +0 -0
  261. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/analytics/test_datagrid.py +0 -0
  262. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/analytics/test_sorting_and_filtering.py +0 -0
  263. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/analytics/test_sparkline_processor.py +0 -0
  264. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/analytics/test_workspace.py +0 -0
  265. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/__init__.py +0 -0
  266. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/backtests_xasset/__init__.py +0 -0
  267. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/backtests_xasset/json_encoders/__init__.py +0 -0
  268. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/backtests_xasset/json_encoders/response_datatypes/__init__.py +0 -0
  269. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/backtests_xasset/json_encoders/response_datatypes/test_risk_result_datatype_encoders.py +0 -0
  270. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/backtests_xasset/json_encoders/response_datatypes/test_risk_result_encoders.py +0 -0
  271. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/backtests_xasset/json_encoders/test_request_encoders.py +0 -0
  272. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/backtests_xasset/json_encoders/test_response_encoders.py +0 -0
  273. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/backtests_xasset/response_datatypes/test_backtest_datatypes.py +0 -0
  274. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/backtests_xasset/response_datatypes/test_risk_result.py +0 -0
  275. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/backtests_xasset/response_datatypes/test_risk_result_datatypes.py +0 -0
  276. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/backtests_xasset/test_request.py +0 -0
  277. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/backtests_xasset/test_response.py +0 -0
  278. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/test_assets.py +0 -0
  279. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/test_backtests.py +0 -0
  280. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/test_base_screener.py +0 -0
  281. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/test_cache.py +0 -0
  282. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/test_carbon.py +0 -0
  283. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/test_content.py +0 -0
  284. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/test_data_screen.py +0 -0
  285. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/test_esg.py +0 -0
  286. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/test_fred.py +0 -0
  287. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/test_groups.py +0 -0
  288. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/test_gs_data_tracing.py +0 -0
  289. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/test_index.py +0 -0
  290. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/test_instruments.py +0 -0
  291. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/test_json.py +0 -0
  292. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/test_monitor.py +0 -0
  293. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/test_portfolios.py +0 -0
  294. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/test_reports.py +0 -0
  295. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/test_risk.py +0 -0
  296. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/test_risk_models.py +0 -0
  297. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/test_scenarios.py +0 -0
  298. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/test_target.py +0 -0
  299. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/test_thread_manager.py +0 -0
  300. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/api/test_users.py +0 -0
  301. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/backtest/__init__.py +0 -0
  302. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/backtest/test_backtest_eq_vol_engine.py +0 -0
  303. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/backtest/test_backtest_flow_vol.py +0 -0
  304. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/backtest/test_backtest_predefined.py +0 -0
  305. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/backtest/test_generic_engine.py +0 -0
  306. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/backtest/test_triggers.py +0 -0
  307. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/config/test_config_loader.py +0 -0
  308. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/config/test_options.py +0 -0
  309. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/data/__init__.py +0 -0
  310. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/data/test_data_caching.py +0 -0
  311. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/data/test_data_coordinate.py +0 -0
  312. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/data/test_dataset.py +0 -0
  313. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/data/test_dataset_tracing.py +0 -0
  314. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/data/test_query.py +0 -0
  315. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/datetime_/__init__.py +0 -0
  316. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/datetime_/test_date.py +0 -0
  317. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/datetime_/test_gscalendar.py +0 -0
  318. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/datetime_/test_point.py +0 -0
  319. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/datetime_/test_relative_date.py +0 -0
  320. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/datetime_/test_time.py +0 -0
  321. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/entities/test_entitlements.py +0 -0
  322. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/entities/test_group.py +0 -0
  323. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/entities/test_user.py +0 -0
  324. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/fixtures/__init__.py +0 -0
  325. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/fixtures/content.py +0 -0
  326. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/markets/__init__.py +0 -0
  327. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/markets/test_baskets.py +0 -0
  328. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/markets/test_close_market.py +0 -0
  329. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/markets/test_hedger.py +0 -0
  330. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/markets/test_indices_utils.py +0 -0
  331. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/markets/test_instrument.py +0 -0
  332. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/markets/test_portfolio.py +0 -0
  333. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/markets/test_portfolio_manager.py +0 -0
  334. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/markets/test_position_set.py +0 -0
  335. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/markets/test_pricing_context.py +0 -0
  336. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/markets/test_realtime_pricing_context.py +0 -0
  337. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/markets/test_report.py +0 -0
  338. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/markets/test_scenarios.py +0 -0
  339. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/markets/test_securities.py +0 -0
  340. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/mock_data_test_utils.py +0 -0
  341. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/models/__init__.py +0 -0
  342. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/models/test_epidemiology.py +0 -0
  343. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/models/test_risk_model.py +0 -0
  344. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/models/test_risk_model_utils.py +0 -0
  345. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/risk/test_measures.py +0 -0
  346. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/risk/test_results.py +0 -0
  347. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/skills/__init__.py +0 -0
  348. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/skills/test_installer.py +0 -0
  349. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/test_base.py +0 -0
  350. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/test_context_base.py +0 -0
  351. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/test_session.py +0 -0
  352. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/__init__.py +0 -0
  353. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/multi_measure/__init__.py +0 -0
  354. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/multi_measure/test_commod.py +0 -0
  355. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/multi_measure/test_measure_registry.py +0 -0
  356. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_algebra.py +0 -0
  357. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_analysis.py +0 -0
  358. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_backtesting.py +0 -0
  359. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_datetime.py +0 -0
  360. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_econometrics.py +0 -0
  361. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_event_study.py +0 -0
  362. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_helper.py +0 -0
  363. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures.py +0 -0
  364. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_bonds.py +0 -0
  365. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_cognitive_credit.py +0 -0
  366. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_countries.py +0 -0
  367. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_factset.py +0 -0
  368. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_fx_vol.py +0 -0
  369. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_inflation.py +0 -0
  370. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_portfolios.py +0 -0
  371. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_rates.py +0 -0
  372. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_reports.py +0 -0
  373. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_risk_models.py +0 -0
  374. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_tba.py +0 -0
  375. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_measures_xccy.py +0 -0
  376. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_plot_measure_signatures.py +0 -0
  377. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_query_kwarg_casing.py +0 -0
  378. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_rolling.py +0 -0
  379. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_statistics.py +0 -0
  380. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_tca.py +0 -0
  381. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_technicals.py +0 -0
  382. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/test_timeseries.py +0 -0
  383. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/timeseries/utils.py +0 -0
  384. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/tracing/__init__.py +0 -0
  385. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/tracing/test_tracing.py +0 -0
  386. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/utils/__init__.py +0 -0
  387. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/utils/datagrid_test_utils.py +0 -0
  388. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/utils/mock_calc.py +0 -0
  389. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/utils/mock_data.py +0 -0
  390. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/utils/mock_request.py +0 -0
  391. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/utils/test_utilities.py +0 -0
  392. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/test/utils/test_utils.py +0 -0
  393. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/__init__.py +0 -0
  394. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/_event_study/__init__.py +0 -0
  395. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/_event_study/event_study_api.py +0 -0
  396. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/_event_study/event_study_asset_source.py +0 -0
  397. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/_event_study/event_study_definitions.py +0 -0
  398. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/_event_study/event_study_frame.py +0 -0
  399. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/_event_study/event_study_impact.py +0 -0
  400. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/_event_study/event_study_labels.py +0 -0
  401. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/_event_study/event_study_macro_source.py +0 -0
  402. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/_event_study/event_study_objects.py +0 -0
  403. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/_event_study/event_study_processing.py +0 -0
  404. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/_event_study/event_study_query.py +0 -0
  405. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/algebra.py +0 -0
  406. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/analysis.py +0 -0
  407. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/backtesting.py +0 -0
  408. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/datetime.py +0 -0
  409. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/econometrics.py +0 -0
  410. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/event_study.py +0 -0
  411. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/helper.py +0 -0
  412. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/measure_registry.py +0 -0
  413. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/measures.py +0 -0
  414. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/measures_bonds.py +0 -0
  415. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/measures_cognitive_credit.py +0 -0
  416. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/measures_countries.py +0 -0
  417. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/measures_factset.py +0 -0
  418. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/measures_fx_vol.py +0 -0
  419. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/measures_helper.py +0 -0
  420. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/measures_inflation.py +0 -0
  421. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/measures_portfolios.py +0 -0
  422. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/measures_rates.py +0 -0
  423. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/measures_reports.py +0 -0
  424. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/measures_risk_models.py +0 -0
  425. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/measures_tba.py +0 -0
  426. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/measures_xccy.py +0 -0
  427. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/statistics.py +0 -0
  428. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/tca.py +0 -0
  429. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/timeseries/technicals.py +0 -0
  430. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/tracing/__init__.py +0 -0
  431. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/tracing/tracing.py +0 -0
  432. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/workflow/__init__.py +0 -0
  433. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant/workflow/workflow.py +0 -0
  434. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant.egg-info/dependency_links.txt +0 -0
  435. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant.egg-info/requires.txt +0 -0
  436. {gs_quant-2.2.1 → gs_quant-2.2.3}/gs_quant.egg-info/top_level.txt +0 -0
  437. {gs_quant-2.2.1 → gs_quant-2.2.3}/pyproject.toml +0 -0
  438. {gs_quant-2.2.1 → gs_quant-2.2.3}/setup.cfg +0 -0
  439. {gs_quant-2.2.1 → gs_quant-2.2.3}/setup.py +0 -0
  440. {gs_quant-2.2.1 → 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.1
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-13T10:20:55+0000",
11
+ "date": "2026-10-28T18:51:11+0000",
12
12
  "dirty": false,
13
13
  "error": null,
14
- "full-revisionid": "bbe7071653ccfc0d431e11c3a31dbd511afc394f",
15
- "version": "2.2.1"
14
+ "full-revisionid": "ae7eb6b3fd1f50ce3f5128a4c935e9adf885a74f",
15
+ "version": "2.2.3"
16
16
  }
17
17
  ''' # END VERSION_JSON
18
18
 
@@ -44,7 +44,7 @@ def aggregate_queries(query_infos):
44
44
  series: ProcessorResult = ProcessorResult(
45
45
  False, f'No dataset resolved for measure={coordinate.measure} with dimensions={coordinate.dimensions}'
46
46
  )
47
- asyncio.get_event_loop().run_until_complete(query_info.processor.calculate(query_info.attr, series, None))
47
+ asyncio.run(query_info.processor.calculate(query_info.attr, series, None))
48
48
  continue
49
49
  dataset_mappings.setdefault(
50
50
  query_key,
@@ -428,13 +428,13 @@ class DataGrid:
428
428
 
429
429
  for query_info in self._data_queries:
430
430
  if isinstance(query_info, MeasureQueryInfo):
431
- asyncio.get_event_loop().run_until_complete(
431
+ asyncio.run(
432
432
  query_info.processor.calculate(
433
433
  query_info.attr, ProcessorResult(True, None), self.rule_cache, query_info=query_info
434
434
  )
435
435
  )
436
436
  elif query_info.data is None or len(query_info.data) == 0:
437
- asyncio.get_event_loop().run_until_complete(
437
+ asyncio.run(
438
438
  query_info.processor.calculate(
439
439
  query_info.attr,
440
440
  ProcessorResult(False, f'No data found for Coordinate {query_info.query.coordinate}'),
@@ -442,7 +442,7 @@ class DataGrid:
442
442
  )
443
443
  )
444
444
  else:
445
- asyncio.get_event_loop().run_until_complete(
445
+ asyncio.run(
446
446
  query_info.processor.calculate(
447
447
  query_info.attr, ProcessorResult(True, query_info.data), self.rule_cache
448
448
  )
@@ -1401,19 +1401,16 @@ class GsDataApi(DataApi):
1401
1401
  @classmethod
1402
1402
  def get_field_types(cls, field_names: Union[str, list[str]]):
1403
1403
  try:
1404
- fields = cls.get_dataset_fields(names=field_names, limit=len(field_names))
1404
+ response = cls.get_session().sync.post(
1405
+ '/data/fields/query', payload={'where': {'name': field_names}, 'limit': len(field_names)}
1406
+ )
1407
+ return {
1408
+ f['name']: (f.get('parameters') or {}).get('format') or f.get('type')
1409
+ for f in response.get('results', ())
1410
+ if f.get('name')
1411
+ }
1405
1412
  except Exception:
1406
1413
  return {}
1407
- if fields:
1408
- field_types = {}
1409
- field: DataSetFieldEntity
1410
- for field in fields:
1411
- field_name = field.name
1412
- field_type = field.type_
1413
- field_format = field.parameters.get('format') if field.parameters else None
1414
- field_types[field_name] = field_format or field_type
1415
- return field_types
1416
- return {}
1417
1414
 
1418
1415
  @classmethod
1419
1416
  def construct_dataframe_with_types(
@@ -287,7 +287,10 @@ class Base(ABC):
287
287
  from types import UnionType
288
288
 
289
289
  if isinstance(tp, UnionType):
290
- return any(cls.__is_type_match(arg, val) for arg in tp.__args__)
290
+ args = tp.__args__
291
+ if float in args:
292
+ args += (int,)
293
+ return any(cls.__is_type_match(arg, val) for arg in args)
291
294
  else:
292
295
  is_generic_alias = isinstance(tp, typing._GenericAlias)
293
296
  if not is_generic_alias:
@@ -623,6 +623,14 @@ class GsSession(ContextBase):
623
623
  )
624
624
  else:
625
625
  raise MqError('not implemented')
626
+ logger.debug(
627
+ "%s %s%s cookies: %s headers: %s",
628
+ method,
629
+ url,
630
+ path,
631
+ tuple(f'{k.name} {k.domain}' for k in self._session.cookies),
632
+ tuple(k for k in self._session.headers),
633
+ )
626
634
  return kwargs
627
635
 
628
636
  def _parse_response(
@@ -142,7 +142,9 @@ For detailed guidance on specific topics, open the file whose topic or symptoms
142
142
 
143
143
  - `instruments.md` — Constructing all instrument types (IRSwap, XCcy swaps, FXOption, EqOption, etc.), strikes by asset class, and FX pitfalls
144
144
  - `pricing.md` — PricingContext, HistoricalPricingContext and LiveMarket: which close is used and market data location, choosing contexts, long calculations and `is_batch`, relative terms and `resolve()`. Symptoms: slow code, many requests, timeouts, prices that differ from other tools or look a day old.
145
+ - `scenarios.md` — Shocking and overriding market data: patterns, shock sizes, equity vols, FX correlation, shocked P&L over time.
146
+ - `risk-measures.md` — What each risk measure's number means: units, scaling with size, `currency=` and `aggregation_level=`, by asset class.
145
147
  - `errors.md` — gs_quant error messages and what to do, and how to reach support when nothing fixes it.
146
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.
147
- - `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.
148
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
@@ -22,6 +22,13 @@ gs_quant's generic request timeout: the service it called (a dataset query, for
22
22
  answer within 65 seconds. Retry; if it keeps happening, ask for less per call (for datasets, see
23
23
  "Iterating Over Large Queries" in `datasets.md`).
24
24
 
25
+ ### `ErrorValue object has no attribute …` / `… not 'ErrorValue'` / `unsupported operand type(s) for …: 'ErrorValue' …`
26
+ A calculation failed. gs_quant doesn't raise when a calculation fails: `.result()` returns an
27
+ `ErrorValue`, and these errors come from using it as if it were a number or a result. The cause is
28
+ the text after `Error was`, or what `print(result)` shows. Check each result with
29
+ `isinstance(result, ErrorValue)` before using it. Reading `.raw_value` on an `ErrorValue` doesn't
30
+ raise: it returns `None`, so a failure can slip through as a missing number.
31
+
25
32
  ## If nothing here fixes it
26
33
 
27
34
  **Isolate the problem with the user before they contact support.** Cut their code down to the
@@ -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
 
@@ -120,6 +120,10 @@ jan_15 = result[dt.date(2025, 1, 15)] # PortfolioRiskResult for that single dat
120
120
  result.dates # tuple of dt.date
121
121
  ```
122
122
 
123
+ **Failed dates.** If the calculation fails on some dates, the series leaves those dates out and
124
+ keeps their `ErrorValue`s in `series.error`, a dict keyed by date. If it fails on every date,
125
+ `.result()` returns the first date's `ErrorValue` instead of a series.
126
+
123
127
  ## Converting to DataFrames
124
128
 
125
129
  All result types support conversion to pandas DataFrames:
@@ -0,0 +1,79 @@
1
+ # Risk measures
2
+
3
+ This page says what each risk measure's number means.
4
+
5
+ ## Parameters
6
+
7
+ **`currency=`** converts the result into that currency, e.g. `EqDelta(currency='EUR')`;
8
+ `currency='local'` gives the instrument's own currency. Without it, some measures report USD rather
9
+ than the instrument's currency, e.g. `IRVegaParallel`.
10
+
11
+ **`aggregation_level=`** sets how finely a bucketed measure is broken down:
12
+
13
+ | Level | Result |
14
+ |---|---|
15
+ | `'Point'` (default) | a table with one row per market data point, e.g. each curve tenor |
16
+ | `'Class'` | a table with one row per instrument class, e.g. the cash, FRA and swap points of a rate curve |
17
+ | `'Asset'` | a table with one row per asset, e.g. per currency |
18
+ | `'Type'` | one number |
19
+
20
+ **`.unit`** on a result names its unit when it is set, e.g. the currency of a price. Many results
21
+ have no unit set; that does not mean they are unitless.
22
+
23
+ ## Scales
24
+
25
+ **Rates, vols and fractions come back as decimals**: `IRFwdRate`, `IRSpotRate`,
26
+ `IRAnnualImpliedVol`, `FXAnnualImpliedVol`, `EqAnnualImpliedVol`, `FXQuotedDelta`, `FXCalcDelta`
27
+ and `FairPremiumInPercent`. For example, `0.0466` is 4.66%.
28
+
29
+ **Prices, premiums and sensitivities scale with the trade's size** (notional, or number of
30
+ options); fractions, rates, vols and spot levels don't.
31
+
32
+ ## Equities
33
+
34
+ **`EqDelta` is the USD present value change for a 100% move in spot**: divide by 100 for a 1% move.
35
+ It is a bump-and-reprice of spot by ±1% in which vols move with spot under GS's market model, so it
36
+ can differ from a Black-Scholes delta. It is in USD even for a non-USD underlying, whose `.price()`
37
+ is in its own currency, so convert one of the two before comparing them.
38
+
39
+ With **`EqGamma`**, a spot move of `x` (a fraction, so `0.01` is 1%) changes the present value by
40
+ about `EqDelta * x + 50 * EqGamma * x**2`.
41
+
42
+ **`EqVega` is the USD present value change for a 1 vol point rise** in implied vol (`0.01`).
43
+
44
+ ## FX
45
+
46
+ **`FXDelta` is the USD present value change for a move of 1 in spot**, one row per USD cross:
47
+ `PnL = dSpot * FXDelta`. **`FXCalcDelta`** is the delta as a fraction of notional, and
48
+ **`FXQuotedDelta`** the Black-Scholes delta as a fraction (the delta a strike such as `'25d'` is
49
+ solved against). **`FXDeltaHedge`** gives the notionals of USD-cross forwards that hedge the delta.
50
+
51
+ **`FXGamma` is the change in wing delta, in the underlying currency and scaled by notional, for a
52
+ 100% move in spot.** A pair's rate is the number of units of the overlying currency per unit of the
53
+ underlying currency, so in USDJPY the underlying is USD and the overlying is JPY. A spot move of X%
54
+ changes the delta by about `FXGamma * X / 100`, and a move of 1 in spot by about `FXGamma / FXSpot`.
55
+
56
+ **`FXVega` is the USD present value change for a 1 vol point rise** in ATM vols (`0.01`).
57
+
58
+ **`FairPremium`** is the premium that makes the present value zero, paid on the premium payment
59
+ date, so it differs from the discounted price. **`FairPremiumInPercent`** is `FairPremium` divided
60
+ by notional times the forward (`FXFwd`).
61
+
62
+ **`FXSpot` reflects a spot shock only if the shock's pattern leaves `mkt_class` unset**; the price
63
+ moves either way.
64
+
65
+ **There is no Volga or Vanna measure**: calculate `FXVega` and `FXDelta` under a vol scenario and
66
+ take the difference from the unshocked values.
67
+
68
+ ## Rates
69
+
70
+ **`IRDelta` is the present value change for a 1bp move in the instruments the curve is built
71
+ from**. **`IRGammaParallelLocalCcy`** is the change in that delta, in local currency, for a 1bp
72
+ move, so its unit is local currency per bp².
73
+
74
+ **`IRVega` is the present value change for a 1bp rise in normal vol**; **`IRVegaParallel`** is the
75
+ same in USD unless `currency=` is set, so on a non-USD trade it differs from
76
+ `IRVega(currency='local')` by the exchange rate.
77
+
78
+ **`IRAnnualImpliedVol` is a normal vol** as a decimal (`0.0087` is 87bp). **`IRFwdRate`** is the
79
+ forward par rate and **`IRSpotRate`** the spot par rate, both decimals.
@@ -0,0 +1,73 @@
1
+ # Scenarios
2
+
3
+ A scenario changes market data for the calculations run inside it. It maps patterns, which select
4
+ market data points, to shocks, which move them:
5
+
6
+ ```python
7
+ from gs_quant.risk import MarketDataPattern, MarketDataShock, MarketDataShockType, MarketDataShockBasedScenario
8
+
9
+ scenario = MarketDataShockBasedScenario(
10
+ shocks={
11
+ MarketDataPattern(mkt_type, mkt_asset, mkt_class, mkt_point, mkt_quoting_style): MarketDataShock(
12
+ MarketDataShockType.Absolute, # or Proportional, Override
13
+ value,
14
+ ),
15
+ }
16
+ )
17
+ with PricingContext(pricing_date=d, market_data_location=loc): # the context you already price in
18
+ base_f = inst.price()
19
+ with scenario:
20
+ shocked_f = inst.price()
21
+ ```
22
+
23
+ Outside any pricing context, each calculation under the scenario is sent on its own.
24
+
25
+ **Choosing the pattern fields.** Set only the fields you need; unset fields match everything. To
26
+ get the values, call `inst.market()`: it lists the market data points the instrument uses, each
27
+ named `<mkt_type>_<mkt_asset>_<mkt_class>_<mkt_point>.<mkt_quoting_style>`. Copy the field values
28
+ from those names rather than guessing, because they can differ from market convention. For
29
+ example, EURUSD's points are under `USD/EUR`, and the spot point there holds the EURUSD rate, so a
30
+ shock to it moves EURUSD; `'EUR/USD'` matches nothing. Pass `mkt_point` as a tuple, such as
31
+ `('10Y',)`: a plain string like `'10Y'` is split into characters and does not select the 10Y point.
32
+
33
+ **A pattern that selects nothing changes nothing, without an error**: a misspelt field, a pair
34
+ written the other way round from its market data name, or several assets in one string. Use one
35
+ pattern per asset, and check that the shocked price moved.
36
+
37
+ **Absolute shocks and overrides are decimals in the point's own units**: for example, `0.0001` is
38
+ 1bp on a rate and `0.01` is 1 vol point on an FX vol. **A proportional shock is a fraction of the
39
+ current level**: `0.06` raises it by 6%.
40
+
41
+ **If overriding a single point makes the model fail to calibrate**, override the whole curve
42
+ instead by leaving `mkt_point` unset. For example, single-tenor overrides of an FX vol can fail with
43
+ `Wing vols are substantially different to ATM vol`.
44
+
45
+ **FX options on several pairs take the correlation between two pairs from the vol of their cross**
46
+ (for example, the cross of EUR/SEK and EUR/MXN is MXN/SEK); their market data has no correlation
47
+ points. To test a different correlation, override the cross's ATM vol curve.
48
+
49
+ **Equities: vols are a scale (1.0) plus spreads (0.0).** An absolute shock on `mkt_class='Scale'`,
50
+ `mkt_quoting_style='Value'` scales the vols: `0.1` raises them by 10%. A proportional shock on
51
+ `ATM VOL` multiplies a spread of 0 and changes nothing.
52
+
53
+ **For shocked P&L over time**, use a `HistoricalPricingContext` in place of the `PricingContext`
54
+ above and subtract the two series.
55
+
56
+ ## Examples
57
+
58
+ ```python
59
+ # +1bp on the EUR 10y swap rate only
60
+ eur_10y = {
61
+ MarketDataPattern('IR', 'EUR', mkt_class='SWAP', mkt_point=('10Y',)): MarketDataShock(
62
+ MarketDataShockType.Absolute, 0.0001
63
+ )
64
+ }
65
+ # SPX vols up 10%
66
+ spx_vols = {
67
+ MarketDataPattern('EQ VOL', '.SPX', 'Scale', mkt_quoting_style='Value'): MarketDataShock(
68
+ MarketDataShockType.Absolute, 0.1
69
+ )
70
+ }
71
+ # MXN/SEK ATM vol curve set to 10.4%, which changes the EUR/SEK–EUR/MXN correlation
72
+ mxnsek_vol = {MarketDataPattern('FX VOL', 'MXN/SEK', 'ATM VOL'): MarketDataShock(MarketDataShockType.Override, 0.104)}
73
+ ```