@0xinsider/sdk 0.133.0 → 0.133.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 +8 -5
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +8 -5
- package/dist/client.js.map +1 -1
- package/dist/provenance.d.ts +1 -1
- package/dist/provenance.js +2 -2
- package/dist/schema.d.ts +15 -10
- package/dist/schema.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -2856,12 +2856,13 @@ export type MarketHoldersScan = {
|
|
|
2856
2856
|
/** Every distinct wallet the complete walk saw with open shares, graded or not. The roster lists the graded S/A/B subset. */
|
|
2857
2857
|
wallet_count: number;
|
|
2858
2858
|
};
|
|
2859
|
+
/** Wallets netting one side by grade, B included: s + a is that side's count, and b is the B wallets beside it, in no total (#36945). */
|
|
2859
2860
|
export type MarketHoldersSideGrades = {
|
|
2860
2861
|
s: number;
|
|
2861
2862
|
a: number;
|
|
2862
2863
|
b: number;
|
|
2863
2864
|
};
|
|
2864
|
-
/** The rows' current_value_usd per grade on one side,
|
|
2865
|
+
/** The rows' current_value_usd per grade on one side, on the same values as that side's usd total, which counts S and A wallets (#36945): s + a is that total, and b is the B wallets' value beside it, in no total. Before #36945 the total was s + a + b. */
|
|
2865
2866
|
export type MarketHoldersSideGradeUsd = {
|
|
2866
2867
|
/** USD held by S-grade wallets netting this side. */
|
|
2867
2868
|
s: number;
|
|
@@ -2870,23 +2871,27 @@ export type MarketHoldersSideGradeUsd = {
|
|
|
2870
2871
|
/** USD held by B-grade wallets netting this side. */
|
|
2871
2872
|
b: number;
|
|
2872
2873
|
};
|
|
2873
|
-
/** Roster totals BEFORE any `outcome` or `min_grade` filter, so a page always knows the whole market it was cut from. */
|
|
2874
|
+
/** Roster totals BEFORE any `outcome` or `min_grade` filter, so a page always knows the whole market it was cut from. The counts, shares and dollars count S and A wallets, the graded money; the per-grade splits list B beside them, in no total (#36945, November 2026; before, every total counted B). A stored kickoff roster's totals are recomputed on the same basis. */
|
|
2874
2875
|
export type MarketHoldersTotals = {
|
|
2875
|
-
/** Distinct
|
|
2876
|
+
/** Distinct S and A wallets with net exposure; a two-sided wallet counts once. B wallets are in yes_grades.b and no_grades.b. */
|
|
2876
2877
|
graded_count: number;
|
|
2878
|
+
/** S and A wallets netting YES: yes_grades.s + yes_grades.a. */
|
|
2877
2879
|
yes_count: number;
|
|
2880
|
+
/** S and A wallets netting NO: no_grades.s + no_grades.a. */
|
|
2878
2881
|
no_count: number;
|
|
2882
|
+
/** The S and A wallets' net YES shares. */
|
|
2879
2883
|
yes_shares: number;
|
|
2884
|
+
/** The S and A wallets' net NO shares. */
|
|
2880
2885
|
no_shares: number;
|
|
2881
|
-
/** The rows' current_value_usd summed over the
|
|
2886
|
+
/** The rows' current_value_usd summed over the S and A wallets netting YES: a wallet holding both outcomes counts at its net shares' value. */
|
|
2882
2887
|
yes_usd: number;
|
|
2883
|
-
/** The rows' current_value_usd summed over the
|
|
2888
|
+
/** The rows' current_value_usd summed over the S and A wallets netting NO: a wallet holding both outcomes counts at its net shares' value. */
|
|
2884
2889
|
no_usd: number;
|
|
2885
2890
|
yes_grades: MarketHoldersSideGrades;
|
|
2886
2891
|
no_grades: MarketHoldersSideGrades;
|
|
2887
|
-
/**
|
|
2892
|
+
/** YES value by grade: s + a is yes_usd; b is the B wallets' value, in no total. */
|
|
2888
2893
|
yes_grade_usd: MarketHoldersSideGradeUsd;
|
|
2889
|
-
/**
|
|
2894
|
+
/** NO value by grade: s + a is no_usd; b is the B wallets' value, in no total. */
|
|
2890
2895
|
no_grade_usd: MarketHoldersSideGradeUsd;
|
|
2891
2896
|
};
|
|
2892
2897
|
/** `market_price_moved` data, also the MarketPriceMoved frame on GET /api/v1/stream: a sports or esports market's outcome-0 midpoint moved a whole-cent level over one window. Prices are decimal strings at full precision. A missing value is null with its *_unavailable_reason. */
|
|
@@ -7519,11 +7524,11 @@ export interface OperationQuery {
|
|
|
7519
7524
|
getMarketHolders: {
|
|
7520
7525
|
/** Keep holders netting one side. `all` (default) lists both. */
|
|
7521
7526
|
outcome?: "yes" | "no" | "all";
|
|
7522
|
-
/** Narrow within the graded cohort: `S` keeps S, `A` keeps S and A, `B`
|
|
7527
|
+
/** Narrow within the graded cohort: `S` keeps S, `A` (default) keeps S and A, the graded money, `B` keeps S, A and B. The default was `B` until #36945 (November 2026); pass `min_grade=B` for the whole roster. `C`, `D` and `F` are rejected with 400: the route lists the S/A/B cohort only. The cohort is the wallet's current grade (`traders.latest_grade`), so no value here reaches a C, D, F or ungraded holder; those are counted only in `scan.wallet_count`. `min_grade=D` on GET /api/v1/positions does return C and D, which is one of the three reasons the two routes' counts differ for the same market. */
|
|
7523
7528
|
min_grade?: "S" | "A" | "B";
|
|
7524
7529
|
/** Maximum holders per page. Out-of-range values are clamped to 1..100. */
|
|
7525
7530
|
limit?: number;
|
|
7526
|
-
/** Opaque pagination cursor from the previous response's next_cursor. New cursors carry an absolute next offset bound to normalized condition_id, outcome and effective min_grade, so limit can change without skipping or repeating rows on the same roster. Different market/filter bindings return 400 bad_request with param=cursor; omitted filters match all/B and mkt_-prefixed IDs match their raw condition_id. Page-only cursors from before 2026-10-02 are no longer accepted and return 400 bad_request with param=cursor; restart without a cursor. A cursor remains valid across roster refreshes, which can still repeat or skip holders as the live roster changes. A cursor also carries as_of: replay it with the same as_of, or receive 400 bad_request with param=cursor. */
|
|
7531
|
+
/** Opaque pagination cursor from the previous response's next_cursor. New cursors carry an absolute next offset bound to normalized condition_id, outcome and effective min_grade, so limit can change without skipping or repeating rows on the same roster. Different market/filter bindings return 400 bad_request with param=cursor; omitted filters match all/A (all/B for a cursor from before #36945, which now returns that 400 without min_grade=B) and mkt_-prefixed IDs match their raw condition_id. Page-only cursors from before 2026-10-02 are no longer accepted and return 400 bad_request with param=cursor; restart without a cursor. A cursor remains valid across roster refreshes, which can still repeat or skip holders as the live roster changes. A cursor also carries as_of: replay it with the same as_of, or receive 400 bad_request with param=cursor. */
|
|
7527
7532
|
cursor?: string;
|
|
7528
7533
|
/** kickoff: the roster as it stood at the game's kickoff, for a sports or esports game moneyline (#34064). Omit it for the current roster; any other value is 400 bad_request with param=as_of. Holders, shares, current_value_usd and the population come from the newest complete holder walk or pregame census held in the 15 minutes before kickoff (as_of.population_fetched_at, as much as about 4 hours before kickoff); grades, badges and category records were read when the roster was computed (as_of.captured_at). Both are before as_of.kickoff_at, and the stored roster is never rewritten after it. market.status and market.end_date are read now; everything else is the kickoff instant's. Until 30 s after kickoff: 404 not_found, error.reason kickoff_roster_pending, retry_at at that instant. No stored roster (not a game moneyline, a game that kicked off before the capture shipped, a game whose live score showed play before its listed kickoff, or no complete population held before kickoff): 404 not_found, error.reason kickoff_roster_not_captured, terminal for that market. A census population keeps no display names, so every holder's name is null (as_of.population_source census). */
|
|
7529
7534
|
as_of?: "kickoff";
|
|
@@ -7756,7 +7761,7 @@ export interface OperationQuery {
|
|
|
7756
7761
|
listGames: {
|
|
7757
7762
|
/** Canonical sport bucket, case-insensitive, with - and _ read as a space: table-tennis and Table Tennis are the same bucket. Omit for every covered sport. A bucket this deployment does not serve returns an empty page, not an error, and the response names sport in X-Query-Unmatched; coverage.sports lists the served buckets. Darts games use sport=Darts; their league is the provider's competition name, as for tennis and cricket, such as modus super series or grand slam of darts. Rugby games use sport=Rugby; their league is the provider's league code, such as rutopft for the Top 14, and a match lists home, Draw and away moneyline legs, as a soccer 1X2 game does. */
|
|
7758
7763
|
sport?: string;
|
|
7759
|
-
/** League tag, case-insensitive, as this list's coverage.leagues spells it (GET /api/v1/coverage lists no leagues): nfl, epl, cs2, euroleague, cbb, cwbb, bkbsl. EuroLeague games use sport=Basketball and league=euroleague; NCAA men's and women's college basketball games use sport=Basketball with league=cbb and league=cwbb; Turkey's Basketbol Super Ligi uses sport=Basketball and league=bkbsl. Any other basketball or hockey league uses the provider's league code, such as ahl, khl or bkligend, listed in coverage.leagues while it has a game. Omit for every league inside the selected sports. */
|
|
7764
|
+
/** League tag, case-insensitive, as this list's coverage.leagues spells it (GET /api/v1/coverage lists no leagues): nfl, epl, cs2, euroleague, cbb, cwbb, bkbsl. EuroLeague games use sport=Basketball and league=euroleague; NCAA men's and women's college basketball games use sport=Basketball with league=cbb and league=cwbb; Turkey's Basketbol Super Ligi uses sport=Basketball and league=bkbsl. Any other basketball or hockey league uses the provider's league code, such as ahl, khl or bkligend, listed in coverage.leagues while it has a game. Omit for every league inside the selected sports. It needs no sport: league alone lists that league's games in every sport. A tag outside coverage.leagues that leaves the first page empty returns that empty page, not an error, and the response names league in X-Query-Unmatched. */
|
|
7760
7765
|
league?: string;
|
|
7761
7766
|
/** Keep only games in this state. ended, cancelled and postponed also list finished games that have left the live board, read from their stored records, for kickoffs within starts_after..starts_before (default: the 7 days before now). unknown, suspended and delayed also list started games that have left the live board without a final result, such as a game whose result Polymarket has proposed but not yet settled, from the same stored records and window, while every board source answers (else coverage.sources_unavailable names the one that did not). Such a game is on the unknown list until its result is final, then on the ended list, never both: each list holds the games that read its state at GET /api/v1/games/{event_slug}. Without status, or with scheduled, live or paused, the list is the live and upcoming board. A value outside the enum answers 400 invalid_query with error.param=status, and its message lists the accepted values: upcoming games are scheduled. */
|
|
7762
7767
|
status?: "scheduled" | "live" | "paused" | "ended" | "postponed" | "cancelled" | "suspended" | "delayed" | "unknown";
|