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