Yeqela kokuqukethwe
The Consortium

Abathuthukisi

finance_stress_scenario_run

NXS Risk Finance and Capital API

Open. Reading is free and needs no key.

GET /v1/gra/stress-scenario-run EServed

All operations

Loss of the caller's exposures under the caller's own shocks (compact form)

Your exposures and your own shocks: each shock is a loss rate from 0 to 1 on a key (an ISIC code, an ISO 3166-1 alpha-3 country, a UN M49 region written m49:014, or an NHS-1 hazard id; a bare three-digit number is an ISIC group). An exposure that several shocks hit loses 1 minus the product of the survival rates. The service holds no scenario: the NGFS and other scenario sets are cited elsewhere but their values are not held, so you bring the shock rates and say where they come from. Illustrative arithmetic, never a forecast or a supervisory result. Compact form: every input in the query; the JSON form is the POST of the same path. Illustrative, stores nothing, and carries its method card and a replication digest. State: exists.

MCP tool: finance.stress_scenario_run

Parameters

Parameters
IgamaInTypeEkwenzayo
exposures requiredquerystringRows id:amount:sector:location:hazards. sector is an ISIC Rev.5 code (section letter or 2 to 4 digits), location an ISO 3166-1 alpha-3 code or a label, hazards NHS-1 ids joined with |. The last three parts are optional.
shocks requiredquerystringOne scenario: comma list of key:rate (rate 0 to 1). Several scenarios: use the JSON form.
scenario optionalquerystringA name for the scenario
currency optionalquerystringISO 4217 label only

Responses

  • 200 Records with provenance
  • 304 Not modified (If-None-Match matched the strong ETag) (a problem, RFC 9457)
  • 400 Bad request (a problem, RFC 9457)
  • 429 Open-tier rate limit (a problem, RFC 9457)
  • 500 Internal error (a problem, RFC 9457)