2.2.0 • Published 4 years ago

precious-metals-markets v2.2.0

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

A node.js module that returns a boolean or a text string based on precious markets trading status in the past, current or in the future.

When markets are open for trading, it returns true. Otherwise, it returns a relative time string which indicates when markets will be/would be/were open for trading next.

Usage:

import marketsOpen from 'precious-metals-markets';
...
marketStatus = marketsOpen(); // markets status for current time
wasMarketOpen = marketsOpen(new Date("Wed, 27 March 2019 13:30:00")); // markets status for specific day/time

OR

const marketsOpen = require('precious-metals-markets');
...
marketsOpen(); // markets status for current time
marketsOpen(new Date("Wed, 27 March 2019 13:30:00")); // markets status for specific day/time

Live Demo:

https://stackblitz.com/edit/ionic-q79c1g?embed=1&file=pages/home/home.ts&hideNavigation=1

2.2.0

4 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.4

4 years ago

2.1.3

4 years ago

2.1.0

4 years ago

2.0.9

4 years ago

2.0.8

4 years ago

2.0.7

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago