MiniCTRM - Build Tutorial 731: Margining: variation and initial margin, the broker's statement, the cash call
→ to begin · N for the speaker notes
On a phone: Next or a swipe left to begin, Notes for the words.
What you'll learn
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.
Copyright 2026-2027 Brian Shydlo. MiniCTRM is source-available under the PolyForm Strict License 1.0.0 (https://polyformproject.org/licenses/strict/1.0.0): free for learning and other noncommercial use; no changes and no redistribution; commercial use needs permission.
Welcome
Settled every day, and a deposit against tomorrow
1 / 13Why MiniCTRM does not have it
Why MiniCTRM does not have it
2 / 13What you need first
What you need first
3 / 13What moves, and what does not
Four kinds of cash and one number that does not move
4 / 13Brokers, accounts and the daily margin
Clearing brokers and margin accounts
5 / 13Brokers, accounts and the daily margin
Variation margin from the settlement prices
6 / 13Initial margin and the broker's statement
Initial margin
7 / 13Initial margin and the broker's statement
The broker statement imported and reconciled
8 / 13The forecast, the call and the rules
The margin forecast, the cash call and the rules
9 / 13Ship it
Ship it
10 / 13How MiniCTRM did it
Settlement Prices: what the exchange printed
11 / 13How MiniCTRM did it
The Cash Ladder: the deals' own payments, and nothing of margin
12 / 13What you have now
What you have now
13 / 13
You have finished lesson 731, Margining: variation and initial margin, the broker's statement, the cash call.