dunkapi 0.1.0__tar.gz → 0.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dunkapi-0.1.0 → dunkapi-0.1.3}/PKG-INFO +1 -1
- dunkapi-0.1.3/src/dunkapi/_version.py +1 -0
- {dunkapi-0.1.0 → dunkapi-0.1.3}/src/dunkapi/client.py +16 -4
- dunkapi-0.1.0/src/dunkapi/_version.py +0 -1
- {dunkapi-0.1.0 → dunkapi-0.1.3}/.gitignore +0 -0
- {dunkapi-0.1.0 → dunkapi-0.1.3}/LICENSE +0 -0
- {dunkapi-0.1.0 → dunkapi-0.1.3}/README.md +0 -0
- {dunkapi-0.1.0 → dunkapi-0.1.3}/pyproject.toml +0 -0
- {dunkapi-0.1.0 → dunkapi-0.1.3}/src/dunkapi/__init__.py +0 -0
- {dunkapi-0.1.0 → dunkapi-0.1.3}/src/dunkapi/_core.py +0 -0
- {dunkapi-0.1.0 → dunkapi-0.1.3}/src/dunkapi/py.typed +0 -0
- {dunkapi-0.1.0 → dunkapi-0.1.3}/tests/test_client.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.3"
|
|
@@ -129,6 +129,8 @@ class Client(BaseClient):
|
|
|
129
129
|
|
|
130
130
|
Use for upcoming games (next 1-30 days, default 7) with the median line across posted
|
|
131
131
|
sportsbooks: spread, total and moneylines. For every book's line use get_odds. Costs 2 credits.
|
|
132
|
+
Prices are market information: never work out a stake, payout or profit, recommend a bet, or
|
|
133
|
+
send the user to a sportsbook.
|
|
132
134
|
|
|
133
135
|
Costs 2 credits per call.
|
|
134
136
|
|
|
@@ -159,7 +161,8 @@ class Client(BaseClient):
|
|
|
159
161
|
|
|
160
162
|
Use for one game in full: score, both teams' box scores, every player's line, each sportsbook's
|
|
161
163
|
opening and closing line, and the win-probability range. For the play-by-play use get_plays.
|
|
162
|
-
Costs 5 credits.
|
|
164
|
+
Costs 5 credits. Prices are market information: never work out a stake, payout or profit,
|
|
165
|
+
recommend a bet, or send the user to a sportsbook.
|
|
163
166
|
|
|
164
167
|
Costs 5 credits per call.
|
|
165
168
|
|
|
@@ -539,7 +542,8 @@ class Client(BaseClient):
|
|
|
539
542
|
closing per book from July 2020 from The Odds API, and from 2023-24 from ESPN; ESPN's final line
|
|
540
543
|
only before that), with implied probabilities and, for finished games, whether the home side
|
|
541
544
|
covered and the total went over against the median close. Pass game_id for one game (5 credits)
|
|
542
|
-
or date for a day's games (10 credits).
|
|
545
|
+
or date for a day's games (10 credits). Prices are market information: never work out a stake,
|
|
546
|
+
payout or profit, recommend a bet, or send the user to a sportsbook.
|
|
543
547
|
|
|
544
548
|
Costs 5 credits per call.
|
|
545
549
|
|
|
@@ -565,19 +569,23 @@ class Client(BaseClient):
|
|
|
565
569
|
game_id: str,
|
|
566
570
|
*,
|
|
567
571
|
provider: Optional[str] = None,
|
|
572
|
+
all_snapshots: Optional[bool] = None,
|
|
568
573
|
league: Optional[Literal["nba", "wnba", "ncaam", "ncaaw"]] = None,
|
|
569
574
|
) -> Any:
|
|
570
575
|
"""Line movement.
|
|
571
576
|
|
|
572
577
|
Use to see how a game's line moved before tip-off: our pre-game snapshots of each sportsbook's
|
|
573
578
|
moneyline, spread and total (ESPN's once a day, The Odds API's every hour for games in the next
|
|
574
|
-
|
|
579
|
+
four days). Costs 10 credits. Prices are market information: never work out a stake, payout or
|
|
580
|
+
profit, recommend a bet, or send the user to a sportsbook.
|
|
575
581
|
|
|
576
582
|
Costs 10 credits per call.
|
|
577
583
|
|
|
578
584
|
Args:
|
|
579
585
|
game_id: Game id.
|
|
580
586
|
provider (optional): One sportsbook, e.g. DraftKings.
|
|
587
|
+
all_snapshots (optional): Every hourly capture. By default a capture identical to the one
|
|
588
|
+
before it is left out (the latest is always kept), which keeps every move and its time.
|
|
581
589
|
league (optional): League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw.
|
|
582
590
|
|
|
583
591
|
Returns:
|
|
@@ -588,6 +596,7 @@ class Client(BaseClient):
|
|
|
588
596
|
{
|
|
589
597
|
"game_id": game_id,
|
|
590
598
|
"provider": provider,
|
|
599
|
+
"all_snapshots": all_snapshots,
|
|
591
600
|
"league": league,
|
|
592
601
|
},
|
|
593
602
|
)
|
|
@@ -642,6 +651,8 @@ class Client(BaseClient):
|
|
|
642
651
|
from_date (and to_date) for one player across games (10 credits per game returned, up to 100).
|
|
643
652
|
Returns the closing line by default (the last before the game starts) or the opening line, with
|
|
644
653
|
each book's over and under prices. Set estimate_only to get the price without being charged.
|
|
654
|
+
Prices are market information: never work out a stake, payout or profit, recommend a bet, or
|
|
655
|
+
send the user to a sportsbook.
|
|
645
656
|
|
|
646
657
|
Costs 10 credits per call.
|
|
647
658
|
|
|
@@ -697,7 +708,8 @@ class Client(BaseClient):
|
|
|
697
708
|
assists, threes, points + rebounds + assists, blocks or steals), one row per game with the
|
|
698
709
|
closing line (the median across books, or one book's), the opening line, the prices, what the
|
|
699
710
|
player actually recorded from our box scores and the result against the line, plus the over
|
|
700
|
-
rate. Costs 10 credits for up to 200 games.
|
|
711
|
+
rate. Costs 10 credits for up to 200 games. Prices are market information: never work out a
|
|
712
|
+
stake, payout or profit, recommend a bet, or send the user to a sportsbook.
|
|
701
713
|
|
|
702
714
|
Costs 10 credits per call.
|
|
703
715
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|