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.d.cts CHANGED
@@ -482,6 +482,54 @@ interface ClosingBookmaker {
482
482
  markets: ClosingMarket[];
483
483
  [k: string]: unknown;
484
484
  }
485
+ /** One order-book level beyond the served price. */
486
+ interface DepthHistoryLevel {
487
+ /** American odds at this level. */
488
+ price: number;
489
+ /** Dollars a taker can spend at this level. */
490
+ size: number | null;
491
+ }
492
+ /** One recorded order-book state of an outcome. */
493
+ interface DepthSnapshot {
494
+ recorded_at: string;
495
+ /** Best takeable price, American. */
496
+ price: number | null;
497
+ point: number | null;
498
+ /** Dollars takeable at `price`. */
499
+ liquidity: number | null;
500
+ /** The book's own timestamp for that size. */
501
+ liquidity_updated_at: string | null;
502
+ /** Levels beyond `price`, best first. */
503
+ depth: DepthHistoryLevel[];
504
+ }
505
+ interface DepthHistoryResponse {
506
+ id: string;
507
+ sport_key: string;
508
+ home_team: string;
509
+ away_team: string;
510
+ commence_time: string;
511
+ live: boolean;
512
+ /** Set when the page was full: pass it back as `from` for the next page. */
513
+ next_from: string | null;
514
+ upgrade_url: string | null;
515
+ bookmakers: {
516
+ key: string;
517
+ title: string;
518
+ markets: {
519
+ key: string;
520
+ description: string;
521
+ period: string | null;
522
+ team: string | null;
523
+ outcomes: {
524
+ name: string;
525
+ description: string;
526
+ outcome_id: number | null;
527
+ redacted: boolean;
528
+ snapshots: DepthSnapshot[];
529
+ }[];
530
+ }[];
531
+ }[];
532
+ }
485
533
  interface OddsClosingResponse {
486
534
  id: number | string;
487
535
  sport_key: string;
@@ -494,6 +542,8 @@ interface OddsClosingResponse {
494
542
  }
495
543
  interface ScoreEvent {
496
544
  id: number | string;
545
+ /** Time left in the period ("6:02"). NBA live games only; `null` otherwise. */
546
+ clock?: string | null;
497
547
  sport_key: string;
498
548
  home_team: string;
499
549
  away_team: string;
@@ -1113,6 +1163,34 @@ interface BestPrice {
1113
1163
  * liquidity is a few dollars. Nulled on free-tier redacted responses.
1114
1164
  */
1115
1165
  liquidity?: number | null;
1166
+ /** includeLinks only: that selection on the book's bet slip (DraftKings, FanDuel, Fanatics, BetMGM). */
1167
+ bet_link?: string | null;
1168
+ /** includeLinks only: PropLine outcome id — the input to `getParlayLink`. */
1169
+ outcome_id?: string | null;
1170
+ /** includeLinks only: FanDuel's 42.x market id or Fanatics' plain market number. */
1171
+ book_market_id?: string | null;
1172
+ [k: string]: unknown;
1173
+ }
1174
+ interface ParlayLinkLeg {
1175
+ outcome_id: string;
1176
+ event_id: string;
1177
+ market_key: string;
1178
+ period: string | null;
1179
+ name: string;
1180
+ description: string;
1181
+ point: number | null;
1182
+ book_event_id: string | null;
1183
+ book_market_id: string | null;
1184
+ book_outcome_id: string | null;
1185
+ [k: string]: unknown;
1186
+ }
1187
+ interface ParlayLinkResponse {
1188
+ book: string;
1189
+ book_title: string;
1190
+ /** Opens the book with every leg on the slip. The book may still refuse the combination. */
1191
+ bet_link: string;
1192
+ legs: ParlayLinkLeg[];
1193
+ note: string;
1116
1194
  [k: string]: unknown;
1117
1195
  }
1118
1196
  interface BestLineSide {
@@ -2043,6 +2121,22 @@ interface GetOddsClosingOptions {
2043
2121
  */
2044
2122
  openingWindow?: number | "all";
2045
2123
  }
2124
+ interface GetDepthHistoryOptions {
2125
+ /** Market keys (default h2h,spreads,totals). */
2126
+ markets?: string[];
2127
+ /** Book keys. Omitted = kalshi, polymarket, polymarket_us, prophetx. */
2128
+ bookmakers?: string | string[];
2129
+ /** ISO timestamp; states at or after. Pass `next_from` here to page. */
2130
+ from?: string;
2131
+ /** ISO timestamp; states at or before. */
2132
+ to?: string;
2133
+ /** Last state per outcome per bucket. */
2134
+ interval?: "30s" | "1m" | "5m" | "15m" | "30m" | "1h";
2135
+ /** Game-period filter — see `PeriodFilter`. */
2136
+ period?: PeriodFilter;
2137
+ /** States per page (default 5000, max 20000). */
2138
+ limit?: number;
2139
+ }
2046
2140
  interface GetMovementOptions {
2047
2141
  markets?: string[];
2048
2142
  /** Game-period filter — see `PeriodFilter`. */
@@ -2505,6 +2599,15 @@ declare class PropLine {
2505
2599
  * Hobby+: full data. Free tier: redacted.
2506
2600
  */
2507
2601
  getOddsClosing(sport: string, eventId: number | string, options?: GetOddsClosingOptions): Promise<OddsClosingResponse>;
2602
+ /**
2603
+ * Order-book depth history for one event on the exchanges (Kalshi,
2604
+ * Polymarket, Polymarket US, ProphetX): every recorded change of an
2605
+ * outcome's best price, takeable size and the levels beyond it. Recorded
2606
+ * from 2026-11-10. Paged: pass `next_from` back as `from`.
2607
+ *
2608
+ * Hobby+: full data. Free tier: redacted.
2609
+ */
2610
+ getDepthHistory(sport: string, eventId: number | string, options?: GetDepthHistoryOptions): Promise<DepthHistoryResponse>;
2508
2611
  /** Get game scores and status (free tier). */
2509
2612
  getScores(sport: string, options?: GetScoresOptions): Promise<ScoreEvent[]>;
2510
2613
  /**
@@ -2829,6 +2932,14 @@ declare class PropLine {
2829
2932
  * ```
2830
2933
  */
2831
2934
  getEventBestLine(sport: string, eventId: number | string, options?: GetEventBestLineOptions): Promise<EventBestLineResponse>;
2935
+ /**
2936
+ * One bet-slip link that puts several legs on a book's slip. Pass
2937
+ * PropLine outcome ids (`outcome_id` on best-line price rows with
2938
+ * `includeLinks: true`), 1-12, all at one book: DraftKings, FanDuel or
2939
+ * Fanatics. The link loads the legs; the book may still refuse the
2940
+ * combination. No prices; every tier.
2941
+ */
2942
+ getParlayLink(outcomeIds: Array<number | string> | string): Promise<ParlayLinkResponse>;
2832
2943
  /**
2833
2944
  * Calculate EV% for a user-supplied price against the event's
2834
2945
  * no-vig fair anchor. Useful for books PropLine doesn't carry —
@@ -3140,6 +3251,6 @@ declare const Bookmakers: {
3140
3251
  readonly PRIZEPICKS: "prizepicks";
3141
3252
  };
3142
3253
  type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
3143
- declare const VERSION = "0.74.0";
3254
+ declare const VERSION = "0.76.0";
3144
3255
 
3145
- export { AuthError, type BestLine, type BestLineSide, type BestPrice, type BookAccuracyOptions, type BookAccuracyReport, type BookAccuracyRow, type Bookmaker, type BookmakerKey, Bookmakers, type CalcEventEvOptions, type ClosingBookmaker, type ClosingMarket, type ClosingOutcome, type ClvBetInput, type ClvGradeResponse, type ClvGradedBet, type ClvSummary, type ContextResponse, type CreateWebhookOptions, type DepthLevel, type DfsPayoutTier, type DfsPayoutsResponse, type DfsPlayPayout, type EvLine, type EvOutcome, type EvWebhookPayload, type Event, type EventBestLineResponse, type EventEvCalcResponse, type EventEvResponse, type EventIds, type EventIdsBook, type EventProjectionsResponse, type ExportOddsHistoryOptions, type ExportResolvedPropsOptions, type FuturesEvent, type FuturesMarket, type FuturesOutcome, type GetDfsPayoutsOptions, type GetEventBestLineOptions, type GetEventEvOptions, type GetEventProjectionsOptions, type GetMlbGrandSalamiOptions, type GetMovementOptions, type GetNhlDailyGoalsTotalOptions, type GetOddsClosingOptions, type GetOddsHistoryOptions, type GetOddsOptions, type GetPlayerGamesOptions, type GetPlayerHistoryOptions, type GetPlayerTrendsOptions, type GetResultsOptions, type GetScoresOptions, type GetStatsOptions, type GolfRound, type GolfRoundSplit, type GolfRoundsOptions, type GolfRoundsResponse, type GolfTournament, type GolfTournamentsOptions, type HistoryCoverageBook, type HistoryCoverageResponse, type HitRateSplit, type IdLookupResponse, type InjuredPlayer, type InjuryHistory, type InjuryHistoryOptions, type InjuryReport, type InjuryReportOptions, type InjuryStatusChange, type InjuryStatusCode, type LineMovementPrice, type LineMovementWebhookPayload, type LineType, type ListWebhookDeliveriesOptions, type Market, type MarketCoverageBook, type MarketCoverageEntry, type MarketCoverageOptions, type MarketCoverageResponse, type MarketSummary, type MlbGrandSalamiBook, type MlbGrandSalamiResponse, type MovementBookmaker, type MovementMarket, type MovementOutcome, type MovementResponse, type NhlDailyGoalsTotalBook, type NhlDailyGoalsTotalResponse, type OddsClosingResponse, type OddsHistoryBookmaker, type OddsHistoryMarket, type OddsHistoryOutcome, type OddsHistoryResponse, type OddsResponse, type Outcome, type OutcomeSnapshot, type ParlayLegInput, type ParlayLegPriced, type ParlayPriceResponse, type PeriodFilter, type PlayerGame, type PlayerGameLog, type PlayerHistoryEntry, type PlayerHistoryResponse, type PlayerMarketTrend, type PlayerSearchResponse, type PlayerSearchResult, type PlayerStat, type PlayerTrends, type ProjectionRow, PropLine, PropLineError, type PropLineErrorInfo, type PropLineOptions, type QuotaStatus, RateLimitError, type RefereeMatch, type RefereeMatchesOptions, type RefereeMatchesResponse, type RefereeNextMatch, type RefereeSummary, type RefereesOptions, type RefereesResponse, type ReplayEvent, type ReplayPage, type ReplayWebhookEventsOptions, type ResolutionSummary, type ResolutionSummaryMarket, type ResolutionSummarySport, type ResolvedOutcome, type ResultsMarket, type ResultsResponse, type ScoreEvent, type SearchPlayersOptions, type SettleBetInput, type SettleLegInput, type SettleResponse, type SettleResult, type SettledBet, type SettledLeg, type SgpBookError, type SgpLegInput, type SgpLegQuote, type SgpMultiQuoteResponse, type SgpQuoteResponse, type Sport, type StatsResponse, type SteamMove, type SteamWebhookPayload, type StreamHeartbeat, type StreamHeartbeatBook, type StreamOptions, type TrendLastGame, type TrendStreak, type UpdateWebhookOptions, VERSION, type VerifySignatureOptions, type WeatherInfo, type Webhook, type WebhookDelivery, type WebhookEventType };
3256
+ export { AuthError, type BestLine, type BestLineSide, type BestPrice, type BookAccuracyOptions, type BookAccuracyReport, type BookAccuracyRow, type Bookmaker, type BookmakerKey, Bookmakers, type CalcEventEvOptions, type ClosingBookmaker, type ClosingMarket, type ClosingOutcome, type ClvBetInput, type ClvGradeResponse, type ClvGradedBet, type ClvSummary, type ContextResponse, type CreateWebhookOptions, type DepthHistoryLevel, type DepthHistoryResponse, type DepthLevel, type DepthSnapshot, type DfsPayoutTier, type DfsPayoutsResponse, type DfsPlayPayout, type EvLine, type EvOutcome, type EvWebhookPayload, type Event, type EventBestLineResponse, type EventEvCalcResponse, type EventEvResponse, type EventIds, type EventIdsBook, type EventProjectionsResponse, type ExportOddsHistoryOptions, type ExportResolvedPropsOptions, type FuturesEvent, type FuturesMarket, type FuturesOutcome, type GetDepthHistoryOptions, type GetDfsPayoutsOptions, type GetEventBestLineOptions, type GetEventEvOptions, type GetEventProjectionsOptions, type GetMlbGrandSalamiOptions, type GetMovementOptions, type GetNhlDailyGoalsTotalOptions, type GetOddsClosingOptions, type GetOddsHistoryOptions, type GetOddsOptions, type GetPlayerGamesOptions, type GetPlayerHistoryOptions, type GetPlayerTrendsOptions, type GetResultsOptions, type GetScoresOptions, type GetStatsOptions, type GolfRound, type GolfRoundSplit, type GolfRoundsOptions, type GolfRoundsResponse, type GolfTournament, type GolfTournamentsOptions, type HistoryCoverageBook, type HistoryCoverageResponse, type HitRateSplit, type IdLookupResponse, type InjuredPlayer, type InjuryHistory, type InjuryHistoryOptions, type InjuryReport, type InjuryReportOptions, type InjuryStatusChange, type InjuryStatusCode, type LineMovementPrice, type LineMovementWebhookPayload, type LineType, type ListWebhookDeliveriesOptions, type Market, type MarketCoverageBook, type MarketCoverageEntry, type MarketCoverageOptions, type MarketCoverageResponse, type MarketSummary, type MlbGrandSalamiBook, type MlbGrandSalamiResponse, type MovementBookmaker, type MovementMarket, type MovementOutcome, type MovementResponse, type NhlDailyGoalsTotalBook, type NhlDailyGoalsTotalResponse, type OddsClosingResponse, type OddsHistoryBookmaker, type OddsHistoryMarket, type OddsHistoryOutcome, type OddsHistoryResponse, type OddsResponse, type Outcome, type OutcomeSnapshot, type ParlayLegInput, type ParlayLegPriced, type ParlayLinkLeg, type ParlayLinkResponse, type ParlayPriceResponse, type PeriodFilter, type PlayerGame, type PlayerGameLog, type PlayerHistoryEntry, type PlayerHistoryResponse, type PlayerMarketTrend, type PlayerSearchResponse, type PlayerSearchResult, type PlayerStat, type PlayerTrends, type ProjectionRow, PropLine, PropLineError, type PropLineErrorInfo, type PropLineOptions, type QuotaStatus, RateLimitError, type RefereeMatch, type RefereeMatchesOptions, type RefereeMatchesResponse, type RefereeNextMatch, type RefereeSummary, type RefereesOptions, type RefereesResponse, type ReplayEvent, type ReplayPage, type ReplayWebhookEventsOptions, type ResolutionSummary, type ResolutionSummaryMarket, type ResolutionSummarySport, type ResolvedOutcome, type ResultsMarket, type ResultsResponse, type ScoreEvent, type SearchPlayersOptions, type SettleBetInput, type SettleLegInput, type SettleResponse, type SettleResult, type SettledBet, type SettledLeg, type SgpBookError, type SgpLegInput, type SgpLegQuote, type SgpMultiQuoteResponse, type SgpQuoteResponse, type Sport, type StatsResponse, type SteamMove, type SteamWebhookPayload, type StreamHeartbeat, type StreamHeartbeatBook, type StreamOptions, type TrendLastGame, type TrendStreak, type UpdateWebhookOptions, VERSION, type VerifySignatureOptions, type WeatherInfo, type Webhook, type WebhookDelivery, type WebhookEventType };
package/dist/index.d.ts CHANGED
@@ -482,6 +482,54 @@ interface ClosingBookmaker {
482
482
  markets: ClosingMarket[];
483
483
  [k: string]: unknown;
484
484
  }
485
+ /** One order-book level beyond the served price. */
486
+ interface DepthHistoryLevel {
487
+ /** American odds at this level. */
488
+ price: number;
489
+ /** Dollars a taker can spend at this level. */
490
+ size: number | null;
491
+ }
492
+ /** One recorded order-book state of an outcome. */
493
+ interface DepthSnapshot {
494
+ recorded_at: string;
495
+ /** Best takeable price, American. */
496
+ price: number | null;
497
+ point: number | null;
498
+ /** Dollars takeable at `price`. */
499
+ liquidity: number | null;
500
+ /** The book's own timestamp for that size. */
501
+ liquidity_updated_at: string | null;
502
+ /** Levels beyond `price`, best first. */
503
+ depth: DepthHistoryLevel[];
504
+ }
505
+ interface DepthHistoryResponse {
506
+ id: string;
507
+ sport_key: string;
508
+ home_team: string;
509
+ away_team: string;
510
+ commence_time: string;
511
+ live: boolean;
512
+ /** Set when the page was full: pass it back as `from` for the next page. */
513
+ next_from: string | null;
514
+ upgrade_url: string | null;
515
+ bookmakers: {
516
+ key: string;
517
+ title: string;
518
+ markets: {
519
+ key: string;
520
+ description: string;
521
+ period: string | null;
522
+ team: string | null;
523
+ outcomes: {
524
+ name: string;
525
+ description: string;
526
+ outcome_id: number | null;
527
+ redacted: boolean;
528
+ snapshots: DepthSnapshot[];
529
+ }[];
530
+ }[];
531
+ }[];
532
+ }
485
533
  interface OddsClosingResponse {
486
534
  id: number | string;
487
535
  sport_key: string;
@@ -494,6 +542,8 @@ interface OddsClosingResponse {
494
542
  }
495
543
  interface ScoreEvent {
496
544
  id: number | string;
545
+ /** Time left in the period ("6:02"). NBA live games only; `null` otherwise. */
546
+ clock?: string | null;
497
547
  sport_key: string;
498
548
  home_team: string;
499
549
  away_team: string;
@@ -1113,6 +1163,34 @@ interface BestPrice {
1113
1163
  * liquidity is a few dollars. Nulled on free-tier redacted responses.
1114
1164
  */
1115
1165
  liquidity?: number | null;
1166
+ /** includeLinks only: that selection on the book's bet slip (DraftKings, FanDuel, Fanatics, BetMGM). */
1167
+ bet_link?: string | null;
1168
+ /** includeLinks only: PropLine outcome id — the input to `getParlayLink`. */
1169
+ outcome_id?: string | null;
1170
+ /** includeLinks only: FanDuel's 42.x market id or Fanatics' plain market number. */
1171
+ book_market_id?: string | null;
1172
+ [k: string]: unknown;
1173
+ }
1174
+ interface ParlayLinkLeg {
1175
+ outcome_id: string;
1176
+ event_id: string;
1177
+ market_key: string;
1178
+ period: string | null;
1179
+ name: string;
1180
+ description: string;
1181
+ point: number | null;
1182
+ book_event_id: string | null;
1183
+ book_market_id: string | null;
1184
+ book_outcome_id: string | null;
1185
+ [k: string]: unknown;
1186
+ }
1187
+ interface ParlayLinkResponse {
1188
+ book: string;
1189
+ book_title: string;
1190
+ /** Opens the book with every leg on the slip. The book may still refuse the combination. */
1191
+ bet_link: string;
1192
+ legs: ParlayLinkLeg[];
1193
+ note: string;
1116
1194
  [k: string]: unknown;
1117
1195
  }
1118
1196
  interface BestLineSide {
@@ -2043,6 +2121,22 @@ interface GetOddsClosingOptions {
2043
2121
  */
2044
2122
  openingWindow?: number | "all";
2045
2123
  }
2124
+ interface GetDepthHistoryOptions {
2125
+ /** Market keys (default h2h,spreads,totals). */
2126
+ markets?: string[];
2127
+ /** Book keys. Omitted = kalshi, polymarket, polymarket_us, prophetx. */
2128
+ bookmakers?: string | string[];
2129
+ /** ISO timestamp; states at or after. Pass `next_from` here to page. */
2130
+ from?: string;
2131
+ /** ISO timestamp; states at or before. */
2132
+ to?: string;
2133
+ /** Last state per outcome per bucket. */
2134
+ interval?: "30s" | "1m" | "5m" | "15m" | "30m" | "1h";
2135
+ /** Game-period filter — see `PeriodFilter`. */
2136
+ period?: PeriodFilter;
2137
+ /** States per page (default 5000, max 20000). */
2138
+ limit?: number;
2139
+ }
2046
2140
  interface GetMovementOptions {
2047
2141
  markets?: string[];
2048
2142
  /** Game-period filter — see `PeriodFilter`. */
@@ -2505,6 +2599,15 @@ declare class PropLine {
2505
2599
  * Hobby+: full data. Free tier: redacted.
2506
2600
  */
2507
2601
  getOddsClosing(sport: string, eventId: number | string, options?: GetOddsClosingOptions): Promise<OddsClosingResponse>;
2602
+ /**
2603
+ * Order-book depth history for one event on the exchanges (Kalshi,
2604
+ * Polymarket, Polymarket US, ProphetX): every recorded change of an
2605
+ * outcome's best price, takeable size and the levels beyond it. Recorded
2606
+ * from 2026-11-10. Paged: pass `next_from` back as `from`.
2607
+ *
2608
+ * Hobby+: full data. Free tier: redacted.
2609
+ */
2610
+ getDepthHistory(sport: string, eventId: number | string, options?: GetDepthHistoryOptions): Promise<DepthHistoryResponse>;
2508
2611
  /** Get game scores and status (free tier). */
2509
2612
  getScores(sport: string, options?: GetScoresOptions): Promise<ScoreEvent[]>;
2510
2613
  /**
@@ -2829,6 +2932,14 @@ declare class PropLine {
2829
2932
  * ```
2830
2933
  */
2831
2934
  getEventBestLine(sport: string, eventId: number | string, options?: GetEventBestLineOptions): Promise<EventBestLineResponse>;
2935
+ /**
2936
+ * One bet-slip link that puts several legs on a book's slip. Pass
2937
+ * PropLine outcome ids (`outcome_id` on best-line price rows with
2938
+ * `includeLinks: true`), 1-12, all at one book: DraftKings, FanDuel or
2939
+ * Fanatics. The link loads the legs; the book may still refuse the
2940
+ * combination. No prices; every tier.
2941
+ */
2942
+ getParlayLink(outcomeIds: Array<number | string> | string): Promise<ParlayLinkResponse>;
2832
2943
  /**
2833
2944
  * Calculate EV% for a user-supplied price against the event's
2834
2945
  * no-vig fair anchor. Useful for books PropLine doesn't carry —
@@ -3140,6 +3251,6 @@ declare const Bookmakers: {
3140
3251
  readonly PRIZEPICKS: "prizepicks";
3141
3252
  };
3142
3253
  type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
3143
- declare const VERSION = "0.74.0";
3254
+ declare const VERSION = "0.76.0";
3144
3255
 
3145
- export { AuthError, type BestLine, type BestLineSide, type BestPrice, type BookAccuracyOptions, type BookAccuracyReport, type BookAccuracyRow, type Bookmaker, type BookmakerKey, Bookmakers, type CalcEventEvOptions, type ClosingBookmaker, type ClosingMarket, type ClosingOutcome, type ClvBetInput, type ClvGradeResponse, type ClvGradedBet, type ClvSummary, type ContextResponse, type CreateWebhookOptions, type DepthLevel, type DfsPayoutTier, type DfsPayoutsResponse, type DfsPlayPayout, type EvLine, type EvOutcome, type EvWebhookPayload, type Event, type EventBestLineResponse, type EventEvCalcResponse, type EventEvResponse, type EventIds, type EventIdsBook, type EventProjectionsResponse, type ExportOddsHistoryOptions, type ExportResolvedPropsOptions, type FuturesEvent, type FuturesMarket, type FuturesOutcome, type GetDfsPayoutsOptions, type GetEventBestLineOptions, type GetEventEvOptions, type GetEventProjectionsOptions, type GetMlbGrandSalamiOptions, type GetMovementOptions, type GetNhlDailyGoalsTotalOptions, type GetOddsClosingOptions, type GetOddsHistoryOptions, type GetOddsOptions, type GetPlayerGamesOptions, type GetPlayerHistoryOptions, type GetPlayerTrendsOptions, type GetResultsOptions, type GetScoresOptions, type GetStatsOptions, type GolfRound, type GolfRoundSplit, type GolfRoundsOptions, type GolfRoundsResponse, type GolfTournament, type GolfTournamentsOptions, type HistoryCoverageBook, type HistoryCoverageResponse, type HitRateSplit, type IdLookupResponse, type InjuredPlayer, type InjuryHistory, type InjuryHistoryOptions, type InjuryReport, type InjuryReportOptions, type InjuryStatusChange, type InjuryStatusCode, type LineMovementPrice, type LineMovementWebhookPayload, type LineType, type ListWebhookDeliveriesOptions, type Market, type MarketCoverageBook, type MarketCoverageEntry, type MarketCoverageOptions, type MarketCoverageResponse, type MarketSummary, type MlbGrandSalamiBook, type MlbGrandSalamiResponse, type MovementBookmaker, type MovementMarket, type MovementOutcome, type MovementResponse, type NhlDailyGoalsTotalBook, type NhlDailyGoalsTotalResponse, type OddsClosingResponse, type OddsHistoryBookmaker, type OddsHistoryMarket, type OddsHistoryOutcome, type OddsHistoryResponse, type OddsResponse, type Outcome, type OutcomeSnapshot, type ParlayLegInput, type ParlayLegPriced, type ParlayPriceResponse, type PeriodFilter, type PlayerGame, type PlayerGameLog, type PlayerHistoryEntry, type PlayerHistoryResponse, type PlayerMarketTrend, type PlayerSearchResponse, type PlayerSearchResult, type PlayerStat, type PlayerTrends, type ProjectionRow, PropLine, PropLineError, type PropLineErrorInfo, type PropLineOptions, type QuotaStatus, RateLimitError, type RefereeMatch, type RefereeMatchesOptions, type RefereeMatchesResponse, type RefereeNextMatch, type RefereeSummary, type RefereesOptions, type RefereesResponse, type ReplayEvent, type ReplayPage, type ReplayWebhookEventsOptions, type ResolutionSummary, type ResolutionSummaryMarket, type ResolutionSummarySport, type ResolvedOutcome, type ResultsMarket, type ResultsResponse, type ScoreEvent, type SearchPlayersOptions, type SettleBetInput, type SettleLegInput, type SettleResponse, type SettleResult, type SettledBet, type SettledLeg, type SgpBookError, type SgpLegInput, type SgpLegQuote, type SgpMultiQuoteResponse, type SgpQuoteResponse, type Sport, type StatsResponse, type SteamMove, type SteamWebhookPayload, type StreamHeartbeat, type StreamHeartbeatBook, type StreamOptions, type TrendLastGame, type TrendStreak, type UpdateWebhookOptions, VERSION, type VerifySignatureOptions, type WeatherInfo, type Webhook, type WebhookDelivery, type WebhookEventType };
3256
+ export { AuthError, type BestLine, type BestLineSide, type BestPrice, type BookAccuracyOptions, type BookAccuracyReport, type BookAccuracyRow, type Bookmaker, type BookmakerKey, Bookmakers, type CalcEventEvOptions, type ClosingBookmaker, type ClosingMarket, type ClosingOutcome, type ClvBetInput, type ClvGradeResponse, type ClvGradedBet, type ClvSummary, type ContextResponse, type CreateWebhookOptions, type DepthHistoryLevel, type DepthHistoryResponse, type DepthLevel, type DepthSnapshot, type DfsPayoutTier, type DfsPayoutsResponse, type DfsPlayPayout, type EvLine, type EvOutcome, type EvWebhookPayload, type Event, type EventBestLineResponse, type EventEvCalcResponse, type EventEvResponse, type EventIds, type EventIdsBook, type EventProjectionsResponse, type ExportOddsHistoryOptions, type ExportResolvedPropsOptions, type FuturesEvent, type FuturesMarket, type FuturesOutcome, type GetDepthHistoryOptions, type GetDfsPayoutsOptions, type GetEventBestLineOptions, type GetEventEvOptions, type GetEventProjectionsOptions, type GetMlbGrandSalamiOptions, type GetMovementOptions, type GetNhlDailyGoalsTotalOptions, type GetOddsClosingOptions, type GetOddsHistoryOptions, type GetOddsOptions, type GetPlayerGamesOptions, type GetPlayerHistoryOptions, type GetPlayerTrendsOptions, type GetResultsOptions, type GetScoresOptions, type GetStatsOptions, type GolfRound, type GolfRoundSplit, type GolfRoundsOptions, type GolfRoundsResponse, type GolfTournament, type GolfTournamentsOptions, type HistoryCoverageBook, type HistoryCoverageResponse, type HitRateSplit, type IdLookupResponse, type InjuredPlayer, type InjuryHistory, type InjuryHistoryOptions, type InjuryReport, type InjuryReportOptions, type InjuryStatusChange, type InjuryStatusCode, type LineMovementPrice, type LineMovementWebhookPayload, type LineType, type ListWebhookDeliveriesOptions, type Market, type MarketCoverageBook, type MarketCoverageEntry, type MarketCoverageOptions, type MarketCoverageResponse, type MarketSummary, type MlbGrandSalamiBook, type MlbGrandSalamiResponse, type MovementBookmaker, type MovementMarket, type MovementOutcome, type MovementResponse, type NhlDailyGoalsTotalBook, type NhlDailyGoalsTotalResponse, type OddsClosingResponse, type OddsHistoryBookmaker, type OddsHistoryMarket, type OddsHistoryOutcome, type OddsHistoryResponse, type OddsResponse, type Outcome, type OutcomeSnapshot, type ParlayLegInput, type ParlayLegPriced, type ParlayLinkLeg, type ParlayLinkResponse, type ParlayPriceResponse, type PeriodFilter, type PlayerGame, type PlayerGameLog, type PlayerHistoryEntry, type PlayerHistoryResponse, type PlayerMarketTrend, type PlayerSearchResponse, type PlayerSearchResult, type PlayerStat, type PlayerTrends, type ProjectionRow, PropLine, PropLineError, type PropLineErrorInfo, type PropLineOptions, type QuotaStatus, RateLimitError, type RefereeMatch, type RefereeMatchesOptions, type RefereeMatchesResponse, type RefereeNextMatch, type RefereeSummary, type RefereesOptions, type RefereesResponse, type ReplayEvent, type ReplayPage, type ReplayWebhookEventsOptions, type ResolutionSummary, type ResolutionSummaryMarket, type ResolutionSummarySport, type ResolvedOutcome, type ResultsMarket, type ResultsResponse, type ScoreEvent, type SearchPlayersOptions, type SettleBetInput, type SettleLegInput, type SettleResponse, type SettleResult, type SettledBet, type SettledLeg, type SgpBookError, type SgpLegInput, type SgpLegQuote, type SgpMultiQuoteResponse, type SgpQuoteResponse, type Sport, type StatsResponse, type SteamMove, type SteamWebhookPayload, type StreamHeartbeat, type StreamHeartbeatBook, type StreamOptions, type TrendLastGame, type TrendStreak, type UpdateWebhookOptions, VERSION, type VerifySignatureOptions, type WeatherInfo, type Webhook, type WebhookDelivery, type WebhookEventType };
package/dist/index.js CHANGED
@@ -252,6 +252,31 @@ var PropLine = class {
252
252
  { params }
253
253
  );
254
254
  }
255
+ /**
256
+ * Order-book depth history for one event on the exchanges (Kalshi,
257
+ * Polymarket, Polymarket US, ProphetX): every recorded change of an
258
+ * outcome's best price, takeable size and the levels beyond it. Recorded
259
+ * from 2026-11-10. Paged: pass `next_from` back as `from`.
260
+ *
261
+ * Hobby+: full data. Free tier: redacted.
262
+ */
263
+ getDepthHistory(sport, eventId, options = {}) {
264
+ const params = {};
265
+ if (options.markets?.length) params.markets = options.markets.join(",");
266
+ const books = _bookmakersParam(options.bookmakers);
267
+ if (books !== void 0) params.bookmakers = books;
268
+ const per = _periodParam(options.period);
269
+ if (per !== void 0) params.period = per;
270
+ if (options.from) params.from = options.from;
271
+ if (options.to) params.to = options.to;
272
+ if (options.interval) params.interval = options.interval;
273
+ if (options.limit !== void 0) params.limit = String(options.limit);
274
+ return this._request(
275
+ "GET",
276
+ `/sports/${encodeURIComponent(sport)}/events/${encodeURIComponent(String(eventId))}/odds/depth/history`,
277
+ { params }
278
+ );
279
+ }
255
280
  /** Get game scores and status (free tier). */
256
281
  getScores(sport, options = {}) {
257
282
  return this._request(
@@ -827,6 +852,19 @@ var PropLine = class {
827
852
  { params }
828
853
  );
829
854
  }
855
+ /**
856
+ * One bet-slip link that puts several legs on a book's slip. Pass
857
+ * PropLine outcome ids (`outcome_id` on best-line price rows with
858
+ * `includeLinks: true`), 1-12, all at one book: DraftKings, FanDuel or
859
+ * Fanatics. The link loads the legs; the book may still refuse the
860
+ * combination. No prices; every tier.
861
+ */
862
+ getParlayLink(outcomeIds) {
863
+ const ids = Array.isArray(outcomeIds) ? outcomeIds.join(",") : outcomeIds;
864
+ return this._request("GET", "/bet-links/parlay", {
865
+ params: { outcome_ids: ids }
866
+ });
867
+ }
830
868
  /**
831
869
  * Calculate EV% for a user-supplied price against the event's
832
870
  * no-vig fair anchor. Useful for books PropLine doesn't carry —
@@ -1303,7 +1341,7 @@ var Bookmakers = {
1303
1341
  POLYMARKET: "polymarket",
1304
1342
  PRIZEPICKS: "prizepicks"
1305
1343
  };
1306
- var VERSION = "0.74.0";
1344
+ var VERSION = "0.76.0";
1307
1345
  export {
1308
1346
  AuthError,
1309
1347
  Bookmakers,