qeqeanalytics

qeGraph

An application for valuing derivatives and securities, calculating their risk and explaining their P&L, built on qeLib. Everything a valuation reads is stored with its history: trades, market data, models and every pricing choice. So any number can be reproduced, and traced back to where it came from.

Early release qeGraph is at version 0.x and still being developed; the first production version is expected shortly.

Trades and books

Book and amend trades, and see them on the blotter by book, type or counterparty. Credit default swaps, indices, tranches and options on them; swaps, caps, swaptions, Bermudans, callables and range accruals; FX forwards and options; government bonds and repos.

The Structuring page prices trades as you change them, before you book them.

The trade blotter

Curves and volatilities from the market

Rates curves, credit curves, base correlations and volatility smiles calibrated to market quotes. Change a quote or a model setting and the page calibrates again at once. Checks for arbitrage are shown alongside.

Base correlations calibrated to tranche quotes, with the loss distribution
Base correlations calibrated to index tranche quotes, with the loss distribution at each maturity.

Models you can see into

SABR smiles for caps and swaptions, short-rate models for Bermudans and callables, and FX smiles. Densities and fit errors are drawn for each calibration, so a poor fit shows before it is used.

The density of swap rates under a SABR model
The density of the swap rate implied by a SABR swaption smile.

Risk, hedges and P&L explain

Greeks to every market quote by algorithmic differentiation, or by bumping. Hedges in the instruments you choose. Theta, and a P&L explained step by step from one day's close to the next: time passing, market moves, trades and events.

Scenarios shock any set of inputs and revalue books with them. Launch a run from a page, and look at its results in the Risk Viewer, or cut them any way in the Pivot View.

Every input to a calculation is versioned, so any run can be reproduced exactly.

The Risk Viewer: a book's AAD risk by risk factor and pillar
An AAD risk run of a credit book in the Risk Viewer: its risk to each base correlation and CDS spread.

Lifecycle and events

Exercises, expiries, calls, fixings and credit events are tracked for every trade. Each day's due events are listed with what applying them does, before you apply them: an option exercised into its swap, a note called, a fixing settled, a defaulted name's trades settled at the auction recovery.

Every change to a trade is a new version, so a book can be seen, and valued, as it was at any time.

The Events page: exercises, calls, expiries and fixings due
Events due on the day: Bermudan exercises, a call date, FX option expiries and a fixing.

See what every number depends on

qeGraph computes each value only when it is needed and keeps it, so that a change recomputes only what depends on it. The Graph page draws this for any trade: its pricer, its curves and the quotes they read, each node with its value and the code that computed it.

The graph is highly optimised, and its logic can be complex. So its algorithm, including scenarios, refresh and the persistent cache, is proved correct in Lean against a formal specification, and the implementation is checked against that verified model every night. Values held in memory, such as calibrated curves, are recomputed whenever anything they depend on changes, inside scenarios too, and are never served stale.

The graph of a trade's valuation

From notebooks, Excel and your AI assistant

Leverage all the capabilities of qeGraph from Python notebooks, or auto-generate qeGraph logic in Excel calling qeLib's objects. Ask qeGraph questions in plain English, in the app or from your own AI account, and have it plan and launch runs for you.

The same graph in a notebook

Everything the app does is there in Python, on the same graph. Value a book, change any input for a block of code and see what moves, or launch a risk run and read its results back.

A change made with tweaks recomputes only what depends on it, and nothing is saved.

# the example book, with the USD OIS quotes 10bp higher
with use_graph(graph):
    sofr = MarketDataInterface('default').ois('USD')
    before = book_pv()
    with tweaks({sofr.quotes: with_rates(sofr.quotes(),
                 [r + 0.0010 for r in sofr.quotes().rates])}):
        after = book_pv()
book PV 20311674.71, with USD OIS +10bp 20225439.08: -86235.62

# its AAD risk, by risk factor type
run = launch(s, results, dict(configurations=[dict(choice='default')],
             books=[dict(book='example')], reports=['pv', 'aad']))
Index quotes                     51272.95 per bp
CDS running coupons              23738.99 per bp
CDS ISDA spreads                -19916.87 per bp
OIS quotes                       -8647.17 per bp
CDS quotes                        5998.15 per bp
Base correlation                 -2432.92 per bp
From the demo's "Getting started" notebook, run on the example data; print statements left out.

Ask your AI assistant

Connect qeGraph to Claude, or another AI assistant that supports MCP, and ask in plain English. It looks up the books and the market, plans the run, launches it once you approve, and reads the results back to you.

The run is the same as one launched from the app: it shows in the Risk Viewer if you look in the app.

qeGraph has a full manual, but it is often easier to ask your AI assistant how to do something in qeGraph and get the answer there and then.

What happens to the example book if USD rates rise 10bp, and where is its biggest risk?
qeGraph: list_base_cases check_plan launch_plan (approved) run_status read_results
A 10bp rise in USD OIS rates loses 86,236 on the example book (32 trades, valued in 10 seconds). Most of it is in the longer CDX tranches:
TR-10Y 0-3%-17,372
TR-10Y 3-7%-17,110
TR-7Y 0-3%-13,523
TR-7Y 3-7%-10,679
The AAD risk agrees: -8,647 per bp to USD OIS, so first-order risk explains almost all of the move. The biggest risk is to the CDX.NA.IG index quotes: 51,273 per bp.
A run on the demo through qeGraph's MCP connector. The question and the numbers are real; the answer's wording is shortened.

Try the demo

The online demo has example books, market data and models. Email us to request access.

Request demo access