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