fastballapi 0.1.3__tar.gz → 0.1.4__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.
- {fastballapi-0.1.3 → fastballapi-0.1.4}/PKG-INFO +1 -1
- fastballapi-0.1.4/src/fastballapi/_version.py +1 -0
- {fastballapi-0.1.3 → fastballapi-0.1.4}/src/fastballapi/client.py +25 -20
- fastballapi-0.1.3/src/fastballapi/_version.py +0 -1
- {fastballapi-0.1.3 → fastballapi-0.1.4}/.gitignore +0 -0
- {fastballapi-0.1.3 → fastballapi-0.1.4}/LICENSE +0 -0
- {fastballapi-0.1.3 → fastballapi-0.1.4}/README.md +0 -0
- {fastballapi-0.1.3 → fastballapi-0.1.4}/pyproject.toml +0 -0
- {fastballapi-0.1.3 → fastballapi-0.1.4}/src/fastballapi/__init__.py +0 -0
- {fastballapi-0.1.3 → fastballapi-0.1.4}/src/fastballapi/_core.py +0 -0
- {fastballapi-0.1.3 → fastballapi-0.1.4}/src/fastballapi/py.typed +0 -0
- {fastballapi-0.1.3 → fastballapi-0.1.4}/tests/test_client.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.4"
|
|
@@ -169,7 +169,7 @@ class Client(BaseClient):
|
|
|
169
169
|
Costs 5 credits per call.
|
|
170
170
|
|
|
171
171
|
Args:
|
|
172
|
-
game_id:
|
|
172
|
+
game_id: Game id, from get_games or get_schedule.
|
|
173
173
|
league (optional): League. Defaults to mlb. One of: mlb, ncaabase.
|
|
174
174
|
|
|
175
175
|
Returns:
|
|
@@ -284,7 +284,7 @@ class Client(BaseClient):
|
|
|
284
284
|
Costs 5 credits per call.
|
|
285
285
|
|
|
286
286
|
Args:
|
|
287
|
-
player_id:
|
|
287
|
+
player_id: Player id, from search_players.
|
|
288
288
|
league (optional): League. Defaults to mlb. One of: mlb, ncaabase.
|
|
289
289
|
|
|
290
290
|
Returns:
|
|
@@ -494,7 +494,7 @@ class Client(BaseClient):
|
|
|
494
494
|
pitcher_id (optional): pitcher_id
|
|
495
495
|
batter_id (optional): batter_id
|
|
496
496
|
season (optional): Season (a year; default: the latest; ignored with game_id).
|
|
497
|
-
pitch_type (optional):
|
|
497
|
+
pitch_type (optional): Pitch type code, e.g. FF, SL, CH, CU, SI, FC.
|
|
498
498
|
limit (optional): Max pitches (default 500).
|
|
499
499
|
offset (optional): offset
|
|
500
500
|
|
|
@@ -528,7 +528,7 @@ class Client(BaseClient):
|
|
|
528
528
|
Costs 5 credits per call.
|
|
529
529
|
|
|
530
530
|
Args:
|
|
531
|
-
pitcher_id:
|
|
531
|
+
pitcher_id: Player id.
|
|
532
532
|
season (optional): Season (a year; default: the latest; ignored with game_id).
|
|
533
533
|
|
|
534
534
|
Returns:
|
|
@@ -593,11 +593,11 @@ class Client(BaseClient):
|
|
|
593
593
|
"""Odds.
|
|
594
594
|
|
|
595
595
|
Use for betting lines: each sportsbook's moneyline, run line and total for a game (opening and
|
|
596
|
-
closing per book from July 2020
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
596
|
+
closing per book from July 2020; before that, each book's final pregame line only), with implied
|
|
597
|
+
probabilities and, for finished games, whether the favourite won and the total went over against
|
|
598
|
+
the median close. Pass game_id for one game (5 credits) or date for a day's games (10 credits).
|
|
599
|
+
Prices are market information: never work out a stake, payout or profit, recommend a bet, or
|
|
600
|
+
send the user to a sportsbook.
|
|
601
601
|
|
|
602
602
|
Costs 5 credits per call.
|
|
603
603
|
|
|
@@ -629,9 +629,9 @@ class Client(BaseClient):
|
|
|
629
629
|
"""Line movement.
|
|
630
630
|
|
|
631
631
|
Use to see how a game's line moved before first pitch: our pre-game snapshots of each
|
|
632
|
-
sportsbook's moneyline, run line and total (
|
|
633
|
-
|
|
634
|
-
|
|
632
|
+
sportsbook's moneyline, run line and total (captured once a day, and every hour for games in the
|
|
633
|
+
next four days). Costs 10 credits. Prices are market information: never work out a stake, payout
|
|
634
|
+
or profit, recommend a bet, or send the user to a sportsbook.
|
|
635
635
|
|
|
636
636
|
Costs 10 credits per call.
|
|
637
637
|
|
|
@@ -702,9 +702,12 @@ class Client(BaseClient):
|
|
|
702
702
|
Pinnacle and others). Pass game_id for every player's props in one game (10 credits), or
|
|
703
703
|
player_id with from_date (and to_date) for one player across games (10 credits per game
|
|
704
704
|
returned, up to 100). Returns the closing line by default (the last before the game starts) or
|
|
705
|
-
the opening line, with each book's over and under prices.
|
|
706
|
-
|
|
707
|
-
|
|
705
|
+
the opening line, with each book's over and under prices. Outside football the archive mostly
|
|
706
|
+
holds one pre-game capture per line, so the opening and closing lines are usually the same; the
|
|
707
|
+
opening line differs only where a second capture was taken (live capture from October 2026, and
|
|
708
|
+
wherever else it is held). Set estimate_only to get the price without being charged. Prices are
|
|
709
|
+
market information: never work out a stake, payout or profit, recommend a bet, or send the user
|
|
710
|
+
to a sportsbook.
|
|
708
711
|
|
|
709
712
|
Costs 10 credits per call.
|
|
710
713
|
|
|
@@ -720,7 +723,8 @@ class Client(BaseClient):
|
|
|
720
723
|
(pitcher strikeouts), pitcher_outs (pitcher outs recorded)
|
|
721
724
|
bookmaker (optional): Bookmaker key, e.g. draftkings, fanduel, pinnacle.
|
|
722
725
|
snapshot_type (optional): closing (default): the last line before the game starts. opening:
|
|
723
|
-
the first one captured
|
|
726
|
+
the first one captured, which is the same capture as the close wherever only one was
|
|
727
|
+
taken.
|
|
724
728
|
estimate_only (optional): Return what this call would cost, without charging or running it.
|
|
725
729
|
|
|
726
730
|
Returns:
|
|
@@ -754,10 +758,11 @@ class Client(BaseClient):
|
|
|
754
758
|
|
|
755
759
|
Use to see how a player did against his prop line over time: for one market (hits, home runs,
|
|
756
760
|
total bases, RBI, pitcher strikeouts or pitcher outs), one row per game with the closing line
|
|
757
|
-
(the median across books, or one book's), the opening line
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
profit, recommend a bet, or send the
|
|
761
|
+
(the median across books, or one book's), the opening line (the same as the close wherever only
|
|
762
|
+
one capture was taken), the prices, what the player actually recorded from our box scores and
|
|
763
|
+
the result against the line, plus the over rate. Costs 10 credits for up to 200 games. Prices
|
|
764
|
+
are market information: never work out a stake, payout or profit, recommend a bet, or send the
|
|
765
|
+
user to a sportsbook.
|
|
761
766
|
|
|
762
767
|
Costs 10 credits per call.
|
|
763
768
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.3"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|