Skip to content

Switch live pipeline to RapidAPI (Apify credits exhausted) - #15

Merged
tanamsethi31 merged 1 commit into
mainfrom
cursor/rapidapi-primary-pipeline-a709
Sep 27, 2026
Merged

tanamsethi31 merged 1 commit into
mainfrom
cursor/rapidapi-primary-pipeline-a709

Conversation

@tanamsethi31

Copy link
Copy Markdown
Owner

Summary

Apify credits are finished, so the production goals O/U pipeline now runs entirely on RapidAPI.

  • live_poll.yml: gate + rapidapi_engine only (Apify step removed)
  • calendar.py: prefers RAPIDAPI_KEY for calendar refresh; budget-aware 3-day horizon (Understat still fills the 10-day dashboard preview)
  • rapidapi_engine.py: promoted to primary — 3-day fixture scan cache, 180min post-kickoff lookback, syncs upcoming_fixtures.json
  • grade_results.py: grades via RapidAPI matches-by-date (Apify remains optional fallback when token is set)
  • grade_results.yml: RAPIDAPI_KEY only

Budget notes

RapidAPI free tier is 90 calls/month (hard cap at 100). Typical costs:

  • ~1 call/day for fixture scan (cached)
  • ~3 calls per analyzed match (home lineup + away lineup + odds)
  • Calendar refresh: up to 4 calls when stale (3-day horizon + budget check)

This limits how many matches get full analysis each month — the gate step still skips idle polls when nothing is in the live window.

Test plan

  • python3 scripts/calendar_test.py (includes RapidAPI calendar refresh)
  • python3 scripts/grade_results_rapidapi_test.py
  • python3 scripts/grade_results_clv_test.py
  • python3 scripts/grade_results_by_id_test.py
  • python3 scripts/rapidapi_odds_parse_test.py
  • Merge + trigger manual Live poll workflow to verify production path
Open in Web Open in Cursor 

Apify credits are exhausted, so production now runs entirely on RapidAPI:
- live_poll.yml gates and runs rapidapi_engine only (Apify step removed)
- calendar refresh prefers RAPIDAPI_KEY with budget-aware 3-day horizon
- rapidapi_engine scans 3 days, supports post-kickoff lookback, syncs upcoming
- grade_results grades via RapidAPI matches-by-date (Apify optional fallback)
- grade_results.yml uses RAPIDAPI_KEY only

Co-authored-by: Tanam Sethi <sethit@tcd.ie>
@vercel

vercel Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
footymodel Ready Ready Preview Sep 8, 2026 5:44pm UTC

@tanamsethi31
tanamsethi31 marked this pull request as ready for review September 27, 2026 01:47
@tanamsethi31
tanamsethi31 merged commit 811aa71 into main Sep 27, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — 81d6c795 Deployed Sep 8, 2026 by vercel[bot]
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.

2 participants