UNPKG

@rpidanny/nepse.js

Version:

Fetch stock data from Nepal Stock Exchange

14 lines (13 loc) 719 B
import { INepse, INepseExtended } from './interfaces'; import { TDailyFloorSheet, TDailyStockPrice, TSecurityHistory } from './types'; export declare class NepseExtended implements INepseExtended { private readonly nepse; private parsingOptions; constructor(nepse: INepse); getTodaysPricesExport(date: string): Promise<TDailyStockPrice[]>; downloadTodaysPriceExportToCsv(date: string, path: string): Promise<string>; transformData(data: Record<string, any>): TDailyStockPrice; getFloorSheet(): Promise<TDailyFloorSheet>; downloadFloorSheetsToCsv(path: string): Promise<string>; getSecurityHistory(securityId: number, startDate: string, endDate: string): Promise<TSecurityHistory>; }