nse-market-holidays

nse-market-holidays

Usage no npm install needed!

<script type="module">
  import nseMarketHolidays from 'https://cdn.skypack.dev/nse-market-holidays';
</script>

README

nse-market-holidays

Get national stock exchange(india) market timing and holidays

API

export declare function isTradingDay(d: String): Promise<boolean>;
export declare function getPreviousTradingDay(date: String): Promise<string>;
export declare function getNextTradingDay(date: String): Promise<string>;
export declare function isMarketOpen(): Promise<boolean>;
export declare function subscribeNotifyMarketOpen(callback: any): any;
export declare function subscribeNotifyMarketClose(callback: any): any;
export declare function unSubscribeNotifyMarketClose(subscriberId: any): any;
export declare function unSubscribeNotifyMarketOpen(subscriberId: any): any;
export declare function timeToOpen(): Promise<string>;