backtest-kit 1.5.6 → 1.5.7

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 CHANGED
@@ -13517,6 +13517,13 @@ class BacktestInstance {
13517
13517
  symbol,
13518
13518
  context,
13519
13519
  });
13520
+ backtest$1.strategyValidationService.validate(context.strategyName, BACKTEST_METHOD_NAME_RUN);
13521
+ backtest$1.exchangeValidationService.validate(context.exchangeName, BACKTEST_METHOD_NAME_RUN);
13522
+ backtest$1.frameValidationService.validate(context.frameName, BACKTEST_METHOD_NAME_RUN);
13523
+ {
13524
+ const { riskName } = backtest$1.strategySchemaService.get(context.strategyName);
13525
+ riskName && backtest$1.riskValidationService.validate(riskName, BACKTEST_METHOD_NAME_RUN);
13526
+ }
13520
13527
  {
13521
13528
  backtest$1.backtestMarkdownService.clear({ symbol, strategyName: context.strategyName });
13522
13529
  backtest$1.scheduleMarkdownService.clear({ symbol, strategyName: context.strategyName });
@@ -13970,6 +13977,12 @@ class LiveInstance {
13970
13977
  symbol,
13971
13978
  context,
13972
13979
  });
13980
+ backtest$1.strategyValidationService.validate(context.strategyName, LIVE_METHOD_NAME_RUN);
13981
+ backtest$1.exchangeValidationService.validate(context.exchangeName, LIVE_METHOD_NAME_RUN);
13982
+ {
13983
+ const { riskName } = backtest$1.strategySchemaService.get(context.strategyName);
13984
+ riskName && backtest$1.riskValidationService.validate(riskName, LIVE_METHOD_NAME_RUN);
13985
+ }
13973
13986
  {
13974
13987
  backtest$1.liveMarkdownService.clear({ symbol, strategyName: context.strategyName });
13975
13988
  backtest$1.scheduleMarkdownService.clear({ symbol, strategyName: context.strategyName });
package/build/index.mjs CHANGED
@@ -13515,6 +13515,13 @@ class BacktestInstance {
13515
13515
  symbol,
13516
13516
  context,
13517
13517
  });
13518
+ backtest$1.strategyValidationService.validate(context.strategyName, BACKTEST_METHOD_NAME_RUN);
13519
+ backtest$1.exchangeValidationService.validate(context.exchangeName, BACKTEST_METHOD_NAME_RUN);
13520
+ backtest$1.frameValidationService.validate(context.frameName, BACKTEST_METHOD_NAME_RUN);
13521
+ {
13522
+ const { riskName } = backtest$1.strategySchemaService.get(context.strategyName);
13523
+ riskName && backtest$1.riskValidationService.validate(riskName, BACKTEST_METHOD_NAME_RUN);
13524
+ }
13518
13525
  {
13519
13526
  backtest$1.backtestMarkdownService.clear({ symbol, strategyName: context.strategyName });
13520
13527
  backtest$1.scheduleMarkdownService.clear({ symbol, strategyName: context.strategyName });
@@ -13968,6 +13975,12 @@ class LiveInstance {
13968
13975
  symbol,
13969
13976
  context,
13970
13977
  });
13978
+ backtest$1.strategyValidationService.validate(context.strategyName, LIVE_METHOD_NAME_RUN);
13979
+ backtest$1.exchangeValidationService.validate(context.exchangeName, LIVE_METHOD_NAME_RUN);
13980
+ {
13981
+ const { riskName } = backtest$1.strategySchemaService.get(context.strategyName);
13982
+ riskName && backtest$1.riskValidationService.validate(riskName, LIVE_METHOD_NAME_RUN);
13983
+ }
13971
13984
  {
13972
13985
  backtest$1.liveMarkdownService.clear({ symbol, strategyName: context.strategyName });
13973
13986
  backtest$1.scheduleMarkdownService.clear({ symbol, strategyName: context.strategyName });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backtest-kit",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
4
4
  "description": "A TypeScript library for trading system backtest",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",