propline 0.74.0 → 0.76.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/dist/index.cjs CHANGED
@@ -283,6 +283,31 @@ var PropLine = class {
283
283
  { params }
284
284
  );
285
285
  }
286
+ /**
287
+ * Order-book depth history for one event on the exchanges (Kalshi,
288
+ * Polymarket, Polymarket US, ProphetX): every recorded change of an
289
+ * outcome's best price, takeable size and the levels beyond it. Recorded
290
+ * from 2026-11-10. Paged: pass `next_from` back as `from`.
291
+ *
292
+ * Hobby+: full data. Free tier: redacted.
293
+ */
294
+ getDepthHistory(sport, eventId, options = {}) {
295
+ const params = {};
296
+ if (options.markets?.length) params.markets = options.markets.join(",");
297
+ const books = _bookmakersParam(options.bookmakers);
298
+ if (books !== void 0) params.bookmakers = books;
299
+ const per = _periodParam(options.period);
300
+ if (per !== void 0) params.period = per;
301
+ if (options.from) params.from = options.from;
302
+ if (options.to) params.to = options.to;
303
+ if (options.interval) params.interval = options.interval;
304
+ if (options.limit !== void 0) params.limit = String(options.limit);
305
+ return this._request(
306
+ "GET",
307
+ `/sports/${encodeURIComponent(sport)}/events/${encodeURIComponent(String(eventId))}/odds/depth/history`,
308
+ { params }
309
+ );
310
+ }
286
311
  /** Get game scores and status (free tier). */
287
312
  getScores(sport, options = {}) {
288
313
  return this._request(
@@ -858,6 +883,19 @@ var PropLine = class {
858
883
  { params }
859
884
  );
860
885
  }
886
+ /**
887
+ * One bet-slip link that puts several legs on a book's slip. Pass
888
+ * PropLine outcome ids (`outcome_id` on best-line price rows with
889
+ * `includeLinks: true`), 1-12, all at one book: DraftKings, FanDuel or
890
+ * Fanatics. The link loads the legs; the book may still refuse the
891
+ * combination. No prices; every tier.
892
+ */
893
+ getParlayLink(outcomeIds) {
894
+ const ids = Array.isArray(outcomeIds) ? outcomeIds.join(",") : outcomeIds;
895
+ return this._request("GET", "/bet-links/parlay", {
896
+ params: { outcome_ids: ids }
897
+ });
898
+ }
861
899
  /**
862
900
  * Calculate EV% for a user-supplied price against the event's
863
901
  * no-vig fair anchor. Useful for books PropLine doesn't carry —
@@ -1334,7 +1372,7 @@ var Bookmakers = {
1334
1372
  POLYMARKET: "polymarket",
1335
1373
  PRIZEPICKS: "prizepicks"
1336
1374
  };
1337
- var VERSION = "0.74.0";
1375
+ var VERSION = "0.76.0";
1338
1376
  // Annotate the CommonJS export names for ESM import in node:
1339
1377
  0 && (module.exports = {
1340
1378
  AuthError,