dukascopy-node-plus 1.1.4 → 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 +9 -4
- package/dist/esm/{chunk-VHVSB2KI.js → chunk-BGHB2UHH.js} +1 -1
- package/dist/esm/{chunk-EN4CESUH.js → chunk-JKCO22QM.js} +1 -1
- package/dist/esm/{chunk-KAQS2RYD.js → chunk-LXG3Z6BO.js} +2 -2
- package/dist/esm/{chunk-Z4O2KLFU.js → chunk-TZSWXPP4.js} +1454 -0
- package/dist/esm/cli/index.js +2 -2
- package/dist/esm/index.example.nostream.js +3 -3
- package/dist/esm/index.example.stream.js +2 -2
- package/dist/esm/index.js +6 -4
- package/dist/index.d.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.example.nostream.js +6 -1
- package/dist/index.example.stream.js +5 -0
- package/dist/index.js +1456 -1
- package/package.json +1 -1
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
|
|
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";
|
|
@@ -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.
|
|
13921
|
+
var version = "1.1.5";
|
|
13917
13922
|
|
|
13918
13923
|
// src/stream-writer/index.ts
|
|
13919
|
-
var
|
|
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,
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
version
|
|
3
|
-
} from "./chunk-
|
|
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-
|
|
15
|
+
} from "./chunk-TZSWXPP4.js";
|
|
16
16
|
|
|
17
17
|
// src/getHistoricalRates.ts
|
|
18
18
|
import debug from "debug";
|