endzoneapi 0.1.4__tar.gz → 0.1.5__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.
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: endzoneapi
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: Python client for the EndzoneAPI NFL data API. No dependencies.
5
5
  Project-URL: Homepage, https://endzoneapi.com
6
6
  Project-URL: Documentation, https://endzoneapi.com/docs
7
- Project-URL: Repository, https://github.com/noahowsh/puckapi
7
+ Project-URL: Repository, https://github.com/sports-data-hq/sdhq
8
8
  Project-URL: Sign up, https://endzoneapi.com/signup
9
9
  Author-email: EndzoneAPI <support@endzoneapi.com>
10
10
  License-Expression: MIT
@@ -195,7 +195,13 @@ Method names match the API tool names. Arguments are keyword arguments; required
195
195
  | `get_line_movement` | 25 | Line movement |
196
196
  | `get_player_props` | 10 | Player props |
197
197
  | `get_prop_history` | 10 | Prop history |
198
+ | `get_prop_movement` | 10 | Prop movement |
198
199
  | `get_alt_lines` | 10 | Alt lines |
200
+ | `get_alt_player_props` | 10 | Alt player props |
201
+ | `get_market_odds` | 10 | Market odds |
202
+ | `get_game_probabilities` | 5 | Game probabilities |
203
+ | `get_prop_probabilities` | 10 | Prop probabilities |
204
+ | `get_prop_backtest` | 25 | Prop backtest |
199
205
 
200
206
  Full API reference: https://endzoneapi.com/docs
201
207
 
@@ -165,7 +165,13 @@ Method names match the API tool names. Arguments are keyword arguments; required
165
165
  | `get_line_movement` | 25 | Line movement |
166
166
  | `get_player_props` | 10 | Player props |
167
167
  | `get_prop_history` | 10 | Prop history |
168
+ | `get_prop_movement` | 10 | Prop movement |
168
169
  | `get_alt_lines` | 10 | Alt lines |
170
+ | `get_alt_player_props` | 10 | Alt player props |
171
+ | `get_market_odds` | 10 | Market odds |
172
+ | `get_game_probabilities` | 5 | Game probabilities |
173
+ | `get_prop_probabilities` | 10 | Prop probabilities |
174
+ | `get_prop_backtest` | 25 | Prop backtest |
169
175
 
170
176
  Full API reference: https://endzoneapi.com/docs
171
177
 
@@ -34,7 +34,7 @@ test = ["pytest>=7"]
34
34
  [project.urls]
35
35
  Homepage = "https://endzoneapi.com"
36
36
  Documentation = "https://endzoneapi.com/docs"
37
- Repository = "https://github.com/noahowsh/puckapi"
37
+ Repository = "https://github.com/sports-data-hq/sdhq"
38
38
  "Sign up" = "https://endzoneapi.com/signup"
39
39
 
40
40
  [tool.hatch.version]
@@ -0,0 +1 @@
1
+ __version__ = "0.1.5"
@@ -26,7 +26,13 @@ TOOLS: Dict[str, int] = {
26
26
  "get_line_movement": 25,
27
27
  "get_player_props": 10,
28
28
  "get_prop_history": 10,
29
+ "get_prop_movement": 10,
29
30
  "get_alt_lines": 10,
31
+ "get_alt_player_props": 10,
32
+ "get_market_odds": 10,
33
+ "get_game_probabilities": 5,
34
+ "get_prop_probabilities": 10,
35
+ "get_prop_backtest": 25,
30
36
  }
31
37
 
32
38
 
@@ -254,14 +260,15 @@ class Client(BaseClient):
254
260
  """Head to head.
255
261
 
256
262
  Use to compare two teams' history: recent meetings with scores, the win/loss record between
257
- them, and average margin. Filter by season or get all-time. Costs 10 credits.
263
+ them, and average margin, over one season or every meeting since 1999, where our games start.
264
+ Costs 10 credits.
258
265
 
259
266
  Costs 10 credits per call.
260
267
 
261
268
  Args:
262
269
  team1: First team code
263
270
  team2: Second team code
264
- season (optional): Season year. Omit for all-time.
271
+ season (optional): Season year. Omit for every meeting since 1999.
265
272
  limit (optional): Max games (default 20)
266
273
 
267
274
  Returns:
@@ -724,7 +731,7 @@ class Client(BaseClient):
724
731
  game_id: Optional[str] = None,
725
732
  player_id: Optional[str] = None,
726
733
  season: Optional[Union[str, int, float]] = None,
727
- market: Optional[Literal["player_pass_yds", "player_pass_tds", "player_pass_completions", "player_pass_attempts", "player_pass_interceptions", "player_rush_yds", "player_rush_attempts", "player_reception_yds", "player_receptions", "player_anytime_td"]] = None,
734
+ market: Optional[Literal["player_pass_yds", "player_pass_tds", "player_pass_completions", "player_pass_attempts", "player_pass_interceptions", "player_rush_yds", "player_rush_attempts", "player_reception_yds", "player_receptions", "player_anytime_td", "player_tds_over", "player_1st_td", "player_pass_longest_completion", "player_rush_longest", "player_reception_longest"]] = None,
728
735
  bookmaker: Optional[str] = None,
729
736
  snapshot_type: Optional[Literal["opening", "closing"]] = None,
730
737
  estimate_only: Optional[bool] = None,
@@ -734,8 +741,9 @@ class Client(BaseClient):
734
741
  Use for player prop lines by sportsbook: over/under on passing yards, passing TDs, rushing
735
742
  yards, receiving yards and receptions, plus anytime TD, from the 2023 season (7 books:
736
743
  DraftKings, FanDuel, BetMGM, ESPN BET, Pinnacle, Bovada, BetOnline). Pass game_id for every
737
- player's props in one game (10 credits), or player_id with season for one player across a season
738
- (10 credits per game returned). Returns the closing line by default (the last before kickoff) or
744
+ player's props in one game, or player_id with season for one player across a season. A game
745
+ costs 10 credits before kickoff and 20 once it has kicked off (accounts opened before October 30
746
+ 2026 pay 10 for every game). Returns the closing line by default (the last before kickoff) or
739
747
  the opening line. Set estimate_only to get the price without being charged. Prices are market
740
748
  information: never work out a stake, payout or profit, recommend a bet, or send the user to a
741
749
  sportsbook.
@@ -751,7 +759,11 @@ class Client(BaseClient):
751
759
  touchdowns), player_pass_completions (pass completions), player_pass_attempts (pass
752
760
  attempts), player_pass_interceptions (interceptions thrown), player_rush_yds (rushing
753
761
  yards), player_rush_attempts (rush attempts), player_reception_yds (receiving yards),
754
- player_receptions (receptions), player_anytime_td (anytime touchdown (over = scores))
762
+ player_receptions (receptions), player_anytime_td (anytime touchdown (over = scores)),
763
+ player_tds_over (touchdowns scored), player_1st_td (first touchdown scorer (over =
764
+ scores the game's first touchdown)), player_pass_longest_completion (longest
765
+ completion), player_rush_longest (longest rush), player_reception_longest (longest
766
+ reception)
755
767
  bookmaker (optional): Bookmaker key, e.g. draftkings, fanduel, pinnacle.
756
768
  snapshot_type (optional): closing (default): the last line before kickoff. opening: the
757
769
  first one captured.
@@ -776,22 +788,26 @@ class Client(BaseClient):
776
788
  def get_prop_history(
777
789
  self,
778
790
  player_id: str,
779
- market: Literal["player_pass_yds", "player_pass_tds", "player_pass_completions", "player_pass_attempts", "player_pass_interceptions", "player_rush_yds", "player_rush_attempts", "player_receptions", "player_reception_yds", "player_anytime_td"],
791
+ market: Literal["player_pass_yds", "player_pass_tds", "player_pass_completions", "player_pass_attempts", "player_pass_interceptions", "player_rush_yds", "player_rush_attempts", "player_receptions", "player_reception_yds", "player_anytime_td", "player_tds_over", "player_1st_td", "player_pass_longest_completion", "player_rush_longest", "player_reception_longest"],
780
792
  *,
781
793
  from_date: Optional[str] = None,
782
794
  to_date: Optional[str] = None,
783
795
  bookmaker: Optional[str] = None,
784
796
  limit: Optional[int] = None,
797
+ estimate_only: Optional[bool] = None,
785
798
  ) -> Any:
786
799
  """Prop history.
787
800
 
788
801
  Use to see how a player did against his prop line over time: for one market (passing, rushing or
789
- receiving yards, passing touchdowns, completions, attempts, interceptions, carries, receptions
790
- or anytime touchdown), one row per game with the closing line (the median across books, or one
791
- book's), the opening line (the same as the close wherever only one capture was taken), the
792
- prices, what the player actually recorded from our box scores and the result against the line,
793
- plus the over rate. Costs 10 credits for up to 200 games. Prices are market information: never
794
- work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.
802
+ receiving yards, passing touchdowns, completions, attempts, interceptions, carries, receptions,
803
+ anytime or first touchdown, touchdowns scored, or the longest completion, rush or reception),
804
+ one row per game with the closing line (the median across books, or one book's), the opening
805
+ line (the same as the close wherever only one capture was taken), the prices, what the player
806
+ actually recorded from our box scores and the result against the line, plus the over rate, up to
807
+ 200 games a call. Costs 10 credits for every 25 games already played that a call covers, and at
808
+ least 10 a call (accounts opened before November 1 2026 pay 10 a call). Set estimate_only to get
809
+ the price without being charged. Prices are market information: never work out a stake, payout
810
+ or profit, recommend a bet, or send the user to a sportsbook.
795
811
 
796
812
  Costs 10 credits per call.
797
813
 
@@ -802,13 +818,17 @@ class Client(BaseClient):
802
818
  player_pass_interceptions (interceptions thrown), player_rush_yds (rushing yards),
803
819
  player_rush_attempts (rush attempts), player_receptions (receptions),
804
820
  player_reception_yds (receiving yards), player_anytime_td (anytime touchdown (over =
805
- scores))
821
+ scores)), player_tds_over (touchdowns scored), player_1st_td (first touchdown scorer
822
+ (over = scores the game's first touchdown)), player_pass_longest_completion (longest
823
+ completion), player_rush_longest (longest rush), player_reception_longest (longest
824
+ reception)
806
825
  from_date (optional): First date, YYYY-MM-DD (the game's date).
807
826
  to_date (optional): Last date, YYYY-MM-DD (the game's date).
808
827
  bookmaker (optional): One book's closing line instead of the median across books, e.g.
809
828
  draftkings.
810
829
  limit (optional): Games to return, oldest first (default 50, max 200). next_from_date says
811
830
  where to continue.
831
+ estimate_only (optional): Return what this call would cost, without charging or running it.
812
832
 
813
833
  Returns:
814
834
  The unwrapped ``data`` object from the response.
@@ -822,6 +842,52 @@ class Client(BaseClient):
822
842
  "to_date": to_date,
823
843
  "bookmaker": bookmaker,
824
844
  "limit": limit,
845
+ "estimate_only": estimate_only,
846
+ },
847
+ )
848
+
849
+ def get_prop_movement(
850
+ self,
851
+ game_id: str,
852
+ player_id: str,
853
+ market: Literal["player_pass_yds", "player_pass_tds", "player_pass_completions", "player_pass_attempts", "player_pass_interceptions", "player_rush_yds", "player_rush_attempts", "player_receptions", "player_reception_yds", "player_anytime_td", "player_tds_over", "player_1st_td", "player_pass_longest_completion", "player_rush_longest", "player_reception_longest"],
854
+ *,
855
+ bookmaker: Optional[str] = None,
856
+ ) -> Any:
857
+ """Prop movement.
858
+
859
+ Use to see how one player's prop line moved before a game: every capture we hold, book by book
860
+ and oldest first, with the line, both prices and the minutes before the start. line_change is
861
+ the last capture's line minus the first's. The number of captures varies by game and book. Costs
862
+ 10 credits. Prices are market information: never work out a stake, payout or profit, recommend a
863
+ bet, or send the user to a sportsbook.
864
+
865
+ Costs 10 credits per call.
866
+
867
+ Args:
868
+ game_id: Game id.
869
+ player_id: Player id (a GSIS id such as 00-0033873) from search_players.
870
+ market: The market: player_pass_yds (passing yards), player_pass_tds (passing touchdowns),
871
+ player_pass_completions (pass completions), player_pass_attempts (pass attempts),
872
+ player_pass_interceptions (interceptions thrown), player_rush_yds (rushing yards),
873
+ player_rush_attempts (rush attempts), player_receptions (receptions),
874
+ player_reception_yds (receiving yards), player_anytime_td (anytime touchdown (over =
875
+ scores)), player_tds_over (touchdowns scored), player_1st_td (first touchdown scorer
876
+ (over = scores the game's first touchdown)), player_pass_longest_completion (longest
877
+ completion), player_rush_longest (longest rush), player_reception_longest (longest
878
+ reception)
879
+ bookmaker (optional): One book's captures, e.g. draftkings.
880
+
881
+ Returns:
882
+ The unwrapped ``data`` object from the response.
883
+ """
884
+ return self._call(
885
+ "get_prop_movement",
886
+ {
887
+ "game_id": game_id,
888
+ "player_id": player_id,
889
+ "market": market,
890
+ "bookmaker": bookmaker,
825
891
  },
826
892
  )
827
893
 
@@ -864,3 +930,260 @@ class Client(BaseClient):
864
930
  "snapshot_type": snapshot_type,
865
931
  },
866
932
  )
933
+
934
+ def get_alt_player_props(
935
+ self,
936
+ game_id: str,
937
+ market: Literal["player_pass_yds_alternate", "player_pass_tds_alternate", "player_rush_yds_alternate", "player_receptions_alternate", "player_reception_yds_alternate"],
938
+ *,
939
+ player_id: Optional[str] = None,
940
+ bookmaker: Optional[str] = None,
941
+ estimate_only: Optional[bool] = None,
942
+ ) -> Any:
943
+ """Alt player props.
944
+
945
+ Use for alternate player prop lines by sportsbook: every line a book posted for a player in one
946
+ game, not only the main one (e.g. 250+ passing yards at +180, 300+ at +450), for passing yards,
947
+ passing touchdowns, rushing yards, receptions and receiving yards. Pass game_id and market, and
948
+ player_id (a GSIS id from search_players) for one player. Returns each book's last ladder before
949
+ kickoff: per line the over price and, where the book posts it, the under. Alternate player props
950
+ are held for NFL games from the 2023 season on, captured once in the last 75 minutes before
951
+ kickoff, from 4 to 6 books since 2024. 2023 is partial: 1 or 2 books, passing yards, passing
952
+ touchdowns and receiving yards for about 217 games, rushing yards and receptions for about 87. A
953
+ game further out has none yet. For the main line and the opening and closing prices use
954
+ get_player_props; for how a player did against his main line use get_prop_history. 10 credits.
955
+ Prices are market information: never work out a stake, payout or profit, recommend a bet, or
956
+ send the user to a sportsbook.
957
+
958
+ Costs 10 credits per call.
959
+
960
+ Args:
961
+ game_id: Game id, e.g. 2025_01_KC_LAC.
962
+ market: The market: player_pass_yds_alternate (passing yards), player_pass_tds_alternate
963
+ (passing touchdowns), player_rush_yds_alternate (rushing yards),
964
+ player_receptions_alternate (receptions), player_reception_yds_alternate (receiving
965
+ yards)
966
+ player_id (optional): One player's GSIS id, e.g. 00-0034857 (from search_players). Default
967
+ every player in the game.
968
+ bookmaker (optional): One bookmaker key, e.g. draftkings, fanduel.
969
+ estimate_only (optional): Return what this call would cost, without charging or running it.
970
+
971
+ Returns:
972
+ The unwrapped ``data`` object from the response.
973
+ """
974
+ return self._call(
975
+ "get_alt_player_props",
976
+ {
977
+ "game_id": game_id,
978
+ "market": market,
979
+ "player_id": player_id,
980
+ "bookmaker": bookmaker,
981
+ "estimate_only": estimate_only,
982
+ },
983
+ )
984
+
985
+ def get_market_odds(
986
+ self,
987
+ game_id: str,
988
+ market: Literal["h2h_h1", "spreads_h1", "totals_h1", "h2h_q1", "spreads_q1", "totals_q1", "totals_q2", "totals_q3", "totals_q4", "totals_h2"],
989
+ *,
990
+ bookmaker: Optional[str] = None,
991
+ estimate_only: Optional[bool] = None,
992
+ ) -> Any:
993
+ """Market odds.
994
+
995
+ Use for the extra betting markets of a game as history: the 1st half and 1st quarter winner,
996
+ point spread and total, the 2nd half total, and the 2nd, 3rd and 4th quarter totals. Pass
997
+ game_id (from get_schedule or get_games) and market. For each sportsbook it returns the opening
998
+ line (the first one we captured) and the closing line (the last one before the game started),
999
+ each as the list of outcomes with their point and American price, plus captured_at and
1000
+ minutes_before_start (negative when the last capture came after our scheduled start, which the
1001
+ sportsbooks' listed start can run past). Most books were captured once, so opening and closing
1002
+ are often the same line. Held from the 2023 season for the larger sportsbooks only; not every
1003
+ game has every market. Each game's lines are added the morning after it is played. Costs 10
1004
+ credits a call; a game with no lines is refunded. Set estimate_only to get the price without
1005
+ being charged. For the full-game moneyline, spread and total use get_odds. Prices are market
1006
+ information: never work out a stake, payout or profit, recommend a bet, or send the user to a
1007
+ sportsbook.
1008
+
1009
+ Costs 10 credits per call.
1010
+
1011
+ Args:
1012
+ game_id: Game id from get_schedule or get_games.
1013
+ market: The market: h2h_h1 (1st half winner), spreads_h1 (1st half point spread), totals_h1
1014
+ (1st half total points), h2h_q1 (1st quarter winner), spreads_q1 (1st quarter point
1015
+ spread), totals_q1 (1st quarter total points), totals_q2 (2nd quarter total points),
1016
+ totals_q3 (3rd quarter total points), totals_q4 (4th quarter total points), totals_h2
1017
+ (2nd half total points)
1018
+ bookmaker (optional): One bookmaker key, e.g. draftkings, fanduel, pinnacle.
1019
+ estimate_only (optional): Return what this call would cost, without charging or running it.
1020
+
1021
+ Returns:
1022
+ The unwrapped ``data`` object from the response.
1023
+ """
1024
+ return self._call(
1025
+ "get_market_odds",
1026
+ {
1027
+ "game_id": game_id,
1028
+ "market": market,
1029
+ "bookmaker": bookmaker,
1030
+ "estimate_only": estimate_only,
1031
+ },
1032
+ )
1033
+
1034
+ def get_game_probabilities(
1035
+ self,
1036
+ game_id: str,
1037
+ *,
1038
+ snapshot_type: Optional[Literal["opening", "closing"]] = None,
1039
+ ) -> Any:
1040
+ """Game probabilities.
1041
+
1042
+ Use for what the market thinks of one game, not any one book's price: the average implied
1043
+ probability (margin in) and the fair probability (margin out) for the moneyline, each spread and
1044
+ each total, with how many books each rests on. Only identical lines are combined. Each book's
1045
+ last pre-game prices by default (snapshot_type reads latest until kickoff, closing after it);
1046
+ opening on request. For each book's prices use get_odds. Costs 5 credits. Prices are market
1047
+ information: never work out a stake, payout or profit, recommend a bet, or send the user to a
1048
+ sportsbook.
1049
+
1050
+ Costs 5 credits per call.
1051
+
1052
+ Args:
1053
+ game_id: Game id, e.g. 2025_01_KC_LAC.
1054
+ snapshot_type (optional): closing (default): each book's last pre-game price so far.
1055
+ opening: each book's first.
1056
+
1057
+ Returns:
1058
+ The unwrapped ``data`` object from the response.
1059
+ """
1060
+ return self._call(
1061
+ "get_game_probabilities",
1062
+ {
1063
+ "game_id": game_id,
1064
+ "snapshot_type": snapshot_type,
1065
+ },
1066
+ )
1067
+
1068
+ def get_prop_probabilities(
1069
+ self,
1070
+ game_id: str,
1071
+ *,
1072
+ market: Optional[Literal["player_pass_yds", "player_pass_tds", "player_pass_completions", "player_pass_attempts", "player_pass_interceptions", "player_rush_yds", "player_rush_attempts", "player_receptions", "player_reception_yds", "player_anytime_td", "player_tds_over", "player_1st_td", "player_pass_longest_completion", "player_rush_longest", "player_reception_longest"]] = None,
1073
+ player_id: Optional[str] = None,
1074
+ ) -> Any:
1075
+ """Prop probabilities.
1076
+
1077
+ Use for what the market thinks of the player props in one game, not any one book's price: for
1078
+ each player and each line, the average implied probability (margin in) and the fair probability
1079
+ (margin out), with how many books each rests on. Only identical lines are combined, and a one-
1080
+ sided market such as anytime touchdown has no fair probability unless a book posts both sides.
1081
+ Latest pre-game prices. For each book's prices use get_player_props. Costs 10 credits. Prices
1082
+ are market information: never work out a stake, payout or profit, recommend a bet, or send the
1083
+ user to a sportsbook.
1084
+
1085
+ Costs 10 credits per call.
1086
+
1087
+ Args:
1088
+ game_id: Game id, e.g. 2025_01_KC_LAC.
1089
+ market (optional): One market, e.g. player_pass_yds. Default every market. One of:
1090
+ player_pass_yds, player_pass_tds, player_pass_completions, player_pass_attempts,
1091
+ player_pass_interceptions, player_rush_yds, player_rush_attempts, player_receptions,
1092
+ player_reception_yds, player_anytime_td, player_tds_over, player_1st_td,
1093
+ player_pass_longest_completion, player_rush_longest, player_reception_longest.
1094
+ player_id (optional): One player's GSIS id, e.g. 00-0033873 (from search_players). Default
1095
+ every player.
1096
+
1097
+ Returns:
1098
+ The unwrapped ``data`` object from the response.
1099
+ """
1100
+ return self._call(
1101
+ "get_prop_probabilities",
1102
+ {
1103
+ "game_id": game_id,
1104
+ "market": market,
1105
+ "player_id": player_id,
1106
+ },
1107
+ )
1108
+
1109
+ def get_prop_backtest(
1110
+ self,
1111
+ market: Literal["player_pass_yds", "player_pass_tds", "player_pass_completions", "player_pass_attempts", "player_pass_interceptions", "player_rush_yds", "player_rush_attempts", "player_receptions", "player_reception_yds", "player_anytime_td", "player_tds_over"],
1112
+ *,
1113
+ side: Optional[Literal["over", "under"]] = None,
1114
+ from_season: Optional[int] = None,
1115
+ to_season: Optional[int] = None,
1116
+ game_type: Optional[Literal["regular", "postseason"]] = None,
1117
+ week_min: Optional[int] = None,
1118
+ week_max: Optional[int] = None,
1119
+ player_id: Optional[str] = None,
1120
+ team: Optional[str] = None,
1121
+ opponent: Optional[str] = None,
1122
+ position: Optional[str] = None,
1123
+ home_away: Optional[Literal["home", "away"]] = None,
1124
+ team_role: Optional[Literal["favorite", "underdog"]] = None,
1125
+ line_min: Optional[float] = None,
1126
+ line_max: Optional[float] = None,
1127
+ fair_min: Optional[float] = None,
1128
+ fair_max: Optional[float] = None,
1129
+ ) -> Any:
1130
+ """Prop backtest.
1131
+
1132
+ Use to test an idea about player props without pulling every row: how often a kind of prop went
1133
+ over or under against what the market implied, across every finished game since 2023 that fits
1134
+ your filters. Returns the hit rate, its 95% interval, the average implied and fair
1135
+ probabilities, and each season on its own. For example, receiving yards overs for tight ends on
1136
+ home underdogs. One result per player per game at the median closing line. It describes the past
1137
+ and recommends nothing. For one player game by game use get_prop_history. Costs 25 credits.
1138
+
1139
+ Costs 25 credits per call.
1140
+
1141
+ Args:
1142
+ market: The market, e.g. player_reception_yds. One of: player_pass_yds, player_pass_tds,
1143
+ player_pass_completions, player_pass_attempts, player_pass_interceptions,
1144
+ player_rush_yds, player_rush_attempts, player_receptions, player_reception_yds,
1145
+ player_anytime_td, player_tds_over.
1146
+ side (optional): over (default) or under. Yes/no markets such as player_anytime_td have only
1147
+ over.
1148
+ from_season (optional): First season, 2023 or later. Default all held.
1149
+ to_season (optional): Last season. Default all held.
1150
+ game_type (optional): Default both. One of: regular, postseason.
1151
+ week_min (optional): First week of the season.
1152
+ week_max (optional): Last week of the season.
1153
+ player_id (optional): One player's GSIS id (from search_players).
1154
+ team (optional): The player's team, e.g. KC.
1155
+ opponent (optional): The team he played, e.g. BUF.
1156
+ position (optional): The player's position, e.g. QB, RB, WR, TE.
1157
+ home_away (optional): Whether his team was at home. One of: home, away.
1158
+ team_role (optional): Whether his team was favored, by the consensus closing spread. One of:
1159
+ favorite, underdog.
1160
+ line_min (optional): Lowest median closing line to include.
1161
+ line_max (optional): Highest median closing line to include.
1162
+ fair_min (optional): Lowest fair probability of this side to include, 0 to 1.
1163
+ fair_max (optional): Highest fair probability of this side to include, 0 to 1.
1164
+
1165
+ Returns:
1166
+ The unwrapped ``data`` object from the response.
1167
+ """
1168
+ return self._call(
1169
+ "get_prop_backtest",
1170
+ {
1171
+ "market": market,
1172
+ "side": side,
1173
+ "from_season": from_season,
1174
+ "to_season": to_season,
1175
+ "game_type": game_type,
1176
+ "week_min": week_min,
1177
+ "week_max": week_max,
1178
+ "player_id": player_id,
1179
+ "team": team,
1180
+ "opponent": opponent,
1181
+ "position": position,
1182
+ "home_away": home_away,
1183
+ "team_role": team_role,
1184
+ "line_min": line_min,
1185
+ "line_max": line_max,
1186
+ "fair_min": fair_min,
1187
+ "fair_max": fair_max,
1188
+ },
1189
+ )
@@ -1 +0,0 @@
1
- __version__ = "0.1.4"
File without changes
File without changes