Skip to main content

SIP Global

sipQuant

The Python toolkit for SIP Global benchmark data.
The reference price for specialty commodities, in your research, valuation and risk stack.

PyPI Python 3.10+ Apache-2.0 Docs


SIP Global publishes one global standard for physical specialty commodities: the SIP Indices, daily reference prices across markets and commodities worldwide, with history back to June 1988. sipQuant is the official client. It pulls every index from the SIP Global API as a typed series and carries it through pricing, structured products, risk, portfolio construction and physical trade logistics.

  • One dependency. Pure NumPy and the Python standard library. Nothing to audit beyond numpy.
  • Built for desks. Option and structured product pricing, VaR and stress testing, OTC book management and index governance in one package.
  • Physical first. Basis, grade and freight differentials, container loads, landed cost, Incoterms and HS codes sit next to the quant tools.
  • AI ready. A local MCP server lets Claude, Cursor and other assistants query SIP data and run the toolkit.

Install

pip install sipQuant

Python 3.10 or later. The MCP server is an optional extra: pip install "sipQuant[mcp]".

Quickstart

Data access requires a SIP Global API key. Set it once:

export SIP_API_KEY=your_key

Plans and keys: sipglobally.com/data.

import numpy as np
import sipQuant as sq

indices = sq.data.catalog()
ps = sq.data.fetch('US_VAN_TL', start='2020-01-01')
r = np.diff(np.log(ps['values']))

sq.risk.var(r, alpha=0.05, method='historical')
sq.risk.rollingVol(r, window=21)
sq.fit.fitOU(ps['values'], dt=1/252)

Every series arrives as a validated sq.schema.PriceSeries (dates as datetime64[D], values as float64). API errors raise sq.data.SIPAPIError with status, message and, on a 429, retry_after.

Structured products

Price the hedges producers and consumers actually trade, straight off a SIP Index.

spot, vol = ps['values'][-1], float(np.std(r) * np.sqrt(252))

sq.pricing.structured.threeWayCollar(S=spot, putBuyStrike=0.95 * spot, putSellStrike=0.85 * spot,
                                     callSellStrike=1.12 * spot, T=0.5, r=0.04, sigma=vol)
sq.pricing.structured.participatingForward(F=spot, K=0.97 * spot, T=0.5, r=0.04, sigma=vol,
                                           participation=0.5)
sq.pricing.structured.accumulator(S=spot, K=0.92 * spot, knockOut=1.08 * spot, T=0.5, r=0.04,
                                  sigma=vol, qtyPerFix=100, nFixings=26, seed=7)

Also in the package: knock-out forwards, collared swaps, commodity swaps and swaptions, Asian, barrier, spread and Monte Carlo options, and forward curve bootstrapping.

Risk management

sq.risk.cvar(r, alpha=0.01)
sq.risk.maxDrawdown(ps['values'])
sq.risk.stressTest(positions=[5e6, -2e6], shocks=[[-0.25, -0.20], [0.15, 0.10]])

Historical, parametric and Cornish-Fisher VaR, CVaR, component and marginal VaR, stress scenarios, drawdown, Sortino, Calmar, tracking error and tail index. Liquidity adjusted VaR, market impact and optimal liquidation live in sq.trading.liquidity.

Physical trade

load = sq.physical.containers.loadContainer(120, 100, 120, 600, container='40hc')
cost = sq.physical.landed.landedCost(price=240, qty=load['netKg'] / 1000,
                                     freight=2800, insurance=60, dutyPct=0, vatPct=5)

The calculators published at sipglobally.com/tools, ported to code: container loading, landed cost, unit conversion, HS code lookup, the spec catalog and Incoterms 2020.

Package map

Area Contents
sq.data SIP Global API client: catalog, fetch, SIPAPIError.
sq.schema Validated containers: PriceSeries, SparsePriceSeries, TradeRecord, QuoteSheet, ForwardCurve, OTCPosition, IndexSpec.
sq.pricing.options Black-Scholes, binomial, trinomial, implied vol, Kirk spread, barrier, Asian, Monte Carlo.
sq.pricing.structured Three-way collar, participating forward, knock-out forward, collared swap, accumulator.
sq.pricing.bootstrap Forward, convenience yield, discount, zero and spread curves, vol surface.
sq.risk VaR, CVaR, component and marginal VaR, stress tests, drawdown, performance ratios, tail index.
sq.portfolio Mean-variance, efficient frontier, risk parity, HRP, Black-Litterman, max Sharpe, min CVaR.
sq.trading OTC instruments (otc), dealer book (book), liquidity (liquidity), order vocabulary (orders).
sq.quant Econometrics, state space, factors, ML, fitting, distributions, simulation, dimensionality reduction.
sq.physical Basis and differentials, units, containers, landed cost, Incoterms, HS codes, spec catalog.
sq.index Index calculation, audit trail, restatement, roll schedule, proxy regression, backtest.

Every 1.x import path (sq.options, sq.otc, sq.fit, sipQuant.commodity and the rest) still resolves.

MCP server

SIP Global runs a hosted MCP server for AI assistants. Connect it from Claude Code:

claude mcp add --transport http sip https://api.sipglobally.com/mcp --header "Authorization: Bearer $SIP_API_KEY"

It serves list_indices, get_index_history, get_index_summary, search_markets and get_commodity_profile. To add the sipQuant calculators and quant tools, run the local server as well:

pip install "sipQuant[mcp]"
claude mcp add sip-local -e SIP_API_KEY=$SIP_API_KEY -- sipquant-mcp

Setup for Claude Desktop and Cursor, and the full tool list, are in the docs.

Data plans

Plan Price Rate limit
Individual $6,000 per year ($600 per month) 60 requests per minute
Enterprise By contract 1,200 requests per minute

SIP data is licensed for research, valuation and settlement. Details at sipglobally.com/data.

Documentation

Guides, worked examples and the full API reference: sipquant.readthedocs.io.

About SIP Global

SIP Global (Systematic Index Partners Ltd.) is a physical commodity trading and brokerage company headquartered in Calgary, Alberta, trading worldwide. It publishes the SIP Indices, the reference prices for specialty commodities, and brings systematic rigour, transparent pricing and real liquidity to physically settled markets.

Tota Ad Manum.

sipglobally.com

License

Apache-2.0. © 2026 Systematic Index Partners Ltd. Contact:

Metadata

Release files for sipQuant 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sipQuant 2.0.0
File Size Uploaded Provenance Actions
sipquant-2.0.0.tar.gz 158.8 kB With provenance Details for sipquant-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sipQuant 2.0.0
File Interpreter ABI Platform Actions
sipquant-2.0.0-py3-none-any.whl Python 3 none any Details for sipquant-2.0.0-py3-none-any.whl

Total release size: 313.0 kB

Release files / sipquant-2.0.0.tar.gz

Download URL sipquant-2.0.0.tar.gz
Size 158.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3396ee077e209d6d426aed0a0716a70967616c1178fff08958e2093a2bd4bea5
BLAKE2b-256 checksum
How to use checksums
c44270bdcf2bf34dbb759d672801853e2e2b84f1b8914b1562eba84b2bc7dff4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / sipquant-2.0.0-py3-none-any.whl

Download URL sipquant-2.0.0-py3-none-any.whl
Size 154.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd5fa020af36d5392a78761c95eaf8ed5c4186ed912bcca16b5fe3f9cc759660
BLAKE2b-256 checksum
How to use checksums
f6297751b7950132970c3d3c354440c993a0e330275e6560a87caaf3c58ef69d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for sipQuant 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sipquant-2.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page