backtest-kit 8.1.3 → 8.2.0
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 +8 -0
- package/build/index.mjs +8 -0
- package/package.json +1 -1
package/build/index.cjs
CHANGED
|
@@ -35815,6 +35815,7 @@ class BrokerProxy {
|
|
|
35815
35815
|
*/
|
|
35816
35816
|
async onSignalOpenCommit(payload) {
|
|
35817
35817
|
if (this._instance.onSignalOpenCommit) {
|
|
35818
|
+
await this.waitForInit();
|
|
35818
35819
|
await this._instance.onSignalOpenCommit(payload);
|
|
35819
35820
|
return;
|
|
35820
35821
|
}
|
|
@@ -35829,6 +35830,7 @@ class BrokerProxy {
|
|
|
35829
35830
|
*/
|
|
35830
35831
|
async onSignalCloseCommit(payload) {
|
|
35831
35832
|
if (this._instance.onSignalCloseCommit) {
|
|
35833
|
+
await this.waitForInit();
|
|
35832
35834
|
await this._instance.onSignalCloseCommit(payload);
|
|
35833
35835
|
return;
|
|
35834
35836
|
}
|
|
@@ -35843,6 +35845,7 @@ class BrokerProxy {
|
|
|
35843
35845
|
*/
|
|
35844
35846
|
async onPartialProfitCommit(payload) {
|
|
35845
35847
|
if (this._instance.onPartialProfitCommit) {
|
|
35848
|
+
await this.waitForInit();
|
|
35846
35849
|
await this._instance.onPartialProfitCommit(payload);
|
|
35847
35850
|
return;
|
|
35848
35851
|
}
|
|
@@ -35857,6 +35860,7 @@ class BrokerProxy {
|
|
|
35857
35860
|
*/
|
|
35858
35861
|
async onPartialLossCommit(payload) {
|
|
35859
35862
|
if (this._instance.onPartialLossCommit) {
|
|
35863
|
+
await this.waitForInit();
|
|
35860
35864
|
await this._instance.onPartialLossCommit(payload);
|
|
35861
35865
|
return;
|
|
35862
35866
|
}
|
|
@@ -35871,6 +35875,7 @@ class BrokerProxy {
|
|
|
35871
35875
|
*/
|
|
35872
35876
|
async onTrailingStopCommit(payload) {
|
|
35873
35877
|
if (this._instance.onTrailingStopCommit) {
|
|
35878
|
+
await this.waitForInit();
|
|
35874
35879
|
await this._instance.onTrailingStopCommit(payload);
|
|
35875
35880
|
return;
|
|
35876
35881
|
}
|
|
@@ -35885,6 +35890,7 @@ class BrokerProxy {
|
|
|
35885
35890
|
*/
|
|
35886
35891
|
async onTrailingTakeCommit(payload) {
|
|
35887
35892
|
if (this._instance.onTrailingTakeCommit) {
|
|
35893
|
+
await this.waitForInit();
|
|
35888
35894
|
await this._instance.onTrailingTakeCommit(payload);
|
|
35889
35895
|
return;
|
|
35890
35896
|
}
|
|
@@ -35899,6 +35905,7 @@ class BrokerProxy {
|
|
|
35899
35905
|
*/
|
|
35900
35906
|
async onBreakevenCommit(payload) {
|
|
35901
35907
|
if (this._instance.onBreakevenCommit) {
|
|
35908
|
+
await this.waitForInit();
|
|
35902
35909
|
await this._instance.onBreakevenCommit(payload);
|
|
35903
35910
|
return;
|
|
35904
35911
|
}
|
|
@@ -35913,6 +35920,7 @@ class BrokerProxy {
|
|
|
35913
35920
|
*/
|
|
35914
35921
|
async onAverageBuyCommit(payload) {
|
|
35915
35922
|
if (this._instance.onAverageBuyCommit) {
|
|
35923
|
+
await this.waitForInit();
|
|
35916
35924
|
await this._instance.onAverageBuyCommit(payload);
|
|
35917
35925
|
return;
|
|
35918
35926
|
}
|
package/build/index.mjs
CHANGED
|
@@ -35795,6 +35795,7 @@ class BrokerProxy {
|
|
|
35795
35795
|
*/
|
|
35796
35796
|
async onSignalOpenCommit(payload) {
|
|
35797
35797
|
if (this._instance.onSignalOpenCommit) {
|
|
35798
|
+
await this.waitForInit();
|
|
35798
35799
|
await this._instance.onSignalOpenCommit(payload);
|
|
35799
35800
|
return;
|
|
35800
35801
|
}
|
|
@@ -35809,6 +35810,7 @@ class BrokerProxy {
|
|
|
35809
35810
|
*/
|
|
35810
35811
|
async onSignalCloseCommit(payload) {
|
|
35811
35812
|
if (this._instance.onSignalCloseCommit) {
|
|
35813
|
+
await this.waitForInit();
|
|
35812
35814
|
await this._instance.onSignalCloseCommit(payload);
|
|
35813
35815
|
return;
|
|
35814
35816
|
}
|
|
@@ -35823,6 +35825,7 @@ class BrokerProxy {
|
|
|
35823
35825
|
*/
|
|
35824
35826
|
async onPartialProfitCommit(payload) {
|
|
35825
35827
|
if (this._instance.onPartialProfitCommit) {
|
|
35828
|
+
await this.waitForInit();
|
|
35826
35829
|
await this._instance.onPartialProfitCommit(payload);
|
|
35827
35830
|
return;
|
|
35828
35831
|
}
|
|
@@ -35837,6 +35840,7 @@ class BrokerProxy {
|
|
|
35837
35840
|
*/
|
|
35838
35841
|
async onPartialLossCommit(payload) {
|
|
35839
35842
|
if (this._instance.onPartialLossCommit) {
|
|
35843
|
+
await this.waitForInit();
|
|
35840
35844
|
await this._instance.onPartialLossCommit(payload);
|
|
35841
35845
|
return;
|
|
35842
35846
|
}
|
|
@@ -35851,6 +35855,7 @@ class BrokerProxy {
|
|
|
35851
35855
|
*/
|
|
35852
35856
|
async onTrailingStopCommit(payload) {
|
|
35853
35857
|
if (this._instance.onTrailingStopCommit) {
|
|
35858
|
+
await this.waitForInit();
|
|
35854
35859
|
await this._instance.onTrailingStopCommit(payload);
|
|
35855
35860
|
return;
|
|
35856
35861
|
}
|
|
@@ -35865,6 +35870,7 @@ class BrokerProxy {
|
|
|
35865
35870
|
*/
|
|
35866
35871
|
async onTrailingTakeCommit(payload) {
|
|
35867
35872
|
if (this._instance.onTrailingTakeCommit) {
|
|
35873
|
+
await this.waitForInit();
|
|
35868
35874
|
await this._instance.onTrailingTakeCommit(payload);
|
|
35869
35875
|
return;
|
|
35870
35876
|
}
|
|
@@ -35879,6 +35885,7 @@ class BrokerProxy {
|
|
|
35879
35885
|
*/
|
|
35880
35886
|
async onBreakevenCommit(payload) {
|
|
35881
35887
|
if (this._instance.onBreakevenCommit) {
|
|
35888
|
+
await this.waitForInit();
|
|
35882
35889
|
await this._instance.onBreakevenCommit(payload);
|
|
35883
35890
|
return;
|
|
35884
35891
|
}
|
|
@@ -35893,6 +35900,7 @@ class BrokerProxy {
|
|
|
35893
35900
|
*/
|
|
35894
35901
|
async onAverageBuyCommit(payload) {
|
|
35895
35902
|
if (this._instance.onAverageBuyCommit) {
|
|
35903
|
+
await this.waitForInit();
|
|
35896
35904
|
await this._instance.onAverageBuyCommit(payload);
|
|
35897
35905
|
return;
|
|
35898
35906
|
}
|