MiniCTRM - Build Tutorial 603: Credit: counterparty exposure against limits
→ 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
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.
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
The mirror of market risk
1 / 13What exposure is
What a counterparty owes you
2 / 13What exposure is
What counts, and what does not
3 / 13What exposure is
Exposure per counterparty, live from the latest run
4 / 13Credit lines and groups
A limit, and who it is for
5 / 13Credit lines and groups
Credit lines as reference data
6 / 13Credit lines and groups
Counterparties that are one legal entity
7 / 13Utilization, warnings and breaches
Utilization, a warning, a breach - and the rule
8 / 13Utilization, warnings and breaches
Measure, show, and prove the rule
9 / 13Ship it
Ship it
10 / 13How MiniCTRM did it
Credit Exposure
11 / 13How MiniCTRM did it
Credit Lines, Credit Groups and Party Ratings
12 / 13What you have now
What you have now
13 / 13
You have finished lesson 603, Credit: counterparty exposure against limits.