@tradejs/cli 3.1.9 → 3.1.10

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/cli.js CHANGED
@@ -32588,7 +32588,7 @@ var init_runner = __esm({
32588
32588
  if (universe === "tradfi" && typeof marketConnector.listInstruments !== "function") {
32589
32589
  throw new Error("TradFi connector must implement listInstruments");
32590
32590
  }
32591
- const instruments = typeof marketConnector.listInstruments === "function" ? await marketConnector.listInstruments({
32591
+ const instruments = (!config2.cacheOnly || universe === "tradfi") && typeof marketConnector.listInstruments === "function" ? await marketConnector.listInstruments({
32592
32592
  universe,
32593
32593
  assetClasses: deployment?.assetClasses,
32594
32594
  symbols: tickers
@@ -5236,7 +5236,7 @@ var createSignalsRunner = (config2) => {
5236
5236
  if (universe === "tradfi" && typeof marketConnector.listInstruments !== "function") {
5237
5237
  throw new Error("TradFi connector must implement listInstruments");
5238
5238
  }
5239
- const instruments = typeof marketConnector.listInstruments === "function" ? await marketConnector.listInstruments({
5239
+ const instruments = (!config2.cacheOnly || universe === "tradfi") && typeof marketConnector.listInstruments === "function" ? await marketConnector.listInstruments({
5240
5240
  universe,
5241
5241
  assetClasses: deployment?.assetClasses,
5242
5242
  symbols: tickers
@@ -5234,7 +5234,7 @@ var createSignalsRunner = (config2) => {
5234
5234
  if (universe === "tradfi" && typeof marketConnector.listInstruments !== "function") {
5235
5235
  throw new Error("TradFi connector must implement listInstruments");
5236
5236
  }
5237
- const instruments = typeof marketConnector.listInstruments === "function" ? await marketConnector.listInstruments({
5237
+ const instruments = (!config2.cacheOnly || universe === "tradfi") && typeof marketConnector.listInstruments === "function" ? await marketConnector.listInstruments({
5238
5238
  universe,
5239
5239
  assetClasses: deployment?.assetClasses,
5240
5240
  symbols: tickers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tradejs/cli",
3
- "version": "3.1.9",
3
+ "version": "3.1.10",
4
4
  "description": "Official CLI for the TradeJS TypeScript framework: infra setup, backtests, signals, bots, and ML workflows.",
5
5
  "keywords": [
6
6
  "tradejs",
@@ -32,13 +32,13 @@
32
32
  "tradejs": "dist/cli.js"
33
33
  },
34
34
  "dependencies": {
35
- "@tradejs/connectors": "^3.1.9",
36
- "@tradejs/core": "^3.1.9",
37
- "@tradejs/indicators": "^3.1.9",
38
- "@tradejs/infra": "^3.1.9",
39
- "@tradejs/node": "^3.1.9",
35
+ "@tradejs/connectors": "^3.1.10",
36
+ "@tradejs/core": "^3.1.10",
37
+ "@tradejs/indicators": "^3.1.10",
38
+ "@tradejs/infra": "^3.1.10",
39
+ "@tradejs/node": "^3.1.10",
40
40
  "@tradejs/strategy-kit": "^3.0.0",
41
- "@tradejs/types": "^3.1.9",
41
+ "@tradejs/types": "^3.1.10",
42
42
  "args": "^5.0.3",
43
43
  "bcryptjs": "^2.4.3",
44
44
  "chalk": "4.1.2",