@elizaos/plugin-auto-trader 2.0.0-alpha.2 → 2.0.0-alpha.4
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/index.js +115 -65
- package/dist/index.js.map +1 -1
- package/dist/{index.node-YLFTRMAZ.js → index.node-ZNB67OM6.js} +57 -4
- package/dist/index.node-ZNB67OM6.js.map +1 -0
- package/package.json +18 -8
- package/LICENSE +0 -21
- package/dist/chunk-JCQL2EFG.js +0 -58
- package/dist/chunk-JCQL2EFG.js.map +0 -1
- package/dist/index.node-YLFTRMAZ.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -14,9 +14,6 @@ import {
|
|
|
14
14
|
OrderType,
|
|
15
15
|
TradeType
|
|
16
16
|
} from "./chunk-AS6N6A3H.js";
|
|
17
|
-
import {
|
|
18
|
-
v4_default
|
|
19
|
-
} from "./chunk-JCQL2EFG.js";
|
|
20
17
|
import {
|
|
21
18
|
__export
|
|
22
19
|
} from "./chunk-PZ5AY32C.js";
|
|
@@ -30,6 +27,59 @@ import {
|
|
|
30
27
|
EventType,
|
|
31
28
|
elizaLogger
|
|
32
29
|
} from "@elizaos/core";
|
|
30
|
+
|
|
31
|
+
// ../../../../node_modules/uuid/dist/esm/stringify.js
|
|
32
|
+
var byteToHex = [];
|
|
33
|
+
for (let i = 0; i < 256; ++i) {
|
|
34
|
+
byteToHex.push((i + 256).toString(16).slice(1));
|
|
35
|
+
}
|
|
36
|
+
function unsafeStringify(arr, offset = 0) {
|
|
37
|
+
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// ../../../../node_modules/uuid/dist/esm/rng.js
|
|
41
|
+
import { randomFillSync } from "crypto";
|
|
42
|
+
var rnds8Pool = new Uint8Array(256);
|
|
43
|
+
var poolPtr = rnds8Pool.length;
|
|
44
|
+
function rng() {
|
|
45
|
+
if (poolPtr > rnds8Pool.length - 16) {
|
|
46
|
+
randomFillSync(rnds8Pool);
|
|
47
|
+
poolPtr = 0;
|
|
48
|
+
}
|
|
49
|
+
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// ../../../../node_modules/uuid/dist/esm/native.js
|
|
53
|
+
import { randomUUID } from "crypto";
|
|
54
|
+
var native_default = { randomUUID };
|
|
55
|
+
|
|
56
|
+
// ../../../../node_modules/uuid/dist/esm/v4.js
|
|
57
|
+
function v4(options, buf, offset) {
|
|
58
|
+
if (native_default.randomUUID && !buf && !options) {
|
|
59
|
+
return native_default.randomUUID();
|
|
60
|
+
}
|
|
61
|
+
options = options || {};
|
|
62
|
+
const rnds = options.random ?? options.rng?.() ?? rng();
|
|
63
|
+
if (rnds.length < 16) {
|
|
64
|
+
throw new Error("Random bytes length must be >= 16");
|
|
65
|
+
}
|
|
66
|
+
rnds[6] = rnds[6] & 15 | 64;
|
|
67
|
+
rnds[8] = rnds[8] & 63 | 128;
|
|
68
|
+
if (buf) {
|
|
69
|
+
offset = offset || 0;
|
|
70
|
+
if (offset < 0 || offset + 16 > buf.length) {
|
|
71
|
+
throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
72
|
+
}
|
|
73
|
+
for (let i = 0; i < 16; ++i) {
|
|
74
|
+
buf[offset + i] = rnds[i];
|
|
75
|
+
}
|
|
76
|
+
return buf;
|
|
77
|
+
}
|
|
78
|
+
return unsafeStringify(rnds);
|
|
79
|
+
}
|
|
80
|
+
var v4_default = v4;
|
|
81
|
+
|
|
82
|
+
// src/__tests__/e2e/test-utils.ts
|
|
33
83
|
async function waitForTrading(runtime, maxWaitMs = 3e4) {
|
|
34
84
|
const tradingManager = runtime.getService("AutoTradingManager");
|
|
35
85
|
const startTime = Date.now();
|
|
@@ -237,14 +287,14 @@ var autoTradingScenarios = {
|
|
|
237
287
|
]
|
|
238
288
|
};
|
|
239
289
|
|
|
240
|
-
//
|
|
290
|
+
// ../../../../node_modules/axios/lib/helpers/bind.js
|
|
241
291
|
function bind(fn, thisArg) {
|
|
242
292
|
return function wrap() {
|
|
243
293
|
return fn.apply(thisArg, arguments);
|
|
244
294
|
};
|
|
245
295
|
}
|
|
246
296
|
|
|
247
|
-
//
|
|
297
|
+
// ../../../../node_modules/axios/lib/utils.js
|
|
248
298
|
var { toString } = Object.prototype;
|
|
249
299
|
var { getPrototypeOf } = Object;
|
|
250
300
|
var { iterator, toStringTag } = Symbol;
|
|
@@ -629,7 +679,7 @@ var utils_default = {
|
|
|
629
679
|
isIterable
|
|
630
680
|
};
|
|
631
681
|
|
|
632
|
-
//
|
|
682
|
+
// ../../../../node_modules/axios/lib/core/AxiosError.js
|
|
633
683
|
function AxiosError(message, code, config, request, response) {
|
|
634
684
|
Error.call(this);
|
|
635
685
|
if (Error.captureStackTrace) {
|
|
@@ -708,11 +758,11 @@ AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
|
708
758
|
};
|
|
709
759
|
var AxiosError_default = AxiosError;
|
|
710
760
|
|
|
711
|
-
//
|
|
761
|
+
// ../../../../node_modules/axios/lib/platform/node/classes/FormData.js
|
|
712
762
|
import FormData2 from "form-data";
|
|
713
763
|
var FormData_default = FormData2;
|
|
714
764
|
|
|
715
|
-
//
|
|
765
|
+
// ../../../../node_modules/axios/lib/helpers/toFormData.js
|
|
716
766
|
function isVisitable(thing) {
|
|
717
767
|
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
718
768
|
}
|
|
@@ -827,7 +877,7 @@ function toFormData(obj, formData, options) {
|
|
|
827
877
|
}
|
|
828
878
|
var toFormData_default = toFormData;
|
|
829
879
|
|
|
830
|
-
//
|
|
880
|
+
// ../../../../node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
831
881
|
function encode(str) {
|
|
832
882
|
const charMap = {
|
|
833
883
|
"!": "%21",
|
|
@@ -860,7 +910,7 @@ prototype2.toString = function toString2(encoder) {
|
|
|
860
910
|
};
|
|
861
911
|
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
862
912
|
|
|
863
|
-
//
|
|
913
|
+
// ../../../../node_modules/axios/lib/helpers/buildURL.js
|
|
864
914
|
function encode2(val) {
|
|
865
915
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
866
916
|
}
|
|
@@ -891,7 +941,7 @@ function buildURL(url2, params, options) {
|
|
|
891
941
|
return url2;
|
|
892
942
|
}
|
|
893
943
|
|
|
894
|
-
//
|
|
944
|
+
// ../../../../node_modules/axios/lib/core/InterceptorManager.js
|
|
895
945
|
var InterceptorManager = class {
|
|
896
946
|
constructor() {
|
|
897
947
|
this.handlers = [];
|
|
@@ -955,21 +1005,21 @@ var InterceptorManager = class {
|
|
|
955
1005
|
};
|
|
956
1006
|
var InterceptorManager_default = InterceptorManager;
|
|
957
1007
|
|
|
958
|
-
//
|
|
1008
|
+
// ../../../../node_modules/axios/lib/defaults/transitional.js
|
|
959
1009
|
var transitional_default = {
|
|
960
1010
|
silentJSONParsing: true,
|
|
961
1011
|
forcedJSONParsing: true,
|
|
962
1012
|
clarifyTimeoutError: false
|
|
963
1013
|
};
|
|
964
1014
|
|
|
965
|
-
//
|
|
1015
|
+
// ../../../../node_modules/axios/lib/platform/node/index.js
|
|
966
1016
|
import crypto from "crypto";
|
|
967
1017
|
|
|
968
|
-
//
|
|
1018
|
+
// ../../../../node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
969
1019
|
import url from "url";
|
|
970
1020
|
var URLSearchParams_default = url.URLSearchParams;
|
|
971
1021
|
|
|
972
|
-
//
|
|
1022
|
+
// ../../../../node_modules/axios/lib/platform/node/index.js
|
|
973
1023
|
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
974
1024
|
var DIGIT = "0123456789";
|
|
975
1025
|
var ALPHABET = {
|
|
@@ -999,7 +1049,7 @@ var node_default = {
|
|
|
999
1049
|
protocols: ["http", "https", "file", "data"]
|
|
1000
1050
|
};
|
|
1001
1051
|
|
|
1002
|
-
//
|
|
1052
|
+
// ../../../../node_modules/axios/lib/platform/common/utils.js
|
|
1003
1053
|
var utils_exports = {};
|
|
1004
1054
|
__export(utils_exports, {
|
|
1005
1055
|
hasBrowserEnv: () => hasBrowserEnv,
|
|
@@ -1017,13 +1067,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
|
|
|
1017
1067
|
})();
|
|
1018
1068
|
var origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
1019
1069
|
|
|
1020
|
-
//
|
|
1070
|
+
// ../../../../node_modules/axios/lib/platform/index.js
|
|
1021
1071
|
var platform_default = {
|
|
1022
1072
|
...utils_exports,
|
|
1023
1073
|
...node_default
|
|
1024
1074
|
};
|
|
1025
1075
|
|
|
1026
|
-
//
|
|
1076
|
+
// ../../../../node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
1027
1077
|
function toURLEncodedForm(data, options) {
|
|
1028
1078
|
return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
|
|
1029
1079
|
visitor: function(value, key, path, helpers) {
|
|
@@ -1037,7 +1087,7 @@ function toURLEncodedForm(data, options) {
|
|
|
1037
1087
|
});
|
|
1038
1088
|
}
|
|
1039
1089
|
|
|
1040
|
-
//
|
|
1090
|
+
// ../../../../node_modules/axios/lib/helpers/formDataToJSON.js
|
|
1041
1091
|
function parsePropPath(name) {
|
|
1042
1092
|
return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
1043
1093
|
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
@@ -1090,7 +1140,7 @@ function formDataToJSON(formData) {
|
|
|
1090
1140
|
}
|
|
1091
1141
|
var formDataToJSON_default = formDataToJSON;
|
|
1092
1142
|
|
|
1093
|
-
//
|
|
1143
|
+
// ../../../../node_modules/axios/lib/defaults/index.js
|
|
1094
1144
|
function stringifySafely(rawValue, parser, encoder) {
|
|
1095
1145
|
if (utils_default.isString(rawValue)) {
|
|
1096
1146
|
try {
|
|
@@ -1199,7 +1249,7 @@ utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method
|
|
|
1199
1249
|
});
|
|
1200
1250
|
var defaults_default = defaults;
|
|
1201
1251
|
|
|
1202
|
-
//
|
|
1252
|
+
// ../../../../node_modules/axios/lib/helpers/parseHeaders.js
|
|
1203
1253
|
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
1204
1254
|
"age",
|
|
1205
1255
|
"authorization",
|
|
@@ -1244,7 +1294,7 @@ var parseHeaders_default = (rawHeaders) => {
|
|
|
1244
1294
|
return parsed;
|
|
1245
1295
|
};
|
|
1246
1296
|
|
|
1247
|
-
//
|
|
1297
|
+
// ../../../../node_modules/axios/lib/core/AxiosHeaders.js
|
|
1248
1298
|
var $internals = /* @__PURE__ */ Symbol("internals");
|
|
1249
1299
|
function normalizeHeader(header) {
|
|
1250
1300
|
return header && String(header).trim().toLowerCase();
|
|
@@ -1473,7 +1523,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
|
1473
1523
|
utils_default.freezeMethods(AxiosHeaders);
|
|
1474
1524
|
var AxiosHeaders_default = AxiosHeaders;
|
|
1475
1525
|
|
|
1476
|
-
//
|
|
1526
|
+
// ../../../../node_modules/axios/lib/core/transformData.js
|
|
1477
1527
|
function transformData(fns, response) {
|
|
1478
1528
|
const config = this || defaults_default;
|
|
1479
1529
|
const context = response || config;
|
|
@@ -1486,12 +1536,12 @@ function transformData(fns, response) {
|
|
|
1486
1536
|
return data;
|
|
1487
1537
|
}
|
|
1488
1538
|
|
|
1489
|
-
//
|
|
1539
|
+
// ../../../../node_modules/axios/lib/cancel/isCancel.js
|
|
1490
1540
|
function isCancel(value) {
|
|
1491
1541
|
return !!(value && value.__CANCEL__);
|
|
1492
1542
|
}
|
|
1493
1543
|
|
|
1494
|
-
//
|
|
1544
|
+
// ../../../../node_modules/axios/lib/cancel/CanceledError.js
|
|
1495
1545
|
function CanceledError(message, config, request) {
|
|
1496
1546
|
AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
|
|
1497
1547
|
this.name = "CanceledError";
|
|
@@ -1501,7 +1551,7 @@ utils_default.inherits(CanceledError, AxiosError_default, {
|
|
|
1501
1551
|
});
|
|
1502
1552
|
var CanceledError_default = CanceledError;
|
|
1503
1553
|
|
|
1504
|
-
//
|
|
1554
|
+
// ../../../../node_modules/axios/lib/core/settle.js
|
|
1505
1555
|
function settle(resolve, reject, response) {
|
|
1506
1556
|
const validateStatus2 = response.config.validateStatus;
|
|
1507
1557
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
@@ -1517,17 +1567,17 @@ function settle(resolve, reject, response) {
|
|
|
1517
1567
|
}
|
|
1518
1568
|
}
|
|
1519
1569
|
|
|
1520
|
-
//
|
|
1570
|
+
// ../../../../node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
1521
1571
|
function isAbsoluteURL(url2) {
|
|
1522
1572
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
1523
1573
|
}
|
|
1524
1574
|
|
|
1525
|
-
//
|
|
1575
|
+
// ../../../../node_modules/axios/lib/helpers/combineURLs.js
|
|
1526
1576
|
function combineURLs(baseURL, relativeURL) {
|
|
1527
1577
|
return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
1528
1578
|
}
|
|
1529
1579
|
|
|
1530
|
-
//
|
|
1580
|
+
// ../../../../node_modules/axios/lib/core/buildFullPath.js
|
|
1531
1581
|
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
1532
1582
|
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
1533
1583
|
if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
|
|
@@ -1536,7 +1586,7 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
|
1536
1586
|
return requestedURL;
|
|
1537
1587
|
}
|
|
1538
1588
|
|
|
1539
|
-
//
|
|
1589
|
+
// ../../../../node_modules/axios/lib/adapters/http.js
|
|
1540
1590
|
import proxyFromEnv from "proxy-from-env";
|
|
1541
1591
|
import http from "http";
|
|
1542
1592
|
import https from "https";
|
|
@@ -1545,16 +1595,16 @@ import util2 from "util";
|
|
|
1545
1595
|
import followRedirects from "follow-redirects";
|
|
1546
1596
|
import zlib from "zlib";
|
|
1547
1597
|
|
|
1548
|
-
//
|
|
1598
|
+
// ../../../../node_modules/axios/lib/env/data.js
|
|
1549
1599
|
var VERSION = "1.13.2";
|
|
1550
1600
|
|
|
1551
|
-
//
|
|
1601
|
+
// ../../../../node_modules/axios/lib/helpers/parseProtocol.js
|
|
1552
1602
|
function parseProtocol(url2) {
|
|
1553
1603
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
|
|
1554
1604
|
return match && match[1] || "";
|
|
1555
1605
|
}
|
|
1556
1606
|
|
|
1557
|
-
//
|
|
1607
|
+
// ../../../../node_modules/axios/lib/helpers/fromDataURI.js
|
|
1558
1608
|
var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
|
|
1559
1609
|
function fromDataURI(uri, asBlob, options) {
|
|
1560
1610
|
const _Blob = options && options.Blob || platform_default.classes.Blob;
|
|
@@ -1583,10 +1633,10 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
1583
1633
|
throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
|
|
1584
1634
|
}
|
|
1585
1635
|
|
|
1586
|
-
//
|
|
1636
|
+
// ../../../../node_modules/axios/lib/adapters/http.js
|
|
1587
1637
|
import stream3 from "stream";
|
|
1588
1638
|
|
|
1589
|
-
//
|
|
1639
|
+
// ../../../../node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
1590
1640
|
import stream from "stream";
|
|
1591
1641
|
var kInternals = /* @__PURE__ */ Symbol("internals");
|
|
1592
1642
|
var AxiosTransformStream = class extends stream.Transform {
|
|
@@ -1701,14 +1751,14 @@ var AxiosTransformStream = class extends stream.Transform {
|
|
|
1701
1751
|
};
|
|
1702
1752
|
var AxiosTransformStream_default = AxiosTransformStream;
|
|
1703
1753
|
|
|
1704
|
-
//
|
|
1754
|
+
// ../../../../node_modules/axios/lib/adapters/http.js
|
|
1705
1755
|
import { EventEmitter } from "events";
|
|
1706
1756
|
|
|
1707
|
-
//
|
|
1757
|
+
// ../../../../node_modules/axios/lib/helpers/formDataToStream.js
|
|
1708
1758
|
import util from "util";
|
|
1709
1759
|
import { Readable } from "stream";
|
|
1710
1760
|
|
|
1711
|
-
//
|
|
1761
|
+
// ../../../../node_modules/axios/lib/helpers/readBlob.js
|
|
1712
1762
|
var { asyncIterator } = Symbol;
|
|
1713
1763
|
var readBlob = async function* (blob) {
|
|
1714
1764
|
if (blob.stream) {
|
|
@@ -1723,7 +1773,7 @@ var readBlob = async function* (blob) {
|
|
|
1723
1773
|
};
|
|
1724
1774
|
var readBlob_default = readBlob;
|
|
1725
1775
|
|
|
1726
|
-
//
|
|
1776
|
+
// ../../../../node_modules/axios/lib/helpers/formDataToStream.js
|
|
1727
1777
|
var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
1728
1778
|
var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
|
|
1729
1779
|
var CRLF = "\r\n";
|
|
@@ -1802,7 +1852,7 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
1802
1852
|
};
|
|
1803
1853
|
var formDataToStream_default = formDataToStream;
|
|
1804
1854
|
|
|
1805
|
-
//
|
|
1855
|
+
// ../../../../node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
|
|
1806
1856
|
import stream2 from "stream";
|
|
1807
1857
|
var ZlibHeaderTransformStream = class extends stream2.Transform {
|
|
1808
1858
|
__transform(chunk, encoding, callback) {
|
|
@@ -1824,7 +1874,7 @@ var ZlibHeaderTransformStream = class extends stream2.Transform {
|
|
|
1824
1874
|
};
|
|
1825
1875
|
var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
|
|
1826
1876
|
|
|
1827
|
-
//
|
|
1877
|
+
// ../../../../node_modules/axios/lib/helpers/callbackify.js
|
|
1828
1878
|
var callbackify = (fn, reducer) => {
|
|
1829
1879
|
return utils_default.isAsyncFn(fn) ? function(...args) {
|
|
1830
1880
|
const cb = args.pop();
|
|
@@ -1839,7 +1889,7 @@ var callbackify = (fn, reducer) => {
|
|
|
1839
1889
|
};
|
|
1840
1890
|
var callbackify_default = callbackify;
|
|
1841
1891
|
|
|
1842
|
-
//
|
|
1892
|
+
// ../../../../node_modules/axios/lib/helpers/speedometer.js
|
|
1843
1893
|
function speedometer(samplesCount, min) {
|
|
1844
1894
|
samplesCount = samplesCount || 10;
|
|
1845
1895
|
const bytes = new Array(samplesCount);
|
|
@@ -1875,7 +1925,7 @@ function speedometer(samplesCount, min) {
|
|
|
1875
1925
|
}
|
|
1876
1926
|
var speedometer_default = speedometer;
|
|
1877
1927
|
|
|
1878
|
-
//
|
|
1928
|
+
// ../../../../node_modules/axios/lib/helpers/throttle.js
|
|
1879
1929
|
function throttle(fn, freq) {
|
|
1880
1930
|
let timestamp = 0;
|
|
1881
1931
|
let threshold = 1e3 / freq;
|
|
@@ -1910,7 +1960,7 @@ function throttle(fn, freq) {
|
|
|
1910
1960
|
}
|
|
1911
1961
|
var throttle_default = throttle;
|
|
1912
1962
|
|
|
1913
|
-
//
|
|
1963
|
+
// ../../../../node_modules/axios/lib/helpers/progressEventReducer.js
|
|
1914
1964
|
var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
1915
1965
|
let bytesNotified = 0;
|
|
1916
1966
|
const _speedometer = speedometer_default(50, 250);
|
|
@@ -1945,7 +1995,7 @@ var progressEventDecorator = (total, throttled) => {
|
|
|
1945
1995
|
};
|
|
1946
1996
|
var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
|
|
1947
1997
|
|
|
1948
|
-
//
|
|
1998
|
+
// ../../../../node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
|
|
1949
1999
|
function estimateDataURLDecodedBytes(url2) {
|
|
1950
2000
|
if (!url2 || typeof url2 !== "string") return 0;
|
|
1951
2001
|
if (!url2.startsWith("data:")) return 0;
|
|
@@ -1996,7 +2046,7 @@ function estimateDataURLDecodedBytes(url2) {
|
|
|
1996
2046
|
return Buffer.byteLength(body, "utf8");
|
|
1997
2047
|
}
|
|
1998
2048
|
|
|
1999
|
-
//
|
|
2049
|
+
// ../../../../node_modules/axios/lib/adapters/http.js
|
|
2000
2050
|
var zlibOptions = {
|
|
2001
2051
|
flush: zlib.constants.Z_SYNC_FLUSH,
|
|
2002
2052
|
finishFlush: zlib.constants.Z_SYNC_FLUSH
|
|
@@ -2638,7 +2688,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
2638
2688
|
});
|
|
2639
2689
|
};
|
|
2640
2690
|
|
|
2641
|
-
//
|
|
2691
|
+
// ../../../../node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
2642
2692
|
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
|
|
2643
2693
|
url2 = new URL(url2, platform_default.origin);
|
|
2644
2694
|
return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
|
|
@@ -2647,7 +2697,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
|
|
|
2647
2697
|
platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
|
|
2648
2698
|
) : () => true;
|
|
2649
2699
|
|
|
2650
|
-
//
|
|
2700
|
+
// ../../../../node_modules/axios/lib/helpers/cookies.js
|
|
2651
2701
|
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
2652
2702
|
// Standard browser envs support document.cookie
|
|
2653
2703
|
{
|
|
@@ -2693,7 +2743,7 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
2693
2743
|
}
|
|
2694
2744
|
);
|
|
2695
2745
|
|
|
2696
|
-
//
|
|
2746
|
+
// ../../../../node_modules/axios/lib/core/mergeConfig.js
|
|
2697
2747
|
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
|
|
2698
2748
|
function mergeConfig(config1, config2) {
|
|
2699
2749
|
config2 = config2 || {};
|
|
@@ -2773,7 +2823,7 @@ function mergeConfig(config1, config2) {
|
|
|
2773
2823
|
return config;
|
|
2774
2824
|
}
|
|
2775
2825
|
|
|
2776
|
-
//
|
|
2826
|
+
// ../../../../node_modules/axios/lib/helpers/resolveConfig.js
|
|
2777
2827
|
var resolveConfig_default = (config) => {
|
|
2778
2828
|
const newConfig = mergeConfig({}, config);
|
|
2779
2829
|
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
@@ -2810,7 +2860,7 @@ var resolveConfig_default = (config) => {
|
|
|
2810
2860
|
return newConfig;
|
|
2811
2861
|
};
|
|
2812
2862
|
|
|
2813
|
-
//
|
|
2863
|
+
// ../../../../node_modules/axios/lib/adapters/xhr.js
|
|
2814
2864
|
var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
|
|
2815
2865
|
var xhr_default = isXHRAdapterSupported && function(config) {
|
|
2816
2866
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
@@ -2940,7 +2990,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
2940
2990
|
});
|
|
2941
2991
|
};
|
|
2942
2992
|
|
|
2943
|
-
//
|
|
2993
|
+
// ../../../../node_modules/axios/lib/helpers/composeSignals.js
|
|
2944
2994
|
var composeSignals = (signals, timeout) => {
|
|
2945
2995
|
const { length } = signals = signals ? signals.filter(Boolean) : [];
|
|
2946
2996
|
if (timeout || length) {
|
|
@@ -2976,7 +3026,7 @@ var composeSignals = (signals, timeout) => {
|
|
|
2976
3026
|
};
|
|
2977
3027
|
var composeSignals_default = composeSignals;
|
|
2978
3028
|
|
|
2979
|
-
//
|
|
3029
|
+
// ../../../../node_modules/axios/lib/helpers/trackStream.js
|
|
2980
3030
|
var streamChunk = function* (chunk, chunkSize) {
|
|
2981
3031
|
let len = chunk.byteLength;
|
|
2982
3032
|
if (!chunkSize || len < chunkSize) {
|
|
@@ -3053,7 +3103,7 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
|
3053
3103
|
});
|
|
3054
3104
|
};
|
|
3055
3105
|
|
|
3056
|
-
//
|
|
3106
|
+
// ../../../../node_modules/axios/lib/adapters/fetch.js
|
|
3057
3107
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
3058
3108
|
var { isFunction: isFunction2 } = utils_default;
|
|
3059
3109
|
var globalFetchAPI = (({ Request, Response }) => ({
|
|
@@ -3262,7 +3312,7 @@ var getFetch = (config) => {
|
|
|
3262
3312
|
};
|
|
3263
3313
|
var adapter = getFetch();
|
|
3264
3314
|
|
|
3265
|
-
//
|
|
3315
|
+
// ../../../../node_modules/axios/lib/adapters/adapters.js
|
|
3266
3316
|
var knownAdapters = {
|
|
3267
3317
|
http: http_default,
|
|
3268
3318
|
xhr: xhr_default,
|
|
@@ -3327,7 +3377,7 @@ var adapters_default = {
|
|
|
3327
3377
|
adapters: knownAdapters
|
|
3328
3378
|
};
|
|
3329
3379
|
|
|
3330
|
-
//
|
|
3380
|
+
// ../../../../node_modules/axios/lib/core/dispatchRequest.js
|
|
3331
3381
|
function throwIfCancellationRequested(config) {
|
|
3332
3382
|
if (config.cancelToken) {
|
|
3333
3383
|
config.cancelToken.throwIfRequested();
|
|
@@ -3372,7 +3422,7 @@ function dispatchRequest(config) {
|
|
|
3372
3422
|
});
|
|
3373
3423
|
}
|
|
3374
3424
|
|
|
3375
|
-
//
|
|
3425
|
+
// ../../../../node_modules/axios/lib/helpers/validator.js
|
|
3376
3426
|
var validators = {};
|
|
3377
3427
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
3378
3428
|
validators[type] = function validator(thing) {
|
|
@@ -3436,7 +3486,7 @@ var validator_default = {
|
|
|
3436
3486
|
validators
|
|
3437
3487
|
};
|
|
3438
3488
|
|
|
3439
|
-
//
|
|
3489
|
+
// ../../../../node_modules/axios/lib/core/Axios.js
|
|
3440
3490
|
var validators2 = validator_default.validators;
|
|
3441
3491
|
var Axios = class {
|
|
3442
3492
|
constructor(instanceConfig) {
|
|
@@ -3608,7 +3658,7 @@ utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(m
|
|
|
3608
3658
|
});
|
|
3609
3659
|
var Axios_default = Axios;
|
|
3610
3660
|
|
|
3611
|
-
//
|
|
3661
|
+
// ../../../../node_modules/axios/lib/cancel/CancelToken.js
|
|
3612
3662
|
var CancelToken = class _CancelToken {
|
|
3613
3663
|
constructor(executor) {
|
|
3614
3664
|
if (typeof executor !== "function") {
|
|
@@ -3706,19 +3756,19 @@ var CancelToken = class _CancelToken {
|
|
|
3706
3756
|
};
|
|
3707
3757
|
var CancelToken_default = CancelToken;
|
|
3708
3758
|
|
|
3709
|
-
//
|
|
3759
|
+
// ../../../../node_modules/axios/lib/helpers/spread.js
|
|
3710
3760
|
function spread(callback) {
|
|
3711
3761
|
return function wrap(arr) {
|
|
3712
3762
|
return callback.apply(null, arr);
|
|
3713
3763
|
};
|
|
3714
3764
|
}
|
|
3715
3765
|
|
|
3716
|
-
//
|
|
3766
|
+
// ../../../../node_modules/axios/lib/helpers/isAxiosError.js
|
|
3717
3767
|
function isAxiosError(payload) {
|
|
3718
3768
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
3719
3769
|
}
|
|
3720
3770
|
|
|
3721
|
-
//
|
|
3771
|
+
// ../../../../node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
3722
3772
|
var HttpStatusCode = {
|
|
3723
3773
|
Continue: 100,
|
|
3724
3774
|
SwitchingProtocols: 101,
|
|
@@ -3795,7 +3845,7 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
|
3795
3845
|
});
|
|
3796
3846
|
var HttpStatusCode_default = HttpStatusCode;
|
|
3797
3847
|
|
|
3798
|
-
//
|
|
3848
|
+
// ../../../../node_modules/axios/lib/axios.js
|
|
3799
3849
|
function createInstance(defaultConfig) {
|
|
3800
3850
|
const context = new Axios_default(defaultConfig);
|
|
3801
3851
|
const instance = bind(Axios_default.prototype.request, context);
|
|
@@ -3828,7 +3878,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
|
|
|
3828
3878
|
axios.default = axios;
|
|
3829
3879
|
var axios_default = axios;
|
|
3830
3880
|
|
|
3831
|
-
//
|
|
3881
|
+
// ../../../../node_modules/axios/index.js
|
|
3832
3882
|
var {
|
|
3833
3883
|
Axios: Axios2,
|
|
3834
3884
|
AxiosError: AxiosError2,
|
|
@@ -7606,7 +7656,7 @@ var TradingTrajectoryService = class _TradingTrajectoryService extends Service5
|
|
|
7606
7656
|
}
|
|
7607
7657
|
async initialize() {
|
|
7608
7658
|
try {
|
|
7609
|
-
const { TrajectoryLoggerService } = await import("./index.node-
|
|
7659
|
+
const { TrajectoryLoggerService } = await import("./index.node-ZNB67OM6.js");
|
|
7610
7660
|
this.trajectoryLogger = new TrajectoryLoggerService();
|
|
7611
7661
|
this.enabled = true;
|
|
7612
7662
|
logger10.info("[TradingTrajectoryService] Trajectory logging enabled");
|