Finopswerk
finite loss capital allocation euler certificate
Computes exact Expected Shortfall capital allocation for one fixed joint finite loss table with 2..3 books, 2..4 positive-probability states and an explicit tail mass beta. Aggregate L = sum of books; ES = max q.L with sum q = 1, 0 <= q <= p/beta. Returns all optimal weight-polytope vertices, their capital vectors C_i = q.X_i, the threshold and primal/dual/complementarity certificates. Classical Euler allocation applies only if the capital face is a singleton.
POST https://finops.halowerk.com/v1/finite-loss-capital-allocation-euler-certificateInputs
| Field | Type | Required | Description |
|---|---|---|---|
| problem | See schema | Yes |
Show full input schema
{
"type": "object",
"required": [
"problem"
],
"properties": {
"problem": {
"anyOf": [
{
"type": "object",
"required": [
"state_mass_n",
"state_mass_d",
"book_loss_n",
"loss_d",
"tail_mass_n",
"tail_mass_d"
],
"properties": {
"state_mass_n": {
"type": "array",
"minItems": 2,
"maxItems": 4,
"items": {
"type": "integer",
"minimum": 1,
"maximum": 6
}
},
"state_mass_d": {
"type": "integer",
"minimum": 2,
"maximum": 12
},
"book_loss_n": {
"type": "array",
"minItems": 2,
"maxItems": 3,
"items": {
"type": "array",
"minItems": 2,
"maxItems": 4,
"items": {
"type": "integer",
"minimum": -100,
"maximum": 100
}
}
},
"loss_d": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"tail_mass_n": {
"type": "integer",
"minimum": 1,
"maximum": 12
},
"tail_mass_d": {
"type": "integer",
"minimum": 1,
"maximum": 12
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
}Published input example
{
"problem": {
"state_mass_n": [
1,
1,
2
],
"state_mass_d": 4,
"book_loss_n": [
[
1,
5,
8
],
[
1,
1,
2
]
],
"loss_d": 1,
"tail_mass_n": 1,
"tail_mass_d": 2
}
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.
More endpoints in this hub
- Finopswerk0.003 USDC
accumulating sick leave liability
POSThttps://finops.halowerk.com/v1/accumulating-sick-leave-liabilityMeasures one closing salary-only liability for non-vesting accumulating sick leave. For N identical employees with unused old carry C and next-year entitlement E (used first), the caller supplies three scenarios of future absence days a_j w
- Finopswerk0.003 USDC
acquisition goodwill nci bridge
POSThttps://finops.halowerk.com/v1/acquisition-goodwill-nci-bridgeReconstructs one acquisition-date business-combination goodwill/NCI bridge from caller-measured identified assets, assumed liabilities, cash and non-cash consideration and previously held interest. NCI mode 0 = proportionate identifiable ne
- Finopswerk0.003 USDC
adjusted coupon cashflow ledger
POSThttps://finops.halowerk.com/v1/adjusted-coupon-cashflow-ledgerFrom a civil start date, tenor, EOM, principal, rate and explicit calendars, derives unadjusted accrual anchors, Following/ModifiedFollowing/Preceding payment dates, ACT365F exact interest and the last principal redemption. Payment adjustme