Files
remizov-trader/deploy/scalp-bot.service
T
anorandClaude Opus 4.6 af6885c3e7 feat: deploy-конфиг + trailing stops + reconcile positions
- deploy/scalp-bot.service — systemd unit для пользователя scalp
- deploy/update.sh — скрипт обновления на сервере
- cli.py: stop-update cycle каждые 15 мин (trailing stops + safety orders)
- executor.py: reconcile_positions (синхронизация с биржей), update_stops

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 21:43:21 +10:00

30 lines
548 B
Desktop File

[Unit]
Description=scalp-bot ETH futures scalper (Bybit)
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=scalp
Group=scalp
WorkingDirectory=/home/scalp/app
EnvironmentFile=/home/scalp/app/.env
ExecStart=/home/scalp/app/.venv/bin/python cli.py daemon
Restart=on-failure
RestartSec=30
StartLimitIntervalSec=300
StartLimitBurst=5
KillSignal=SIGTERM
TimeoutStopSec=30
NoNewPrivileges=yes
PrivateTmp=yes
StandardOutput=journal
StandardError=journal
SyslogIdentifier=scalp-bot
[Install]
WantedBy=multi-user.target