Compute day count to settlement
compute-day-count-to-settlementSettlement date on the Payments Canada holiday calendar, and the accrual fraction under ACT/360, ACT/365F, 30/360, 30E/360 or ACT/ACT-ISDA. Send all seven inputs, including acknowledge no-ruling-v1 and a freshness_tolerance in whole days written PD. It refuses rather than guesses: a missing acknowledgement or tolerance, a tolerance over the ratified ceiling, calendar data older than your tolerance, a trade date outside the calendar's coverage or not a business day, and any missing, unknown or malformed input. Costs $0.01 in USDC on Base per computed answer, under x402; a refusal is not charged. The answer is the JSON envelope of https://foundry.dap.solutions/api/compute-day-count-to-settlement, byte for byte, with the artifact hash that answered. Full rules: https://foundry.dap.solutions/hub.md
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calendar | Yes | ||
| convention | Yes | ||
| trade_date | Yes | a business day on the calendar | |
| acknowledge | Yes | ||
| accrual_start | Yes | a real calendar date, the first day of the accrual period, counted | |
| settlement_lag | Yes | ||
| freshness_tolerance | Yes | at most the ratified ceiling |