gitwtfhub

wtf is gs-quant?

goldmansachs/gs-quant — explained in plain English

Analysis updated 2026-06-24

10,204Jupyter NotebookAudience · dataComplexity · 4/5Setup · hard

TL;DR

A Python library from Goldman Sachs for quantitative finance, structuring and pricing derivatives, building trading strategies, and risk analysis, but full API access requires institutional Goldman Sachs client credentials.

Mindmap

mindmap
  root((repo))
    What it does
      Derivative pricing
      Risk management
      Trading strategy tools
    Audience
      Quant developers
      Financial analysts
      GS institutional clients
    Tech
      Python library
      Jupyter Notebooks
      Marquee API
    Access
      pip install easy
      API credentials required
      GS clients only

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Build a Python script to structure and analyze derivative products using the Goldman Sachs Marquee platform API.

REASON 2

Run statistical analysis on financial market data for quantitative trading strategy research.

REASON 3

Perform risk management calculations on a portfolio of derivative contracts using the library's built-in tools.

What's in the stack?

PythonJupyter Notebook

How it stacks up

goldmansachs/gs-quantmozilla/ttstencentarc/photomaker
Stars10,20410,13710,109
LanguageJupyter NotebookJupyter NotebookJupyter Notebook
Setup difficultyhardmoderatehard
Complexity4/53/54/5
Audiencedatadeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · hard Time to first run · 1day+

Full API access requires Goldman Sachs institutional client credentials, contact GS sales to obtain them.

Wtf does this do

GS Quant is a Python library published by Goldman Sachs that provides tools for quantitative finance work, particularly for analyzing and trading derivative products. Derivatives are financial contracts whose value depends on an underlying asset, such as a stock, interest rate, or commodity. The library is described as having been built on top of internal Goldman Sachs infrastructure developed over 25 years of market activity. The library is intended for two main audiences. The first is quantitative developers at financial institutions who want to build trading strategies or structure derivative products. The second is analysts who need statistical tools for data analysis in financial contexts. The README specifically mentions derivative structuring, trading, and risk management as the primary use cases. Installing the library itself is straightforward with a single pip command. However, access to the API features requires a client ID and secret credential that Goldman Sachs only provides to its institutional clients. The README does not explain how to obtain those credentials if you are not already a Goldman Sachs client, other than to suggest speaking with a sales contact. The GitHub repository hosts Jupyter Notebooks with examples and tutorials, though the README points readers to Goldman Sachs's own developer documentation site for full guides rather than explaining much in the repository itself. The README is quite sparse, so most of the actual detail about what the library can do lives in the external documentation.

Yoink these prompts

Prompt 1
Using gs-quant, show me how to price a vanilla interest rate swap and compute its DV01 risk metric.
Prompt 2
How do I authenticate with the Goldman Sachs Marquee API using gs-quant client credentials and run my first data query?
Prompt 3
Build a backtesting script in gs-quant for an equity options strategy using historical price data.
Prompt 4
Show me how to use gs-quant portfolio tools to analyze the risk and return profile of a multi-leg derivative structure.
Prompt 5
Which gs-quant features work without Marquee API credentials, and how do I explore the bundled Jupyter Notebook examples offline?

Frequently asked questions

wtf is gs-quant?

A Python library from Goldman Sachs for quantitative finance, structuring and pricing derivatives, building trading strategies, and risk analysis, but full API access requires institutional Goldman Sachs client credentials.

What language is gs-quant written in?

Mainly Jupyter Notebook. The stack also includes Python, Jupyter Notebook.

How hard is gs-quant to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is gs-quant for?

Mainly data.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.