back to home

goldmansachs / gs-quant

Python toolkit for quantitative finance

9,919 stars
1,300 forks
34 issues
Jupyter NotebookPython

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing goldmansachs/gs-quant in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind-ai.vercel.app/repo/goldmansachs/gs-quant)
Preview:Analyzed by RepoMind

Repository Summary (README)

Preview

GS Quant is a Python toolkit for quantitative finance, which provides access to an extensive set of derivatives pricing data through the Goldman Sachs Marquee developer APIs. Libraries are provided for timeseries analytics, portfolio manipulation, risk and scenario analytics and backtesting. Can be used to interact with the Marquee platform programmatically, or as a standalone software package for quantitiative analytics.

Created and maintained by quantitative developers (quants) at Goldman Sachs to enable development of trading strategies and analysis of derivative products. Can be used to facilitate derivative structuring and trading, or as statistical packages for a variety of timeseries analytics applications.

Overview

GS Quant is a Python toolkit for quantitative finance, which provides access to an extensive set of derivatives pricing data through the Goldman Sachs Marquee developer APIs.

Important Links

Set up

Code formatting

We are now using ruff for very fast code formatting. The easiest thing to do it to use the pre-commit hooks. That way when you commit it will automatically format and fix your code.

# If you DIDN't use uv to setup your env you might need to install ruff and pre-commit manually.
pip install ruff pre-commit

Installs the pre-commit hooks, this will make ruff run on every commit.

pre-commit install

Alternatively you can run the ruff commands locally, check runs lint style check for code issues and --fix will fix them. format is about the code style, whitespace etc.

ruff check --fix
ruff format

Build / Test / Develop

  • Install development dependencies (see extras_require in setup.py).
  • Check out the project.
  • Navigate to project root.
  • Consider installing it in development mode.

To build distribution package:

  • python setup.py sdist
  • Package will be created in the dist/ folder.

To run tests:

  • pytest gs_quant/test

Contacts