propline 0.68.1 → 0.69.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 +20 -0
- package/dist/index.cjs +21 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +84 -2
- package/dist/index.d.ts +84 -2
- package/dist/index.js +21 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1475,6 +1475,70 @@ interface ClvGradeResponse {
|
|
|
1475
1475
|
/** Echo of the `devig` option: how the closing anchor's vig was removed. */
|
|
1476
1476
|
devig_method?: "multiplicative" | "shin" | string;
|
|
1477
1477
|
}
|
|
1478
|
+
/** One selection to settle with `settleBets`. */
|
|
1479
|
+
interface SettleLegInput {
|
|
1480
|
+
sport_key: string;
|
|
1481
|
+
event_id: number;
|
|
1482
|
+
market: string;
|
|
1483
|
+
/** Player for a prop, team for a game line, "Over"/"Under" for a game total. */
|
|
1484
|
+
selection: string;
|
|
1485
|
+
side?: string | null;
|
|
1486
|
+
/** Your line. Quarter lines (2.75, -0.25) settle as two half-stakes. */
|
|
1487
|
+
point?: number | null;
|
|
1488
|
+
period?: string | null;
|
|
1489
|
+
/** Scopes a `totals` leg to one team's total. */
|
|
1490
|
+
team?: string | null;
|
|
1491
|
+
/** Optional: when we stored this book's outcome at this line, its grade is used. */
|
|
1492
|
+
bookmaker?: string | null;
|
|
1493
|
+
/** American odds you took. Needed for the payout. */
|
|
1494
|
+
price?: number | null;
|
|
1495
|
+
}
|
|
1496
|
+
/** A single bet (the leg fields) or a parlay (`legs`). */
|
|
1497
|
+
interface SettleBetInput extends Partial<SettleLegInput> {
|
|
1498
|
+
ref?: string | null;
|
|
1499
|
+
/** Defaults to 1. */
|
|
1500
|
+
stake?: number | null;
|
|
1501
|
+
/** Set for a parlay; each leg carries its own price. */
|
|
1502
|
+
legs?: SettleLegInput[] | null;
|
|
1503
|
+
}
|
|
1504
|
+
type SettleResult = "won" | "lost" | "push" | "void" | "half_won" | "half_lost" | "pending" | "unmatched" | "redacted";
|
|
1505
|
+
interface SettledLeg extends SettleLegInput {
|
|
1506
|
+
result: SettleResult;
|
|
1507
|
+
reason?: string | null;
|
|
1508
|
+
/** The stat or score the leg settled on. */
|
|
1509
|
+
actual_value?: number | null;
|
|
1510
|
+
/** "stored": the book's own stored grade; "computed": graded at your line. */
|
|
1511
|
+
source?: "stored" | "computed" | null;
|
|
1512
|
+
outcome_id?: number | null;
|
|
1513
|
+
}
|
|
1514
|
+
interface SettledBet {
|
|
1515
|
+
ref?: string | null;
|
|
1516
|
+
result: SettleResult;
|
|
1517
|
+
reason?: string | null;
|
|
1518
|
+
stake?: number | null;
|
|
1519
|
+
price?: number | null;
|
|
1520
|
+
/** Returned, stake included. */
|
|
1521
|
+
payout?: number | null;
|
|
1522
|
+
profit?: number | null;
|
|
1523
|
+
parlay: boolean;
|
|
1524
|
+
legs: SettledLeg[];
|
|
1525
|
+
}
|
|
1526
|
+
interface SettleResponse {
|
|
1527
|
+
summary: {
|
|
1528
|
+
bets: number;
|
|
1529
|
+
settled: number;
|
|
1530
|
+
pending: number;
|
|
1531
|
+
unmatched: number;
|
|
1532
|
+
won: number;
|
|
1533
|
+
lost: number;
|
|
1534
|
+
push_or_void: number;
|
|
1535
|
+
staked?: number | null;
|
|
1536
|
+
profit?: number | null;
|
|
1537
|
+
};
|
|
1538
|
+
bets: SettledBet[];
|
|
1539
|
+
redacted: boolean;
|
|
1540
|
+
upgrade_url?: string | null;
|
|
1541
|
+
}
|
|
1478
1542
|
/**
|
|
1479
1543
|
* One leg of a same-game parlay submitted to `priceSgp`, named exactly as
|
|
1480
1544
|
* `/odds` names an outcome. Or pass `book_outcome_id` (from
|
|
@@ -2739,6 +2803,24 @@ declare class PropLine {
|
|
|
2739
2803
|
gradeClv(bets: ClvBetInput[], options?: {
|
|
2740
2804
|
devig?: "multiplicative" | "shin";
|
|
2741
2805
|
}): Promise<ClvGradeResponse>;
|
|
2806
|
+
/**
|
|
2807
|
+
* Settle placed bets: won, lost, push, void, half_won or half_lost.
|
|
2808
|
+
*
|
|
2809
|
+
* Singles or parlays (`legs`). The book and the line are free: a bet at a
|
|
2810
|
+
* book PropLine does not carry, or at a line nobody posted, still settles
|
|
2811
|
+
* from the same box score the grader used (`source: "computed"`). Asian
|
|
2812
|
+
* quarter lines settle as two half-stakes. Max 200 bets. Stateless.
|
|
2813
|
+
*
|
|
2814
|
+
* Hobby+ required; free tier sees the structure with results hidden.
|
|
2815
|
+
*
|
|
2816
|
+
* @example
|
|
2817
|
+
* const res = await client.settleBets([{
|
|
2818
|
+
* sport_key: "baseball_mlb", event_id: 150791, market: "totals",
|
|
2819
|
+
* selection: "Over", side: "Over", point: 7.75, price: -105, stake: 10,
|
|
2820
|
+
* }]);
|
|
2821
|
+
* console.log(res.bets[0].result); // "half_won"
|
|
2822
|
+
*/
|
|
2823
|
+
settleBets(bets: SettleBetInput[]): Promise<SettleResponse>;
|
|
2742
2824
|
/**
|
|
2743
2825
|
* Price a same-game parlay at the book's own correlated odds.
|
|
2744
2826
|
*
|
|
@@ -2833,6 +2915,6 @@ declare const Bookmakers: {
|
|
|
2833
2915
|
readonly PRIZEPICKS: "prizepicks";
|
|
2834
2916
|
};
|
|
2835
2917
|
type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
|
|
2836
|
-
declare const VERSION = "0.
|
|
2918
|
+
declare const VERSION = "0.69.0";
|
|
2837
2919
|
|
|
2838
|
-
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 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 };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1475,6 +1475,70 @@ interface ClvGradeResponse {
|
|
|
1475
1475
|
/** Echo of the `devig` option: how the closing anchor's vig was removed. */
|
|
1476
1476
|
devig_method?: "multiplicative" | "shin" | string;
|
|
1477
1477
|
}
|
|
1478
|
+
/** One selection to settle with `settleBets`. */
|
|
1479
|
+
interface SettleLegInput {
|
|
1480
|
+
sport_key: string;
|
|
1481
|
+
event_id: number;
|
|
1482
|
+
market: string;
|
|
1483
|
+
/** Player for a prop, team for a game line, "Over"/"Under" for a game total. */
|
|
1484
|
+
selection: string;
|
|
1485
|
+
side?: string | null;
|
|
1486
|
+
/** Your line. Quarter lines (2.75, -0.25) settle as two half-stakes. */
|
|
1487
|
+
point?: number | null;
|
|
1488
|
+
period?: string | null;
|
|
1489
|
+
/** Scopes a `totals` leg to one team's total. */
|
|
1490
|
+
team?: string | null;
|
|
1491
|
+
/** Optional: when we stored this book's outcome at this line, its grade is used. */
|
|
1492
|
+
bookmaker?: string | null;
|
|
1493
|
+
/** American odds you took. Needed for the payout. */
|
|
1494
|
+
price?: number | null;
|
|
1495
|
+
}
|
|
1496
|
+
/** A single bet (the leg fields) or a parlay (`legs`). */
|
|
1497
|
+
interface SettleBetInput extends Partial<SettleLegInput> {
|
|
1498
|
+
ref?: string | null;
|
|
1499
|
+
/** Defaults to 1. */
|
|
1500
|
+
stake?: number | null;
|
|
1501
|
+
/** Set for a parlay; each leg carries its own price. */
|
|
1502
|
+
legs?: SettleLegInput[] | null;
|
|
1503
|
+
}
|
|
1504
|
+
type SettleResult = "won" | "lost" | "push" | "void" | "half_won" | "half_lost" | "pending" | "unmatched" | "redacted";
|
|
1505
|
+
interface SettledLeg extends SettleLegInput {
|
|
1506
|
+
result: SettleResult;
|
|
1507
|
+
reason?: string | null;
|
|
1508
|
+
/** The stat or score the leg settled on. */
|
|
1509
|
+
actual_value?: number | null;
|
|
1510
|
+
/** "stored": the book's own stored grade; "computed": graded at your line. */
|
|
1511
|
+
source?: "stored" | "computed" | null;
|
|
1512
|
+
outcome_id?: number | null;
|
|
1513
|
+
}
|
|
1514
|
+
interface SettledBet {
|
|
1515
|
+
ref?: string | null;
|
|
1516
|
+
result: SettleResult;
|
|
1517
|
+
reason?: string | null;
|
|
1518
|
+
stake?: number | null;
|
|
1519
|
+
price?: number | null;
|
|
1520
|
+
/** Returned, stake included. */
|
|
1521
|
+
payout?: number | null;
|
|
1522
|
+
profit?: number | null;
|
|
1523
|
+
parlay: boolean;
|
|
1524
|
+
legs: SettledLeg[];
|
|
1525
|
+
}
|
|
1526
|
+
interface SettleResponse {
|
|
1527
|
+
summary: {
|
|
1528
|
+
bets: number;
|
|
1529
|
+
settled: number;
|
|
1530
|
+
pending: number;
|
|
1531
|
+
unmatched: number;
|
|
1532
|
+
won: number;
|
|
1533
|
+
lost: number;
|
|
1534
|
+
push_or_void: number;
|
|
1535
|
+
staked?: number | null;
|
|
1536
|
+
profit?: number | null;
|
|
1537
|
+
};
|
|
1538
|
+
bets: SettledBet[];
|
|
1539
|
+
redacted: boolean;
|
|
1540
|
+
upgrade_url?: string | null;
|
|
1541
|
+
}
|
|
1478
1542
|
/**
|
|
1479
1543
|
* One leg of a same-game parlay submitted to `priceSgp`, named exactly as
|
|
1480
1544
|
* `/odds` names an outcome. Or pass `book_outcome_id` (from
|
|
@@ -2739,6 +2803,24 @@ declare class PropLine {
|
|
|
2739
2803
|
gradeClv(bets: ClvBetInput[], options?: {
|
|
2740
2804
|
devig?: "multiplicative" | "shin";
|
|
2741
2805
|
}): Promise<ClvGradeResponse>;
|
|
2806
|
+
/**
|
|
2807
|
+
* Settle placed bets: won, lost, push, void, half_won or half_lost.
|
|
2808
|
+
*
|
|
2809
|
+
* Singles or parlays (`legs`). The book and the line are free: a bet at a
|
|
2810
|
+
* book PropLine does not carry, or at a line nobody posted, still settles
|
|
2811
|
+
* from the same box score the grader used (`source: "computed"`). Asian
|
|
2812
|
+
* quarter lines settle as two half-stakes. Max 200 bets. Stateless.
|
|
2813
|
+
*
|
|
2814
|
+
* Hobby+ required; free tier sees the structure with results hidden.
|
|
2815
|
+
*
|
|
2816
|
+
* @example
|
|
2817
|
+
* const res = await client.settleBets([{
|
|
2818
|
+
* sport_key: "baseball_mlb", event_id: 150791, market: "totals",
|
|
2819
|
+
* selection: "Over", side: "Over", point: 7.75, price: -105, stake: 10,
|
|
2820
|
+
* }]);
|
|
2821
|
+
* console.log(res.bets[0].result); // "half_won"
|
|
2822
|
+
*/
|
|
2823
|
+
settleBets(bets: SettleBetInput[]): Promise<SettleResponse>;
|
|
2742
2824
|
/**
|
|
2743
2825
|
* Price a same-game parlay at the book's own correlated odds.
|
|
2744
2826
|
*
|
|
@@ -2833,6 +2915,6 @@ declare const Bookmakers: {
|
|
|
2833
2915
|
readonly PRIZEPICKS: "prizepicks";
|
|
2834
2916
|
};
|
|
2835
2917
|
type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
|
|
2836
|
-
declare const VERSION = "0.
|
|
2918
|
+
declare const VERSION = "0.69.0";
|
|
2837
2919
|
|
|
2838
|
-
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 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 };
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -1096,6 +1096,26 @@ var PropLine = class {
|
|
|
1096
1096
|
params: options.devig ? { devig: options.devig } : void 0
|
|
1097
1097
|
});
|
|
1098
1098
|
}
|
|
1099
|
+
/**
|
|
1100
|
+
* Settle placed bets: won, lost, push, void, half_won or half_lost.
|
|
1101
|
+
*
|
|
1102
|
+
* Singles or parlays (`legs`). The book and the line are free: a bet at a
|
|
1103
|
+
* book PropLine does not carry, or at a line nobody posted, still settles
|
|
1104
|
+
* from the same box score the grader used (`source: "computed"`). Asian
|
|
1105
|
+
* quarter lines settle as two half-stakes. Max 200 bets. Stateless.
|
|
1106
|
+
*
|
|
1107
|
+
* Hobby+ required; free tier sees the structure with results hidden.
|
|
1108
|
+
*
|
|
1109
|
+
* @example
|
|
1110
|
+
* const res = await client.settleBets([{
|
|
1111
|
+
* sport_key: "baseball_mlb", event_id: 150791, market: "totals",
|
|
1112
|
+
* selection: "Over", side: "Over", point: 7.75, price: -105, stake: 10,
|
|
1113
|
+
* }]);
|
|
1114
|
+
* console.log(res.bets[0].result); // "half_won"
|
|
1115
|
+
*/
|
|
1116
|
+
settleBets(bets) {
|
|
1117
|
+
return this._request("POST", "/bets/settle", { body: bets });
|
|
1118
|
+
}
|
|
1099
1119
|
priceSgp(sportKey, eventId, legs, bookmaker = "fanduel") {
|
|
1100
1120
|
return this._request(
|
|
1101
1121
|
"POST",
|
|
@@ -1197,7 +1217,7 @@ var Bookmakers = {
|
|
|
1197
1217
|
POLYMARKET: "polymarket",
|
|
1198
1218
|
PRIZEPICKS: "prizepicks"
|
|
1199
1219
|
};
|
|
1200
|
-
var VERSION = "0.
|
|
1220
|
+
var VERSION = "0.69.0";
|
|
1201
1221
|
export {
|
|
1202
1222
|
AuthError,
|
|
1203
1223
|
Bookmakers,
|