propline 0.60.0 → 0.62.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,12 @@ 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;
1228
+ /** `ev` only: fair-line anchor override (null = the /ev default). */
1229
+ ev_fair_source?: string | null;
1191
1230
  /** Batched delivery: up to N events per POST (null = per-event). */
1192
1231
  batch_max: number | null;
1193
1232
  created_at: string;
@@ -1815,8 +1854,11 @@ interface ExportOddsHistoryOptions {
1815
1854
  * Webhook event types. `steam` = cross-book sharp-money alert.
1816
1855
  * `market_suspended` = a book took a market off the board pregame (one
1817
1856
  * delivery per (book, event, player) withdrawal, with `books_agreeing`).
1857
+ * `ev` = push version of `/ev`: a fresh pregame price whose EV% against the
1858
+ * fair line is within [minEvPct, maxEvPct], once per subscription per price
1859
+ * (an analytical signal, not a claim of profit).
1818
1860
  */
1819
- type WebhookEventType = "line_movement" | "resolution" | "steam" | "market_suspended";
1861
+ type WebhookEventType = "line_movement" | "resolution" | "steam" | "market_suspended" | "ev";
1820
1862
  interface CreateWebhookOptions {
1821
1863
  /** HTTPS endpoint to receive POSTed events. Required. */
1822
1864
  url: string;
@@ -1844,6 +1886,20 @@ interface CreateWebhookOptions {
1844
1886
  * scratches only. Every payload carries `books_agreeing` regardless.
1845
1887
  */
1846
1888
  minBooksAgreeing?: number;
1889
+ /** `ev` only: minimum EV% (0-100) to deliver. Unset = 1. Sent as `min_ev_pct`. */
1890
+ minEvPct?: number;
1891
+ /**
1892
+ * `ev` only: maximum EV% to deliver (drops implausibly large edges,
1893
+ * usually stale prices). Unset = no cap. Sent as `max_ev_pct`.
1894
+ */
1895
+ maxEvPct?: number;
1896
+ /**
1897
+ * `ev` only: fair-line anchor, same values as getEventEv's `fairSource`:
1898
+ * `"consensus"` or a comma list of anchor books (pinnacle, polymarket,
1899
+ * kalshi, bovada, smarkets). Unset = the /ev default. Sent as
1900
+ * `ev_fair_source`; invalid values are a 400.
1901
+ */
1902
+ evFairSource?: string;
1847
1903
  /**
1848
1904
  * Batched delivery opt-in (1-500): up to N events per POST as a signed
1849
1905
  * envelope `{"batch": true, "event_type": ..., "count": N, "events":
@@ -1871,6 +1927,12 @@ interface UpdateWebhookOptions {
1871
1927
  minPriceChangePct?: number;
1872
1928
  minSteamScore?: number;
1873
1929
  minBooksAgreeing?: number;
1930
+ /** `ev` only: minimum EV% (0-100). */
1931
+ minEvPct?: number;
1932
+ /** `ev` only: maximum EV%. Pass 0 to clear the cap. */
1933
+ maxEvPct?: number;
1934
+ /** `ev` only: fair-line anchor (see CreateWebhookOptions). Pass "" to clear. */
1935
+ evFairSource?: string;
1874
1936
  /** Batched delivery (see CreateWebhookOptions.batchMax). 0 = per-event. */
1875
1937
  batchMax?: number;
1876
1938
  active?: boolean;
@@ -2563,6 +2625,6 @@ declare const Bookmakers: {
2563
2625
  readonly PRIZEPICKS: "prizepicks";
2564
2626
  };
2565
2627
  type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
2566
- declare const VERSION = "0.60.0";
2628
+ declare const VERSION = "0.62.0";
2567
2629
 
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 };
2630
+ 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,12 @@ 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;
1228
+ /** `ev` only: fair-line anchor override (null = the /ev default). */
1229
+ ev_fair_source?: string | null;
1191
1230
  /** Batched delivery: up to N events per POST (null = per-event). */
1192
1231
  batch_max: number | null;
1193
1232
  created_at: string;
@@ -1815,8 +1854,11 @@ interface ExportOddsHistoryOptions {
1815
1854
  * Webhook event types. `steam` = cross-book sharp-money alert.
1816
1855
  * `market_suspended` = a book took a market off the board pregame (one
1817
1856
  * delivery per (book, event, player) withdrawal, with `books_agreeing`).
1857
+ * `ev` = push version of `/ev`: a fresh pregame price whose EV% against the
1858
+ * fair line is within [minEvPct, maxEvPct], once per subscription per price
1859
+ * (an analytical signal, not a claim of profit).
1818
1860
  */
1819
- type WebhookEventType = "line_movement" | "resolution" | "steam" | "market_suspended";
1861
+ type WebhookEventType = "line_movement" | "resolution" | "steam" | "market_suspended" | "ev";
1820
1862
  interface CreateWebhookOptions {
1821
1863
  /** HTTPS endpoint to receive POSTed events. Required. */
1822
1864
  url: string;
@@ -1844,6 +1886,20 @@ interface CreateWebhookOptions {
1844
1886
  * scratches only. Every payload carries `books_agreeing` regardless.
1845
1887
  */
1846
1888
  minBooksAgreeing?: number;
1889
+ /** `ev` only: minimum EV% (0-100) to deliver. Unset = 1. Sent as `min_ev_pct`. */
1890
+ minEvPct?: number;
1891
+ /**
1892
+ * `ev` only: maximum EV% to deliver (drops implausibly large edges,
1893
+ * usually stale prices). Unset = no cap. Sent as `max_ev_pct`.
1894
+ */
1895
+ maxEvPct?: number;
1896
+ /**
1897
+ * `ev` only: fair-line anchor, same values as getEventEv's `fairSource`:
1898
+ * `"consensus"` or a comma list of anchor books (pinnacle, polymarket,
1899
+ * kalshi, bovada, smarkets). Unset = the /ev default. Sent as
1900
+ * `ev_fair_source`; invalid values are a 400.
1901
+ */
1902
+ evFairSource?: string;
1847
1903
  /**
1848
1904
  * Batched delivery opt-in (1-500): up to N events per POST as a signed
1849
1905
  * envelope `{"batch": true, "event_type": ..., "count": N, "events":
@@ -1871,6 +1927,12 @@ interface UpdateWebhookOptions {
1871
1927
  minPriceChangePct?: number;
1872
1928
  minSteamScore?: number;
1873
1929
  minBooksAgreeing?: number;
1930
+ /** `ev` only: minimum EV% (0-100). */
1931
+ minEvPct?: number;
1932
+ /** `ev` only: maximum EV%. Pass 0 to clear the cap. */
1933
+ maxEvPct?: number;
1934
+ /** `ev` only: fair-line anchor (see CreateWebhookOptions). Pass "" to clear. */
1935
+ evFairSource?: string;
1874
1936
  /** Batched delivery (see CreateWebhookOptions.batchMax). 0 = per-event. */
1875
1937
  batchMax?: number;
1876
1938
  active?: boolean;
@@ -2563,6 +2625,6 @@ declare const Bookmakers: {
2563
2625
  readonly PRIZEPICKS: "prizepicks";
2564
2626
  };
2565
2627
  type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
2566
- declare const VERSION = "0.60.0";
2628
+ declare const VERSION = "0.62.0";
2567
2629
 
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 };
2630
+ 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,9 @@ 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"],
1100
+ ["evFairSource", "ev_fair_source"],
1098
1101
  ["batchMax", "batch_max"],
1099
1102
  ["active", "active"]
1100
1103
  ];
@@ -1138,7 +1141,7 @@ var Bookmakers = {
1138
1141
  POLYMARKET: "polymarket",
1139
1142
  PRIZEPICKS: "prizepicks"
1140
1143
  };
1141
- var VERSION = "0.60.0";
1144
+ var VERSION = "0.62.0";
1142
1145
  export {
1143
1146
  AuthError,
1144
1147
  Bookmakers,