UNPKG

nepse-api-helper

Version:

a wrapper to use nepse api easily since they set up weird restrictions

19 lines (18 loc) 906 B
import { createHeaders } from "./http"; import { ClientState, IndexDetail, MarketStatus, SecurityBrief, SecurityDetail } from "./types"; export declare function createInitialState(): ClientState; export declare function initialize(): Promise<void>; export declare function getMarketStatus(): Promise<MarketStatus>; export declare function getSecurities(): Promise<SecurityBrief[]>; export declare function getSecurityDetail(symbol: string): Promise<SecurityDetail>; export declare function getToken(): Promise<string>; export declare function getNepseIndex(): Promise<IndexDetail[]>; export declare const nepseClient: { initialize: typeof initialize; getMarketStatus: typeof getMarketStatus; getSecurities: typeof getSecurities; getSecurityDetail: typeof getSecurityDetail; getNepseIndex: typeof getNepseIndex; getToken: typeof getToken; createHeaders: typeof createHeaders; };