Session 21: All adapters through gateway, ntfy alerts, provider registry correction (1486 tests)

This commit is contained in:
Kev
2026-06-12 02:06:22 -04:00
parent 9b10bb4138
commit ea848e327e
14 changed files with 614 additions and 46 deletions
+21 -8
View File
@@ -38,25 +38,38 @@ const PROVIDERS = {
capabilities: ['odds', 'props', 'lines', 'spreads'],
priority: 1,
},
// Session 21 — correction. ODDSPAPI is NOT a live-props fallback
// for the-odds-api. It serves Pinnacle CLOSING lines, captured at
// tip-off into the `closing_lines` table for CLV tracking. The
// `oddsPapiAdapter` calls /sports/{sportKey}/events/{gameId}/odds
// with `bookmaker=pinnacle, market=player_props` ONCE per game.
// Base URL: https://api.oddspapi.io/v1. Auth: X-Api-Key header.
'oddspapi': {
name: 'ODDSPAPI',
name: 'ODDSPAPI (Pinnacle close)',
envKey: 'ODDSPAPI_KEY',
quotaType: 'monthly',
quotaLimit: 1000,
resetDay: 1,
sports: ['nba', 'wnba', 'mlb', 'nfl'],
capabilities: ['odds', 'props'],
priority: 2,
sports: ['nba', 'wnba', 'mlb', 'nfl', 'nhl', 'ncaab', 'ncaafb'],
capabilities: ['closing_lines'],
priority: 1,
},
// Session 21 — correction. ParlayAPI is a historical-archive
// provider, NOT a live-odds source. 1,000 credits/month free tier
// ("drop-in for the-odds-api, up to 6x cheaper" — but used for
// history, not real-time). Two endpoints in use:
// /historical/player_props → hit rate enrichment
// /historical/closing_lines → CLV reference
// Base URL: https://api.parlayapi.io/v1. Auth: X-Api-Key header.
'parlayapi': {
name: 'ParlayAPI',
name: 'ParlayAPI (historical)',
envKey: 'PARLAYAPI_KEY',
quotaType: 'monthly',
quotaLimit: 1000,
resetDay: 1,
sports: ['nba', 'wnba', 'mlb', 'nfl'],
capabilities: ['odds', 'parlays', 'correlations'],
priority: 3,
sports: ['nba', 'wnba', 'mlb', 'nfl', 'nhl', 'ncaab', 'ncaafb'],
capabilities: ['historical_props', 'historical_lines'],
priority: 1,
},
// === STATS / BOX SCORES ===