Finopswerk
finite tree risk budget portfolio policy
Solves a finite two-period portfolio-control problem with a dynamic coherent risk constraint on a full binary history tree with fair branch probabilities, one cash asset (gross 1) and one risky asset with 6 supplied gross return fractions. At root, UP and DOWN the risky weight is 0, 1/2 or 1; long only, self-financing. Maximizes expected terminal wealth under root nested risk <= budget over all 27 deterministic policies and returns the nondominated frontier.
POST https://finops.halowerk.com/v1/finite-tree-risk-budget-portfolio-policyInputs
| Field | Type | Required | Description |
|---|---|---|---|
| initial_wealth_n | integer | Yes | |
| target_n | integer | Yes | |
| budget_n | integer, null | Yes | |
| amount_denominator | integer | Yes | |
| risky_returns | array | Yes |
Show full input schema
{
"type": "object",
"properties": {
"initial_wealth_n": {
"type": "integer",
"minimum": 0,
"maximum": 100
},
"target_n": {
"type": "integer",
"minimum": 0,
"maximum": 100
},
"budget_n": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 100
},
"amount_denominator": {
"type": "integer",
"minimum": 1,
"maximum": 10
},
"risky_returns": {
"type": "array",
"minItems": 6,
"maxItems": 6,
"items": {
"type": "object",
"properties": {
"n": {
"type": "integer",
"minimum": 0,
"maximum": 8
},
"d": {
"type": "integer",
"minimum": 1,
"maximum": 4
}
},
"required": [
"n",
"d"
],
"additionalProperties": false
}
}
},
"required": [
"initial_wealth_n",
"target_n",
"budget_n",
"amount_denominator",
"risky_returns"
],
"additionalProperties": false
}Published input example
{
"initial_wealth_n": 12,
"target_n": 12,
"budget_n": 4,
"amount_denominator": 3,
"risky_returns": [
{
"n": 2,
"d": 1
},
{
"n": 1,
"d": 2
},
{
"n": 1,
"d": 1
},
{
"n": 1,
"d": 1
},
{
"n": 3,
"d": 1
},
{
"n": 0,
"d": 1
}
]
}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