Use when you need a Canadian settlement date or accrual fraction
foundry.dap.solutions/api/compute-day-count-to-settlement
Use when you need a Canadian settlement date or accrual fraction. Rolls a trade date forward on the Payments Canada calendar and counts the accrual under ACT/360, ACT/365F, 30/360, 30E/360 or ACT/ACT-ISDA. $0.01 USDC on Base per answer via x402; a refusal is free.
POST
https://foundry.dap.solutions/api/compute-day-count-to-settlementUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://foundry.dap.solutions/api/compute-day-count-to-settlement", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"accrual_start":"2026-07-01","acknowledge":"no-ruling-v1","calendar":"ca-payments-canada","convention":"ACT/365F","freshness_tolerance":"P90D","settlement_lag":"2","trade_date":"2026-10-09"}),
});
console.log(await res.json());Example input
{
"accrual_start": "2026-07-01",
"acknowledge": "no-ruling-v1",
"calendar": "ca-payments-canada",
"convention": "ACT/365F",
"freshness_tolerance": "P90D",
"settlement_lag": "2",
"trade_date": "2026-10-09"
}