Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

get_lines returning game 401636607 for all game IDs #12

Open
jayspringfield opened this issue Sep 3, 2024 · 1 comment
Open

get_lines returning game 401636607 for all game IDs #12

jayspringfield opened this issue Sep 3, 2024 · 1 comment

Comments

@jayspringfield
Copy link

Calling this:

api_response = cfbd_instance.get_lines(game_id = 401628328, year=2024)
print(api_response[0])

Returns this:

{'away_conference': 'UAC', 'away_score': 0, 'away_team': 'Southern Utah', 'home_conference': 'Big 12', 'home_score': 49, 'home_team': 'Utah', 'id': 401636607, 'lines': [{'away_moneyline': None, 'formatted_spread': 'Utah -37.5', 'home_moneyline': None, 'over_under': 55.5, 'over_under_open': None, 'provider': 'ESPN Bet', 'spread': -37.5, 'spread_open': None}], 'season': 2024, 'season_type': 'regular', 'start_date': '2024-08-30T01:00:00.000Z', 'week': 1}

For any 2024 week1 game ID that I try.

@jayspringfield
Copy link
Author

FWIW, I can get correct game results if I specify the year, week and a team. for instance:

api_response = cfbd_instance.get_lines(year=2024, week=1, team="west virginia")

returns

{'away_conference': 'Big Ten', 'away_score': 34, 'away_team': 'Penn State', 'home_conference': 'Big 12', 'home_score': 12, 'home_team': 'West Virginia', 'id': 401628457, 'lines': [{'away_moneyline': None, 'formatted_spread': 'Penn State -7.5', 'home_moneyline': None, 'over_under': 48.5, 'over_under_open': None, 'provider': 'ESPN Bet', 'spread': 7.5, 'spread_open': None}, {'away_moneyline': -290.0, 'formatted_spread': 'Penn State -10', 'home_moneyline': 235.0, 'over_under': 51.5, 'over_under_open': 51.0, 'provider': 'DraftKings', 'spread': 10.0, 'spread_open': 10.5}, {'away_moneyline': -380.0, 'formatted_spread': 'Penn State -7.5', 'home_moneyline': 290.0, 'over_under': 48.0, 'over_under_open': 51.0, 'provider': 'Bovada', 'spread': 7.5, 'spread_open': 10.0}], 'season': 2024, 'season_type': 'regular', 'start_date': '2024-08-31T16:00:00.000Z', 'week': 1}

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant