@rpidanny/nepse.js
Version:
Fetch stock data from Nepal Stock Exchange
16 lines (15 loc) • 953 B
TypeScript
import { GenericClient } from '../utils/generic-client';
import { INepse } from './interfaces';
import { TAuthenticateResponse, TGetFloorSheetResponse, TGetSecuritiesResponse, TGetSecurityHistoryResponse } from './types';
export declare class Nepse extends GenericClient implements INepse {
protected readonly upstreamName = "nepse";
protected readonly endpoint = "https://newweb.nepalstock.com/api";
protected getAuthHeader(): Promise<string>;
private handleResponse;
patchAccessToken(token: string): string;
authenticate(): Promise<TAuthenticateResponse>;
getTodaysPricesExport(date: string): Promise<string>;
getFloorSheet(page?: number, size?: number): Promise<TGetFloorSheetResponse>;
getSecurities(includeDelisted?: boolean): Promise<TGetSecuritiesResponse[]>;
getSecurityHistory(securityId: number, startDate: string, endDate: string, page?: number, size?: number): Promise<TGetSecurityHistoryResponse>;
}