dukascopy-node-plus 1.1.3 → 1.1.5

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.
package/dist/cli/index.js CHANGED
@@ -40,7 +40,7 @@ var progressBar = new import_cli_progress.Bar({
40
40
  });
41
41
 
42
42
  // src/cli/cli.ts
43
- var import_fs2 = require("fs");
43
+ var import_fs3 = require("fs");
44
44
  var import_fs_extra2 = require("fs-extra");
45
45
 
46
46
  // src/cli/config.ts
@@ -1321,6 +1321,11 @@ var Instrument = /* @__PURE__ */ ((Instrument2) => {
1321
1321
  return Instrument2;
1322
1322
  })(Instrument || {});
1323
1323
 
1324
+ // src/utils/instrument-meta-data/generate-group-data.ts
1325
+ var import_fs = __toESM(require("fs"));
1326
+ var import_util = require("util");
1327
+ var saveFile = (0, import_util.promisify)(import_fs.default.writeFile);
1328
+
1324
1329
  // src/config/timeframes.ts
1325
1330
  var Timeframe = /* @__PURE__ */ ((Timeframe2) => {
1326
1331
  Timeframe2["tick"] = "tick";
@@ -3481,7 +3486,7 @@ var instrument_meta_data_default = {
3481
3486
  batusd: {
3482
3487
  name: "BAT/USD",
3483
3488
  description: "Basic Attention Token vs US Dollar",
3484
- decimalFactor: 1e3,
3489
+ decimalFactor: 1e5,
3485
3490
  startHourForTicks: "2019-08-05T00:00:02.214Z",
3486
3491
  startDayForMinuteCandles: "2019-08-05T00:00:00.000Z",
3487
3492
  startMonthForHourlyCandles: "2019-08-05T00:00:00.000Z",
@@ -7433,10 +7438,10 @@ var instrument_meta_data_default = {
7433
7438
  name: "ITA.IDX/EUR",
7434
7439
  description: "Italy 40 Index",
7435
7440
  decimalFactor: 1e3,
7436
- startHourForTicks: "2014-06-02T07:00:33.102Z",
7437
- startDayForMinuteCandles: "2014-06-02T07:00:00.000Z",
7438
- startMonthForHourlyCandles: "2014-06-02T07:00:00.000Z",
7439
- startYearForDailyCandles: "2014-06-02T00:00:00.000Z"
7441
+ startHourForTicks: "2016-07-29T07:00:27.002Z",
7442
+ startDayForMinuteCandles: "2016-07-29T07:00:00.000Z",
7443
+ startMonthForHourlyCandles: "2016-07-29T07:00:00.000Z",
7444
+ startYearForDailyCandles: "2016-07-29T00:00:00.000Z"
7440
7445
  },
7441
7446
  itrkgbgbx: {
7442
7447
  name: "ITRK.GB/GBX",
@@ -8035,7 +8040,7 @@ var instrument_meta_data_default = {
8035
8040
  lnkusd: {
8036
8041
  name: "LNK/USD",
8037
8042
  description: "Chainlink vs US Dollar",
8038
- decimalFactor: 100,
8043
+ decimalFactor: 1e3,
8039
8044
  startHourForTicks: "2000-01-01T00:00:00.000Z",
8040
8045
  startDayForMinuteCandles: "2021-09-25T17:49:00.000Z",
8041
8046
  startMonthForHourlyCandles: "2021-09-25T17:00:00.000Z",
@@ -11788,7 +11793,7 @@ var instrument_meta_data_default = {
11788
11793
  uniusd: {
11789
11794
  name: "UNI/USD",
11790
11795
  description: "Uniswap vs US Dollar",
11791
- decimalFactor: 100,
11796
+ decimalFactor: 1e3,
11792
11797
  startHourForTicks: "2000-01-01T00:00:00.000Z",
11793
11798
  startDayForMinuteCandles: "2021-10-01T00:00:00.000Z",
11794
11799
  startMonthForHourlyCandles: "2021-10-01T00:00:00.000Z",
@@ -13913,10 +13918,10 @@ var import_utc = __toESM(require("dayjs/plugin/utc"));
13913
13918
  var import_timezone = __toESM(require("dayjs/plugin/timezone"));
13914
13919
 
13915
13920
  // package.json
13916
- var version = "1.1.3";
13921
+ var version = "1.1.5";
13917
13922
 
13918
13923
  // src/stream-writer/index.ts
13919
- var import_fs = __toESM(require("fs"));
13924
+ var import_fs2 = __toESM(require("fs"));
13920
13925
  var BatchStreamWriter = class {
13921
13926
  fileWriteStream;
13922
13927
  timeframe;
@@ -14125,7 +14130,7 @@ async function run(argv) {
14125
14130
  progressBar.start(urls.length, step);
14126
14131
  }
14127
14132
  await (0, import_fs_extra2.ensureDir)(folderPath);
14128
- const fileWriteStream = (0, import_fs2.createWriteStream)(filePath, { flags: "w+" });
14133
+ const fileWriteStream = (0, import_fs3.createWriteStream)(filePath, { flags: "w+" });
14129
14134
  fileWriteStream.on("finish", async () => {
14130
14135
  const downloadEndTs = Date.now();
14131
14136
  if (!isDebugActive) {
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "1.1.3";
2
+ var version = "1.1.5";
3
3
 
4
4
  export {
5
5
  version
@@ -10,7 +10,7 @@ import {
10
10
  normaliseDates,
11
11
  processData,
12
12
  validateConfigNode
13
- } from "./chunk-NHIUTTTM.js";
13
+ } from "./chunk-TZSWXPP4.js";
14
14
 
15
15
  // src/getHistoricalRatesToStream.ts
16
16
  import debug from "debug";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  version
3
- } from "./chunk-5PZO2PCC.js";
3
+ } from "./chunk-BGHB2UHH.js";
4
4
  import {
5
5
  formatOutput
6
6
  } from "./chunk-476J4KQE.js";
@@ -12,7 +12,7 @@ import {
12
12
  normaliseDates,
13
13
  processData,
14
14
  validateConfigNode
15
- } from "./chunk-NHIUTTTM.js";
15
+ } from "./chunk-TZSWXPP4.js";
16
16
 
17
17
  // src/getHistoricalRates.ts
18
18
  import debug from "debug";