Odds Bet365
Odds Bet 365 Class Documentation
Bases: Odds
Represents a specialized Odds entry sourced from Bet365 data.
Inherits from the base Odds
class but overrides the odds loading logic
to handle Bet365-specific formatting for money line, spread, and teaser odds.
Attributes:
Name | Type | Description |
---|---|---|
odds_json |
dict
|
Raw JSON data for the odds entry. |
espn_instance |
PYESPN
|
The ESPN API instance used for lookups. |
event_instance |
Event
|
The event this odds entry is associated with. |
gameodds_instance |
GameOdds
|
The parent odds grouping instance. |
team |
Team
|
The team this odds instance is associated with. |
money_line |
float or None
|
Bet365 money line value. |
spread_odds |
float or None
|
Bet365 spread value. |
teaser_odds |
float or None
|
Bet365 spread handicap value. |
Source code in pyespn/classes/betting.py
__init__(odds_json, espn_instance, event_instance, gameodds_instance, team)
Initializes an OddsBet365 instance with Bet365-specific odds data.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
odds_json
|
dict
|
JSON data containing Bet365 odds. |
required |
espn_instance
|
PYESPN
|
Parent API instance. |
required |
event_instance
|
Event
|
The event associated with these odds. |
required |
gameodds_instance
|
GameOdds
|
The odds group this entry belongs to. |
required |
team
|
Team
|
The team associated with this Bet365 odds entry. |
required |
Source code in pyespn/classes/betting.py
__repr__()
Returns a string representation of the OddsBet365 instance.
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
A string identifying the team and provider. |