#!/usr/bin/env bash # Overnight-only momentum book on Alpaca's PAPER account (overnight_paper.py daemon). # Started by the quant-trading-overnight-paper.service systemd --user unit. # Keys are read from the repo-root .env by the script itself; Alpaca is reached directly (no proxy). set -euo pipefail SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" PROJECT_ROOT="$( cd "$SCRIPT_DIR/.." && pwd )" cd "$PROJECT_ROOT" export PATH="/home/gahow/.local/bin:$PATH" exec uv run python overnight_paper.py daemon