backtest-kit 5.6.2 → 5.6.3
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 +14 -0
- package/build/index.mjs +14 -0
- package/package.json +1 -1
- package/types.d.ts +1 -1
package/build/index.cjs
CHANGED
|
@@ -36018,6 +36018,13 @@ function listenStrategyCommitOnce(filterFn, fn) {
|
|
|
36018
36018
|
*/
|
|
36019
36019
|
function listenSync(fn) {
|
|
36020
36020
|
bt.loggerService.log(LISTEN_SYNC_METHOD_NAME);
|
|
36021
|
+
{
|
|
36022
|
+
console.error("listenSync is unwanted cause exchange integration should be implemented in Broker.useBrokerAdapter as an infrastructure domain layer");
|
|
36023
|
+
console.error("If you need to implement custom logic on signal open/close, please use signal(), signalBacktest(), signalLive() in addActionSchema handler");
|
|
36024
|
+
console.error("If listenSync throws the exchange will not execute the order!");
|
|
36025
|
+
console.error("");
|
|
36026
|
+
console.error("You have been warned!");
|
|
36027
|
+
}
|
|
36021
36028
|
return syncSubject.subscribe(functoolsKit.queued(async (event) => fn(event)));
|
|
36022
36029
|
}
|
|
36023
36030
|
/**
|
|
@@ -36030,6 +36037,13 @@ function listenSync(fn) {
|
|
|
36030
36037
|
*/
|
|
36031
36038
|
function listenSyncOnce(filterFn, fn) {
|
|
36032
36039
|
bt.loggerService.log(LISTEN_SYNC_ONCE_METHOD_NAME);
|
|
36040
|
+
{
|
|
36041
|
+
console.error("listenSyncOnce is unwanted cause exchange integration should be implemented in Broker.useBrokerAdapter as an infrastructure domain layer");
|
|
36042
|
+
console.error("If you need to implement custom logic on signal open/close, please use signal(), signalBacktest(), signalLive() in addActionSchema handler");
|
|
36043
|
+
console.error("If listenSyncOnce throws the exchange WILL EXECUTE the order!");
|
|
36044
|
+
console.error("");
|
|
36045
|
+
console.error("You have been warned!");
|
|
36046
|
+
}
|
|
36033
36047
|
return syncSubject.filter(filterFn).once(fn);
|
|
36034
36048
|
}
|
|
36035
36049
|
/**
|
package/build/index.mjs
CHANGED
|
@@ -35998,6 +35998,13 @@ function listenStrategyCommitOnce(filterFn, fn) {
|
|
|
35998
35998
|
*/
|
|
35999
35999
|
function listenSync(fn) {
|
|
36000
36000
|
bt.loggerService.log(LISTEN_SYNC_METHOD_NAME);
|
|
36001
|
+
{
|
|
36002
|
+
console.error("listenSync is unwanted cause exchange integration should be implemented in Broker.useBrokerAdapter as an infrastructure domain layer");
|
|
36003
|
+
console.error("If you need to implement custom logic on signal open/close, please use signal(), signalBacktest(), signalLive() in addActionSchema handler");
|
|
36004
|
+
console.error("If listenSync throws the exchange will not execute the order!");
|
|
36005
|
+
console.error("");
|
|
36006
|
+
console.error("You have been warned!");
|
|
36007
|
+
}
|
|
36001
36008
|
return syncSubject.subscribe(queued(async (event) => fn(event)));
|
|
36002
36009
|
}
|
|
36003
36010
|
/**
|
|
@@ -36010,6 +36017,13 @@ function listenSync(fn) {
|
|
|
36010
36017
|
*/
|
|
36011
36018
|
function listenSyncOnce(filterFn, fn) {
|
|
36012
36019
|
bt.loggerService.log(LISTEN_SYNC_ONCE_METHOD_NAME);
|
|
36020
|
+
{
|
|
36021
|
+
console.error("listenSyncOnce is unwanted cause exchange integration should be implemented in Broker.useBrokerAdapter as an infrastructure domain layer");
|
|
36022
|
+
console.error("If you need to implement custom logic on signal open/close, please use signal(), signalBacktest(), signalLive() in addActionSchema handler");
|
|
36023
|
+
console.error("If listenSyncOnce throws the exchange WILL EXECUTE the order!");
|
|
36024
|
+
console.error("");
|
|
36025
|
+
console.error("You have been warned!");
|
|
36026
|
+
}
|
|
36013
36027
|
return syncSubject.filter(filterFn).once(fn);
|
|
36014
36028
|
}
|
|
36015
36029
|
/**
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1021,7 +1021,7 @@ interface ActivePingContract {
|
|
|
1021
1021
|
* Complete pending signal row data.
|
|
1022
1022
|
* Contains all signal information: id, position, priceOpen, priceTakeProfit, priceStopLoss, etc.
|
|
1023
1023
|
*/
|
|
1024
|
-
data:
|
|
1024
|
+
data: IPublicSignalRow;
|
|
1025
1025
|
/**
|
|
1026
1026
|
* Current market price of the symbol at the time of the ping.
|
|
1027
1027
|
* Useful for users to implement custom management logic based on price conditions.
|