@0xinsider/sdk 0.133.0 → 0.133.1

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/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, over the same wallets and values as that side's usd total. Each value is rounded to the cent after summing, so s + a + b can differ from the side total by up to 2 cents. */
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 graded wallets with net exposure; a two-sided wallet counts once. */
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 graded wallets netting YES: a wallet holding both outcomes counts at its net shares' value. */
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 graded wallets netting NO: a wallet holding both outcomes counts at its net shares' value. */
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
- /** yes_usd split by grade: where the S, A and B money on YES sits. */
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
- /** no_usd split by grade: where the S, A and B money on NO sits. */
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` (default) keeps S, A and B. `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. */
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";