gs-quant-overview

Guides session setup, instrument resolution, and portfolio construction with the gs_quant Python library.

12.8k|1.7k|Updated Dec 14, 2018
One-click install
npx skills add https://github.com/goldmansachs/gs-quant --skill gs-quant-overview
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gs-quant-overview
Source: https://github.com/goldmansachs/gs-quant/tree/main/gs_quant/skills/gs-quant-overview
Command: npx skills add https://github.com/goldmansachs/gs-quant --skill gs-quant-overview

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Getting started with the gs_quant quantitative finance library requires knowing how to authenticate sessions, resolve instruments against Goldman Sachs pricing services, and structure portfolios correctly—mistakes in any of these steps cause failed pricing calls or silently wrong results.

Core Features & Use Cases

  • Session Authentication: Initialize GsSession with OAuth2 client credentials, Kerberos/SSO, or context managers across PROD, QA, and DEV environments.
  • Instrument Resolution & Portfolios: Resolve instruments like IRSwap and IRSwaption to fill in market parameters, then group them into nested Portfolio objects for pricing and risk calculation.
  • Topical Reference Guides: Detailed companion docs cover instrument construction (including FX premium pitfalls), PricingContext and historical pricing, Dataset queries, backtesting with triggers and actions, and writing custom measures.
  • Use Case: A quant analyst needs to price a book of USD and EUR interest rate swaps—use this Skill to authenticate a session, build a nested Portfolio, resolve all instruments, and compute DollarPrice and IRDelta in one workflow.

Quick Start

Use the gs-quant-overview skill to set up a GsSession and price a 10y USD interest rate swap with gs_quant.

Frequently Asked Questions about gs-quant-overview

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I authenticate a gs_quant session in Python?

Call GsSession.use() with an environment, client_id, client_secret, and scopes such as run_analytics. Internal Goldman Sachs users can omit credentials to use Kerberos or pass-through authentication automatically.

How do I resolve an instrument in gs_quant?

Call the resolve() method on an instrument such as IRSwap to send it to the GS pricing service, which fills in missing parameters like the par fixed rate. Pass in_place=False to receive a resolved copy instead of modifying the original.

Why does my FX option price return zero in gs_quant?

FX options without an explicit premium are resolved with a premium that offsets the option value, making DollarPrice zero. Set premium=0 at construction to see the actual present value, or use the FairPremium risk measure instead.

Can gs_quant price instruments on historical dates?

Yes, HistoricalPricingContext prices instruments across a date range using close-of-business market data for each date. Results return as pandas Series indexed by date, and it supports explicit date lists or a number of business days.

What datasets can I access with the gs_quant Dataset class?

The Dataset class accesses Marquee datasets such as TREOD for equities end-of-day data and FXIVOL_STANDARD for FX implied volatility. Use get_data with symbol dimension filters like bbid, and get_coverage to list available assets.

How do I backtest a trading strategy with gs_quant?

Build a Strategy from Trigger and Action objects, then run it with GenericEngine over a date range. Results include a P&L summary DataFrame, trade ledger, and performance statistics such as Sharpe ratio and max drawdown.