Skip to content

Live price tracking, arbitrage alerts, Cloud Scheduler#53

Merged
Pyronewbic merged 2 commits into
mainfrom
dev
May 12, 2026
Merged

Live price tracking, arbitrage alerts, Cloud Scheduler#53
Pyronewbic merged 2 commits into
mainfrom
dev

Conversation

@Pyronewbic
Copy link
Copy Markdown
Owner

Summary

  • track-prices: fetches real eBay sold + magi comps, falls back to demo locally
  • Alerts: price drop + arbitrage spread types, check-alerts evaluates live data
  • Firestore: getActiveAlerts, updateAlert, getAlertsByEmail
  • Dashboard alert form: toggle between Price Drop and Arbitrage Spread
  • Cloud Scheduler: track-prices + check-alerts every 6h, reads key from Secret Manager

Breaking changes

None — existing price alerts continue to work (default type: "price")

Demo data

  • Sample data still works (?demo=true)
  • No new fields missing from demo cards

Manual verification

  • Alert form toggles between price/arbitrage with correct fields
  • terraform plan shows 3 new resources (scheduler API + 2 jobs)

track-prices: fetches real eBay sold + magi comps, falls back to demo
when no credentials. Records to Firestore price-history.

Alerts: supports "price" (below target) and "arbitrage" (spread threshold)
types. check-alerts (owner-only) evaluates all active alerts against live
data, returns triggered alerts with prices/spread details.

Firestore: getActiveAlerts, updateAlert, getAlertsByEmail.
…ated checks

Dashboard alert form: toggle between Price Drop and Arbitrage Spread
alert types with pill buttons. Price alerts set target price, arbitrage
alerts set spread threshold percentage.

Terraform: Cloud Scheduler jobs for track-prices (every 6h) and
check-alerts (every 6h, offset 30min). Both hit the API with owner key.
@Pyronewbic Pyronewbic merged commit a0a8845 into main May 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant