LeanETRM™

Open source ETRM · Power · Gas · LNG · Crude

Price the deal. Measure the risk.
Deliver the energy.

Open source trading, risk and physical operations in one system. Run it yourself, or have us install and support it.

Apache 2.0 license · Standard PostgreSQL · Yours to run

In active development: a foundation, not yet qualified for production use. See what works today.

BlotterPositions by bookScreenshot · sample data
LeanETRM blotter with exchange-listed gas, power and crude oil futures grouped by book, each showing its position in contract lots, executed price, mark, value and curve.

Power

Swaps, PPAs and fixed physical deals on hourly and sub-hourly curves.

Gas

Swaps and physical supply, from nomination to daily cash.

LNG

Cargoes with loading and discharge terms, valued before loading.

Crude

Physical barrels, from receipt and title transfer to invoice and payment.

For the front office

Every deal, priced before it is booked.

Capture futures, listed options, swaps, PPAs and physical deals in one blotter. Try a trade against the market before it becomes a position.

  • Price before booking

    Preview a swap's payments and discounting, or a future's entry price and open exposure, without creating a position.

  • A blotter built for a desk

    Filters, pivots, saved views, charts and exports, with each trade's detail docked beside the grid.

  • Curves you can trace

    Build forwards, basis and hourly shapes from the prices you choose. A diagram shows which inputs built each price.

  • Volatility in view

    Fitted smiles, rich and cheap heat maps and a 3D surface for listed options on futures.

Vol surfaces · Henry Hub gas optionsScreenshot · sample data
Volatility screen for Henry Hub natural gas options: a rich and cheap heat map by strike and expiry above a 3D surface of the fitted smiles.

Watch it work

Three short films

Booking a futures option

A listed option, from ticket to blotter.

Booking a swap

Terms, schedule and price in one pass.

The assistant fills a swap ticket

Describe the deal, review the draft, book it yourself.

For risk managers

Stress the book before the market does.

Exposures come from repricing the book under shared market scenarios, so every position is compared on the same basis.

  • Delta and gamma by contract

    A ladder shows each shocked contract's exposure, by book and by measure.

  • VaR and expected shortfall, four ways

    Parametric, historical simulation, Monte Carlo and a PCA hybrid, each with its diagnostics on screen.

  • Stress on top of stress

    Layer temporary market stresses, then measure risk around the stressed market.

  • History as it was known

    Reopen a past business date at a chosen knowledge time. Corrections add revisions and never overwrite the record.

Scenarios & Greeks · Delta by contractScreenshot · sample data
Delta report from shocking every held contract: a bar for each power forward's exposure, above a table of the factor, shock, book, measure and value.

Watch it work

Three short films

Historical VaR

Replay past market moves through today's book.

Monte Carlo VaR

Correlated shocks, full repricing, visible convergence.

P&L explain

Why a book made or lost money between two dates.

For physical desks

From the deal ticket to the delivery point.

Schedulers and operators work the same trades the desk booked, with quantities kept for every delivery day.

  • Gas

    Nominations, acknowledgments, scheduled quantities and imbalances, through to daily cash determinations.

  • Crude

    Receipts, title transfer, inventory lots and dispatch, through to invoices and payments.

  • LNG

    Cargoes with separate loading and discharge terms, Incoterms and energy conversion, valued before loading.

  • Power

    Fixed physical deals priced on hourly curves, with shaped around-the-clock quantities.

Physical operations · Gas deliveryScreenshot · sample data
Delivery workspace for a physical gas trade: one row per delivery day with contract, nominated, confirmed, scheduled and allocated quantities.

Watch it work

Three short films

Physical gas operations

Nominate, schedule and reconcile a gas day.

A gas trade in term

Follow a deal that is already delivering.

The assistant runs gas operations

Paste a scheduled-quantity report. Approve each step.

AI built in

AI does the legwork. You make the call.

An AI agent is a user in its own right here, with its own identity, only the access you grant it and the same operations the screens use.

  • Ask the page

    Ask about what is on screen. Each answer is pinned to the market date and knowledge time you are looking at.

  • Drafts, not actions

    The assistant fills tickets, sets up risk runs and prepares curve changes. Nothing is saved until you approve it.

  • Your choice of model

    Bring your own keys for Anthropic, OpenAI, Google, xAI or Meta models. Usage and cost are recorded for each one.

  • No side doors

    The assistant works through a closed list of the application's own operations. It has no SQL, no arbitrary web requests and no code execution.

Assistant · BlotterScreenshot · sample data
Assistant conversation on the blotter: asked which positions carry the most value, the assistant first asks whether present value or execution P&L is meant, then lists the top three by present value at the 16:00 New York close of 21 December 2020, with the tokens and cost of each answer.

Security and audit

Locked down by role. Auditable by design.

Controls sit in the database itself, not only in the screens, and every result can be traced to the inputs that produced it.

  • Roles enforced in the database

    PostgreSQL row-level security applies each person's roles to every read and write, whichever screen or agent asks.

  • Separate duties

    Editing market data and approving it are separate roles. Managing access is separate from trading.

  • People and agents apart

    People, services and AI agents sign in as distinct identities. An agent acts only under a grant a person gave it.

  • An audit trail for access

    Role changes, agent grants and revocations are written to an append-only audit.

  • Nothing overwritten

    Trades, prices and curves change by new revision. A correction never replaces the record it corrects.

  • Results that show their inputs

    Each valuation keeps the prices, units and model versions behind it, so a number can be explained later.

Installation and support

Run it yourself. Or bring us in.

The software is free under Apache 2.0. Paid installation and support come from Trusty Genius, the team that builds it.

Free · Apache 2.0

Run it yourself

  • The complete source, with no license fee
  • A disposable local preview on synthetic data
  • Your own infrastructure and schedule
View the source

Still being built. Futures variation margin, LNG cargo settlement, gas invoicing, VaR backtesting and single sign-on are in progress, and the project is not yet qualified for production use. The repository lists what works today.

See it run. Then read the code.

Ask for a walkthrough, or open the repository and start a preview on synthetic data.

For a walkthrough, write to joe@trustygenius.com

The hosted pilot is by invitation. Sign in with your invited account.