Day Count
day_countDay-count conventions and accrued interest for bonds, loans and swaps: days and year fraction between two dates under ACT/360, ACT/365F, ACT/ACT ISDA, NL/365, 30/360 (ISDA bond basis), 30/360 US (SIA end-of-February rules), 30E/360 and 30E/360 ISDA, with simple interest on a principal; or, for a fixed-coupon bond, the coupon schedule around a settlement date (previous / next coupon, end-of-month rule), accrued days and accrued interest per face amount, including ACT/ACT ICMA (Treasuries). Matches QuantLib. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/day-count
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "day_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| mode | No | between | |
| start | No | ||
| ratePct | No | between: annual simple rate for the interest amount; coupon: coupon rate | |
| maturity | No | coupon: maturity date; between: termination date for 30E/360 ISDA | |
| frequency | No | coupon: payments per year | |
| principal | No | ||
| convention | No | all | |
| settlement | No | coupon: settlement date |