MiniCTRMSearch

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.

Before you start

The lessons this one builds on: 542 Market data: forward curves, FX, settlement prices and closes, 613 Treasury and accounting: the cash ladder, postings and month-end, 621 End of day: close the market, run the valuation, automate the night, 623 Integrations: CSV in and out, feed adapters and the API.

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 / 13
Settled every day, and a deposit against tomorrow
Why MiniCTRM does not have it

Why MiniCTRM does not have it

2 / 13
Why MiniCTRM does not have it
What you need first

What you need first

3 / 13
What you need first
What moves, and what does not

Four kinds of cash and one number that does not move

4 / 13
Four kinds of cash and one number that does not move
Brokers, accounts and the daily margin

Clearing brokers and margin accounts

5 / 13
Clearing brokers and margin accounts
Brokers, accounts and the daily margin

Variation margin from the settlement prices

6 / 13
Variation margin from the settlement prices
Initial margin and the broker's statement

Initial margin

7 / 13
Initial margin
Initial margin and the broker's statement

The broker statement imported and reconciled

8 / 13
The broker statement imported and reconciled
The forecast, the call and the rules

The margin forecast, the cash call and the rules

9 / 13
The margin forecast, the cash call and the rules
Ship it

Ship it

10 / 13
Ship it
How MiniCTRM did it

Settlement Prices: what the exchange printed

11 / 13
Settlement Prices: what the exchange printed
How MiniCTRM did it

The Cash Ladder: the deals' own payments, and nothing of margin

12 / 13
The Cash Ladder: the deals' own payments, and nothing of margin
What you have now

What you have now

13 / 13
What you have now

You have finished lesson 731, Margining: variation and initial margin, the broker's statement, the cash call.

Where next?

← → move · N notes · Home / End