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 +16 -0
- package/dist/index.cjs +28 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +75 -2
- package/dist/index.d.ts +75 -2
- package/dist/index.js +28 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1698,6 +1698,58 @@ interface InjuryHistoryOptions {
|
|
|
1698
1698
|
/** Player name, case-insensitive substring. */
|
|
1699
1699
|
player?: string;
|
|
1700
1700
|
}
|
|
1701
|
+
/** One parlay leg for `priceParlay`. */
|
|
1702
|
+
interface ParlayLegInput {
|
|
1703
|
+
sport_key: string;
|
|
1704
|
+
event_id: number;
|
|
1705
|
+
market: string;
|
|
1706
|
+
selection: string;
|
|
1707
|
+
side?: string | null;
|
|
1708
|
+
point?: number | null;
|
|
1709
|
+
team?: string | null;
|
|
1710
|
+
price?: number | null;
|
|
1711
|
+
}
|
|
1712
|
+
interface ParlayLegPriced extends ParlayLegInput {
|
|
1713
|
+
matched: boolean;
|
|
1714
|
+
reason?: string | null;
|
|
1715
|
+
fair_prob?: number | null;
|
|
1716
|
+
fair_price?: number | null;
|
|
1717
|
+
fair_source?: string | null;
|
|
1718
|
+
best_price?: number | null;
|
|
1719
|
+
best_book?: string | null;
|
|
1720
|
+
ev_pct?: number | null;
|
|
1721
|
+
same_game: boolean;
|
|
1722
|
+
}
|
|
1723
|
+
interface ParlayPriceResponse {
|
|
1724
|
+
priced: boolean;
|
|
1725
|
+
reason?: string | null;
|
|
1726
|
+
fair_prob?: number | null;
|
|
1727
|
+
fair_price?: number | null;
|
|
1728
|
+
best_legs_price?: number | null;
|
|
1729
|
+
books: {
|
|
1730
|
+
bookmaker: string;
|
|
1731
|
+
price: number;
|
|
1732
|
+
ev_pct: number;
|
|
1733
|
+
}[];
|
|
1734
|
+
offered_price?: number | null;
|
|
1735
|
+
offered_ev_pct?: number | null;
|
|
1736
|
+
same_game: boolean;
|
|
1737
|
+
devig_method: string;
|
|
1738
|
+
legs: ParlayLegPriced[];
|
|
1739
|
+
redacted: boolean;
|
|
1740
|
+
upgrade_url?: string | null;
|
|
1741
|
+
}
|
|
1742
|
+
interface IdLookupResponse {
|
|
1743
|
+
events: Array<EventIds & {
|
|
1744
|
+
query: string;
|
|
1745
|
+
sport_key: string;
|
|
1746
|
+
status: string;
|
|
1747
|
+
completed: boolean;
|
|
1748
|
+
home_score: number | null;
|
|
1749
|
+
away_score: number | null;
|
|
1750
|
+
}>;
|
|
1751
|
+
not_found: string[];
|
|
1752
|
+
}
|
|
1701
1753
|
|
|
1702
1754
|
/** Options for {@link PropLineClient.getDfsPayouts}. */
|
|
1703
1755
|
interface GetDfsPayoutsOptions {
|
|
@@ -2387,6 +2439,17 @@ declare class PropLine {
|
|
|
2387
2439
|
* sportsbook's own event id + link (`books`).
|
|
2388
2440
|
*/
|
|
2389
2441
|
getEventIds(sport: string): Promise<EventIds[]>;
|
|
2442
|
+
/**
|
|
2443
|
+
* Find PropLine events from someone else's id (free tier). Pass exactly
|
|
2444
|
+
* one of `book` + `bookEventId` (a sportsbook's own event id),
|
|
2445
|
+
* `espnEventId` or `mlbGamePk`; arrays send up to 50.
|
|
2446
|
+
*/
|
|
2447
|
+
lookupEventIds(opts: {
|
|
2448
|
+
book?: string;
|
|
2449
|
+
bookEventId?: string | string[];
|
|
2450
|
+
espnEventId?: string | string[];
|
|
2451
|
+
mlbGamePk?: number | string | Array<number | string>;
|
|
2452
|
+
}): Promise<IdLookupResponse>;
|
|
2390
2453
|
getBookAccuracy(options?: BookAccuracyOptions): Promise<BookAccuracyReport>;
|
|
2391
2454
|
/**
|
|
2392
2455
|
* A golfer's completed rounds, newest first, plus last-5/10/20 averages.
|
|
@@ -2821,6 +2884,16 @@ declare class PropLine {
|
|
|
2821
2884
|
* console.log(res.bets[0].result); // "half_won"
|
|
2822
2885
|
*/
|
|
2823
2886
|
settleBets(bets: SettleBetInput[]): Promise<SettleResponse>;
|
|
2887
|
+
/**
|
|
2888
|
+
* Fair price of a parlay across games, from the same no-vig lines as
|
|
2889
|
+
* `getEventEv`, plus each book's price for the same legs and the EV% of
|
|
2890
|
+
* an offered `price`. Legs on one event are flagged `same_game` (the
|
|
2891
|
+
* fair price assumes independent legs). 2-15 legs. Hobby+.
|
|
2892
|
+
*/
|
|
2893
|
+
priceParlay(legs: ParlayLegInput[], options?: {
|
|
2894
|
+
price?: number;
|
|
2895
|
+
devig?: "multiplicative" | "shin";
|
|
2896
|
+
}): Promise<ParlayPriceResponse>;
|
|
2824
2897
|
/**
|
|
2825
2898
|
* Price a same-game parlay at the book's own correlated odds.
|
|
2826
2899
|
*
|
|
@@ -2915,6 +2988,6 @@ declare const Bookmakers: {
|
|
|
2915
2988
|
readonly PRIZEPICKS: "prizepicks";
|
|
2916
2989
|
};
|
|
2917
2990
|
type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
|
|
2918
|
-
declare const VERSION = "0.
|
|
2991
|
+
declare const VERSION = "0.70.0";
|
|
2919
2992
|
|
|
2920
|
-
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 HitRateSplit, 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 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 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 };
|
|
2993
|
+
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 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 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 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
|
@@ -1698,6 +1698,58 @@ interface InjuryHistoryOptions {
|
|
|
1698
1698
|
/** Player name, case-insensitive substring. */
|
|
1699
1699
|
player?: string;
|
|
1700
1700
|
}
|
|
1701
|
+
/** One parlay leg for `priceParlay`. */
|
|
1702
|
+
interface ParlayLegInput {
|
|
1703
|
+
sport_key: string;
|
|
1704
|
+
event_id: number;
|
|
1705
|
+
market: string;
|
|
1706
|
+
selection: string;
|
|
1707
|
+
side?: string | null;
|
|
1708
|
+
point?: number | null;
|
|
1709
|
+
team?: string | null;
|
|
1710
|
+
price?: number | null;
|
|
1711
|
+
}
|
|
1712
|
+
interface ParlayLegPriced extends ParlayLegInput {
|
|
1713
|
+
matched: boolean;
|
|
1714
|
+
reason?: string | null;
|
|
1715
|
+
fair_prob?: number | null;
|
|
1716
|
+
fair_price?: number | null;
|
|
1717
|
+
fair_source?: string | null;
|
|
1718
|
+
best_price?: number | null;
|
|
1719
|
+
best_book?: string | null;
|
|
1720
|
+
ev_pct?: number | null;
|
|
1721
|
+
same_game: boolean;
|
|
1722
|
+
}
|
|
1723
|
+
interface ParlayPriceResponse {
|
|
1724
|
+
priced: boolean;
|
|
1725
|
+
reason?: string | null;
|
|
1726
|
+
fair_prob?: number | null;
|
|
1727
|
+
fair_price?: number | null;
|
|
1728
|
+
best_legs_price?: number | null;
|
|
1729
|
+
books: {
|
|
1730
|
+
bookmaker: string;
|
|
1731
|
+
price: number;
|
|
1732
|
+
ev_pct: number;
|
|
1733
|
+
}[];
|
|
1734
|
+
offered_price?: number | null;
|
|
1735
|
+
offered_ev_pct?: number | null;
|
|
1736
|
+
same_game: boolean;
|
|
1737
|
+
devig_method: string;
|
|
1738
|
+
legs: ParlayLegPriced[];
|
|
1739
|
+
redacted: boolean;
|
|
1740
|
+
upgrade_url?: string | null;
|
|
1741
|
+
}
|
|
1742
|
+
interface IdLookupResponse {
|
|
1743
|
+
events: Array<EventIds & {
|
|
1744
|
+
query: string;
|
|
1745
|
+
sport_key: string;
|
|
1746
|
+
status: string;
|
|
1747
|
+
completed: boolean;
|
|
1748
|
+
home_score: number | null;
|
|
1749
|
+
away_score: number | null;
|
|
1750
|
+
}>;
|
|
1751
|
+
not_found: string[];
|
|
1752
|
+
}
|
|
1701
1753
|
|
|
1702
1754
|
/** Options for {@link PropLineClient.getDfsPayouts}. */
|
|
1703
1755
|
interface GetDfsPayoutsOptions {
|
|
@@ -2387,6 +2439,17 @@ declare class PropLine {
|
|
|
2387
2439
|
* sportsbook's own event id + link (`books`).
|
|
2388
2440
|
*/
|
|
2389
2441
|
getEventIds(sport: string): Promise<EventIds[]>;
|
|
2442
|
+
/**
|
|
2443
|
+
* Find PropLine events from someone else's id (free tier). Pass exactly
|
|
2444
|
+
* one of `book` + `bookEventId` (a sportsbook's own event id),
|
|
2445
|
+
* `espnEventId` or `mlbGamePk`; arrays send up to 50.
|
|
2446
|
+
*/
|
|
2447
|
+
lookupEventIds(opts: {
|
|
2448
|
+
book?: string;
|
|
2449
|
+
bookEventId?: string | string[];
|
|
2450
|
+
espnEventId?: string | string[];
|
|
2451
|
+
mlbGamePk?: number | string | Array<number | string>;
|
|
2452
|
+
}): Promise<IdLookupResponse>;
|
|
2390
2453
|
getBookAccuracy(options?: BookAccuracyOptions): Promise<BookAccuracyReport>;
|
|
2391
2454
|
/**
|
|
2392
2455
|
* A golfer's completed rounds, newest first, plus last-5/10/20 averages.
|
|
@@ -2821,6 +2884,16 @@ declare class PropLine {
|
|
|
2821
2884
|
* console.log(res.bets[0].result); // "half_won"
|
|
2822
2885
|
*/
|
|
2823
2886
|
settleBets(bets: SettleBetInput[]): Promise<SettleResponse>;
|
|
2887
|
+
/**
|
|
2888
|
+
* Fair price of a parlay across games, from the same no-vig lines as
|
|
2889
|
+
* `getEventEv`, plus each book's price for the same legs and the EV% of
|
|
2890
|
+
* an offered `price`. Legs on one event are flagged `same_game` (the
|
|
2891
|
+
* fair price assumes independent legs). 2-15 legs. Hobby+.
|
|
2892
|
+
*/
|
|
2893
|
+
priceParlay(legs: ParlayLegInput[], options?: {
|
|
2894
|
+
price?: number;
|
|
2895
|
+
devig?: "multiplicative" | "shin";
|
|
2896
|
+
}): Promise<ParlayPriceResponse>;
|
|
2824
2897
|
/**
|
|
2825
2898
|
* Price a same-game parlay at the book's own correlated odds.
|
|
2826
2899
|
*
|
|
@@ -2915,6 +2988,6 @@ declare const Bookmakers: {
|
|
|
2915
2988
|
readonly PRIZEPICKS: "prizepicks";
|
|
2916
2989
|
};
|
|
2917
2990
|
type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
|
|
2918
|
-
declare const VERSION = "0.
|
|
2991
|
+
declare const VERSION = "0.70.0";
|
|
2919
2992
|
|
|
2920
|
-
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 HitRateSplit, 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 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 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 };
|
|
2993
|
+
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 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 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 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
|
@@ -344,6 +344,22 @@ var PropLine = class {
|
|
|
344
344
|
getEventIds(sport) {
|
|
345
345
|
return this._request("GET", `/sports/${encodeURIComponent(sport)}/ids`);
|
|
346
346
|
}
|
|
347
|
+
/**
|
|
348
|
+
* Find PropLine events from someone else's id (free tier). Pass exactly
|
|
349
|
+
* one of `book` + `bookEventId` (a sportsbook's own event id),
|
|
350
|
+
* `espnEventId` or `mlbGamePk`; arrays send up to 50.
|
|
351
|
+
*/
|
|
352
|
+
lookupEventIds(opts) {
|
|
353
|
+
const j = (v) => Array.isArray(v) ? v.join(",") : v === void 0 ? void 0 : String(v);
|
|
354
|
+
return this._request("GET", "/ids/lookup", {
|
|
355
|
+
params: {
|
|
356
|
+
book: opts.book,
|
|
357
|
+
book_event_id: j(opts.bookEventId),
|
|
358
|
+
espn_event_id: j(opts.espnEventId),
|
|
359
|
+
mlb_game_pk: j(opts.mlbGamePk)
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
}
|
|
347
363
|
getBookAccuracy(options = {}) {
|
|
348
364
|
const params = { days: String(options.days ?? 30) };
|
|
349
365
|
if (options.sport) params.sport = options.sport;
|
|
@@ -1116,6 +1132,17 @@ var PropLine = class {
|
|
|
1116
1132
|
settleBets(bets) {
|
|
1117
1133
|
return this._request("POST", "/bets/settle", { body: bets });
|
|
1118
1134
|
}
|
|
1135
|
+
/**
|
|
1136
|
+
* Fair price of a parlay across games, from the same no-vig lines as
|
|
1137
|
+
* `getEventEv`, plus each book's price for the same legs and the EV% of
|
|
1138
|
+
* an offered `price`. Legs on one event are flagged `same_game` (the
|
|
1139
|
+
* fair price assumes independent legs). 2-15 legs. Hobby+.
|
|
1140
|
+
*/
|
|
1141
|
+
priceParlay(legs, options = {}) {
|
|
1142
|
+
return this._request("POST", "/parlay/price", {
|
|
1143
|
+
body: { legs, price: options.price, devig: options.devig }
|
|
1144
|
+
});
|
|
1145
|
+
}
|
|
1119
1146
|
priceSgp(sportKey, eventId, legs, bookmaker = "fanduel") {
|
|
1120
1147
|
return this._request(
|
|
1121
1148
|
"POST",
|
|
@@ -1217,7 +1244,7 @@ var Bookmakers = {
|
|
|
1217
1244
|
POLYMARKET: "polymarket",
|
|
1218
1245
|
PRIZEPICKS: "prizepicks"
|
|
1219
1246
|
};
|
|
1220
|
-
var VERSION = "0.
|
|
1247
|
+
var VERSION = "0.70.0";
|
|
1221
1248
|
export {
|
|
1222
1249
|
AuthError,
|
|
1223
1250
|
Bookmakers,
|