Deterministic OIS bootstrapping (SOFR/ESTR/SONIA/SORA/TONA), IRS/CCS pricing, PFE & CSA XVA.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Optional for Free Starter tools. Provide 'Bearer mw_live_...' for Market Wizardry Pro (CCS basis, crisis regimes, Hull-White exposure & XVA waterfall).
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Use whenever reviewing or structuring an OTC IRS/CCS trade or ISDA CSA term sheet to catch institutional structuring traps: RFR day-count mismatches, missing CCS principal exchanges, CSA collateral currency discounting switches, 1-way CSA FVA bleed, and Wrong-Way Risk.
Proposed IRS or CCS trade structure to audit for convention and CSA traps.
Optional granular ISDA CSA configuration (thresholds, MTA, MPOR, collateralCurrency) overriding csaMode.
ISDA CSA margining mode when full csa config is omitted (default "TWO_WAY_VM").
Optional FX/rate-credit correlation in [-1, 1] to flag Wrong-Way Risk (|rho| >= 0.4 on CCS).
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http otc-rates-xva https://mcp.marketwizardry.xyz/mcp
Headers
Authorization (optional, not in the config above): Optional for Free Starter tools. Provide 'Bearer mw_live_...' for Market Wizardry Pro (CCS basis, crisis regimes, Hull-White exposure & XVA waterfall).Use whenever reviewing or structuring an OTC IRS/CCS trade or ISDA CSA term sheet to catch institutional structuring traps: RFR day-count mismatches, missing CCS principal exchanges, CSA collateral currency discounting switches, 1-way CSA FVA bleed, and Wrong-Way Risk.
| Argument | Type | Description |
|---|---|---|
| csa | object | Optional granular ISDA CSA configuration (thresholds, MTA, MPOR, collateralCurrency) overriding csaMode. |
| swap* | object | Proposed IRS or CCS trade structure to audit for convention and CSA traps. |
| csaMode | string | ISDA CSA margining mode when full csa config is omitted (default "TWO_WAY_VM"). |
| fxRateCorrelation | number | Optional FX/rate-credit correlation in [-1, 1] to flag Wrong-Way Risk (|rho| >= 0.4 on CCS). |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"swap"
],
"properties": {
"csa": {
"type": "object",
"required": [
"mode"
],
"properties": {
"mode": {
"$ref": "#/properties/csaMode"
},
"thresholdBank": {
"type": "number",
"default": 0,
"minimum": 0,
"description": "Bank/dealer unsecured VM posting threshold H_bank in reporting currency units (default 0)."
},
"thresholdClient": {
"type": "number",
"default": 0,
"minimum": 0,
"description": "Counterparty unsecured VM posting threshold H_client in reporting currency units (0 for zero-threshold)."
},
"collateralCurrency": {
"$ref": "#/properties/swap/properties/collateralCurrency",
"default": "USD",
"description": "Eligible CSA Variation Margin cash currency (default \"USD\")."
},
"initialMarginAmount": {
"type": "number",
"default": 0,
"minimum": 0,
"description": "Explicit segregated Initial Margin / Independent Amount in reporting currency (0 uses dynamic 99% SIMM proxy when mode is TWO_WAY_VM_AND_IM)."
},
"minimumTransferAmount": {
"type": "number",
"default": 250000,
"minimum": 0,
"description": "Minimum Transfer Amount (MTA) nuisance filter in reporting currency units (default 250000)."
},
"marginPeriodOfRiskDays": {
"type": "integer",
"default": 10,
"maximum": 30,
"minimum": 0,
"description": "Margin Period of Risk (MPOR) close-out lag in business days (default 10 bilateral OTC, 5 cleared)."
}
},
"description": "Optional granular ISDA CSA configuration (thresholds, MTA, MPOR, collateralCurrency) overriding csaMode.",
"additionalProperties": false
},
"swap": {
"type": "object",
"required": [
"structureType",
"tenorYears",
"leg1",
"leg2"
],
"properties": {
"leg1": {
"type": "object",
"required": [
"payReceive",
"currency",
"notional",
"legType",
"dayCount"
],
"properties": {
"legType": {
"enum": [
"FIXED",
"FLOAT"
],
"type": "string",
"description": "Coupon calculation type (\"FIXED\" or overnight compounded RFR \"FLOAT\")."
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"SGD",
"JPY",
"AUD",
"CAD"
],
"type": "string",
"description": "Leg denomination currency."
},
"dayCount": {
"enum": [
"ACT/360",
"ACT/365F",
"30/360",
"ACT/ACT"
],
"type": "string",
"description": "Leg accrual day-count convention (e.g. \"ACT/360\", \"ACT/365F\", \"30/360\")."
},
"notional": {
"type": "number",
"description": "Leg notional in local currency units (e.g. 100000000 for 100M).",
"exclusiveMinimum": 0
},
"rfrIndex": {
"enum": [
"SOFR",
"ESTR",
"SONIA",
"SORA",
"TONA"
],
"type": "string",
"description": "Floating overnight RFR index when legType is \"FLOAT\"."
},
"fixedRate": {
"type": "number",
"description": "Fixed coupon rate in decimal (e.g. 0.0385 for 3.85%) when legType is \"FIXED\"."
},
"frequency": {
"enum": [
"ANNUAL",
"SEMI_ANNUAL",
"QUARTERLY",
"MONTHLY"
],
"type": "string",
"default": "ANNUAL",
"description": "Coupon payment frequency (default \"ANNUAL\")."
},
"spreadBps": {
"type": "number",
"default": 0,
"description": "Floating spread or cross-currency basis spread in basis points (e.g. -14.0 for -14 bps; default 0)."
},
"payReceive": {
"enum": [
"PAY",
"RECEIVE"
],
"type": "string",
"description": "Cash-flow direction from the bank/dealer perspective (\"PAY\" or \"RECEIVE\")."
},
"notionalSchedule": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"maxItems": 240,
"minItems": 1,
"description": "Optional custom per-period notional schedule in local currency units for amortizing/accreting swaps."
}
},
"description": "First swap leg specification.",
"additionalProperties": false
},
"leg2": {
"type": "object",
"required": [
"payReceive",
"currency",
"notional",
"legType",
"dayCount"
],
"properties": {
"legType": {
"$ref": "#/properties/swap/properties/leg1/properties/legType"
},
"currency": {
"$ref": "#/properties/swap/properties/leg1/properties/currency"
},
"dayCount": {
"$ref": "#/properties/swap/properties/leg1/properties/dayCount"
},
"notional": {
"$ref": "#/properties/swap/properties/leg1/properties/notional"
},
"rfrIndex": {
"$ref": "#/properties/swap/properties/leg1/properties/rfrIndex"
},
"fixedRate": {
"$ref": "#/properties/swap/properties/leg1/properties/fixedRate"
},
"frequency": {
"$ref": "#/properties/swap/properties/leg1/properties/frequency"
},
"spreadBps": {
"$ref": "#/properties/swap/properties/leg1/properties/spreadBps"
},
"payReceive": {
"$ref": "#/properties/swap/properties/leg1/properties/payReceive"
},
"notionalSchedule": {
"$ref": "#/properties/swap/properties/leg1/properties/notionalSchedule"
}
},
"description": "Second swap leg specification.",
"additionalProperties": false
},
"fxSpot": {
"type": "number",
"description": "Optional spot FX rate override in units of collateralCurrency per 1 unit of foreign currency (e.g. 1.112 for EUR/USD); omit to use active regimeId FX spot.",
"exclusiveMinimum": 0
},
"regimeId": {
"type": "string",
"default": "2026-normalized-multi-speed",
"description": "Historical market regime ID from mw://snapshots/historical-regimes (default \"2026-normalized-multi-speed\")."
},
"tenorYears": {
"type": "number",
"maximum": 50,
"description": "Swap maturity in years (0 < T <= 50, e.g. 5, 10, 30).",
"exclusiveMinimum": 0
},
"effectiveDate": {
"type": "string",
"description": "Optional ISO effective date YYYY-MM-DD for exact calendar-month schedule rolling."
},
"structureType": {
"enum": [
"VANILLA_IRS",
"CONSTANT_NOTIONAL_CCS",
"MTM_RESETTING_CCS"
],
"type": "string",
"description": "OTC swap structure: \"VANILLA_IRS\" (Tier 0+1 single-currency), \"CONSTANT_NOTIONAL_CCS\" (Tier 1 Pro corporate CCS), or \"MTM_RESETTING_CCS\" (Tier 1 Pro interbank resetting CCS)."
},
"reportingCurrency": {
"$ref": "#/properties/swap/properties/collateralCurrency",
"description": "Optional reporting currency for netPv and PV01 ladder (defaults to leg1.currency for IRS, collateralCurrency for CCS)."
},
"collateralCurrency": {
"enum": [
"USD",
"EUR",
"GBP",
"SGD",
"JPY",
"AUD",
"CAD"
],
"type": "string",
"description": "ISDA CSA collateral currency anchoring discounting (defaults to leg1.currency for VANILLA_IRS, and \"USD\" for CCS)."
},
"exchangeFinalNotional": {
"type": "boolean",
"description": "Override final t=T principal re-exchange (defaults to false for VANILLA_IRS, true for CCS)."
},
"exchangeInitialNotional": {
"type": "boolean",
"description": "Override initial t=0 principal exchange (defaults to false for VANILLA_IRS, true for CCS)."
}
},
"description": "Proposed IRS or CCS trade structure to audit for convention and CSA traps.",
"additionalProperties": false
},
"csaMode": {
"enum": [
"UNCOLLATERALIZED",
"ONE_WAY_BANK_POSTS",
"ONE_WAY_CLIENT_POSTS",
"TWO_WAY_VM",
"TWO_WAY_VM_AND_IM"
],
"type": "string",
"default": "TWO_WAY_VM",
"description": "ISDA CSA margining mode when full csa config is omitted (default \"TWO_WAY_VM\")."
},
"fxRateCorrelation": {
"type": "number",
"maximum": 1,
"minimum": -1,
"description": "Optional FX/rate-credit correlation in [-1, 1] to flag Wrong-Way Risk (|rho| >= 0.4 on CCS)."
}
},
"additionalProperties": false
}Use whenever bootstrapping yield curves, stripping OIS discount factors, zero rates, or implied forward rates for USD SOFR, EUR ESTR, GBP SONIA, SGD SORA, or JPY TONA—or stripping USD-CSA cross-currency basis discount curves across 2020/2022/2023/2026 market regimes.
| Argument | Type | Description |
|---|---|---|
| index* | string | Overnight RFR benchmark index matching currency (e.g. "SOFR", "ESTR", "TONA"). |
| fxSpot | number | Optional FX spot rate in units of collateralCurrency per 1 unit of currency (e.g. 1.112 for EUR under USD CSA, 0.007067 for JPY under USD CSA). |
| quotes | array | Optional custom domestic DEPOSIT / OIS_SWAP par quotes in decimal; omit to use pre-cached regimeId quotes. |
| currency* | string | Target curve currency to bootstrap (e.g. "USD", "EUR", "JPY"). |
| regimeId | string | Historical market regime ID ("2020-dash-for-cash", "2022-global-liftoff-divergence", "2023-global-hiking-peak", or default "2026-normalized-multi-speed"). |
| basisQuotes | array | Optional custom CCS_BASIS_SWAP (parRate in decimal, e.g. -0.0024 for -24 bps) or FX_FORWARD quotes for cross-currency CSA stripping (Tier 1 Pro). |
| collateralCurrency |
Use whenever calculating accrual year fractions (ACT/360, ACT/365F, 30/360, ACT/ACT) or looking up overnight RFR OIS market conventions (SOFR, ESTR, SONIA, SORA, TONA payment lags, lookbacks, day counts).
| Argument | Type | Description |
|---|---|---|
| endDate* | string | ISO end date YYYY-MM-DD (e.g. "2026-09-30"). |
| startDate* | string | ISO start date YYYY-MM-DD (e.g. "2026-03-31"). |
| convention* | string | Institutional day-count convention: "ACT/360" (SOFR/ESTR), "ACT/365F" (SONIA/SORA/TONA), "30/360" (corporate bonds), or "ACT/ACT". |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"startDate",
"endDate",
"convention"
],
"properties": {
"endDate": {
"type": "string",
"description": "ISO end date YYYY-MM-DD (e.g. \"2026-09-30\")."
},
"startDate": {
"type": "string",
"description": "ISO start date YYYY-MM-DD (e.g. \"2026-03-31\")."
},
"convention": {
"enum": [
"ACT/360",
"ACT/365F",
"30/360",
"ACT/ACT"
],
"type": "string",
"description": "Institutional day-count convention: \"ACT/360\" (SOFR/ESTR), \"ACT/365F\" (SONIA/SORA/TONA), \"30/360\" (corporate bonds), or \"ACT/ACT\"."
}
},
"additionalProperties": false
}Use whenever calculating CVA, DVA, FVA, COLVA, or MVA (in dollars and running bps), quoting an all-in XVA-adjusted client swap rate, or quantifying XVA savings across ISDA CSA terms (Uncollateralized, 1-Way/2-Way VM, Thresholds, MTA, MPOR, Initial Margin/SIMM).
| Argument | Type | Description |
|---|---|---|
| csa* | object | Requested ISDA Credit Support Annex (CSA) configuration. |
| seed | integer | Deterministic integer PRNG seed (default 42). |
| swap* | object | Underlying IRS or CCS trade specification. |
| paths | integer | Number of Monte Carlo exposure paths for XVA integration (default 2000). |
| bankRecovery | number | Bank/dealer default recovery rate in decimal [0, 0.95] (defaults to regime 0.40). |
| colvaSlippageBps | number | Optional CSA collateral remuneration / CTD optionality spread in bps for COLVA; omit to use regime default. |
| bankHazardSpreadBps | number | Bank/dealer senior 5Y CDS spread in bps; omit to use active regimeId dealerSeniorCdsBps5Y. |
Use whenever valuing an Interest Rate Swap (IRS), Constant-Notional Cross-Currency Swap (CCS), or MTM-Resetting CCS; solving for par swap rate or par cross-currency basis spread; or computing Net PV, key-rate PV01/DV01 ladders, and FX basis sensitivity.
| Argument | Type | Description |
|---|---|---|
| leg1* | object | First swap leg specification. |
| leg2* | object | Second swap leg specification. |
| fxSpot | number | Optional spot FX rate override in units of collateralCurrency per 1 unit of foreign currency (e.g. 1.112 for EUR/USD); omit to use active regimeId FX spot. |
| regimeId | string | Historical market regime ID from mw://snapshots/historical-regimes (default "2026-normalized-multi-speed"). |
| tenorYears* | number | Swap maturity in years (0 < T <= 50, e.g. 5, 10, 30). |
| effectiveDate | string | Optional ISO effective date YYYY-MM-DD for exact calendar-month schedule rolling. |
| structureType* | string | OTC swap structure: "VANILLA_IRS" (Tier 0+1 single-currency), "CONSTANT_NOTIONAL_CCS" (Tier 1 Pro corporate CCS), or "MTM_RESETTING_CCS" (Tier 1 Pro interbank resetting CCS). |
Use whenever computing OTC counterparty credit risk profiles (EE, EPE, Effective EPE, ENE, PFE 95%/99%, peak exposure timing) for an IRS or CCS, or comparing mid-life humped IRS exposure vs maturity-peaking CCS notional re-exchange exposure.
| Argument | Type | Description |
|---|---|---|
| seed | integer | Deterministic integer PRNG seed for reproducible Monte Carlo exposure profiles (default 42). |
| swap* | object | Underlying IRS or CCS trade specification. |
| paths | integer | Number of antithetic Monte Carlo simulation paths (250 to 5000, default 2000). |
| fxVolPct | number | Optional annualized lognormal FX spot volatility in percent (e.g. 10.5 for 10.5%); defaults to active regimeId ATM FX vol for CCS and 0 for IRS. |
| rateVolBps | number | Optional annualized Hull-White 1F normal short-rate volatility in bps (e.g. 85); defaults to active regimeId currency vol. |
| meanReversion | number | Optional Hull-White 1F mean reversion speed a in decimal (e.g. 0.03); defaults to active regimeId. |
| confidenceLevel | number | Potential Future Exposure (PFE) quantile confidence level (0.95 or default 0.99). |
We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Dec 3, 2026.
| string |
| CSA collateral currency anchoring discounting (default "USD"). Set equal to currency for domestic OIS stripping (Tier 0+1), or foreign CSA currency (e.g. "USD" for EUR/JPY/SGD) for cross-currency basis discounting (Tier 1 Pro). |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"currency",
"index"
],
"properties": {
"index": {
"enum": [
"SOFR",
"ESTR",
"SONIA",
"SORA",
"TONA"
],
"type": "string",
"description": "Overnight RFR benchmark index matching currency (e.g. \"SOFR\", \"ESTR\", \"TONA\")."
},
"fxSpot": {
"type": "number",
"description": "Optional FX spot rate in units of collateralCurrency per 1 unit of currency (e.g. 1.112 for EUR under USD CSA, 0.007067 for JPY under USD CSA).",
"exclusiveMinimum": 0
},
"quotes": {
"type": "array",
"items": {
"type": "object",
"required": [
"tenor",
"maturityYears",
"instrumentType",
"parRate"
],
"properties": {
"tenor": {
"type": "string",
"description": "Pillar tenor label, e.g. \"1M\", \"3M\", \"6M\", \"1Y\", \"2Y\", \"5Y\", \"10Y\", \"30Y\"."
},
"parRate": {
"type": "number",
"description": "Par quote in decimal (e.g. 0.0362 for 3.62% OIS, -0.0018 for -18 bps CCS basis, or outright FX forward rate)."
},
"maturityYears": {
"type": "number",
"maximum": 50,
"description": "Pillar maturity in years (0 < T <= 50, e.g. 0.25 for 3M, 5 for 5Y).",
"exclusiveMinimum": 0
},
"instrumentType": {
"enum": [
"DEPOSIT",
"OIS_SWAP",
"FX_FORWARD",
"CCS_BASIS_SWAP"
],
"type": "string",
"description": "Market instrument type used to strip the pillar."
}
},
"additionalProperties": false
},
"maxItems": 25,
"minItems": 1,
"description": "Optional custom domestic DEPOSIT / OIS_SWAP par quotes in decimal; omit to use pre-cached regimeId quotes."
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"SGD",
"JPY",
"AUD",
"CAD"
],
"type": "string",
"description": "Target curve currency to bootstrap (e.g. \"USD\", \"EUR\", \"JPY\")."
},
"regimeId": {
"type": "string",
"default": "2026-normalized-multi-speed",
"description": "Historical market regime ID (\"2020-dash-for-cash\", \"2022-global-liftoff-divergence\", \"2023-global-hiking-peak\", or default \"2026-normalized-multi-speed\")."
},
"basisQuotes": {
"type": "array",
"items": {
"$ref": "#/properties/quotes/items"
},
"maxItems": 25,
"minItems": 1,
"description": "Optional custom CCS_BASIS_SWAP (parRate in decimal, e.g. -0.0024 for -24 bps) or FX_FORWARD quotes for cross-currency CSA stripping (Tier 1 Pro)."
},
"collateralCurrency": {
"enum": [
"USD",
"EUR",
"GBP",
"SGD",
"JPY",
"AUD",
"CAD"
],
"type": "string",
"default": "USD",
"description": "CSA collateral currency anchoring discounting (default \"USD\"). Set equal to currency for domestic OIS stripping (Tier 0+1), or foreign CSA currency (e.g. \"USD\" for EUR/JPY/SGD) for cross-currency basis discounting (Tier 1 Pro)."
}
},
"additionalProperties": false
}| bankFundingSpreadBps |
| number |
| Bank unsecured funding spread over OIS in bps for FVA; omit to use active regimeId dealerFundingSpreadBps. |
| counterpartyRecovery | number | Counterparty default recovery rate R in decimal [0, 0.95] (defaults to regime 0.40). |
| counterpartyCreditProfile | string | Default counterparty credit tier used when counterpartyHazardSpreadBps is omitted ("IG_CORPORATE" or "CROSSOVER_CORPORATE"). |
| mvaInitialMarginSpreadBps | number | Optional funding spread in bps on segregated Initial Margin for MVA; omit to use regime default. |
| counterpartyHazardSpreadBps | number | Optional counterparty flat 5Y CDS par spread in bps (e.g. 58 or 275); omit to use active regimeId creditAndFunding spread. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"swap",
"csa"
],
"properties": {
"csa": {
"type": "object",
"required": [
"mode"
],
"properties": {
"mode": {
"enum": [
"UNCOLLATERALIZED",
"ONE_WAY_BANK_POSTS",
"ONE_WAY_CLIENT_POSTS",
"TWO_WAY_VM",
"TWO_WAY_VM_AND_IM"
],
"type": "string",
"description": "ISDA Credit Support Annex (CSA) margining archetype: UNCOLLATERALIZED, ONE_WAY_BANK_POSTS, ONE_WAY_CLIENT_POSTS, TWO_WAY_VM, or TWO_WAY_VM_AND_IM."
},
"thresholdBank": {
"type": "number",
"default": 0,
"minimum": 0,
"description": "Bank/dealer unsecured VM posting threshold H_bank in reporting currency units (default 0)."
},
"thresholdClient": {
"type": "number",
"default": 0,
"minimum": 0,
"description": "Counterparty unsecured VM posting threshold H_client in reporting currency units (0 for zero-threshold)."
},
"collateralCurrency": {
"$ref": "#/properties/swap/properties/collateralCurrency",
"default": "USD",
"description": "Eligible CSA Variation Margin cash currency (default \"USD\")."
},
"initialMarginAmount": {
"type": "number",
"default": 0,
"minimum": 0,
"description": "Explicit segregated Initial Margin / Independent Amount in reporting currency (0 uses dynamic 99% SIMM proxy when mode is TWO_WAY_VM_AND_IM)."
},
"minimumTransferAmount": {
"type": "number",
"default": 250000,
"minimum": 0,
"description": "Minimum Transfer Amount (MTA) nuisance filter in reporting currency units (default 250000)."
},
"marginPeriodOfRiskDays": {
"type": "integer",
"default": 10,
"maximum": 30,
"minimum": 0,
"description": "Margin Period of Risk (MPOR) close-out lag in business days (default 10 bilateral OTC, 5 cleared)."
}
},
"description": "Requested ISDA Credit Support Annex (CSA) configuration.",
"additionalProperties": false
},
"seed": {
"type": "integer",
"default": 42,
"description": "Deterministic integer PRNG seed (default 42)."
},
"swap": {
"type": "object",
"required": [
"structureType",
"tenorYears",
"leg1",
"leg2"
],
"properties": {
"leg1": {
"type": "object",
"required": [
"payReceive",
"currency",
"notional",
"legType",
"dayCount"
],
"properties": {
"legType": {
"enum": [
"FIXED",
"FLOAT"
],
"type": "string",
"description": "Coupon calculation type (\"FIXED\" or overnight compounded RFR \"FLOAT\")."
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"SGD",
"JPY",
"AUD",
"CAD"
],
"type": "string",
"description": "Leg denomination currency."
},
"dayCount": {
"enum": [
"ACT/360",
"ACT/365F",
"30/360",
"ACT/ACT"
],
"type": "string",
"description": "Leg accrual day-count convention (e.g. \"ACT/360\", \"ACT/365F\", \"30/360\")."
},
"notional": {
"type": "number",
"description": "Leg notional in local currency units (e.g. 100000000 for 100M).",
"exclusiveMinimum": 0
},
"rfrIndex": {
"enum": [
"SOFR",
"ESTR",
"SONIA",
"SORA",
"TONA"
],
"type": "string",
"description": "Floating overnight RFR index when legType is \"FLOAT\"."
},
"fixedRate": {
"type": "number",
"description": "Fixed coupon rate in decimal (e.g. 0.0385 for 3.85%) when legType is \"FIXED\"."
},
"frequency": {
"enum": [
"ANNUAL",
"SEMI_ANNUAL",
"QUARTERLY",
"MONTHLY"
],
"type": "string",
"default": "ANNUAL",
"description": "Coupon payment frequency (default \"ANNUAL\")."
},
"spreadBps": {
"type": "number",
"default": 0,
"description": "Floating spread or cross-currency basis spread in basis points (e.g. -14.0 for -14 bps; default 0)."
},
"payReceive": {
"enum": [
"PAY",
"RECEIVE"
],
"type": "string",
"description": "Cash-flow direction from the bank/dealer perspective (\"PAY\" or \"RECEIVE\")."
},
"notionalSchedule": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"maxItems": 240,
"minItems": 1,
"description": "Optional custom per-period notional schedule in local currency units for amortizing/accreting swaps."
}
},
"description": "First swap leg specification.",
"additionalProperties": false
},
"leg2": {
"type": "object",
"required": [
"payReceive",
"currency",
"notional",
"legType",
"dayCount"
],
"properties": {
"legType": {
"$ref": "#/properties/swap/properties/leg1/properties/legType"
},
"currency": {
"$ref": "#/properties/swap/properties/leg1/properties/currency"
},
"dayCount": {
"$ref": "#/properties/swap/properties/leg1/properties/dayCount"
},
"notional": {
"$ref": "#/properties/swap/properties/leg1/properties/notional"
},
"rfrIndex": {
"$ref": "#/properties/swap/properties/leg1/properties/rfrIndex"
},
"fixedRate": {
"$ref": "#/properties/swap/properties/leg1/properties/fixedRate"
},
"frequency": {
"$ref": "#/properties/swap/properties/leg1/properties/frequency"
},
"spreadBps": {
"$ref": "#/properties/swap/properties/leg1/properties/spreadBps"
},
"payReceive": {
"$ref": "#/properties/swap/properties/leg1/properties/payReceive"
},
"notionalSchedule": {
"$ref": "#/properties/swap/properties/leg1/properties/notionalSchedule"
}
},
"description": "Second swap leg specification.",
"additionalProperties": false
},
"fxSpot": {
"type": "number",
"description": "Optional spot FX rate override in units of collateralCurrency per 1 unit of foreign currency (e.g. 1.112 for EUR/USD); omit to use active regimeId FX spot.",
"exclusiveMinimum": 0
},
"regimeId": {
"type": "string",
"default": "2026-normalized-multi-speed",
"description": "Historical market regime ID from mw://snapshots/historical-regimes (default \"2026-normalized-multi-speed\")."
},
"tenorYears": {
"type": "number",
"maximum": 50,
"description": "Swap maturity in years (0 < T <= 50, e.g. 5, 10, 30).",
"exclusiveMinimum": 0
},
"effectiveDate": {
"type": "string",
"description": "Optional ISO effective date YYYY-MM-DD for exact calendar-month schedule rolling."
},
"structureType": {
"enum": [
"VANILLA_IRS",
"CONSTANT_NOTIONAL_CCS",
"MTM_RESETTING_CCS"
],
"type": "string",
"description": "OTC swap structure: \"VANILLA_IRS\" (Tier 0+1 single-currency), \"CONSTANT_NOTIONAL_CCS\" (Tier 1 Pro corporate CCS), or \"MTM_RESETTING_CCS\" (Tier 1 Pro interbank resetting CCS)."
},
"reportingCurrency": {
"$ref": "#/properties/swap/properties/collateralCurrency",
"description": "Optional reporting currency for netPv and PV01 ladder (defaults to leg1.currency for IRS, collateralCurrency for CCS)."
},
"collateralCurrency": {
"enum": [
"USD",
"EUR",
"GBP",
"SGD",
"JPY",
"AUD",
"CAD"
],
"type": "string",
"description": "ISDA CSA collateral currency anchoring discounting (defaults to leg1.currency for VANILLA_IRS, and \"USD\" for CCS)."
},
"exchangeFinalNotional": {
"type": "boolean",
"description": "Override final t=T principal re-exchange (defaults to false for VANILLA_IRS, true for CCS)."
},
"exchangeInitialNotional": {
"type": "boolean",
"description": "Override initial t=0 principal exchange (defaults to false for VANILLA_IRS, true for CCS)."
}
},
"description": "Underlying IRS or CCS trade specification.",
"additionalProperties": false
},
"paths": {
"type": "integer",
"default": 2000,
"maximum": 5000,
"minimum": 250,
"description": "Number of Monte Carlo exposure paths for XVA integration (default 2000)."
},
"bankRecovery": {
"type": "number",
"maximum": 0.95,
"minimum": 0,
"description": "Bank/dealer default recovery rate in decimal [0, 0.95] (defaults to regime 0.40)."
},
"colvaSlippageBps": {
"type": "number",
"maximum": 500,
"minimum": 0,
"description": "Optional CSA collateral remuneration / CTD optionality spread in bps for COLVA; omit to use regime default."
},
"bankHazardSpreadBps": {
"type": "number",
"maximum": 2000,
"minimum": 0,
"description": "Bank/dealer senior 5Y CDS spread in bps; omit to use active regimeId dealerSeniorCdsBps5Y."
},
"bankFundingSpreadBps": {
"type": "number",
"maximum": 1000,
"minimum": 0,
"description": "Bank unsecured funding spread over OIS in bps for FVA; omit to use active regimeId dealerFundingSpreadBps."
},
"counterpartyRecovery": {
"type": "number",
"maximum": 0.95,
"minimum": 0,
"description": "Counterparty default recovery rate R in decimal [0, 0.95] (defaults to regime 0.40)."
},
"counterpartyCreditProfile": {
"enum": [
"IG_CORPORATE",
"CROSSOVER_CORPORATE"
],
"type": "string",
"default": "IG_CORPORATE",
"description": "Default counterparty credit tier used when counterpartyHazardSpreadBps is omitted (\"IG_CORPORATE\" or \"CROSSOVER_CORPORATE\")."
},
"mvaInitialMarginSpreadBps": {
"type": "number",
"maximum": 1000,
"minimum": 0,
"description": "Optional funding spread in bps on segregated Initial Margin for MVA; omit to use regime default."
},
"counterpartyHazardSpreadBps": {
"type": "number",
"maximum": 5000,
"minimum": 0,
"description": "Optional counterparty flat 5Y CDS par spread in bps (e.g. 58 or 275); omit to use active regimeId creditAndFunding spread."
}
},
"additionalProperties": false
}| reportingCurrency | any | Optional reporting currency for netPv and PV01 ladder (defaults to leg1.currency for IRS, collateralCurrency for CCS). |
| collateralCurrency | string | ISDA CSA collateral currency anchoring discounting (defaults to leg1.currency for VANILLA_IRS, and "USD" for CCS). |
| exchangeFinalNotional | boolean | Override final t=T principal re-exchange (defaults to false for VANILLA_IRS, true for CCS). |
| exchangeInitialNotional | boolean | Override initial t=0 principal exchange (defaults to false for VANILLA_IRS, true for CCS). |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"structureType",
"tenorYears",
"leg1",
"leg2"
],
"properties": {
"leg1": {
"type": "object",
"required": [
"payReceive",
"currency",
"notional",
"legType",
"dayCount"
],
"properties": {
"legType": {
"enum": [
"FIXED",
"FLOAT"
],
"type": "string",
"description": "Coupon calculation type (\"FIXED\" or overnight compounded RFR \"FLOAT\")."
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"SGD",
"JPY",
"AUD",
"CAD"
],
"type": "string",
"description": "Leg denomination currency."
},
"dayCount": {
"enum": [
"ACT/360",
"ACT/365F",
"30/360",
"ACT/ACT"
],
"type": "string",
"description": "Leg accrual day-count convention (e.g. \"ACT/360\", \"ACT/365F\", \"30/360\")."
},
"notional": {
"type": "number",
"description": "Leg notional in local currency units (e.g. 100000000 for 100M).",
"exclusiveMinimum": 0
},
"rfrIndex": {
"enum": [
"SOFR",
"ESTR",
"SONIA",
"SORA",
"TONA"
],
"type": "string",
"description": "Floating overnight RFR index when legType is \"FLOAT\"."
},
"fixedRate": {
"type": "number",
"description": "Fixed coupon rate in decimal (e.g. 0.0385 for 3.85%) when legType is \"FIXED\"."
},
"frequency": {
"enum": [
"ANNUAL",
"SEMI_ANNUAL",
"QUARTERLY",
"MONTHLY"
],
"type": "string",
"default": "ANNUAL",
"description": "Coupon payment frequency (default \"ANNUAL\")."
},
"spreadBps": {
"type": "number",
"default": 0,
"description": "Floating spread or cross-currency basis spread in basis points (e.g. -14.0 for -14 bps; default 0)."
},
"payReceive": {
"enum": [
"PAY",
"RECEIVE"
],
"type": "string",
"description": "Cash-flow direction from the bank/dealer perspective (\"PAY\" or \"RECEIVE\")."
},
"notionalSchedule": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"maxItems": 240,
"minItems": 1,
"description": "Optional custom per-period notional schedule in local currency units for amortizing/accreting swaps."
}
},
"description": "First swap leg specification.",
"additionalProperties": false
},
"leg2": {
"type": "object",
"required": [
"payReceive",
"currency",
"notional",
"legType",
"dayCount"
],
"properties": {
"legType": {
"$ref": "#/properties/leg1/properties/legType"
},
"currency": {
"$ref": "#/properties/leg1/properties/currency"
},
"dayCount": {
"$ref": "#/properties/leg1/properties/dayCount"
},
"notional": {
"$ref": "#/properties/leg1/properties/notional"
},
"rfrIndex": {
"$ref": "#/properties/leg1/properties/rfrIndex"
},
"fixedRate": {
"$ref": "#/properties/leg1/properties/fixedRate"
},
"frequency": {
"$ref": "#/properties/leg1/properties/frequency"
},
"spreadBps": {
"$ref": "#/properties/leg1/properties/spreadBps"
},
"payReceive": {
"$ref": "#/properties/leg1/properties/payReceive"
},
"notionalSchedule": {
"$ref": "#/properties/leg1/properties/notionalSchedule"
}
},
"description": "Second swap leg specification.",
"additionalProperties": false
},
"fxSpot": {
"type": "number",
"description": "Optional spot FX rate override in units of collateralCurrency per 1 unit of foreign currency (e.g. 1.112 for EUR/USD); omit to use active regimeId FX spot.",
"exclusiveMinimum": 0
},
"regimeId": {
"type": "string",
"default": "2026-normalized-multi-speed",
"description": "Historical market regime ID from mw://snapshots/historical-regimes (default \"2026-normalized-multi-speed\")."
},
"tenorYears": {
"type": "number",
"maximum": 50,
"description": "Swap maturity in years (0 < T <= 50, e.g. 5, 10, 30).",
"exclusiveMinimum": 0
},
"effectiveDate": {
"type": "string",
"description": "Optional ISO effective date YYYY-MM-DD for exact calendar-month schedule rolling."
},
"structureType": {
"enum": [
"VANILLA_IRS",
"CONSTANT_NOTIONAL_CCS",
"MTM_RESETTING_CCS"
],
"type": "string",
"description": "OTC swap structure: \"VANILLA_IRS\" (Tier 0+1 single-currency), \"CONSTANT_NOTIONAL_CCS\" (Tier 1 Pro corporate CCS), or \"MTM_RESETTING_CCS\" (Tier 1 Pro interbank resetting CCS)."
},
"reportingCurrency": {
"$ref": "#/properties/collateralCurrency",
"description": "Optional reporting currency for netPv and PV01 ladder (defaults to leg1.currency for IRS, collateralCurrency for CCS)."
},
"collateralCurrency": {
"enum": [
"USD",
"EUR",
"GBP",
"SGD",
"JPY",
"AUD",
"CAD"
],
"type": "string",
"description": "ISDA CSA collateral currency anchoring discounting (defaults to leg1.currency for VANILLA_IRS, and \"USD\" for CCS)."
},
"exchangeFinalNotional": {
"type": "boolean",
"description": "Override final t=T principal re-exchange (defaults to false for VANILLA_IRS, true for CCS)."
},
"exchangeInitialNotional": {
"type": "boolean",
"description": "Override initial t=0 principal exchange (defaults to false for VANILLA_IRS, true for CCS)."
}
},
"additionalProperties": false
}| foreignRateVolBps | number | Optional foreign currency Hull-White 1F normal short-rate volatility in bps; defaults to active regimeId. |
| fxRateCorrelation | number | Correlation between domestic short-rate and FX spot shocks in [-0.95, 0.95] (default 0). |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"swap"
],
"properties": {
"seed": {
"type": "integer",
"default": 42,
"description": "Deterministic integer PRNG seed for reproducible Monte Carlo exposure profiles (default 42)."
},
"swap": {
"type": "object",
"required": [
"structureType",
"tenorYears",
"leg1",
"leg2"
],
"properties": {
"leg1": {
"type": "object",
"required": [
"payReceive",
"currency",
"notional",
"legType",
"dayCount"
],
"properties": {
"legType": {
"enum": [
"FIXED",
"FLOAT"
],
"type": "string",
"description": "Coupon calculation type (\"FIXED\" or overnight compounded RFR \"FLOAT\")."
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"SGD",
"JPY",
"AUD",
"CAD"
],
"type": "string",
"description": "Leg denomination currency."
},
"dayCount": {
"enum": [
"ACT/360",
"ACT/365F",
"30/360",
"ACT/ACT"
],
"type": "string",
"description": "Leg accrual day-count convention (e.g. \"ACT/360\", \"ACT/365F\", \"30/360\")."
},
"notional": {
"type": "number",
"description": "Leg notional in local currency units (e.g. 100000000 for 100M).",
"exclusiveMinimum": 0
},
"rfrIndex": {
"enum": [
"SOFR",
"ESTR",
"SONIA",
"SORA",
"TONA"
],
"type": "string",
"description": "Floating overnight RFR index when legType is \"FLOAT\"."
},
"fixedRate": {
"type": "number",
"description": "Fixed coupon rate in decimal (e.g. 0.0385 for 3.85%) when legType is \"FIXED\"."
},
"frequency": {
"enum": [
"ANNUAL",
"SEMI_ANNUAL",
"QUARTERLY",
"MONTHLY"
],
"type": "string",
"default": "ANNUAL",
"description": "Coupon payment frequency (default \"ANNUAL\")."
},
"spreadBps": {
"type": "number",
"default": 0,
"description": "Floating spread or cross-currency basis spread in basis points (e.g. -14.0 for -14 bps; default 0)."
},
"payReceive": {
"enum": [
"PAY",
"RECEIVE"
],
"type": "string",
"description": "Cash-flow direction from the bank/dealer perspective (\"PAY\" or \"RECEIVE\")."
},
"notionalSchedule": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"maxItems": 240,
"minItems": 1,
"description": "Optional custom per-period notional schedule in local currency units for amortizing/accreting swaps."
}
},
"description": "First swap leg specification.",
"additionalProperties": false
},
"leg2": {
"type": "object",
"required": [
"payReceive",
"currency",
"notional",
"legType",
"dayCount"
],
"properties": {
"legType": {
"$ref": "#/properties/swap/properties/leg1/properties/legType"
},
"currency": {
"$ref": "#/properties/swap/properties/leg1/properties/currency"
},
"dayCount": {
"$ref": "#/properties/swap/properties/leg1/properties/dayCount"
},
"notional": {
"$ref": "#/properties/swap/properties/leg1/properties/notional"
},
"rfrIndex": {
"$ref": "#/properties/swap/properties/leg1/properties/rfrIndex"
},
"fixedRate": {
"$ref": "#/properties/swap/properties/leg1/properties/fixedRate"
},
"frequency": {
"$ref": "#/properties/swap/properties/leg1/properties/frequency"
},
"spreadBps": {
"$ref": "#/properties/swap/properties/leg1/properties/spreadBps"
},
"payReceive": {
"$ref": "#/properties/swap/properties/leg1/properties/payReceive"
},
"notionalSchedule": {
"$ref": "#/properties/swap/properties/leg1/properties/notionalSchedule"
}
},
"description": "Second swap leg specification.",
"additionalProperties": false
},
"fxSpot": {
"type": "number",
"description": "Optional spot FX rate override in units of collateralCurrency per 1 unit of foreign currency (e.g. 1.112 for EUR/USD); omit to use active regimeId FX spot.",
"exclusiveMinimum": 0
},
"regimeId": {
"type": "string",
"default": "2026-normalized-multi-speed",
"description": "Historical market regime ID from mw://snapshots/historical-regimes (default \"2026-normalized-multi-speed\")."
},
"tenorYears": {
"type": "number",
"maximum": 50,
"description": "Swap maturity in years (0 < T <= 50, e.g. 5, 10, 30).",
"exclusiveMinimum": 0
},
"effectiveDate": {
"type": "string",
"description": "Optional ISO effective date YYYY-MM-DD for exact calendar-month schedule rolling."
},
"structureType": {
"enum": [
"VANILLA_IRS",
"CONSTANT_NOTIONAL_CCS",
"MTM_RESETTING_CCS"
],
"type": "string",
"description": "OTC swap structure: \"VANILLA_IRS\" (Tier 0+1 single-currency), \"CONSTANT_NOTIONAL_CCS\" (Tier 1 Pro corporate CCS), or \"MTM_RESETTING_CCS\" (Tier 1 Pro interbank resetting CCS)."
},
"reportingCurrency": {
"$ref": "#/properties/swap/properties/collateralCurrency",
"description": "Optional reporting currency for netPv and PV01 ladder (defaults to leg1.currency for IRS, collateralCurrency for CCS)."
},
"collateralCurrency": {
"enum": [
"USD",
"EUR",
"GBP",
"SGD",
"JPY",
"AUD",
"CAD"
],
"type": "string",
"description": "ISDA CSA collateral currency anchoring discounting (defaults to leg1.currency for VANILLA_IRS, and \"USD\" for CCS)."
},
"exchangeFinalNotional": {
"type": "boolean",
"description": "Override final t=T principal re-exchange (defaults to false for VANILLA_IRS, true for CCS)."
},
"exchangeInitialNotional": {
"type": "boolean",
"description": "Override initial t=0 principal exchange (defaults to false for VANILLA_IRS, true for CCS)."
}
},
"description": "Underlying IRS or CCS trade specification.",
"additionalProperties": false
},
"paths": {
"type": "integer",
"default": 2000,
"maximum": 5000,
"minimum": 250,
"description": "Number of antithetic Monte Carlo simulation paths (250 to 5000, default 2000)."
},
"fxVolPct": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Optional annualized lognormal FX spot volatility in percent (e.g. 10.5 for 10.5%); defaults to active regimeId ATM FX vol for CCS and 0 for IRS."
},
"rateVolBps": {
"type": "number",
"maximum": 500,
"description": "Optional annualized Hull-White 1F normal short-rate volatility in bps (e.g. 85); defaults to active regimeId currency vol.",
"exclusiveMinimum": 0
},
"meanReversion": {
"type": "number",
"maximum": 1,
"description": "Optional Hull-White 1F mean reversion speed a in decimal (e.g. 0.03); defaults to active regimeId.",
"exclusiveMinimum": 0
},
"confidenceLevel": {
"enum": [
0.95,
0.99
],
"type": "number",
"default": 0.99,
"description": "Potential Future Exposure (PFE) quantile confidence level (0.95 or default 0.99)."
},
"foreignRateVolBps": {
"type": "number",
"maximum": 500,
"description": "Optional foreign currency Hull-White 1F normal short-rate volatility in bps; defaults to active regimeId.",
"exclusiveMinimum": 0
},
"fxRateCorrelation": {
"type": "number",
"default": 0,
"maximum": 0.95,
"minimum": -0.95,
"description": "Correlation between domestic short-rate and FX spot shocks in [-0.95, 0.95] (default 0)."
}
},
"additionalProperties": false
}