gs-quant 2.2.5__tar.gz → 2.2.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gs_quant-2.2.5 → gs_quant-2.2.6}/PKG-INFO +1 -1
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/_version.py +3 -3
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/skills/gs-quant-overview/instruments.md +4 -1
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/skills/gs-quant-overview/risk-measures.md +3 -1
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures.py +16 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_etf.py +151 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/etf_classification.py +0 -1
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/measures.py +21 -6
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/measures_etf.py +166 -2
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant.egg-info/PKG-INFO +1 -1
- {gs_quant-2.2.5 → gs_quant-2.2.6}/LICENSE +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/MANIFEST.in +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/NOTICE +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/NOTICE.txt +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/README.md +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/common/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/common/constants.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/common/enumerators.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/common/helpers.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/core/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/core/processor.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/core/processor_result.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/core/query_helpers.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/datagrid/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/datagrid/data_cell.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/datagrid/data_column.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/datagrid/data_row.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/datagrid/datagrid.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/datagrid/serializers.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/datagrid/utils.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/processors/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/processors/analysis_processors.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/processors/econometrics_processors.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/processors/scale_processors.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/processors/special_processors.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/processors/statistics_processors.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/processors/utility_processors.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/workspaces/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/workspaces/components.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/analytics/workspaces/workspace.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/api_cache.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/api_session.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/data.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/fred/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/fred/data.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/fred/fred_query.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/assets.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/backtests.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/apis.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/json_encoders/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/json_encoders/request_encoders.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/json_encoders/response_datatypes/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/json_encoders/response_datatypes/generic_datatype_encoders.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/json_encoders/response_datatypes/risk_result_datatype_encoders.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/json_encoders/response_datatypes/risk_result_encoders.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/json_encoders/response_datatypes/test_backtest_datatypes_encoders.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/json_encoders/response_encoders.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/request.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/response.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/response_datatypes/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/response_datatypes/backtest_datatypes.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/response_datatypes/generic_backtest_datatypes.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/response_datatypes/risk_result.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/response_datatypes/risk_result_datatypes.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/base_screener.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/carbon.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/content.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/countries.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/data.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/data_screen.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/datagrid.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/esg.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/federated_secmaster.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/groups.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/hedges.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/indices.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/marketview/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/marketview/dashboards.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/marketview/types.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/marketview/widgets.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/monitors.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/parser.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/plots.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/portfolios.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/price.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/reports.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/risk.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/risk_models.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/scenarios.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/screens.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/secmaster.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/thematics.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/users.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/workspaces.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/risk.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/utils.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/backtests/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/backtests/action_handler.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/backtests/actions.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/backtests/backtest_engine.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/backtests/backtest_objects.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/backtests/backtest_utils.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/backtests/core.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/backtests/data_handler.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/backtests/data_sources.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/backtests/decorator.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/backtests/equity_vol_engine.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/backtests/event.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/backtests/execution_engine.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/backtests/generic_engine.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/backtests/generic_engine_action_impls.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/backtests/order.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/backtests/predefined_asset_engine.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/backtests/strategy.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/backtests/strategy_systematic.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/backtests/triggers.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/base.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/common.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/config/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/config/options.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/config/utils.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/config.ini +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/content/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/content/events/00_gsquant_meets_markets/02_optimizing_equity_trading/qes_utils.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/content/reports_and_screens/00_fx/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/content/reports_and_screens/00_fx/vol_screen_app.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/content/reports_and_screens/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/context_base.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/data/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/data/coordinate.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/data/core.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/data/dataset.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/data/fields.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/data/log.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/data/query.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/data/stream.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/data/utilities.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/datetime/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/datetime/date.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/datetime/gscalendar.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/datetime/point.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/datetime/relative_date.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/datetime/rules.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/datetime/time.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/entities/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/entities/entitlements.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/entities/entity.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/entities/entity_utils.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/entities/tree_entity.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/errors.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/instrument/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/instrument/core.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/instrument/overrides.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/interfaces/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/interfaces/algebra.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/json_convertors.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/json_convertors_common.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/json_encoder.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/markets/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/markets/baskets.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/markets/core.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/markets/factor.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/markets/factor_analytics.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/markets/hedge.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/markets/historical.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/markets/index.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/markets/indices_utils.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/markets/markets.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/markets/optimizer.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/markets/portfolio.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/markets/portfolio_manager.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/markets/portfolio_manager_utils.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/markets/position_set.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/markets/position_set_utils.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/markets/realtime.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/markets/report.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/markets/report_utils.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/markets/scenario.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/markets/screens.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/markets/securities.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/mcp/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/mcp/__main__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/mcp/client.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/mcp/config.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/mcp/dependencies.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/mcp/middleware.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/mcp/run.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/mcp/session_utils.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/mcp/tools/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/mcp/tools/data/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/mcp/tools/data/tools.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/mcp/tools/marketview/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/mcp/tools/marketview/tools.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/mcp/tools/registry.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/mcp/tools/users/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/mcp/tools/users/tools.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/models/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/models/epidemiology.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/models/risk_model.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/models/risk_model_utils.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/priceable.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/quote_reports/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/quote_reports/core.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/risk/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/risk/core.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/risk/measures.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/risk/result_handlers.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/risk/results.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/risk/scenario_utils.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/risk/scenarios.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/risk/transform.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/session.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/skills/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/skills/__main__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/skills/gs-quant-overview/SKILL.md +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/skills/gs-quant-overview/backtesting.md +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/skills/gs-quant-overview/datasets.md +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/skills/gs-quant-overview/errors.md +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/skills/gs-quant-overview/measure.md +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/skills/gs-quant-overview/pricing.md +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/skills/gs-quant-overview/results.md +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/skills/gs-quant-overview/scenarios.md +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/assets.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/assets_screener.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/backtests.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/base_screener.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/charts.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/common.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/content.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/coordinates.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/countries.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/data.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/data_screen.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/groups.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/hedge.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/indices.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/instrument.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/measures.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/monitor.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/portfolios.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/positions_v2_pricing.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/price.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/reports.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/risk.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/risk_models.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/scenarios.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/screens.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/secmaster.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/trades.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/workflow_quote.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/target/workspaces_markets.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/analytics/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/analytics/test_datagrid.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/analytics/test_sorting_and_filtering.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/analytics/test_sparkline_processor.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/analytics/test_workspace.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/backtests_xasset/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/backtests_xasset/json_encoders/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/backtests_xasset/json_encoders/response_datatypes/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/backtests_xasset/json_encoders/response_datatypes/test_risk_result_datatype_encoders.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/backtests_xasset/json_encoders/response_datatypes/test_risk_result_encoders.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/backtests_xasset/json_encoders/test_request_encoders.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/backtests_xasset/json_encoders/test_response_encoders.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/backtests_xasset/response_datatypes/test_backtest_datatypes.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/backtests_xasset/response_datatypes/test_risk_result.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/backtests_xasset/response_datatypes/test_risk_result_datatypes.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/backtests_xasset/test_request.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/backtests_xasset/test_response.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/test_assets.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/test_backtests.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/test_base_screener.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/test_cache.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/test_carbon.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/test_content.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/test_data.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/test_data_screen.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/test_esg.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/test_fred.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/test_groups.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/test_gs_data_tracing.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/test_index.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/test_instruments.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/test_json.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/test_monitor.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/test_portfolios.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/test_reports.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/test_risk.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/test_risk_models.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/test_scenarios.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/test_target.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/test_thread_manager.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/api/test_users.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/backtest/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/backtest/test_backtest_eq_vol_engine.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/backtest/test_backtest_flow_vol.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/backtest/test_backtest_predefined.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/backtest/test_generic_engine.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/backtest/test_triggers.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/config/test_config_loader.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/config/test_options.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/data/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/data/test_data_caching.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/data/test_data_coordinate.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/data/test_dataset.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/data/test_dataset_tracing.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/data/test_query.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/datetime_/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/datetime_/test_date.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/datetime_/test_gscalendar.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/datetime_/test_point.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/datetime_/test_relative_date.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/datetime_/test_time.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/entities/test_entitlements.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/entities/test_group.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/entities/test_user.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/fixtures/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/fixtures/content.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/markets/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/markets/test_baskets.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/markets/test_close_market.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/markets/test_hedger.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/markets/test_indices_utils.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/markets/test_instrument.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/markets/test_portfolio.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/markets/test_portfolio_manager.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/markets/test_position_set.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/markets/test_pricing_context.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/markets/test_realtime_pricing_context.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/markets/test_report.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/markets/test_scenarios.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/markets/test_securities.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/mock_data_test_utils.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/models/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/models/test_epidemiology.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/models/test_risk_model.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/models/test_risk_model_utils.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/risk/test_measures.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/risk/test_results.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/skills/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/skills/test_installer.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/test_base.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/test_context_base.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/test_session.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/multi_measure/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/multi_measure/test_commod.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/multi_measure/test_measure_registry.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_algebra.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_analysis.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_backtesting.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_datetime.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_econometrics.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_event_study.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_helper.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_bonds.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_cognitive_credit.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_countries.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_factset.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_fx_vol.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_inflation.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_portfolios.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_rates.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_reports.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_risk_models.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_tba.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_measures_xccy.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_plot_measure_signatures.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_query_kwarg_casing.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_rolling.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_statistics.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_tca.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_technicals.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/test_timeseries.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/timeseries/utils.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/tracing/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/tracing/test_tracing.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/utils/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/utils/datagrid_test_utils.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/utils/mock_calc.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/utils/mock_data.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/utils/mock_request.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/utils/test_utilities.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/test/utils/test_utils.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/_event_study/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/_event_study/event_study_api.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/_event_study/event_study_asset_source.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/_event_study/event_study_definitions.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/_event_study/event_study_frame.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/_event_study/event_study_impact.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/_event_study/event_study_labels.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/_event_study/event_study_macro_source.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/_event_study/event_study_objects.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/_event_study/event_study_processing.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/_event_study/event_study_query.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/algebra.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/analysis.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/backtesting.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/datetime.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/econometrics.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/event_study.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/helper.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/measure_registry.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/measures_bonds.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/measures_cognitive_credit.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/measures_countries.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/measures_factset.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/measures_fx_vol.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/measures_helper.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/measures_inflation.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/measures_portfolios.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/measures_rates.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/measures_reports.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/measures_risk_models.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/measures_tba.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/measures_xccy.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/statistics.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/tca.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/timeseries/technicals.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/tracing/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/tracing/tracing.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/workflow/__init__.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/workflow/workflow.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant.egg-info/SOURCES.txt +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant.egg-info/dependency_links.txt +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant.egg-info/requires.txt +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant.egg-info/top_level.txt +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/pyproject.toml +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/setup.cfg +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/setup.py +0 -0
- {gs_quant-2.2.5 → gs_quant-2.2.6}/versioneer.py +0 -0
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "2026-11-
|
|
11
|
+
"date": "2026-11-18T10:35:49+0000",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "2.2.
|
|
14
|
+
"full-revisionid": "70220e300524d54bd273be0f4c485d53b3780482",
|
|
15
|
+
"version": "2.2.6"
|
|
16
16
|
}
|
|
17
17
|
''' # END VERSION_JSON
|
|
18
18
|
|
|
@@ -11,11 +11,14 @@ each asset class's own syntax:
|
|
|
11
11
|
|---|---|---|---|---|
|
|
12
12
|
| Equities (`EqOption.strike_price`) | `'ATMS'` spot, `'ATMF'` forward | `'95%'` of spot, `'1.05*ATMF'` | `'25d'` | `'p=10%'` |
|
|
13
13
|
| FX (`FXOption.strike_price`) | `'s'` spot, `'f'` forward | `'s+1%'`, `'1.05*s'` | `'25d'` | `'p=1%'` |
|
|
14
|
-
| Rates (`IRSwaption.strike`, `IRSwap.fixed_rate`, `IRCap.cap_rate`) | `'ATM'` | `'ATM+25'`, `'ATM-25'` (bp) | `'25d'` | |
|
|
14
|
+
| Rates (`IRSwaption.strike`, `IRSwap.fixed_rate`, `IRCap.cap_rate`) | `'ATM'` | `'ATM+25'`, `'ATM-25'` (bp) | `'25d'` | `'100000/pv'` |
|
|
15
15
|
| Credit (`CDIndexOption.strike`) | `'s'` spot spread | `'s+1%'` | `'25d'` | |
|
|
16
16
|
|
|
17
17
|
Deltas are unsigned; the option type sets the side.
|
|
18
18
|
|
|
19
|
+
**For rates, `'<amount>/pv'` solves the strike or fixed rate that gives that price, in the instrument's currency.** It
|
|
20
|
+
works on `IRSwaption`, `IRSwap` and `IRCapFloor`, not on `IRCap` or on straddles.
|
|
21
|
+
|
|
19
22
|
## Interest Rate Swap
|
|
20
23
|
|
|
21
24
|
```python
|
|
@@ -69,7 +69,9 @@ take the difference from the unshocked values.
|
|
|
69
69
|
|
|
70
70
|
**`IRDelta` is the present value change for a 1bp move in the instruments the curve is built
|
|
71
71
|
from**. **`IRGammaParallelLocalCcy`** is the change in that delta, in local currency, for a 1bp
|
|
72
|
-
move, so its unit is local currency per bp².
|
|
72
|
+
move, so its unit is local currency per bp². **`IRGammaParallel`** is the same gamma in USD, so on a non-USD trade it
|
|
73
|
+
differs from `IRGammaParallelLocalCcy` by the exchange rate; **`IRGamma`** splits it by the instruments the curve is
|
|
74
|
+
built from, one row each (named in its `inner_mkt_*` columns), and its rows add up to about `IRGammaParallel`.
|
|
73
75
|
|
|
74
76
|
**`IRVega` is the present value change for a 1bp rise in normal vol**; **`IRVegaParallel`** is the
|
|
75
77
|
same in USD unless `currency=` is set, so on a non-USD trade it differs from
|
|
@@ -4285,6 +4285,22 @@ def test__skew_term_fetcher():
|
|
|
4285
4285
|
replace.restore()
|
|
4286
4286
|
|
|
4287
4287
|
|
|
4288
|
+
@pytest.mark.parametrize(
|
|
4289
|
+
'date_value, expected',
|
|
4290
|
+
[
|
|
4291
|
+
(pd.Timestamp.today().normalize(), True),
|
|
4292
|
+
(pd.Timestamp.today().normalize() - pd.Timedelta(days=5), False),
|
|
4293
|
+
(pd.Timestamp.today().normalize() + pd.Timedelta(days=1), True),
|
|
4294
|
+
(dt.date.today(), True),
|
|
4295
|
+
(dt.date(2020, 1, 1), False),
|
|
4296
|
+
(dt.datetime.now(), True),
|
|
4297
|
+
],
|
|
4298
|
+
)
|
|
4299
|
+
def test_is_on_or_after_today(date_value, expected):
|
|
4300
|
+
# Timestamp vs dt.date comparisons raise TypeError on pandas >= 2; the helper must handle all date-likes
|
|
4301
|
+
assert tm._is_on_or_after_today(date_value) is expected
|
|
4302
|
+
|
|
4303
|
+
|
|
4288
4304
|
def test_skew_term():
|
|
4289
4305
|
with DataContext('2018-01-01', '2040-01-01'):
|
|
4290
4306
|
_skew_term_typical(tm.SkewReference.DELTA, 25)
|
|
@@ -321,5 +321,156 @@ def test_metric_functions_real_time_not_supported():
|
|
|
321
321
|
fn('US', real_time=True)
|
|
322
322
|
|
|
323
323
|
|
|
324
|
+
# ---------------------------------------------------------------------------
|
|
325
|
+
# total_return
|
|
326
|
+
# ---------------------------------------------------------------------------
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
class _MockAsset:
|
|
330
|
+
def __init__(self, gsid='GSID123', close=None):
|
|
331
|
+
self._gsid = gsid
|
|
332
|
+
self._close = _close_series() if close is None else close
|
|
333
|
+
|
|
334
|
+
def get_marquee_id(self):
|
|
335
|
+
return 'MQID123'
|
|
336
|
+
|
|
337
|
+
def get_identifier(self, _id_type):
|
|
338
|
+
return self._gsid
|
|
339
|
+
|
|
340
|
+
def get_data_series(self, *_args, **_kwargs):
|
|
341
|
+
return self._close
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
def _close_series():
|
|
345
|
+
idx = pd.DatetimeIndex(['2024-01-01', '2024-01-02', '2024-01-03'], name='date')
|
|
346
|
+
return pd.Series([100.0, 110.0, 120.0], index=idx)
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
def _cash_dividend_actions():
|
|
350
|
+
# One cash dividend with ex-date (effectiveDate) inside the window
|
|
351
|
+
return [
|
|
352
|
+
{
|
|
353
|
+
'eventType': 'Cash Dividend',
|
|
354
|
+
'effectiveDate': '2024-01-02',
|
|
355
|
+
'records': [
|
|
356
|
+
{'instrument_type': 'Currency', 'dataValue': 2.0},
|
|
357
|
+
],
|
|
358
|
+
},
|
|
359
|
+
# A non-dividend event that must be ignored
|
|
360
|
+
{
|
|
361
|
+
'eventType': 'Split',
|
|
362
|
+
'effectiveDate': '2024-01-02',
|
|
363
|
+
'records': [],
|
|
364
|
+
},
|
|
365
|
+
]
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
def test_total_return_real_time_not_supported():
|
|
369
|
+
with pytest.raises(NotImplementedError):
|
|
370
|
+
tm.total_return(_MockAsset(), real_time=True)
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
def test_total_return_total_price_dividend():
|
|
374
|
+
replace = Replacer()
|
|
375
|
+
ca_mock = replace('gs_quant.timeseries.measures_etf.GsSecurityMasterApi.get_corporate_actions', Mock())
|
|
376
|
+
ca_mock.return_value = _cash_dividend_actions()
|
|
377
|
+
|
|
378
|
+
asset = _MockAsset()
|
|
379
|
+
with DataContext(dt.date(2024, 1, 1), dt.date(2024, 1, 3)):
|
|
380
|
+
total = tm.total_return(asset)
|
|
381
|
+
price = tm.total_return(asset, tm.TotalReturnComponent.PRICE)
|
|
382
|
+
dividend = tm.total_return(asset, tm.TotalReturnComponent.DIVIDEND)
|
|
383
|
+
|
|
384
|
+
# start price = 100; dividend of 2.0 applies from ex-date 2024-01-02 onward
|
|
385
|
+
# price % : (100-100)/100, (110-100)/100, (120-100)/100 -> 0, 10, 20
|
|
386
|
+
assert list(price.round(6).values) == [0.0, 10.0, 20.0]
|
|
387
|
+
# dividend %: 0, 2/100, 2/100 -> 0, 2, 2
|
|
388
|
+
assert list(dividend.round(6).values) == [0.0, 2.0, 2.0]
|
|
389
|
+
# total % : price + dividend -> 0, 12, 22
|
|
390
|
+
assert list(total.round(6).values) == [0.0, 12.0, 22.0]
|
|
391
|
+
replace.restore()
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
def test_total_return_no_dividends():
|
|
395
|
+
replace = Replacer()
|
|
396
|
+
ca_mock = replace('gs_quant.timeseries.measures_etf.GsSecurityMasterApi.get_corporate_actions', Mock())
|
|
397
|
+
ca_mock.return_value = []
|
|
398
|
+
|
|
399
|
+
with DataContext(dt.date(2024, 1, 1), dt.date(2024, 1, 3)):
|
|
400
|
+
total = tm.total_return(_MockAsset())
|
|
401
|
+
|
|
402
|
+
# No dividends -> total return equals price-only return
|
|
403
|
+
assert list(total.round(6).values) == [0.0, 10.0, 20.0]
|
|
404
|
+
replace.restore()
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
def test_total_return_no_price_raises():
|
|
408
|
+
with pytest.raises(MqValueError):
|
|
409
|
+
with DataContext(dt.date(2024, 1, 1), dt.date(2024, 1, 3)):
|
|
410
|
+
tm.total_return(_MockAsset(close=pd.Series(dtype=float)))
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
def test_cash_dividends_lookup_failure_degrades_empty():
|
|
414
|
+
replace = Replacer()
|
|
415
|
+
# Corporate-actions lookup failing should degrade to an empty dividend series
|
|
416
|
+
ca_mock = replace('gs_quant.timeseries.measures_etf.GsSecurityMasterApi.get_corporate_actions', Mock())
|
|
417
|
+
ca_mock.side_effect = Exception('boom')
|
|
418
|
+
|
|
419
|
+
result = tm._cash_dividends_per_share(_MockAsset(), dt.date(2024, 1, 1), dt.date(2024, 1, 3))
|
|
420
|
+
assert result.empty
|
|
421
|
+
replace.restore()
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
def test_cash_dividends_no_gsid_returns_empty():
|
|
425
|
+
# Asset with no GSID identifier -> empty dividend series
|
|
426
|
+
result = tm._cash_dividends_per_share(_MockAsset(gsid=None), dt.date(2024, 1, 1), dt.date(2024, 1, 3))
|
|
427
|
+
assert result.empty
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
def test_cash_dividends_missing_effective_date_skipped():
|
|
431
|
+
replace = Replacer()
|
|
432
|
+
ca_mock = replace('gs_quant.timeseries.measures_etf.GsSecurityMasterApi.get_corporate_actions', Mock())
|
|
433
|
+
ca_mock.return_value = [
|
|
434
|
+
{
|
|
435
|
+
'eventType': 'Cash Dividend',
|
|
436
|
+
# no effectiveDate -> must be skipped
|
|
437
|
+
'records': [{'instrument_type': 'Currency', 'dataValue': 5.0}],
|
|
438
|
+
},
|
|
439
|
+
]
|
|
440
|
+
|
|
441
|
+
result = tm._cash_dividends_per_share(_MockAsset(), dt.date(2024, 1, 1), dt.date(2024, 1, 3))
|
|
442
|
+
assert result.empty
|
|
443
|
+
replace.restore()
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
def test_total_return_zero_start_price_raises():
|
|
447
|
+
replace = Replacer()
|
|
448
|
+
ca_mock = replace('gs_quant.timeseries.measures_etf.GsSecurityMasterApi.get_corporate_actions', Mock())
|
|
449
|
+
ca_mock.return_value = []
|
|
450
|
+
|
|
451
|
+
idx = pd.DatetimeIndex(['2024-01-01', '2024-01-02', '2024-01-03'], name='date')
|
|
452
|
+
zero_start = pd.Series([0.0, 110.0, 120.0], index=idx)
|
|
453
|
+
with pytest.raises(MqValueError):
|
|
454
|
+
with DataContext(dt.date(2024, 1, 1), dt.date(2024, 1, 3)):
|
|
455
|
+
tm.total_return(_MockAsset(close=zero_start))
|
|
456
|
+
replace.restore()
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
def test_cash_dividends_out_of_window_excluded():
|
|
460
|
+
replace = Replacer()
|
|
461
|
+
ca_mock = replace('gs_quant.timeseries.measures_etf.GsSecurityMasterApi.get_corporate_actions', Mock())
|
|
462
|
+
ca_mock.return_value = [
|
|
463
|
+
{
|
|
464
|
+
'eventType': 'Cash Dividend',
|
|
465
|
+
'effectiveDate': '2023-12-01', # before the window
|
|
466
|
+
'records': [{'instrument_type': 'Currency', 'dataValue': 5.0}],
|
|
467
|
+
},
|
|
468
|
+
]
|
|
469
|
+
|
|
470
|
+
result = tm._cash_dividends_per_share(_MockAsset(), dt.date(2024, 1, 1), dt.date(2024, 1, 3))
|
|
471
|
+
assert result.empty
|
|
472
|
+
replace.restore()
|
|
473
|
+
|
|
474
|
+
|
|
324
475
|
if __name__ == '__main__':
|
|
325
476
|
pytest.main(args=[__file__])
|
|
@@ -13,7 +13,6 @@ KIND, either express or implied. See the License for the
|
|
|
13
13
|
specific language governing permissions and limitations
|
|
14
14
|
under the License.
|
|
15
15
|
"""
|
|
16
|
-
|
|
17
16
|
# ---------------------------------------------------------------------------
|
|
18
17
|
# AUTO-GENERATED from the FactSet "Fund Exposure Sort" classification overview.
|
|
19
18
|
# Do not edit by hand - regenerate from the source CSV.
|
|
@@ -488,7 +488,9 @@ def _get_custom_bd(exchange):
|
|
|
488
488
|
|
|
489
489
|
|
|
490
490
|
@log_return(_logger, 'trying pricing dates')
|
|
491
|
-
def _range_from_pricing_date(
|
|
491
|
+
def _range_from_pricing_date(
|
|
492
|
+
exchange, pricing_date: Optional[GENERIC_DATE] = None, buffer: int = 0
|
|
493
|
+
) -> tuple[Union[dt.date, pd.Timestamp], Union[dt.date, pd.Timestamp]]:
|
|
492
494
|
if isinstance(pricing_date, dt.date):
|
|
493
495
|
return pricing_date, pricing_date
|
|
494
496
|
|
|
@@ -508,6 +510,19 @@ def _range_from_pricing_date(exchange, pricing_date: Optional[GENERIC_DATE] = No
|
|
|
508
510
|
return start, end
|
|
509
511
|
|
|
510
512
|
|
|
513
|
+
def _is_on_or_after_today(date_value: Union[dt.date, dt.datetime, pd.Timestamp]) -> bool:
|
|
514
|
+
"""
|
|
515
|
+
Check whether a date-like value falls on or after today.
|
|
516
|
+
|
|
517
|
+
Safely compares dt.date, dt.datetime and pd.Timestamp values (pandas >= 2 refuses to compare Timestamp with
|
|
518
|
+
dt.date directly).
|
|
519
|
+
|
|
520
|
+
:param date_value: date-like value, e.g. as returned by _range_from_pricing_date
|
|
521
|
+
:return: True if date_value's calendar date is today or later
|
|
522
|
+
"""
|
|
523
|
+
return pd.Timestamp(date_value).normalize() >= pd.Timestamp.today().normalize()
|
|
524
|
+
|
|
525
|
+
|
|
511
526
|
def _market_data_timed(q, request_id=None, ignore_errors: bool = False):
|
|
512
527
|
args = [q, request_id] if request_id else [q]
|
|
513
528
|
return GsDataApi.get_market_data(*args, ignore_errors=ignore_errors)
|
|
@@ -2355,7 +2370,7 @@ def skew_term(
|
|
|
2355
2370
|
dataset_ids = set()
|
|
2356
2371
|
where = {'strikeReference': strike_reference.value, 'relativeStrike': q_strikes}
|
|
2357
2372
|
|
|
2358
|
-
if asset.asset_class == AssetClass.Equity and (pricing_date is None or end
|
|
2373
|
+
if asset.asset_class == AssetClass.Equity and (pricing_date is None or _is_on_or_after_today(end)): # intraday
|
|
2359
2374
|
data_requests = [
|
|
2360
2375
|
partial(
|
|
2361
2376
|
_get_latest_term_structure_data,
|
|
@@ -2490,8 +2505,8 @@ def vol_term(
|
|
|
2490
2505
|
|
|
2491
2506
|
df = df_expiry = pd.DataFrame()
|
|
2492
2507
|
dataset_ids = set()
|
|
2493
|
-
|
|
2494
|
-
if asset.asset_class == AssetClass.Equity and (pricing_date is None or end
|
|
2508
|
+
# use intraday data
|
|
2509
|
+
if asset.asset_class == AssetClass.Equity and (pricing_date is None or _is_on_or_after_today(end)):
|
|
2495
2510
|
df = _get_latest_term_structure_data(asset_id, QueryType.IMPLIED_VOLATILITY, where, 'tenor', source, request_id)
|
|
2496
2511
|
df_expiry = _get_latest_term_structure_data(
|
|
2497
2512
|
asset_id, QueryType.IMPLIED_VOLATILITY_BY_EXPIRATION, where, 'expirationDate', source, request_id
|
|
@@ -2951,10 +2966,10 @@ def var_term(
|
|
|
2951
2966
|
df = pd.concat(sub_frames)
|
|
2952
2967
|
else:
|
|
2953
2968
|
asset_id = asset.get_marquee_id()
|
|
2954
|
-
today = dt.date.today()
|
|
2955
2969
|
df = pd.DataFrame()
|
|
2956
2970
|
|
|
2957
|
-
|
|
2971
|
+
# try intraday data
|
|
2972
|
+
if asset.asset_class == AssetClass.Equity and (pricing_date is None or _is_on_or_after_today(end)):
|
|
2958
2973
|
df = _get_latest_term_structure_data(asset_id, QueryType.VAR_SWAP, None, 'tenor', source, request_id)
|
|
2959
2974
|
dataset_ids.update(getattr(df, 'dataset_ids', ()))
|
|
2960
2975
|
|
|
@@ -19,11 +19,16 @@ from typing import Optional
|
|
|
19
19
|
|
|
20
20
|
import pandas as pd
|
|
21
21
|
|
|
22
|
-
from gs_quant.data import
|
|
22
|
+
from gs_quant.api.gs.data import QueryType
|
|
23
|
+
from gs_quant.api.gs.secmaster import GsSecurityMasterApi, SecMasterIdentifiers
|
|
24
|
+
from gs_quant.common import AssetClass, AssetType
|
|
25
|
+
from gs_quant.data import DataContext, DataFrequency, Dataset
|
|
26
|
+
from gs_quant.data.fields import DataMeasure
|
|
23
27
|
from gs_quant.entities.entity import Country, EntityType
|
|
24
28
|
from gs_quant.errors import MqValueError
|
|
29
|
+
from gs_quant.markets.securities import Asset, AssetIdentifier
|
|
25
30
|
from gs_quant.timeseries.etf_classification import ETF_CLASSIFICATION
|
|
26
|
-
from gs_quant.timeseries.helper import plot_measure_entity
|
|
31
|
+
from gs_quant.timeseries.helper import plot_measure, plot_measure_entity
|
|
27
32
|
from gs_quant.timeseries.measures import ExtendedSeries
|
|
28
33
|
|
|
29
34
|
# ---------------------------------------------------------------------------
|
|
@@ -468,3 +473,162 @@ total_etf_shares_outstanding.__doc__ = _ETF_MEASURE_DOC.format(
|
|
|
468
473
|
)
|
|
469
474
|
total_etf_assets.__doc__ = _ETF_MEASURE_DOC.format(what='assets', fn='total_etf_assets')
|
|
470
475
|
total_etf_funds.__doc__ = _ETF_MEASURE_DOC.format(what='fund count', fn='total_etf_funds')
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
# ---------------------------------------------------------------------------
|
|
479
|
+
# Asset-level total return (price appreciation + dividends)
|
|
480
|
+
# ---------------------------------------------------------------------------
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
class TotalReturnComponent(Enum):
|
|
484
|
+
"""Which part of the total return to return."""
|
|
485
|
+
|
|
486
|
+
TOTAL = 'total' # price appreciation + cash dividends
|
|
487
|
+
PRICE = 'price' # price appreciation only
|
|
488
|
+
DIVIDEND = 'dividend' # dividend contribution only
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
def _cash_dividends_per_share(asset: Asset, start, end) -> pd.Series:
|
|
492
|
+
"""
|
|
493
|
+
Return cash dividends per share for an asset, indexed by effective (ex) date.
|
|
494
|
+
|
|
495
|
+
Dividends come from the Security Master corporate-actions endpoint, which
|
|
496
|
+
carries the true per-share cash amount for each 'Cash Dividend' event (the
|
|
497
|
+
price datasets' adjustedClosePrice is not dividend-adjusted, so we cannot
|
|
498
|
+
derive dividends from prices alone).
|
|
499
|
+
"""
|
|
500
|
+
gsid = asset.get_identifier(AssetIdentifier.GSID)
|
|
501
|
+
if gsid is None:
|
|
502
|
+
return pd.Series(dtype=float)
|
|
503
|
+
|
|
504
|
+
try:
|
|
505
|
+
corporate_actions = GsSecurityMasterApi.get_corporate_actions(
|
|
506
|
+
id_value=gsid, id_type=SecMasterIdentifiers.GSID
|
|
507
|
+
)
|
|
508
|
+
except Exception:
|
|
509
|
+
return pd.Series(dtype=float)
|
|
510
|
+
|
|
511
|
+
amounts = {}
|
|
512
|
+
for ca in corporate_actions or []:
|
|
513
|
+
if ca.get('eventType') != 'Cash Dividend':
|
|
514
|
+
continue
|
|
515
|
+
eff = ca.get('effectiveDate')
|
|
516
|
+
if eff is None:
|
|
517
|
+
continue
|
|
518
|
+
eff_date = pd.Timestamp(eff)
|
|
519
|
+
if eff_date < pd.Timestamp(start) or eff_date > pd.Timestamp(end):
|
|
520
|
+
continue
|
|
521
|
+
# sum any cash records on the event (per share, in the dividend currency)
|
|
522
|
+
total = 0.0
|
|
523
|
+
for record in ca.get('records', []):
|
|
524
|
+
if record.get('instrument_type') == 'Currency' and record.get('dataValue') is not None:
|
|
525
|
+
total += float(record['dataValue'])
|
|
526
|
+
if total:
|
|
527
|
+
amounts[eff_date] = amounts.get(eff_date, 0.0) + total
|
|
528
|
+
|
|
529
|
+
if not amounts:
|
|
530
|
+
return pd.Series(dtype=float)
|
|
531
|
+
return pd.Series(amounts).sort_index()
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
def _total_return_series(asset: Asset, component: 'TotalReturnComponent') -> pd.Series:
|
|
535
|
+
"""
|
|
536
|
+
Build a cumulative total-return (%) series for an asset.
|
|
537
|
+
|
|
538
|
+
Total return captures both price appreciation and cash dividends. Because the
|
|
539
|
+
adjusted close price is not dividend-adjusted in the price datasets, the
|
|
540
|
+
dividend leg is taken from the corporate-actions (Cash Dividend) events and
|
|
541
|
+
accumulated by ex-date. Values are expressed in percentage points (i.e.
|
|
542
|
+
scaled by 100, so a 10% return is returned as ``10.0``)::
|
|
543
|
+
|
|
544
|
+
price return (t) = 100 * (closePrice(t) - closePrice(start)) / closePrice(start)
|
|
545
|
+
dividend return (t) = 100 * (sum of dividends with ex-date <= t) / closePrice(start)
|
|
546
|
+
total return (t) = 100 * (closePrice(t) - closePrice(start) + dividends(t)) / closePrice(start)
|
|
547
|
+
"""
|
|
548
|
+
start, end = DataContext.current.start_date, DataContext.current.end_date
|
|
549
|
+
|
|
550
|
+
close = asset.get_data_series(DataMeasure.CLOSE_PRICE, None, DataFrequency.DAILY, start, end)
|
|
551
|
+
|
|
552
|
+
if close is None or close.empty:
|
|
553
|
+
raise MqValueError(f'No close price data found for {asset.get_marquee_id()}')
|
|
554
|
+
|
|
555
|
+
close = close.sort_index()
|
|
556
|
+
|
|
557
|
+
# Starting price anchors the returns to the window; close(t) is the ending price.
|
|
558
|
+
start_price = close.iloc[0]
|
|
559
|
+
if start_price == 0:
|
|
560
|
+
raise MqValueError('Starting price is zero - cannot compute total return')
|
|
561
|
+
|
|
562
|
+
# Cumulative cash dividends per share, forward-filled onto the price dates.
|
|
563
|
+
dividends = _cash_dividends_per_share(asset, start, end)
|
|
564
|
+
if dividends.empty:
|
|
565
|
+
cum_div = pd.Series(0.0, index=close.index)
|
|
566
|
+
else:
|
|
567
|
+
cum_div = dividends.cumsum().reindex(close.index, method='ffill').fillna(0.0)
|
|
568
|
+
|
|
569
|
+
if component == TotalReturnComponent.PRICE:
|
|
570
|
+
# price only: (ending price - starting price) / starting price
|
|
571
|
+
values = (close - start_price) / start_price
|
|
572
|
+
elif component == TotalReturnComponent.DIVIDEND:
|
|
573
|
+
# dividend contribution: dividends / starting price
|
|
574
|
+
values = cum_div / start_price
|
|
575
|
+
else:
|
|
576
|
+
# total return: (ending price - starting price + dividends) / starting price
|
|
577
|
+
values = (close - start_price + cum_div) / start_price
|
|
578
|
+
|
|
579
|
+
series = ExtendedSeries(values * 100.0, name='totalReturn')
|
|
580
|
+
series.dataset_ids = getattr(close, 'dataset_ids', ())
|
|
581
|
+
return series
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
@plot_measure(
|
|
585
|
+
(AssetClass.Equity,),
|
|
586
|
+
(AssetType.ETF, AssetType.Index, AssetType.Single_Stock),
|
|
587
|
+
[QueryType.SPOT],
|
|
588
|
+
)
|
|
589
|
+
def total_return(
|
|
590
|
+
asset: Asset,
|
|
591
|
+
component: TotalReturnComponent = TotalReturnComponent.TOTAL,
|
|
592
|
+
*,
|
|
593
|
+
source: str = None,
|
|
594
|
+
real_time: bool = False,
|
|
595
|
+
request_id: Optional[str] = None,
|
|
596
|
+
) -> pd.Series:
|
|
597
|
+
"""
|
|
598
|
+
Cumulative total return (%) of an asset over the date context, combining
|
|
599
|
+
price appreciation and cash dividends.
|
|
600
|
+
|
|
601
|
+
Total return is anchored at the start of the window and measured in
|
|
602
|
+
percentage points (i.e. scaled by 100, so a 10% return is returned as
|
|
603
|
+
``10.0``)::
|
|
604
|
+
|
|
605
|
+
price = 100 * (closePrice(t) / closePrice(start) - 1) (price only)
|
|
606
|
+
dividend = 100 * (sum of cash dividends, ex-date <= t) / close(start) (dividends)
|
|
607
|
+
total = price + dividend (price + dividends)
|
|
608
|
+
|
|
609
|
+
Cash dividends are sourced from Security Master corporate-action events (the
|
|
610
|
+
price datasets are not dividend-adjusted), so the ``total`` component equals
|
|
611
|
+
``100 * (ending price - starting price + dividends paid) / starting price`` on
|
|
612
|
+
the final date.
|
|
613
|
+
|
|
614
|
+
**Examples**
|
|
615
|
+
|
|
616
|
+
Total return of SPY (price + dividends)::
|
|
617
|
+
|
|
618
|
+
SPY.total_return()
|
|
619
|
+
|
|
620
|
+
Price-only return / dividend contribution::
|
|
621
|
+
|
|
622
|
+
SPY.total_return(price)
|
|
623
|
+
SPY.total_return(dividend)
|
|
624
|
+
|
|
625
|
+
:param asset: asset object loaded from security master
|
|
626
|
+
:param component: which part of the return to show - total, price or dividend
|
|
627
|
+
:param source: name of function caller
|
|
628
|
+
:param real_time: whether to retrieve intraday data instead of EOD (not supported)
|
|
629
|
+
:param request_id: server request id
|
|
630
|
+
:return: cumulative total return (%) time series
|
|
631
|
+
"""
|
|
632
|
+
if real_time:
|
|
633
|
+
raise NotImplementedError('real-time total return is not available')
|
|
634
|
+
return _total_return_series(asset, component)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/json_encoders/__init__.py
RENAMED
|
File without changes
|
{gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/json_encoders/request_encoders.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/response_datatypes/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gs_quant-2.2.5 → gs_quant-2.2.6}/gs_quant/api/gs/backtests_xasset/response_datatypes/risk_result.py
RENAMED
|
File without changes
|
|
File without changes
|