stonkinator
Version:
A low level stock data aggregation tool, a boring lib for others to build upon
19 lines (18 loc) • 751 B
TypeScript
import { NewsFeed } from "../utils/ambient";
/** Scrapes News from MarketWatch
* @param ticker - The ticker of the stock to fetch
* @param options - @see {@link MarketWatchNewsOptions} for the fetch options
* @returns A {@link NewsFeed} that includes the news of that specific channel
* @public
*/
export declare const LatestNews: (ticker: string, options?: MarketWatchNewsOptions) => Promise<NewsFeed[]>;
export interface MarketWatchNewsOptions {
/** The Channel to fetch data from.
* @defaultValue The default channel is `MarketWatch`
*/
channel?: "DowJonesNetwork" | "other" | "MarketWatch";
/** The page of news articles to fetch.
* @defaultValue Defaults to page `0`
*/
page?: number;
}