Batch Year Fraction
quantlib-scheduling
Batch Year Fraction
Calculate year fractions for multiple date pairs in a single request using the same day count convention. Efficient for processing multiple coupon periods, calculating accruals for a portfolio of bonds, or batch interest calculations. Returns results in the same order as input. [Tier: FREE, Credits: 0]
POST
Batch Year Fraction
Authorizations
API key for authentication. Get your key at https://api.fincept.in/auth/register
Body
application/json
Array of date pairs [[start1, end1], [start2, end2], ...] in ISO format
Required array length:
2 elementsExample:
[
["2024-01-01", "2024-07-01"],
["2024-07-01", "2025-01-01"],
["2025-01-01", "2025-07-01"]
]Day count convention to apply to all date pairs
Available options:
ACT/360, ACT/365, ACT/365 Actual, ACT/ACT ISDA, 30/360, 30E/360, 30E/360 ISDA, 30/360 European, Business/252 Example:
"30/360"
