propline 0.60.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/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;
@@ -1188,6 +1221,10 @@ interface Webhook {
1188
1221
  min_price_change_pct: number | null;
1189
1222
  min_steam_score: number | null;
1190
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;
1191
1228
  /** Batched delivery: up to N events per POST (null = per-event). */
1192
1229
  batch_max: number | null;
1193
1230
  created_at: string;
@@ -1815,8 +1852,11 @@ interface ExportOddsHistoryOptions {
1815
1852
  * Webhook event types. `steam` = cross-book sharp-money alert.
1816
1853
  * `market_suspended` = a book took a market off the board pregame (one
1817
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).
1818
1858
  */
1819
- type WebhookEventType = "line_movement" | "resolution" | "steam" | "market_suspended";
1859
+ type WebhookEventType = "line_movement" | "resolution" | "steam" | "market_suspended" | "ev";
1820
1860
  interface CreateWebhookOptions {
1821
1861
  /** HTTPS endpoint to receive POSTed events. Required. */
1822
1862
  url: string;
@@ -1844,6 +1884,13 @@ interface CreateWebhookOptions {
1844
1884
  * scratches only. Every payload carries `books_agreeing` regardless.
1845
1885
  */
1846
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;
1847
1894
  /**
1848
1895
  * Batched delivery opt-in (1-500): up to N events per POST as a signed
1849
1896
  * envelope `{"batch": true, "event_type": ..., "count": N, "events":
@@ -1871,6 +1918,10 @@ interface UpdateWebhookOptions {
1871
1918
  minPriceChangePct?: number;
1872
1919
  minSteamScore?: number;
1873
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;
1874
1925
  /** Batched delivery (see CreateWebhookOptions.batchMax). 0 = per-event. */
1875
1926
  batchMax?: number;
1876
1927
  active?: boolean;
@@ -2563,6 +2614,6 @@ declare const Bookmakers: {
2563
2614
  readonly PRIZEPICKS: "prizepicks";
2564
2615
  };
2565
2616
  type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
2566
- declare const VERSION = "0.60.0";
2617
+ declare const VERSION = "0.61.0";
2567
2618
 
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 };
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;
@@ -1188,6 +1221,10 @@ interface Webhook {
1188
1221
  min_price_change_pct: number | null;
1189
1222
  min_steam_score: number | null;
1190
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;
1191
1228
  /** Batched delivery: up to N events per POST (null = per-event). */
1192
1229
  batch_max: number | null;
1193
1230
  created_at: string;
@@ -1815,8 +1852,11 @@ interface ExportOddsHistoryOptions {
1815
1852
  * Webhook event types. `steam` = cross-book sharp-money alert.
1816
1853
  * `market_suspended` = a book took a market off the board pregame (one
1817
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).
1818
1858
  */
1819
- type WebhookEventType = "line_movement" | "resolution" | "steam" | "market_suspended";
1859
+ type WebhookEventType = "line_movement" | "resolution" | "steam" | "market_suspended" | "ev";
1820
1860
  interface CreateWebhookOptions {
1821
1861
  /** HTTPS endpoint to receive POSTed events. Required. */
1822
1862
  url: string;
@@ -1844,6 +1884,13 @@ interface CreateWebhookOptions {
1844
1884
  * scratches only. Every payload carries `books_agreeing` regardless.
1845
1885
  */
1846
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;
1847
1894
  /**
1848
1895
  * Batched delivery opt-in (1-500): up to N events per POST as a signed
1849
1896
  * envelope `{"batch": true, "event_type": ..., "count": N, "events":
@@ -1871,6 +1918,10 @@ interface UpdateWebhookOptions {
1871
1918
  minPriceChangePct?: number;
1872
1919
  minSteamScore?: number;
1873
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;
1874
1925
  /** Batched delivery (see CreateWebhookOptions.batchMax). 0 = per-event. */
1875
1926
  batchMax?: number;
1876
1927
  active?: boolean;
@@ -2563,6 +2614,6 @@ declare const Bookmakers: {
2563
2614
  readonly PRIZEPICKS: "prizepicks";
2564
2615
  };
2565
2616
  type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
2566
- declare const VERSION = "0.60.0";
2617
+ declare const VERSION = "0.61.0";
2567
2618
 
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 };
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
@@ -1095,6 +1095,8 @@ function webhookBody(options) {
1095
1095
  ["minPriceChangePct", "min_price_change_pct"],
1096
1096
  ["minSteamScore", "min_steam_score"],
1097
1097
  ["minBooksAgreeing", "min_books_agreeing"],
1098
+ ["minEvPct", "min_ev_pct"],
1099
+ ["maxEvPct", "max_ev_pct"],
1098
1100
  ["batchMax", "batch_max"],
1099
1101
  ["active", "active"]
1100
1102
  ];
@@ -1138,7 +1140,7 @@ var Bookmakers = {
1138
1140
  POLYMARKET: "polymarket",
1139
1141
  PRIZEPICKS: "prizepicks"
1140
1142
  };
1141
- var VERSION = "0.60.0";
1143
+ var VERSION = "0.61.0";
1142
1144
  export {
1143
1145
  AuthError,
1144
1146
  Bookmakers,