gs-quant 2.2.4__tar.gz → 2.2.6__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 (439) hide show
  1. {gs_quant-2.2.4 → gs_quant-2.2.6}/PKG-INFO +1 -1
  2. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/_version.py +3 -3
  3. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/risk/core.py +2 -1
  4. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/skills/gs-quant-overview/SKILL.md +2 -2
  5. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/skills/gs-quant-overview/instruments.md +13 -1
  6. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/skills/gs-quant-overview/risk-measures.md +3 -1
  7. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/skills/gs-quant-overview/scenarios.md +8 -0
  8. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_analysis.py +2 -4
  9. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_datetime.py +5 -0
  10. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_econometrics.py +5 -0
  11. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures.py +16 -0
  12. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_etf.py +151 -0
  13. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/datetime.py +2 -3
  14. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/econometrics.py +2 -1
  15. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/etf_classification.py +0 -1
  16. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/helper.py +5 -0
  17. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/measures.py +21 -6
  18. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/measures_etf.py +166 -2
  19. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant.egg-info/PKG-INFO +1 -1
  20. {gs_quant-2.2.4 → gs_quant-2.2.6}/LICENSE +0 -0
  21. {gs_quant-2.2.4 → gs_quant-2.2.6}/MANIFEST.in +0 -0
  22. {gs_quant-2.2.4 → gs_quant-2.2.6}/NOTICE +0 -0
  23. {gs_quant-2.2.4 → gs_quant-2.2.6}/NOTICE.txt +0 -0
  24. {gs_quant-2.2.4 → gs_quant-2.2.6}/README.md +0 -0
  25. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/__init__.py +0 -0
  26. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/__init__.py +0 -0
  27. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/common/__init__.py +0 -0
  28. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/common/constants.py +0 -0
  29. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/common/enumerators.py +0 -0
  30. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/common/helpers.py +0 -0
  31. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/core/__init__.py +0 -0
  32. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/core/processor.py +0 -0
  33. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/core/processor_result.py +0 -0
  34. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/core/query_helpers.py +0 -0
  35. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/datagrid/__init__.py +0 -0
  36. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/datagrid/data_cell.py +0 -0
  37. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/datagrid/data_column.py +0 -0
  38. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/datagrid/data_row.py +0 -0
  39. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/datagrid/datagrid.py +0 -0
  40. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/datagrid/serializers.py +0 -0
  41. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/datagrid/utils.py +0 -0
  42. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/processors/__init__.py +0 -0
  43. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/processors/analysis_processors.py +0 -0
  44. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/processors/econometrics_processors.py +0 -0
  45. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/processors/scale_processors.py +0 -0
  46. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/processors/special_processors.py +0 -0
  47. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/processors/statistics_processors.py +0 -0
  48. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/processors/utility_processors.py +0 -0
  49. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/workspaces/__init__.py +0 -0
  50. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/workspaces/components.py +0 -0
  51. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/analytics/workspaces/workspace.py +0 -0
  52. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/__init__.py +0 -0
  53. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/api_cache.py +0 -0
  54. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/api_session.py +0 -0
  55. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/data.py +0 -0
  56. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/fred/__init__.py +0 -0
  57. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/fred/data.py +0 -0
  58. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/fred/fred_query.py +0 -0
  59. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/__init__.py +0 -0
  60. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/assets.py +0 -0
  61. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/backtests.py +0 -0
  62. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/__init__.py +0 -0
  63. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/apis.py +0 -0
  64. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/json_encoders/__init__.py +0 -0
  65. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/json_encoders/request_encoders.py +0 -0
  66. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/json_encoders/response_datatypes/__init__.py +0 -0
  67. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/json_encoders/response_datatypes/generic_datatype_encoders.py +0 -0
  68. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/json_encoders/response_datatypes/risk_result_datatype_encoders.py +0 -0
  69. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/json_encoders/response_datatypes/risk_result_encoders.py +0 -0
  70. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/json_encoders/response_datatypes/test_backtest_datatypes_encoders.py +0 -0
  71. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/json_encoders/response_encoders.py +0 -0
  72. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/request.py +0 -0
  73. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/response.py +0 -0
  74. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/response_datatypes/__init__.py +0 -0
  75. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/response_datatypes/backtest_datatypes.py +0 -0
  76. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/response_datatypes/generic_backtest_datatypes.py +0 -0
  77. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/response_datatypes/risk_result.py +0 -0
  78. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/response_datatypes/risk_result_datatypes.py +0 -0
  79. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/base_screener.py +0 -0
  80. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/carbon.py +0 -0
  81. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/content.py +0 -0
  82. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/countries.py +0 -0
  83. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/data.py +0 -0
  84. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/data_screen.py +0 -0
  85. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/datagrid.py +0 -0
  86. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/esg.py +0 -0
  87. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/federated_secmaster.py +0 -0
  88. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/groups.py +0 -0
  89. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/hedges.py +0 -0
  90. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/indices.py +0 -0
  91. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/marketview/__init__.py +0 -0
  92. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/marketview/dashboards.py +0 -0
  93. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/marketview/types.py +0 -0
  94. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/marketview/widgets.py +0 -0
  95. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/monitors.py +0 -0
  96. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/parser.py +0 -0
  97. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/plots.py +0 -0
  98. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/portfolios.py +0 -0
  99. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/price.py +0 -0
  100. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/reports.py +0 -0
  101. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/risk.py +0 -0
  102. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/risk_models.py +0 -0
  103. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/scenarios.py +0 -0
  104. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/screens.py +0 -0
  105. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/secmaster.py +0 -0
  106. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/thematics.py +0 -0
  107. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/users.py +0 -0
  108. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/gs/workspaces.py +0 -0
  109. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/risk.py +0 -0
  110. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/api/utils.py +0 -0
  111. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/backtests/__init__.py +0 -0
  112. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/backtests/action_handler.py +0 -0
  113. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/backtests/actions.py +0 -0
  114. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/backtests/backtest_engine.py +0 -0
  115. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/backtests/backtest_objects.py +0 -0
  116. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/backtests/backtest_utils.py +0 -0
  117. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/backtests/core.py +0 -0
  118. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/backtests/data_handler.py +0 -0
  119. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/backtests/data_sources.py +0 -0
  120. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/backtests/decorator.py +0 -0
  121. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/backtests/equity_vol_engine.py +0 -0
  122. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/backtests/event.py +0 -0
  123. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/backtests/execution_engine.py +0 -0
  124. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/backtests/generic_engine.py +0 -0
  125. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/backtests/generic_engine_action_impls.py +0 -0
  126. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/backtests/order.py +0 -0
  127. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/backtests/predefined_asset_engine.py +0 -0
  128. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/backtests/strategy.py +0 -0
  129. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/backtests/strategy_systematic.py +0 -0
  130. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/backtests/triggers.py +0 -0
  131. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/base.py +0 -0
  132. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/common.py +0 -0
  133. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/config/__init__.py +0 -0
  134. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/config/options.py +0 -0
  135. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/config/utils.py +0 -0
  136. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/config.ini +0 -0
  137. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/content/__init__.py +0 -0
  138. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/content/events/00_gsquant_meets_markets/02_optimizing_equity_trading/qes_utils.py +0 -0
  139. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/content/reports_and_screens/00_fx/__init__.py +0 -0
  140. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/content/reports_and_screens/00_fx/vol_screen_app.py +0 -0
  141. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/content/reports_and_screens/__init__.py +0 -0
  142. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/context_base.py +0 -0
  143. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/data/__init__.py +0 -0
  144. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/data/coordinate.py +0 -0
  145. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/data/core.py +0 -0
  146. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/data/dataset.py +0 -0
  147. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/data/fields.py +0 -0
  148. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/data/log.py +0 -0
  149. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/data/query.py +0 -0
  150. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/data/stream.py +0 -0
  151. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/data/utilities.py +0 -0
  152. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/datetime/__init__.py +0 -0
  153. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/datetime/date.py +0 -0
  154. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/datetime/gscalendar.py +0 -0
  155. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/datetime/point.py +0 -0
  156. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/datetime/relative_date.py +0 -0
  157. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/datetime/rules.py +0 -0
  158. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/datetime/time.py +0 -0
  159. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/entities/__init__.py +0 -0
  160. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/entities/entitlements.py +0 -0
  161. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/entities/entity.py +0 -0
  162. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/entities/entity_utils.py +0 -0
  163. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/entities/tree_entity.py +0 -0
  164. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/errors.py +0 -0
  165. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/instrument/__init__.py +0 -0
  166. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/instrument/core.py +0 -0
  167. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/instrument/overrides.py +0 -0
  168. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/interfaces/__init__.py +0 -0
  169. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/interfaces/algebra.py +0 -0
  170. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/json_convertors.py +0 -0
  171. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/json_convertors_common.py +0 -0
  172. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/json_encoder.py +0 -0
  173. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/markets/__init__.py +0 -0
  174. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/markets/baskets.py +0 -0
  175. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/markets/core.py +0 -0
  176. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/markets/factor.py +0 -0
  177. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/markets/factor_analytics.py +0 -0
  178. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/markets/hedge.py +0 -0
  179. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/markets/historical.py +0 -0
  180. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/markets/index.py +0 -0
  181. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/markets/indices_utils.py +0 -0
  182. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/markets/markets.py +0 -0
  183. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/markets/optimizer.py +0 -0
  184. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/markets/portfolio.py +0 -0
  185. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/markets/portfolio_manager.py +0 -0
  186. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/markets/portfolio_manager_utils.py +0 -0
  187. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/markets/position_set.py +0 -0
  188. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/markets/position_set_utils.py +0 -0
  189. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/markets/realtime.py +0 -0
  190. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/markets/report.py +0 -0
  191. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/markets/report_utils.py +0 -0
  192. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/markets/scenario.py +0 -0
  193. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/markets/screens.py +0 -0
  194. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/markets/securities.py +0 -0
  195. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/mcp/__init__.py +0 -0
  196. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/mcp/__main__.py +0 -0
  197. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/mcp/client.py +0 -0
  198. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/mcp/config.py +0 -0
  199. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/mcp/dependencies.py +0 -0
  200. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/mcp/middleware.py +0 -0
  201. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/mcp/run.py +0 -0
  202. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/mcp/session_utils.py +0 -0
  203. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/mcp/tools/__init__.py +0 -0
  204. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/mcp/tools/data/__init__.py +0 -0
  205. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/mcp/tools/data/tools.py +0 -0
  206. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/mcp/tools/marketview/__init__.py +0 -0
  207. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/mcp/tools/marketview/tools.py +0 -0
  208. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/mcp/tools/registry.py +0 -0
  209. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/mcp/tools/users/__init__.py +0 -0
  210. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/mcp/tools/users/tools.py +0 -0
  211. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/models/__init__.py +0 -0
  212. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/models/epidemiology.py +0 -0
  213. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/models/risk_model.py +0 -0
  214. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/models/risk_model_utils.py +0 -0
  215. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/priceable.py +0 -0
  216. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/quote_reports/__init__.py +0 -0
  217. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/quote_reports/core.py +0 -0
  218. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/risk/__init__.py +0 -0
  219. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/risk/measures.py +0 -0
  220. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/risk/result_handlers.py +0 -0
  221. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/risk/results.py +0 -0
  222. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/risk/scenario_utils.py +0 -0
  223. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/risk/scenarios.py +0 -0
  224. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/risk/transform.py +0 -0
  225. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/session.py +0 -0
  226. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/skills/__init__.py +0 -0
  227. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/skills/__main__.py +0 -0
  228. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/skills/gs-quant-overview/backtesting.md +0 -0
  229. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/skills/gs-quant-overview/datasets.md +0 -0
  230. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/skills/gs-quant-overview/errors.md +0 -0
  231. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/skills/gs-quant-overview/measure.md +0 -0
  232. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/skills/gs-quant-overview/pricing.md +0 -0
  233. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/skills/gs-quant-overview/results.md +0 -0
  234. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/__init__.py +0 -0
  235. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/assets.py +0 -0
  236. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/assets_screener.py +0 -0
  237. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/backtests.py +0 -0
  238. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/base_screener.py +0 -0
  239. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/charts.py +0 -0
  240. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/common.py +0 -0
  241. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/content.py +0 -0
  242. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/coordinates.py +0 -0
  243. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/countries.py +0 -0
  244. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/data.py +0 -0
  245. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/data_screen.py +0 -0
  246. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/groups.py +0 -0
  247. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/hedge.py +0 -0
  248. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/indices.py +0 -0
  249. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/instrument.py +0 -0
  250. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/measures.py +0 -0
  251. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/monitor.py +0 -0
  252. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/portfolios.py +0 -0
  253. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/positions_v2_pricing.py +0 -0
  254. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/price.py +0 -0
  255. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/reports.py +0 -0
  256. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/risk.py +0 -0
  257. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/risk_models.py +0 -0
  258. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/scenarios.py +0 -0
  259. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/screens.py +0 -0
  260. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/secmaster.py +0 -0
  261. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/trades.py +0 -0
  262. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/workflow_quote.py +0 -0
  263. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/target/workspaces_markets.py +0 -0
  264. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/__init__.py +0 -0
  265. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/analytics/__init__.py +0 -0
  266. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/analytics/test_datagrid.py +0 -0
  267. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/analytics/test_sorting_and_filtering.py +0 -0
  268. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/analytics/test_sparkline_processor.py +0 -0
  269. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/analytics/test_workspace.py +0 -0
  270. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/__init__.py +0 -0
  271. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/backtests_xasset/__init__.py +0 -0
  272. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/backtests_xasset/json_encoders/__init__.py +0 -0
  273. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/backtests_xasset/json_encoders/response_datatypes/__init__.py +0 -0
  274. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/backtests_xasset/json_encoders/response_datatypes/test_risk_result_datatype_encoders.py +0 -0
  275. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/backtests_xasset/json_encoders/response_datatypes/test_risk_result_encoders.py +0 -0
  276. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/backtests_xasset/json_encoders/test_request_encoders.py +0 -0
  277. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/backtests_xasset/json_encoders/test_response_encoders.py +0 -0
  278. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/backtests_xasset/response_datatypes/test_backtest_datatypes.py +0 -0
  279. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/backtests_xasset/response_datatypes/test_risk_result.py +0 -0
  280. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/backtests_xasset/response_datatypes/test_risk_result_datatypes.py +0 -0
  281. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/backtests_xasset/test_request.py +0 -0
  282. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/backtests_xasset/test_response.py +0 -0
  283. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/test_assets.py +0 -0
  284. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/test_backtests.py +0 -0
  285. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/test_base_screener.py +0 -0
  286. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/test_cache.py +0 -0
  287. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/test_carbon.py +0 -0
  288. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/test_content.py +0 -0
  289. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/test_data.py +0 -0
  290. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/test_data_screen.py +0 -0
  291. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/test_esg.py +0 -0
  292. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/test_fred.py +0 -0
  293. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/test_groups.py +0 -0
  294. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/test_gs_data_tracing.py +0 -0
  295. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/test_index.py +0 -0
  296. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/test_instruments.py +0 -0
  297. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/test_json.py +0 -0
  298. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/test_monitor.py +0 -0
  299. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/test_portfolios.py +0 -0
  300. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/test_reports.py +0 -0
  301. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/test_risk.py +0 -0
  302. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/test_risk_models.py +0 -0
  303. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/test_scenarios.py +0 -0
  304. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/test_target.py +0 -0
  305. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/test_thread_manager.py +0 -0
  306. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/api/test_users.py +0 -0
  307. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/backtest/__init__.py +0 -0
  308. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/backtest/test_backtest_eq_vol_engine.py +0 -0
  309. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/backtest/test_backtest_flow_vol.py +0 -0
  310. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/backtest/test_backtest_predefined.py +0 -0
  311. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/backtest/test_generic_engine.py +0 -0
  312. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/backtest/test_triggers.py +0 -0
  313. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/config/test_config_loader.py +0 -0
  314. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/config/test_options.py +0 -0
  315. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/data/__init__.py +0 -0
  316. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/data/test_data_caching.py +0 -0
  317. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/data/test_data_coordinate.py +0 -0
  318. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/data/test_dataset.py +0 -0
  319. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/data/test_dataset_tracing.py +0 -0
  320. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/data/test_query.py +0 -0
  321. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/datetime_/__init__.py +0 -0
  322. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/datetime_/test_date.py +0 -0
  323. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/datetime_/test_gscalendar.py +0 -0
  324. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/datetime_/test_point.py +0 -0
  325. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/datetime_/test_relative_date.py +0 -0
  326. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/datetime_/test_time.py +0 -0
  327. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/entities/test_entitlements.py +0 -0
  328. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/entities/test_group.py +0 -0
  329. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/entities/test_user.py +0 -0
  330. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/fixtures/__init__.py +0 -0
  331. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/fixtures/content.py +0 -0
  332. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/markets/__init__.py +0 -0
  333. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/markets/test_baskets.py +0 -0
  334. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/markets/test_close_market.py +0 -0
  335. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/markets/test_hedger.py +0 -0
  336. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/markets/test_indices_utils.py +0 -0
  337. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/markets/test_instrument.py +0 -0
  338. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/markets/test_portfolio.py +0 -0
  339. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/markets/test_portfolio_manager.py +0 -0
  340. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/markets/test_position_set.py +0 -0
  341. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/markets/test_pricing_context.py +0 -0
  342. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/markets/test_realtime_pricing_context.py +0 -0
  343. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/markets/test_report.py +0 -0
  344. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/markets/test_scenarios.py +0 -0
  345. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/markets/test_securities.py +0 -0
  346. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/mock_data_test_utils.py +0 -0
  347. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/models/__init__.py +0 -0
  348. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/models/test_epidemiology.py +0 -0
  349. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/models/test_risk_model.py +0 -0
  350. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/models/test_risk_model_utils.py +0 -0
  351. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/risk/test_measures.py +0 -0
  352. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/risk/test_results.py +0 -0
  353. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/skills/__init__.py +0 -0
  354. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/skills/test_installer.py +0 -0
  355. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/test_base.py +0 -0
  356. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/test_context_base.py +0 -0
  357. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/test_session.py +0 -0
  358. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/__init__.py +0 -0
  359. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/multi_measure/__init__.py +0 -0
  360. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/multi_measure/test_commod.py +0 -0
  361. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/multi_measure/test_measure_registry.py +0 -0
  362. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_algebra.py +0 -0
  363. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_backtesting.py +0 -0
  364. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_event_study.py +0 -0
  365. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_helper.py +0 -0
  366. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_bonds.py +0 -0
  367. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_cognitive_credit.py +0 -0
  368. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_countries.py +0 -0
  369. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_factset.py +0 -0
  370. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_fx_vol.py +0 -0
  371. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_inflation.py +0 -0
  372. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_portfolios.py +0 -0
  373. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_rates.py +0 -0
  374. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_reports.py +0 -0
  375. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_risk_models.py +0 -0
  376. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_tba.py +0 -0
  377. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_xccy.py +0 -0
  378. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_plot_measure_signatures.py +0 -0
  379. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_query_kwarg_casing.py +0 -0
  380. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_rolling.py +0 -0
  381. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_statistics.py +0 -0
  382. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_tca.py +0 -0
  383. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_technicals.py +0 -0
  384. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_timeseries.py +0 -0
  385. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/timeseries/utils.py +0 -0
  386. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/tracing/__init__.py +0 -0
  387. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/tracing/test_tracing.py +0 -0
  388. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/utils/__init__.py +0 -0
  389. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/utils/datagrid_test_utils.py +0 -0
  390. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/utils/mock_calc.py +0 -0
  391. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/utils/mock_data.py +0 -0
  392. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/utils/mock_request.py +0 -0
  393. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/utils/test_utilities.py +0 -0
  394. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/test/utils/test_utils.py +0 -0
  395. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/__init__.py +0 -0
  396. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/_event_study/__init__.py +0 -0
  397. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/_event_study/event_study_api.py +0 -0
  398. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/_event_study/event_study_asset_source.py +0 -0
  399. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/_event_study/event_study_definitions.py +0 -0
  400. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/_event_study/event_study_frame.py +0 -0
  401. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/_event_study/event_study_impact.py +0 -0
  402. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/_event_study/event_study_labels.py +0 -0
  403. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/_event_study/event_study_macro_source.py +0 -0
  404. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/_event_study/event_study_objects.py +0 -0
  405. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/_event_study/event_study_processing.py +0 -0
  406. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/_event_study/event_study_query.py +0 -0
  407. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/algebra.py +0 -0
  408. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/analysis.py +0 -0
  409. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/backtesting.py +0 -0
  410. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/event_study.py +0 -0
  411. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/measure_registry.py +0 -0
  412. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/measures_bonds.py +0 -0
  413. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/measures_cognitive_credit.py +0 -0
  414. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/measures_countries.py +0 -0
  415. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/measures_factset.py +0 -0
  416. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/measures_fx_vol.py +0 -0
  417. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/measures_helper.py +0 -0
  418. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/measures_inflation.py +0 -0
  419. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/measures_portfolios.py +0 -0
  420. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/measures_rates.py +0 -0
  421. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/measures_reports.py +0 -0
  422. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/measures_risk_models.py +0 -0
  423. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/measures_tba.py +0 -0
  424. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/measures_xccy.py +0 -0
  425. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/statistics.py +0 -0
  426. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/tca.py +0 -0
  427. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/timeseries/technicals.py +0 -0
  428. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/tracing/__init__.py +0 -0
  429. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/tracing/tracing.py +0 -0
  430. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/workflow/__init__.py +0 -0
  431. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant/workflow/workflow.py +0 -0
  432. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant.egg-info/SOURCES.txt +0 -0
  433. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant.egg-info/dependency_links.txt +0 -0
  434. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant.egg-info/requires.txt +0 -0
  435. {gs_quant-2.2.4 → gs_quant-2.2.6}/gs_quant.egg-info/top_level.txt +0 -0
  436. {gs_quant-2.2.4 → gs_quant-2.2.6}/pyproject.toml +0 -0
  437. {gs_quant-2.2.4 → gs_quant-2.2.6}/setup.cfg +0 -0
  438. {gs_quant-2.2.4 → gs_quant-2.2.6}/setup.py +0 -0
  439. {gs_quant-2.2.4 → gs_quant-2.2.6}/versioneer.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gs_quant
3
- Version: 2.2.4
3
+ Version: 2.2.6
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-11-03T16:39:47+0000",
11
+ "date": "2026-11-18T10:35:49+0000",
12
12
  "dirty": false,
13
13
  "error": null,
14
- "full-revisionid": "a836565fbb2c52433ca6d0c5495238716a18eea5",
15
- "version": "2.2.4"
14
+ "full-revisionid": "70220e300524d54bd273be0f4c485d53b3780482",
15
+ "version": "2.2.6"
16
16
  }
17
17
  ''' # END VERSION_JSON
18
18
 
@@ -673,7 +673,8 @@ def sort_risk(df: pd.DataFrame, by: tuple[str, ...] = __risk_columns) -> pd.Data
673
673
  df_fields = [f for f in by if f in columns]
674
674
  df_fields.extend(f for f in columns if f not in df_fields)
675
675
 
676
- result = pd.DataFrame.from_records(data, columns=columns)[df_fields]
676
+ # from_records on the object array from df.values no longer infers numeric dtypes as of pandas 3.1
677
+ result = pd.DataFrame.from_records(data, columns=columns).infer_objects()[df_fields]
677
678
  if 'date' in result:
678
679
  result = result.set_index('date')
679
680
 
@@ -131,9 +131,9 @@ results = portfolio.calc([DollarPrice, IRDelta]) # multiple risk measures
131
131
 
132
132
  For detailed guidance on specific topics, open the file whose topic or symptoms match the task.
133
133
 
134
- - `instruments.md` — Constructing all instrument types (IRSwap, XCcy swaps, FXOption, EqOption, etc.), strikes by asset class, and FX pitfalls
134
+ - `instruments.md` — Constructing all instrument types (IRSwap, XCcy swaps, FXOption, EqOption, etc.), strikes by asset class, and FX pitfalls, including an `FXOption` notional in a third currency and a `strike_price` replaced by two notionals
135
135
  - `pricing.md` — PricingContext, HistoricalPricingContext and LiveMarket: which close is used and market data location, choosing contexts, long calculations and `is_batch`, caching results with `use_cache`, tracing slow or failing code with `Tracer`, relative terms and `resolve()`. Symptoms: slow code, many requests, timeouts, prices that differ from other tools or look a day old.
136
- - `scenarios.md` — Shocking and overriding market data: patterns, shock sizes, equity vols, FX correlation, shocked P&L over time.
136
+ - `scenarios.md` — Shocking and overriding market data: patterns, shock sizes, equity vols, FX correlation, shocked P&L over time, rolling FX instruments forward with `RollFwd`.
137
137
  - `risk-measures.md` — What each risk measure's number means: units, scaling with size, `currency=` and `aggregation_level=`, by asset class.
138
138
  - `errors.md` — gs_quant error messages and what to do, and how to reach support when nothing fixes it.
139
139
  - `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, field and symbol dimension lookup, index constituents, realised volatility, intraday data, and common pitfalls.
@@ -11,11 +11,14 @@ each asset class's own syntax:
11
11
  |---|---|---|---|---|
12
12
  | Equities (`EqOption.strike_price`) | `'ATMS'` spot, `'ATMF'` forward | `'95%'` of spot, `'1.05*ATMF'` | `'25d'` | `'p=10%'` |
13
13
  | FX (`FXOption.strike_price`) | `'s'` spot, `'f'` forward | `'s+1%'`, `'1.05*s'` | `'25d'` | `'p=1%'` |
14
- | Rates (`IRSwaption.strike`, `IRSwap.fixed_rate`, `IRCap.cap_rate`) | `'ATM'` | `'ATM+25'`, `'ATM-25'` (bp) | `'25d'` | |
14
+ | Rates (`IRSwaption.strike`, `IRSwap.fixed_rate`, `IRCap.cap_rate`) | `'ATM'` | `'ATM+25'`, `'ATM-25'` (bp) | `'25d'` | `'100000/pv'` |
15
15
  | Credit (`CDIndexOption.strike`) | `'s'` spot spread | `'s+1%'` | `'25d'` | |
16
16
 
17
17
  Deltas are unsigned; the option type sets the side.
18
18
 
19
+ **For rates, `'<amount>/pv'` solves the strike or fixed rate that gives that price, in the instrument's currency.** It
20
+ works on `IRSwaption`, `IRSwap` and `IRCapFloor`, not on `IRCap` or on straddles.
21
+
19
22
  ## Interest Rate Swap
20
23
 
21
24
  ```python
@@ -312,6 +315,15 @@ dual_digital = FXMultiCrossBinary(
312
315
  )
313
316
  ```
314
317
 
318
+ ### 3. `FXOption` notional: two settings that silently change the trade
319
+
320
+ **`notional_currency` must be one of the pair's two currencies.** Any other currency is read as the pair's first
321
+ currency: `FXOption(pair='USDJPY', notional_currency='EUR', notional_amount=10e6)` is a 10m USD option. For 10m EUR
322
+ of USDJPY, convert the 10m EUR to USD at spot and pass that amount with `notional_currency='USD'`.
323
+
324
+ **Set `notional_amount` or `notional_amount_in_other_currency`, not both.** With both, the strike becomes their ratio,
325
+ replacing `strike_price`.
326
+
315
327
  ## Equity Option
316
328
 
317
329
  ```python
@@ -69,7 +69,9 @@ take the difference from the unshocked values.
69
69
 
70
70
  **`IRDelta` is the present value change for a 1bp move in the instruments the curve is built
71
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².
72
+ move, so its unit is local currency per bp². **`IRGammaParallel`** is the same gamma in USD, so on a non-USD trade it
73
+ differs from `IRGammaParallelLocalCcy` by the exchange rate; **`IRGamma`** splits it by the instruments the curve is
74
+ built from, one row each (named in its `inner_mkt_*` columns), and its rows add up to about `IRGammaParallel`.
73
75
 
74
76
  **`IRVega` is the present value change for a 1bp rise in normal vol**; **`IRVegaParallel`** is the
75
77
  same in USD unless `currency=` is set, so on a non-USD trade it differs from
@@ -53,6 +53,14 @@ points. To test a different correlation, override the cross's ATM vol curve.
53
53
  **For shocked P&L over time**, use a `HistoricalPricingContext` in place of the `PricingContext`
54
54
  above and subtract the two series.
55
55
 
56
+ **On FX instruments, `RollFwd(date=...)` prices as if that much time had passed, and `realise_fwd`, `True` by default,
57
+ decides where spot goes.** With `realise_fwd=False`, spot stays at today's level and the option's forward is rebuilt
58
+ from it over the time the option still has to run: a 3-month option rolled 1 month gets today's 2-month forward. With
59
+ `realise_fwd=True`, spot moves to today's forward for the roll date and the option's forward stays at today's. ATM vols
60
+ stay with their tenors: after the roll, the 1-month ATM vol is today's, running to a date one month after the roll.
61
+ Resolve the instrument first: a relative expiry such as `'3m'` resolves from the roll date, so it becomes a new 3-month
62
+ option rather than the rolled one.
63
+
56
64
  ## Examples
57
65
 
58
66
  ```python
@@ -199,13 +199,11 @@ def test_lag():
199
199
 
200
200
  result = lag(x, mode=LagMode.TRUNCATE)
201
201
  expected = pd.Series([np.nan, 1.0, 2.0, 3.0], index=dates)
202
- expected.index.freq = None
203
- assert_series_equal(result, expected, obj="Lag")
202
+ assert_series_equal(result, expected, check_freq=False, obj="Lag")
204
203
 
205
204
  result = lag(x, 2, LagMode.TRUNCATE)
206
205
  expected = pd.Series([np.nan, np.nan, 1.0, 2.0], index=dates)
207
- expected.index.freq = None
208
- assert_series_equal(result, expected, obj="Lag 2")
206
+ assert_series_equal(result, expected, check_freq=False, obj="Lag 2")
209
207
 
210
208
  result = lag(x, 2, LagMode.EXTEND)
211
209
  expected = pd.Series(
@@ -422,6 +422,11 @@ def test_date_range():
422
422
  with pytest.raises(MqTypeError):
423
423
  date_range(pd.Series([1]), 0, 0, 'string')
424
424
 
425
+ idx = pd.date_range('2019-01-01', periods=6, freq='D')
426
+ z = pd.Series(values, index=idx)
427
+ result = date_range(z, dt.date(2019, 1, 3), 1)
428
+ assert (result == z.iloc[2:5]).all()
429
+
425
430
 
426
431
  def test_append():
427
432
  x = pd.Series([3.1, 4.1, 5.1], index=pd.date_range('2019-01-03', '2019-01-05'))
@@ -688,6 +688,11 @@ def test_beta():
688
688
  expected = pd.Series([np.nan, 0.8255252918287954, np.nan, -2.24327163719368], index=daily_dates[2:])
689
689
  assert_series_equal(result, expected, obj="beta with strdate window")
690
690
 
691
+ ts_idx = pd.DatetimeIndex(daily_dates)
692
+ result_ts = beta(x.set_axis(ts_idx), y.set_axis(ts_idx), Window('2d', 0))
693
+ result_date = beta(x, y, Window('2d', 0))
694
+ np.testing.assert_allclose(result_ts.values, result_date.values)
695
+
691
696
  with pytest.raises(MqTypeError):
692
697
  beta(x, y, '2d', 1)
693
698
 
@@ -4285,6 +4285,22 @@ def test__skew_term_fetcher():
4285
4285
  replace.restore()
4286
4286
 
4287
4287
 
4288
+ @pytest.mark.parametrize(
4289
+ 'date_value, expected',
4290
+ [
4291
+ (pd.Timestamp.today().normalize(), True),
4292
+ (pd.Timestamp.today().normalize() - pd.Timedelta(days=5), False),
4293
+ (pd.Timestamp.today().normalize() + pd.Timedelta(days=1), True),
4294
+ (dt.date.today(), True),
4295
+ (dt.date(2020, 1, 1), False),
4296
+ (dt.datetime.now(), True),
4297
+ ],
4298
+ )
4299
+ def test_is_on_or_after_today(date_value, expected):
4300
+ # Timestamp vs dt.date comparisons raise TypeError on pandas >= 2; the helper must handle all date-likes
4301
+ assert tm._is_on_or_after_today(date_value) is expected
4302
+
4303
+
4288
4304
  def test_skew_term():
4289
4305
  with DataContext('2018-01-01', '2040-01-01'):
4290
4306
  _skew_term_typical(tm.SkewReference.DELTA, 25)
@@ -321,5 +321,156 @@ def test_metric_functions_real_time_not_supported():
321
321
  fn('US', real_time=True)
322
322
 
323
323
 
324
+ # ---------------------------------------------------------------------------
325
+ # total_return
326
+ # ---------------------------------------------------------------------------
327
+
328
+
329
+ class _MockAsset:
330
+ def __init__(self, gsid='GSID123', close=None):
331
+ self._gsid = gsid
332
+ self._close = _close_series() if close is None else close
333
+
334
+ def get_marquee_id(self):
335
+ return 'MQID123'
336
+
337
+ def get_identifier(self, _id_type):
338
+ return self._gsid
339
+
340
+ def get_data_series(self, *_args, **_kwargs):
341
+ return self._close
342
+
343
+
344
+ def _close_series():
345
+ idx = pd.DatetimeIndex(['2024-01-01', '2024-01-02', '2024-01-03'], name='date')
346
+ return pd.Series([100.0, 110.0, 120.0], index=idx)
347
+
348
+
349
+ def _cash_dividend_actions():
350
+ # One cash dividend with ex-date (effectiveDate) inside the window
351
+ return [
352
+ {
353
+ 'eventType': 'Cash Dividend',
354
+ 'effectiveDate': '2024-01-02',
355
+ 'records': [
356
+ {'instrument_type': 'Currency', 'dataValue': 2.0},
357
+ ],
358
+ },
359
+ # A non-dividend event that must be ignored
360
+ {
361
+ 'eventType': 'Split',
362
+ 'effectiveDate': '2024-01-02',
363
+ 'records': [],
364
+ },
365
+ ]
366
+
367
+
368
+ def test_total_return_real_time_not_supported():
369
+ with pytest.raises(NotImplementedError):
370
+ tm.total_return(_MockAsset(), real_time=True)
371
+
372
+
373
+ def test_total_return_total_price_dividend():
374
+ replace = Replacer()
375
+ ca_mock = replace('gs_quant.timeseries.measures_etf.GsSecurityMasterApi.get_corporate_actions', Mock())
376
+ ca_mock.return_value = _cash_dividend_actions()
377
+
378
+ asset = _MockAsset()
379
+ with DataContext(dt.date(2024, 1, 1), dt.date(2024, 1, 3)):
380
+ total = tm.total_return(asset)
381
+ price = tm.total_return(asset, tm.TotalReturnComponent.PRICE)
382
+ dividend = tm.total_return(asset, tm.TotalReturnComponent.DIVIDEND)
383
+
384
+ # start price = 100; dividend of 2.0 applies from ex-date 2024-01-02 onward
385
+ # price % : (100-100)/100, (110-100)/100, (120-100)/100 -> 0, 10, 20
386
+ assert list(price.round(6).values) == [0.0, 10.0, 20.0]
387
+ # dividend %: 0, 2/100, 2/100 -> 0, 2, 2
388
+ assert list(dividend.round(6).values) == [0.0, 2.0, 2.0]
389
+ # total % : price + dividend -> 0, 12, 22
390
+ assert list(total.round(6).values) == [0.0, 12.0, 22.0]
391
+ replace.restore()
392
+
393
+
394
+ def test_total_return_no_dividends():
395
+ replace = Replacer()
396
+ ca_mock = replace('gs_quant.timeseries.measures_etf.GsSecurityMasterApi.get_corporate_actions', Mock())
397
+ ca_mock.return_value = []
398
+
399
+ with DataContext(dt.date(2024, 1, 1), dt.date(2024, 1, 3)):
400
+ total = tm.total_return(_MockAsset())
401
+
402
+ # No dividends -> total return equals price-only return
403
+ assert list(total.round(6).values) == [0.0, 10.0, 20.0]
404
+ replace.restore()
405
+
406
+
407
+ def test_total_return_no_price_raises():
408
+ with pytest.raises(MqValueError):
409
+ with DataContext(dt.date(2024, 1, 1), dt.date(2024, 1, 3)):
410
+ tm.total_return(_MockAsset(close=pd.Series(dtype=float)))
411
+
412
+
413
+ def test_cash_dividends_lookup_failure_degrades_empty():
414
+ replace = Replacer()
415
+ # Corporate-actions lookup failing should degrade to an empty dividend series
416
+ ca_mock = replace('gs_quant.timeseries.measures_etf.GsSecurityMasterApi.get_corporate_actions', Mock())
417
+ ca_mock.side_effect = Exception('boom')
418
+
419
+ result = tm._cash_dividends_per_share(_MockAsset(), dt.date(2024, 1, 1), dt.date(2024, 1, 3))
420
+ assert result.empty
421
+ replace.restore()
422
+
423
+
424
+ def test_cash_dividends_no_gsid_returns_empty():
425
+ # Asset with no GSID identifier -> empty dividend series
426
+ result = tm._cash_dividends_per_share(_MockAsset(gsid=None), dt.date(2024, 1, 1), dt.date(2024, 1, 3))
427
+ assert result.empty
428
+
429
+
430
+ def test_cash_dividends_missing_effective_date_skipped():
431
+ replace = Replacer()
432
+ ca_mock = replace('gs_quant.timeseries.measures_etf.GsSecurityMasterApi.get_corporate_actions', Mock())
433
+ ca_mock.return_value = [
434
+ {
435
+ 'eventType': 'Cash Dividend',
436
+ # no effectiveDate -> must be skipped
437
+ 'records': [{'instrument_type': 'Currency', 'dataValue': 5.0}],
438
+ },
439
+ ]
440
+
441
+ result = tm._cash_dividends_per_share(_MockAsset(), dt.date(2024, 1, 1), dt.date(2024, 1, 3))
442
+ assert result.empty
443
+ replace.restore()
444
+
445
+
446
+ def test_total_return_zero_start_price_raises():
447
+ replace = Replacer()
448
+ ca_mock = replace('gs_quant.timeseries.measures_etf.GsSecurityMasterApi.get_corporate_actions', Mock())
449
+ ca_mock.return_value = []
450
+
451
+ idx = pd.DatetimeIndex(['2024-01-01', '2024-01-02', '2024-01-03'], name='date')
452
+ zero_start = pd.Series([0.0, 110.0, 120.0], index=idx)
453
+ with pytest.raises(MqValueError):
454
+ with DataContext(dt.date(2024, 1, 1), dt.date(2024, 1, 3)):
455
+ tm.total_return(_MockAsset(close=zero_start))
456
+ replace.restore()
457
+
458
+
459
+ def test_cash_dividends_out_of_window_excluded():
460
+ replace = Replacer()
461
+ ca_mock = replace('gs_quant.timeseries.measures_etf.GsSecurityMasterApi.get_corporate_actions', Mock())
462
+ ca_mock.return_value = [
463
+ {
464
+ 'eventType': 'Cash Dividend',
465
+ 'effectiveDate': '2023-12-01', # before the window
466
+ 'records': [{'instrument_type': 'Currency', 'dataValue': 5.0}],
467
+ },
468
+ ]
469
+
470
+ result = tm._cash_dividends_per_share(_MockAsset(), dt.date(2024, 1, 1), dt.date(2024, 1, 3))
471
+ assert result.empty
472
+ replace.restore()
473
+
474
+
324
475
  if __name__ == '__main__':
325
476
  pytest.main(args=[__file__])
@@ -521,11 +521,10 @@ def date_range(
521
521
  if isinstance(end_date, int):
522
522
  end_date = x.index[-(1 + end_date)]
523
523
 
524
- try:
524
+ if isinstance(start_date, dt.datetime):
525
525
  start_date = start_date.date()
526
+ if isinstance(end_date, dt.datetime):
526
527
  end_date = end_date.date()
527
- except AttributeError:
528
- pass
529
528
 
530
529
  if weekdays_only:
531
530
  week_mask = None
@@ -40,6 +40,7 @@ from .helper import (
40
40
  normalize_window,
41
41
  plot_function,
42
42
  plot_session_function,
43
+ window_cutoff,
43
44
  )
44
45
  from .statistics import MeanType, mean, product, std, sum_
45
46
 
@@ -1035,7 +1036,7 @@ def beta(x: pd.Series, b: pd.Series, w: Union[Window, int, str] = Window(None, 0
1035
1036
  offset = w.w
1036
1037
  start = 0
1037
1038
  for i in range(1, size):
1038
- min_index_value = (series_index[i] - offset).date()
1039
+ min_index_value = window_cutoff(series_index[i], offset)
1039
1040
  for idx in range(start, i + 1):
1040
1041
  if series_index[idx] > min_index_value:
1041
1042
  start = idx
@@ -13,7 +13,6 @@ KIND, either express or implied. See the License for the
13
13
  specific language governing permissions and limitations
14
14
  under the License.
15
15
  """
16
-
17
16
  # ---------------------------------------------------------------------------
18
17
  # AUTO-GENERATED from the FactSet "Fund Exposure Sort" classification overview.
19
18
  # Do not edit by hand - regenerate from the source CSV.
@@ -90,6 +90,11 @@ except ImportError as e:
90
90
  return pd.Series(values, index=s.index, dtype=np.double)
91
91
 
92
92
 
93
+ def window_cutoff(idx, offset: pd.DateOffset):
94
+ cutoff = idx - offset
95
+ return cutoff if isinstance(idx, pd.Timestamp) else (cutoff.date() if isinstance(cutoff, dt.datetime) else cutoff)
96
+
97
+
93
98
  def _create_enum(name, members):
94
99
  return Enum(name, {n.upper(): n.lower() for n in members}, module=__name__)
95
100
 
@@ -488,7 +488,9 @@ def _get_custom_bd(exchange):
488
488
 
489
489
 
490
490
  @log_return(_logger, 'trying pricing dates')
491
- def _range_from_pricing_date(exchange, pricing_date: Optional[GENERIC_DATE] = None, buffer: int = 0):
491
+ def _range_from_pricing_date(
492
+ exchange, pricing_date: Optional[GENERIC_DATE] = None, buffer: int = 0
493
+ ) -> tuple[Union[dt.date, pd.Timestamp], Union[dt.date, pd.Timestamp]]:
492
494
  if isinstance(pricing_date, dt.date):
493
495
  return pricing_date, pricing_date
494
496
 
@@ -508,6 +510,19 @@ def _range_from_pricing_date(exchange, pricing_date: Optional[GENERIC_DATE] = No
508
510
  return start, end
509
511
 
510
512
 
513
+ def _is_on_or_after_today(date_value: Union[dt.date, dt.datetime, pd.Timestamp]) -> bool:
514
+ """
515
+ Check whether a date-like value falls on or after today.
516
+
517
+ Safely compares dt.date, dt.datetime and pd.Timestamp values (pandas >= 2 refuses to compare Timestamp with
518
+ dt.date directly).
519
+
520
+ :param date_value: date-like value, e.g. as returned by _range_from_pricing_date
521
+ :return: True if date_value's calendar date is today or later
522
+ """
523
+ return pd.Timestamp(date_value).normalize() >= pd.Timestamp.today().normalize()
524
+
525
+
511
526
  def _market_data_timed(q, request_id=None, ignore_errors: bool = False):
512
527
  args = [q, request_id] if request_id else [q]
513
528
  return GsDataApi.get_market_data(*args, ignore_errors=ignore_errors)
@@ -2355,7 +2370,7 @@ def skew_term(
2355
2370
  dataset_ids = set()
2356
2371
  where = {'strikeReference': strike_reference.value, 'relativeStrike': q_strikes}
2357
2372
 
2358
- if asset.asset_class == AssetClass.Equity and (pricing_date is None or end >= dt.date.today()): # intraday
2373
+ if asset.asset_class == AssetClass.Equity and (pricing_date is None or _is_on_or_after_today(end)): # intraday
2359
2374
  data_requests = [
2360
2375
  partial(
2361
2376
  _get_latest_term_structure_data,
@@ -2490,8 +2505,8 @@ def vol_term(
2490
2505
 
2491
2506
  df = df_expiry = pd.DataFrame()
2492
2507
  dataset_ids = set()
2493
- today = dt.date.today()
2494
- if asset.asset_class == AssetClass.Equity and (pricing_date is None or end >= today): # use intraday data
2508
+ # use intraday data
2509
+ if asset.asset_class == AssetClass.Equity and (pricing_date is None or _is_on_or_after_today(end)):
2495
2510
  df = _get_latest_term_structure_data(asset_id, QueryType.IMPLIED_VOLATILITY, where, 'tenor', source, request_id)
2496
2511
  df_expiry = _get_latest_term_structure_data(
2497
2512
  asset_id, QueryType.IMPLIED_VOLATILITY_BY_EXPIRATION, where, 'expirationDate', source, request_id
@@ -2951,10 +2966,10 @@ def var_term(
2951
2966
  df = pd.concat(sub_frames)
2952
2967
  else:
2953
2968
  asset_id = asset.get_marquee_id()
2954
- today = dt.date.today()
2955
2969
  df = pd.DataFrame()
2956
2970
 
2957
- if asset.asset_class == AssetClass.Equity and (pricing_date is None or end >= today): # try intraday data
2971
+ # try intraday data
2972
+ if asset.asset_class == AssetClass.Equity and (pricing_date is None or _is_on_or_after_today(end)):
2958
2973
  df = _get_latest_term_structure_data(asset_id, QueryType.VAR_SWAP, None, 'tenor', source, request_id)
2959
2974
  dataset_ids.update(getattr(df, 'dataset_ids', ()))
2960
2975
 
@@ -19,11 +19,16 @@ from typing import Optional
19
19
 
20
20
  import pandas as pd
21
21
 
22
- from gs_quant.data import DataContext, Dataset
22
+ from gs_quant.api.gs.data import QueryType
23
+ from gs_quant.api.gs.secmaster import GsSecurityMasterApi, SecMasterIdentifiers
24
+ from gs_quant.common import AssetClass, AssetType
25
+ from gs_quant.data import DataContext, DataFrequency, Dataset
26
+ from gs_quant.data.fields import DataMeasure
23
27
  from gs_quant.entities.entity import Country, EntityType
24
28
  from gs_quant.errors import MqValueError
29
+ from gs_quant.markets.securities import Asset, AssetIdentifier
25
30
  from gs_quant.timeseries.etf_classification import ETF_CLASSIFICATION
26
- from gs_quant.timeseries.helper import plot_measure_entity
31
+ from gs_quant.timeseries.helper import plot_measure, plot_measure_entity
27
32
  from gs_quant.timeseries.measures import ExtendedSeries
28
33
 
29
34
  # ---------------------------------------------------------------------------
@@ -468,3 +473,162 @@ total_etf_shares_outstanding.__doc__ = _ETF_MEASURE_DOC.format(
468
473
  )
469
474
  total_etf_assets.__doc__ = _ETF_MEASURE_DOC.format(what='assets', fn='total_etf_assets')
470
475
  total_etf_funds.__doc__ = _ETF_MEASURE_DOC.format(what='fund count', fn='total_etf_funds')
476
+
477
+
478
+ # ---------------------------------------------------------------------------
479
+ # Asset-level total return (price appreciation + dividends)
480
+ # ---------------------------------------------------------------------------
481
+
482
+
483
+ class TotalReturnComponent(Enum):
484
+ """Which part of the total return to return."""
485
+
486
+ TOTAL = 'total' # price appreciation + cash dividends
487
+ PRICE = 'price' # price appreciation only
488
+ DIVIDEND = 'dividend' # dividend contribution only
489
+
490
+
491
+ def _cash_dividends_per_share(asset: Asset, start, end) -> pd.Series:
492
+ """
493
+ Return cash dividends per share for an asset, indexed by effective (ex) date.
494
+
495
+ Dividends come from the Security Master corporate-actions endpoint, which
496
+ carries the true per-share cash amount for each 'Cash Dividend' event (the
497
+ price datasets' adjustedClosePrice is not dividend-adjusted, so we cannot
498
+ derive dividends from prices alone).
499
+ """
500
+ gsid = asset.get_identifier(AssetIdentifier.GSID)
501
+ if gsid is None:
502
+ return pd.Series(dtype=float)
503
+
504
+ try:
505
+ corporate_actions = GsSecurityMasterApi.get_corporate_actions(
506
+ id_value=gsid, id_type=SecMasterIdentifiers.GSID
507
+ )
508
+ except Exception:
509
+ return pd.Series(dtype=float)
510
+
511
+ amounts = {}
512
+ for ca in corporate_actions or []:
513
+ if ca.get('eventType') != 'Cash Dividend':
514
+ continue
515
+ eff = ca.get('effectiveDate')
516
+ if eff is None:
517
+ continue
518
+ eff_date = pd.Timestamp(eff)
519
+ if eff_date < pd.Timestamp(start) or eff_date > pd.Timestamp(end):
520
+ continue
521
+ # sum any cash records on the event (per share, in the dividend currency)
522
+ total = 0.0
523
+ for record in ca.get('records', []):
524
+ if record.get('instrument_type') == 'Currency' and record.get('dataValue') is not None:
525
+ total += float(record['dataValue'])
526
+ if total:
527
+ amounts[eff_date] = amounts.get(eff_date, 0.0) + total
528
+
529
+ if not amounts:
530
+ return pd.Series(dtype=float)
531
+ return pd.Series(amounts).sort_index()
532
+
533
+
534
+ def _total_return_series(asset: Asset, component: 'TotalReturnComponent') -> pd.Series:
535
+ """
536
+ Build a cumulative total-return (%) series for an asset.
537
+
538
+ Total return captures both price appreciation and cash dividends. Because the
539
+ adjusted close price is not dividend-adjusted in the price datasets, the
540
+ dividend leg is taken from the corporate-actions (Cash Dividend) events and
541
+ accumulated by ex-date. Values are expressed in percentage points (i.e.
542
+ scaled by 100, so a 10% return is returned as ``10.0``)::
543
+
544
+ price return (t) = 100 * (closePrice(t) - closePrice(start)) / closePrice(start)
545
+ dividend return (t) = 100 * (sum of dividends with ex-date <= t) / closePrice(start)
546
+ total return (t) = 100 * (closePrice(t) - closePrice(start) + dividends(t)) / closePrice(start)
547
+ """
548
+ start, end = DataContext.current.start_date, DataContext.current.end_date
549
+
550
+ close = asset.get_data_series(DataMeasure.CLOSE_PRICE, None, DataFrequency.DAILY, start, end)
551
+
552
+ if close is None or close.empty:
553
+ raise MqValueError(f'No close price data found for {asset.get_marquee_id()}')
554
+
555
+ close = close.sort_index()
556
+
557
+ # Starting price anchors the returns to the window; close(t) is the ending price.
558
+ start_price = close.iloc[0]
559
+ if start_price == 0:
560
+ raise MqValueError('Starting price is zero - cannot compute total return')
561
+
562
+ # Cumulative cash dividends per share, forward-filled onto the price dates.
563
+ dividends = _cash_dividends_per_share(asset, start, end)
564
+ if dividends.empty:
565
+ cum_div = pd.Series(0.0, index=close.index)
566
+ else:
567
+ cum_div = dividends.cumsum().reindex(close.index, method='ffill').fillna(0.0)
568
+
569
+ if component == TotalReturnComponent.PRICE:
570
+ # price only: (ending price - starting price) / starting price
571
+ values = (close - start_price) / start_price
572
+ elif component == TotalReturnComponent.DIVIDEND:
573
+ # dividend contribution: dividends / starting price
574
+ values = cum_div / start_price
575
+ else:
576
+ # total return: (ending price - starting price + dividends) / starting price
577
+ values = (close - start_price + cum_div) / start_price
578
+
579
+ series = ExtendedSeries(values * 100.0, name='totalReturn')
580
+ series.dataset_ids = getattr(close, 'dataset_ids', ())
581
+ return series
582
+
583
+
584
+ @plot_measure(
585
+ (AssetClass.Equity,),
586
+ (AssetType.ETF, AssetType.Index, AssetType.Single_Stock),
587
+ [QueryType.SPOT],
588
+ )
589
+ def total_return(
590
+ asset: Asset,
591
+ component: TotalReturnComponent = TotalReturnComponent.TOTAL,
592
+ *,
593
+ source: str = None,
594
+ real_time: bool = False,
595
+ request_id: Optional[str] = None,
596
+ ) -> pd.Series:
597
+ """
598
+ Cumulative total return (%) of an asset over the date context, combining
599
+ price appreciation and cash dividends.
600
+
601
+ Total return is anchored at the start of the window and measured in
602
+ percentage points (i.e. scaled by 100, so a 10% return is returned as
603
+ ``10.0``)::
604
+
605
+ price = 100 * (closePrice(t) / closePrice(start) - 1) (price only)
606
+ dividend = 100 * (sum of cash dividends, ex-date <= t) / close(start) (dividends)
607
+ total = price + dividend (price + dividends)
608
+
609
+ Cash dividends are sourced from Security Master corporate-action events (the
610
+ price datasets are not dividend-adjusted), so the ``total`` component equals
611
+ ``100 * (ending price - starting price + dividends paid) / starting price`` on
612
+ the final date.
613
+
614
+ **Examples**
615
+
616
+ Total return of SPY (price + dividends)::
617
+
618
+ SPY.total_return()
619
+
620
+ Price-only return / dividend contribution::
621
+
622
+ SPY.total_return(price)
623
+ SPY.total_return(dividend)
624
+
625
+ :param asset: asset object loaded from security master
626
+ :param component: which part of the return to show - total, price or dividend
627
+ :param source: name of function caller
628
+ :param real_time: whether to retrieve intraday data instead of EOD (not supported)
629
+ :param request_id: server request id
630
+ :return: cumulative total return (%) time series
631
+ """
632
+ if real_time:
633
+ raise NotImplementedError('real-time total return is not available')
634
+ return _total_return_series(asset, component)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gs_quant
3
- Version: 2.2.4
3
+ Version: 2.2.6
4
4
  Summary: Goldman Sachs Quant
5
5
  Author-email: Goldman Sachs <developer@gs.com>
6
6
  License: Apache-2.0
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes