propline 0.69.0 → 0.70.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
@@ -612,6 +612,22 @@ after a line was posted, `opening_*` means *first observed by us* rather
612
612
  than the book's true open — a value in minutes rather than hours is the
613
613
  tell.
614
614
 
615
+ ### Price a parlay across games (Hobby+)
616
+
617
+ ```ts
618
+ const res = await client.priceParlay([
619
+ { sport_key: "basketball_nba", event_id: 287401, market: "h2h", selection: "Detroit Pistons" },
620
+ { sport_key: "basketball_nba", event_id: 287402, market: "h2h", selection: "Atlanta Hawks" },
621
+ ], { price: 180 });
622
+ console.log(res.fair_price, res.offered_ev_pct, res.books.slice(0, 3));
623
+ ```
624
+
625
+ ### Find an event by another id (free)
626
+
627
+ ```ts
628
+ await client.lookupEventIds({ book: "pinnacle", bookEventId: "1612345678" });
629
+ ```
630
+
615
631
  ### Settle your bets (Hobby+)
616
632
 
617
633
  `settleBets` returns won / lost / push / void / half_won / half_lost per bet,
package/dist/index.cjs CHANGED
@@ -375,6 +375,22 @@ var PropLine = class {
375
375
  getEventIds(sport) {
376
376
  return this._request("GET", `/sports/${encodeURIComponent(sport)}/ids`);
377
377
  }
378
+ /**
379
+ * Find PropLine events from someone else's id (free tier). Pass exactly
380
+ * one of `book` + `bookEventId` (a sportsbook's own event id),
381
+ * `espnEventId` or `mlbGamePk`; arrays send up to 50.
382
+ */
383
+ lookupEventIds(opts) {
384
+ const j = (v) => Array.isArray(v) ? v.join(",") : v === void 0 ? void 0 : String(v);
385
+ return this._request("GET", "/ids/lookup", {
386
+ params: {
387
+ book: opts.book,
388
+ book_event_id: j(opts.bookEventId),
389
+ espn_event_id: j(opts.espnEventId),
390
+ mlb_game_pk: j(opts.mlbGamePk)
391
+ }
392
+ });
393
+ }
378
394
  getBookAccuracy(options = {}) {
379
395
  const params = { days: String(options.days ?? 30) };
380
396
  if (options.sport) params.sport = options.sport;
@@ -1147,6 +1163,17 @@ var PropLine = class {
1147
1163
  settleBets(bets) {
1148
1164
  return this._request("POST", "/bets/settle", { body: bets });
1149
1165
  }
1166
+ /**
1167
+ * Fair price of a parlay across games, from the same no-vig lines as
1168
+ * `getEventEv`, plus each book's price for the same legs and the EV% of
1169
+ * an offered `price`. Legs on one event are flagged `same_game` (the
1170
+ * fair price assumes independent legs). 2-15 legs. Hobby+.
1171
+ */
1172
+ priceParlay(legs, options = {}) {
1173
+ return this._request("POST", "/parlay/price", {
1174
+ body: { legs, price: options.price, devig: options.devig }
1175
+ });
1176
+ }
1150
1177
  priceSgp(sportKey, eventId, legs, bookmaker = "fanduel") {
1151
1178
  return this._request(
1152
1179
  "POST",
@@ -1248,7 +1275,7 @@ var Bookmakers = {
1248
1275
  POLYMARKET: "polymarket",
1249
1276
  PRIZEPICKS: "prizepicks"
1250
1277
  };
1251
- var VERSION = "0.69.0";
1278
+ var VERSION = "0.70.0";
1252
1279
  // Annotate the CommonJS export names for ESM import in node:
1253
1280
  0 && (module.exports = {
1254
1281
  AuthError,