Cloudflare Worker cron that auto-compiles daily intelligence briefs for 1btc-news-api.p-d07.workers.dev.
Built for Bounty #14 — 8,000 sats.
- Fires at
00:00 UTCdaily via Cloudflare cron trigger - Gets current epoch from
GET /→ identifies the closing epoch (current - 1) - Fetches all signals for that epoch via
GET /epoch/:id - Generates a structured markdown report grouped by beat/category
- POSTs to
POST /epoch/:id/compilewith the compiled report
- Worker URL: https://epoch-auto-compiler.brandonmarshall.workers.dev
- Manual trigger:
GET /run - Cron:
0 0 * * *(00:00 UTC daily)
✅ Deployed and tested. Generates report correctly (tested against epoch 7 with 5 signals, produced 3,571-char markdown report).
POST /epoch/:id/compile returns Not authorized — needs authorization grant from the API owner for the Worker's origin to compile.
npm install -g wrangler
wrangler deploy