propline 0.48.5 → 0.49.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 +6 -1
- package/dist/index.cjs +1 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +54 -6
- package/dist/index.d.ts +54 -6
- package/dist/index.js +1 -34
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -115,14 +115,17 @@ interface Outcome {
|
|
|
115
115
|
outcome_id?: number | null;
|
|
116
116
|
/**
|
|
117
117
|
* Dollars a bettor can actually stake at the quoted `price` — exchange
|
|
118
|
-
* books that publish resting-offer size
|
|
118
|
+
* books that publish resting-offer size (ProphetX, Novig) and Pinnacle,
|
|
119
|
+
* where it is the book's posted max risk stake on the market. `null`/
|
|
119
120
|
* absent for every other book, and for an exchange quote whose size the
|
|
120
121
|
* feed omitted (never coerced to 0). On a P2P exchange the best price is
|
|
121
122
|
* often a thin dangling offer with only a few dollars behind it — filter
|
|
122
123
|
* or discount small values before treating the price as bettable.
|
|
123
|
-
* Refreshed every poll cycle independently of price movement
|
|
124
|
-
* changes never appear in `getOddsHistory
|
|
125
|
-
*
|
|
124
|
+
* Refreshed every poll cycle independently of price movement. Exchange
|
|
125
|
+
* size changes never appear in `getOddsHistory`; a Pinnacle limit change
|
|
126
|
+
* does (its own snapshot row, price unchanged), and `getOddsClosing`
|
|
127
|
+
* carries `opening_liquidity` beside `liquidity`. Neither fires
|
|
128
|
+
* `line_movement` webhooks.
|
|
126
129
|
*/
|
|
127
130
|
liquidity?: number | null;
|
|
128
131
|
/**
|
|
@@ -279,6 +282,13 @@ interface OutcomeSnapshot {
|
|
|
279
282
|
recorded_at: string;
|
|
280
283
|
price: number;
|
|
281
284
|
point?: number | null;
|
|
285
|
+
/**
|
|
286
|
+
* Stake limit / resting size in force at this snapshot (Pinnacle: its
|
|
287
|
+
* max risk stake). A Pinnacle limit change with no price move is its own
|
|
288
|
+
* snapshot row — price/point repeat, this moves — and survives
|
|
289
|
+
* `changes_only`. Null for other books and on rows before 2026-09-10.
|
|
290
|
+
*/
|
|
291
|
+
liquidity?: number | null;
|
|
282
292
|
[k: string]: unknown;
|
|
283
293
|
}
|
|
284
294
|
interface OddsHistoryOutcome {
|
|
@@ -354,6 +364,10 @@ interface ClosingOutcome {
|
|
|
354
364
|
opening_age_seconds?: number | null;
|
|
355
365
|
book_updated_at?: string | null;
|
|
356
366
|
book_version?: number | null;
|
|
367
|
+
/** Stake limit / resting size at the closing snapshot (Pinnacle: max risk stake). */
|
|
368
|
+
liquidity?: number | null;
|
|
369
|
+
/** Stake limit / resting size at the opening snapshot — compare with `liquidity` to see whether the book raised its limit as the line moved. */
|
|
370
|
+
opening_liquidity?: number | null;
|
|
357
371
|
redacted?: boolean;
|
|
358
372
|
/** PrizePicks projection tier (standard/goblin/demon); null for sportsbooks. */
|
|
359
373
|
dfs_odds_type?: string | null;
|
|
@@ -1178,6 +1192,34 @@ interface SgpQuoteResponse {
|
|
|
1178
1192
|
redacted?: boolean;
|
|
1179
1193
|
upgrade_url?: string | null;
|
|
1180
1194
|
}
|
|
1195
|
+
/** One book that could not quote the slip under `bookmaker: "all"`. */
|
|
1196
|
+
interface SgpBookError {
|
|
1197
|
+
bookmaker: string;
|
|
1198
|
+
bookmaker_title: string;
|
|
1199
|
+
/** The HTTP status the single-book call would have returned. */
|
|
1200
|
+
status: number;
|
|
1201
|
+
/** The error code from that call's body (e.g. "event_not_at_book"), if any. */
|
|
1202
|
+
error: string | null;
|
|
1203
|
+
detail: unknown;
|
|
1204
|
+
}
|
|
1205
|
+
/**
|
|
1206
|
+
* `priceSgp(..., "all")`: every supported book quoted on the same legs.
|
|
1207
|
+
* `best_bookmaker` is the quoted book paying the most — on identical legs,
|
|
1208
|
+
* the one charging the smallest correlation reduction.
|
|
1209
|
+
*/
|
|
1210
|
+
interface SgpMultiQuoteResponse {
|
|
1211
|
+
id: string;
|
|
1212
|
+
sport_key: string;
|
|
1213
|
+
home_team: string;
|
|
1214
|
+
away_team: string;
|
|
1215
|
+
commence_time: string;
|
|
1216
|
+
bookmaker: "all";
|
|
1217
|
+
quotes: SgpQuoteResponse[];
|
|
1218
|
+
errors: SgpBookError[];
|
|
1219
|
+
best_bookmaker: string | null;
|
|
1220
|
+
redacted?: boolean;
|
|
1221
|
+
upgrade_url?: string | null;
|
|
1222
|
+
}
|
|
1181
1223
|
|
|
1182
1224
|
/** Options for {@link PropLineClient.getDfsPayouts}. */
|
|
1183
1225
|
interface GetDfsPayoutsOptions {
|
|
@@ -2138,7 +2180,13 @@ declare class PropLine {
|
|
|
2138
2180
|
* { market: "batter_1plus_hits", name: "Freddie Freeman", description: "Freddie Freeman" },
|
|
2139
2181
|
* ]);
|
|
2140
2182
|
* console.log(q.sgp_price, q.independent_price, q.correlation_factor);
|
|
2183
|
+
*
|
|
2184
|
+
* // Every book on the same legs, side by side — best_bookmaker is the
|
|
2185
|
+
* // one charging the smallest correlation reduction:
|
|
2186
|
+
* const all = await client.priceSgp("baseball_mlb", 150791, legs, "all");
|
|
2187
|
+
* console.log(all.best_bookmaker, all.quotes.map((x) => [x.bookmaker, x.correlation_factor]));
|
|
2141
2188
|
*/
|
|
2189
|
+
priceSgp(sportKey: string, eventId: number | string, legs: SgpLegInput[], bookmaker: "all"): Promise<SgpMultiQuoteResponse>;
|
|
2142
2190
|
priceSgp(sportKey: string, eventId: number | string, legs: SgpLegInput[], bookmaker?: string): Promise<SgpQuoteResponse>;
|
|
2143
2191
|
/**
|
|
2144
2192
|
* Verify that an inbound webhook delivery was signed by PropLine.
|
|
@@ -2194,6 +2242,6 @@ declare const Bookmakers: {
|
|
|
2194
2242
|
readonly PRIZEPICKS: "prizepicks";
|
|
2195
2243
|
};
|
|
2196
2244
|
type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
|
|
2197
|
-
declare const VERSION = "0.
|
|
2245
|
+
declare const VERSION = "0.49.0";
|
|
2198
2246
|
|
|
2199
|
-
export { AuthError, type BestLine, type BestLineSide, type BestPrice, 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 DfsPayoutTier, type DfsPayoutsResponse, type DfsPlayPayout, type EvLine, type EvOutcome, type Event, type EventBestLineResponse, type EventEvCalcResponse, type EventEvResponse, type EventProjectionsResponse, type ExportOddsHistoryOptions, type ExportResolvedPropsOptions, type FuturesEvent, type FuturesMarket, type FuturesOutcome, type GetDfsPayoutsOptions, type GetEventBestLineOptions, type GetEventEvOptions, type GetEventProjectionsOptions, type GetMlbGrandSalamiOptions, type GetNhlDailyGoalsTotalOptions, type GetOddsClosingOptions, type GetOddsHistoryOptions, type GetOddsOptions, type GetPlayerGamesOptions, type GetPlayerHistoryOptions, type GetPlayerTrendsOptions, type GetResultsOptions, type GetScoresOptions, type GetStatsOptions, type HitRateSplit, 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 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 SgpLegInput, type SgpLegQuote, type SgpQuoteResponse, type Sport, type StatsResponse, type SteamMove, type StreamOptions, type TrendLastGame, type TrendStreak, type UpdateWebhookOptions, VERSION, type VerifySignatureOptions, type WeatherInfo, type Webhook, type WebhookDelivery, type WebhookEventType };
|
|
2247
|
+
export { AuthError, type BestLine, type BestLineSide, type BestPrice, 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 DfsPayoutTier, type DfsPayoutsResponse, type DfsPlayPayout, type EvLine, type EvOutcome, type Event, type EventBestLineResponse, type EventEvCalcResponse, type EventEvResponse, type EventProjectionsResponse, type ExportOddsHistoryOptions, type ExportResolvedPropsOptions, type FuturesEvent, type FuturesMarket, type FuturesOutcome, type GetDfsPayoutsOptions, type GetEventBestLineOptions, type GetEventEvOptions, type GetEventProjectionsOptions, type GetMlbGrandSalamiOptions, type GetNhlDailyGoalsTotalOptions, type GetOddsClosingOptions, type GetOddsHistoryOptions, type GetOddsOptions, type GetPlayerGamesOptions, type GetPlayerHistoryOptions, type GetPlayerTrendsOptions, type GetResultsOptions, type GetScoresOptions, type GetStatsOptions, type HitRateSplit, 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 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 SgpBookError, type SgpLegInput, type SgpLegQuote, type SgpMultiQuoteResponse, type SgpQuoteResponse, type Sport, type StatsResponse, type SteamMove, 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
|
@@ -115,14 +115,17 @@ interface Outcome {
|
|
|
115
115
|
outcome_id?: number | null;
|
|
116
116
|
/**
|
|
117
117
|
* Dollars a bettor can actually stake at the quoted `price` — exchange
|
|
118
|
-
* books that publish resting-offer size
|
|
118
|
+
* books that publish resting-offer size (ProphetX, Novig) and Pinnacle,
|
|
119
|
+
* where it is the book's posted max risk stake on the market. `null`/
|
|
119
120
|
* absent for every other book, and for an exchange quote whose size the
|
|
120
121
|
* feed omitted (never coerced to 0). On a P2P exchange the best price is
|
|
121
122
|
* often a thin dangling offer with only a few dollars behind it — filter
|
|
122
123
|
* or discount small values before treating the price as bettable.
|
|
123
|
-
* Refreshed every poll cycle independently of price movement
|
|
124
|
-
* changes never appear in `getOddsHistory
|
|
125
|
-
*
|
|
124
|
+
* Refreshed every poll cycle independently of price movement. Exchange
|
|
125
|
+
* size changes never appear in `getOddsHistory`; a Pinnacle limit change
|
|
126
|
+
* does (its own snapshot row, price unchanged), and `getOddsClosing`
|
|
127
|
+
* carries `opening_liquidity` beside `liquidity`. Neither fires
|
|
128
|
+
* `line_movement` webhooks.
|
|
126
129
|
*/
|
|
127
130
|
liquidity?: number | null;
|
|
128
131
|
/**
|
|
@@ -279,6 +282,13 @@ interface OutcomeSnapshot {
|
|
|
279
282
|
recorded_at: string;
|
|
280
283
|
price: number;
|
|
281
284
|
point?: number | null;
|
|
285
|
+
/**
|
|
286
|
+
* Stake limit / resting size in force at this snapshot (Pinnacle: its
|
|
287
|
+
* max risk stake). A Pinnacle limit change with no price move is its own
|
|
288
|
+
* snapshot row — price/point repeat, this moves — and survives
|
|
289
|
+
* `changes_only`. Null for other books and on rows before 2026-09-10.
|
|
290
|
+
*/
|
|
291
|
+
liquidity?: number | null;
|
|
282
292
|
[k: string]: unknown;
|
|
283
293
|
}
|
|
284
294
|
interface OddsHistoryOutcome {
|
|
@@ -354,6 +364,10 @@ interface ClosingOutcome {
|
|
|
354
364
|
opening_age_seconds?: number | null;
|
|
355
365
|
book_updated_at?: string | null;
|
|
356
366
|
book_version?: number | null;
|
|
367
|
+
/** Stake limit / resting size at the closing snapshot (Pinnacle: max risk stake). */
|
|
368
|
+
liquidity?: number | null;
|
|
369
|
+
/** Stake limit / resting size at the opening snapshot — compare with `liquidity` to see whether the book raised its limit as the line moved. */
|
|
370
|
+
opening_liquidity?: number | null;
|
|
357
371
|
redacted?: boolean;
|
|
358
372
|
/** PrizePicks projection tier (standard/goblin/demon); null for sportsbooks. */
|
|
359
373
|
dfs_odds_type?: string | null;
|
|
@@ -1178,6 +1192,34 @@ interface SgpQuoteResponse {
|
|
|
1178
1192
|
redacted?: boolean;
|
|
1179
1193
|
upgrade_url?: string | null;
|
|
1180
1194
|
}
|
|
1195
|
+
/** One book that could not quote the slip under `bookmaker: "all"`. */
|
|
1196
|
+
interface SgpBookError {
|
|
1197
|
+
bookmaker: string;
|
|
1198
|
+
bookmaker_title: string;
|
|
1199
|
+
/** The HTTP status the single-book call would have returned. */
|
|
1200
|
+
status: number;
|
|
1201
|
+
/** The error code from that call's body (e.g. "event_not_at_book"), if any. */
|
|
1202
|
+
error: string | null;
|
|
1203
|
+
detail: unknown;
|
|
1204
|
+
}
|
|
1205
|
+
/**
|
|
1206
|
+
* `priceSgp(..., "all")`: every supported book quoted on the same legs.
|
|
1207
|
+
* `best_bookmaker` is the quoted book paying the most — on identical legs,
|
|
1208
|
+
* the one charging the smallest correlation reduction.
|
|
1209
|
+
*/
|
|
1210
|
+
interface SgpMultiQuoteResponse {
|
|
1211
|
+
id: string;
|
|
1212
|
+
sport_key: string;
|
|
1213
|
+
home_team: string;
|
|
1214
|
+
away_team: string;
|
|
1215
|
+
commence_time: string;
|
|
1216
|
+
bookmaker: "all";
|
|
1217
|
+
quotes: SgpQuoteResponse[];
|
|
1218
|
+
errors: SgpBookError[];
|
|
1219
|
+
best_bookmaker: string | null;
|
|
1220
|
+
redacted?: boolean;
|
|
1221
|
+
upgrade_url?: string | null;
|
|
1222
|
+
}
|
|
1181
1223
|
|
|
1182
1224
|
/** Options for {@link PropLineClient.getDfsPayouts}. */
|
|
1183
1225
|
interface GetDfsPayoutsOptions {
|
|
@@ -2138,7 +2180,13 @@ declare class PropLine {
|
|
|
2138
2180
|
* { market: "batter_1plus_hits", name: "Freddie Freeman", description: "Freddie Freeman" },
|
|
2139
2181
|
* ]);
|
|
2140
2182
|
* console.log(q.sgp_price, q.independent_price, q.correlation_factor);
|
|
2183
|
+
*
|
|
2184
|
+
* // Every book on the same legs, side by side — best_bookmaker is the
|
|
2185
|
+
* // one charging the smallest correlation reduction:
|
|
2186
|
+
* const all = await client.priceSgp("baseball_mlb", 150791, legs, "all");
|
|
2187
|
+
* console.log(all.best_bookmaker, all.quotes.map((x) => [x.bookmaker, x.correlation_factor]));
|
|
2141
2188
|
*/
|
|
2189
|
+
priceSgp(sportKey: string, eventId: number | string, legs: SgpLegInput[], bookmaker: "all"): Promise<SgpMultiQuoteResponse>;
|
|
2142
2190
|
priceSgp(sportKey: string, eventId: number | string, legs: SgpLegInput[], bookmaker?: string): Promise<SgpQuoteResponse>;
|
|
2143
2191
|
/**
|
|
2144
2192
|
* Verify that an inbound webhook delivery was signed by PropLine.
|
|
@@ -2194,6 +2242,6 @@ declare const Bookmakers: {
|
|
|
2194
2242
|
readonly PRIZEPICKS: "prizepicks";
|
|
2195
2243
|
};
|
|
2196
2244
|
type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
|
|
2197
|
-
declare const VERSION = "0.
|
|
2245
|
+
declare const VERSION = "0.49.0";
|
|
2198
2246
|
|
|
2199
|
-
export { AuthError, type BestLine, type BestLineSide, type BestPrice, 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 DfsPayoutTier, type DfsPayoutsResponse, type DfsPlayPayout, type EvLine, type EvOutcome, type Event, type EventBestLineResponse, type EventEvCalcResponse, type EventEvResponse, type EventProjectionsResponse, type ExportOddsHistoryOptions, type ExportResolvedPropsOptions, type FuturesEvent, type FuturesMarket, type FuturesOutcome, type GetDfsPayoutsOptions, type GetEventBestLineOptions, type GetEventEvOptions, type GetEventProjectionsOptions, type GetMlbGrandSalamiOptions, type GetNhlDailyGoalsTotalOptions, type GetOddsClosingOptions, type GetOddsHistoryOptions, type GetOddsOptions, type GetPlayerGamesOptions, type GetPlayerHistoryOptions, type GetPlayerTrendsOptions, type GetResultsOptions, type GetScoresOptions, type GetStatsOptions, type HitRateSplit, 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 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 SgpLegInput, type SgpLegQuote, type SgpQuoteResponse, type Sport, type StatsResponse, type SteamMove, type StreamOptions, type TrendLastGame, type TrendStreak, type UpdateWebhookOptions, VERSION, type VerifySignatureOptions, type WeatherInfo, type Webhook, type WebhookDelivery, type WebhookEventType };
|
|
2247
|
+
export { AuthError, type BestLine, type BestLineSide, type BestPrice, 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 DfsPayoutTier, type DfsPayoutsResponse, type DfsPlayPayout, type EvLine, type EvOutcome, type Event, type EventBestLineResponse, type EventEvCalcResponse, type EventEvResponse, type EventProjectionsResponse, type ExportOddsHistoryOptions, type ExportResolvedPropsOptions, type FuturesEvent, type FuturesMarket, type FuturesOutcome, type GetDfsPayoutsOptions, type GetEventBestLineOptions, type GetEventEvOptions, type GetEventProjectionsOptions, type GetMlbGrandSalamiOptions, type GetNhlDailyGoalsTotalOptions, type GetOddsClosingOptions, type GetOddsHistoryOptions, type GetOddsOptions, type GetPlayerGamesOptions, type GetPlayerHistoryOptions, type GetPlayerTrendsOptions, type GetResultsOptions, type GetScoresOptions, type GetStatsOptions, type HitRateSplit, 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 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 SgpBookError, type SgpLegInput, type SgpLegQuote, type SgpMultiQuoteResponse, type SgpQuoteResponse, type Sport, type StatsResponse, type SteamMove, type StreamOptions, type TrendLastGame, type TrendStreak, type UpdateWebhookOptions, VERSION, type VerifySignatureOptions, type WeatherInfo, type Webhook, type WebhookDelivery, type WebhookEventType };
|
package/dist/index.js
CHANGED
|
@@ -970,39 +970,6 @@ var PropLine = class {
|
|
|
970
970
|
gradeClv(bets) {
|
|
971
971
|
return this._request("POST", "/clv/grade", { body: bets });
|
|
972
972
|
}
|
|
973
|
-
/**
|
|
974
|
-
* Price a same-game parlay at the book's own correlated odds.
|
|
975
|
-
*
|
|
976
|
-
* Send two to ten legs from ONE event and get back the book's own price
|
|
977
|
-
* for that exact slip — what a FanDuel customer would be offered for it
|
|
978
|
-
* at that moment, not a model of it — beside `independent_price` (the
|
|
979
|
-
* product of the live single-leg prices) and `correlation_factor`
|
|
980
|
-
* (their ratio: the correlation the book is charging, below 1, or
|
|
981
|
-
* paying, above 1, for). Measured live: Cardinals ML +205 × Freddie
|
|
982
|
-
* Freeman to record a hit -260 → SGP +592 against an independent +322.
|
|
983
|
-
*
|
|
984
|
-
* Book-native. `bookmaker` is "fanduel" (its own betslip pricer) or
|
|
985
|
-
* "betonlineag" / "lowvig" (the Sportcast engine both Chico brands embed,
|
|
986
|
-
* same builder price); an unsupported value is a 422.
|
|
987
|
-
*
|
|
988
|
-
* Legs are named exactly as `/odds` names an outcome (market, name,
|
|
989
|
-
* description, point, period), or by `book_outcome_id` from
|
|
990
|
-
* `includeBookIds: true`. Matching is fail-closed — a leg that does not
|
|
991
|
-
* pin to exactly one stored outcome is a 422 `leg_unmatched` naming the
|
|
992
|
-
* leg. `quoted: false` means the book will not offer that combination as
|
|
993
|
-
* a same-game parlay; refused legs carry the book's own `failure_code`.
|
|
994
|
-
* Quotes for an identical slip are shared for 15 seconds.
|
|
995
|
-
*
|
|
996
|
-
* Hobby+ required; free tier receives the matched legs with every price
|
|
997
|
-
* nulled and never triggers a book call.
|
|
998
|
-
*
|
|
999
|
-
* @example
|
|
1000
|
-
* const q = await client.priceSgp("baseball_mlb", 150791, [
|
|
1001
|
-
* { market: "h2h", name: "St. Louis Cardinals" },
|
|
1002
|
-
* { market: "batter_1plus_hits", name: "Freddie Freeman", description: "Freddie Freeman" },
|
|
1003
|
-
* ]);
|
|
1004
|
-
* console.log(q.sgp_price, q.independent_price, q.correlation_factor);
|
|
1005
|
-
*/
|
|
1006
973
|
priceSgp(sportKey, eventId, legs, bookmaker = "fanduel") {
|
|
1007
974
|
return this._request(
|
|
1008
975
|
"POST",
|
|
@@ -1101,7 +1068,7 @@ var Bookmakers = {
|
|
|
1101
1068
|
POLYMARKET: "polymarket",
|
|
1102
1069
|
PRIZEPICKS: "prizepicks"
|
|
1103
1070
|
};
|
|
1104
|
-
var VERSION = "0.
|
|
1071
|
+
var VERSION = "0.49.0";
|
|
1105
1072
|
export {
|
|
1106
1073
|
AuthError,
|
|
1107
1074
|
Bookmakers,
|