@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.
@@ -3960,9 +3960,9 @@ var STRATEGY_PERSONALITIES = [
3960
3960
  name: "Balanced Alpha",
3961
3961
  shortName: "BAL",
3962
3962
  color: "#3B82F6",
3963
- scanIntervalMin: 25e3,
3964
- // Slower: 25-40s between cycles
3965
- scanIntervalMax: 4e4,
3963
+ scanIntervalMin: 45e3,
3964
+ // 45-70s between cycles (slower for readability)
3965
+ scanIntervalMax: 7e4,
3966
3966
  tradeFrequency: 0.4,
3967
3967
  positionSizeMin: 15,
3968
3968
  positionSizeMax: 35,
@@ -3978,9 +3978,9 @@ var STRATEGY_PERSONALITIES = [
3978
3978
  name: "Conservative Shield",
3979
3979
  shortName: "CON",
3980
3980
  color: "#10B981",
3981
- scanIntervalMin: 35e3,
3982
- // Slower: 35-55s between cycles
3983
- scanIntervalMax: 55e3,
3981
+ scanIntervalMin: 6e4,
3982
+ // 60-90s between cycles (slower for readability)
3983
+ scanIntervalMax: 9e4,
3984
3984
  tradeFrequency: 0.25,
3985
3985
  positionSizeMin: 10,
3986
3986
  positionSizeMax: 20,
@@ -3996,9 +3996,9 @@ var STRATEGY_PERSONALITIES = [
3996
3996
  name: "Aggressive Momentum",
3997
3997
  shortName: "AGG",
3998
3998
  color: "#EF4444",
3999
- scanIntervalMin: 18e3,
4000
- // Slower: 18-30s between cycles
4001
- scanIntervalMax: 3e4,
3999
+ scanIntervalMin: 35e3,
4000
+ // 35-55s between cycles (slower for readability)
4001
+ scanIntervalMax: 55e3,
4002
4002
  tradeFrequency: 0.5,
4003
4003
  positionSizeMin: 25,
4004
4004
  positionSizeMax: 50,
@@ -4248,7 +4248,7 @@ var BotSimulationEngine = class {
4248
4248
  },
4249
4249
  delay
4250
4250
  });
4251
- delay += rand3(800, 1500);
4251
+ delay += rand3(2e3, 3500);
4252
4252
  const thinkingMessages = this.generateThinkingProcess(strategy, pair, price);
4253
4253
  for (const thinking of thinkingMessages) {
4254
4254
  entries.push({
@@ -4261,7 +4261,7 @@ var BotSimulationEngine = class {
4261
4261
  },
4262
4262
  delay
4263
4263
  });
4264
- delay += rand3(600, 1200);
4264
+ delay += rand3(1500, 2500);
4265
4265
  }
4266
4266
  const indicatorParts = [];
4267
4267
  if (strategy.primaryIndicators.includes("RSI") || strategy.primaryIndicators.includes("MACD")) {
@@ -4293,7 +4293,7 @@ var BotSimulationEngine = class {
4293
4293
  },
4294
4294
  delay
4295
4295
  });
4296
- delay += rand3(800, 1500);
4296
+ delay += rand3(2e3, 3500);
4297
4297
  if (Math.random() < 0.12) {
4298
4298
  const sentiment = Math.random() > 0.4 ? "Bullish" : "Bearish";
4299
4299
  entries.push({
@@ -4306,7 +4306,7 @@ var BotSimulationEngine = class {
4306
4306
  },
4307
4307
  delay
4308
4308
  });
4309
- delay += rand3(1e3, 1800);
4309
+ delay += rand3(2500, 4e3);
4310
4310
  }
4311
4311
  if (Math.random() < 0.4) {
4312
4312
  const analysis = this.generateAnalysis(strategy, indicators, pair);
@@ -4320,7 +4320,7 @@ var BotSimulationEngine = class {
4320
4320
  },
4321
4321
  delay
4322
4322
  });
4323
- delay += rand3(1e3, 2e3);
4323
+ delay += rand3(2500, 4e3);
4324
4324
  }
4325
4325
  const signal = this.evaluateSignal(strategy, indicators);
4326
4326
  state.lastSignal = signal.direction;
@@ -4344,7 +4344,7 @@ var BotSimulationEngine = class {
4344
4344
  },
4345
4345
  delay
4346
4346
  });
4347
- delay += rand3(1500, 2500);
4347
+ delay += rand3(3e3, 5e3);
4348
4348
  entries.push({
4349
4349
  entry: {
4350
4350
  strategyId: strategy.id,
@@ -4356,7 +4356,7 @@ var BotSimulationEngine = class {
4356
4356
  },
4357
4357
  delay
4358
4358
  });
4359
- delay += rand3(1200, 2e3);
4359
+ delay += rand3(3e3, 4500);
4360
4360
  const decision = this.makeTradeDecision(strategy, signal, state);
4361
4361
  if (decision.execute) {
4362
4362
  entries.push({
@@ -4376,7 +4376,7 @@ var BotSimulationEngine = class {
4376
4376
  },
4377
4377
  delay
4378
4378
  });
4379
- delay += rand3(1e3, 1800);
4379
+ delay += rand3(2500, 4e3);
4380
4380
  const orderId = `ORD_${Date.now().toString(36).toUpperCase()}`;
4381
4381
  const orderPrice = signal.direction === "LONG" ? price * (1 - rand3(1e-4, 5e-4)) : price * (1 + rand3(1e-4, 5e-4));
4382
4382
  entries.push({
@@ -4401,7 +4401,7 @@ var BotSimulationEngine = class {
4401
4401
  },
4402
4402
  delay
4403
4403
  });
4404
- delay += rand3(2e3, 4e3);
4404
+ delay += rand3(4e3, 7e3);
4405
4405
  const fillPrice = orderPrice * (1 + rand3(-3e-4, 3e-4));
4406
4406
  const slippage = Math.abs(fillPrice - orderPrice) / orderPrice * 100;
4407
4407
  entries.push({
@@ -4450,7 +4450,7 @@ var BotSimulationEngine = class {
4450
4450
  }
4451
4451
  }
4452
4452
  if (state.openPositions.length > 0 && Math.random() < 0.5) {
4453
- delay += rand3(1500, 2500);
4453
+ delay += rand3(3500, 5500);
4454
4454
  let totalPositionPnl = 0;
4455
4455
  const pnlParts = [];
4456
4456
  for (const pos of state.openPositions) {
@@ -4486,7 +4486,7 @@ var BotSimulationEngine = class {
4486
4486
  });
4487
4487
  }
4488
4488
  if (Math.random() < 0.2) {
4489
- delay += rand3(1e3, 2e3);
4489
+ delay += rand3(3e3, 5e3);
4490
4490
  const exposure = state.openPositions.reduce((sum, p) => sum + p.size * p.leverage, 0);
4491
4491
  const maxDrawdown = rand3(2, 12);
4492
4492
  entries.push({