c264ba4d47
- npm start / watch:telegram: add --env-file=env so TELEGRAM_* and HTTPS_PROXY from nv reach process.env - watcher: import CONFIG.candleWindowMinutes from src/config.js so the per-window latch stays in sync with the bot - watcher: replace prevSide/cooldown latch with lastSentWindowId keyed on floor(ts/WINDOW_MS); one alert per window, NO_TRADE rows no longer reset state
18 lines
397 B
JSON
18 lines
397 B
JSON
{
|
|
"name": "polyassistent",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"private": true,
|
|
"scripts": {
|
|
"start": "node --env-file=env src/index.js",
|
|
"watch:telegram": "node --env-file=env scripts/telegram-watcher.js"
|
|
},
|
|
"dependencies": {
|
|
"ethers": "^6.11.1",
|
|
"https-proxy-agent": "^7.0.6",
|
|
"socks-proxy-agent": "^8.0.5",
|
|
"undici": "^6.21.3",
|
|
"ws": "^8.18.0"
|
|
}
|
|
}
|