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>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user