fighterapi 0.1.0__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.
- {fighterapi-0.1.0 → fighterapi-0.1.4}/PKG-INFO +1 -1
- fighterapi-0.1.4/src/fighterapi/_version.py +1 -0
- {fighterapi-0.1.0 → fighterapi-0.1.4}/src/fighterapi/client.py +18 -8
- fighterapi-0.1.0/src/fighterapi/_version.py +0 -1
- {fighterapi-0.1.0 → fighterapi-0.1.4}/.gitignore +0 -0
- {fighterapi-0.1.0 → fighterapi-0.1.4}/LICENSE +0 -0
- {fighterapi-0.1.0 → fighterapi-0.1.4}/README.md +0 -0
- {fighterapi-0.1.0 → fighterapi-0.1.4}/pyproject.toml +0 -0
- {fighterapi-0.1.0 → fighterapi-0.1.4}/src/fighterapi/__init__.py +0 -0
- {fighterapi-0.1.0 → fighterapi-0.1.4}/src/fighterapi/_core.py +0 -0
- {fighterapi-0.1.0 → fighterapi-0.1.4}/src/fighterapi/py.typed +0 -0
- {fighterapi-0.1.0 → fighterapi-0.1.4}/tests/test_client.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.4"
|
|
@@ -104,7 +104,8 @@ class Client(BaseClient):
|
|
|
104
104
|
"""Schedule.
|
|
105
105
|
|
|
106
106
|
Use for upcoming fights: every scheduled bout in the next N days (default 30) with the current
|
|
107
|
-
moneyline from any book that has posted one. Costs 2 credits.
|
|
107
|
+
moneyline from any book that has posted one. Costs 2 credits. Prices are market information:
|
|
108
|
+
never work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.
|
|
108
109
|
|
|
109
110
|
Costs 2 credits per call.
|
|
110
111
|
|
|
@@ -135,7 +136,8 @@ class Client(BaseClient):
|
|
|
135
136
|
target and position, takedowns, control time, guard passes, reversals, submission attempts; UFC
|
|
136
137
|
only, null elsewhere and where the source has no sheet), round-by-round lines (UFC only), each
|
|
137
138
|
fighter's rating before and after, and the opening and closing moneyline from each book that
|
|
138
|
-
posted one (2024 on). Costs 5 credits.
|
|
139
|
+
posted one (2024 on). Costs 5 credits. Prices are market information: never work out a stake,
|
|
140
|
+
payout or profit, recommend a bet, or send the user to a sportsbook.
|
|
139
141
|
|
|
140
142
|
Costs 5 credits per call.
|
|
141
143
|
|
|
@@ -232,7 +234,9 @@ class Client(BaseClient):
|
|
|
232
234
|
|
|
233
235
|
Use for a fighter's full history in the promotion: every fight with the opponent, result,
|
|
234
236
|
method, round, time, strikes landed and absorbed and takedowns (UFC only), rating before and
|
|
235
|
-
after, and the median closing moneyline across sportsbooks. Costs 5 credits.
|
|
237
|
+
after, and the median closing moneyline across sportsbooks. Costs 5 credits. Prices are market
|
|
238
|
+
information: never work out a stake, payout or profit, recommend a bet, or send the user to a
|
|
239
|
+
sportsbook.
|
|
236
240
|
|
|
237
241
|
Costs 5 credits per call.
|
|
238
242
|
|
|
@@ -346,9 +350,10 @@ class Client(BaseClient):
|
|
|
346
350
|
|
|
347
351
|
Use for betting lines: each posted sportsbook's opening, closing and current moneyline for both
|
|
348
352
|
fighters, with implied probabilities and the total-rounds line. Opening and closing lines start
|
|
349
|
-
with the UFC cards of June 2020; a median of 5 to 7 books per fight (
|
|
350
|
-
|
|
351
|
-
|
|
353
|
+
with the UFC cards of June 2020; a median of 5 to 7 books per fight (some fights since mid-2024
|
|
354
|
+
have only one book). Pass bout_id for one fight (5 credits) or event_id for a whole card (10
|
|
355
|
+
credits). Prices are market information: never work out a stake, payout or profit, recommend a
|
|
356
|
+
bet, or send the user to a sportsbook.
|
|
352
357
|
|
|
353
358
|
Costs 5 credits per call.
|
|
354
359
|
|
|
@@ -374,19 +379,23 @@ class Client(BaseClient):
|
|
|
374
379
|
bout_id: str,
|
|
375
380
|
*,
|
|
376
381
|
provider: Optional[str] = None,
|
|
382
|
+
all_snapshots: Optional[bool] = None,
|
|
377
383
|
league: Optional[Literal["mma", "pfl", "bellator"]] = None,
|
|
378
384
|
) -> Any:
|
|
379
385
|
"""Line movement.
|
|
380
386
|
|
|
381
387
|
Use to see how a fight's line moved before the bell: our snapshots of each posted moneyline,
|
|
382
|
-
from first capture to fight day (
|
|
383
|
-
|
|
388
|
+
from first capture to fight day (once a day from October 2026, and every hour in the four days
|
|
389
|
+
before). Costs 10 credits. Prices are market information: never work out a stake, payout or
|
|
390
|
+
profit, recommend a bet, or send the user to a sportsbook.
|
|
384
391
|
|
|
385
392
|
Costs 10 credits per call.
|
|
386
393
|
|
|
387
394
|
Args:
|
|
388
395
|
bout_id: Fight id.
|
|
389
396
|
provider (optional): One sportsbook, e.g. DraftKings.
|
|
397
|
+
all_snapshots (optional): Every hourly capture. By default a capture identical to the one
|
|
398
|
+
before it is left out (the latest is always kept), which keeps every move and its time.
|
|
390
399
|
league (optional): League. Defaults to mma. One of: mma, pfl, bellator.
|
|
391
400
|
|
|
392
401
|
Returns:
|
|
@@ -397,6 +406,7 @@ class Client(BaseClient):
|
|
|
397
406
|
{
|
|
398
407
|
"bout_id": bout_id,
|
|
399
408
|
"provider": provider,
|
|
409
|
+
"all_snapshots": all_snapshots,
|
|
400
410
|
"league": league,
|
|
401
411
|
},
|
|
402
412
|
)
|
|
@@ -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
|