Registry / data / gs-quant

gs-quant

JSON →
library2.0.4pypypi✓ verified 82d ago

GS Quant is a Python toolkit for quantitative finance developed by Goldman Sachs. It provides analytics, risk models, and market data access used by the firm's risk management and trading platforms. The current version is 1.6.22, with monthly releases.

pip install gs-quant
INSTALL
IMPORT
SIG · GS-QUANT
G
gs-quant
datapythonv2.0.4
Install
17.8s avg
Import
Disk
399MB
Pass rate
9/ 10
Env Coverage9 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.0.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✓ —
✓ 17.3s
py 3.11
✓ —
✓ 17.3s
py 3.12
✓ —
✓ 16.9s
py 3.13
✓ —
✓ 17.4s
py 3.9
✕ build_error
✓ 20.1s
399MB installed
● package 399MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PackageNotFoundError
from gs_quant import PackageNotFoundError
from gs_quant.api import GxQuantApi
get_environment_summary
from gs_quant import get_environment_summary
from gs_quant.api import GxQuantApi
get_lib_version
from gs_quant import get_lib_version
from gs_quant.api import GxQuantApi

Initialize session with credentials, then fetch a risk model.

from gs_quant.session import Session from gs_quant.api import GxQuantApi import os # Authenticate with client id and secret Session.use(client_id=os.environ.get('GS_CLIENT_ID', ''), client_secret=os.environ.get('GS_CLIENT_SECRET', '')) # Fetch risk model data api = GxQuantApi() model = api.get_risk_model('GSM2') print(model.name)
Debug
Known issues
breakingGS Quant v1.0+ dropped support for Python 3.8 and below. Upgrade to Python 3.9+.
fix
Update Python to >=3.9 and pip install gs-quant>=1.0
affects: <1.0
deprecatedThe GsSession class is deprecated in favor of Session in v1.5+.
fix
Use 'from gs_quant.session import Session' instead of 'from gs_quant.session import GsSession'
affects: >=1.5
gotchaImports must use underscores: 'gs_quant' not 'gs-quant'. The hyphen is only in the PyPI package name.
fix
Always use 'from gs_quant...' in your code.
affects: all
gotchaAPI keys for production must be set via environment variables, not hardcoded. The library checks env vars GS_CLIENT_ID and GS_CLIENT_SECRET.
fix
Set environment variables before importing gs_quant, or use Session.use() with explicit credentials.
affects: all
Upgrade
Version history
2.0.4latest on PyPI · released Jun 17, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
gs-quant — pip install gs-quant · libregistry