Learn how a commodity trading system works, from trade capture to settlement – and how to build one.
MiniCTRM captures, prices, values and settles trades in physical and financial commodities, and it is built so that an AI assistant can work in it as naturally as a person can.
- Natural gas
- Power
- Crude oil
- Metals
- Agriculturals

Where to begin
Pick the route that sounds most like you. Each one is a few steps, in order. Questions? See the FAQ.
New to commodities
You want to understand how a commodity trading desk works.
- Lesson 101: Commodities basicsThe markets, the trades and the words, from the beginning.
- The glossaryLook up any word as you meet it.
- Natural Gas – Business tourSee a whole desk at work on one commodity.
- The TutorialsCarry on with the lessons in number order.
Trading, risk and operations
You work on or with a trading desk and want to see the work done here.
- The business demo for your commodityA guided tour of the desk from the trader's ticket to settlement.
- The Tutorials for your jobEach lesson is marked with the office whose work it teaches.
- The User guideEvery screen and process, with a search of its own.
Developers and IT
You want to see how a trading system is put together, and script it.
- Natural Gas – Technical tourHow the system is built, from the screens to the database.
- The Scripting API referenceEvery object and method, in Java and Python, with examples.
- The data modelEvery table and the links between them.
Designing your own system
You plan to build a commodity trading system of your own with AI.
- Lesson 501: Meet Claude Code: install, sign in, your first conversationWhere the course starts.
- The Build TutorialsThe whole course, lesson by lesson.
- The course on one pageEvery lesson and prompt, with Copy buttons.
Commodities and trade types
25 trade types, each with its own ticket, across five commodity groups and the financial instruments that hedge them.
Natural gas
Pipeline gas and LNG cargoes, with storage, transportation and park-and-loan contracts, scheduled from nominations to actuals.
- Physical NatGas
- Physical LNG
- Storage
- Transportation
- Park and Loan
Power
Physical and financial electricity at hubs such as PJM West and ERCOT North: peak, off-peak, around-the-clock and hourly shapes.
- Physical Power
- Financial Power
Crude oil and refined products
Physical crude and refined products moved by pipeline or vessel, alongside WTI and Brent futures, swaps and options.
- Physical Crude
Agriculturals
Softs and grains such as cocoa, coffee, sugar, cotton, corn and soybeans, including basis contracts against the futures.
- Physical Agriculturals
Across commodities
Financial trades on any commodity curve, OTC or exchange-traded.
- Swap
- Basis Swap
- Multi-Leg Swap
- Future
- Option
- Multi-Leg Option
- Exchange-Traded Option
Rates, FX and cash
The money side of trading.
- Interest Rate Swap
- FX
- Loan
- Cash

A deal ticket from the sample data: the trade's terms on one screen, with help on every field.
AI-enabled from the ground up
Everything the screens can do, from creating and amending trades to reference data, market data, reports and valuations, is exposed through one documented Scripting API in Java and Python. That single foundation is what makes MiniCTRM natively AI-compatible: an assistant works through the same door as a person at a screen, so every change it makes passes the same validation, regenerates the same cash flows and runs the same business rules. Nothing is bolted on, and nothing goes around the rules.
An MCP server for AI assistants
Connect Claude Desktop, Claude Code or any other client that speaks the Model Context Protocol, and ask in plain English. The assistant finds trades, reads positions, forward curves and valuations, creates swaps, futures and physical gas trades, amends or cancels deals and adds counterparties. Every change is rehearsed as a dry run first. When a request goes beyond the ready-made tools, the assistant reads the API reference, writes a script and runs it.
Ask Help, on a local model
An Ask button in the top bar answers how-to questions from MiniCTRM's own help topics, using a small open model that runs on your own computer through Ollama. Questions stay on the machine, cost nothing to ask, and cannot change any data. It is off until it is turned on in System Settings.
Documentation an assistant can trust
The Scripting API reference is generated from the code itself, with a runnable Java and Python example for every method, and it is checked on every build so it never drifts from the software. The assistant reads exactly the reference a developer would.

The Python script editor, open on a sample script that creates trades: the same Scripting API an AI assistant works through.
- 1You askin plain English
- 2The assistantcalls the MCP server
- 3The Scripting APIthe same door the screens use
- 4The same checksvalidation, cash flows and rules
The whole desk, front to back
Trade capture
A ticket for every trade type, with trade templates and validation on every field. Trades done on ICE arrive over FIX and are created automatically.
Market data
Forward curves with daily closes, volatilities, yield curves built from deposits, futures, bonds and swaps, FX rates and curve hierarchies.
Valuation and risk
Mark-to-market and portfolio valuation, P&L explain, positions, historical-simulation VaR, stress scenarios, risk limits and counterparty credit exposure.
Operations and settlement
Nominations and scheduling, fixings, trade confirmations, invoices, a Treasury cash ladder and an accounting sub-ledger.
Scripting and automation
Java and Python scripts over the Scripting API, hooks that run on events, scheduled jobs, and CSV import and export.
Help and training
Help on every screen, a searchable help index, step-by-step tutorials and guided demos on realistic sample data.

The risk dashboard on the sample data: limit breaches, net delta, the worst stress scenarios and VaR on one page.
Learn MiniCTRM
The user guide and technical reference, guided demos, and two courses of lessons, all as plain web pages.
Who it is for
MiniCTRM is designed for learning, training and demonstration. It suits people new to commodity trading operations who want to see how a trade moves from the trader's ticket to a settled payment; trading, risk, operations and IT staff who want a working system to practice on; developers who want to see how a trading system fits together; and system designers planning a trading system of their own.
System requirements
- Operating system
- Windows, macOS or Linux
- Java
- Java 17 or later, as a full JDK
- Browser
- A current Microsoft Edge, Google Chrome, Firefox or Safari
- Database
- SQLite, built in, for one user; or PostgreSQL for several users with sign-in
- Optional
- Python 3.9 or later for Python scripts; Ollama for Ask Help