Expected credit loss
calculate_eclCompute IFRS 9 or HKFRS 9 expected credit loss for a single exposure by multiplying EAD, PD, and LGD, returning the ECL amount in the exposure's currency.
Instructions
Compute IFRS 9 / HKFRS 9 expected credit loss as EAD x PD x LGD. Use this for a single exposure; for portfolio or staging PD models use the delegated credit-risk tools. Returns the ECL amount in the exposure's currency.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loss_given_default | Yes | Loss given default as a decimal 0-1 (1 - recovery rate). | |
| exposure_at_default | Yes | Exposure at default (EAD) in currency units. | |
| probability_of_default | Yes | Probability of default over the horizon, as a decimal 0-1. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error detail, present only when status='error'. | |
| steps | No | Ordered computation steps, when the method reports them. | |
| value | No | Primary result: a number for scalar tools, an object for valuation tools. | |
| method | No | Method or tool name that produced the result. | |
| status | Yes | 'ok' on success, 'error' on failure. | |
| ticker | No | Ticker the result pertains to, when applicable. | |
| assumptions | No | Inputs and assumptions used, echoed for traceability. | |
| formula_ref | No | Formula or standards reference for the method. | |
| data_timestamp | No | ISO-8601 UTC timestamp of the underlying data, when fetched. |