Get Market Calendar info
GET {{baseUrl}}/v2/calendar
The calendar API serves the full list of market days from 1970 to 2029. It can also be queried by specifying a start and/or end time to narrow down the results. In addition to the dates, the response also contains the specific open and close times for the market days, taking into account early closures.
Returns the market calendar.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
start | string | The first date to retrieve data for (inclusive) | |
end | string | The last date to retrieve data for (inclusive) | |
date_type | string | Indicates what start and end mean. Enum: ‘TRADING’ or ‘SETTLEMENT’. Default value is ‘TRADING’. If TRADING is specified, returns a calendar whose trading date matches start, end. If SETTLEMENT is specified, returns the calendar whose settlement date matches start and end. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string | ||
Apca-Api-Key-Id | string | ||
Apca-Api-Secret-Key | string |
RESPONSES
status: OK
[{"date":"1970-01-02","open":"09:30","close":"16:00","session_open":"0400","session_close":"2000","settlement_date":"1970-01-06"},{"date":"1970-01-05","open":"09:30","close":"16:00","session_open":"0400","session_close":"2000","settlement_date":"1970-01-07"},{"date":"1970-01-06","open":"09:30","close":"16:00","session_open":"0400","session_close":"2000","settlement_date":"1970-01-08"},{"date":"1970-01-07","open":"09:30","close":"16:00","session_open":"0400","session_close":"2000","settlement_date":"1970-01-09"},{"date":"1970-01-08","open":"09:30","close":"16:00","session_open":"0400","session_close":"2000","settlement_date":"1970-01-12"}]