Skip to main content
POST
/
quantlib
/
ml
/
features
/
calendar
Calendar Features
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/ml/features/calendar \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "dates": [
    "2024-01-15",
    "2024-03-31",
    "2024-06-30",
    "2024-12-31"
  ]
}
'
{
  "success": true,
  "data": {
    "day_of_week": [
      0,
      6,
      6,
      1
    ],
    "day_of_month": [
      15,
      31,
      30,
      31
    ],
    "month_of_year": [
      1,
      3,
      6,
      12
    ],
    "quarter": [
      1,
      1,
      2,
      4
    ],
    "is_month_end": [
      false,
      true,
      true,
      true
    ],
    "is_quarter_end": [
      false,
      true,
      true,
      true
    ],
    "is_year_end": [
      false,
      false,
      false,
      true
    ]
  }
}

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
dates
string[]
required

ISO format dates (YYYY-MM-DD)

Example:
[
"2024-01-15",
"2024-03-31",
"2024-06-30",
"2024-12-31"
]

Response

Calendar features

success
boolean
Example:

true

data
object