#!/usr/bin/env bash # Daily live-trading update entrypoint for cron. # # Examples: # 0 17 * * 1-5 /path/to/quant/scripts/run_daily.sh us >> /var/log/quant_us.log 2>&1 # 0 16 * * 1-5 /path/to/quant/scripts/run_daily.sh cn >> /var/log/quant_cn.log 2>&1 # # The script changes into the quant project root and calls run_daily.py via uv. # Defaults to "all" markets when no argument is passed. set -euo pipefail SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" PROJECT_ROOT="$( cd "$SCRIPT_DIR/.." && pwd )" cd "$PROJECT_ROOT" MARKET="${1:-all}" shift || true exec uv run python scripts/run_daily.py --market "$MARKET" "$@"