@0xinsider/sdk 0.109.0 → 0.111.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 +2 -0
- package/dist/provenance.d.ts +1 -1
- package/dist/provenance.d.ts.map +1 -1
- package/dist/provenance.js +2 -2
- package/dist/provenance.js.map +1 -1
- package/dist/schema.d.ts +28 -4
- package/dist/schema.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -205,6 +205,8 @@ if (slate.object === "pick_of_the_day") {
|
|
|
205
205
|
|
|
206
206
|
SDK 0.109.0 gives `switched` and `hedged` a 10% share margin (#36174). `switched` now needs at least 10% more shares of the other outcome than of the backed one, so a wallet holding equal shares of both no longer reads `switched`. `hedged` now needs other-outcome shares of at least a tenth of the backed shares, so a small other-side leg against a large position no longer reads `hedged`. A wallet that falls out of either state reads by the rest of the precedence: one that redeemed reads `redeemed`. Only the description of `after_release.state` changes; the type and its values do not.
|
|
207
207
|
|
|
208
|
+
SDK 0.111.0 types `protocol_version` (#35904) on the rest of the market objects that hand out a `token_id`: `market` on `getMarketFlow`, `batchGetMarketFlow`, `getMarketHolders`, `getMarketTopHolders` and each `getGameHolders` item, every `exploreMarkets` market, every Edge Hunter board, signal and observation row, a full `getPickOfTheDay` pick and its summary item, and each report's `top_large_trades[]` and `top_whale_trades[]` entry, which also gains `condition_id`. On a report built before November 19, 2026 both are `null`: that body is kept as built, and the protocol is unknown.
|
|
209
|
+
|
|
208
210
|
SDK 0.41.0 adds the closing line (#32517). `getMarketClose(conditionId)` reads a market's stored close: each outcome's price in the last provider minute bucket that ended at or before kickoff, captured once after settlement. Its `status` is `measured`, `pending` or `unavailable`, with `unavailable_reason`; a missing close is never 0. Every large trade (`listLargeTrades`, `listLargeTradeHistory`, `getLargeTrade`, and the expanded trades of the `getEventReplaySince` replay) now carries `clv`: cents per share against that close, positive when the trade beat it, measured on pre-kickoff trades only (`status` `measured`, `in_play`, `pending` or `unavailable`). `getTraderClv(address, { from, to, min_size, category })` summarizes one wallet's large trades in a window: the mean, stake-weighted and per-market mean CLV with a 95% interval, the share that beat the close, and the trades excluded by status. `batchGetMarketClose({ condition_ids })` reads up to 25 markets' closes in one request (#33025). New types: `MarketClose`, `TraderClv`.
|
|
209
211
|
|
|
210
212
|
```ts
|
package/dist/provenance.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const OPENAPI_SOURCE = "https://0xinsider.com/api/v1/openapi.json";
|
|
2
|
-
export declare const OPENAPI_SHA256 = "
|
|
2
|
+
export declare const OPENAPI_SHA256 = "4fc05160cdd1a63b11b17e766a0579ab4664ee671a4fe61bd9938576495fb92b";
|
|
3
3
|
export declare const OPENAPI_VERSION = "1.0.0";
|
|
4
4
|
export declare const OPERATION_COUNT = 118;
|
|
5
5
|
export declare const APP_REPOSITORY = "0xinsider/0xinsider";
|
package/dist/provenance.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provenance.d.ts","sourceRoot":"","sources":["../src/provenance.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,cAAc,8CAA8C,CAAC;AAC1E,eAAO,MAAM,cAAc,qEAAqE,CAAC;AACjG,eAAO,MAAM,eAAe,UAAU,CAAC;AACvC,eAAO,MAAM,eAAe,MAAM,CAAC;AACnC,eAAO,MAAM,cAAc,wBAAwB,CAAC;AACpD,eAAO,MAAM,aAAa,mCAAmC,CAAC;AAC9D,eAAO,MAAM,UAAU,EAAE,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"provenance.d.ts","sourceRoot":"","sources":["../src/provenance.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,cAAc,8CAA8C,CAAC;AAC1E,eAAO,MAAM,cAAc,qEAAqE,CAAC;AACjG,eAAO,MAAM,eAAe,UAAU,CAAC;AACvC,eAAO,MAAM,eAAe,MAAM,CAAC;AACnC,eAAO,MAAM,cAAc,wBAAwB,CAAC;AACpD,eAAO,MAAM,aAAa,mCAAmC,CAAC;AAC9D,eAAO,MAAM,UAAU,EAAE,MAAM,GAAG,IAAiD,CAAC"}
|
package/dist/provenance.js
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
// when it could be resolved, else null. Compare OPENAPI_SHA256 with the live
|
|
7
7
|
// document to see whether a release is behind the API.
|
|
8
8
|
export const OPENAPI_SOURCE = "https://0xinsider.com/api/v1/openapi.json";
|
|
9
|
-
export const OPENAPI_SHA256 = "
|
|
9
|
+
export const OPENAPI_SHA256 = "4fc05160cdd1a63b11b17e766a0579ab4664ee671a4fe61bd9938576495fb92b";
|
|
10
10
|
export const OPENAPI_VERSION = "1.0.0";
|
|
11
11
|
export const OPERATION_COUNT = 118;
|
|
12
12
|
export const APP_REPOSITORY = "0xinsider/0xinsider";
|
|
13
13
|
export const APP_SPEC_PATH = "web/public/api/v1/openapi.json";
|
|
14
|
-
export const APP_COMMIT =
|
|
14
|
+
export const APP_COMMIT = "353fdba67a4404c7cd1c9b6cfe50016616ffba8d";
|
|
15
15
|
//# sourceMappingURL=provenance.js.map
|
package/dist/provenance.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provenance.js","sourceRoot":"","sources":["../src/provenance.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,4EAA4E;AAC5E,kEAAkE;AAClE,8EAA8E;AAC9E,6EAA6E;AAC7E,uDAAuD;AAEvD,MAAM,CAAC,MAAM,cAAc,GAAG,2CAA2C,CAAC;AAC1E,MAAM,CAAC,MAAM,cAAc,GAAG,kEAAkE,CAAC;AACjG,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAC;AACvC,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAC;AACnC,MAAM,CAAC,MAAM,cAAc,GAAG,qBAAqB,CAAC;AACpD,MAAM,CAAC,MAAM,aAAa,GAAG,gCAAgC,CAAC;AAC9D,MAAM,CAAC,MAAM,UAAU,GAAkB,
|
|
1
|
+
{"version":3,"file":"provenance.js","sourceRoot":"","sources":["../src/provenance.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,4EAA4E;AAC5E,kEAAkE;AAClE,8EAA8E;AAC9E,6EAA6E;AAC7E,uDAAuD;AAEvD,MAAM,CAAC,MAAM,cAAc,GAAG,2CAA2C,CAAC;AAC1E,MAAM,CAAC,MAAM,cAAc,GAAG,kEAAkE,CAAC;AACjG,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAC;AACvC,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAC;AACnC,MAAM,CAAC,MAAM,cAAc,GAAG,qBAAqB,CAAC;AACpD,MAAM,CAAC,MAAM,aAAa,GAAG,gCAAgC,CAAC;AAC9D,MAAM,CAAC,MAAM,UAAU,GAAkB,0CAA0C,CAAC"}
|
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";
|
|
@@ -2449,6 +2457,8 @@ export type MarketFlow = {
|
|
|
2449
2457
|
category: string | null;
|
|
2450
2458
|
/** Provider platform. Always polymarket, or null when the row carries no stored value. */
|
|
2451
2459
|
platform: "polymarket" | null;
|
|
2460
|
+
/** 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. */
|
|
2461
|
+
protocol_version: "v1" | "v2";
|
|
2452
2462
|
};
|
|
2453
2463
|
/** 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
2464
|
sharp_money: MarketFlowSharpMoney;
|
|
@@ -2563,6 +2573,8 @@ export type MarketHoldersMarket = {
|
|
|
2563
2573
|
end_date?: string;
|
|
2564
2574
|
/** A settled market's roster is whatever the provider still lists as open; it empties as holders redeem. */
|
|
2565
2575
|
status: "open" | "closed" | "resolved";
|
|
2576
|
+
/** 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. */
|
|
2577
|
+
protocol_version: "v1" | "v2";
|
|
2566
2578
|
};
|
|
2567
2579
|
export type MarketHoldersScan = {
|
|
2568
2580
|
/** `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 +3424,8 @@ export type PickOfTheDay = {
|
|
|
3412
3424
|
sealed_at?: string;
|
|
3413
3425
|
/** 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
3426
|
sports_market_type?: string;
|
|
3427
|
+
/** 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. */
|
|
3428
|
+
protocol_version?: "v1" | "v2";
|
|
3415
3429
|
};
|
|
3416
3430
|
export type PickOfTheDayArchive = {
|
|
3417
3431
|
/** 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 +4574,10 @@ export type ReportPayload = {
|
|
|
4560
4574
|
pseudonym: string | null;
|
|
4561
4575
|
/** Trader grade (S-F) at snapshot time. */
|
|
4562
4576
|
trader_grade: "S" | "A" | "B" | "C" | "D" | "F" | null;
|
|
4577
|
+
/** 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. */
|
|
4578
|
+
condition_id: string | null;
|
|
4579
|
+
/** 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. */
|
|
4580
|
+
protocol_version: "v1" | "v2" | null;
|
|
4563
4581
|
})[] | null;
|
|
4564
4582
|
top_whale_trades: ({
|
|
4565
4583
|
/** Provider outcome label for the traded side. */
|
|
@@ -4588,6 +4606,10 @@ export type ReportPayload = {
|
|
|
4588
4606
|
pseudonym: string | null;
|
|
4589
4607
|
/** Trader grade (S-F) at snapshot time. */
|
|
4590
4608
|
trader_grade: "S" | "A" | "B" | "C" | "D" | "F" | null;
|
|
4609
|
+
/** 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. */
|
|
4610
|
+
condition_id: string | null;
|
|
4611
|
+
/** 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. */
|
|
4612
|
+
protocol_version: "v1" | "v2" | null;
|
|
4591
4613
|
})[] | null;
|
|
4592
4614
|
categories: ({
|
|
4593
4615
|
category: string | null;
|
|
@@ -6034,7 +6056,7 @@ export type Usage = {
|
|
|
6034
6056
|
};
|
|
6035
6057
|
/** The monthly request quota (#16111): where the account stands against the requests the current Pro or Max plan includes per UTC calendar month. Reading it here spends nothing. null only when the month's count could not be read for this response. */
|
|
6036
6058
|
monthly_quota: {
|
|
6037
|
-
/**
|
|
6059
|
+
/** Requests this UTC calendar month that answered below 500. A 4xx counts. A 5xx does not. */
|
|
6038
6060
|
used: number;
|
|
6039
6061
|
/** Requests the account's plan includes per UTC calendar month: 500,000 for Pro, 2,000,000 for Max. */
|
|
6040
6062
|
limit: number;
|
|
@@ -6549,7 +6571,7 @@ export interface OperationData {
|
|
|
6549
6571
|
}[];
|
|
6550
6572
|
pick_count: number;
|
|
6551
6573
|
pick_date: string;
|
|
6552
|
-
picks: {
|
|
6574
|
+
picks: ({
|
|
6553
6575
|
backed_price?: number;
|
|
6554
6576
|
category?: string;
|
|
6555
6577
|
clv_pct?: number;
|
|
@@ -6582,7 +6604,9 @@ export interface OperationData {
|
|
|
6582
6604
|
sharp_positioned_usd?: number;
|
|
6583
6605
|
/** The full pick's sports_market_type. */
|
|
6584
6606
|
sports_market_type?: string;
|
|
6585
|
-
|
|
6607
|
+
/** 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. */
|
|
6608
|
+
protocol_version?: "v1" | "v2";
|
|
6609
|
+
})[];
|
|
6586
6610
|
proof_pending_picks?: ({
|
|
6587
6611
|
is_free_selection: boolean;
|
|
6588
6612
|
kickoff?: string;
|
|
@@ -6748,7 +6772,7 @@ export interface OperationData {
|
|
|
6748
6772
|
};
|
|
6749
6773
|
/** The monthly request quota (#16111): where the account stands against the requests the current Pro or Max plan includes per UTC calendar month. Reading it here spends nothing. null only when the month's count could not be read for this response. */
|
|
6750
6774
|
monthly_quota: {
|
|
6751
|
-
/**
|
|
6775
|
+
/** Requests this UTC calendar month that answered below 500. A 4xx counts. A 5xx does not. */
|
|
6752
6776
|
used: number;
|
|
6753
6777
|
/** Requests the account's plan includes per UTC calendar month: 500,000 for Pro, 2,000,000 for Max. */
|
|
6754
6778
|
limit: number;
|