@predictorsdk/client 0.15.0 → 0.15.2
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/Client.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare class PredictorSDKClient {
|
|
|
25
25
|
getPlans(requestOptions?: PredictorSDKClient.RequestOptions): core.HttpResponsePromise<PredictorSDK.PlansResponse>;
|
|
26
26
|
private __getPlans;
|
|
27
27
|
/**
|
|
28
|
-
* Find cross-platform market matches for sports events. Coverage is NBA, WNBA, NHL, and
|
|
28
|
+
* Find cross-platform market matches for sports events. Coverage is NBA, WNBA, NHL, MLB, and NFL; `canonical_events[].league` names the league and is the first segment of the canonical `event_id`. When called without parameters, returns all currently matched sports markets with cursor-based pagination (default `limit=25`, max `100`) — games whose date has passed are excluded unless you ask for them with `include_settled=true`. Provide a canonical event key, Kalshi event ticker, Polymarket slug, Predict market ID, or SX Bet market ID to look up a specific event — lookups return the full match immediately and skip pagination. Every platform row includes its provider-native `event_id` for use with `GET /v1/events/{event_id}`; pass that row's `platform` value as the events endpoint's `platform` query parameter, which is required to disambiguate Predict and AlphaArcade identifiers.
|
|
29
29
|
*
|
|
30
30
|
* @param {PredictorSDK.GetSportsMatchingMarketsRequest} request
|
|
31
31
|
* @param {PredictorSDKClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -52,6 +52,8 @@ export declare class PredictorSDKClient {
|
|
|
52
52
|
*
|
|
53
53
|
* This endpoint reads a stored snapshot rather than calling the venues, so the rows are as old as the last ingestion crawl, not as old as the request. `snapshot.observed_at` reports that age and is stable across a cursor traversal.
|
|
54
54
|
*
|
|
55
|
+
* Kalshi's multivariate-event markets (user-built parlays under `KXMVECROSSCATEGORY…` tickers) are excluded from the catalog and from `pagination.total`; every leg they combine is listed individually. A parlay ticker still resolves on `GET /v1/markets/{market_id}`.
|
|
56
|
+
*
|
|
55
57
|
* @param {PredictorSDK.GetMarketsRequest} request
|
|
56
58
|
* @param {PredictorSDKClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
59
|
*
|
package/dist/Client.js
CHANGED
|
@@ -75,7 +75,7 @@ export class PredictorSDKClient {
|
|
|
75
75
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/plans");
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
|
-
* Find cross-platform market matches for sports events. Coverage is NBA, WNBA, NHL, and
|
|
78
|
+
* Find cross-platform market matches for sports events. Coverage is NBA, WNBA, NHL, MLB, and NFL; `canonical_events[].league` names the league and is the first segment of the canonical `event_id`. When called without parameters, returns all currently matched sports markets with cursor-based pagination (default `limit=25`, max `100`) — games whose date has passed are excluded unless you ask for them with `include_settled=true`. Provide a canonical event key, Kalshi event ticker, Polymarket slug, Predict market ID, or SX Bet market ID to look up a specific event — lookups return the full match immediately and skip pagination. Every platform row includes its provider-native `event_id` for use with `GET /v1/events/{event_id}`; pass that row's `platform` value as the events endpoint's `platform` query parameter, which is required to disambiguate Predict and AlphaArcade identifiers.
|
|
79
79
|
*
|
|
80
80
|
* @param {PredictorSDK.GetSportsMatchingMarketsRequest} request
|
|
81
81
|
* @param {PredictorSDKClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -215,6 +215,8 @@ export class PredictorSDKClient {
|
|
|
215
215
|
*
|
|
216
216
|
* This endpoint reads a stored snapshot rather than calling the venues, so the rows are as old as the last ingestion crawl, not as old as the request. `snapshot.observed_at` reports that age and is stable across a cursor traversal.
|
|
217
217
|
*
|
|
218
|
+
* Kalshi's multivariate-event markets (user-built parlays under `KXMVECROSSCATEGORY…` tickers) are excluded from the catalog and from `pagination.total`; every leg they combine is listed individually. A parlay ticker still resolves on `GET /v1/markets/{market_id}`.
|
|
219
|
+
*
|
|
218
220
|
* @param {PredictorSDK.GetMarketsRequest} request
|
|
219
221
|
* @param {PredictorSDKClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
220
222
|
*
|
|
@@ -2,9 +2,9 @@ import type * as PredictorSDK from "../index.js";
|
|
|
2
2
|
export interface CanonicalSportsEvent {
|
|
3
3
|
/** Stable canonical event key. */
|
|
4
4
|
eventId: string;
|
|
5
|
-
/** Canonical sport slug. `basketball`, `hockey`, or `
|
|
5
|
+
/** Canonical sport slug. `basketball`, `hockey`, `baseball`, or `football` today. */
|
|
6
6
|
sport?: string;
|
|
7
|
-
/** Canonical league slug. Cross-platform matching covers `nba`, `wnba`, `nhl`, and `
|
|
7
|
+
/** Canonical league slug. Cross-platform matching covers `nba`, `wnba`, `nhl`, `mlb`, and `nfl` today. The value is the first segment of `event_id`, so `nba-okc-sas-2026-10-20` is an NBA game. Treat this as an open set — leagues are added without a breaking change. */
|
|
8
8
|
league?: string;
|
|
9
9
|
title: string;
|
|
10
10
|
participants?: PredictorSDK.CanonicalSportsParticipant[];
|