Counterparty Credit Risk AI: ISDA Netting, CSA, and Close-Out with Claude (2026)
ISDA Master Agreement netting, CSA mechanics, close-out netting enforceability, MPoR, ISDA protocol adherence, and credit limit structures. Claude AI prompts for CCR analysts, legal teams, and credit officers managing derivatives counterparty risk.
Educational content, not professional advice — AI output and figures here can be wrong. Verify before you rely on it. Full disclaimer →
Counterparty Credit Risk: The Full Framework
Counterparty credit risk (CCR) is the risk embedded in every bilateral OTC derivative trade — the risk that the counterparty defaults before the trade is settled. Unlike loans where the exposure is fixed and unidirectional, derivatives exposure is dynamic: it can grow as markets move, shrink with netting and collateral, and change direction. Managing CCR requires understanding legal documentation (ISDA agreements), market risk analytics (PFE, EPE, CVA), regulatory requirements (SA-CCR, Basel IV CVA capital), and operational processes (margin calls, close-out procedures).
Claude is used across all layers of CCR management — from reviewing ISDA documentation terms to computing exposure metrics, explaining regulatory capital requirements, and building internal policy frameworks. This article covers the legal and operational foundation of CCR; for the quantitative exposure metrics see PFE and Expected Exposure, for CVA pricing see XVA Trading Desk AI, and for regulatory capital see SA-CVA under FRTB.
ISDA Master Agreement and Netting
The ISDA Master Agreement (1992 or 2002) is the standard legal framework for OTC derivatives. Its key risk-reducing features are: (1) the single agreement concept — all transactions under the agreement form a single contract, preventing cherry-picking in insolvency; (2) close-out netting — on default, all transactions are terminated simultaneously and replaced by a single net payment; (3) termination events — credit rating downgrades, cross-default clauses, and additional termination events that allow early termination if creditworthiness deteriorates. The 2002 ISDA Master is the current standard (replacing 1992 for new relationships), with cleaner close-out valuation methodology (Close-out Amount vs. the 1992 Market Quotation/Loss concepts).
- "ISDA Master Agreement review for a new corporate counterparty: We are onboarding a BBB-rated European utility as a derivatives counterparty. Before agreeing ISDA terms, our legal and credit teams need to review: (1) which ISDA Master (1992 or 2002) is appropriate and what the key differences are for close-out valuation purposes, (2) what credit provisions should we include — ratings-based Termination Events, Cross-Default provisions, Credit Support Default triggers, (3) should we include a Specified Transaction cross-default provision — what does it capture and what are the risks of including it broadly, (4) what Events of Default are standard and what additional provisions would we want for a utility counterparty with potential regulatory risk, (5) how does the Automatic Early Termination provision work and when should it be specified — key for certain jurisdictions where manual termination may be blocked in insolvency."
- "ISDA netting enforceability analysis: We have 45 corporate counterparties in 18 countries. Before booking CCR capital relief from netting, we need valid legal opinions confirming enforceability. Walk through the enforceability assessment for: (1) UK entities — does ISDA netting work under the Financial Markets and Insolvency (Settlement Finality) Regulations and the Banking Act 2009 special administration regime, (2) German entities — does netting work under the German Insolvency Statute (Insolvenzordnung §§ 104-106), (3) French entities — close-out netting treatment under the French Monetary and Financial Code after post-2008 reforms, (4) Singapore entities — MAS recognition of close-out netting, (5) Indian entities — what are the current netting enforceability limitations for Indian banks and corporates, and what practical implications does this have for exposure limits?"
Credit Support Annexes (CSA) and Collateral Management
The Credit Support Annex (CSA) is the collateral agreement attached to an ISDA Master Agreement that governs variation margin (VM) and, for in-scope UMR counterparties, initial margin (IM) exchange. The key CSA economic terms are: threshold (the uncollateralized credit exposure allowed before collateral must be posted), minimum transfer amount (MTA, the smallest transfer that triggers a margin call), independent amounts (haircut-adjusted fixed IM), eligible collateral (what asset types qualify), and haircuts (valuation discounts on non-cash collateral). CSA terms directly determine the collateral-adjusted exposure that feeds into CVA and SIMM IM calculations.
- "CSA terms negotiation analysis for a two-way zero-threshold CSA: We are negotiating CSA terms with a new IG corporate counterparty. They want a $10M bilateral threshold and $500K MTA, we want zero threshold (full two-way margining). Analyze: (1) the exposure impact of a $10M threshold — how much CVA does the threshold add vs. zero threshold, assuming 5Y IRS netting set with EPE averaging $4M? (2) the credit advantage of zero threshold to us vs. the liquidity cost to the corporate (they must post collateral whenever trades move against them), (3) what independent amounts are appropriate for the corporate's current BBB credit rating — standard market practice, (4) what eligible collateral is typical for a corporate CSA — cash-only vs. government securities with haircut, (5) how should we document a ratings-linked threshold adjustment: if the corporate downgrades to BB, the threshold drops from $10M to $0?"
- "CSA optionality (ColVA) analysis: We have a CSA that allows the collateral poster to choose between USD cash, EUR cash, and US Treasuries (with 2% haircut). This is a 'cheapest-to-deliver' (CTD) option embedded in the collateral agreement — the poster will always choose the cheapest collateral to post. Explain: (1) what is ColVA (Collateral Valuation Adjustment) and how does this optionality create an asymmetric value, (2) for an EUR-reporting bank receiving USD or EUR cash or Treasuries: when is it optimal for the counterparty to post USD cash vs. EUR cash vs. Treasuries — what drives the choice, (3) estimate the ColVA on a $50M netting set with 3Y average maturity and a 50bps cross-currency basis — what is the economic value of the CTD option to the poster, (4) how should we price this option when quoting trades with this counterparty?"
Close-Out Procedures and Default Management
When a counterparty defaults, the surviving party must execute a well-defined close-out process under the ISDA agreement. The 2002 ISDA Master uses the "Close-out Amount" methodology: the determining party (typically the non-defaulting party) calculates the replacement cost for each terminated trade using commercially reasonable market quotations or relevant market data. Under the 1992 ISDA, two older methodologies (Market Quotation and Loss) apply. The close-out process is time-critical — the MPoR clock starts at the last valid margin call, and the surviving party is exposed to market risk throughout the close-out period.
- "Close-out process walkthrough for a hypothetical bank default: A dealer bank in our portfolio has just been placed into special administration. We have 85 trades across 12 netting sets under a 2002 ISDA Master with a zero-threshold, daily-margin CSA. Walk through the complete close-out process: (1) triggering Event of Default — which event applies, what is the timeline for delivering a Default Notice, (2) designating Early Termination Date — what notice period is required under 2002 ISDA, (3) calculating Close-out Amounts for each netting set — what market data do we use, how do we document our methodology for potential disputes, (4) netting off collateral posted/received, (5) delivering the Termination Payment notice — who pays whom if we have a net claim, (6) filing as an unsecured creditor if the close-out produces a net amount owed to us, (7) what is the typical timeline from default to recovery — 6 months, 3 years, longer?"
- "Wrong-way risk in close-out: We have a $200M notional commodity swap portfolio with an oil producer counterparty. The trades are structured so we receive fixed oil price and pay spot — currently in our favor by $18M MTM. The counterparty has just filed for administration after oil prices fell 40%. Wrong-way risk in close-out: (1) the market where we need to replace our positions (buying oil price protection in the market) is now highly stressed — oil markets are illiquid following the price shock, (2) our close-out quotations from 3 dealers show wide bid-offer spreads: $18.4M, $19.1M, $17.8M — which do we use for the Close-out Amount, (3) the counterparty's administrator disputes our close-out methodology, claiming we used period of market dislocation prices — how do we defend our Close-out Amount calculations, (4) what documentation did we need to have in place before the default to strengthen our position in a dispute?"
ISDA Protocols and Regulatory Documentation
The OTC derivatives market uses ISDA protocols to implement regulatory and market convention changes across thousands of bilateral relationships simultaneously. Adhering to an ISDA protocol means agreeing that, as between any two counterparties that have both adhered, their existing ISDA documentation is automatically amended as specified in the protocol. Major protocols affecting CCR include: ISDA 2013 EMIR NFC Representation Protocol (EMIR classification representations), ISDA 2014 Resolution Stay Protocol (cross-border resolution stay provisions), ISDA 2015 Universal Resolution Stay Protocol, ISDA 2016 Variation Margin Protocol (mandatory VM under UMR), and ISDA 2018 US Resolution Stay Protocol.
- "ISDA Protocol adherence review for a regulatory compliance project: We need to confirm that all of our 180 bilateral ISDA counterparties have adhered to the mandatory protocols. Key protocols to check: (1) ISDA 2016 VM Protocol (or bilateral VM amendment) — required for all in-scope UMR counterparties since March 2017, what is the consequence of a counterparty that hasn't adhered (cannot exchange VM — must terminate trades), (2) ISDA 2018 US Resolution Stay Protocol — required for G-SIB counterparties under Federal Reserve Board rules, what does it do (prevents certain remedies during a bank resolution), (3) ISDA 2022 IBOR Fallbacks Protocol — converts legacy LIBOR-based derivatives to SOFR/SONIA fallbacks, what is the status for counterparties that have not adhered, (4) how do we check current protocol adherence status for each counterparty via the ISDA Amend platform?"
Credit Limits and Counterparty Monitoring
Credit limits for derivatives counterparties are set at multiple levels: product-level (permitted derivative types), tenor-level (maximum maturity), and exposure-level (PFE limit at various time horizons). The exposure-based limit is compared to current PFE at the 95th percentile at peak horizon — when PFE exceeds the limit, new trades with that counterparty must be rejected or require credit approval. Active limit monitoring requires daily PFE calculation against current market rates across the full portfolio.
- "Credit limit structure design for a corporate derivatives counterparty: We are setting credit limits for a new BBB+ corporate counterparty (annual revenues $2B, leverage 2.5× EBITDA). Our corporate credit team has approved an unsecured derivatives exposure of $15M. Translate this into a derivatives credit limit structure: (1) PFE limit — at what time horizon and confidence level ($15M at 95th percentile at peak), (2) how do we allocate across product types (IRS, FX forwards, cross-currency swaps), (3) tenor limit — what maximum maturity aligns with the credit quality (5Y for BBB+?), (4) CSA requirement: below what credit quality do we require a CSA, and what is the transitional arrangement if they downgrade from BBB+ to BBB, (5) limit review trigger: what credit events (ratings downgrade, negative watch, CDS spread widening to X bps) require an automatic credit review and potential limit reduction?"
XVA Article Cluster
This article covers the legal and operational layer of counterparty credit risk. The full XVA cluster covers every component with worked Claude prompts:
- XVA Trading Desk AI — CVA desk workflows, CVA/DVA pricing, SA-CCR, SIMM estimation
- XVA Explained: CVA, DVA, FVA, MVA, KVA — the full XVA framework with formulas
- SA-CVA under FRTB — sensitivity-based CVA capital, hedge recognition, BA-CVA vs. SA-CVA
- SIMM Initial Margin (UMR) — delta/vega/curvature, concentration thresholds, MVA pricing
- Wrong-Way Risk in CVA — SWWR vs. GWWR, Basel III treatment, stress quantification
- PFE and Expected Exposure — SA-CCR EAD, EPE/EEPE profiles, netting benefit, MPoR
- XVA Greeks: CS01, IR01, FX01 — CVA sensitivity hedging, P&L attribution
- KVA: Capital Valuation Adjustment — cost of capital in trade pricing, RoRWA
- XVA Collateral Optimization — CTD collateral, IM minimization, collateral transformation
- XVA in New Trade Pricing — RFQ workflow, XVA bid/offer, clearing economics
- CVA Stress Testing — 2008/2022/Eurozone scenarios, reverse stress tests, ICAAP
- FRTB Market Risk Capital — SA, IMA, NMRF, DRC, P&L attribution testing
Connect Claude to live financial data via MCP — EDGAR, FDIC, BIS, CME and 18 more.
New guides & tools — free
Get notified when we add new MCP servers, finance AI guides, and eval results.