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:
21
scripts/run_daily.sh
Executable file
21
scripts/run_daily.sh
Executable 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" "$@"
|
||||
Reference in New Issue
Block a user