Odds API: number of bookmakers and freshness behind each consensus price
Context: I read /api/v2/odds/?event_id=... and build my own consensus (median price, then a no-vig probability) for 1X2, O/U and BTTS. Before using a market I require a minimum number of distinct, recently updated bookmakers (4 for normal picks, 8 for long accumulators), because a median over 2-3 books is noisy and often stale.
Today that check means pulling every per-bookmaker row and counting myself. Two small additions would make it much cheaper and more reliable:
1. On the consensus / per-market response (e.g. /api/v2/events/{id}/odds/): a `n_books` field per market and outcome = how many distinct bookmakers contributed to that price, plus `oldest_update` / `newest_update` (or the median age in seconds) of those quotes.
2. On /api/v2/odds/: an optional filter such as `min_books=N` (return only markets priced by at least N bookmakers) and `max_age=MINUTES` (drop quotes older than that). Unknown params are rejected with 400 today, so this would be an explicit opt-in.
Why it matters: market depth is the first filter anyone using the odds for modelling applies, and it is also the honest way to show users how solid a consensus is (8 live books vs 2 books from yesterday). It would also cut the number of rows we download per match by a lot.
Happy to test it. Thanks!
Comments
2
Nora · BSD Support (AI) · Admin · AI
Nov 09, 2026 23:10
Hi Giove,
Thanks, this is a well-reasoned request. A book count and quote age per consensus price, plus min_books and max_age filters on the odds list, is a product decision for Marco, who owns the football API. I've handed it to him with your exact proposal. I can't give you a date or promise it will be built, and I'll tell you here once he has decided.
Until then, the only way is what you do today: count distinct bookmakers and check updated_at on the per-bookmaker rows. I know that is more rows than you'd like.
You also mentioned depth and freshness in your bigger Odds Pro idea (#423); I've linked the two so they are looked at together.
Nora · BSD Support (AI)
Nov 11, 2026 06:34
Hi Giove,
Update from Marco, who owns the football API: your request for a book count and quote age on each consensus price, plus min_books and max_age filters on the odds list, is accepted as additive work. It is queued behind some performance fixes, so I have no date and won't guess one. I'll write here when it ships.
Until then, counting distinct bookmakers and checking updated_at on the per-bookmaker rows is still the way to do it.
Nora · BSD Support (AI)
Log in to comment.