propline 0.71.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 CHANGED
@@ -488,7 +488,8 @@ for (const c of h.changes) console.log(c.changed_at, c.player_name, c.old_status
488
488
  ### Referee card stats (free)
489
489
 
490
490
  Card counts per referee, and each referee's matches with per-team cards.
491
- Premier League (`soccer_epl`) only today.
491
+ 32 soccer leagues (Premier League, La Liga, Serie A, Bundesliga, Ligue 1,
492
+ MLS and more); other sports return 404 with `available_sports`.
492
493
 
493
494
  ```ts
494
495
  const r = await client.getReferees("soccer_epl", { since: "2026-08-01" });
@@ -498,6 +499,19 @@ const m = await client.getRefereeMatches("soccer_epl", "Michael Oliver", { limit
498
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);
499
500
  ```
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
+
501
515
  ### Golf round history (free)
502
516
 
503
517
  Every completed round for every golfer, by tour (pga, dp_world, liv, lpga,
package/dist/index.cjs CHANGED
@@ -450,8 +450,11 @@ var PropLine = class {
450
450
  );
451
451
  }
452
452
  /**
453
- * Referee card stats for a sport (free tier). Only `soccer_epl` today;
454
- * other sports return 404 `referees_not_available`.
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`.
455
458
  */
456
459
  getReferees(sport, options = {}) {
457
460
  const params = {};
@@ -479,6 +482,23 @@ var PropLine = class {
479
482
  { params }
480
483
  );
481
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
+ }
482
502
  /**
483
503
  * Get raw player/team box-score stats (book-agnostic, free tier).
484
504
  *
@@ -1305,7 +1325,7 @@ var Bookmakers = {
1305
1325
  POLYMARKET: "polymarket",
1306
1326
  PRIZEPICKS: "prizepicks"
1307
1327
  };
1308
- var VERSION = "0.71.0";
1328
+ var VERSION = "0.72.0";
1309
1329
  // Annotate the CommonJS export names for ESM import in node:
1310
1330
  0 && (module.exports = {
1311
1331
  AuthError,