An unofficial SDK for The Odds API v4.
pip install betiq
import betiq
odds = betiq.get_odds(
api_key={THE_ODDS_API_API_KEY},
sports=["upcoming"],
regions=["us", "us2", "uk", "au", "eu"],
markets=["h2h"],
date_format="iso",
odds_format="decimal",
)
print(odds) # Dictionary with the latest odds data