Skip to content
HALOWERK

Finopswerk

finite lookback option running extrema distribution

Computes the exact finite-tree law and model price of a European floating-strike lookback option. A full binary history tree of depth 1..3 supplies node prices and left probabilities q/Q. The joint law keeps terminal S, running MIN and MAX; writer payouts are S-MIN for the call and MAX-S for the put. Returns the merged joint law, marginals, expected losses and discounted prices. The caller law is a risk-neutral model, not inferred market probabilities.

POST https://finops.halowerk.com/v1/finite-lookback-option-running-extrema-distribution

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
problemSee schemaYes
Show full input schema
{
  "type": "object",
  "required": [
    "problem"
  ],
  "properties": {
    "problem": {
      "anyOf": [
        {
          "type": "object",
          "required": [
            "depth",
            "node_price_n",
            "price_d",
            "left_probability_n",
            "probability_d",
            "gross_return_n",
            "gross_return_d"
          ],
          "properties": {
            "depth": {
              "type": "integer",
              "minimum": 1,
              "maximum": 3
            },
            "node_price_n": {
              "type": "array",
              "minItems": 3,
              "maxItems": 15,
              "items": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              }
            },
            "price_d": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "left_probability_n": {
              "type": "array",
              "minItems": 1,
              "maxItems": 7,
              "items": {
                "type": "integer",
                "minimum": 0,
                "maximum": 12
              }
            },
            "probability_d": {
              "type": "integer",
              "minimum": 1,
              "maximum": 12
            },
            "gross_return_n": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "gross_return_d": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "additionalProperties": false
}

Open original schema

Published input example

{
  "problem": {
    "depth": 1,
    "node_price_n": [
      100,
      80,
      120
    ],
    "price_d": 1,
    "left_probability_n": [
      1
    ],
    "probability_d": 2,
    "gross_return_n": 1,
    "gross_return_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 โ†’