INNER CODE UNIT · JavaScript

run

dearvn/tradovate-trading-bot · agents/frontend/index.js:54

const run = async () => {
  const logger = rootLogger.child({
    agent: 'frontend',
    gitHash: process.env.GIT_HASH || 'unspecified'
  });

  runErrorHandler(logger);

  // ── Rate limiter (shared Redis key with app layer) ────────────────────────
  const maxConsecutiveFails = config.get('authentication.loginLimiter.maxConsecutiveFails');
  const loginLimiter = new RateLimiterRedis({
    redis: cache.redis,
    keyPrefix: 'login',
    points: maxConsecutiveFails,
    duration: config.get('authentication.loginLimiter.duration'),
    blockDuration: config.get('authentication.loginLimiter.blockDuration')
  });

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…