chore: track precompute and ops scripts; move monitor proxy into .env

The monitor start script used to embed the proxy URL with credentials,
which kept scripts/ out of git. It now reads QUANT_MARKET_PROXY from the
untracked repo-root .env.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-09-25 11:35:59 +08:00
parent 6dc623b4a1
commit f6b46d4d68
5 changed files with 585 additions and 0 deletions

21
scripts/run_daily.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/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" "$@"