gs-quant 2.2.2__tar.gz → 2.2.4__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.4}/PKG-INFO +1 -1
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/_version.py +3 -3
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/skills/gs-quant-overview/SKILL.md +3 -12
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/skills/gs-quant-overview/backtesting.md +166 -4
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/skills/gs-quant-overview/datasets.md +53 -8
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/skills/gs-quant-overview/errors.md +10 -3
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/skills/gs-quant-overview/instruments.md +2 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/skills/gs-quant-overview/pricing.md +44 -2
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_measures_etf.py +146 -38
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/tracing/test_tracing.py +17 -15
- gs_quant-2.2.4/gs_quant/timeseries/etf_classification.py +971 -0
- gs_quant-2.2.4/gs_quant/timeseries/measures_etf.py +470 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/tracing/tracing.py +26 -2
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant.egg-info/PKG-INFO +1 -1
- {gs_quant-2.2.2 → gs_quant-2.2.4}/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.4}/LICENSE +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/MANIFEST.in +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/NOTICE +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/NOTICE.txt +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/README.md +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/common/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/common/constants.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/common/enumerators.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/common/helpers.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/core/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/core/processor.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/core/processor_result.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/core/query_helpers.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/datagrid/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/datagrid/data_cell.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/datagrid/data_column.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/datagrid/data_row.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/datagrid/datagrid.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/datagrid/serializers.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/datagrid/utils.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/processors/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/processors/analysis_processors.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/processors/econometrics_processors.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/processors/scale_processors.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/processors/special_processors.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/processors/statistics_processors.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/processors/utility_processors.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/workspaces/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/workspaces/components.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/analytics/workspaces/workspace.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/api_cache.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/api_session.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/data.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/fred/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/fred/data.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/fred/fred_query.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/assets.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/backtests.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/backtests_xasset/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/backtests_xasset/apis.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/backtests_xasset/json_encoders/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/backtests_xasset/json_encoders/request_encoders.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/backtests_xasset/json_encoders/response_datatypes/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/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.4}/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.4}/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.4}/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.4}/gs_quant/api/gs/backtests_xasset/json_encoders/response_encoders.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/backtests_xasset/request.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/backtests_xasset/response.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/backtests_xasset/response_datatypes/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/backtests_xasset/response_datatypes/backtest_datatypes.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/backtests_xasset/response_datatypes/generic_backtest_datatypes.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/backtests_xasset/response_datatypes/risk_result.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/backtests_xasset/response_datatypes/risk_result_datatypes.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/base_screener.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/carbon.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/content.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/countries.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/data.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/data_screen.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/datagrid.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/esg.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/federated_secmaster.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/groups.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/hedges.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/indices.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/marketview/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/marketview/dashboards.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/marketview/types.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/marketview/widgets.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/monitors.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/parser.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/plots.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/portfolios.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/price.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/reports.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/risk.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/risk_models.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/scenarios.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/screens.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/secmaster.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/thematics.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/users.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/gs/workspaces.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/risk.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/api/utils.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/backtests/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/backtests/action_handler.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/backtests/actions.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/backtests/backtest_engine.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/backtests/backtest_objects.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/backtests/backtest_utils.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/backtests/core.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/backtests/data_handler.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/backtests/data_sources.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/backtests/decorator.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/backtests/equity_vol_engine.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/backtests/event.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/backtests/execution_engine.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/backtests/generic_engine.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/backtests/generic_engine_action_impls.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/backtests/order.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/backtests/predefined_asset_engine.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/backtests/strategy.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/backtests/strategy_systematic.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/backtests/triggers.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/base.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/common.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/config/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/config/options.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/config/utils.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/config.ini +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/content/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/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.4}/gs_quant/content/reports_and_screens/00_fx/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/content/reports_and_screens/00_fx/vol_screen_app.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/content/reports_and_screens/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/context_base.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/data/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/data/coordinate.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/data/core.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/data/dataset.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/data/fields.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/data/log.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/data/query.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/data/stream.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/data/utilities.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/datetime/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/datetime/date.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/datetime/gscalendar.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/datetime/point.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/datetime/relative_date.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/datetime/rules.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/datetime/time.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/entities/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/entities/entitlements.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/entities/entity.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/entities/entity_utils.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/entities/tree_entity.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/errors.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/instrument/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/instrument/core.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/instrument/overrides.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/interfaces/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/interfaces/algebra.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/json_convertors.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/json_convertors_common.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/json_encoder.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/markets/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/markets/baskets.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/markets/core.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/markets/factor.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/markets/factor_analytics.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/markets/hedge.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/markets/historical.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/markets/index.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/markets/indices_utils.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/markets/markets.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/markets/optimizer.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/markets/portfolio.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/markets/portfolio_manager.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/markets/portfolio_manager_utils.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/markets/position_set.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/markets/position_set_utils.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/markets/realtime.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/markets/report.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/markets/report_utils.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/markets/scenario.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/markets/screens.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/markets/securities.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/mcp/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/mcp/__main__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/mcp/client.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/mcp/config.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/mcp/dependencies.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/mcp/middleware.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/mcp/run.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/mcp/session_utils.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/mcp/tools/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/mcp/tools/data/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/mcp/tools/data/tools.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/mcp/tools/marketview/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/mcp/tools/marketview/tools.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/mcp/tools/registry.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/mcp/tools/users/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/mcp/tools/users/tools.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/models/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/models/epidemiology.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/models/risk_model.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/models/risk_model_utils.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/priceable.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/quote_reports/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/quote_reports/core.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/risk/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/risk/core.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/risk/measures.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/risk/result_handlers.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/risk/results.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/risk/scenario_utils.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/risk/scenarios.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/risk/transform.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/session.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/skills/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/skills/__main__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/skills/gs-quant-overview/measure.md +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/skills/gs-quant-overview/results.md +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/skills/gs-quant-overview/risk-measures.md +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/skills/gs-quant-overview/scenarios.md +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/assets.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/assets_screener.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/backtests.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/base_screener.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/charts.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/common.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/content.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/coordinates.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/countries.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/data.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/data_screen.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/groups.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/hedge.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/indices.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/instrument.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/measures.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/monitor.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/portfolios.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/positions_v2_pricing.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/price.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/reports.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/risk.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/risk_models.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/scenarios.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/screens.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/secmaster.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/trades.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/workflow_quote.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/target/workspaces_markets.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/analytics/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/analytics/test_datagrid.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/analytics/test_sorting_and_filtering.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/analytics/test_sparkline_processor.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/analytics/test_workspace.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/backtests_xasset/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/backtests_xasset/json_encoders/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/backtests_xasset/json_encoders/response_datatypes/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/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.4}/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.4}/gs_quant/test/api/backtests_xasset/json_encoders/test_request_encoders.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/backtests_xasset/json_encoders/test_response_encoders.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/backtests_xasset/response_datatypes/test_backtest_datatypes.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/backtests_xasset/response_datatypes/test_risk_result.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/backtests_xasset/response_datatypes/test_risk_result_datatypes.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/backtests_xasset/test_request.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/backtests_xasset/test_response.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/test_assets.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/test_backtests.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/test_base_screener.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/test_cache.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/test_carbon.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/test_content.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/test_data.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/test_data_screen.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/test_esg.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/test_fred.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/test_groups.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/test_gs_data_tracing.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/test_index.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/test_instruments.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/test_json.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/test_monitor.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/test_portfolios.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/test_reports.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/test_risk.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/test_risk_models.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/test_scenarios.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/test_target.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/test_thread_manager.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/api/test_users.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/backtest/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/backtest/test_backtest_eq_vol_engine.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/backtest/test_backtest_flow_vol.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/backtest/test_backtest_predefined.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/backtest/test_generic_engine.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/backtest/test_triggers.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/config/test_config_loader.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/config/test_options.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/data/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/data/test_data_caching.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/data/test_data_coordinate.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/data/test_dataset.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/data/test_dataset_tracing.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/data/test_query.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/datetime_/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/datetime_/test_date.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/datetime_/test_gscalendar.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/datetime_/test_point.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/datetime_/test_relative_date.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/datetime_/test_time.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/entities/test_entitlements.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/entities/test_group.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/entities/test_user.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/fixtures/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/fixtures/content.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/markets/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/markets/test_baskets.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/markets/test_close_market.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/markets/test_hedger.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/markets/test_indices_utils.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/markets/test_instrument.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/markets/test_portfolio.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/markets/test_portfolio_manager.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/markets/test_position_set.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/markets/test_pricing_context.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/markets/test_realtime_pricing_context.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/markets/test_report.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/markets/test_scenarios.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/markets/test_securities.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/mock_data_test_utils.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/models/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/models/test_epidemiology.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/models/test_risk_model.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/models/test_risk_model_utils.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/risk/test_measures.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/risk/test_results.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/skills/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/skills/test_installer.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/test_base.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/test_context_base.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/test_session.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/multi_measure/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/multi_measure/test_commod.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/multi_measure/test_measure_registry.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_algebra.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_analysis.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_backtesting.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_datetime.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_econometrics.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_event_study.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_helper.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_measures.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_measures_bonds.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_measures_cognitive_credit.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_measures_countries.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_measures_factset.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_measures_fx_vol.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_measures_inflation.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_measures_portfolios.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_measures_rates.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_measures_reports.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_measures_risk_models.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_measures_tba.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_measures_xccy.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_plot_measure_signatures.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_query_kwarg_casing.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_rolling.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_statistics.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_tca.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_technicals.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/test_timeseries.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/timeseries/utils.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/tracing/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/utils/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/utils/datagrid_test_utils.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/utils/mock_calc.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/utils/mock_data.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/utils/mock_request.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/utils/test_utilities.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/test/utils/test_utils.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/_event_study/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/_event_study/event_study_api.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/_event_study/event_study_asset_source.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/_event_study/event_study_definitions.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/_event_study/event_study_frame.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/_event_study/event_study_impact.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/_event_study/event_study_labels.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/_event_study/event_study_macro_source.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/_event_study/event_study_objects.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/_event_study/event_study_processing.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/_event_study/event_study_query.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/algebra.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/analysis.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/backtesting.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/datetime.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/econometrics.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/event_study.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/helper.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/measure_registry.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/measures.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/measures_bonds.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/measures_cognitive_credit.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/measures_countries.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/measures_factset.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/measures_fx_vol.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/measures_helper.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/measures_inflation.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/measures_portfolios.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/measures_rates.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/measures_reports.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/measures_risk_models.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/measures_tba.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/measures_xccy.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/statistics.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/tca.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/timeseries/technicals.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/tracing/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/workflow/__init__.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant/workflow/workflow.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant.egg-info/dependency_links.txt +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant.egg-info/requires.txt +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/gs_quant.egg-info/top_level.txt +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/pyproject.toml +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/setup.cfg +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/setup.py +0 -0
- {gs_quant-2.2.2 → gs_quant-2.2.4}/versioneer.py +0 -0
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "2026-
|
|
11
|
+
"date": "2026-11-03T16:39:47+0000",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "2.2.
|
|
14
|
+
"full-revisionid": "a836565fbb2c52433ca6d0c5495238716a18eea5",
|
|
15
|
+
"version": "2.2.4"
|
|
16
16
|
}
|
|
17
17
|
''' # END VERSION_JSON
|
|
18
18
|
|
|
@@ -28,15 +28,6 @@ GsSession.use(
|
|
|
28
28
|
- **`client_id` / `client_secret`** — OAuth2 application credentials. When both are provided the library creates an `OAuth2Session`.
|
|
29
29
|
- **`scopes`** — Optional iterable of `GsSession.Scopes` values. Usually when pricing trade you will need `run_analytics`.
|
|
30
30
|
|
|
31
|
-
### Kerberos / SSO (Internal GS)
|
|
32
|
-
|
|
33
|
-
If no `client_id` is supplied, the library will attempt Kerberos or pass-through authentication automatically:
|
|
34
|
-
This is for internal GS users only and requires appropriate network access and installation of gs-quant-internal.
|
|
35
|
-
|
|
36
|
-
```python
|
|
37
|
-
GsSession.use(Environment.PROD)
|
|
38
|
-
```
|
|
39
|
-
|
|
40
31
|
### Using as a Context Manager
|
|
41
32
|
|
|
42
33
|
```python
|
|
@@ -141,10 +132,10 @@ results = portfolio.calc([DollarPrice, IRDelta]) # multiple risk measures
|
|
|
141
132
|
For detailed guidance on specific topics, open the file whose topic or symptoms match the task.
|
|
142
133
|
|
|
143
134
|
- `instruments.md` — Constructing all instrument types (IRSwap, XCcy swaps, FXOption, EqOption, etc.), strikes by asset class, and FX pitfalls
|
|
144
|
-
- `pricing.md` — PricingContext, HistoricalPricingContext and LiveMarket: which close is used and market data location, choosing contexts, long calculations and `is_batch`, relative terms and `resolve()`. Symptoms: slow code, many requests, timeouts, prices that differ from other tools or look a day old.
|
|
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.
|
|
145
136
|
- `scenarios.md` — Shocking and overriding market data: patterns, shock sizes, equity vols, FX correlation, shocked P&L over time.
|
|
146
137
|
- `risk-measures.md` — What each risk measure's number means: units, scaling with size, `currency=` and `aggregation_level=`, by asset class.
|
|
147
138
|
- `errors.md` — gs_quant error messages and what to do, and how to reach support when nothing fixes it.
|
|
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
|
|
149
|
-
- `backtesting.md` — Guide to the gs_quant backtesting framework: Strategy, triggers, actions, GenericEngine, EquityVolEngine, transaction costs, and result extraction.
|
|
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.
|
|
140
|
+
- `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
141
|
- `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. To see where the short run spends its time, see "Tracing" in `pricing.md`
|
|
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
|
|
@@ -16,6 +16,10 @@ Pass the dataset ID string (visible in the Marquee catalog URL):
|
|
|
16
16
|
ds = Dataset('FXIVOL_STANDARD')
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
+
**Look up a dataset's fields with `GsDataApi.get_types('<ID>')` (`from gs_quant.api.gs.data import GsDataApi`)
|
|
20
|
+
before guessing a field name**: it returns every field and its type. For what the fields mean, coverage, history and
|
|
21
|
+
who supports the dataset, point the user to its page, `https://marquee.gs.com/s/developer/datasets/<ID>`.
|
|
22
|
+
|
|
19
23
|
You can also use the built-in vendor enums:
|
|
20
24
|
|
|
21
25
|
```python
|
|
@@ -25,7 +29,7 @@ ds = Dataset(Dataset.TR.TREOD)
|
|
|
25
29
|
|
|
26
30
|
> **Equities and listed instruments:** For equities and most listed instruments
|
|
27
31
|
> (equity indices, ETFs, futures, etc.) the correct dataset is almost always `TREOD`
|
|
28
|
-
> (Thomson Reuters End-of-Day).
|
|
32
|
+
> (Thomson Reuters End-of-Day). Filter it by `bbid`.
|
|
29
33
|
>
|
|
30
34
|
> ```python
|
|
31
35
|
> ds = Dataset('TREOD')
|
|
@@ -40,7 +44,7 @@ The primary method. Returns a `pandas.DataFrame` with one row per data point.
|
|
|
40
44
|
df = ds.get_data(
|
|
41
45
|
start=dt.date(2025, 1, 2),
|
|
42
46
|
end=dt.date(2025, 3, 19),
|
|
43
|
-
bbid=['EURUSD', 'USDJPY'], #
|
|
47
|
+
bbid=['EURUSD', 'USDJPY'], # filters are passed as kwargs
|
|
44
48
|
)
|
|
45
49
|
```
|
|
46
50
|
|
|
@@ -53,10 +57,10 @@ df = ds.get_data(
|
|
|
53
57
|
| `as_of` | Return data as it existed at this point in time |
|
|
54
58
|
| `since` | Return data updated since this datetime |
|
|
55
59
|
| `fields` | List of field names to return; omit for all fields |
|
|
56
|
-
| `**kwargs` |
|
|
60
|
+
| `**kwargs` | Filters, e.g. `bbid=['EURUSD']`, `ric='.SPX'`, `assetId='...'` |
|
|
57
61
|
|
|
58
|
-
Filter
|
|
59
|
-
|
|
62
|
+
Filter by the dataset's symbol dimension, which `GsDataApi.get_definition('<ID>').dimensions.symbol_dimensions`
|
|
63
|
+
returns. When it is `assetId`, you can filter by `bbid` or `ric` instead. Multiple values are passed as a list.
|
|
60
64
|
|
|
61
65
|
```python
|
|
62
66
|
# Filter by a single value
|
|
@@ -107,6 +111,46 @@ coverage = ds.get_coverage(include_history=True)
|
|
|
107
111
|
coverage = coverage.sort_values('historyStartDate')
|
|
108
112
|
```
|
|
109
113
|
|
|
114
|
+
## Index Constituents
|
|
115
|
+
|
|
116
|
+
**`Index.get(identifier).get_constituents_for_date(date)` returns the constituents Marquee holds for
|
|
117
|
+
an index on a date**: one row each, with columns `identifier`, `name`, `asset_id` and `quantity`.
|
|
118
|
+
For SPX the identifiers are Bloomberg tickers such as `OKE UN`. If Marquee holds none for that
|
|
119
|
+
date, the table is empty. `get_latest_constituents()` returns the latest.
|
|
120
|
+
|
|
121
|
+
```python
|
|
122
|
+
from gs_quant.markets.index import Index
|
|
123
|
+
|
|
124
|
+
constituents = Index.get('SPX').get_constituents_for_date(dt.date(2020, 1, 2))
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
`SecurityMaster.get_asset(...).entity['underliers']` lists the current constituents as Marquee IDs
|
|
128
|
+
only; for a past date use `Index`.
|
|
129
|
+
|
|
130
|
+
## Realised Volatility
|
|
131
|
+
|
|
132
|
+
**`gs_quant.timeseries.volatility(series, w)` turns a price series into rolling realised
|
|
133
|
+
volatility**, annualised and in percent (20% comes back as `20.0`), unlike risk measures, which
|
|
134
|
+
return vols as decimals. `w` is the window: a number of observations such as `22`, or a tenor such
|
|
135
|
+
as `'1m'`.
|
|
136
|
+
|
|
137
|
+
```python
|
|
138
|
+
from gs_quant.timeseries import volatility
|
|
139
|
+
|
|
140
|
+
close = Dataset('TREOD').get_data_series('closePrice', dt.date(2026, 6, 1), dt.date(2026, 9, 30), bbid='SPX')
|
|
141
|
+
vol = volatility(close, 22)
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
## Intraday Data
|
|
145
|
+
|
|
146
|
+
**Intraday data comes from datasets indexed by time, queried with `dt.datetime` bounds.** For
|
|
147
|
+
example, for SPX, `TR` has bid, ask and trade prices, and `EDRVOL_PERCENT_INTRADAY` has implied vols
|
|
148
|
+
by tenor and strike. Both take `bbid`; times without a time zone are read as UTC.
|
|
149
|
+
|
|
150
|
+
```python
|
|
151
|
+
ticks = Dataset('TR').get_data(dt.datetime(2026, 10, 26, 14, 0), dt.datetime(2026, 10, 26, 15, 0), bbid=['SPX'])
|
|
152
|
+
```
|
|
153
|
+
|
|
110
154
|
## Iterating Over Large Queries
|
|
111
155
|
|
|
112
156
|
For datasets with many assets or long date ranges, break queries into smaller chunks:
|
|
@@ -149,9 +193,10 @@ ds.upload_data(data) # accepts list of dicts or a DataFrame
|
|
|
149
193
|
|
|
150
194
|
## Common Pitfalls
|
|
151
195
|
|
|
152
|
-
- **
|
|
153
|
-
|
|
154
|
-
|
|
196
|
+
- **Unknown filter name** — raises `MqRequestError` with status 400. A value that matches nothing
|
|
197
|
+
usually returns an empty DataFrame, but some datasets raise the same 400 for it, so check both the
|
|
198
|
+
filter name and the value.
|
|
199
|
+
- **`ticker` can match several assets** — `ticker='SPX'` does. Filter by `bbid`, `ric` or `assetId`.
|
|
155
200
|
- **Query size limits** — very wide queries (many assets x long date range) will time out
|
|
156
201
|
or be rejected. Iterate in batches as shown above.
|
|
157
202
|
- **Entitlements** — if `get_data` returns an empty DataFrame unexpectedly, your session
|
|
@@ -20,7 +20,8 @@ a wider Marquee issue), so retry later; if it persists, see "If nothing here fix
|
|
|
20
20
|
### `ReadTimeout: … Read timed out. (read timeout=65)`
|
|
21
21
|
gs_quant's generic request timeout: the service it called (a dataset query, for example) didn't
|
|
22
22
|
answer within 65 seconds. Retry; if it keeps happening, ask for less per call (for datasets, see
|
|
23
|
-
"Iterating Over Large Queries" in `datasets.md`).
|
|
23
|
+
"Iterating Over Large Queries" in `datasets.md`). If even a small query keeps timing out, see "If
|
|
24
|
+
nothing here fixes it".
|
|
24
25
|
|
|
25
26
|
### `ErrorValue object has no attribute …` / `… not 'ErrorValue'` / `unsupported operand type(s) for …: 'ErrorValue' …`
|
|
26
27
|
A calculation failed. gs_quant doesn't raise when a calculation fails: `.result()` returns an
|
|
@@ -37,5 +38,11 @@ measures as possible, no helper functions, classes or notebooks, every value wri
|
|
|
37
38
|
an explicit pricing date and `market_data_location`. Confirm the snippet still reproduces it.
|
|
38
39
|
|
|
39
40
|
**Then tell the user to email `gs-quant-support@ny.email.gs.com`** with that snippet, its full
|
|
40
|
-
output (the error, or the number they got and the one they expected
|
|
41
|
-
|
|
41
|
+
output (the error, or the number they got and the one they expected) and the gs_quant version
|
|
42
|
+
(`gs_quant.__version__`). A failed calculation's error ends with a `Trace url` (or, where there's no
|
|
43
|
+
link, a `Trace id`) and a `request Id`: keep them in, they let support find the calculation. If the
|
|
44
|
+
problem is slowness, add the snippet's `Tracer.print()` output (see "Tracing" in `pricing.md`).
|
|
45
|
+
|
|
46
|
+
**If the problem is a dataset query that fails or times out even when small** (one asset, a few
|
|
47
|
+
days), tell the user to email `GS-Marquee-Helpdesk@ny.email.gs.com` instead, with the same snippet
|
|
48
|
+
and output.
|
|
@@ -235,6 +235,8 @@ When constructing FX options (FXOption, FXBinary, FXMultiCrossBinary, etc.), if
|
|
|
235
235
|
|
|
236
236
|
**Solution:** Either set `premium=0` explicitly when you want `DollarPrice` to return the actual option present value, or use the risk measure `FairPremium`, `FairPremiumInPercent` which will ignore any premium specified on the instrument.
|
|
237
237
|
|
|
238
|
+
**`EqBarrier` and `EqBinary` do the same; set `premium=0` on them too.** `EqOption`, `IRSwaption`, `IRCap` and `IRFloor` price their value without it.
|
|
239
|
+
|
|
238
240
|
```python
|
|
239
241
|
from gs_quant import risk
|
|
240
242
|
from gs_quant.instrument import FXOption, FXBinary
|
|
@@ -33,6 +33,8 @@ delta = delta_f.result()
|
|
|
33
33
|
| `is_batch` | Use batch mode for long-running calculations |
|
|
34
34
|
| `is_async` | Return immediately without blocking |
|
|
35
35
|
| `show_progress` | Display a tqdm progress bar |
|
|
36
|
+
| `use_cache` | Reuse results already calculated in this Python session (default: `False`) |
|
|
37
|
+
| `use_server_cache` | Let the GS servers reuse results of identical requests from the last 12 hours (default: `False`) |
|
|
36
38
|
|
|
37
39
|
Inside an entered `PricingContext`, calculations return `PricingFuture` objects. Call `.result()` after exiting the context.
|
|
38
40
|
|
|
@@ -75,9 +77,9 @@ After that time, if today's close isn't in yet, pricing fails.
|
|
|
75
77
|
|
|
76
78
|
| Job | Use |
|
|
77
79
|
|---|---|
|
|
78
|
-
| Same instrument(s), many dates | one `HistoricalPricingContext` |
|
|
80
|
+
| 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
81
|
| Many instruments, one date | one `PricingContext` around a `Portfolio` |
|
|
80
|
-
|
|
|
82
|
+
| 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
83
|
| A step needs an earlier result (resolve, then price later; hedge on the previous delta) | separate contexts in sequence, `.result()` in between |
|
|
82
84
|
|
|
83
85
|
```python
|
|
@@ -89,6 +91,10 @@ with PricingContext(market_data_location='NYC'): # outer: sends everything on e
|
|
|
89
91
|
prices = {d: f.result() for d, f in prices.items()}
|
|
90
92
|
```
|
|
91
93
|
|
|
94
|
+
**A job can combine shapes.** For example, strikes set from each start date's spot and each trade
|
|
95
|
+
then priced over its life: work out the strikes first, then price each trade in one
|
|
96
|
+
`HistoricalPricingContext` over its life.
|
|
97
|
+
|
|
92
98
|
**Don't open and exit a `PricingContext` on every pass of a loop:** each exit sends and waits, so
|
|
93
99
|
requests go one at a time. If you must, set `is_async=True` and call `.result()` only after the loop.
|
|
94
100
|
|
|
@@ -109,6 +115,42 @@ over a websocket and each request gets up to 10 minutes. If the websocket drops,
|
|
|
109
115
|
|
|
110
116
|
---
|
|
111
117
|
|
|
118
|
+
## Caching results: repeated calculations
|
|
119
|
+
|
|
120
|
+
**`use_cache=True` reuses results within the Python session.** A calculation is answered from memory
|
|
121
|
+
when the same instrument, including an identical one built separately, has already been calculated
|
|
122
|
+
with the same measure, pricing date, market and scenario under a context with `use_cache=True`. It
|
|
123
|
+
also works under `HistoricalPricingContext`, date by date. NaN results are cached; failed calculations
|
|
124
|
+
and `LiveMarket` results aren't. Results stay in memory with no size limit, so a very large run can
|
|
125
|
+
exhaust the Python process's memory. To force a recalculation, call `PricingCache.drop(instrument)`
|
|
126
|
+
(`from gs_quant.markets.core import PricingCache`).
|
|
127
|
+
|
|
128
|
+
**`use_server_cache=True` lets the GS servers reuse results instead**: they can answer an identical
|
|
129
|
+
request (same instrument, measure, date and market) from a result calculated in the last 12 hours.
|
|
130
|
+
NaN results are reused; failed calculations and `LiveMarket` results aren't, and this cache can't be
|
|
131
|
+
cleared.
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## Tracing: slow code, failed steps
|
|
136
|
+
|
|
137
|
+
**To see where the time goes, run the code inside `with Tracer('label'):` and call `Tracer.print()`
|
|
138
|
+
afterwards.** It prints each step, including every request gs_quant sent, with how long it took, and
|
|
139
|
+
marks failed steps `[Error]`. In Jupyter, `%%trace` on the first line of a cell does the same for that
|
|
140
|
+
cell, and `%%trace chart` draws a timeline instead (needs `plotly`).
|
|
141
|
+
|
|
142
|
+
```python
|
|
143
|
+
from gs_quant.markets import PricingContext
|
|
144
|
+
from gs_quant.tracing import Tracer
|
|
145
|
+
|
|
146
|
+
with Tracer('pricing'):
|
|
147
|
+
with PricingContext(pricing_date=dt.date(2026, 10, 23), market_data_location='NYC'):
|
|
148
|
+
price_f = swap.price()
|
|
149
|
+
Tracer.print()
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
112
154
|
## Historical Pricing with `HistoricalPricingContext`
|
|
113
155
|
|
|
114
156
|
Compute risk measures across a range of dates using the close-of-business market for each date.
|