propline 0.71.0 → 0.73.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
@@ -379,6 +379,10 @@ var PropLine = class {
379
379
  * Find PropLine events from someone else's id (free tier). Pass exactly
380
380
  * one of `book` + `bookEventId` (a sportsbook's own event id),
381
381
  * `espnEventId` or `mlbGamePk`; arrays send up to 50.
382
+ *
383
+ * Or by names: `sport` + `home` + `away` + `kickoff` (ISO 8601) returns
384
+ * every event with those two teams (either order) within `windowHours`
385
+ * (default 6), closest first; `ambiguous` is true when more than one matches.
382
386
  */
383
387
  lookupEventIds(opts) {
384
388
  const j = (v) => Array.isArray(v) ? v.join(",") : v === void 0 ? void 0 : String(v);
@@ -387,7 +391,12 @@ var PropLine = class {
387
391
  book: opts.book,
388
392
  book_event_id: j(opts.bookEventId),
389
393
  espn_event_id: j(opts.espnEventId),
390
- mlb_game_pk: j(opts.mlbGamePk)
394
+ mlb_game_pk: j(opts.mlbGamePk),
395
+ sport: opts.sport,
396
+ home: opts.home,
397
+ away: opts.away,
398
+ kickoff: opts.kickoff,
399
+ window_hours: opts.windowHours
391
400
  }
392
401
  });
393
402
  }
@@ -450,8 +459,11 @@ var PropLine = class {
450
459
  );
451
460
  }
452
461
  /**
453
- * Referee card stats for a sport (free tier). Only `soccer_epl` today;
454
- * other sports return 404 `referees_not_available`.
462
+ * Referee card stats for a sport (free tier). 32 soccer leagues: the
463
+ * Premier League plus La Liga, Serie A, Bundesliga, Ligue 1, MLS,
464
+ * Championship, Eredivisie, Liga MX, Brasileirao, the UEFA cups,
465
+ * Libertadores, Sudamericana and others. Other sports return 404
466
+ * `referees_not_available` with `available_sports`.
455
467
  */
456
468
  getReferees(sport, options = {}) {
457
469
  const params = {};
@@ -479,6 +491,23 @@ var PropLine = class {
479
491
  { params }
480
492
  );
481
493
  }
494
+ /**
495
+ * Every market each book is pricing on a sport's games in the next `days`
496
+ * days, and on how many of those games (free tier). `days` is 1-7
497
+ * (default 3); `periods` adds quarter / half / inning markets.
498
+ */
499
+ getMarketCoverage(sport, options = {}) {
500
+ const params = { sport };
501
+ if (options.days !== void 0) params.days = String(options.days);
502
+ if (options.periods !== void 0) params.periods = options.periods ? "true" : "false";
503
+ return this._request("GET", "/coverage/markets", { params });
504
+ }
505
+ /** When each book's odds history starts for a sport (free tier). */
506
+ getHistoryCoverage(sport) {
507
+ return this._request("GET", "/coverage/history", {
508
+ params: { sport }
509
+ });
510
+ }
482
511
  /**
483
512
  * Get raw player/team box-score stats (book-agnostic, free tier).
484
513
  *
@@ -1305,7 +1334,7 @@ var Bookmakers = {
1305
1334
  POLYMARKET: "polymarket",
1306
1335
  PRIZEPICKS: "prizepicks"
1307
1336
  };
1308
- var VERSION = "0.71.0";
1337
+ var VERSION = "0.73.0";
1309
1338
  // Annotate the CommonJS export names for ESM import in node:
1310
1339
  0 && (module.exports = {
1311
1340
  AuthError,