Hedges, Journals, Disclosures and Reconciliation

Hedge functions require designation, eligibility, an economic relationship and explicit lifecycle facts. They calculate reference entries but never post them.

hedge <- list(relationship_id="H",hedge_type="CASH_FLOW",hedging_change=120,
  hedged_change=-100,hedge_ratio=1,target_hedge_ratio=1,
  hedging_instrument_eligible=TRUE,hedged_item_eligible=TRUE,
  risk_component_eligible=TRUE,designation_documented=TRUE,
  risk_management_objective="Manage cash-flow risk",designated=TRUE,
  economic_relationship=TRUE,credit_risk_dominates=FALSE,
  forecast_transaction_expected=TRUE)
measured <- measure_hedge(hedge)
measured[c("status","oci_effective","ineffectiveness_pnl")]
#> $status
#> [1] "ELIGIBLE"
#> 
#> $oci_effective
#> [1] 100
#> 
#> $ineffectiveness_pnl
#> [1] 20

Reference journals balance by batch. Account mapping and posting approval are institutional responsibilities.

inst <- list(list(instrument_id="x",gross_amount=100,instrument_type="LOAN"))
ecl <- list(list(instrument_id="x",stage="STAGE_1",final_ecl=20))
journals <- build_journals(ecl,c(x=5),c(x="AMORTISED_COST"),inst)
stopifnot(abs(sum(vapply(journals,function(x)x$debit-x$credit,numeric(1))))<1e-12)

Disclosure aggregation computes coverage from aggregate amounts and keeps the regulatory bridge outside the accounting calculation.