propline 0.70.0 → 0.72.0
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.
- package/README.md +27 -0
- package/dist/index.cjs +51 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +134 -2
- package/dist/index.d.ts +134 -2
- package/dist/index.js +51 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -485,6 +485,33 @@ const h = await client.getInjuryHistory("basketball_nba", { days: 7 });
|
|
|
485
485
|
for (const c of h.changes) console.log(c.changed_at, c.player_name, c.old_status, "->", c.new_status);
|
|
486
486
|
```
|
|
487
487
|
|
|
488
|
+
### Referee card stats (free)
|
|
489
|
+
|
|
490
|
+
Card counts per referee, and each referee's matches with per-team cards.
|
|
491
|
+
32 soccer leagues (Premier League, La Liga, Serie A, Bundesliga, Ligue 1,
|
|
492
|
+
MLS and more); other sports return 404 with `available_sports`.
|
|
493
|
+
|
|
494
|
+
```ts
|
|
495
|
+
const r = await client.getReferees("soccer_epl", { since: "2026-08-01" });
|
|
496
|
+
for (const ref of r.referees) console.log(ref.referee, ref.matches, ref.cards_per_match);
|
|
497
|
+
|
|
498
|
+
const m = await client.getRefereeMatches("soccer_epl", "Michael Oliver", { limit: 10 });
|
|
499
|
+
for (const g of m.matches) console.log(g.commence_time.slice(0, 10), g.home_team, "v", g.away_team, g.yellow_cards);
|
|
500
|
+
```
|
|
501
|
+
|
|
502
|
+
### Book coverage (free)
|
|
503
|
+
|
|
504
|
+
Which markets each book prices on upcoming games, and when each book's
|
|
505
|
+
history starts.
|
|
506
|
+
|
|
507
|
+
```ts
|
|
508
|
+
const c = await client.getMarketCoverage("football_nfl", { days: 3 });
|
|
509
|
+
for (const b of c.bookmakers) console.log(b.key, b.events, "of", c.events, "games,", b.prop_market_count, "prop markets");
|
|
510
|
+
|
|
511
|
+
const h = await client.getHistoryCoverage("baseball_mlb");
|
|
512
|
+
for (const b of h.bookmakers) console.log(b.key, b.history_start, b.props_start);
|
|
513
|
+
```
|
|
514
|
+
|
|
488
515
|
### Golf round history (free)
|
|
489
516
|
|
|
490
517
|
Every completed round for every golfer, by tour (pga, dp_world, liv, lpga,
|
package/dist/index.cjs
CHANGED
|
@@ -449,6 +449,56 @@ var PropLine = class {
|
|
|
449
449
|
{ params }
|
|
450
450
|
);
|
|
451
451
|
}
|
|
452
|
+
/**
|
|
453
|
+
* Referee card stats for a sport (free tier). 32 soccer leagues: the
|
|
454
|
+
* Premier League plus La Liga, Serie A, Bundesliga, Ligue 1, MLS,
|
|
455
|
+
* Championship, Eredivisie, Liga MX, Brasileirao, the UEFA cups,
|
|
456
|
+
* Libertadores, Sudamericana and others. Other sports return 404
|
|
457
|
+
* `referees_not_available` with `available_sports`.
|
|
458
|
+
*/
|
|
459
|
+
getReferees(sport, options = {}) {
|
|
460
|
+
const params = {};
|
|
461
|
+
if (options.search) params.search = options.search;
|
|
462
|
+
if (options.since) params.since = options.since;
|
|
463
|
+
if (options.until) params.until = options.until;
|
|
464
|
+
return this._request(
|
|
465
|
+
"GET",
|
|
466
|
+
`/sports/${encodeURIComponent(sport)}/referees`,
|
|
467
|
+
{ params }
|
|
468
|
+
);
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* One referee's summary plus their matches with per-team cards
|
|
472
|
+
* (free tier). `limit` is 1-500 (default 100).
|
|
473
|
+
*/
|
|
474
|
+
getRefereeMatches(sport, name, options = {}) {
|
|
475
|
+
const params = {};
|
|
476
|
+
if (options.since) params.since = options.since;
|
|
477
|
+
if (options.until) params.until = options.until;
|
|
478
|
+
if (options.limit !== void 0) params.limit = String(options.limit);
|
|
479
|
+
return this._request(
|
|
480
|
+
"GET",
|
|
481
|
+
`/sports/${encodeURIComponent(sport)}/referees/${encodeURIComponent(name)}/matches`,
|
|
482
|
+
{ params }
|
|
483
|
+
);
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* Every market each book is pricing on a sport's games in the next `days`
|
|
487
|
+
* days, and on how many of those games (free tier). `days` is 1-7
|
|
488
|
+
* (default 3); `periods` adds quarter / half / inning markets.
|
|
489
|
+
*/
|
|
490
|
+
getMarketCoverage(sport, options = {}) {
|
|
491
|
+
const params = { sport };
|
|
492
|
+
if (options.days !== void 0) params.days = String(options.days);
|
|
493
|
+
if (options.periods !== void 0) params.periods = options.periods ? "true" : "false";
|
|
494
|
+
return this._request("GET", "/coverage/markets", { params });
|
|
495
|
+
}
|
|
496
|
+
/** When each book's odds history starts for a sport (free tier). */
|
|
497
|
+
getHistoryCoverage(sport) {
|
|
498
|
+
return this._request("GET", "/coverage/history", {
|
|
499
|
+
params: { sport }
|
|
500
|
+
});
|
|
501
|
+
}
|
|
452
502
|
/**
|
|
453
503
|
* Get raw player/team box-score stats (book-agnostic, free tier).
|
|
454
504
|
*
|
|
@@ -1275,7 +1325,7 @@ var Bookmakers = {
|
|
|
1275
1325
|
POLYMARKET: "polymarket",
|
|
1276
1326
|
PRIZEPICKS: "prizepicks"
|
|
1277
1327
|
};
|
|
1278
|
-
var VERSION = "0.
|
|
1328
|
+
var VERSION = "0.72.0";
|
|
1279
1329
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1280
1330
|
0 && (module.exports = {
|
|
1281
1331
|
AuthError,
|