backtest-kit 1.5.11 → 1.5.12
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/build/index.cjs +9 -0
- package/build/index.mjs +9 -0
- package/package.json +1 -1
- package/types.d.ts +3 -0
package/build/index.cjs
CHANGED
|
@@ -13498,6 +13498,8 @@ class BacktestInstance {
|
|
|
13498
13498
|
constructor(symbol, strategyName) {
|
|
13499
13499
|
this.symbol = symbol;
|
|
13500
13500
|
this.strategyName = strategyName;
|
|
13501
|
+
/** A randomly generated string. */
|
|
13502
|
+
this.id = functoolsKit.randomString();
|
|
13501
13503
|
/** Internal flag indicating if backtest was stopped manually */
|
|
13502
13504
|
this._isStopped = false;
|
|
13503
13505
|
/** Internal flag indicating if backtest task completed */
|
|
@@ -13534,6 +13536,7 @@ class BacktestInstance {
|
|
|
13534
13536
|
this.getStatus = async () => {
|
|
13535
13537
|
backtest$1.loggerService.info(BACKTEST_METHOD_NAME_GET_STATUS);
|
|
13536
13538
|
return {
|
|
13539
|
+
id: this.id,
|
|
13537
13540
|
symbol: this.symbol,
|
|
13538
13541
|
strategyName: this.strategyName,
|
|
13539
13542
|
status: this.task.getStatus(),
|
|
@@ -13984,6 +13987,8 @@ class LiveInstance {
|
|
|
13984
13987
|
constructor(symbol, strategyName) {
|
|
13985
13988
|
this.symbol = symbol;
|
|
13986
13989
|
this.strategyName = strategyName;
|
|
13990
|
+
/** A randomly generated string. */
|
|
13991
|
+
this.id = functoolsKit.randomString();
|
|
13987
13992
|
/** Internal flag indicating if live trading was stopped manually */
|
|
13988
13993
|
this._isStopped = false;
|
|
13989
13994
|
/** Internal flag indicating if live trading task completed */
|
|
@@ -14020,6 +14025,7 @@ class LiveInstance {
|
|
|
14020
14025
|
this.getStatus = async () => {
|
|
14021
14026
|
backtest$1.loggerService.info(LIVE_METHOD_NAME_GET_STATUS);
|
|
14022
14027
|
return {
|
|
14028
|
+
id: this.id,
|
|
14023
14029
|
symbol: this.symbol,
|
|
14024
14030
|
strategyName: this.strategyName,
|
|
14025
14031
|
status: this.task.getStatus(),
|
|
@@ -14732,6 +14738,8 @@ class WalkerInstance {
|
|
|
14732
14738
|
constructor(symbol, walkerName) {
|
|
14733
14739
|
this.symbol = symbol;
|
|
14734
14740
|
this.walkerName = walkerName;
|
|
14741
|
+
/** A randomly generated string. */
|
|
14742
|
+
this.id = functoolsKit.randomString();
|
|
14735
14743
|
/** Internal flag indicating if walker was stopped manually */
|
|
14736
14744
|
this._isStopped = false;
|
|
14737
14745
|
/** Internal flag indicating if walker task completed */
|
|
@@ -14768,6 +14776,7 @@ class WalkerInstance {
|
|
|
14768
14776
|
this.getStatus = async () => {
|
|
14769
14777
|
backtest$1.loggerService.info(WALKER_METHOD_NAME_GET_STATUS);
|
|
14770
14778
|
return {
|
|
14779
|
+
id: this.id,
|
|
14771
14780
|
symbol: this.symbol,
|
|
14772
14781
|
walkerName: this.walkerName,
|
|
14773
14782
|
status: this.task.getStatus(),
|
package/build/index.mjs
CHANGED
|
@@ -13496,6 +13496,8 @@ class BacktestInstance {
|
|
|
13496
13496
|
constructor(symbol, strategyName) {
|
|
13497
13497
|
this.symbol = symbol;
|
|
13498
13498
|
this.strategyName = strategyName;
|
|
13499
|
+
/** A randomly generated string. */
|
|
13500
|
+
this.id = randomString();
|
|
13499
13501
|
/** Internal flag indicating if backtest was stopped manually */
|
|
13500
13502
|
this._isStopped = false;
|
|
13501
13503
|
/** Internal flag indicating if backtest task completed */
|
|
@@ -13532,6 +13534,7 @@ class BacktestInstance {
|
|
|
13532
13534
|
this.getStatus = async () => {
|
|
13533
13535
|
backtest$1.loggerService.info(BACKTEST_METHOD_NAME_GET_STATUS);
|
|
13534
13536
|
return {
|
|
13537
|
+
id: this.id,
|
|
13535
13538
|
symbol: this.symbol,
|
|
13536
13539
|
strategyName: this.strategyName,
|
|
13537
13540
|
status: this.task.getStatus(),
|
|
@@ -13982,6 +13985,8 @@ class LiveInstance {
|
|
|
13982
13985
|
constructor(symbol, strategyName) {
|
|
13983
13986
|
this.symbol = symbol;
|
|
13984
13987
|
this.strategyName = strategyName;
|
|
13988
|
+
/** A randomly generated string. */
|
|
13989
|
+
this.id = randomString();
|
|
13985
13990
|
/** Internal flag indicating if live trading was stopped manually */
|
|
13986
13991
|
this._isStopped = false;
|
|
13987
13992
|
/** Internal flag indicating if live trading task completed */
|
|
@@ -14018,6 +14023,7 @@ class LiveInstance {
|
|
|
14018
14023
|
this.getStatus = async () => {
|
|
14019
14024
|
backtest$1.loggerService.info(LIVE_METHOD_NAME_GET_STATUS);
|
|
14020
14025
|
return {
|
|
14026
|
+
id: this.id,
|
|
14021
14027
|
symbol: this.symbol,
|
|
14022
14028
|
strategyName: this.strategyName,
|
|
14023
14029
|
status: this.task.getStatus(),
|
|
@@ -14730,6 +14736,8 @@ class WalkerInstance {
|
|
|
14730
14736
|
constructor(symbol, walkerName) {
|
|
14731
14737
|
this.symbol = symbol;
|
|
14732
14738
|
this.walkerName = walkerName;
|
|
14739
|
+
/** A randomly generated string. */
|
|
14740
|
+
this.id = randomString();
|
|
14733
14741
|
/** Internal flag indicating if walker was stopped manually */
|
|
14734
14742
|
this._isStopped = false;
|
|
14735
14743
|
/** Internal flag indicating if walker task completed */
|
|
@@ -14766,6 +14774,7 @@ class WalkerInstance {
|
|
|
14766
14774
|
this.getStatus = async () => {
|
|
14767
14775
|
backtest$1.loggerService.info(WALKER_METHOD_NAME_GET_STATUS);
|
|
14768
14776
|
return {
|
|
14777
|
+
id: this.id,
|
|
14769
14778
|
symbol: this.symbol,
|
|
14770
14779
|
walkerName: this.walkerName,
|
|
14771
14780
|
status: this.task.getStatus(),
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -5287,6 +5287,7 @@ declare class BacktestUtils {
|
|
|
5287
5287
|
* ```
|
|
5288
5288
|
*/
|
|
5289
5289
|
list: () => Promise<{
|
|
5290
|
+
id: string;
|
|
5290
5291
|
symbol: string;
|
|
5291
5292
|
strategyName: string;
|
|
5292
5293
|
status: "pending" | "fulfilled" | "rejected" | "ready";
|
|
@@ -5463,6 +5464,7 @@ declare class LiveUtils {
|
|
|
5463
5464
|
* ```
|
|
5464
5465
|
*/
|
|
5465
5466
|
list: () => Promise<{
|
|
5467
|
+
id: string;
|
|
5466
5468
|
symbol: string;
|
|
5467
5469
|
strategyName: string;
|
|
5468
5470
|
status: "pending" | "fulfilled" | "rejected" | "ready";
|
|
@@ -5817,6 +5819,7 @@ declare class WalkerUtils {
|
|
|
5817
5819
|
* ```
|
|
5818
5820
|
*/
|
|
5819
5821
|
list: () => Promise<{
|
|
5822
|
+
id: string;
|
|
5820
5823
|
symbol: string;
|
|
5821
5824
|
walkerName: string;
|
|
5822
5825
|
status: "pending" | "fulfilled" | "rejected" | "ready";
|