Skip to content
HALOWERK

Finopswerk

cashflow hedge reserve basis bridge

Reconstruct a conditional cashflow-hedge reserve and nonfinancial-asset basis bridge from supplied cumulative instrument gains and opposing hedged-item PV changes. Absolute lower-of gives signed effective reserve; remaining instrument gain is P&L ineffectiveness. Return opening/closing components, period OCI/P&L gains, direct basis adjustment, recognized asset cost, ending reserve and three zero checks. Positive gain/reservecredit; negative loss. Basis removal is NOT OCI/P&L.

POST https://finops.halowerk.com/v1/cashflow-hedge-reserve-basis-bridge

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
opening_instrument_gainintegerYes
opening_item_changeintegerYes
closing_instrument_gainintegerYes
closing_item_change_domainarrayYes
recognize_assetbooleanYes
asset_cash_costintegerYes
reportobjectYes
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "opening_instrument_gain": {
      "type": "integer",
      "minimum": -1000000,
      "maximum": 1000000
    },
    "opening_item_change": {
      "type": "integer",
      "minimum": -1000000,
      "maximum": 1000000
    },
    "closing_instrument_gain": {
      "type": "integer",
      "minimum": -1000000,
      "maximum": 1000000
    },
    "closing_item_change_domain": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": -1000000,
        "maximum": 1000000
      },
      "minItems": 1,
      "maxItems": 2,
      "uniqueItems": true
    },
    "recognize_asset": {
      "type": "boolean"
    },
    "asset_cash_cost": {
      "type": "integer",
      "minimum": 0,
      "maximum": 2000000
    },
    "report": {
      "type": "object",
      "minProperties": 13,
      "maxProperties": 13,
      "propertyNames": {
        "enum": [
          "opening_effective_reserve",
          "closing_effective_before_basis",
          "opening_ineffective_gain",
          "closing_ineffective_gain",
          "period_oci_gain",
          "period_profit_gain",
          "derivative_period_gain",
          "basis_adjustment",
          "recognized_asset_cost",
          "ending_reserve",
          "gain_allocation_gap",
          "reserve_movement_gap",
          "asset_cost_gap"
        ]
      },
      "additionalProperties": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "n",
          "d"
        ],
        "properties": {
          "n": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": -1000000000000,
            "maximum": 1000000000000
          },
          "d": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "maximum": 1000000
          }
        }
      }
    }
  },
  "required": [
    "opening_instrument_gain",
    "opening_item_change",
    "closing_instrument_gain",
    "closing_item_change_domain",
    "recognize_asset",
    "asset_cash_cost",
    "report"
  ]
}

Open original schema

Published input example

{
  "opening_instrument_gain": 40,
  "opening_item_change": -30,
  "closing_instrument_gain": 120,
  "closing_item_change_domain": [
    -80
  ],
  "recognize_asset": true,
  "asset_cash_cost": 200,
  "report": {
    "opening_effective_reserve": {
      "n": 30,
      "d": 1
    },
    "closing_effective_before_basis": {
      "n": 80,
      "d": 1
    },
    "opening_ineffective_gain": {
      "n": 10,
      "d": 1
    },
    "closing_ineffective_gain": {
      "n": 40,
      "d": 1
    },
    "period_oci_gain": {
      "n": 50,
      "d": 1
    },
    "period_profit_gain": {
      "n": 30,
      "d": 1
    },
    "derivative_period_gain": {
      "n": 80,
      "d": 1
    },
    "basis_adjustment": {
      "n": -80,
      "d": 1
    },
    "recognized_asset_cost": {
      "n": 120,
      "d": 1
    },
    "ending_reserve": {
      "n": 0,
      "d": 1
    },
    "gain_allocation_gap": {
      "n": 0,
      "d": 1
    },
    "reserve_movement_gap": {
      "n": 0,
      "d": 1
    },
    "asset_cost_gap": {
      "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 โ†’