@master-chief/alpaca-ts
Version:
A TypeScript Node.js library for the https://alpaca.markets REST API and WebSocket streams.
18 lines • 689 B
JavaScript
/**
* Get Market Calendar info
* 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.
* @returns Calendar OK
* @throws ApiError
*/
export const getCalendar = (httpRequest, { start, end, dateType, }) => httpRequest.request({
method: "GET",
url: "/v2/calendar",
query: {
start: start,
end: end,
date_type: dateType,
},
});
//# sourceMappingURL=calendar.js.map