← Back
module.exports = {
  apps: [{
    name: 'of-trader',
    script: 'src/main.py',
    interpreter: '/home/app/of-trader/venv/bin/python3',
    cwd: '/home/app/of-trader',
    autorestart: true,
    max_restarts: 10,
    restart_delay: 5000,
    env: {
      TZ: 'America/Vancouver',
      PYTHONPATH: '/home/app/of-trader',

      // ---- SAFETY: stays dry until testnet + micro-mainnet validated ----
      DRY_RUN: 'true',
      BINANCE_TESTNET: 'true',

      // ---- Signal source (screener DB, read locally on this VPS) ----
      SCREENER_DB_PATH: '/home/app/futures-screener/server/data/users.db',
      POLL_INTERVAL_SEC: '3',

      // ---- Telegram (reuse grid-bot's own bot — NOT Bender) ----
      TELEGRAM_BOT_TOKEN: 'TOKEN_PLACEHOLDER',
      TELEGRAM_CHAT_ID: '191142060',

      // ---- Bracket (mirrors screener ticket) ----
      OF_TP_PCT: '2.0',
      OF_SL_PCT: '0.5',
      OF_HOLD_MAX_MIN: '10',
      OF_CAPITAL_USD: '50',
      OF_LEVERAGE: '5',

      // ---- Risk ----
      MAX_CONCURRENT_POSITIONS: '1',
      MAX_NOTIONAL_USD: '250',
      DAILY_LOSS_LIMIT_USD: '10',

      // ---- Binance keys (empty in DRY; testnet keys added in Chunk 4) ----
      BINANCE_API_KEY: '',
      BINANCE_API_SECRET: '',

      // ---- TMM journal ----
      TMM_STRATEGY_TAG: 'OF.v1',
      TMM_TAG_COL_STRATEGY: '10',
    },
  }],
};

📜 Git History

793f4d9feat(of-trader): telegram notifications + control (chunk 3a)4 weeks ago
Show last diff
Loading...