propline 0.59.0 → 0.61.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 +24 -2
- package/dist/index.cjs +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +70 -3
- package/dist/index.d.ts +70 -3
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -799,6 +799,39 @@ interface SteamWebhookPayload {
|
|
|
799
799
|
timestamp: string;
|
|
800
800
|
[k: string]: unknown;
|
|
801
801
|
}
|
|
802
|
+
/**
|
|
803
|
+
* Body of an `ev` webhook delivery — the push version of `/ev` (fresh
|
|
804
|
+
* pregame prices only). An analytical signal, not a claim of profit.
|
|
805
|
+
*/
|
|
806
|
+
interface EvWebhookPayload {
|
|
807
|
+
event_type: "ev";
|
|
808
|
+
sport_key: string;
|
|
809
|
+
event: {
|
|
810
|
+
id: number;
|
|
811
|
+
external_id: string | null;
|
|
812
|
+
home_team: string;
|
|
813
|
+
away_team: string;
|
|
814
|
+
commence_time: string;
|
|
815
|
+
[k: string]: unknown;
|
|
816
|
+
};
|
|
817
|
+
market_key: string;
|
|
818
|
+
player_name: string | null;
|
|
819
|
+
outcome_name: string;
|
|
820
|
+
point: number | null;
|
|
821
|
+
bookmaker_key: string;
|
|
822
|
+
bookmaker_title: string;
|
|
823
|
+
/** American odds. */
|
|
824
|
+
price: number;
|
|
825
|
+
price_updated_at: string | null;
|
|
826
|
+
fair_prob: number;
|
|
827
|
+
fair_price: number;
|
|
828
|
+
ev_pct: number;
|
|
829
|
+
fair_source: string;
|
|
830
|
+
fair_books: string[] | null;
|
|
831
|
+
devig_method: string;
|
|
832
|
+
timestamp: string;
|
|
833
|
+
[k: string]: unknown;
|
|
834
|
+
}
|
|
802
835
|
interface MovementResponse {
|
|
803
836
|
id: number | string;
|
|
804
837
|
sport_key: string;
|
|
@@ -1046,6 +1079,8 @@ interface EvOutcome {
|
|
|
1046
1079
|
/** Expected value as a percent on a unit stake. Positive = +EV. */
|
|
1047
1080
|
ev_pct: number;
|
|
1048
1081
|
is_plus_ev: boolean;
|
|
1082
|
+
/** When this book last delivered the market (ISO time), or null. */
|
|
1083
|
+
last_update?: string | null;
|
|
1049
1084
|
[k: string]: unknown;
|
|
1050
1085
|
}
|
|
1051
1086
|
interface EvLine {
|
|
@@ -1058,6 +1093,8 @@ interface EvLine {
|
|
|
1058
1093
|
fair_source: string;
|
|
1059
1094
|
/** Map of outcome name → normalized fair probability. */
|
|
1060
1095
|
fair_probs: Record<string, number>;
|
|
1096
|
+
/** Book keys used for a `consensus` fair line; null otherwise. */
|
|
1097
|
+
fair_books?: string[] | null;
|
|
1061
1098
|
outcomes: EvOutcome[];
|
|
1062
1099
|
[k: string]: unknown;
|
|
1063
1100
|
}
|
|
@@ -1184,6 +1221,10 @@ interface Webhook {
|
|
|
1184
1221
|
min_price_change_pct: number | null;
|
|
1185
1222
|
min_steam_score: number | null;
|
|
1186
1223
|
min_books_agreeing: number | null;
|
|
1224
|
+
/** `ev` only: minimum EV% (null = 1). */
|
|
1225
|
+
min_ev_pct?: number | null;
|
|
1226
|
+
/** `ev` only: maximum EV% (null = no cap). */
|
|
1227
|
+
max_ev_pct?: number | null;
|
|
1187
1228
|
/** Batched delivery: up to N events per POST (null = per-event). */
|
|
1188
1229
|
batch_max: number | null;
|
|
1189
1230
|
created_at: string;
|
|
@@ -1730,8 +1771,20 @@ interface GetEventEvOptions {
|
|
|
1730
1771
|
* line, from `pinnacle`, `polymarket`, `kalshi`, `bovada`, `smarkets`.
|
|
1731
1772
|
* A line none of them anchors is dropped; any other value is a 400.
|
|
1732
1773
|
* Omit for the default order.
|
|
1774
|
+
*
|
|
1775
|
+
* The single value `"consensus"` (cannot be combined with book names)
|
|
1776
|
+
* uses the median no-vig probability across every book quoting a clean,
|
|
1777
|
+
* fresh two-sided market (3+ books; BetOnline/LowVig and BetRivers/Unibet
|
|
1778
|
+
* count once). Each line then lists the books used in `fair_books`.
|
|
1779
|
+
* Opt-in; not a proven better anchor.
|
|
1733
1780
|
*/
|
|
1734
1781
|
fairSource?: string | string[];
|
|
1782
|
+
/**
|
|
1783
|
+
* Seconds (>= 0). Drops quoted prices the book has not delivered within
|
|
1784
|
+
* that many seconds (see each outcome's `last_update`). The fair line is
|
|
1785
|
+
* unaffected. Sent as `max_age`.
|
|
1786
|
+
*/
|
|
1787
|
+
maxAge?: number;
|
|
1735
1788
|
}
|
|
1736
1789
|
interface GetEventBestLineOptions {
|
|
1737
1790
|
/**
|
|
@@ -1799,8 +1852,11 @@ interface ExportOddsHistoryOptions {
|
|
|
1799
1852
|
* Webhook event types. `steam` = cross-book sharp-money alert.
|
|
1800
1853
|
* `market_suspended` = a book took a market off the board pregame (one
|
|
1801
1854
|
* delivery per (book, event, player) withdrawal, with `books_agreeing`).
|
|
1855
|
+
* `ev` = push version of `/ev`: a fresh pregame price whose EV% against the
|
|
1856
|
+
* fair line is within [minEvPct, maxEvPct], once per subscription per price
|
|
1857
|
+
* (an analytical signal, not a claim of profit).
|
|
1802
1858
|
*/
|
|
1803
|
-
type WebhookEventType = "line_movement" | "resolution" | "steam" | "market_suspended";
|
|
1859
|
+
type WebhookEventType = "line_movement" | "resolution" | "steam" | "market_suspended" | "ev";
|
|
1804
1860
|
interface CreateWebhookOptions {
|
|
1805
1861
|
/** HTTPS endpoint to receive POSTed events. Required. */
|
|
1806
1862
|
url: string;
|
|
@@ -1828,6 +1884,13 @@ interface CreateWebhookOptions {
|
|
|
1828
1884
|
* scratches only. Every payload carries `books_agreeing` regardless.
|
|
1829
1885
|
*/
|
|
1830
1886
|
minBooksAgreeing?: number;
|
|
1887
|
+
/** `ev` only: minimum EV% (0-100) to deliver. Unset = 1. Sent as `min_ev_pct`. */
|
|
1888
|
+
minEvPct?: number;
|
|
1889
|
+
/**
|
|
1890
|
+
* `ev` only: maximum EV% to deliver (drops implausibly large edges,
|
|
1891
|
+
* usually stale prices). Unset = no cap. Sent as `max_ev_pct`.
|
|
1892
|
+
*/
|
|
1893
|
+
maxEvPct?: number;
|
|
1831
1894
|
/**
|
|
1832
1895
|
* Batched delivery opt-in (1-500): up to N events per POST as a signed
|
|
1833
1896
|
* envelope `{"batch": true, "event_type": ..., "count": N, "events":
|
|
@@ -1855,6 +1918,10 @@ interface UpdateWebhookOptions {
|
|
|
1855
1918
|
minPriceChangePct?: number;
|
|
1856
1919
|
minSteamScore?: number;
|
|
1857
1920
|
minBooksAgreeing?: number;
|
|
1921
|
+
/** `ev` only: minimum EV% (0-100). */
|
|
1922
|
+
minEvPct?: number;
|
|
1923
|
+
/** `ev` only: maximum EV%. Pass 0 to clear the cap. */
|
|
1924
|
+
maxEvPct?: number;
|
|
1858
1925
|
/** Batched delivery (see CreateWebhookOptions.batchMax). 0 = per-event. */
|
|
1859
1926
|
batchMax?: number;
|
|
1860
1927
|
active?: boolean;
|
|
@@ -2547,6 +2614,6 @@ declare const Bookmakers: {
|
|
|
2547
2614
|
readonly PRIZEPICKS: "prizepicks";
|
|
2548
2615
|
};
|
|
2549
2616
|
type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
|
|
2550
|
-
declare const VERSION = "0.
|
|
2617
|
+
declare const VERSION = "0.61.0";
|
|
2551
2618
|
|
|
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 };
|
|
2619
|
+
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 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
|
@@ -799,6 +799,39 @@ interface SteamWebhookPayload {
|
|
|
799
799
|
timestamp: string;
|
|
800
800
|
[k: string]: unknown;
|
|
801
801
|
}
|
|
802
|
+
/**
|
|
803
|
+
* Body of an `ev` webhook delivery — the push version of `/ev` (fresh
|
|
804
|
+
* pregame prices only). An analytical signal, not a claim of profit.
|
|
805
|
+
*/
|
|
806
|
+
interface EvWebhookPayload {
|
|
807
|
+
event_type: "ev";
|
|
808
|
+
sport_key: string;
|
|
809
|
+
event: {
|
|
810
|
+
id: number;
|
|
811
|
+
external_id: string | null;
|
|
812
|
+
home_team: string;
|
|
813
|
+
away_team: string;
|
|
814
|
+
commence_time: string;
|
|
815
|
+
[k: string]: unknown;
|
|
816
|
+
};
|
|
817
|
+
market_key: string;
|
|
818
|
+
player_name: string | null;
|
|
819
|
+
outcome_name: string;
|
|
820
|
+
point: number | null;
|
|
821
|
+
bookmaker_key: string;
|
|
822
|
+
bookmaker_title: string;
|
|
823
|
+
/** American odds. */
|
|
824
|
+
price: number;
|
|
825
|
+
price_updated_at: string | null;
|
|
826
|
+
fair_prob: number;
|
|
827
|
+
fair_price: number;
|
|
828
|
+
ev_pct: number;
|
|
829
|
+
fair_source: string;
|
|
830
|
+
fair_books: string[] | null;
|
|
831
|
+
devig_method: string;
|
|
832
|
+
timestamp: string;
|
|
833
|
+
[k: string]: unknown;
|
|
834
|
+
}
|
|
802
835
|
interface MovementResponse {
|
|
803
836
|
id: number | string;
|
|
804
837
|
sport_key: string;
|
|
@@ -1046,6 +1079,8 @@ interface EvOutcome {
|
|
|
1046
1079
|
/** Expected value as a percent on a unit stake. Positive = +EV. */
|
|
1047
1080
|
ev_pct: number;
|
|
1048
1081
|
is_plus_ev: boolean;
|
|
1082
|
+
/** When this book last delivered the market (ISO time), or null. */
|
|
1083
|
+
last_update?: string | null;
|
|
1049
1084
|
[k: string]: unknown;
|
|
1050
1085
|
}
|
|
1051
1086
|
interface EvLine {
|
|
@@ -1058,6 +1093,8 @@ interface EvLine {
|
|
|
1058
1093
|
fair_source: string;
|
|
1059
1094
|
/** Map of outcome name → normalized fair probability. */
|
|
1060
1095
|
fair_probs: Record<string, number>;
|
|
1096
|
+
/** Book keys used for a `consensus` fair line; null otherwise. */
|
|
1097
|
+
fair_books?: string[] | null;
|
|
1061
1098
|
outcomes: EvOutcome[];
|
|
1062
1099
|
[k: string]: unknown;
|
|
1063
1100
|
}
|
|
@@ -1184,6 +1221,10 @@ interface Webhook {
|
|
|
1184
1221
|
min_price_change_pct: number | null;
|
|
1185
1222
|
min_steam_score: number | null;
|
|
1186
1223
|
min_books_agreeing: number | null;
|
|
1224
|
+
/** `ev` only: minimum EV% (null = 1). */
|
|
1225
|
+
min_ev_pct?: number | null;
|
|
1226
|
+
/** `ev` only: maximum EV% (null = no cap). */
|
|
1227
|
+
max_ev_pct?: number | null;
|
|
1187
1228
|
/** Batched delivery: up to N events per POST (null = per-event). */
|
|
1188
1229
|
batch_max: number | null;
|
|
1189
1230
|
created_at: string;
|
|
@@ -1730,8 +1771,20 @@ interface GetEventEvOptions {
|
|
|
1730
1771
|
* line, from `pinnacle`, `polymarket`, `kalshi`, `bovada`, `smarkets`.
|
|
1731
1772
|
* A line none of them anchors is dropped; any other value is a 400.
|
|
1732
1773
|
* Omit for the default order.
|
|
1774
|
+
*
|
|
1775
|
+
* The single value `"consensus"` (cannot be combined with book names)
|
|
1776
|
+
* uses the median no-vig probability across every book quoting a clean,
|
|
1777
|
+
* fresh two-sided market (3+ books; BetOnline/LowVig and BetRivers/Unibet
|
|
1778
|
+
* count once). Each line then lists the books used in `fair_books`.
|
|
1779
|
+
* Opt-in; not a proven better anchor.
|
|
1733
1780
|
*/
|
|
1734
1781
|
fairSource?: string | string[];
|
|
1782
|
+
/**
|
|
1783
|
+
* Seconds (>= 0). Drops quoted prices the book has not delivered within
|
|
1784
|
+
* that many seconds (see each outcome's `last_update`). The fair line is
|
|
1785
|
+
* unaffected. Sent as `max_age`.
|
|
1786
|
+
*/
|
|
1787
|
+
maxAge?: number;
|
|
1735
1788
|
}
|
|
1736
1789
|
interface GetEventBestLineOptions {
|
|
1737
1790
|
/**
|
|
@@ -1799,8 +1852,11 @@ interface ExportOddsHistoryOptions {
|
|
|
1799
1852
|
* Webhook event types. `steam` = cross-book sharp-money alert.
|
|
1800
1853
|
* `market_suspended` = a book took a market off the board pregame (one
|
|
1801
1854
|
* delivery per (book, event, player) withdrawal, with `books_agreeing`).
|
|
1855
|
+
* `ev` = push version of `/ev`: a fresh pregame price whose EV% against the
|
|
1856
|
+
* fair line is within [minEvPct, maxEvPct], once per subscription per price
|
|
1857
|
+
* (an analytical signal, not a claim of profit).
|
|
1802
1858
|
*/
|
|
1803
|
-
type WebhookEventType = "line_movement" | "resolution" | "steam" | "market_suspended";
|
|
1859
|
+
type WebhookEventType = "line_movement" | "resolution" | "steam" | "market_suspended" | "ev";
|
|
1804
1860
|
interface CreateWebhookOptions {
|
|
1805
1861
|
/** HTTPS endpoint to receive POSTed events. Required. */
|
|
1806
1862
|
url: string;
|
|
@@ -1828,6 +1884,13 @@ interface CreateWebhookOptions {
|
|
|
1828
1884
|
* scratches only. Every payload carries `books_agreeing` regardless.
|
|
1829
1885
|
*/
|
|
1830
1886
|
minBooksAgreeing?: number;
|
|
1887
|
+
/** `ev` only: minimum EV% (0-100) to deliver. Unset = 1. Sent as `min_ev_pct`. */
|
|
1888
|
+
minEvPct?: number;
|
|
1889
|
+
/**
|
|
1890
|
+
* `ev` only: maximum EV% to deliver (drops implausibly large edges,
|
|
1891
|
+
* usually stale prices). Unset = no cap. Sent as `max_ev_pct`.
|
|
1892
|
+
*/
|
|
1893
|
+
maxEvPct?: number;
|
|
1831
1894
|
/**
|
|
1832
1895
|
* Batched delivery opt-in (1-500): up to N events per POST as a signed
|
|
1833
1896
|
* envelope `{"batch": true, "event_type": ..., "count": N, "events":
|
|
@@ -1855,6 +1918,10 @@ interface UpdateWebhookOptions {
|
|
|
1855
1918
|
minPriceChangePct?: number;
|
|
1856
1919
|
minSteamScore?: number;
|
|
1857
1920
|
minBooksAgreeing?: number;
|
|
1921
|
+
/** `ev` only: minimum EV% (0-100). */
|
|
1922
|
+
minEvPct?: number;
|
|
1923
|
+
/** `ev` only: maximum EV%. Pass 0 to clear the cap. */
|
|
1924
|
+
maxEvPct?: number;
|
|
1858
1925
|
/** Batched delivery (see CreateWebhookOptions.batchMax). 0 = per-event. */
|
|
1859
1926
|
batchMax?: number;
|
|
1860
1927
|
active?: boolean;
|
|
@@ -2547,6 +2614,6 @@ declare const Bookmakers: {
|
|
|
2547
2614
|
readonly PRIZEPICKS: "prizepicks";
|
|
2548
2615
|
};
|
|
2549
2616
|
type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
|
|
2550
|
-
declare const VERSION = "0.
|
|
2617
|
+
declare const VERSION = "0.61.0";
|
|
2551
2618
|
|
|
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 };
|
|
2619
|
+
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 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
|
@@ -642,6 +642,9 @@ var PropLine = class {
|
|
|
642
642
|
if (options.fairSource) {
|
|
643
643
|
params.fair_source = Array.isArray(options.fairSource) ? options.fairSource.join(",") : options.fairSource;
|
|
644
644
|
}
|
|
645
|
+
if (options.maxAge !== void 0 && options.maxAge !== null) {
|
|
646
|
+
params.max_age = String(options.maxAge);
|
|
647
|
+
}
|
|
645
648
|
return this._request(
|
|
646
649
|
"GET",
|
|
647
650
|
`/sports/${encodeURIComponent(sport)}/events/${encodeURIComponent(String(eventId))}/ev`,
|
|
@@ -1092,6 +1095,8 @@ function webhookBody(options) {
|
|
|
1092
1095
|
["minPriceChangePct", "min_price_change_pct"],
|
|
1093
1096
|
["minSteamScore", "min_steam_score"],
|
|
1094
1097
|
["minBooksAgreeing", "min_books_agreeing"],
|
|
1098
|
+
["minEvPct", "min_ev_pct"],
|
|
1099
|
+
["maxEvPct", "max_ev_pct"],
|
|
1095
1100
|
["batchMax", "batch_max"],
|
|
1096
1101
|
["active", "active"]
|
|
1097
1102
|
];
|
|
@@ -1135,7 +1140,7 @@ var Bookmakers = {
|
|
|
1135
1140
|
POLYMARKET: "polymarket",
|
|
1136
1141
|
PRIZEPICKS: "prizepicks"
|
|
1137
1142
|
};
|
|
1138
|
-
var VERSION = "0.
|
|
1143
|
+
var VERSION = "0.61.0";
|
|
1139
1144
|
export {
|
|
1140
1145
|
AuthError,
|
|
1141
1146
|
Bookmakers,
|