Linear two-step chain for in-house-bank (IHB) settlement cycles. Step 1 computes N-entity corporate cash netting: gross inter-company positions to net positions to minimum settlement legs using a greedy matching algorithm per BIS CPMI net settlement framework (2012). Reports wire-count savings and netting efficiency. Netting statement is suitable for anchor_batch Merkle-leaf receipts. Step 2 allocates overnight IHB interest on the net settlement balances per OECD Transfer Pricing Guidelines 2022 Chapter X arm’s-length rate, with ACT/360 day-count and per-member withholding tax deduction. NOT FICC clearing margin netting. No personal data is processed.
compute_multilateral_netting{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "compute_multilateral_netting",
"arguments": {
"base_currency": "USD",
"entities": [
{"entity_id": "PARENT_CO", "name": "Parent Corp"},
{"entity_id": "SUB_US", "name": "US Subsidiary"},
{"entity_id": "SUB_EU", "name": "EU Subsidiary"}
],
"gross_positions": [
{"from_entity":"PARENT_CO","to_entity":"SUB_US","amount":1000,"currency":"USD"},
{"from_entity":"SUB_US","to_entity":"SUB_EU","amount":800,"currency":"USD"},
{"from_entity":"SUB_EU","to_entity":"PARENT_CO","amount":600,"currency":"USD"}
]
}
},
"id": 1
}
allocate_ihb_interest{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "allocate_ihb_interest",
"arguments": {
"pool_type": "notional",
"pool_rate_annual_pct": 5.0,
"day_count_convention": "ACT/360",
"period_days": 1,
"currency": "USD",
"members": [
{"member_id": "PARENT_CO", "balance": 200, "withholding_rate_pct": 0},
{"member_id": "SUB_US", "balance": -200, "withholding_rate_pct": 0},
{"member_id": "SUB_EU", "balance": 200, "withholding_rate_pct": 15}
]
}
},
"id": 2
}