propline 0.69.0 → 0.71.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 +29 -0
- package/dist/index.cjs +58 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +149 -2
- package/dist/index.d.ts +149 -2
- package/dist/index.js +58 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1698,6 +1698,122 @@ 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
|
+
}
|
|
1753
|
+
interface RefereeNextMatch {
|
|
1754
|
+
event_id: string;
|
|
1755
|
+
commence_time: string;
|
|
1756
|
+
home_team: string;
|
|
1757
|
+
away_team: string;
|
|
1758
|
+
}
|
|
1759
|
+
interface RefereeSummary {
|
|
1760
|
+
referee: string;
|
|
1761
|
+
/** Graded matches. */
|
|
1762
|
+
matches: number;
|
|
1763
|
+
yellow_cards: number;
|
|
1764
|
+
red_cards: number;
|
|
1765
|
+
yellow_cards_per_match: number | null;
|
|
1766
|
+
red_cards_per_match: number | null;
|
|
1767
|
+
cards_per_match: number | null;
|
|
1768
|
+
last_match: string | null;
|
|
1769
|
+
/** Next appointment, or null. */
|
|
1770
|
+
next_match: RefereeNextMatch | null;
|
|
1771
|
+
}
|
|
1772
|
+
interface RefereesResponse {
|
|
1773
|
+
sport: string;
|
|
1774
|
+
count: number;
|
|
1775
|
+
referees: RefereeSummary[];
|
|
1776
|
+
}
|
|
1777
|
+
interface RefereesOptions {
|
|
1778
|
+
/** Referee name substring. */
|
|
1779
|
+
search?: string;
|
|
1780
|
+
/** YYYY-MM-DD. */
|
|
1781
|
+
since?: string;
|
|
1782
|
+
/** YYYY-MM-DD. */
|
|
1783
|
+
until?: string;
|
|
1784
|
+
}
|
|
1785
|
+
interface RefereeMatch {
|
|
1786
|
+
referee: string;
|
|
1787
|
+
event_id: string;
|
|
1788
|
+
commence_time: string;
|
|
1789
|
+
status: string | null;
|
|
1790
|
+
home_team: string;
|
|
1791
|
+
away_team: string;
|
|
1792
|
+
home_score: number | null;
|
|
1793
|
+
away_score: number | null;
|
|
1794
|
+
/** null until the match is graded. */
|
|
1795
|
+
yellow_cards: number | null;
|
|
1796
|
+
red_cards: number | null;
|
|
1797
|
+
home_yellow_cards: number | null;
|
|
1798
|
+
home_red_cards: number | null;
|
|
1799
|
+
away_yellow_cards: number | null;
|
|
1800
|
+
away_red_cards: number | null;
|
|
1801
|
+
}
|
|
1802
|
+
/** The summary fields, with `matches` replaced by the match list. */
|
|
1803
|
+
interface RefereeMatchesResponse extends Omit<RefereeSummary, "matches"> {
|
|
1804
|
+
sport: string;
|
|
1805
|
+
/** All matches held for this referee (graded + upcoming). */
|
|
1806
|
+
match_count: number;
|
|
1807
|
+
matches: RefereeMatch[];
|
|
1808
|
+
}
|
|
1809
|
+
interface RefereeMatchesOptions {
|
|
1810
|
+
/** YYYY-MM-DD. */
|
|
1811
|
+
since?: string;
|
|
1812
|
+
/** YYYY-MM-DD. */
|
|
1813
|
+
until?: string;
|
|
1814
|
+
/** 1-500 (default 100). */
|
|
1815
|
+
limit?: number;
|
|
1816
|
+
}
|
|
1701
1817
|
|
|
1702
1818
|
/** Options for {@link PropLineClient.getDfsPayouts}. */
|
|
1703
1819
|
interface GetDfsPayoutsOptions {
|
|
@@ -2387,6 +2503,17 @@ declare class PropLine {
|
|
|
2387
2503
|
* sportsbook's own event id + link (`books`).
|
|
2388
2504
|
*/
|
|
2389
2505
|
getEventIds(sport: string): Promise<EventIds[]>;
|
|
2506
|
+
/**
|
|
2507
|
+
* Find PropLine events from someone else's id (free tier). Pass exactly
|
|
2508
|
+
* one of `book` + `bookEventId` (a sportsbook's own event id),
|
|
2509
|
+
* `espnEventId` or `mlbGamePk`; arrays send up to 50.
|
|
2510
|
+
*/
|
|
2511
|
+
lookupEventIds(opts: {
|
|
2512
|
+
book?: string;
|
|
2513
|
+
bookEventId?: string | string[];
|
|
2514
|
+
espnEventId?: string | string[];
|
|
2515
|
+
mlbGamePk?: number | string | Array<number | string>;
|
|
2516
|
+
}): Promise<IdLookupResponse>;
|
|
2390
2517
|
getBookAccuracy(options?: BookAccuracyOptions): Promise<BookAccuracyReport>;
|
|
2391
2518
|
/**
|
|
2392
2519
|
* A golfer's completed rounds, newest first, plus last-5/10/20 averages.
|
|
@@ -2410,6 +2537,16 @@ declare class PropLine {
|
|
|
2410
2537
|
* the report. History starts 2026-10-18.
|
|
2411
2538
|
*/
|
|
2412
2539
|
getInjuryHistory(sport: string, options?: InjuryHistoryOptions): Promise<InjuryHistory>;
|
|
2540
|
+
/**
|
|
2541
|
+
* Referee card stats for a sport (free tier). Only `soccer_epl` today;
|
|
2542
|
+
* other sports return 404 `referees_not_available`.
|
|
2543
|
+
*/
|
|
2544
|
+
getReferees(sport: string, options?: RefereesOptions): Promise<RefereesResponse>;
|
|
2545
|
+
/**
|
|
2546
|
+
* One referee's summary plus their matches with per-team cards
|
|
2547
|
+
* (free tier). `limit` is 1-500 (default 100).
|
|
2548
|
+
*/
|
|
2549
|
+
getRefereeMatches(sport: string, name: string, options?: RefereeMatchesOptions): Promise<RefereeMatchesResponse>;
|
|
2413
2550
|
/**
|
|
2414
2551
|
* Get raw player/team box-score stats (book-agnostic, free tier).
|
|
2415
2552
|
*
|
|
@@ -2821,6 +2958,16 @@ declare class PropLine {
|
|
|
2821
2958
|
* console.log(res.bets[0].result); // "half_won"
|
|
2822
2959
|
*/
|
|
2823
2960
|
settleBets(bets: SettleBetInput[]): Promise<SettleResponse>;
|
|
2961
|
+
/**
|
|
2962
|
+
* Fair price of a parlay across games, from the same no-vig lines as
|
|
2963
|
+
* `getEventEv`, plus each book's price for the same legs and the EV% of
|
|
2964
|
+
* an offered `price`. Legs on one event are flagged `same_game` (the
|
|
2965
|
+
* fair price assumes independent legs). 2-15 legs. Hobby+.
|
|
2966
|
+
*/
|
|
2967
|
+
priceParlay(legs: ParlayLegInput[], options?: {
|
|
2968
|
+
price?: number;
|
|
2969
|
+
devig?: "multiplicative" | "shin";
|
|
2970
|
+
}): Promise<ParlayPriceResponse>;
|
|
2824
2971
|
/**
|
|
2825
2972
|
* Price a same-game parlay at the book's own correlated odds.
|
|
2826
2973
|
*
|
|
@@ -2915,6 +3062,6 @@ declare const Bookmakers: {
|
|
|
2915
3062
|
readonly PRIZEPICKS: "prizepicks";
|
|
2916
3063
|
};
|
|
2917
3064
|
type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
|
|
2918
|
-
declare const VERSION = "0.
|
|
3065
|
+
declare const VERSION = "0.71.0";
|
|
2919
3066
|
|
|
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 };
|
|
3067
|
+
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 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
|
@@ -1698,6 +1698,122 @@ 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
|
+
}
|
|
1753
|
+
interface RefereeNextMatch {
|
|
1754
|
+
event_id: string;
|
|
1755
|
+
commence_time: string;
|
|
1756
|
+
home_team: string;
|
|
1757
|
+
away_team: string;
|
|
1758
|
+
}
|
|
1759
|
+
interface RefereeSummary {
|
|
1760
|
+
referee: string;
|
|
1761
|
+
/** Graded matches. */
|
|
1762
|
+
matches: number;
|
|
1763
|
+
yellow_cards: number;
|
|
1764
|
+
red_cards: number;
|
|
1765
|
+
yellow_cards_per_match: number | null;
|
|
1766
|
+
red_cards_per_match: number | null;
|
|
1767
|
+
cards_per_match: number | null;
|
|
1768
|
+
last_match: string | null;
|
|
1769
|
+
/** Next appointment, or null. */
|
|
1770
|
+
next_match: RefereeNextMatch | null;
|
|
1771
|
+
}
|
|
1772
|
+
interface RefereesResponse {
|
|
1773
|
+
sport: string;
|
|
1774
|
+
count: number;
|
|
1775
|
+
referees: RefereeSummary[];
|
|
1776
|
+
}
|
|
1777
|
+
interface RefereesOptions {
|
|
1778
|
+
/** Referee name substring. */
|
|
1779
|
+
search?: string;
|
|
1780
|
+
/** YYYY-MM-DD. */
|
|
1781
|
+
since?: string;
|
|
1782
|
+
/** YYYY-MM-DD. */
|
|
1783
|
+
until?: string;
|
|
1784
|
+
}
|
|
1785
|
+
interface RefereeMatch {
|
|
1786
|
+
referee: string;
|
|
1787
|
+
event_id: string;
|
|
1788
|
+
commence_time: string;
|
|
1789
|
+
status: string | null;
|
|
1790
|
+
home_team: string;
|
|
1791
|
+
away_team: string;
|
|
1792
|
+
home_score: number | null;
|
|
1793
|
+
away_score: number | null;
|
|
1794
|
+
/** null until the match is graded. */
|
|
1795
|
+
yellow_cards: number | null;
|
|
1796
|
+
red_cards: number | null;
|
|
1797
|
+
home_yellow_cards: number | null;
|
|
1798
|
+
home_red_cards: number | null;
|
|
1799
|
+
away_yellow_cards: number | null;
|
|
1800
|
+
away_red_cards: number | null;
|
|
1801
|
+
}
|
|
1802
|
+
/** The summary fields, with `matches` replaced by the match list. */
|
|
1803
|
+
interface RefereeMatchesResponse extends Omit<RefereeSummary, "matches"> {
|
|
1804
|
+
sport: string;
|
|
1805
|
+
/** All matches held for this referee (graded + upcoming). */
|
|
1806
|
+
match_count: number;
|
|
1807
|
+
matches: RefereeMatch[];
|
|
1808
|
+
}
|
|
1809
|
+
interface RefereeMatchesOptions {
|
|
1810
|
+
/** YYYY-MM-DD. */
|
|
1811
|
+
since?: string;
|
|
1812
|
+
/** YYYY-MM-DD. */
|
|
1813
|
+
until?: string;
|
|
1814
|
+
/** 1-500 (default 100). */
|
|
1815
|
+
limit?: number;
|
|
1816
|
+
}
|
|
1701
1817
|
|
|
1702
1818
|
/** Options for {@link PropLineClient.getDfsPayouts}. */
|
|
1703
1819
|
interface GetDfsPayoutsOptions {
|
|
@@ -2387,6 +2503,17 @@ declare class PropLine {
|
|
|
2387
2503
|
* sportsbook's own event id + link (`books`).
|
|
2388
2504
|
*/
|
|
2389
2505
|
getEventIds(sport: string): Promise<EventIds[]>;
|
|
2506
|
+
/**
|
|
2507
|
+
* Find PropLine events from someone else's id (free tier). Pass exactly
|
|
2508
|
+
* one of `book` + `bookEventId` (a sportsbook's own event id),
|
|
2509
|
+
* `espnEventId` or `mlbGamePk`; arrays send up to 50.
|
|
2510
|
+
*/
|
|
2511
|
+
lookupEventIds(opts: {
|
|
2512
|
+
book?: string;
|
|
2513
|
+
bookEventId?: string | string[];
|
|
2514
|
+
espnEventId?: string | string[];
|
|
2515
|
+
mlbGamePk?: number | string | Array<number | string>;
|
|
2516
|
+
}): Promise<IdLookupResponse>;
|
|
2390
2517
|
getBookAccuracy(options?: BookAccuracyOptions): Promise<BookAccuracyReport>;
|
|
2391
2518
|
/**
|
|
2392
2519
|
* A golfer's completed rounds, newest first, plus last-5/10/20 averages.
|
|
@@ -2410,6 +2537,16 @@ declare class PropLine {
|
|
|
2410
2537
|
* the report. History starts 2026-10-18.
|
|
2411
2538
|
*/
|
|
2412
2539
|
getInjuryHistory(sport: string, options?: InjuryHistoryOptions): Promise<InjuryHistory>;
|
|
2540
|
+
/**
|
|
2541
|
+
* Referee card stats for a sport (free tier). Only `soccer_epl` today;
|
|
2542
|
+
* other sports return 404 `referees_not_available`.
|
|
2543
|
+
*/
|
|
2544
|
+
getReferees(sport: string, options?: RefereesOptions): Promise<RefereesResponse>;
|
|
2545
|
+
/**
|
|
2546
|
+
* One referee's summary plus their matches with per-team cards
|
|
2547
|
+
* (free tier). `limit` is 1-500 (default 100).
|
|
2548
|
+
*/
|
|
2549
|
+
getRefereeMatches(sport: string, name: string, options?: RefereeMatchesOptions): Promise<RefereeMatchesResponse>;
|
|
2413
2550
|
/**
|
|
2414
2551
|
* Get raw player/team box-score stats (book-agnostic, free tier).
|
|
2415
2552
|
*
|
|
@@ -2821,6 +2958,16 @@ declare class PropLine {
|
|
|
2821
2958
|
* console.log(res.bets[0].result); // "half_won"
|
|
2822
2959
|
*/
|
|
2823
2960
|
settleBets(bets: SettleBetInput[]): Promise<SettleResponse>;
|
|
2961
|
+
/**
|
|
2962
|
+
* Fair price of a parlay across games, from the same no-vig lines as
|
|
2963
|
+
* `getEventEv`, plus each book's price for the same legs and the EV% of
|
|
2964
|
+
* an offered `price`. Legs on one event are flagged `same_game` (the
|
|
2965
|
+
* fair price assumes independent legs). 2-15 legs. Hobby+.
|
|
2966
|
+
*/
|
|
2967
|
+
priceParlay(legs: ParlayLegInput[], options?: {
|
|
2968
|
+
price?: number;
|
|
2969
|
+
devig?: "multiplicative" | "shin";
|
|
2970
|
+
}): Promise<ParlayPriceResponse>;
|
|
2824
2971
|
/**
|
|
2825
2972
|
* Price a same-game parlay at the book's own correlated odds.
|
|
2826
2973
|
*
|
|
@@ -2915,6 +3062,6 @@ declare const Bookmakers: {
|
|
|
2915
3062
|
readonly PRIZEPICKS: "prizepicks";
|
|
2916
3063
|
};
|
|
2917
3064
|
type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
|
|
2918
|
-
declare const VERSION = "0.
|
|
3065
|
+
declare const VERSION = "0.71.0";
|
|
2919
3066
|
|
|
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 };
|
|
3067
|
+
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 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
|
@@ -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;
|
|
@@ -402,6 +418,36 @@ var PropLine = class {
|
|
|
402
418
|
{ params }
|
|
403
419
|
);
|
|
404
420
|
}
|
|
421
|
+
/**
|
|
422
|
+
* Referee card stats for a sport (free tier). Only `soccer_epl` today;
|
|
423
|
+
* other sports return 404 `referees_not_available`.
|
|
424
|
+
*/
|
|
425
|
+
getReferees(sport, options = {}) {
|
|
426
|
+
const params = {};
|
|
427
|
+
if (options.search) params.search = options.search;
|
|
428
|
+
if (options.since) params.since = options.since;
|
|
429
|
+
if (options.until) params.until = options.until;
|
|
430
|
+
return this._request(
|
|
431
|
+
"GET",
|
|
432
|
+
`/sports/${encodeURIComponent(sport)}/referees`,
|
|
433
|
+
{ params }
|
|
434
|
+
);
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* One referee's summary plus their matches with per-team cards
|
|
438
|
+
* (free tier). `limit` is 1-500 (default 100).
|
|
439
|
+
*/
|
|
440
|
+
getRefereeMatches(sport, name, options = {}) {
|
|
441
|
+
const params = {};
|
|
442
|
+
if (options.since) params.since = options.since;
|
|
443
|
+
if (options.until) params.until = options.until;
|
|
444
|
+
if (options.limit !== void 0) params.limit = String(options.limit);
|
|
445
|
+
return this._request(
|
|
446
|
+
"GET",
|
|
447
|
+
`/sports/${encodeURIComponent(sport)}/referees/${encodeURIComponent(name)}/matches`,
|
|
448
|
+
{ params }
|
|
449
|
+
);
|
|
450
|
+
}
|
|
405
451
|
/**
|
|
406
452
|
* Get raw player/team box-score stats (book-agnostic, free tier).
|
|
407
453
|
*
|
|
@@ -1116,6 +1162,17 @@ var PropLine = class {
|
|
|
1116
1162
|
settleBets(bets) {
|
|
1117
1163
|
return this._request("POST", "/bets/settle", { body: bets });
|
|
1118
1164
|
}
|
|
1165
|
+
/**
|
|
1166
|
+
* Fair price of a parlay across games, from the same no-vig lines as
|
|
1167
|
+
* `getEventEv`, plus each book's price for the same legs and the EV% of
|
|
1168
|
+
* an offered `price`. Legs on one event are flagged `same_game` (the
|
|
1169
|
+
* fair price assumes independent legs). 2-15 legs. Hobby+.
|
|
1170
|
+
*/
|
|
1171
|
+
priceParlay(legs, options = {}) {
|
|
1172
|
+
return this._request("POST", "/parlay/price", {
|
|
1173
|
+
body: { legs, price: options.price, devig: options.devig }
|
|
1174
|
+
});
|
|
1175
|
+
}
|
|
1119
1176
|
priceSgp(sportKey, eventId, legs, bookmaker = "fanduel") {
|
|
1120
1177
|
return this._request(
|
|
1121
1178
|
"POST",
|
|
@@ -1217,7 +1274,7 @@ var Bookmakers = {
|
|
|
1217
1274
|
POLYMARKET: "polymarket",
|
|
1218
1275
|
PRIZEPICKS: "prizepicks"
|
|
1219
1276
|
};
|
|
1220
|
-
var VERSION = "0.
|
|
1277
|
+
var VERSION = "0.71.0";
|
|
1221
1278
|
export {
|
|
1222
1279
|
AuthError,
|
|
1223
1280
|
Bookmakers,
|