Skip to main content

API documentation

Call Rising Gamma calculations from your own code

Send a JSON request and get back the result of a calculation the platform runs: option values, risk measures, backtests, Monte Carlo simulations and valuations. The same engine as the site, in your scripts, spreadsheets and pipelines.

  • REST and JSON, nothing to install
  • One key per account, revoke any time
  • Batch: up to 20 tickers in one request
  • One allowance shared with MCP

Working from an AI assistant instead? The same analyses are available through MCP, drawing on the same allowance.

What the API gives you

  • The platform's own engine

    Option pricing, risk, correlation, indicators, backtests, Monte Carlo and valuations: the calculations behind the tools on the site, returned as JSON.

  • Results come with context

    Responses carry key_metrics for the headline figures and a data_notice whenever a source notice applies, so you do not rebuild the context around a number.

  • Many assets in one call

    A tool that takes one ticker also takes a list, with one result per ticker.

  • One allowance for MCP and the API

    MCP and the API draw on the same allowance, so there is no second allowance to buy.

Your first request

Create a key in your account area, then send it as a Bearer token. The details are under Get started and Authentication below.

curl -X POST https://api.risingamma.com/api/v1/tools/beta_analysis \
  -H "Authorization: Bearer $RG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ticker": "QQQ", "benchmark": "SPY"}'
import os, requests

r = requests.post(
    "https://api.risingamma.com/api/v1/tools/beta_analysis",
    headers={"Authorization": f"Bearer {os.environ['RG_API_KEY']}"},
    json={"ticker": "QQQ", "benchmark": "SPY"},
)
print(r.json()["data"])

What you can build with it

  • A nightly risk report

    Run beta, correlation and distribution analysis on your watchlist from a scheduled script and put the figures where your team reads them.

  • Models in a notebook or spreadsheet

    Pull an option value, a Monte Carlo result or a valuation into Python, R or a spreadsheet instead of rebuilding the maths.

  • Checks inside your own tools

    Add a backtest, a hedging estimate or a fair-value check to an internal dashboard or workflow.

  • Calculations for your own agents

    An agent you built can call a tool that returns computed results instead of text it has to trust.

For developers and quants who want computed analysis in their own code, analysts who work in notebooks and spreadsheets, and product and research teams building internal tools.

What the API does not do

  • It returns calculations, not market data: no price series, no quotes, no raw filings. The prices those calculations start from are not part of the API.
  • Series in a response are trimmed to a recent window. The calculations themselves use the full history.
  • It is for internal use. Results may not be redistributed, resold or published, or used to build a product or a data feed for others (see Permitted use).
  • The analysis rests on end-of-day data, not a real-time feed.

Plan and allowance

The API is part of the Pro + Connections plan, which is annual. The price for your country is on the pricing page, and the allowance, shared with MCP, is described under Allowance below.

Get started

  1. Create a key in your account area. It is shown only once, so store it somewhere safe.
  2. Send it in the Authorization header of every request.
  3. Call a tool, passing its arguments as a JSON body.

Base URL https://api.risingamma.com/api/v1

Authentication

Authenticate every request with your key: Authorization: Bearer rg_live_.... Keep the key on your server. A key embedded in a web page, an app or a public repository is effectively published, and anyone who finds it spends your allowance. You can revoke a key at any time in your account area.

Access follows your plan on every request: if your plan no longer includes the API, your keys stop working immediately.

Calling a tool

Each tool is its own endpoint. Send its arguments as the JSON request body; the reference below lists them for every tool.

curl -X POST https://api.risingamma.com/api/v1/tools/beta_analysis \
  -H "Authorization: Bearer $RG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ticker": "QQQ", "benchmark": "SPY"}'

One calculation, several assets

Tools that take a single ticker also accept a list: send up to 20 tickers in tickers, along with the arguments they share. The response contains a results list with one entry per ticker, holding its ok flag followed by either its result or its error. Each ticker counts as one unit.

curl -X POST https://api.risingamma.com/api/v1/tools/distribution_analysis \
  -H "Authorization: Bearer $RG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tickers": ["SPY", "QQQ", "GLD"], "arguments": {"start_date": "2024-01-01"}}'

Response format

  • data: the result of the calculation.
  • key_metrics: the headline figures, for tools that provide them.
  • data_notice: the source notice that accompanies some data. Whenever you display those numbers, display the notice with them.
  • window_capped and series: whether any series was trimmed to the history window, and where each one starts.
{
  "tool": "distribution_analysis",
  "data": { ... },
  "key_metrics": { ... },
  "window_capped": true,
  "series": [
    { "path": "rolling_volatility", "frequency": "daily", "start": "2024-10-28", "points": 503, "points_in_full_history": 1260 }
  ]
}

History window

Calculations use the asset's full history. Series returned in a response cover a window ending today: two years for daily points, ten years for weekly points and forty years for monthly points. When a series is trimmed, the response says so.

Allowance

Every response includes X-Quota-Remaining (today), X-Quota-Remaining-Month, X-Quota-Reset (seconds until midnight UTC) and X-Units-Charged. GET /api/v1/quota returns the full status, and your account area shows your usage over the last 30 days.

Errors

Errors are returned as JSON with an error code and a human-readable message.

StatusMeaning
401The key is missing, invalid or revoked.
403Your plan does not include the API.
404The tool is not part of the API, or the asset was not found.
422The arguments were rejected; the message names the parameter at fault.
429Allowance used up. Retry-After tells you how many seconds to wait before trying again.
502A temporary problem on our end. Try again later.

Permitted use

Results obtained through the API are for internal use: your own analysis and decisions, within your organization. They may not be redistributed, resold or published, or used to build a product, a service or a data feed for others. The Terms of Service set out these conditions.

Reference

Tools, grouped by module. Descriptions and parameters come from the live catalog (GET /api/v1/tools) and are written in English, like the code that calls them.

Loading the catalog…

The API is included in Pro + Connections