@0xinsider/sdk 0.110.0 → 0.112.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/dist/schema.d.ts CHANGED
@@ -788,6 +788,8 @@ export type EdgeHunterObservation = {
788
788
  most_held_48h_position?: number | null;
789
789
  /** admission=most_held_48h_min_25_usd only: of indexed_graded_holders, the S, A and B graded wallets whose position in the market is worth $25 or more, both outcomes together, at the value the 0xinsider index last read for the wallet. That selection ranks each sport by this count, then by most volume, then by soonest game_start_time, then by condition_id, at most 4 markets per event. It is never larger than indexed_graded_holders. Omitted on every other response. */
790
790
  indexed_graded_holders_min_25_usd?: number;
791
+ /** The Polymarket protocol the market trades on, Gamma's market version: v1 (CTF, ConditionalTokens) or v2 (Protocol V2). Read from the condition id, the same value GET /api/v1/markets/settled serves. On a v2 market every token_id this object names is a V2 position id: sign its orders for ExchangeV3 and read its balance as CONDITIONAL-V2. */
792
+ protocol_version: "v1" | "v2";
791
793
  };
792
794
  /** Measured coverage of the frozen canonical observation generation and this requested page. For sports and esports reads, the first four counts remain global through category, cohort and all selectors; with admission=most_held_48h they count that selection's generation, where every wider_holder candidate it did not take is capacity_limited. They are neither a census of all provider markets nor a count of successfully evaluated holders. Selected and returned counts describe the requested projection. An unmappable legacy category synthesizes a zero-work empty generation with all six counts zero and no degradation reasons; it does not read the all-sports cache. */
793
795
  export type EdgeHunterObservationCoverage = {
@@ -966,6 +968,8 @@ export type EdgeHunterRankedSignal = {
966
968
  rank: number;
967
969
  /** Required nullable frozen metadata context. Null only during the legacy-generation transition; selected reads require sidecar readiness and fail closed with 503 instead. */
968
970
  market_context: EdgeHunterMarketContext | null;
971
+ /** The Polymarket protocol the market trades on, Gamma's market version: v1 (CTF, ConditionalTokens) or v2 (Protocol V2). Read from the condition id, the same value GET /api/v1/markets/settled serves. On a v2 market every token_id this object names is a V2 position id: sign its orders for ExchangeV3 and read its balance as CONDITIONAL-V2. */
972
+ protocol_version: "v1" | "v2";
969
973
  };
970
974
  /** One full Max row from Edge Hunter. signal is populated on every row this endpoint returns. Identity and quotes preserve provider values; unknown values stay null. */
971
975
  export type EdgeHunterRow = {
@@ -986,6 +990,8 @@ export type EdgeHunterRow = {
986
990
  signal: EdgeHunterSignal | null;
987
991
  /** Required nullable frozen metadata context. Null only during the legacy-generation transition; selected reads require sidecar readiness and fail closed with 503 instead. */
988
992
  market_context: EdgeHunterMarketContext | null;
993
+ /** The Polymarket protocol the market trades on, Gamma's market version: v1 (CTF, ConditionalTokens) or v2 (Protocol V2). Read from the condition id, the same value GET /api/v1/markets/settled serves. On a v2 market every token_id this object names is a V2 position id: sign its orders for ExchangeV3 and read its balance as CONDITIONAL-V2. */
994
+ protocol_version: "v1" | "v2";
989
995
  };
990
996
  /** Normalized requested selection axes. Only requested axes appear; omitted for unselected defaults. Arrays are nonempty, sorted and deduplicated. OR within an axis, AND across axes. */
991
997
  export type EdgeHunterSelection = {
@@ -1295,6 +1301,8 @@ export type ExploreMarket = {
1295
1301
  enrichment_status: "available" | "unavailable";
1296
1302
  price_status: "available" | "unavailable";
1297
1303
  };
1304
+ /** The Polymarket protocol the market trades on, Gamma's market version: v1 (CTF, ConditionalTokens) or v2 (Protocol V2). Read from the condition id, the same value GET /api/v1/markets/settled serves. On a v2 market every token_id this object names is a V2 position id: sign its orders for ExchangeV3 and read its balance as CONDITIONAL-V2. */
1305
+ protocol_version: "v1" | "v2";
1298
1306
  };
1299
1307
  export type ExploreStandalone = {
1300
1308
  type: "standalone";
@@ -1635,6 +1643,8 @@ export type GameMarket = {
1635
1643
  id: string;
1636
1644
  /** The raw provider condition id. */
1637
1645
  condition_id: string;
1646
+ /** The Polymarket protocol the market trades on: v1 (CTF) or v2 (Protocol V2), read from the condition id, as GET /api/v1/games/{event_slug}/markets serves it. On a v2 market each outcome_token_ids entry is a V2 position id. */
1647
+ protocol_version: "v1" | "v2";
1638
1648
  /** Always polymarket. */
1639
1649
  platform: "polymarket";
1640
1650
  /** The provider's market slug. Omitted when the provider sent none. */
@@ -2449,6 +2459,8 @@ export type MarketFlow = {
2449
2459
  category: string | null;
2450
2460
  /** Provider platform. Always polymarket, or null when the row carries no stored value. */
2451
2461
  platform: "polymarket" | null;
2462
+ /** The Polymarket protocol the market trades on, Gamma's market version: v1 (CTF, ConditionalTokens) or v2 (Protocol V2). Read from the condition id, the same value GET /api/v1/markets/settled serves. On a v2 market every token_id this object names is a V2 position id: sign its orders for ExchangeV3 and read its balance as CONDITIONAL-V2. */
2463
+ protocol_version: "v1" | "v2";
2452
2464
  };
2453
2465
  /** Outcome-aware flow from all tracked whale trades in the window, without a grade filter. BUY YES and SELL NO add net exposure; BUY NO and SELL YES subtract it. Gross buy/sell volumes count both outcomes. Top positions are separately graded. Direction uses unrounded net: negative is NO, otherwise YES; the zero tie-break is not conviction. Canonical; smart_money is a deprecated byte-identical alias. */
2454
2466
  sharp_money: MarketFlowSharpMoney;
@@ -2563,6 +2575,8 @@ export type MarketHoldersMarket = {
2563
2575
  end_date?: string;
2564
2576
  /** A settled market's roster is whatever the provider still lists as open; it empties as holders redeem. */
2565
2577
  status: "open" | "closed" | "resolved";
2578
+ /** The Polymarket protocol the market trades on, Gamma's market version: v1 (CTF, ConditionalTokens) or v2 (Protocol V2). Read from the condition id, the same value GET /api/v1/markets/settled serves. On a v2 market every token_id this object names is a V2 position id: sign its orders for ExchangeV3 and read its balance as CONDITIONAL-V2. */
2579
+ protocol_version: "v1" | "v2";
2566
2580
  };
2567
2581
  export type MarketHoldersScan = {
2568
2582
  /** `cached`: the shared holder snapshot, at most 180 s old at compute time. `live`: the provider answered a fresh complete walk for this compute. */
@@ -3412,6 +3426,8 @@ export type PickOfTheDay = {
3412
3426
  sealed_at?: string;
3413
3427
  /** The backed market's Polymarket sports market type as recorded with the pick: moneyline, spreads, totals, map_handicap and others, the value the archive row returns for the pick. Omitted when the market states none. Additive and optional. */
3414
3428
  sports_market_type?: string;
3429
+ /** The Polymarket protocol the market trades on, Gamma's market version: v1 (CTF, ConditionalTokens) or v2 (Protocol V2). Read from the condition id, the same value GET /api/v1/markets/settled serves. On a v2 market every token_id this object names is a V2 position id: sign its orders for ExchangeV3 and read its balance as CONDITIONAL-V2. */
3430
+ protocol_version?: "v1" | "v2";
3415
3431
  };
3416
3432
  export type PickOfTheDayArchive = {
3417
3433
  /** Published Pick of the Day selections that have not been withdrawn, newest first by pick_date and then pick_rank within each product day. Withdrawn rows stay excluded after settlement. */
@@ -4560,6 +4576,10 @@ export type ReportPayload = {
4560
4576
  pseudonym: string | null;
4561
4577
  /** Trader grade (S-F) at snapshot time. */
4562
4578
  trader_grade: "S" | "A" | "B" | "C" | "D" | "F" | null;
4579
+ /** The trade's market. Null in a report body built before this field shipped in November 2026: a closed period keeps the body it was built with. */
4580
+ condition_id: string | null;
4581
+ /** The Polymarket protocol of the trade's market: v1 (CTF, ConditionalTokens) or v2 (Protocol V2), read from condition_id. On a v2 market token_id is a V2 position id. Null when condition_id is null: the protocol is unknown and never guessed. */
4582
+ protocol_version: "v1" | "v2" | null;
4563
4583
  })[] | null;
4564
4584
  top_whale_trades: ({
4565
4585
  /** Provider outcome label for the traded side. */
@@ -4588,6 +4608,10 @@ export type ReportPayload = {
4588
4608
  pseudonym: string | null;
4589
4609
  /** Trader grade (S-F) at snapshot time. */
4590
4610
  trader_grade: "S" | "A" | "B" | "C" | "D" | "F" | null;
4611
+ /** The trade's market. Null in a report body built before this field shipped in November 2026: a closed period keeps the body it was built with. */
4612
+ condition_id: string | null;
4613
+ /** The Polymarket protocol of the trade's market: v1 (CTF, ConditionalTokens) or v2 (Protocol V2), read from condition_id. On a v2 market token_id is a V2 position id. Null when condition_id is null: the protocol is unknown and never guessed. */
4614
+ protocol_version: "v1" | "v2" | null;
4591
4615
  })[] | null;
4592
4616
  categories: ({
4593
4617
  category: string | null;
@@ -6549,7 +6573,7 @@ export interface OperationData {
6549
6573
  }[];
6550
6574
  pick_count: number;
6551
6575
  pick_date: string;
6552
- picks: {
6576
+ picks: ({
6553
6577
  backed_price?: number;
6554
6578
  category?: string;
6555
6579
  clv_pct?: number;
@@ -6582,7 +6606,9 @@ export interface OperationData {
6582
6606
  sharp_positioned_usd?: number;
6583
6607
  /** The full pick's sports_market_type. */
6584
6608
  sports_market_type?: string;
6585
- }[];
6609
+ /** The Polymarket protocol the market trades on, Gamma's market version: v1 (CTF, ConditionalTokens) or v2 (Protocol V2). Read from the condition id, the same value GET /api/v1/markets/settled serves. On a v2 market every token_id this object names is a V2 position id: sign its orders for ExchangeV3 and read its balance as CONDITIONAL-V2. */
6610
+ protocol_version?: "v1" | "v2";
6611
+ })[];
6586
6612
  proof_pending_picks?: ({
6587
6613
  is_free_selection: boolean;
6588
6614
  kickoff?: string;
@@ -7516,6 +7542,8 @@ export interface OperationQuery {
7516
7542
  starts_before?: string;
7517
7543
  /** Which games to read. all, the default, lists the whole covered catalog, which can start with games the provider still holds open weeks after kickoff. now lists what is on now: every game the provider reports in play (live or paused), plus any other game whose kickoff was at most 3 hours ago or is still to come; ended, postponed and cancelled games are left out, and a game with no published kickoff stays and sorts last. Combines with every other filter. A value other than all or now returns 400 invalid_query with error.param=window. */
7518
7544
  window?: "all" | "now";
7545
+ /** v1 lists the games with a market on Polymarket's CTF exchanges, v2 the ones with a market on Protocol V2 (ExchangeV3), and each listed game's markets[] keeps only the markets on that protocol, each market's protocol_version. Omitted keeps both. Combines with every other filter. Any other value returns 400 invalid_query with error.param=protocol_version. */
7546
+ protocol_version?: "v1" | "v2";
7519
7547
  /** Page size. Out-of-range values are clamped to 1..100. */
7520
7548
  limit?: number;
7521
7549
  /** Opaque gms_v1_ cursor from next_cursor. It pins the page position (kickoff and event_slug), not a snapshot: the catalog is live, so a game added or removed between pages moves with it. With a finished status, a page that spent its read budget carries a cursor past everything it read, which may be past the last game it returned. A cursor this endpoint did not issue returns 400 with error.param=cursor. */
@@ -7636,6 +7664,8 @@ export interface OperationQuery {
7636
7664
  condition_id?: string;
7637
7665
  /** Only the large trades in one game: every market of the game behind this event slug, the moneyline, spreads, totals and props, as GET /api/v1/games/{event_slug}/trades reads them. Matched case-insensitively. Newest first only (sort=market_volume_share answers 400), pages with cursor, and cannot be combined with since or with condition_id (400). An unknown slug answers 404 not_found with error.param event_slug. */
7638
7666
  event_slug?: string;
7667
+ /** v1 keeps the large trades on markets that trade on Polymarket's CTF exchanges, v2 the ones on Protocol V2 (ExchangeV3), read from each trade's condition_id. Omitted keeps both. Combines with every other filter, since and cursor included; with condition_id or event_slug it keeps that market's or game's trades on the protocol, so a market on the other protocol answers an empty list. Any other value returns 400 bad_request with error.param protocol_version. */
7668
+ protocol_version?: "v1" | "v2";
7639
7669
  };
7640
7670
  listLeaderboard: {
7641
7671
  /** Maximum number of ranked traders to return. Out-of-range values are clamped to 1..100. */
@@ -7705,6 +7735,8 @@ export interface OperationQuery {
7705
7735
  min_grade?: "S" | "A" | "B" | "C" | "D" | "F";
7706
7736
  /** Filter by the binary outcome side. `yes` maps to outcome_index=0, `no` to outcome_index=1. */
7707
7737
  side?: "yes" | "no";
7738
+ /** v1 keeps the positions on markets that trade on Polymarket's CTF exchanges, v2 the ones on Protocol V2 (ExchangeV3), read from each position's condition_id. Omitted keeps both. Combines with every other filter, and a consistency=snapshot cursor is bound to it. Any other value returns 400 bad_request with error.param protocol_version. */
7739
+ protocol_version?: "v1" | "v2";
7708
7740
  };
7709
7741
  listPriceMoves: {
7710
7742
  /** One league prefix, lowercase, as the event slug starts: nba, nfl, epl, cs2. Name at most one of league, event_slug and condition_id. */
@@ -7927,6 +7959,8 @@ export interface OperationQuery {
7927
7959
  condition_id?: string;
7928
7960
  /** Only the large trades in one game: every market of the game behind this event slug, the moneyline, spreads, totals and props, as GET /api/v1/games/{event_slug}/trades reads them. Matched case-insensitively. Newest first only (sort=market_volume_share answers 400), pages with cursor, and cannot be combined with since or with condition_id (400). An unknown slug answers 404 not_found with error.param event_slug. */
7929
7961
  event_slug?: string;
7962
+ /** v1 keeps the large trades on markets that trade on Polymarket's CTF exchanges, v2 the ones on Protocol V2 (ExchangeV3), read from each trade's condition_id. Omitted keeps both. Combines with every other filter, since and cursor included; with condition_id or event_slug it keeps that market's or game's trades on the protocol, so a market on the other protocol answers an empty list. Any other value returns 400 bad_request with error.param protocol_version. */
7963
+ protocol_version?: "v1" | "v2";
7930
7964
  };
7931
7965
  prepareWebhookSecret: Record<string, never>;
7932
7966
  redeliverWebhookDelivery: Record<string, never>;