diff --git a/scripts/surfer/fxhnt_forward_cron.sh b/scripts/surfer/fxhnt_forward_cron.sh index a1bcf5c53..8b1efb745 100755 --- a/scripts/surfer/fxhnt_forward_cron.sh +++ b/scripts/surfer/fxhnt_forward_cron.sh @@ -8,6 +8,9 @@ set -u cd /home/jgrusewski/Work/foxhunt || exit 1 [ -f "$HOME/.secrets" ] && . "$HOME/.secrets" # DATABENTO_API_KEY (gitignored, never printed) echo "===== $(date -u '+%Y-%m-%d %H:%M UTC') =====" -python3 scripts/surfer/fetch_crypto_pit.py 2>&1 | tail -1 -python3 scripts/surfer/fetch_daily.py 2>&1 | tail -2 +python3 scripts/surfer/fetch_crypto_pit.py 2>&1 | tail -1 # daily, free (Binance) — alpha sleeve +if [ "$(date -u +%u)" -eq 7 ]; then # futures only on Sundays — cost control + echo "[sunday] refreshing futures (Databento)" + python3 scripts/surfer/fetch_daily.py 2>&1 | tail -2 +fi /home/jgrusewski/.local/bin/fxhnt forward-track 2>&1 | grep -vE "BentoWarning|Warning|RuntimeWarning|divide|invalid value|stddev"