finops.halowerk.com/v1/finite-correlated-default-tranche-loss-distribution
Derive the COMPLETE two-date JOINT tranche-loss probability law and exact contractual default/premium cashflow expectations for a supplied finite CORRELATED-default portfolio. No independence/copula/PD/correlation estimate invented: each supplied state specifies every named exposure default stage0never/1firstdate/2seconddate, positive integerprobabilityweight, fullnormalizedfinitejointlaw.
POST
https://finops.halowerk.com/v1/finite-correlated-default-tranche-loss-distributionUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://finops.halowerk.com/v1/finite-correlated-default-tranche-loss-distribution", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"LGD_bp":[10000,10000],"accrual_bp":[5000,5000],"amount_denominator":1,"attachment_n":50,"detachment_n":150,"discount_bp":[10000,10000],"exposures_n":[100,100],"scenarios":[{"default_stage":[0,0],"weight":2},{"default_stage":[1,0],"weight":1},{"default_stage":[2,1],"weight":1}]}),
});
console.log(await res.json());Example input
{
"LGD_bp": [
10000,
10000
],
"accrual_bp": [
5000,
5000
],
"amount_denominator": 1,
"attachment_n": 50,
"detachment_n": 150,
"discount_bp": [
10000,
10000
],
"exposures_n": [
100,
100
],
"scenarios": [
{
"default_stage": [
0,
0
],
"weight": 2
},
{
"default_stage": [
1,
0
],
"weight": 1
},
{
"default_stage": [
2,
1
],
"weight": 1
}
]
}