investing-economic-calendar
Version:
Extract economic events from the Investing.com widget.
13 lines (12 loc) • 510 B
TypeScript
import { type ApiCalendarParams } from "./models/ApiParams";
import { type Currency } from "./models/Currency";
import type { EconomicEvent } from "./models/EconomicEvent";
export interface Params extends ApiCalendarParams {
currencies?: Currency[];
}
/**
* Extract events from the widget
* @param {Params} params - Parameters to send to the widget
* @returns {EconomicEvent[]} - Array with all events extracted
*/
export declare function fetchEconomicEvents(params: Params): Promise<EconomicEvent[]>;