Cash-Leg Window Exposure

When a token leg settles at any hour but the cash leg only moves while a payment rail is open, the principal sits unsettled until the rail next opens. This node measures that wait in seconds, multiplies it by the principal, and prices it at a funding rate you state. You declare the token leg time and either a list of UTC open windows or a rail calendar (weekday hours, UTC offsets by date, holidays). The node carries no calendar of its own and never reads a clock.

🔒 All inputs are processed locally in your browser. No data is transmitted. Do not enter real personal data — use synthetic or anonymised inputs only.
Inputs
Keys: token_leg_time and as_of (UTC, YYYY-MM-DDTHH:MM:SSZ), principal_minor_units (integer string), funding_rate_bp (optional integer basis points), horizon_days (optional, 1 to 60, default 14), cash_instrument (optional: fiat_bank_money, stablecoin, deposit_token, future_instrument), and exactly one of cash_leg_open_windows (a list of open_utc and close_utc) or rail_calendar (rail_id, calendar_version, source_pin, covers_from, covers_to, window_rules, utc_offset_segments, holidays). A window is open from its open instant up to, not including, its close instant. All inputs are caller-asserted.
Basis and declarations
This node implements no published standard. It is date and time arithmetic over a calendar you declare. Every figure is a value you asserted; the node cannot tell whether a rail table is current or complete, and it never hardcodes one.
Exposure runs from the token leg instant to the next instant the declared cash windows are open. A token leg inside an open window has zero exposure (ATOMIC_POSSIBLE). A later window inside the horizon gives WINDOWED. No window inside the horizon gives NO_WINDOW_IN_HORIZON and no figures. exposure_principal_seconds is the principal times the exposure in seconds, as a decimal string. The optional carry cost is principal times rate times exposure over 10000 times 31536000 (actual over 365), rounded half to even to a whole minor unit. crosses_weekend is true when the exposure interval contains any Saturday or Sunday instant in UTC.
Rail calendars: a rail_calendar lists weekday rules (the business-day weekdays, and the local open and close clock times with day offsets, so a rail that opens the evening before its business day is expressible), UTC offsets declared by date range so a daylight-saving change is your statement and not a library lookup, and holidays as business-day dates with no window. Endpoints between local midnight and 02:00 on a clock-change day are not supported; keep rail hours clear of them or use cash_leg_open_windows in UTC.
The Fedwire sample declares what the Federal Reserve Financial Services pages state as retrieved on 2026-11-12: the Fedwire Funds Service opens at 9:00 p.m. ET on the preceding calendar day and closes at 7:00 p.m. ET (the customer-transfer cutoff is 6:45 p.m. ET, so declare 18:45 as the close if that is the cutoff you mean), Monday to Friday, closed on the Federal Reserve holidays in the K.8 table. K.8 weekend rules: a holiday on a Saturday leaves the Reserve Banks open the preceding Friday (July 4, 2026 is a Saturday, so Friday July 3 is a business day); a holiday on a Sunday closes all offices the following Monday (July 4, 2027 is a Sunday, so Monday July 5 is closed). The Federal Reserve Board's adopted extension of Fedwire to 22 hours on six days (Sunday to Friday, including weekday holidays) is not yet effective, with implementation in 2028 or 2029; the samples model today's Monday to Friday service. An older Operating Circular page still states a 6:30 p.m. ET close and disagrees with the current schedule; it is not used here.
The FedNow sample declares a 24x7x365 service in UTC. FedNow publishes no maintenance window, so none is declared. The sample does not model the roughly 7:01 p.m. ET business-day roll.
On the cash leg of tokenized Treasuries: DTCC's own text says distributions and maturities are paid in fiat to Participants' traditional accounts and lists digital cash as a roadmap item for 2027 and beyond; its launch release states no cash leg. The node takes no position on which rail a given cash leg uses. You declare the rail whose hours apply. The 2 a.m. to 6 p.m. ET window DTCC states for token conversion on business days is a different clock from any payment rail and is not modelled.
The node never computes a balance-sheet saving or any marketing figure, and it names no unannounced product. Limits: principal up to 18 digits, rate up to 100000 basis points, at most 500 windows and 400 holidays. Every refusal names its code and nothing is coerced: floats, numeric principals, nulls, offsets inside time strings and impossible dates all refuse.

Ask your agent

Copy this paragraph into Claude, OpenClaw, or any MCP-aware agent to run this exact tool, with this sample, and verify the artifact.

Run the AINumbers MCP tool `cashleg_window_exposure`. Task: Compute how long a token leg that settles at any hour waits for a cash leg that only moves while a payment rail is open, against a rail calendar or UTC windows the caller declares: exposure seconds, principal-seconds, next window open and close, weekend crossing and an optional carry cost (actual over 365, half-even).
Call it with arguments: {"policy_parameters":{"principal_minor_units":"100000000000","as_of":"2026-10-01T00:00:00Z","token_leg_time":"2026-10-03T00:00:00Z","rail_calendar":{"rail_id":"fedwire-funds-service","calendar_version":"fedwire-hours-and-k8-pinned-2026-11-12","source_pin":"fedwire-nss-operating-hours-2026-11-12 (hours); fed-holiday-k8-2026-11-12 (holidays)","covers_from":"2026-01-01","covers_to":"2027-12-31","window_rules":[{"weekdays":[1,2,3,4,5],"open_day_offset":-1,"open_local":"21:00","close_day_offset":0,"close_local":"19:00"}],"utc_offset_segments":[{"from_date":"2026-01-01","to_date":"2026-03-07","offset_minutes":-300},{"from_date":"2026-03-08","to_date":"2026-10-31","offset_minutes":-240},{"from_date":"2026-11-01","to_date":"2027-03-13","offset_minutes":-300},{"from_date":"2027-03-14","to_date":"2027-11-06","offset_minutes":-240},{"from_date":"2027-11-07","to_date":"2027-12-31","offset_minutes":-300}],"holidays":["2026-01-01","2026-01-19","2026-02-16","2026-05-25","2026-06-19","2026-09-07","2026-10-12","2026-11-11","2026-11-26","2026-12-25","2027-01-01","2027-01-18","2027-02-15","2027-05-31","2027-07-05","2027-09-06","2027-10-11","2027-11-11","2027-11-25"]},"cash_instrument":"fiat_bank_money","funding_rate_bp":450}}
Verify before trusting: call `verify_execution_hash` on mcp.ainumbers.co (https://mcp.ainumbers.co/mcp) with the parameter `claimed_hash` set to the returned `execution_hash`, passing the full artifact the run returned (the object containing `policy_parameters` + `output_payload` + `execution_hash`; equivalently `policy_parameters` + `output_payload` with `claimed_hash`), not the bare hash string.
Return the ledger link https://ledger.ainumbers.co/ so a human can re-verify without contacting us.
PII rule: All inputs are processed locally in your browser. No data is transmitted. Do not enter real personal data — use synthetic or anonymised inputs only.
Over MCP, the run happens on the AINumbers worker. No AINumbers server stores your inputs.
Open the tool with the sample prefilled: https://ainumbers.co/chaingraph/art-847-cashleg-window-exposure.html#p=v1.H4sIAAAAAAAA_wG0BEv7eyJwcmluY2lwYWxfbWlub3JfdW5pdHMiOiIxMDAwMDAwMDAwMDAiLCJhc19vZiI6IjIwMjYtMTAtMDFUMDA6MDA6MDBaIiwidG9rZW5fbGVnX3RpbWUiOiIyMDI2LTEwLTAzVDAwOjAwOjAwWiIsInJhaWxfY2FsZW5kYXIiOnsicmFpbF9pZCI6ImZlZH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