propline 0.58.0 → 0.60.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 +17 -0
- package/dist/index.cjs +13 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -2
- package/dist/index.d.ts +48 -2
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -571,6 +571,29 @@ 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
|
+
}
|
|
574
597
|
/** One book's row in the sportsbook accuracy report. */
|
|
575
598
|
interface BookAccuracyRow {
|
|
576
599
|
key: string;
|
|
@@ -1023,6 +1046,8 @@ interface EvOutcome {
|
|
|
1023
1046
|
/** Expected value as a percent on a unit stake. Positive = +EV. */
|
|
1024
1047
|
ev_pct: number;
|
|
1025
1048
|
is_plus_ev: boolean;
|
|
1049
|
+
/** When this book last delivered the market (ISO time), or null. */
|
|
1050
|
+
last_update?: string | null;
|
|
1026
1051
|
[k: string]: unknown;
|
|
1027
1052
|
}
|
|
1028
1053
|
interface EvLine {
|
|
@@ -1035,6 +1060,8 @@ interface EvLine {
|
|
|
1035
1060
|
fair_source: string;
|
|
1036
1061
|
/** Map of outcome name → normalized fair probability. */
|
|
1037
1062
|
fair_probs: Record<string, number>;
|
|
1063
|
+
/** Book keys used for a `consensus` fair line; null otherwise. */
|
|
1064
|
+
fair_books?: string[] | null;
|
|
1038
1065
|
outcomes: EvOutcome[];
|
|
1039
1066
|
[k: string]: unknown;
|
|
1040
1067
|
}
|
|
@@ -1707,8 +1734,20 @@ interface GetEventEvOptions {
|
|
|
1707
1734
|
* line, from `pinnacle`, `polymarket`, `kalshi`, `bovada`, `smarkets`.
|
|
1708
1735
|
* A line none of them anchors is dropped; any other value is a 400.
|
|
1709
1736
|
* Omit for the default order.
|
|
1737
|
+
*
|
|
1738
|
+
* The single value `"consensus"` (cannot be combined with book names)
|
|
1739
|
+
* uses the median no-vig probability across every book quoting a clean,
|
|
1740
|
+
* fresh two-sided market (3+ books; BetOnline/LowVig and BetRivers/Unibet
|
|
1741
|
+
* count once). Each line then lists the books used in `fair_books`.
|
|
1742
|
+
* Opt-in; not a proven better anchor.
|
|
1710
1743
|
*/
|
|
1711
1744
|
fairSource?: string | string[];
|
|
1745
|
+
/**
|
|
1746
|
+
* Seconds (>= 0). Drops quoted prices the book has not delivered within
|
|
1747
|
+
* that many seconds (see each outcome's `last_update`). The fair line is
|
|
1748
|
+
* unaffected. Sent as `max_age`.
|
|
1749
|
+
*/
|
|
1750
|
+
maxAge?: number;
|
|
1712
1751
|
}
|
|
1713
1752
|
interface GetEventBestLineOptions {
|
|
1714
1753
|
/**
|
|
@@ -2029,6 +2068,13 @@ declare class PropLine {
|
|
|
2029
2068
|
* the market average; `margin_pct` = the book's average overround.
|
|
2030
2069
|
* A pricing report, never a profit claim.
|
|
2031
2070
|
*/
|
|
2071
|
+
/**
|
|
2072
|
+
* Event id crosswalk (free tier): one object per event from 3 days ago
|
|
2073
|
+
* to 30 days ahead, with the ids needed to join PropLine events onto
|
|
2074
|
+
* ESPN (`espn_event_id`), the MLB Stats API (`mlb_game_pk`) and each
|
|
2075
|
+
* sportsbook's own event id + link (`books`).
|
|
2076
|
+
*/
|
|
2077
|
+
getEventIds(sport: string): Promise<EventIds[]>;
|
|
2032
2078
|
getBookAccuracy(options?: BookAccuracyOptions): Promise<BookAccuracyReport>;
|
|
2033
2079
|
/**
|
|
2034
2080
|
* Get raw player/team box-score stats (book-agnostic, free tier).
|
|
@@ -2517,6 +2563,6 @@ declare const Bookmakers: {
|
|
|
2517
2563
|
readonly PRIZEPICKS: "prizepicks";
|
|
2518
2564
|
};
|
|
2519
2565
|
type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
|
|
2520
|
-
declare const VERSION = "0.
|
|
2566
|
+
declare const VERSION = "0.60.0";
|
|
2521
2567
|
|
|
2522
|
-
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 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 };
|
|
2568
|
+
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,29 @@ 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
|
+
}
|
|
574
597
|
/** One book's row in the sportsbook accuracy report. */
|
|
575
598
|
interface BookAccuracyRow {
|
|
576
599
|
key: string;
|
|
@@ -1023,6 +1046,8 @@ interface EvOutcome {
|
|
|
1023
1046
|
/** Expected value as a percent on a unit stake. Positive = +EV. */
|
|
1024
1047
|
ev_pct: number;
|
|
1025
1048
|
is_plus_ev: boolean;
|
|
1049
|
+
/** When this book last delivered the market (ISO time), or null. */
|
|
1050
|
+
last_update?: string | null;
|
|
1026
1051
|
[k: string]: unknown;
|
|
1027
1052
|
}
|
|
1028
1053
|
interface EvLine {
|
|
@@ -1035,6 +1060,8 @@ interface EvLine {
|
|
|
1035
1060
|
fair_source: string;
|
|
1036
1061
|
/** Map of outcome name → normalized fair probability. */
|
|
1037
1062
|
fair_probs: Record<string, number>;
|
|
1063
|
+
/** Book keys used for a `consensus` fair line; null otherwise. */
|
|
1064
|
+
fair_books?: string[] | null;
|
|
1038
1065
|
outcomes: EvOutcome[];
|
|
1039
1066
|
[k: string]: unknown;
|
|
1040
1067
|
}
|
|
@@ -1707,8 +1734,20 @@ interface GetEventEvOptions {
|
|
|
1707
1734
|
* line, from `pinnacle`, `polymarket`, `kalshi`, `bovada`, `smarkets`.
|
|
1708
1735
|
* A line none of them anchors is dropped; any other value is a 400.
|
|
1709
1736
|
* Omit for the default order.
|
|
1737
|
+
*
|
|
1738
|
+
* The single value `"consensus"` (cannot be combined with book names)
|
|
1739
|
+
* uses the median no-vig probability across every book quoting a clean,
|
|
1740
|
+
* fresh two-sided market (3+ books; BetOnline/LowVig and BetRivers/Unibet
|
|
1741
|
+
* count once). Each line then lists the books used in `fair_books`.
|
|
1742
|
+
* Opt-in; not a proven better anchor.
|
|
1710
1743
|
*/
|
|
1711
1744
|
fairSource?: string | string[];
|
|
1745
|
+
/**
|
|
1746
|
+
* Seconds (>= 0). Drops quoted prices the book has not delivered within
|
|
1747
|
+
* that many seconds (see each outcome's `last_update`). The fair line is
|
|
1748
|
+
* unaffected. Sent as `max_age`.
|
|
1749
|
+
*/
|
|
1750
|
+
maxAge?: number;
|
|
1712
1751
|
}
|
|
1713
1752
|
interface GetEventBestLineOptions {
|
|
1714
1753
|
/**
|
|
@@ -2029,6 +2068,13 @@ declare class PropLine {
|
|
|
2029
2068
|
* the market average; `margin_pct` = the book's average overround.
|
|
2030
2069
|
* A pricing report, never a profit claim.
|
|
2031
2070
|
*/
|
|
2071
|
+
/**
|
|
2072
|
+
* Event id crosswalk (free tier): one object per event from 3 days ago
|
|
2073
|
+
* to 30 days ahead, with the ids needed to join PropLine events onto
|
|
2074
|
+
* ESPN (`espn_event_id`), the MLB Stats API (`mlb_game_pk`) and each
|
|
2075
|
+
* sportsbook's own event id + link (`books`).
|
|
2076
|
+
*/
|
|
2077
|
+
getEventIds(sport: string): Promise<EventIds[]>;
|
|
2032
2078
|
getBookAccuracy(options?: BookAccuracyOptions): Promise<BookAccuracyReport>;
|
|
2033
2079
|
/**
|
|
2034
2080
|
* Get raw player/team box-score stats (book-agnostic, free tier).
|
|
@@ -2517,6 +2563,6 @@ declare const Bookmakers: {
|
|
|
2517
2563
|
readonly PRIZEPICKS: "prizepicks";
|
|
2518
2564
|
};
|
|
2519
2565
|
type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
|
|
2520
|
-
declare const VERSION = "0.
|
|
2566
|
+
declare const VERSION = "0.60.0";
|
|
2521
2567
|
|
|
2522
|
-
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 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 };
|
|
2568
|
+
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
|
@@ -334,6 +334,15 @@ var PropLine = class {
|
|
|
334
334
|
* the market average; `margin_pct` = the book's average overround.
|
|
335
335
|
* A pricing report, never a profit claim.
|
|
336
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
|
+
}
|
|
337
346
|
getBookAccuracy(options = {}) {
|
|
338
347
|
const params = { days: String(options.days ?? 30) };
|
|
339
348
|
if (options.sport) params.sport = options.sport;
|
|
@@ -633,6 +642,9 @@ var PropLine = class {
|
|
|
633
642
|
if (options.fairSource) {
|
|
634
643
|
params.fair_source = Array.isArray(options.fairSource) ? options.fairSource.join(",") : options.fairSource;
|
|
635
644
|
}
|
|
645
|
+
if (options.maxAge !== void 0 && options.maxAge !== null) {
|
|
646
|
+
params.max_age = String(options.maxAge);
|
|
647
|
+
}
|
|
636
648
|
return this._request(
|
|
637
649
|
"GET",
|
|
638
650
|
`/sports/${encodeURIComponent(sport)}/events/${encodeURIComponent(String(eventId))}/ev`,
|
|
@@ -1126,7 +1138,7 @@ var Bookmakers = {
|
|
|
1126
1138
|
POLYMARKET: "polymarket",
|
|
1127
1139
|
PRIZEPICKS: "prizepicks"
|
|
1128
1140
|
};
|
|
1129
|
-
var VERSION = "0.
|
|
1141
|
+
var VERSION = "0.60.0";
|
|
1130
1142
|
export {
|
|
1131
1143
|
AuthError,
|
|
1132
1144
|
Bookmakers,
|