0.0.112 • Published 7 months ago

stock-market-minutes v0.0.112

Weekly downloads
-
License
GPL
Repository
-
Last release
7 months ago

stock-market-minutes

given a date object or an isostring, return the number of minutes into the market day for US markets

it runs from 0 to 390 from 930am till 4pm

returns negative values outside of market hours, indicating the negative number of minutes until the next market open

ignores holidays, weekends etc

use at your own risk

Installation

npm i stock-market-minutes

Usage

var {
    getMinutesIntoMarketDay
} = require('stock-market-minutes');

var tenAmMondayEst = '2023-06-26T10:00:00-04:00'; //or '2023-06-26T14:00:00Z';
var dateVersion = new Date(tenAmMondayEst);

console.log(getMinutesIntoMarketDay(tenAmMondayEst)); //30
console.log(getMinutesIntoMarketDay(dateVersion)); //30

See Also

stonks

0.0.112

7 months ago

0.0.11

7 months ago

0.0.111

7 months ago

0.0.1

11 months ago