Skip to main content
POST
/
quantlib
/
scheduling
/
calendar
/
business-days-between
Business Days Between
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/scheduling/calendar/business-days-between \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "start_date": "2024-01-02",
  "end_date": "2024-01-31",
  "calendar": "US"
}
'
{
  "success": true,
  "data": {
    "start_date": "2024-01-02",
    "end_date": "2024-01-31",
    "business_days": 21,
    "calendar": "US"
  }
}

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 in ISO format (YYYY-MM-DD), excluded from count

Example:

"2024-01-02"

end_date
string<date>
required

End date in ISO format (YYYY-MM-DD), included in count

Example:

"2024-01-31"

calendar
enum<string>
default:US

Calendar to use for business day calculation. Options: US, UK, TARGET, Japan, Weekend

Available options:
US,
UK,
TARGET,
Japan,
Weekend
Example:

"US"

Response

Successful Response

success
boolean
Example:

true

data
object