fvfair-value
calculate_credit_loss

cva_dva

credit valuation adjustment on an exposure profile

incomeclosed_formimplemented

Formula reference: CVA = sum DF*EE*PD*LGD

Inputs

NameTypeReqDescription
exposure_profilearray✓Expected exposure per period.
pdnumber✓Probability of default over the horizon, in [0,1].
lgdnumber✓Loss given default in [0,1] (1 - recovery rate).
discount_ratenumber✓Discount rate as a decimal (0.10 = 10%); pre-tax when method=viu_pre_tax.

Standards

Risks & limits

  • Deterministic model: the result is a point value with no modelled distribution; input error and model error are not quantified here.
REST
curl -s -X POST https://fair-value.ascent-partners.com/v1/calculate/calculate_credit_loss \
  -H 'content-type: application/json' \
  -d '{"method":"cva_dva"}'
MCP
// MCP tools/call
{ "name": "calculate_credit_loss",
  "arguments": { "method": "cva_dva" } }