MiniCTRM
Build Tutorials

Build your own CTRM

For a system designer: build a commodity trading system of your own, from nothing, with Claude Code. Each lesson hands you the prompts. 92 lessons, about 118 hours of reading and prompting. The lessons build on one another, so take them in number order.

The whole course on one pageEvery lesson and every prompt, each with a Copy button, in a single web page.

500s · Build your own CTRM 25 lessons

The course proper, first half: from an empty folder to a system with a deal model, screens and its data, in five stages; the 600s go on from here.

50x · Get ready

  • 501
    Meet Claude Code: install, sign in, your first conversationWhat an AI coding agent is, how to install it, and the first things to ask it. No programming needed.
    What you'll learn

    Claude Code installed and signed in, a first folder under git, and you know how to ask, stop, undo and leave.

    • What Claude Code is – An agent in your terminal that reads, writes and runs - with your permission.
    • Install and sign in – One command to install, one to start; a browser window to sign in.
    • Your first conversation – Ask Claude to introduce itself, then to make a file.
    • A history of every change – Put the folder under git, change a file, and undo the change.
    45 min
  • 502
    Working well with Claude: plan, do, verify, commit; which model, how much effortThe habits that make an AI build go well, practiced on a throwaway program before you build anything that matters.
    What you'll learn · Before you start

    A working rhythm - plan, do, verify, commit - and you know which model and effort to use, what it costs, and when to start a fresh conversation.

    • The rhythm – Plan, do, verify, commit - and what a good prompt says.
    • A throwaway program – Plan it, build it, find it wrong, fix it, with a test.
    • What Claude remembers – The context window, /clear, and notes that outlive a conversation.
    • Which model, how much effort, what it costs – Opus, Sonnet, Haiku and Fable; the effort levels; your plan's allowance.
    • Staying in control – Permission modes, stopping, undoing, and when to start over.
    • Where Claude runs – On your computer, on your computer steered from your phone, or in the cloud - and which to use when.

    Before you start

    The lessons this one builds on: 501 Meet Claude Code: install, sign in, your first conversation.

    60 min
  • 503
    Git and GitHub: branches, pull requests, merges, main and CIThe words every software team uses and this course assumes - repository, remote, branch, main, pull request, merge, conflict, CI - learned on a practice repository where nothing can go wrong.
    What you'll learn · Before you start

    A GitHub account with the GitHub CLI signed in, and a practice repository on which you have pushed, branched, opened and read a pull request, resolved a merge conflict, watched a CI check go red and green, and squash-merged into main.

    • The words – Repository, remote, branch, main, pull request, merge, conflict and CI, each in a sentence.
    • GitHub, and a practice repository – What GitHub is, the GitHub CLI signed in, and a first push.
    • A branch, a pull request and a merge – A change on a branch, read as a reviewer would, a conflict resolved, a check, and a squash merge.
    • Why the course works this way – Main always works, a person reads every change, and a check catches what a person misses.
    • How MiniCTRM did it – Every change a branch, quick CI on the machine, a pull request and a squash merge.
    60 min
  • 504
    Managing the context: the conductor, subagents and compactionIn a session of hours the context is the scarcest thing Claude has: what fills it, what you can and cannot control, and the habits that keep it small: a main session that conducts and builds nothing, subagents that do the work in contexts of their own, state on disk, and compaction on your terms.
    What you'll learn · Before you start

    A practice repository set up for long sessions - a status file a fresh session resumes from, shared names, compact instructions in CLAUDE.md and an earlier compaction setting - and one run of the conductor pattern with two workers, each in its own worktree.

    • Why the context matters – Three costs that grow with it: time and money, attention, and compaction risk.
    • What you can and cannot control – The levers, who pulls each, and a look at your own window.
    • State on disk – Every fact the work needs later written to a file, and a fresh session resuming from the files alone.
    • The conductor pattern – A main session that builds nothing, workers with contexts of their own, and short reports.
    • Compacting earlier – A smaller window for automatic compaction, and why not smaller still.
    • Smaller habits – The everyday habits that keep a context lean.
    • If you are watching – When a compaction by hand helps, and how to tell it what to keep.
    • Where the course does this – Lesson 811's run and the fresh check of lesson 525.
    60 min

51x · Choose the stack

  • 511
    Scope and pace: a one-page brief; one month or threeBefore any code: one page that says what the system is for and for whom, how fast to go, and which assumptions to test first.
    What you'll learn · Before you start

    A one-page brief in docs/brief.md that Claude reads for the whole build, a plan in three phases, a glossary of the trading words, and the five riskiest assumptions with a test for each.

    • The brief – One page Claude reads for the whole build; let it interview you.
    • One month or three – What a month buys, what three buy, and where the time really goes.
    • Words and risks – A glossary for the developer, and the five assumptions that would hurt most.
    45 min
  • 512
    Choosing the language: Java, Python or .NETWhat a language and a framework are, what decides the choice for a trading system, Claude's recommendation for your brief, and the first running code.
    What you'll learn · Before you start

    A language decision recorded with its reasons, a running back end in that language that answers /api/health with your system's name and version, one automated test, and a one-command test script.

    • What a language is, and what matters – A language and its framework in plain words; the six things that decide the choice.
    • Decide – The three side by side, then Claude's recommendation for your brief.
    • The first running code – Scaffold the back end, prove it with a test, run every test with one command.
    • Record and commit – The decision log, and a commit with nothing generated in it.
    45 min
  • 513
    Choosing the user interface: desktop or web; React, Vue, Angular, Svelte, BlazorHow your users will see the system: a program on each PC or a page in the browser, which framework draws it, and a first page served by the back end itself.
    What you'll learn · Before you start

    A decision with its reasons, a user-interface shell in your framework served by the back end from one process, a first page that shows /api/health, and a smoke test that opens it.

    • Desktop or web, and which framework – What each is in plain words, the five frameworks, and Claude's recommendation for your brief.
    • The shell – A first page that shows /api/health, one process serving page and API, and a smoke test.
    • Record the decision – The reasons, the three commands, and a commit.

    Before you start

    The lessons this one builds on: 512 Choosing the language: Java, Python or .NET.

    45 min
  • 514
    Choosing the database: SQLite first, PostgreSQL later; migrations onlyWhere your system keeps its data: one file to start with, a server when you need one, and a structure that changes only by numbered script.
    What you'll learn · Before you start

    SQLite behind the back end with a migration tool, a first migration that creates a settings table and a currency table, a repository and an endpoint that list the currencies, a test, and the path to PostgreSQL written down.

    • Tables, files and servers – What a database is, why one file first, and why its structure changes only by migration.
    • The choices, side by side – SQLite, PostgreSQL and SQL Server; the migration tool for your language; Claude's recommendation.
    • The first table, end to end – Migration 1, a repository, an endpoint and a test.
    • The path to PostgreSQL – What the move will take, written down, and the commit.

    Before you start

    The lessons this one builds on: 512 Choosing the language: Java, Python or .NET.

    45 min
  • 515
    The team: who builds it and who runs it, humans and AI teammatesMiniCTRM was built by one person and Claude. A firm's system for thirty users needs a team: how many, at what level, employed or contracted, for how long - and which teammates can be AI.
    What you'll learn · Before you start

    A staffing plan for the build and for the years after it in docs/team, a job description for every human role, and a charter for the AI teammates that says what each may do and who answers for it.

    • What an AI changes, and what it does not – Typing gets cheap; deciding, checking and the business's time do not.
    • The build team – Thirteen to fourteen people at the peak, by role, level and contract, each with a job description.
    • The timeline – Fifteen months to go-live, and the parts of it no model makes shorter.
    • AI teammates – Nine agents with jobs, owners and limits, and the one rule over all of them.
    • The run team – Five or six people after go-live, and how knowledge stays in the firm.

    Before you start

    The lessons this one builds on: 511 Scope and pace: a one-page brief; one month or three.

    60 min
  • 516
    When to start: deciding while the models keep getting betterStart now, or wait three months, or six, for a better model? Not an answer - nobody has one - but the considerations, and a framework a firm can decide with every quarter.
    What you'll learn · Before you start

    Your firm's decision papers in docs/start - the critical path split into months a model can shorten and months it cannot, two start dates compared, the start framed as a real option with stop criteria, a benchmark of your own for each new model, and a quarterly decision framework.

    • When the next model comes out – What a better model changes on the day it ships, and what it cannot touch.
    • January or April – The critical path, and two start dates for one go-live.
    • Starting as an option – A small premium, staged gates, the dividend of waiting, and a legacy upgrade quote.
    • Fear of missing out – What a competitor's news is evidence of, and what it is not.
    • A framework for deciding – A benchmark of your own, thresholds, gates, and who decides each quarter.
    60 min
  • 517
    One program or many: microservices, monoliths and the modular monolithBackground: what microservices are, why they were hyped as the way to build everything, what happened next, the lesson in a fashion that did not last, and why MiniCTRM is one program.
    What you'll learn · Before you start

    The background to building your system as one program: what microservices are, the forces that made them a fashion, why most teams moved back to the modular monolith, and a way to judge the next new idea that everyone says you must adopt.

    • What microservices are – Many small services that deploy on their own and talk over the network.
    • Why it was hyped – Real success stories, and the people and incentives that turned them into a fashion.
    • What happened next – The costs, the reversals, and the modular monolith most teams start with today.
    • Not every fashion lasts – Trying new things is normal; some last and some do not, and you find out by trying.
    • How MiniCTRM is built – One program, one database file, modules inside, and the doors between them.
    15 min

52x · Foundations

  • 521
    The repository and CLAUDE.md: rules, plans, ADRs, settings, skills and hooksThe rules file Claude reads every time, the documents that remember your decisions, and the automation that keeps every change honest.
    What you'll learn · Before you start

    A CLAUDE.md of hard rules with the desk handbook beside it, a plans folder and a decisions folder, permission rules for the commands you trust, a ship skill, and a hook that runs the tests after every change.

    • CLAUDE.md – The rules file Claude reads at the start of every conversation, and the desk handbook beside it.
    • Plans and decisions – One folder for plans, one for decisions that are expensive to reverse.
    • Permissions, skills and hooks – Stop answering the same question; a procedure by name; a rule that always runs.
    • Folder rules and your own memory – Rules for one folder, rules for you alone, and what Claude remembers by itself.
    60 min
  • 522
    Designing the deal model: how to tell Claude what you wantThe tables a trade lives in, the loop that regenerates its cashflows on every save, and how to describe both to Claude so it builds what you mean.
    What you'll learn · Before you start

    The tables a trade lives in - a deal header, its sides, the derived payment profile and a reference table for every name - created by migrations, a generator that regenerates the month-by-month cashflows on every save, unit tests on three deals, the deal-type rule as a method, and an ADR recording it all.

    • What a deal is – A deal, its sides, and the payment profile regenerated on every save; names from tables; a type's own fields in their own.
    • How to tell Claude what you want – Nouns, verbs and invariants; three example deals; what must never happen; say this, not that.
    • Plan it – The model in your words, Claude's questions, a plan, and a page a trader can read.
    • Build it – The tables by migration, the generator, three tested deals, and the deal-type rule as a method.
    • Record it and ship – An ADR for the decision, three hard rules in CLAUDE.md, and /ship.
    • How MiniCTRM did it – The Data Model diagram, and the loop running live on a swap ticket.
    75 min
  • 523
    The first vertical slice: one swap from ticket to blotterOne thin path through every layer - ticket, preview, save, blotter - for one swap, with a browser test that walks the whole journey.
    What you'll learn · Before you start

    A fixed-for-floating swap entered on a ticket, previewed live, saved in one transaction with its payment profile regenerated, and listed in a blotter, with an end-to-end test that does the whole journey.

    • The path a trade takes – Ticket, preview, save, blotter - and the two rules to carry from here.
    • The back end: preview and save – An endpoint that never writes, and one door that books, amends, copies and deletes, each at once.
    • The ticket – The entry screen, its live preview, Save, and the blotter that lists the result.
    • The journey, as a test – One browser test that does what a trader does, and a look by eye.
    • Write it down and ship – CLAUDE.md learns the shape of a feature; then /ship.
    90 min
  • 524
    Commodities are local: why a commodity system does not travel, and how to make yoursA system for stocks or interest rates works around the world; one for US natural gas has rarely worked in Europe. Why, and how to build yours so a new market is data.
    What you'll learn · Before you start

    A list of every market convention your system assumed, the market as a row of data that every deal names, delivery intervals in the market's own time with daylight saving, and a second market added without changing the code.

    • Why commodities are local – What a stock or a swap rate has in common everywhere, and what a megawatt-hour does not.
    • Two kinds of difference – By region, and by commodity, each with its examples.
    • Making yours travel – Find the assumptions, make the market data, count the intervals, add a second market.
    • How MiniCTRM did it – Power price bands and holiday schedules as reference data, and where it stays American.
    60 min
  • 525
    The mental model: one page that holds the whole systemWrite down the map of your system - its one sentence, its nouns, its layers and the path of one trade - check it against the code, and keep it true.
    What you'll learn · Before you start

    A one-page map of your system in docs/mental-model.md, checked claim by claim against the code, with CLAUDE.md pointing at it and a rule that keeps it true.

    • What goes on the map – The eight parts of a mental model, and MiniCTRM's own answers.
    • Draw it and check it – Claude writes the map from the code, then a fresh conversation checks every line.
    • Keep it true – CLAUDE.md points at the map, a rule keeps it current, then /ship.
    45 min

53x · Front end

  • 531
    Front end: the LauncherA home screen of tiles, grouped by what the person is doing, driven by one catalog of screens that also drives the menus and the routes.
    What you'll learn · Before you start

    A home screen of tiles grouped by section, driven by one catalog of screens - its entry's shape fixed before any later screen exists - that also drives the top-bar menus and the routes, with one-sentence descriptions, a search box, favorites, a Help menu right of Reports, the last of the menus, with a help page that has a section per screen and an About box, two layouts - Comfortable for the office's monitors and Compact for a laptop - a Color Scheme menu that redraws the whole screen at once, and a test that every catalog entry has a route and a help section.

    • One catalog, three readers – Every screen listed once; the tiles, the menus and the routes read the list.
    • The tiles, the top bar, Help and search – The home screen at the root address, a bar on every screen with a Help menu right of Reports, and a search box that narrows the tiles.
    • Favorites – A star on every tile, remembered in this browser.
    • Two layouts: the office and the laptop – Comfortable for full-size monitors, Compact for a laptop screen, a switch in the top bar, kept per screen size.
    • A color scheme for every taste – A Color Scheme menu beside the layout switch that redraws the whole screen at once, remembered per browser.
    • Ship it – /ship, with the catalog test among the rest.

    Before you start

    The lessons this one builds on: 523 The first vertical slice: one swap from ticket to blotter.

    70 min
  • 532
    Front end: the Deal BlotterThe list a desk lives in all day: a real grid, open, copy and delete, a right-click menu of the system's own, and a list that refreshes itself.
    What you'll learn · Before you start

    A blotter on a real grid with sort, filters and a column chooser, open, copy and delete with a confirmation, a right-click menu of the system's own, a status column with colors, and a list that refreshes itself after a save anywhere.

    • A grid, not a table – What a grid library gives, the one-wrapper rule, and the behaviors a desk expects.
    • Open, copy, delete – Double-click opens, Copy pre-fills a ticket, Delete is a status with a confirmation.
    • Right-click is ours – One provider, every grid registers its entries, the browser's menu never shows.
    • It refreshes itself – The server cache and its keys, status colors, a count, and plain words on an empty screen.
    • Ship it – /ship, with the browser test of open, copy and delete among the rest.
    60 min
  • 533
    Front end: the Deal Input ScreensHelp on every field, plain-words messages, amend with a version, a confirmed leave, templates and layouts - every rule with a test, before the second trade type exists.
    What you'll learn · Before you start

    A swap ticket a trader can live in - a help button on every field, plain-words messages, amend with a version, a confirmed leave when there are unsaved changes, templates that pre-fill it and a layout the firm and each person can arrange - every rule with a test, and the shape ready for the next trade type.

    • Every field is one thing – One description per field, read by the ticket, the help button, the messages and later the layouts.
    • The preview always runs – A missing value takes a default on the server and the ticket says so; a broken structure is refused.
    • Amend, and a version – A saved deal is amended, never re-entered; a version number stops two people overwriting each other blind.
    • Leaving, copying and templates – The unsaved-changes guard, a draft that survives a closed tab, Copy checked, and templates that pre-fill the ticket.
    • A layout the firm can arrange – A named arrangement of the fields for the firm and for each person, kept as data and read only by the screen.
    • Ready for the next trade type – A ticket built from descriptors and a layout, one browser journey through it all, and the ship.
    • How MiniCTRM did it – The swap ticket's field help, templates and defaults, and the Ticket Layouts screen.
    90 min
  • 534
    Front end: designing screens with pictures and mock-upsShow Claude the screen you want - an Excel mock-up, a sketch, a screenshot - have it read the picture back, build it, and compare its screenshot with yours until they match.
    What you'll learn · Before you start

    A swap ticket built from your own Excel mock-up and checked against it screenshot by screenshot, a front-office design guide in docs/design, and a way to have Claude draw mock-ups for you to choose from before anything is built.

    • Show, don't only tell – What a picture says well and what it cannot say, how Claude reads one, and the ways to make one.
    • A mock-up in Excel – The ticket drawn in cells, a field list beside it, and both saved where Claude can read them.
    • From picture to screen – Read it back, build it as descriptors and a layout, then compare screenshots until they match.
    • Rules for the front office – What every screen a trader uses keeps, written once as a design guide with a checklist.
    • Claude draws, you choose – Three mock-ups of the next ticket from Claude, one marked up by you, and the ship.
    • How MiniCTRM did it – The swap ticket in both layouts, and the Compact layout chosen from prototypes on screenshots.

    Before you start

    The lessons this one builds on: 531 Front end: the Launcher, 533 Front end: the Deal Input Screens.

    60 min

54x · Data

  • 541
    Reference data and the interactive Data ModelOne generic screen for every pick-list, the rule that every string a user picks is a row, and a diagram of the whole database that draws itself from the schema.
    What you'll learn · Before you start

    One generic reference-data screen that gives every pick-list table a grid, a form, CSV in and out and a Launcher tile from a descriptor, the rule that every string a user picks is a reference row written into the system and kept by a test, and an interactive diagram of the whole database read from its own schema and laid out with dagre.

    • One screen for every list – A descriptor per table, one generic screen, CSV in and out, and every string a row.
    • A picture of the database – The schema read from the database itself, grouped by domain and laid out by dagre.
    • Ship it – Every test, a build, a commit.
    • How MiniCTRM did it – The Data Model screen, and the one grid behind every reference tile.

    Before you start

    The lessons this one builds on: 531 Front end: the Launcher, 532 Front end: the Deal Blotter.

    60 min
  • 542
    Market data: forward curves, FX, settlement prices and closesThe prices your book is valued against - curves as a strip per index, FX against a base currency, what the market printed each day, and the whole market closed for a date - all through one service.
    What you'll learn · Before you start

    Forward curves kept as a strip per price index, FX rates, settlement prices by day, a one-step close of the whole market for a business date with its history, CSV import for each, one curve service that everything reads, a curve hierarchy where a curve can be a spread off a parent, and a Curves list and hierarchy screen that work with hundreds of curves.

    • Curves, rates, settles and closes – The four kinds of market data, where each comes from, and the one door they all pass through.
    • The current market – The curve strip made real, FX rates, and settlement prices that fix a floating side by its index's pricing method.
    • Loading and closing the market – One CSV pipeline for every market table, and a one-step close of the whole market.
    • A curve hierarchy, then ship – A curve as a spread off its parent, resolved through the service; the screens made for hundreds of curves; then /ship.
    • How MiniCTRM did it – The Prices screen and Market History, live, and the one-door services behind them.
    75 min
  • 543
    The seed database: what a new firm starts withWhy a new production database can never be blank, what belongs in the rows every installation starts with - and why a trade never does.
    What you'll learn · Before you start

    A seed audited row by row into five kinds, two seeds chosen when a database is created - a minimal one a new firm's production system starts from and a standard one with a few sample deals for testing - with the system's own lists locked, a start-up check of the rows the system cannot run without, and a test that keeps sample data out of every minimal database.

    • What goes in, and what never does – Five kinds of row, and the three starting points a system keeps.
    • Build the seeds – An audit, two seeds chosen at creation, the system rows locked, and sample deals for testing only.
    • Ship it – Every test, a build, a commit.
    • How MiniCTRM did it – New database's two seeds, the sample books on top, and the lists every firm shares.
    45 min
  • 544
    Pipeline, Zone and Location: where physical gas changes handsA physical trade is delivered somewhere: the strict three-level address a gas desk uses for every meter, the pools and interconnects a scheduler needs, a price at every location, and one picker every screen shares.
    What you'll learn · Before you start

    Pipeline, Zone and Location as a strict hierarchy on the generic reference screen, with location types, interconnects, CSV in and out, demo pipelines on the standard seed only, a projection index that prices every location through the curve service, and one cascading picker that stores a location's id.

    • The words – Pipeline, zone, location, meter, pool, interconnect, and the price at a location.
    • Build the hierarchy – Three tables and the location types, interconnects and CSV, a price at every location, and one picker.
    • Ship it – Every test, a build, a commit.
    • How MiniCTRM did it – Commodity Delivery PZL: three editors, the interconnects, and the pickers on the ticket.
    60 min
  • 545
    The second trade type: physical natural gasThe gas itself, bought or sold at a location: a second deal type on the same model and the same profile loop as the swap, with a physical side and a financial side, three deals pinned to the cent, its own ticket, and the gas position by location.
    What you'll learn · Before you start

    A physical natural gas deal type - a physical side at a location and a financial side fixed or index plus spread - on the swap's deal model and profile loop, pinned by three worked deals, booked on its own ticket from descriptors, with a Physical Position by pipeline, zone and location, and present in the sample book and the mental model.

    • A physical deal, side by side with a swap – Two sides, the opposite directions, gas days, a location's price, and what the rows mean.
    • The model and the numbers – A plan in plan mode, the tables and the generator, and three deals pinned to the cent.
    • The ticket and the Physical Position – A ticket from descriptors, and where the gas is by pipeline, zone and location.
    • The book and the map – Sample physical deals, every screen showing both types, and the mental model brought up to date.
    • Ship it – Every test, a build, a commit.
    • How MiniCTRM did it – New Physical NatGas: the two sides, the cascading location, and the Physical NatGas Position.
    90 min

600s · Build your own CTRM: the desk to production 36 lessons

The course proper, second half: valuation, risk, the back office and the night, hardening, shipping and teaching, then more trade types on the same shapes and the help assistant on a local model, in eight stages.

60x · Valuation and risk

  • 601
    Valuation and reports: mark-to-market, valuation runs, position, day-over-day changeWhat the book is worth today, a valuation you can come back to tomorrow, how much of each index you hold, and why the number moved - all read from the profile rows and the market you built.
    What you'll learn · Before you start

    A valuation service that marks every active deal to market in the base currency, discounted to today, through the curve service alone; valuation runs stored under a definition, with a rerun that supersedes and never overwrites; a Portfolio Valuation screen with subtotals and a Run now button; a position report of net volume by index and month; a day-over-day change report whose buckets add up to the headline by construction; and a market-completeness check that lists what is missing and never refuses to run.

    • What the book is worth – Mark-to-market, present value and discounting from zero, and a valuation service that reads only through the curve service.
    • A valuation you can come back to – Why a valuation is stored, a rerun that supersedes, one store, two definitions, and the Portfolio Valuation screen.
    • Position: volume, not value – Net volume by index and month, long and short, and why a fixed side has no position.
    • Why did it move? – The day-over-day change in five buckets that add up by construction, and a completeness check before every run.
    • Ship it – /ship, with the valuation tests among the rest.
    • How MiniCTRM did it – Portfolio Valuation, Valuation Runs, Valuation Change and Position, live, and the one door behind them.
    75 min
  • 602
    Market risk: sensitivities, historical-simulation VaR, stress tests and limitsWhich way the book moves when the market does, and how much it could lose: delta by index and month, VaR replayed from your own closes, stress scenarios a firm edits, limits checked on every run, and one morning page.
    What you'll learn · Before you start

    Delta by index and month found by bumping each curve month through the valuation engine, historical-simulation VaR from the stored closes with the worst days and each deal's contribution, stress scenarios kept as data and run on the book, risk limits checked on every run with every breach recorded, and a risk dashboard that links to each report.

    • Four questions, four measures – Sensitivities, VaR, stress tests and limits - what each answers, and the two rules every risk number obeys.
    • Delta, and a run that is kept – Position by index and month, the delta of every curve month through the engine, and a risk run as a job with a history.
    • Value at Risk from your own closes – What VaR is in plain words, why historical simulation, and the run that replays the last 250 days.
    • Stress tests – A scenario as data a firm edits, run on the whole book, the loss per scenario and per deal.
    • Limits and the dashboard – A limit is a number a firm sets on a measure; every run checks every limit; one morning page reads them all.
    • Ship it – /ship, with the risk tests among the rest.
    • How MiniCTRM did it – Sensitivities, Value at Risk, Stress Tests, Risk Limits and the Risk Dashboard, live.
    75 min
  • 603
    Credit: counterparty exposure against limitsWhat each counterparty would owe you if it failed today, measured from the mark-to-market against the credit team's limits - and never changing the value.
    What you'll learn · Before you start

    Exposure per counterparty from the latest closing valuation run - the positive deal values added up, split into cash already earned and value still to come - computed live on request; credit lines as reference data, overall and per trade type, in the base currency with dates; groups for counterparties that are one legal entity; utilization, warnings and breaches on a Credit Exposure screen that never stops a trade; ratings as a label; and a test that credit never changes a deal's value.

    • What exposure is – What a counterparty owes you, from the mark-to-market: positive values only, cash earned and value to come, computed live on request.
    • Credit lines and groups – A limit per counterparty and per trade type as reference data, and a group for counterparties that are one legal entity.
    • Utilization, warnings and breaches – How much of a line is used, a warning before the limit, a breach above it, on one screen - and the proof that credit never changes a value.
    • Ship it – /ship, with the two credit proofs among the tests.
    • How MiniCTRM did it – Credit Exposure live from the engine, credit line sets, groups, ratings, and the test that guards the rule.
    45 min

61x · Scripting and the back office

  • 611
    Scripting: an editor, a public API with a glossary, hooks on saveA public API your power users write against, an editor that runs their scripts inside the system, a glossary generated from the code, and hooks that let the firm write its own rules - warn or refuse - on every save.
    What you'll learn · Before you start

    A scripting API kept as a public contract, with one write through DealWriteService; a runner and a Script Editor; a glossary generated from the code with a test that keeps it complete; and activity hooks - on a save, on a valuation run and on a field - that warn, refuse or fill a field in the firm's own words, so a business rule is a script the firm switches on, never a limit in the code.

    • A public API as a contract – The fixed set of methods a script may call, the promise that keeps them, and the one write through the one door.
    • Running a script – Compiled or loaded at run time, run apart from the web requests with a time limit and a log; then the editor.
    • A glossary that cannot go stale – Every method's prototype, meaning and whole-script example, generated from the code and kept complete by a test.
    • Hooks: the firm's rules, as scripts – A script that runs at a moment inside the one door, warns or refuses in the firm's words; then the desk's first two rules.
    • A hook on a field, then ship – The piece lesson 533 left open: a rule that runs as a trader leaves a field, and again on every save; then /ship.
    • How MiniCTRM did it – The API Glossary and the Script Editor, and the Activity Hooks screen, live.
    75 min
  • 612
    Operations: confirms, invoices and operational eventsWhat happens to a deal after it is booked: a confirm with a lifecycle, a status change with a reason, an invoice that locks what it bills, fees that ride along, and events in tables of their own.
    What you'll learn · Before you start

    A confirm per deal with a lifecycle and a PDF from a template the firm edits, a status change with a reason in an append-only activity table, an invoice per counterparty per month whose issued lines lock the payments they printed, fees in rows of their own rounded to their currency, and a manual fixing as the first operational event in a table of its own.

    • Terms, paper, cash and facts – Everything that happens to a deal after it is booked, sorted into four kinds with a rule each.
    • Confirms, and a status with a reason – A confirm per deal with a lifecycle in its own table, and a status change that records who, when and why.
    • Invoices that lock – An invoice per counterparty per month, its lines copied, and a lock on everything it bills.
    • Fees ride along – A premium, a commission or a charge is a fee in rows of its own, rounded to its currency, never a profile row.
    • Something happens to a deal – An operational event in a small table of its own, through its own service and screen, never an amend.
    • Ship it – /ship, with the lock tests and the event tests among the rest.
    • How MiniCTRM did it – Invoicing and Trade Confirms under Operations, and the operational events behind NatGas Allocation.
    60 min
  • 613
    Treasury and accounting: the cash ladder, postings and month-endEvery cash flow still to pay or receive by currency and date, what netting saves, a chart of accounts and posting rules, a daily run of balanced entries read from the stored valuation, a month that closes and never changes, and the file the finance system loads.
    What you'll learn · Before you start

    A cash ladder by currency and by day, week or month with known and projected cash, a netting report per counterparty and day, ledger accounts and posting rules as reference data, a daily posting run writing balanced journal entries through one store with a trial balance, month-end close with a frozen pack and periods that refuse a late posting, and a GL export in two layouts.

    • Treasury: the cash ladder and netting – Every cash flow still to pay or receive, by currency and date, counted in full; and what settling net with a counterparty would save.
    • The ledger: accounts, debits, credits and rules – What a general ledger is, why every entry balances, and the posting rules that turn a trade's events into entries.
    • The posting run and the trial balance – A daily run reads the stored valuation and the day's events, writes balanced entries through one store, and the trial balance proves it.
    • Month-end, the GL export, then ship – A frozen pack, periods that close and refuse a late posting, the file the finance system loads; then /ship.
    • How MiniCTRM did it – The Cash Ladder and Counterparty Netting under Treasury, and the Accounting section's screens.

    Before you start

    The lessons this one builds on: 612 Operations: confirms, invoices and operational events.

    75 min

62x · The night and the outside world

  • 621
    End of day: close the market, run the valuation, automate the nightThe night a desk runs every evening - close, value, risk, credit, postings, reports - as one button, then as no button at all: jobs, job sets, a schedule, a history with live logs.
    What you'll learn · Before you start

    An End of Day screen that runs the night by hand with a tick per step, every step a job through one runner with its run and its log, job sets as data the firm edits with stop or carry on per step, a schedule on business days with a holiday calendar and a scheduler that handles a missed window, a run history with live logs and Retry from this step, and a System Date that rolls to the next business day only after a good night.

    • The night, by hand – The fixed order of an end of day and why it is the design; a screen that runs it step by step with a tick per step.
    • Jobs and job sets – A job and a run of a job through one runner; a job set as an ordered list of steps, each stopping the set or carrying on.
    • No button at all – A schedule on business days, a holiday calendar, and a scheduler that answers the four ways a night goes wrong.
    • The morning after, then ship – Run history, live logs, Retry from this step, the System Date rolling after a good night; then /ship.
    • How MiniCTRM did it – Job Automation's three tabs, and the System Date on System Settings.
    60 min
  • 622
    Running jobs in parallel: the end of day in ten minutes, not twentyA job set as a graph of steps that say what they wait for, a worker pool sized to the machine, and a night that takes as long as its longest path rather than the sum of its parts.
    What you'll learn · Before you start

    A job set as a graph of steps with dependencies, a worker pool sized to the machine with a scheduler that starts every ready step, two ten-minute reports done in ten with a wall-clock test to prove it, a log per step, one retry-safe door for every background write with the SQLite-against-PostgreSQL rule written down, every step safe to run twice with Retry from this step and Cancel, and the End of Day set rewired.

    • A job set as a graph – Each step names what it waits for; the steps that wait for the same thing can run together.
    • A worker pool, and the proof – Cores, threads and a scheduler that starts every ready step; then two ten-second reports done in ten, on the clock.
    • The database's rules – Many readers and one writer on SQLite, one retry-safe door for every background write, and when PostgreSQL is the answer.
    • Safe to run twice – Idempotent steps, Retry from this step, and Cancel between steps.
    • The end of day rewired, then ship – The End of Day set's dependencies declared, the saving on the History screen, a rule in CLAUDE.md, and /ship.
    • How MiniCTRM did it – Groups in order and no graph, on purpose, and the two pieces your parallel runner grew from.

    Before you start

    The lessons this one builds on: 621 End of day: close the market, run the valuation, automate the night.

    60 min
  • 623
    Integrations: CSV in and out, feed adapters and the APIEvery point where another system's data arrives or leaves - by file, by call or by feed - built once, checked before anything is written, through the same one door as a screen, with every rejection named.
    What you'll learn · Before you start

    A deal CSV import and export with a Check first and a rejections report by line, a market-data adapter behind one interface with a file-based and a test implementation picked by a setting, a trade inbox where an arrival lands as received and is booked through the one door, outbound files written by a job and never overwritten, and the API documented from the code under a versioned path.

    • What an integration is – File, call and feed: the three ways another system's data arrives or leaves.
    • Data coming in – The three rules that keep an integration safe; deals by CSV, a market-data adapter behind one interface, and a trade inbox through the one door.
    • Data going out, and the API – How a file is handed to another system safely; files written on a schedule and never overwritten; the API documented from the code, with a version.
    • Ship it – Every test, a build, a commit.
    • How MiniCTRM did it – Import from CSV and the one door behind it; the API's description, and the two things MiniCTRM has not built.
    60 min
  • 624
    An ICE trade feed: a look-alike exchange, a FIX session and a Message HospitalTrades done on ICE arrive in your blotter by themselves, over real FIX, from a simulator of the exchange you build first - mapped to your own counterparties, books and templates, booked once through the one door, and every one that cannot book waiting in a hospital with its reason and its fix.
    What you'll learn · Before you start

    An ICE Mappings screen, an ICE Simulator speaking FIX 4.4, a FIX session that lands every message in an inbox, booking through the one door once per ICE trade with corrections, busts and a Message Hospital, an ICE Trade Feed screen that shows what ICE sent beside what it booked, and a five-minute demonstration.

    • ICE, FIX and a look-alike – What the exchange and the protocol are, the two layers of a FIX conversation, and why you build a stand-in with the dialect assumed in one place.
    • What you need first – The lessons this one stands on, and what it adds to each.
    • The mappings come first – Four maps and a deal reference, a product that books through a trade template, and a screen to keep them.
    • The exchange and the wire – The ICE Simulator as a separate program, then the session that connects to it and lands every message raw.
    • Booking, once, through the door – New, correction, bust and duplicate; the Message Hospital; the monitor screen a demonstration lives on.
    • Show it – A scripted morning and a walk-through that someone else can give.
    • Ship it – /ship, with the feed's tests among the rest.
    • How MiniCTRM did it – The ICE Trade Feed and its Message Hospital, ICE Mappings, and the ICE Simulator.
    90 min

63x · Hardening

  • 631
    Performance: compress market data, keep a save fastThe two slownesses a firm notices - a save that takes two seconds and a close that takes an hour - measured first, then a query budget, closes compressed behind their one store, indexes from real query plans, and screens that load when they are opened.
    What you'll learn · Before you start

    A timing log with a Timings screen and a written baseline; a query budget test on the save, the preview and the blotter page; closes and valuation runs stored compressed - closes about twenty times smaller, runs some fifty - read through their one stores with extract tables for SQL that application code never reads; indexes added from real query plans, each with a test; and a front end split by screen with big grids fetched a page at a time - every number measured before and after.

    • Measure first – A timing log with a query count on every operation, a Timings screen, and a baseline written down before anything changes.
    • A query budget – The N+1 problem from zero, and a test that holds the save, the preview and the blotter page to a fixed number of queries.
    • Compressed closes and runs – A packed strip - closes about twenty times smaller, runs some fifty - read through the one store, with extract tables for SQL that application code never reads.
    • Indexes from real queries – What an index is and what it costs, the query plan, and indexes added only where measuring says so.
    • Screens that load lazily – A bundle split by screen, the Launcher's first paint, and big grids fetched a page at a time.
    • Ship it – /ship, with the budgets, the round trips and the query plans among the tests.
    • How MiniCTRM did it – Close Storage and Database Size, live, and the one-door rule that made compression a change to one class.
    60 min
  • 632
    Robustness: transactions, one door per write, validation, retries, the activity logWhat your system does when something goes wrong - a crash mid-save, two people at once, a bad file, a busy database - made the standing shape of every write, with a test per failure.
    What you'll learn · Before you start

    Every write in one transaction through the one door for its kind, with a test that walks the code; one rebuild for the derived tables; validation in plain words with a Reference for the unexpected; every create safe to call twice and every background write through the retry door; a system activity log kept apart from the deal's history; and one Robustness suite with a test per way things go wrong.

    • What goes wrong, and the rule for each – The kinds of failure a trading system meets, one rule each, and an audit of every write with a test that keeps one door per kind.
    • All or nothing, in plain words – Every write one transaction with the rollback proof generalized, one rebuild for the derived tables, and every message a trader can act on.
    • Safe to call twice – Idempotence from zero: a retried save that must not book two deals, an idempotency key, and the retry door used everywhere.
    • A system activity log – System-wide actions nothing else records, written through one service, never a trade; a screen with a switch per kind.
    • Every failure tested, then ship – One suite named for it with a test per failure kind, the rules into CLAUDE.md as hard rules, and /ship.
    • How MiniCTRM did it – System Logging and Troubleshooting, live, and the one-door list behind them.
    60 min
  • 633
    Security: sign-in, privileges on every endpoint, audit, secretsWho are you and what may you do, answered by the system rather than by trust: accounts and sessions, a privilege on every endpoint with a test that none is missing, privilege sets, an audit trail nobody can edit, and secrets kept out of the repository.
    What you'll learn · Before you start

    Local accounts with a password hash and a session with a timeout, the signed-in user stamped wherever a setting used to be; a privilege catalog and privilege sets; a privilege declared on every endpoint, enforced by one filter, with a test that fails the build when one declares nothing; a Security screen; an append-only audit trail of sign-ins, rights and settings; secrets outside the repository with a scan that fails on a key, and a monthly dependency routine.

    • Who are you – Authentication against authorization, a password hash, a session, the choice of local accounts or single sign-on, and the sign-in itself.
    • What may you do – A privilege as a named right in an enumeration, privilege sets as reference data, and a privilege declared on every endpoint with a test that none is missing.
    • Who changed what – An audit trail nobody can edit, written in the change's transaction, and the Security screen an administrator works on.
    • Secrets and libraries, then ship – What a secret is and why it never goes in git, a scan that fails on a key, a monthly routine for the libraries, then /ship.
    • How MiniCTRM did it – The Security screen and the test behind it, and the single-user decision MiniCTRM made on purpose for its default database.
    60 min
  • 634
    Reliability: backups, the restore drill, health checks, logs, upgradesThe promise that the system is there tomorrow with yesterday's data - a health endpoint, a log you can follow, a nightly backup and the weekly drill that proves it, an upgrade that cannot lose the book, and checks that only read.
    What you'll learn · Before you start

    A health endpoint that answers in one call with a status page under Tools, structured logs with a request id on every line, a nightly backup job whose age shows on the Launcher, a weekly restore drill that restores last night's backup into a fresh copy and proves it, a release procedure that backs up first and upgrades by migration with a pre-release test on real data and a training copy, failed nights counted where a person looks, and a Troubleshooting screen of read-only self-checks.

    • Seven promises, and the health check – The seven things a firm means by trust, how each is kept, and a health endpoint that answers in one call.
    • A log you can follow – What a log is, a level, a request id, retention; every line the same shape, a file per day, the errors in a table.
    • Backups, and the drill that proves them – A consistent copy while the system runs, kept N days; a weekly restore into a fresh copy, because a backup nobody has restored is a hope.
    • Upgrade by migration, with a backup first – The release day as a script and a checklist, the migrations tested on last night's backup, and a copy for training.
    • Failed nights and checks that only read, then ship – A count of unacknowledged failures where a person looks, a Troubleshooting screen of read-only self-checks; then /ship.
    • How MiniCTRM did it – Database Maintenance and Troubleshooting, and the seven promises read across the two systems.

    Before you start

    The lessons this one builds on: 621 End of day: close the market, run the valuation, automate the night.

    60 min

64x · Scale and the database

  • 641
    Ten users or a thousand: what changesWhat changes between ten users, a hundred and a thousand - the database, the sessions, the locking, the deployment, the watching - and what does not, measured before and after.
    What you'll learn · Before you start

    A load test of the save path with its numbers kept as a baseline, sessions a second server can read and a version on every editable record with a who-else-has-this-open indicator, PostgreSQL behind the same repositories with the migrations and the tests running on both databases and the numbers measured again, a deployment recipe in three shapes with the scheduler on one instance, six numbers an operator watches with a warning line each, and a capacity plan for ten, a hundred and a thousand users beside the baseline.

    • Count first – The honest numbers from ten users to a thousand, and a load test so that every later number has a before.
    • Sessions and record locking – Sessions a second server can read, a version on every editable record, and who else has this open.
    • PostgreSQL behind the same repositories – A server database, a connection and a pool from zero; the migrations and the tests on both; the numbers measured again.
    • Deployment: one server, then more – One machine behind a reverse proxy with HTTPS, the database on its own, two instances with the scheduler on one.
    • What to watch – Requests a second, the slowest endpoint, saves a minute, connections in use, the night's duration and signed-in sessions, with a line for each.
    • The capacity plan, then ship – What machine, what database and how many instances at each size, with the numbers that were measured; a rule in CLAUDE.md; /ship.
    • How MiniCTRM did it – One user, one SQLite file, one JAR by default, a PostgreSQL server from the same JAR, and what its help says about many users.
    60 min
  • 642
    What a relational database does: tables, keys, constraints, triggers and where business rules belongEverything a database holds besides tables and columns - keys, constraints, cascades, indexes, triggers, defaults - read from your own schema; one written rule for where a business limit lives; every limit in the service that every write passes through; and a check that your system could move to a second database.
    What you'll learn · Before you start

    An inventory of every part of your database beyond tables and columns, the rule for where a business rule lives written down and held by a test, every business limit enforced in the service that every write path goes through, the database kept to structure, and a portability check against a second database.

    • What a schema collects – Business rules nobody designed, where they come from, and the rule MiniCTRM keeps.
    • What you need first – The three lessons this one builds on, and where in a build to take it.
    • A database is more than tables and columns – Every part of a database, what it is, and whether it is plumbing or business; and SQLite's loose types.
    • Where a rule belongs – The visibility test, what goes where, and the hard parts.
    • An inventory of your database – Every part of your schema listed from the live database, with counts, kept current by a test.
    • The rule, written and tested – An ADR, four lines in CLAUDE.md, and a test that catches a new CHECK rule or trigger.
    • Every limit in the service – One check per limit where every write path passes, the same message on each.
    • A portability check – The tests on a second database in the comprehensive tier, dialect SQL behind one adapter, quiet differences pinned.
    • Ship it – /ship, with the inventory, the schema test and the write-path test among the rest.
    • How MiniCTRM did it – The SQL Query screen and the Data Model: what a user can see of a database.
    60 min
  • 643
    Relational or not: deals in tables and columns, or deals as documentsTwo ways to keep a trade - rows in related tables, or one document per deal - what each costs a trading system, the same questions measured both ways, and where a document belongs beside the tables.
    What you'll learn · Before you start

    The decision written down with its costs, a measured comparison of the same report and the same query on deals stored both ways, the rules that keep the deal in columns, and, where documents are right, a document store kept beside the tables rather than instead of them.

    • Why MiniCTRM keeps deals in columns – MiniCTRM's view of document storage, the rules that encode it, and where MiniCTRM does pack data.
    • What you need first – The three lessons this one builds on, and why to take it before the first deal migration.
    • The trade-off – Ten questions answered for tables and for documents, and the three downsides with examples.
    • Write the decision down – An ADR with the trade-off table and three lines in CLAUDE.md.
    • Measure it – The same three questions on deals stored both ways, timed, with the experiment thrown away.
    • Where a document is right – Raw messages, scenario vectors and rendered text beside the tables, and a test that keeps JSON off the deal.
    • Ship it – /ship, with the schema-scan test among the rest.
    • How MiniCTRM did it – The Data Model drawn from the live schema, and one SELECT on the SQL Query screen.
    50 min
  • 644
    Many jobs at once: one limit for the whole system, steps that start together, one writer sharedSeveral job sets, their steps and the scripts people start by hand, all running at once under one limit a person can change while they run, on a database that takes one write at a time.
    What you'll learn · Before you start

    One Runs at once limit for every job step and script, resized live over two pools that cannot deadlock; step numbers that read as waves, with Start at step, failure, Cancel and time limits that behave inside one; an application write gate that shares the database's one writer, with a retryable busy error for scripts; guards against a set overlapping itself and two runs writing one file, the worker recorded on every run; and a sample set of five slow jobs to watch, with a wall-clock test.

    • One limit for the whole system – Runs at once, a setting resized while work runs, over two pools: workers that wait and workers that work.
    • Steps that share a number – A number is a wave of steps that start together; Start at step, failure, Cancel and time limits inside one.
    • The one writer, shared – An application write gate every write takes in turn, a retryable busy error for scripts, and what changes on PostgreSQL.
    • Guards, the proof, and ship – A set never beside itself, two runs never one file, the worker recorded; five slow jobs to watch; /ship.
    • How MiniCTRM did it – System Settings' Scripts and jobs, and Job Automation's groups that run their steps at the same time.
    • Worker machines, later – Jobs on other computers, what they need that one database file cannot give, and where it fits.
    60 min
  • 645
    Valuing 100,000 trades: capacity, measured, and the design that scalesThe worry everyone has, answered with numbers: what valuing a book really costs a computer, the three places a system's time grows faster than its book and how each is found and fixed, the design that splits a valuation across workers and gives the same answer, what limits come next and what to add when they do - and the prompts that give your own system the same.
    What you'll learn · Before you start

    A system of your own that books a hundred thousand seeded test trades, values them in chunks on several workers with the same answer as one, holds its lists to a flat number of queries, reports how its time grows with the book on your own hardware, and a written list of what you would add on the way to production.

    • How big is 100,000? – What a book of a hundred thousand trades is in rows, bytes and arithmetic, beside what the same computers do every day.
    • What a valuation does – One trade's valuation, step by step, and where a computer spends its time: CPU, memory, disk, network, waiting.
    • Measure the growth – A benchmark at two sizes, and the one question that matters: does twice the book take twice the time?
    • What a large book finds – Three places time grows faster than the book, how each is found by sampling, and the fix.
    • The design that scales – One market read once, the book in chunks, read-only workers side by side, the same answer as one worker, one write at the end.
    • Watching it – Progress as events, and the Valuation Monitor.
    • The numbers – Each flaw in and fixed, and the design at 2,000, 5,000, 10,000 and 100,000 deals.
    • Your system – Eight prompts: test trades, a benchmark, the hot spot, small sessions, one market, chunks, the same answer, flat lists.
    • When the next limit comes – Which limit comes next, how to tell, and what to add: cores, memory, a server database, several machines.
    • On the way to production – What a system a firm relies on adds: budgets, a capacity run on your own hardware, memory limits, cancel, alerts.
    • Ship it – Every test, the benchmark's numbers in docs/capacity.md, committed.
    120 min
  • 646
    One program, two databases: PostgreSQL beside SQLite, the default unchangedThe same build runs on a SQLite file, as it always has, or on a PostgreSQL server where people sign in and other computers share the work - and with nothing set up, nothing changes.
    What you'll learn · Before you start

    One build that picks its database from the address; a platform interface with one class per database and the file-only parts on SQLite alone; a PostgreSQL baseline generated from the SQLite migrations, twin migrations after it, and a test that the two schemas match row for row; every query reading the same on both, the fast tier passing on each and a short database list in the quick check; server databases created, copied and dropped from the database screen; and sign-in and worker machines on a server database only.

    • Chosen by its address – The driver, dialect and migrations derived from the address; one platform interface; the file-only parts on SQLite alone.
    • One schema, two databases – A PostgreSQL baseline generated from the SQLite migrations, twins from then on, and a test that they match.
    • SQL that reads the same – A bind wrapper, a few portable rewrites and case-insensitive names; the tests on both; a short list in the quick check.
    • From the screen, and what only a server has – The database Type, a server database's own create, copy and drop, sign-in and worker machines; /ship.
    • How MiniCTRM did it – Database Maintenance's New database with its Type, and About's Back End with both drivers.
    55 min

65x · Ship and teach

  • 651
    Quality and shipping: test tiers, quick CI, the PR flow, releasesA fast test tier and a thorough one, one script that proves every change, a pull-request flow that keeps main always releasable, and a release with a number, notes, a tag and a checklist.
    What you'll learn · Before you start

    Sanity and comprehensive test tiers with one command each, a quick-CI script that reports every step in one table, your repository on GitHub and a pull-request flow with squash merges that keeps main always releasable, a version in one file read into a named release build, release notes and a tag per release, and a release checklist you run by name.

    • Test tiers and quick CI – A fast tier and a thorough one, and one script that runs every check and reports them all in one table.
    • The pull-request flow – Your system's repository on GitHub; a branch, a pull request and a squash merge, practiced in lesson 503 and now the daily routine, so main is always releasable; /ship grown to run it.
    • Versions, releases and the checklist – A version in one file, a release build named after it, release notes and a tag, and a checklist you run by name.
    • Ship it – /ship, now the whole flow: main merged in, quick CI, the pull request, the squash merge.
    • How MiniCTRM did it – About and the Health Check on the screen; the tiers, quick CI, the ship skill and the version in the repository's files.
    60 min
  • 652
    Teaching your users: help, glossary, your own tutorials and demoA help topic on every screen, a glossary of the words, a tutorial framework of your own with a first lesson, a demo book built through the product's own doors, and a process map of a trade's day - each checked by the build.
    What you'll learn · Before you start

    A help topic per screen served by the back end with search and a Help button on every screen, a glossary of the desk's and the system's words, a tutorial framework with a first lesson, a demo book loaded through the product's own services into a database of its own, and a process map of a trade's day with a test that keeps every screen on it or deliberately off it.

    • Help on every screen – Five teaching surfaces and their readers; a help topic per screen, served with search, held to the catalog by a test.
    • The words – A glossary of the desk's and the system's words, one file beside the help, one screen with a filter.
    • Your own tutorials – A lesson as data, one reader with progress per browser, and a first lesson that books a swap.
    • A demo book – Sample trades built through the product's own services, never by inserting rows, into a database of their own.
    • A process map – A trade's day as a picture, read from one data file, with a test that keeps every screen on it or off it on purpose.
    • Ship it – /ship, with the help, map and tutorial tests among the rest.
    • How MiniCTRM did it – Help and the Glossary of Terms; Day in the Life, the Demo and the Tutorials, live.
    60 min
  • 653
    An MCP server for your system: the desk's questions and actions as toolsA small program beside your back end that hands an AI assistant a short list of tools named for what the desk asks - today's trades, one deal, add a counterparty, book a swap - each a call to your own API as the asking person, rehearsed before it writes and recorded every time.
    What you'll learn · Before you start

    An MCP server in your own language beside your back end, designed before it was built: a dozen desk tools and two over the scripting façade, every one a client of your API as the asking person with a personal API token and their privileges; write tools that rehearse through the preview and act only on a confirm tied to the rehearsal by an idempotency key; an append-only record of every call on the Security screen; server instructions, a tool-list budget test, the rules in CLAUDE.md, a help topic for your users, and a conversation you have had with your own system.

    • Design before code – An assistant, a tool and a protocol from zero; the three ways to give an AI a system, with MiniCTRM's verdicts; the tool list and its rules, on paper first.
    • The server, read-only tools first – A sidecar in your language with the official SDK, two pipes, a personal API token with the asking person's privileges, and a protocol-level check.
    • Writes: rehearse, then confirm – Every write tool previews first and acts only on a confirm tied to its rehearsal; every call recorded in a table nobody can edit.
    • The long tail through the façade – describe_api over your glossary, sliced small, and run_script over your runner, rehearsing by default; the instructions the server hands the model.
    • Connect, the rules, then ship – Claude Code and Claude Desktop connected, a budget on the tool list, the rules into CLAUDE.md, a help topic for your users, a real conversation; then /ship.
    • How MiniCTRM did it – Six tools over the API Glossary, desk tools in front, and an honest table of the two servers side by side.
    75 min
  • 654
    An assistant on the desk: plain language in, the system's answer outA small tool of the firm's own beside the system: a page, a server running the model-and-tools loop as the signed-in person through the MCP server, every call shown, every write behind a Confirm button - and the discipline around it: grounding, speed, budgets, privacy, a kill switch and a users' guide.
    What you'll learn · Before you start

    An assistant of the firm's own beside the system - a page and a small server that answers plain-language questions through the MCP server as the signed-in person, showing every tool call and holding every write behind a Confirm button the model cannot press - with grounded answers measured by an evaluation set, a budget of calls, seconds and tokens per question, token limits and a privacy page, a kill switch, a users' guide, an /assistant-eval skill and the rules in CLAUDE.md.

    • The tool and the loop – Three ways an AI meets a desk; a model, its API and the loop from zero; how to ask Claude for one; the build.
    • Grounded answers – A system prompt that says what the assistant is and may never do, an evaluation set, and a test that fails a number from nowhere.
    • Writes behind Confirm – The model may rehearse; only a person confirms, on a button the model cannot press, with the idempotency key and the log.
    • Fast and cheap – Why an assistant gets slow, and the rules that keep it fast: direct tools, a small cached tool list, caching, playbooks, budgets a test measures.
    • Cost, privacy and keeping it honest – Token budgets, what leaves the firm, a kill switch; a users' guide, an /assistant-eval skill and the rules in CLAUDE.md; then /ship.
    • How MiniCTRM did it – Ask Help, the docs-only helper on a local model, and the MCP route beside it: two things on purpose.
    60 min
  • 655
    Replacing an existing system: parallel runs and phasing in (a side topic)The day the old system is switched off is the riskiest day of the project: the three orders to replace it in, a parallel run compared every night, a reconciliation with a tolerance and a memory, and a cutover with a way back.
    What you'll learn · Before you start

    A parallel-run plan written from an interview about the old system, a reconciliation report that compares its mark-to-market and cash per deal and per counterparty with your valuation run and cash ladder with a tolerance per currency and a trend over the run, an ADR recording whether the back end or the front end moves first, a phase-in plan desk by desk, and a cutover and rollback checklist you run on the day as a skill.

    • Three orders, and the parallel run – All at once, the back end first or the front end first; both systems booking the same trades until yours has earned trust.
    • The reconciliation report – The old system's numbers in a table of their own, compared every night with yours, with a tolerance, a reason and a trend.
    • The order, the phase-in and the cutover – An ADR for the order you chose, a plan desk by desk, and a checklist with a rollback, run as a skill on the day.
    • Ship it – The reconciliation's tests, three documents, a skill, one pull request.
    • How MiniCTRM did it – It never replaced a system; the three tools a parallel run would lean on, as tools.
    45 min
  • 657
    Keeping GitHub costs down: CI tiers, Actions and the billWhat a hosted CI run really costs, measured before anything changes; a workflow that runs only when it is worth paying for; quick CI made faster with numbers; and the rules that stop Claude spending your minutes.
    What you'll learn · Before you start

    A dated report of what your hosted CI costs per job, per run, per merge and per month; a workflow that runs on a label or a manual run with a tier, guarded, cached, timed out and keeping no runnable build; quick CI measured before and after with a time budget; and the billing rules in CLAUDE.md.

    • How the bill is made – Workflows, jobs, runners and Actions minutes from zero, and a worked example of the bill.
    • Before you start – The two lessons this one assumes, and the day to take it.
    • The tactics – What cuts the bill and by how much, which ones MiniCTRM uses, and the general advice it does not.
    • Measure first – The bill per job, per run, per merge and per month, written down before anything changes.
    • The workflow redesigned – Runs only when asked (or on every push when public), guarded, cached, timed out, keeping no runnable build.
    • Quick CI, faster and measured – Each step timed, the slow tests moved, coverage off, the legs side by side, a budget in CLAUDE.md.
    • Rules Claude keeps – Never a hosted run unasked, never a polling loop, nothing on a schedule, a monthly look at the bill.
    • Ship it – /ship, with the workflow, the faster tier and the rules together.
    • How MiniCTRM did it – The workflow and scripts as files beside yours, and the build and smoke test on the screen.
    50 min
  • 658
    Adding a new trade type to a live system: the master checklistYour system has been live for a year and the desk wants to trade something new. One master list of steps that fits any product - from capturing the deal to the first trade in production - with each step done, or marked not applicable and why.
    What you'll learn · Before you start

    A master checklist for any new trade type kept in your repository as a template, a skill that walks Claude and you through it, and the list filled in for the next product your desk wants.

    • The master list – Seventeen steps, in order, for any trade type.
    • One product through the list – A barrier option, step by step.
    • How to use the list – Not applicable is an answer; skipping is not.
    • Make it yours – The template, a skill, your next product, the ship.
    • How MiniCTRM did it – A new deal type in MiniCTRM.
    50 min
  • 659
    Where you are: the gap check and what comes nextThe honest way to end a course: your system against your brief and against MiniCTRM, the next three months in order, the habits that keep it healthy, and how this course stays current as Claude Code changes.
    What you'll learn · Before you start

    Your system measured against your brief and against MiniCTRM's screen list in docs/plans/gap-check.md, a three-month roadmap, the habits that keep it healthy written into CLAUDE.md, and a dated check of this course's Claude Code facts against the release you run.

    • What done means – A course ends and a system does not; the brief, the bar, and the gap check as the honest way to end.
    • A roadmap and the habits – The next three months in order, each item a plan when its turn comes, and seven habits written into CLAUDE.md.
    • Keeping the course fresh – The tool layer ages in months and the design layer in years; the Updated chip; a check of the course against your release.
    • Ship it – The last /ship of the course.
    • How MiniCTRM did it – The Launcher as the yardstick, and this course's own screen.
    30 min

66x · More trade types

67x · Local AI

  • 671
    Optimizing the local LLM: quick on a laptop, open about what it does, fed the right helpYour help assistant on a small model on the user's own machine: what tokens, a context window, reading and writing, parameters and quantization are; measure first; show the wait and let it stop; send the right help and less of it; pick the model on your own questions; and the GPU question answered honestly.
    What you'll learn · Before you start

    A help assistant that runs on a small local model at a usable speed on a laptop - measured against a written baseline, showing its progress, the answer as it is written and a Details log of every step, sending only the best-matching help sections under a character budget held by a retrieval test, with the model picked from what is installed and compared on your own questions - and its rules in CLAUDE.md and the help.

    • A model on your own machine – Why a local model; tokens, the context window, reading against writing, parameters and quantization, from zero.
    • Measure first – Install Ollama and two small models, then the four figures for every question and a written baseline.
    • Show what it is doing – A job the page polls, the answer as it is written, Stop, a Details log closed by default, and the model warmed and kept.
    • Feed it the right help – Retrieval is the accuracy bug: sections ranked by BM25 with heading boosts, a character budget, markup stripped, fifteen questions as the test.
    • Pick the model – Measured on a laptop, compared on your own questions, the GPU question, the cache; then the rules, the help and /ship.
    • How MiniCTRM did it – System Settings → AI Help, and the Ask dialog's Details, as they are.
    55 min

700s · Beyond MiniCTRM 28 lessons

What a production system adds: the things MiniCTRM does not have, each with why, what your system needs first, and the prompts.

70x · Risk beyond history

  • 701
    Historical volatility: equal weights, EWMA and GARCH from the closesHow much each curve month has been moving, measured from your own stored closes three ways - a plain average, one that follows the market, and one that forecasts a return to normal - with the return rules a quant can set per curve, kept as runs beside the implied marks and copied into them only on purpose.
    What you'll learn · Before you start

    A return reader over the stored closes with the return basis and return type set per curve; equal-weight, EWMA and GARCH volatilities with hand-checked tests, GARCH falling back when its fit cannot be trusted and forecasting to each contract's expiry; stored runs with a fingerprint, a nightly job and a report beside the implied strip; a confirmed copy into the strip that keeps its source; and, if you choose, a volatility cone and a forecast check.

    • Why MiniCTRM keeps desk marks – MiniCTRM's reasons: no need for it in MiniCTRM, and every feature added is tested and kept for good.
    • What you need first – The closes, the relative or absolute flag, the job runner and the implied strip, reused unchanged; where this lesson sits in a build.
    • Returns and three estimators – Where the before price comes from, a ratio or a difference, the days between; equal weights, EWMA and GARCH with numbers; what a historical volatility is for.
    • Five prompts – The return reader; equal weights and EWMA; GARCH; runs, a job and the report; a deliberate copy into the strip.
    • Bells and whistles – An optional prompt for a volatility cone and a forecast check, and a list of further extras.
    • Ship it – /ship, with the hand-checked numbers among the tests.
    • How MiniCTRM does it – The Volatility screen's desk marks, and the one volatility MiniCTRM measures, inside Profit at Risk.
    90 min
  • 702
    Implied volatility from the exchange's option settlement pricesThe market's own volatility, worked back from what the exchange settled each option at: the option contract codes and the settlement prices themselves first, then lesson 662's Black-76 run backwards, the strikes worth trusting, a smile and an at-the-money strip per month, and marks taken from the exchange with every value saying where it came from.
    What you'll learn · Before you start

    Option contract codes on the futures codes with their months and expiries; the exchange's option settlement prices loaded each evening through the CSV pipeline with rejections and flags; one implied volatility solver on lesson 662's pricer with hand-checked tests; a smile and an at-the-money strip per option month, stored as runs and shown beside the desk's marks; an index's strip marked from the exchange each night with each month's source; and, if you choose, options valued at their own strike's volatility and an early-exercise comparison.

    • Why MiniCTRM keeps desk marks – MiniCTRM keeps no option settlement prices and solves for no implied volatility; the reasons.
    • What you need first – Futures codes and the calendar, settlement prices, the CSV pipeline, the discount curve and the pricer, reused unchanged.
    • From a settlement price to a volatility – What the exchange publishes; Black-76 backwards; which prices to trust; a smile and one number per month.
    • Five prompts – Option contract codes; the settlement prices; the solver; the smile and the strip; marks from the exchange.
    • Bells and whistles – An optional prompt for the smile in the pricer and early exercise, and a list of further extras.
    • Ship it – /ship, with the hand-checked solver tests among the rest.
    • How MiniCTRM does it – Option Contract Codes, Settlement Prices with no strike, and the strips a firm feeds in.
    90 min
  • 703
    Monte Carlo VaR: ten thousand tomorrows on the same engineHistorical simulation replays the days the market had; Monte Carlo invents ten thousand plausible ones from measured volatilities and correlations and revalues the book on each - a second scenario source behind the VaR engine you built, calibrated, seeded, batched across workers, compressed, with its noise beside every number and its doors open for a firm-wide VaR.
    What you'll learn · Before you start

    A scenario source behind the VaR engine with the historical figures unchanged to the digit and Expected Shortfall at each level, volatilities and a by-curve-by-month correlation matrix calibrated from the closes with a fingerprint and a calibration id, correlated seeded batched draws with antithetic pairs and a Student-t toggle, a Monte Carlo run in parallel on the worker pool with compressed per-deal vectors on the server database, VaR and ES with their standard error and a convergence table, the closes, the scenarios and the per-deal valuations exported and a scenario set imported from a file for a firm-wide VaR, historical and Monte Carlo side by side and backtested with VaR and ES limits that name their method, and a model-risk page with the rules in CLAUDE.md.

    • Why MiniCTRM stops at history – MiniCTRM's reason: a technology decision for a teaching system on one file, and a view about accuracy.
    • What you need first – The VaR engine reused unchanged, and the capabilities the run leans on; where this lesson sits in a from-scratch build.
    • The model, from zero – Returns, volatility, correlation and the covariance matrix; Cholesky, lognormal moves, seeds, the noise and model risk.
    • A scenario source, calibrated from the closes – One seam in the engine with a golden file to prove it, then volatilities and a by-curve-by-month correlation matrix from your own closes.
    • Ten thousand tomorrows, in parallel – Correlated, seeded, batched draws; the run as a job of batches across the worker pool, compressed, with a standard error on every figure.
    • Everything is correlated: a firm-wide VaR – Why the firm's VaR adds per-deal vectors across desks and never VaRs; closes out, scenarios out and in, valuations out, through lesson 623's pipeline.
    • Side by side, the model-risk page, then ship – Both methods on one book and date, backtested, limits per method; the page a committee reads and the rules in CLAUDE.md; /ship.
    • How MiniCTRM did it – Help → Monte Carlo VaR, the reason in MiniCTRM's words, and Profit at Risk, MiniCTRM's one Monte Carlo.
    100 min
  • 704
    Parametric VaR: the closed form, its speed and its blind spotsThe third VaR method, and the only one that revalues nothing: lesson 602's gradient times lesson 703's covariance, in one square root - instant, exactly decomposable, a what-if on the ticket in milliseconds - with its blind spots written down and never the headline on a book with options.
    What you'll learn · Before you start

    The delta-normal formula on lesson 602's gradient and lesson 703's covariance, with a hand-checked test; component and marginal VaR by deal, portfolio and curve that add up exactly; a what-if VaR on the ticket's preview in milliseconds that warns and never refuses; the three methods side by side with the model check and a backtest of each; an honesty page and the rules in CLAUDE.md.

    • Why MiniCTRM keeps it as a check – MiniCTRM's decision: historical simulation is the VaR, and the delta-normal figure is a model check beside it.
    • What you need first – Lesson 602's deltas and lesson 703's covariance, reused unchanged, and where this lesson sits in a build.
    • The formula and its blind spots – VaR = z times the square root of g transposed Sigma g times the square root of h, in words; what it cannot see; what it is good for.
    • Four prompts – The gradient and the formula; component and marginal VaR; the what-if on the ticket; three methods, a backtest, the honesty page and the rules.
    • Ship it – /ship, with the hand-checked tests among the rest.
    • How MiniCTRM did it – The Headline tab's model check, and the help topic that says what making it a method would take.
    60 min

71x · Physical gas

72x · The book over time

73x · Clearing, exchanges and regulation

  • 731
    Margining: variation and initial margin, the broker's statement, the cash callA cleared trade is settled every day against the settlement price and a deposit is held against tomorrow: margin accounts per clearing broker, the daily variation margin inside the margin account, initial margin from the exchange's parameters, the broker's statement reconciled every morning, the call and its forecast - built in your system, and why MiniCTRM leaves it to another system.
    What you'll learn · Before you start

    Margin accounts per clearing broker, daily variation margin from the settlement prices booked inside the margin account and posted, initial margin from the exchange's parameters or the statement, the broker statement imported and reconciled with tolerances, cash calls on the cash ladder, and the margin forecast.

    • Why MiniCTRM does not have it
    • What you need first – The four lessons this one builds on, the future to add first, what it reuses and extends, and where a from-scratch build takes it.
    • What moves, and what does not – Variation margin, initial margin, the call and the excess - and the mark-to-market, which none of them changes.
    • Brokers, accounts and the daily margin – A clearing broker and a margin account per broker, entity and currency on every cleared ticket; variation margin from the settlement prices, one row per account per day inside the margin account.
    • Initial margin and the broker's statement – The requirement from the exchange's parameter file or the statement, labeled an estimate; the statement imported through one layout and reconciled with tolerances, exceptions that fail closed.
    • The forecast, the call and the rules – The call by the broker's cut-off, tomorrow's call from today's VaR or a stress scenario, excess, a hook that warns, and four lines in CLAUDE.md.
    • Ship it – /ship, with the margin tests among the rest.
    • How MiniCTRM did it – Settlement Prices, which holds what the exchange printed, and the Cash Ladder, which holds the deals' own payments and nothing of margin.
    75 min
  • 732
    An exchange trade feed: trades that arrive by themselves, through the one doorA trade done on the exchange appears in your blotter by itself, with the exchange's id on it, booked through the same door as a ticket: mapping tables, an inbox, an adapter behind one interface, idempotency, reconciliation and a shadow run - built in your system, and what MiniCTRM's own feed does and does not do.
    What you'll learn · Before you start

    Mapping tables for products, accounts and ids; an inbox where every arrival lands as received before anything is booked; an adapter behind one interface with a file-based first implementation and the exchange's protocol later; idempotency on the external id so a trade never books twice; reconciliation against the clearing statement; and a parallel run before cutover.

    • What MiniCTRM's feed is, and is not
    • What you need first – The three lessons this one specializes, the deal type the feed books, and where a from-scratch build takes it.
    • The mapping layer is the work – Four maps and a deal reference, why none names a protocol field, what an unmapped trade does, idempotency and the door; then the tables themselves.
    • Every arrival lands, then books through the door – The inbox with six statuses and the booking under FEED as the feed's user; one adapter interface with the clearing broker's file first and the exchange's protocol as a stub.
    • Reconcile, run in parallel, write the rules – Positions against the clearing statement with breaks that fail closed; a shadow book beside the desk until the breaks are zero; the kill switch; CLAUDE.md.
    • Ship it – /ship, with the feed's tests among the rest.
    • How MiniCTRM did it – The ICE Trade Feed and its mappings, the Message Log, and Import from CSV: the other door another system's deals book through.
    75 min
  • 733
    Regulatory considerations: reporting, limits, surveillance and the compliance officerMiFID II, swap data repositories such as ICE Trade Vault, EMIR, REMIT and the market abuse rules - what a production system must do about them, how AI helps detect wash trades and other abuse, and what a chief compliance officer needs from the system.
    What you'll learn · Before you start

    Your obligations mapped for counsel to confirm, regulatory data on every deal, a reporting engine with rules as data and reconciliation with the repositories, position limits, rules-based surveillance with case management, AI review that ranks and explains but never decides, and the compliance officer's dashboard and reports.

    • Why MiniCTRM does not have it
    • What you need first – The lessons this one builds on, and when to take it.
    • The regulations – MiFID II, swap data repositories, EMIR, REMIT, market abuse, limits, sanctions, records - in one table, as of October 2026.
    • Reporting, built once for many regimes – Which rules apply, the data on the deal, the engine, reconciliation.
    • Position limits – Limits as data, positions aggregated as the rule says, breaches logged.
    • Surveillance, and AI as a detector – Wash trades and other abuse found by rules, then by AI that explains and never decides.
    • The chief compliance officer – The role, and the dashboard and reports a CCO needs from the system.
    • How MiniCTRM did it – Privileges and an activity log, the foundations compliance builds on.
    120 min

74x · Settlement and banks

  • 741
    Settlement and bank accounts: confirmations, balances and the overdue bucketA bank account per entity with daily balances the cash ladder starts from, a confirmation that a payment was paid or received as an event keyed on the payment, an overdue bucket with aging, and the bank's statement imported and matched - built in your system, and why MiniCTRM's ladder stops at Invoiced.
    What you'll learn · Before you start

    Bank accounts with daily balances the cash ladder starts from, a settlement confirmation as an operational event keyed on the payment row so every payment reads Expected, Invoiced or Settled, an overdue bucket on the cash ladder with aging and a warning line on Credit Exposure, and a bank statement import matched to payments with every difference explained.

    • Why MiniCTRM's cash ladder stops at Invoiced
    • What you need first – The four lessons this one builds on, what it reuses unchanged, and where a from-scratch build takes it.
    • Three states of a payment – Expected, Invoiced and Settled, who sets each, and Overdue as a bucket that is not a state.
    • Bank accounts and daily balances – An account per entity, bank and currency; a balance per account and day; the ladder starts from the bank.
    • A settlement confirmation – An operational event keyed on the payment's meaning, through its own service and privilege pair; partial settlements; the state read from the rows.
    • The overdue bucket – Past the value date plus grace and not settled: a bucket at the front of the ladder with aging, and a warning on Credit Exposure that changes no number.
    • The bank statement – One layout, an adapter script per bank, matching by rules, unmatched lines by hand, a balance that fails closed, and the rules in CLAUDE.md.
    • Ship it – /ship, with the settlement tests among the rest.
    • How MiniCTRM did it – The Cash Ladder with its typed opening balances and no settlement, and Invoicing from Draft to Void.
    60 min

75x · Extending the system

  • 751
    A third extension language: .NET beside Java and Python, or .NET from the startA second extension language, or a third: the Scripting API as one contract with a binding per language, the new language's host as a sidecar under the same privileges and time limit as the first, a glossary per language, and the honest cost of every language you add - and why MiniCTRM hosts two.
    What you'll learn · Before you start

    The Scripting API as one language-neutral contract with a binding per language; the new language's host - .NET beside a Java or Python system, Python beside a C# one - as a sidecar over a local socket, with the same privileges and time limit as the first host and the file, network and memory walls a sidecar can hold; the glossary generated per language with a whole-script example in each and a test that fails on a missing one; hooks and scheduled scripts in the new language through the same doors; and the honest cost table of every language after the first.

    • Why MiniCTRM hosts two
    • What you need first – The four lessons this one builds on, what it reuses unchanged, and when to take it.
    • The cost of every language after the first – What every new public method costs once more per language, and the alternative that needs no new host.
    • One contract, a binding per language – The API defined once, a binding per language from it, and a test on names, arity and reserved words.
    • The new language's host – A sidecar behind one host interface, with the walls a sidecar can hold, and the first host given the same time limit and privileges.
    • The glossary per language – A tab per language generated from the one contract, an example per method in every language, and the editor.
    • Hooks, schedules and the rules – The same dispatcher and scheduler, the cost table written down, and four lines in CLAUDE.md.
    • Ship it – /ship, with the contract, host and glossary tests among the rest.
    • How MiniCTRM did it – The API Glossary in two languages, and the Script Editor with its two runtimes.
    60 min

76x · The desk in your pocket

77x · Environmental markets

78x · From one firm to many

  • 781
    A commercial product: one code base, many firmsWhat a software vendor builds beyond one firm's system: configuration instead of hard-coding, contracts kept with deprecation, releases and tested upgrades, release notes, a roadmap and a request tracker, and the hosting decision - for your system, and why MiniCTRM is not a product.
    What you'll learn · Before you start

    One code base that many firms configure rather than fork, with an inventory of what was hard-coded and a test that keeps it out; every public surface a contract changed only by addition and deprecation, with a compatibility suite and an upgrade test from each supported version; semantic versions, a supported-versions table, release notes in fixed sections, an upgrade rehearsal on an anonymized copy and a rollback; a roadmap and a request tracker with severities and a service level; and the hosting decision written down, with each tenant's data isolated and proved so.

    • Why MiniCTRM is not a product – A teaching system, single-user on its default database, published to learn from and never sold - and what it already has that a vendor would build on.
    • What you need first – The lessons this one builds on, what it reuses unchanged, and when to take it.
    • One firm or many – The same questions answered for one firm and for a licensed product, then every hard-coded choice made configurable.
    • Backward compatibility – What breaks a customer, the rule that prevents it, and the tests that prove each release keeps it.
    • Releases and upgrades – Semantic versions, supported versions, release notes, a rehearsal on a customer's data, and rollback.
    • A roadmap and a request tracker – Where bugs and requests land, how they are triaged and weighed, and why one firm's request becomes everyone's feature.
    • Cloud or local – Hosted by the vendor or installed by the firm, each tenant's data kept apart, and a diagnostics bundle.
    • Ship it – /ship, with the configuration, compatibility and isolation tests among the rest.
    • How MiniCTRM did it – The About dialog's version and history, and a firm's own rule as an Activity Hook.
    75 min
  • 782
    Licensing what you built: public, open source, source-available or soldWhat others may do with your system once a copy leaves the firm: the license families, who owns the code and what it carries, a repository safe to publish and the front door a stranger reads - and how MiniCTRM chose.
    What you'll learn · Before you start

    A license chosen by the firm and recorded in an ADR, a LICENSE file and every manifest, the ownership of the code checked, every dependency's license inventoried with a CI check that fails on a disallowed one, the repository made safe to publish, and the front door a stranger reads.

    • How MiniCTRM chose
    • What you need first – The three lessons this one builds on, and when to take it: before the first copy leaves the firm.
    • Public is not open source – Who can see the code, what they may do with it, and what nobody can prevent.
    • The license families – Permissive, copyleft, source-available and proprietary: what others may do, and what each means for you.
    • Who owns it, and what it carries – Employees, contractors and AI-written code; dependencies' licenses; data and trademarks; not legal advice.
    • Choose and record the license – Claude lays out the options and asks; the firm decides; an ADR, LICENSE, manifests and the README record it.
    • What the code carries – A software bill of materials, a notices file, a CI check on licenses, and the data sources with their terms.
    • Make it safe to publish – A hygiene scan as a test, one clean commit when history stays private, and no built program handed out by accident.
    • The front door – README, SECURITY.md and CONTRIBUTING.md for a stranger, and for a sold product the outline the firm's lawyer finishes.
    • Ship it – /ship, with the license and hygiene checks among the tests.
    • How MiniCTRM did it – About's library list and the License dialog with its third-party components.
    50 min
  • 783
    Many languages: one system in every language its users readEvery string through one door, numbers and dates in the reader's own format while stored and exchanged values never change, each person's language and each counterparty's documents, and a translation workflow with checks - built in your system, and why MiniCTRM does not have it.
    What you'll learn · Before you start

    A written decision on which languages, what is translated and what never is, with a trading glossary and a named reviewer per language; every user-visible string in message catalogs behind one function, with a test that catches a literal and a pseudo-locale that shows what was missed; numbers and dates shown and typed in each reader's format while the database, the API and every file keep one invariant format; each person's language on their account, reference data names by code, documents in the counterparty's language and help that says when it is not yet translated; and a translation workflow that marks stale and unreviewed strings and fails a build on a dropped placeholder.

    • Why MiniCTRM does not have it – Not in MiniCTRM today: one language, English in American spelling, for high effort and low reward in a training system.
    • What you need first – The lessons this one builds on, what it reuses unchanged, and why the cheapest time to start is the first screen.
    • What is translated and what never is – A person reads a label; a program reads a code. The line between them, and why formats are a setting of their own.
    • The decision and the inventory – The languages, the line, the glossary and the reviewers written down, and every string counted.
    • Every string through one door – Message catalogs, one function, whole sentences with placeholders, codes from the server, and a fake language that finds what was missed.
    • Formats and input – Numbers and dates in the reader's format, input that never guesses, and one format stored and exchanged.
    • The reader and the documents – Each person's language, reference data names by code, documents in the counterparty's language, and help that says when it is behind.
    • The translation workflow – Stale, missing and unreviewed strings, drafts and review, and checks that fail on a dropped placeholder.
    • Ship it – /ship, with the literal, format and placeholder tests among the rest.
    • How MiniCTRM did it – One language, one export format for dates, and no language setting.
    70 min

79x · Power in depth

800s · Meta lessons 3 lessons

Lessons about building rather than about the system: they teach no part of a CTRM, but ideas around making one - for the skeptic in the room, Claude taking the course to test it, and common practices examined.

80x · Can it be done?

  • 801
    Can an AI really build a trading system? A lesson for the person who just askedFor the skeptic in the room: six things people say about AI beside what is true, ten objections a head of desk raises with the lesson that answers each and what MiniCTRM shows today, and two prompts - one of them a working swap in ten minutes - written in advance for the person who said it could never anticipate the question.
    What you'll learn

    The misconceptions sorted from the facts, ten objections each with the lesson that answers it and what MiniCTRM shows on screen today, every count read from the code, and one fixed-for-floating swap's payment profile with a passing test that you made yourself in ten minutes.

    • The disclaimer – Written lightly on purpose; every number real; written by the AI, which is the first answer.
    • What AI is and is not – Six things people say about AI beside what is true, each checked against this repository.
    • The objections – Ten objections a head of desk raises, the lesson that answers each, and what MiniCTRM shows on screen today.
    • Try it yourself – Two prompts: the gotcha turned around, and one swap's payment profile with a passing test in ten minutes.
    • What the humans did – What the designer decided, read and refused; what the AI typed, tested and asked; and the designer's view.
    • How MiniCTRM did it – The Launcher as the exhibit: every tile a screen that began as a sentence, and the course the AI wrote.
    20 min

81x · Claude takes the course

  • 811
    Claude takes the course: a simulated student builds a gas deskOne prompt and this course's one-page file, and Claude plays a student for about 14 hours, or 8 at Quick, without once stopping for you: in eight phases, four of them run as parallel subagents, it builds a desk that trades five types - a gas swap, physical gas, physical and financial power and futures - checks every step as a learner would, and writes down where the course let it down.
    What you'll learn

    A simulated run of the course you can start with one prompt and leave alone: a working gas desk with five trade types end to end, a Help menu and a Color Scheme menu, a log of every lesson as a learner would keep it, an audit by a session that did not take the course, and a feedback table and the course's tester feedback form, filled in.

    • What a simulation can and cannot tell you – A tireless reader who knows too much: how the run is held to what a learner would know.
    • Before you start – The kit, the folder, the model and effort, the tools, the time, and the settings the run cannot write for itself.
    • The run's rule book – The roles, the Definition of Done, and the numbers the run must reproduce.
    • The build plan – The order the pieces go in and why, eight phases at Regular or Quick length, the conductor that keeps the main session small, the shapes, the parallel tracks and the parallel fixes.
    • Run it – One prompt to start, one to resume, one to audit, one to write the feedback, and one to start a second round if you choose.
    • After the run – Reading what came back, and turning it into changes to the course.
    840 min

82x · Practices, examined

  • 821
    Code coverage gates: what they measure, and why MiniCTRM keeps noneWhat a coverage tool counts and what it cannot see, why MiniCTRM measures coverage only when someone asks and never fails a build on it, the circumstances where a team is right to keep a gate, and three prompts: a report once, the untested code that would cost money, and a gate that only looks forward if you must have one.
    What you'll learn · Before you start

    You know what line, branch and instruction coverage measure and what they miss, you have read your own system's coverage report once, you have tests for the three untested pieces of code that would cost the most if they were wrong, and you have decided - for your own reasons, written in CLAUDE.md - whether your system keeps a gate.

    • What it counts – Lines, branches and instructions; what a high number says and what it cannot say.
    • Why MiniCTRM keeps none – What a gate catches, the two kinds of flaw it cannot see, and MiniCTRM's decision.
    • When a gate is right – The circumstances where a team is right to keep one, and the honest middle ground.
    • Your system – A report once, the untested code that would cost money, and a gate that only looks forward if you need one.
    • Ship it – Your decision in CLAUDE.md, committed.

    Before you start

    The lessons this one builds on: 651 Quality and shipping: test tiers, quick CI, the PR flow, releases.

    25 min