@one_deploy/sdk 1.2.0 → 1.2.1

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.
@@ -961,9 +961,9 @@ var init_BotSimulationEngine = __esm({
961
961
  name: "Balanced Alpha",
962
962
  shortName: "BAL",
963
963
  color: "#3B82F6",
964
- scanIntervalMin: 25e3,
965
- // Slower: 25-40s between cycles
966
- scanIntervalMax: 4e4,
964
+ scanIntervalMin: 45e3,
965
+ // 45-70s between cycles (slower for readability)
966
+ scanIntervalMax: 7e4,
967
967
  tradeFrequency: 0.4,
968
968
  positionSizeMin: 15,
969
969
  positionSizeMax: 35,
@@ -979,9 +979,9 @@ var init_BotSimulationEngine = __esm({
979
979
  name: "Conservative Shield",
980
980
  shortName: "CON",
981
981
  color: "#10B981",
982
- scanIntervalMin: 35e3,
983
- // Slower: 35-55s between cycles
984
- scanIntervalMax: 55e3,
982
+ scanIntervalMin: 6e4,
983
+ // 60-90s between cycles (slower for readability)
984
+ scanIntervalMax: 9e4,
985
985
  tradeFrequency: 0.25,
986
986
  positionSizeMin: 10,
987
987
  positionSizeMax: 20,
@@ -997,9 +997,9 @@ var init_BotSimulationEngine = __esm({
997
997
  name: "Aggressive Momentum",
998
998
  shortName: "AGG",
999
999
  color: "#EF4444",
1000
- scanIntervalMin: 18e3,
1001
- // Slower: 18-30s between cycles
1002
- scanIntervalMax: 3e4,
1000
+ scanIntervalMin: 35e3,
1001
+ // 35-55s between cycles (slower for readability)
1002
+ scanIntervalMax: 55e3,
1003
1003
  tradeFrequency: 0.5,
1004
1004
  positionSizeMin: 25,
1005
1005
  positionSizeMax: 50,
@@ -1229,7 +1229,7 @@ var init_BotSimulationEngine = __esm({
1229
1229
  },
1230
1230
  delay
1231
1231
  });
1232
- delay += rand3(800, 1500);
1232
+ delay += rand3(2e3, 3500);
1233
1233
  const thinkingMessages = this.generateThinkingProcess(strategy, pair, price);
1234
1234
  for (const thinking of thinkingMessages) {
1235
1235
  entries.push({
@@ -1242,7 +1242,7 @@ var init_BotSimulationEngine = __esm({
1242
1242
  },
1243
1243
  delay
1244
1244
  });
1245
- delay += rand3(600, 1200);
1245
+ delay += rand3(1500, 2500);
1246
1246
  }
1247
1247
  const indicatorParts = [];
1248
1248
  if (strategy.primaryIndicators.includes("RSI") || strategy.primaryIndicators.includes("MACD")) {
@@ -1274,7 +1274,7 @@ var init_BotSimulationEngine = __esm({
1274
1274
  },
1275
1275
  delay
1276
1276
  });
1277
- delay += rand3(800, 1500);
1277
+ delay += rand3(2e3, 3500);
1278
1278
  if (Math.random() < 0.12) {
1279
1279
  const sentiment = Math.random() > 0.4 ? "Bullish" : "Bearish";
1280
1280
  entries.push({
@@ -1287,7 +1287,7 @@ var init_BotSimulationEngine = __esm({
1287
1287
  },
1288
1288
  delay
1289
1289
  });
1290
- delay += rand3(1e3, 1800);
1290
+ delay += rand3(2500, 4e3);
1291
1291
  }
1292
1292
  if (Math.random() < 0.4) {
1293
1293
  const analysis = this.generateAnalysis(strategy, indicators, pair);
@@ -1301,7 +1301,7 @@ var init_BotSimulationEngine = __esm({
1301
1301
  },
1302
1302
  delay
1303
1303
  });
1304
- delay += rand3(1e3, 2e3);
1304
+ delay += rand3(2500, 4e3);
1305
1305
  }
1306
1306
  const signal = this.evaluateSignal(strategy, indicators);
1307
1307
  state.lastSignal = signal.direction;
@@ -1325,7 +1325,7 @@ var init_BotSimulationEngine = __esm({
1325
1325
  },
1326
1326
  delay
1327
1327
  });
1328
- delay += rand3(1500, 2500);
1328
+ delay += rand3(3e3, 5e3);
1329
1329
  entries.push({
1330
1330
  entry: {
1331
1331
  strategyId: strategy.id,
@@ -1337,7 +1337,7 @@ var init_BotSimulationEngine = __esm({
1337
1337
  },
1338
1338
  delay
1339
1339
  });
1340
- delay += rand3(1200, 2e3);
1340
+ delay += rand3(3e3, 4500);
1341
1341
  const decision = this.makeTradeDecision(strategy, signal, state);
1342
1342
  if (decision.execute) {
1343
1343
  entries.push({
@@ -1357,7 +1357,7 @@ var init_BotSimulationEngine = __esm({
1357
1357
  },
1358
1358
  delay
1359
1359
  });
1360
- delay += rand3(1e3, 1800);
1360
+ delay += rand3(2500, 4e3);
1361
1361
  const orderId = `ORD_${Date.now().toString(36).toUpperCase()}`;
1362
1362
  const orderPrice = signal.direction === "LONG" ? price * (1 - rand3(1e-4, 5e-4)) : price * (1 + rand3(1e-4, 5e-4));
1363
1363
  entries.push({
@@ -1382,7 +1382,7 @@ var init_BotSimulationEngine = __esm({
1382
1382
  },
1383
1383
  delay
1384
1384
  });
1385
- delay += rand3(2e3, 4e3);
1385
+ delay += rand3(4e3, 7e3);
1386
1386
  const fillPrice = orderPrice * (1 + rand3(-3e-4, 3e-4));
1387
1387
  const slippage = Math.abs(fillPrice - orderPrice) / orderPrice * 100;
1388
1388
  entries.push({
@@ -1431,7 +1431,7 @@ var init_BotSimulationEngine = __esm({
1431
1431
  }
1432
1432
  }
1433
1433
  if (state.openPositions.length > 0 && Math.random() < 0.5) {
1434
- delay += rand3(1500, 2500);
1434
+ delay += rand3(3500, 5500);
1435
1435
  let totalPositionPnl = 0;
1436
1436
  const pnlParts = [];
1437
1437
  for (const pos of state.openPositions) {
@@ -1467,7 +1467,7 @@ var init_BotSimulationEngine = __esm({
1467
1467
  });
1468
1468
  }
1469
1469
  if (Math.random() < 0.2) {
1470
- delay += rand3(1e3, 2e3);
1470
+ delay += rand3(3e3, 5e3);
1471
1471
  const exposure = state.openPositions.reduce((sum, p) => sum + p.size * p.leverage, 0);
1472
1472
  const maxDrawdown = rand3(2, 12);
1473
1473
  entries.push({