Add push-based wallet trade watcher (Alchemy webhook -> Discord)

webhook_receiver.py: zero-dep stdlib HTTP server that receives Alchemy
Address-Activity webhook POSTs, confirms/enriches the trade via Polymarket
data-API, and pushes a Discord alert — fires only on a real trade, no polling.
Cloud-ready: secrets via env (DISCORD_WEBHOOK, ALCHEMY_SIGNING_KEY), non-secret
watch list in committed watch.json, binds to $PORT, /health endpoint,
optional HMAC signature verification, in-memory dedup. Procfile for one-command
deploy. config.json (secrets) stays gitignored.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
jaxperro
2026-06-13 16:49:55 -04:00
parent c1265c5461
commit 079fbf1787
4 changed files with 199 additions and 0 deletions
+2
View File
@@ -19,3 +19,5 @@ lp_paper_state.json
# cross-venue scanner output
xarb_hits.csv
hunt.log
recv.log
watcher_state.json