propline 0.57.0 → 0.59.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
@@ -571,6 +571,65 @@ interface ResolutionSummary {
571
571
  top_markets: ResolutionSummaryMarket[];
572
572
  [k: string]: unknown;
573
573
  }
574
+ /** One book's own ids for an event in the id crosswalk. */
575
+ interface EventIdsBook {
576
+ event_id: string | null;
577
+ link: string | null;
578
+ [k: string]: unknown;
579
+ }
580
+ /** One event in GET /v1/sports/{sport}/ids — the id crosswalk. */
581
+ interface EventIds {
582
+ id: string;
583
+ commence_time: string;
584
+ home_team: string;
585
+ away_team: string;
586
+ home_team_key: string | null;
587
+ away_team_key: string | null;
588
+ home_team_id: string | null;
589
+ away_team_id: string | null;
590
+ espn_event_id: string | null;
591
+ mlb_game_pk: number | null;
592
+ merged_from_event_ids: string[] | null;
593
+ /** Keyed by bookmaker_key. */
594
+ books: Record<string, EventIdsBook>;
595
+ [k: string]: unknown;
596
+ }
597
+ /** One book's row in the sportsbook accuracy report. */
598
+ interface BookAccuracyRow {
599
+ key: string;
600
+ title: string;
601
+ /** Graded props scored for this book. */
602
+ props: number;
603
+ /** Brier score of the book's de-vigged closing prices (lower = better). */
604
+ brier: number;
605
+ /** Brier score of the other books' consensus on the same lines. */
606
+ consensus_brier: number;
607
+ /** Skill vs the market in basis points; > 0 = closer to the result. */
608
+ skill_bp: number;
609
+ /** 95% confidence interval for skill_bp. */
610
+ skill_ci95_bp: [number, number];
611
+ verdict: "beats_market" | "trails_market" | "in_line";
612
+ /** The book's average overround, in percent. */
613
+ margin_pct: number;
614
+ [k: string]: unknown;
615
+ }
616
+ /** Response of GET /v1/books/accuracy. A pricing report, not a profit claim. */
617
+ interface BookAccuracyReport {
618
+ days: number;
619
+ sport: string | null;
620
+ method: string;
621
+ total_props: number;
622
+ books: BookAccuracyRow[];
623
+ by_sport: Record<string, BookAccuracyRow[]>;
624
+ by_market: Record<string, BookAccuracyRow[]>;
625
+ [k: string]: unknown;
626
+ }
627
+ interface BookAccuracyOptions {
628
+ /** Look-back window, 7-120 (default 30). */
629
+ days?: number;
630
+ /** Optional sport key, e.g. "baseball_mlb". */
631
+ sport?: string;
632
+ }
574
633
  interface PlayerStat {
575
634
  player_name: string;
576
635
  team_abbr: string;
@@ -1986,6 +2045,21 @@ declare class PropLine {
1986
2045
  * @param days Look-back window, 1-90 (default 30).
1987
2046
  */
1988
2047
  getResolutionSummary(days?: number): Promise<ResolutionSummary>;
2048
+ /**
2049
+ * Sportsbook accuracy report (free tier): each book's closing player-prop
2050
+ * prices, de-vigged and scored against the real result and against the
2051
+ * other books on the same line. `skill_bp` > 0 = closer to the result than
2052
+ * the market average; `margin_pct` = the book's average overround.
2053
+ * A pricing report, never a profit claim.
2054
+ */
2055
+ /**
2056
+ * Event id crosswalk (free tier): one object per event from 3 days ago
2057
+ * to 30 days ahead, with the ids needed to join PropLine events onto
2058
+ * ESPN (`espn_event_id`), the MLB Stats API (`mlb_game_pk`) and each
2059
+ * sportsbook's own event id + link (`books`).
2060
+ */
2061
+ getEventIds(sport: string): Promise<EventIds[]>;
2062
+ getBookAccuracy(options?: BookAccuracyOptions): Promise<BookAccuracyReport>;
1989
2063
  /**
1990
2064
  * Get raw player/team box-score stats (book-agnostic, free tier).
1991
2065
  *
@@ -2473,6 +2547,6 @@ declare const Bookmakers: {
2473
2547
  readonly PRIZEPICKS: "prizepicks";
2474
2548
  };
2475
2549
  type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
2476
- declare const VERSION = "0.57.0";
2550
+ declare const VERSION = "0.59.0";
2477
2551
 
2478
- export { AuthError, type BestLine, type BestLineSide, type BestPrice, 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 Event, type EventBestLineResponse, type EventEvCalcResponse, type EventEvResponse, 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 HitRateSplit, type LineMovementPrice, type LineMovementWebhookPayload, type ListWebhookDeliveriesOptions, type Market, 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 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 ReplayEvent, type ReplayPage, type ReplayWebhookEventsOptions, type ResolutionSummary, type ResolutionSummaryMarket, type ResolutionSummarySport, type ResolvedOutcome, type ResultsMarket, type ResultsResponse, type ScoreEvent, type SearchPlayersOptions, type SgpBookError, type SgpLegInput, type SgpLegQuote, type SgpMultiQuoteResponse, type SgpQuoteResponse, type Sport, type StatsResponse, type SteamMove, type SteamWebhookPayload, type StreamOptions, type TrendLastGame, type TrendStreak, type UpdateWebhookOptions, VERSION, type VerifySignatureOptions, type WeatherInfo, type Webhook, type WebhookDelivery, type WebhookEventType };
2552
+ 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 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 HitRateSplit, type LineMovementPrice, type LineMovementWebhookPayload, type ListWebhookDeliveriesOptions, type Market, 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 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 ReplayEvent, type ReplayPage, type ReplayWebhookEventsOptions, type ResolutionSummary, type ResolutionSummaryMarket, type ResolutionSummarySport, type ResolvedOutcome, type ResultsMarket, type ResultsResponse, type ScoreEvent, type SearchPlayersOptions, type SgpBookError, type SgpLegInput, type SgpLegQuote, type SgpMultiQuoteResponse, type SgpQuoteResponse, type Sport, type StatsResponse, type SteamMove, type SteamWebhookPayload, 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
@@ -571,6 +571,65 @@ interface ResolutionSummary {
571
571
  top_markets: ResolutionSummaryMarket[];
572
572
  [k: string]: unknown;
573
573
  }
574
+ /** One book's own ids for an event in the id crosswalk. */
575
+ interface EventIdsBook {
576
+ event_id: string | null;
577
+ link: string | null;
578
+ [k: string]: unknown;
579
+ }
580
+ /** One event in GET /v1/sports/{sport}/ids — the id crosswalk. */
581
+ interface EventIds {
582
+ id: string;
583
+ commence_time: string;
584
+ home_team: string;
585
+ away_team: string;
586
+ home_team_key: string | null;
587
+ away_team_key: string | null;
588
+ home_team_id: string | null;
589
+ away_team_id: string | null;
590
+ espn_event_id: string | null;
591
+ mlb_game_pk: number | null;
592
+ merged_from_event_ids: string[] | null;
593
+ /** Keyed by bookmaker_key. */
594
+ books: Record<string, EventIdsBook>;
595
+ [k: string]: unknown;
596
+ }
597
+ /** One book's row in the sportsbook accuracy report. */
598
+ interface BookAccuracyRow {
599
+ key: string;
600
+ title: string;
601
+ /** Graded props scored for this book. */
602
+ props: number;
603
+ /** Brier score of the book's de-vigged closing prices (lower = better). */
604
+ brier: number;
605
+ /** Brier score of the other books' consensus on the same lines. */
606
+ consensus_brier: number;
607
+ /** Skill vs the market in basis points; > 0 = closer to the result. */
608
+ skill_bp: number;
609
+ /** 95% confidence interval for skill_bp. */
610
+ skill_ci95_bp: [number, number];
611
+ verdict: "beats_market" | "trails_market" | "in_line";
612
+ /** The book's average overround, in percent. */
613
+ margin_pct: number;
614
+ [k: string]: unknown;
615
+ }
616
+ /** Response of GET /v1/books/accuracy. A pricing report, not a profit claim. */
617
+ interface BookAccuracyReport {
618
+ days: number;
619
+ sport: string | null;
620
+ method: string;
621
+ total_props: number;
622
+ books: BookAccuracyRow[];
623
+ by_sport: Record<string, BookAccuracyRow[]>;
624
+ by_market: Record<string, BookAccuracyRow[]>;
625
+ [k: string]: unknown;
626
+ }
627
+ interface BookAccuracyOptions {
628
+ /** Look-back window, 7-120 (default 30). */
629
+ days?: number;
630
+ /** Optional sport key, e.g. "baseball_mlb". */
631
+ sport?: string;
632
+ }
574
633
  interface PlayerStat {
575
634
  player_name: string;
576
635
  team_abbr: string;
@@ -1986,6 +2045,21 @@ declare class PropLine {
1986
2045
  * @param days Look-back window, 1-90 (default 30).
1987
2046
  */
1988
2047
  getResolutionSummary(days?: number): Promise<ResolutionSummary>;
2048
+ /**
2049
+ * Sportsbook accuracy report (free tier): each book's closing player-prop
2050
+ * prices, de-vigged and scored against the real result and against the
2051
+ * other books on the same line. `skill_bp` > 0 = closer to the result than
2052
+ * the market average; `margin_pct` = the book's average overround.
2053
+ * A pricing report, never a profit claim.
2054
+ */
2055
+ /**
2056
+ * Event id crosswalk (free tier): one object per event from 3 days ago
2057
+ * to 30 days ahead, with the ids needed to join PropLine events onto
2058
+ * ESPN (`espn_event_id`), the MLB Stats API (`mlb_game_pk`) and each
2059
+ * sportsbook's own event id + link (`books`).
2060
+ */
2061
+ getEventIds(sport: string): Promise<EventIds[]>;
2062
+ getBookAccuracy(options?: BookAccuracyOptions): Promise<BookAccuracyReport>;
1989
2063
  /**
1990
2064
  * Get raw player/team box-score stats (book-agnostic, free tier).
1991
2065
  *
@@ -2473,6 +2547,6 @@ declare const Bookmakers: {
2473
2547
  readonly PRIZEPICKS: "prizepicks";
2474
2548
  };
2475
2549
  type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
2476
- declare const VERSION = "0.57.0";
2550
+ declare const VERSION = "0.59.0";
2477
2551
 
2478
- export { AuthError, type BestLine, type BestLineSide, type BestPrice, 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 Event, type EventBestLineResponse, type EventEvCalcResponse, type EventEvResponse, 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 HitRateSplit, type LineMovementPrice, type LineMovementWebhookPayload, type ListWebhookDeliveriesOptions, type Market, 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 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 ReplayEvent, type ReplayPage, type ReplayWebhookEventsOptions, type ResolutionSummary, type ResolutionSummaryMarket, type ResolutionSummarySport, type ResolvedOutcome, type ResultsMarket, type ResultsResponse, type ScoreEvent, type SearchPlayersOptions, type SgpBookError, type SgpLegInput, type SgpLegQuote, type SgpMultiQuoteResponse, type SgpQuoteResponse, type Sport, type StatsResponse, type SteamMove, type SteamWebhookPayload, type StreamOptions, type TrendLastGame, type TrendStreak, type UpdateWebhookOptions, VERSION, type VerifySignatureOptions, type WeatherInfo, type Webhook, type WebhookDelivery, type WebhookEventType };
2552
+ 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 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 HitRateSplit, type LineMovementPrice, type LineMovementWebhookPayload, type ListWebhookDeliveriesOptions, type Market, 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 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 ReplayEvent, type ReplayPage, type ReplayWebhookEventsOptions, type ResolutionSummary, type ResolutionSummaryMarket, type ResolutionSummarySport, type ResolvedOutcome, type ResultsMarket, type ResultsResponse, type ScoreEvent, type SearchPlayersOptions, type SgpBookError, type SgpLegInput, type SgpLegQuote, type SgpMultiQuoteResponse, type SgpQuoteResponse, type Sport, type StatsResponse, type SteamMove, type SteamWebhookPayload, type StreamOptions, type TrendLastGame, type TrendStreak, type UpdateWebhookOptions, VERSION, type VerifySignatureOptions, type WeatherInfo, type Webhook, type WebhookDelivery, type WebhookEventType };
package/dist/index.js CHANGED
@@ -327,6 +327,27 @@ var PropLine = class {
327
327
  { params: { days: String(days) } }
328
328
  );
329
329
  }
330
+ /**
331
+ * Sportsbook accuracy report (free tier): each book's closing player-prop
332
+ * prices, de-vigged and scored against the real result and against the
333
+ * other books on the same line. `skill_bp` > 0 = closer to the result than
334
+ * the market average; `margin_pct` = the book's average overround.
335
+ * A pricing report, never a profit claim.
336
+ */
337
+ /**
338
+ * Event id crosswalk (free tier): one object per event from 3 days ago
339
+ * to 30 days ahead, with the ids needed to join PropLine events onto
340
+ * ESPN (`espn_event_id`), the MLB Stats API (`mlb_game_pk`) and each
341
+ * sportsbook's own event id + link (`books`).
342
+ */
343
+ getEventIds(sport) {
344
+ return this._request("GET", `/sports/${encodeURIComponent(sport)}/ids`);
345
+ }
346
+ getBookAccuracy(options = {}) {
347
+ const params = { days: String(options.days ?? 30) };
348
+ if (options.sport) params.sport = options.sport;
349
+ return this._request("GET", "/books/accuracy", { params });
350
+ }
330
351
  /**
331
352
  * Get raw player/team box-score stats (book-agnostic, free tier).
332
353
  *
@@ -1114,7 +1135,7 @@ var Bookmakers = {
1114
1135
  POLYMARKET: "polymarket",
1115
1136
  PRIZEPICKS: "prizepicks"
1116
1137
  };
1117
- var VERSION = "0.57.0";
1138
+ var VERSION = "0.59.0";
1118
1139
  export {
1119
1140
  AuthError,
1120
1141
  Bookmakers,