wenay-common 1.0.65 → 1.0.67

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.
@@ -10,8 +10,10 @@ function LoadQuoteBase(setting, data) {
10
10
  const keyName = setting.nameKey ?? "loadKey";
11
11
  const time = setting.time ?? 60000;
12
12
  async function waitLimit(weight = 1) {
13
+ await (0, Common_1.sleepAsync)(0);
13
14
  funcTimeWait_1.FuncTimeWait.add({ type: keyName, weight: weight });
14
15
  const t1 = funcTimeWait_1.FuncTimeWait.byWeight(keyName, setting.maxLoadBars) - (Date.now() - time) - 1;
16
+ await (0, Common_1.sleepAsync)(0);
15
17
  if (t1 > 0)
16
18
  await (0, Common_1.sleepAsync)(t1);
17
19
  }
@@ -24,7 +26,7 @@ function LoadQuoteBase(setting, data) {
24
26
  if (!infoTF)
25
27
  throw "нет такого таймфрейма";
26
28
  let lastTime;
27
- const nameForMap = info.exchangeName + infoTF.name;
29
+ const nameForMap = info.exchangeName + info.symbol + infoTF.name;
28
30
  let leftTime = startMap.get(nameForMap);
29
31
  if (!leftTime) {
30
32
  await waitLimit();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wenay-common",
3
- "version": "1.0.65",
3
+ "version": "1.0.67",
4
4
  "description": "math math math",
5
5
  "strict": true,
6
6
  "main": "lib/index.js",
@@ -30,7 +30,8 @@
30
30
  "node-fetch": "^3.3.1",
31
31
  "npm": "^9.6.7",
32
32
  "ts-node": "^10.9.1",
33
- "xmlhttprequest": "^1.8.0"
33
+ "xmlhttprequest": "^1.8.0",
34
+ "wenay-common": "^1.0.66"
34
35
  },
35
36
  "devDependencies": {
36
37
  "@types/create-hmac": "^1.1.0",