Loading the API reference…

Browse the API reference

Get open and closed days for a range

get https://quant-ws.prod.thinkalpha.io/markets/{marketIdentifierCode}/days-status

Returns one row per calendar day in a range, flagging each as open or closed and naming the holiday on days that are a holiday or a shortened day. Days are listed in the market's local zone.

The range is given by start and end instants. Although end is the exclusive boundary of the interval, the day list covers the local date of start through the local date of end, both endpoint dates included: the count of days listed is the local-date span from start to end inclusive. The interval may span at most 18,250 whole days (365 × 50); one wider than that is rejected with 400. mode (default all) narrows the result to only-closed, only-open or only-holidays. alwaysClosedDays reports the weekdays that have no open day within the requested range (for example weekends); it is the same for every mode.

For the session-by-session times within each open day, use GET /markets/{marketIdentifierCode}/trading-hours.

Authentication
Bearer token or Client credentials (HTTP Basic)

Path parameters

  • marketIdentifierCode string required

    The ISO 10383 market identifier code (MIC). For a set of known US and Canadian MICs the shared `XNYS` calendar is used; any other MIC is looked up directly.

Query parameters

  • start string<date-time> required

    Inclusive start of the range, an ISO 8601 instant with an offset.

  • end string<date-time> required

    End of the range, an ISO 8601 instant with an offset; must be on or after `start`. The interval is half-open (`end` is the exclusive boundary), but the local date containing `end` is the last day listed, so it is included in the result. The interval may span at most 18,250 whole days.

  • mode "all" | "only-closed" | "only-open" | "only-holidays"

    Which days to return. `all` (default): every day in the range. `only-closed`: days with `isOpen` false. `only-open`: days with `isOpen` true. `only-holidays`: days that carry a `holiday`.

    default: "all"

Responses

The calendar days in the requested range, in the market's local time zone, with whether the market opens that day and any holiday name. Every day is included in `all` mode; the other modes keep only the matching days.

  • interval Interval required

    The half-open `[start, end)` range the day statuses cover.

  • zoneId ZoneId required

    The IANA time zone of the market, which defines the local dates in `schedules`.

  • DayInfo[] required

    One entry per calendar day in the range when the mode is `all`. The other modes keep only the days that match.

  • alwaysClosedDays DayOfWeek[] required

    Weekdays that have no open day within the requested range.