Zum Inhalt
HALOWERK

Finopswerk

bounded scenario cash ladder

Calculate exact per-currency balance bounds at supplied cutoffs when cash-flow occurrence dates, amounts and optional presence are bounded by caller scenarios, and compare a caller floor. Bounded supplied synthetic records; missing evidence remains unknown. A schema-valid unknown is a successful result at the same fixed price. Invalid input raises native HTTP400 before settlement.

POST https://finops.halowerk.com/v1/bounded-scenario-cash-ladder

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
openingarrayJa
cutoffsarrayJa
flowsarrayJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "opening": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "currency": {
            "type": "string",
            "pattern": "^[A-Z]{3}$"
          },
          "amount_minor": {
            "type": "string",
            "pattern": "^-?(0|[1-9][0-9]{0,11})$"
          },
          "floor_minor": {
            "type": "string",
            "pattern": "^-?(0|[1-9][0-9]{0,11})$"
          }
        },
        "required": [
          "currency",
          "amount_minor",
          "floor_minor"
        ]
      },
      "minItems": 1,
      "maxItems": 4
    },
    "cutoffs": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 4102444800
      },
      "minItems": 1,
      "maxItems": 16
    },
    "flows": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,16}$"
          },
          "currency": {
            "type": "string",
            "pattern": "^[A-Z]{3}$"
          },
          "earliest": {
            "type": "integer",
            "minimum": 0,
            "maximum": 4102444800
          },
          "latest": {
            "type": "integer",
            "minimum": 0,
            "maximum": 4102444800
          },
          "amount_low_minor": {
            "type": "string",
            "pattern": "^-?(0|[1-9][0-9]{0,11})$"
          },
          "amount_high_minor": {
            "type": "string",
            "pattern": "^-?(0|[1-9][0-9]{0,11})$"
          },
          "required": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "currency",
          "earliest",
          "latest",
          "amount_low_minor",
          "amount_high_minor",
          "required"
        ]
      },
      "minItems": 0,
      "maxItems": 24
    }
  },
  "required": [
    "opening",
    "cutoffs",
    "flows"
  ]
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "opening": [
    {
      "currency": "USD",
      "amount_minor": "10",
      "floor_minor": "0"
    }
  ],
  "cutoffs": [
    0,
    1,
    2,
    3
  ],
  "flows": [
    {
      "id": "F",
      "currency": "USD",
      "earliest": 1,
      "latest": 2,
      "amount_low_minor": "-4",
      "amount_high_minor": "-2",
      "required": true
    }
  ]
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-07, 02:42 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →