---
title: "Year Fraction"
method: POST
path: "/quantlib/scheduling/daycount/year-fraction"
tags: ["quantlib-scheduling"]
---

# Year Fraction

`POST /quantlib/scheduling/daycount/year-fraction`

## Request

- Base URL: `https://api.fincept.in` (the document declares no server; this is the origin it was published from)
- URL: `https://api.fincept.in/quantlib/scheduling/daycount/year-fraction`
- Auth: API key in header `X-API-Key`

Calculate year fraction between two dates using a day count convention

## Request body

- YearFractionRequest
  - `start_date` string, required
  - `end_date` string, required
  - `convention` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fincept/apis/fincept-api.md) · [All operations](https://skmtc.dev/fincept/apis/fincept-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fincept/apis/fincept-api/revisions/e9c0076ea55a?raw)
