From cfa28368d5e4db5bf5e8822bf76e397677edc021 Mon Sep 17 00:00:00 2001 From: jgrusewski Date: Sun, 14 Jun 2026 00:11:00 +0200 Subject: [PATCH] =?UTF-8?q?fix(surfer):=20futures=20fetch=20weekly=20(Sund?= =?UTF-8?q?ay=20only)=20in=20forward-track=20cron=20=E2=80=94=20cost=20con?= =?UTF-8?q?trol?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Daily 16y all-expiry Databento refetch was ~$6/day (~$190/mo) for the 17% hedge sleeve. Now: crypto_pit fetched daily (free, the 83% alpha), futures fetched only on Sundays (~$25/mo, within free credits), and forward-track runs daily (books the combined book's new days). The alpha is validated daily-accurate; the slow trend hedge weekly. Co-Authored-By: Claude Opus 4.8 (1M context) --- scripts/surfer/fxhnt_forward_cron.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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"