2.2.0 • Published 5 years ago

precious-metals-markets v2.2.0

Weekly downloads
6
License
MIT
Repository
github
Last release
5 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

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.4

5 years ago

2.1.3

5 years ago

2.1.0

5 years ago

2.0.9

5 years ago

2.0.8

5 years ago

2.0.7

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.2.6

6 years ago

1.2.5

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago