finops.halowerk.com/v1/finite-loss-capital-allocation-euler-certificate
Compute exact Expected Shortfall capital allocation for one fixed joint finite loss table,2..3 books/2..4 positive-probability states. Tailmass beta is explicit; losses are signed amounts on one common denominator. Aggregate L=sum books; ES=max q.L with sumq=1,0<=q<=p/beta. Return entire optimal weight-polytope vertices and their capital-vector images C_i=q.X_i, a probability-proportional atomic-t
POST
https://finops.halowerk.com/v1/finite-loss-capital-allocation-euler-certificateUptime100% 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-loss-capital-allocation-euler-certificate", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"problem":{"book_loss_n":[[1,5,8],[1,1,2]],"loss_d":1,"state_mass_d":4,"state_mass_n":[1,1,2],"tail_mass_d":2,"tail_mass_n":1}}),
});
console.log(await res.json());Example input
{
"problem": {
"book_loss_n": [
[
1,
5,
8
],
[
1,
1,
2
]
],
"loss_d": 1,
"state_mass_d": 4,
"state_mass_n": [
1,
1,
2
],
"tail_mass_d": 2,
"tail_mass_n": 1
}
}