Files
foxhunt/scripts/surfer/fxhnt_forward_cron.sh
jgrusewski cfa28368d5 fix(surfer): futures fetch weekly (Sunday only) in forward-track cron — cost control
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) <noreply@anthropic.com>
2026-06-14 00:11:00 +02:00

17 lines
1.0 KiB
Bash
Executable File

#!/usr/bin/env bash
# fxhnt combined-book daily forward-validation.
# Refresh the data, then book the new day's paper-NAV into the frozen forward track.
# - crypto X-sec momentum sleeve (alpha): free Binance fetch, advances daily
# - futures trend sleeve (hedge): Databento ohlcv, cost-capped in fetch_daily.py
# - fxhnt forward-track: books only days AFTER inception (genuine out-of-sample-in-time)
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 # 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"