#!/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"