UNPKG

@master-chief/alpaca-ts

Version:

A TypeScript Node.js library for the https://alpaca.markets REST API and WebSocket streams.

23 lines 736 B
/** * News API * Returns latest news articles across stocks and crypto. By default returns latest 10 news articles. * @returns GetNewsResponse Successful response * @throws ApiError */ export const getNews = (httpRequest, { symbols, start, end, limit, sort, includeContent, excludeContentless, pageToken, }) => { return httpRequest.request({ method: "GET", url: "/v1beta1/news", query: { start: start, end: end, symbols: symbols, limit: limit, sort: sort, include_content: includeContent, exclude_contentless: excludeContentless, page_token: pageToken, }, }); }; //# sourceMappingURL=news.js.map