Skip to main content
POST
/
quantlib
/
scheduling
/
daycount
/
day-count
Day Count
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/scheduling/daycount/day-count \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "start_date": "2024-03-01",
  "end_date": "2024-03-31",
  "convention": "30/360"
}
'
{
  "success": true,
  "data": {
    "start_date": "2024-03-01",
    "end_date": "2024-03-31",
    "convention": "30/360",
    "day_count": 30
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register

Body

application/json
start_date
string<date>
required

Start date of the period in ISO format (YYYY-MM-DD)

Example:

"2024-03-01"

end_date
string<date>
required

End date of the period in ISO format (YYYY-MM-DD)

Example:

"2024-03-31"

convention
enum<string>
default:ACT/360

Day count convention to use

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"

Response

Successful Response

success
boolean
Example:

true

data
object