Skip to content
HALOWERK

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-policy

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
initial_wealth_nintegerYes
target_nintegerYes
budget_ninteger, nullYes
amount_denominatorintegerYes
risky_returnsarrayYes
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
}

Open original schema

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

All endpoints in this hub โ†’