@gainsnetwork/sdk 0.1.20-rc2 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,7 +27,7 @@ const isForexOpen = (dateToCheck) => {
27
27
  return !isClosed;
28
28
  };
29
29
  exports.isForexOpen = isForexOpen;
30
- const chfMinorPairIds = [28, 116, 120, 123, 125, 127];
30
+ const extendedLowLiqPairIds = [28, 116, 120, 123, 125, 127, 95];
31
31
  const isForexLowLiquidity = (timestampToCheck, pair) => {
32
32
  const now = luxon_1.DateTime.fromMillis(timestampToCheck).setZone(FOREX_MARKETS_TIME_ZONE_IANA);
33
33
  const hour = now.hour;
@@ -35,8 +35,9 @@ const isForexLowLiquidity = (timestampToCheck, pair) => {
35
35
  const isInDST = now.isInDST;
36
36
  // CHF minor pairs: increase low liquidity window by additional 30 mins
37
37
  const pairIndex = pair === null || pair === void 0 ? void 0 : pair.pairIndex;
38
- if (pairIndex && chfMinorPairIds.includes(+pairIndex)) {
39
- return ((isInDST && ((hour == 15 && minute >= 15) || (hour >= 16 && hour < 19))) ||
38
+ if (pairIndex && extendedLowLiqPairIds.includes(+pairIndex)) {
39
+ return ((isInDST &&
40
+ ((hour == 15 && minute >= 15) || (hour >= 16 && hour < 19))) ||
40
41
  (!isInDST && ((hour == 16 && minute >= 15) || (hour >= 17 && hour < 20))));
41
42
  }
42
43
  return ((isInDST && ((hour == 15 && minute >= 45) || (hour >= 16 && hour < 19))) ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gainsnetwork/sdk",
3
- "version": "0.1.20-rc2",
3
+ "version": "0.1.21",
4
4
  "description": "Gains Network SDK",
5
5
  "main": "./lib/index.js",
6
6
  "files": [