@0xinsider/sdk 0.75.0 → 0.78.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/provenance.d.ts +1 -1
- package/dist/provenance.js +2 -2
- package/dist/schema.d.ts +52 -8
- package/dist/schema.d.ts.map +1 -1
- package/package.json +1 -1
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 = "05b83fd84784654ab24817f283020c89592dc82f27ce1993d5e8b1514c53adeb";
|
|
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.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 = "05b83fd84784654ab24817f283020c89592dc82f27ce1993d5e8b1514c53adeb";
|
|
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 = "b3598711620921cdc538d79067a2f67a021cd7df";
|
|
15
15
|
//# sourceMappingURL=provenance.js.map
|
package/dist/schema.d.ts
CHANGED
|
@@ -1551,7 +1551,7 @@ export type GameFreshness = {
|
|
|
1551
1551
|
source_age_seconds?: number;
|
|
1552
1552
|
/** Whether a reader should be told these rows are behind. This applies the half's own servable-age bar (15 s live, 120 s upcoming), which is not the same as source_freshness: a live board whose scores are seconds old reads stale for about half of every publish cycle and is not delayed. */
|
|
1553
1553
|
delayed: boolean;
|
|
1554
|
-
/** When this game's live-score
|
|
1554
|
+
/** When this game's score was last observed. A write that observed no score, such as recording the end of a game the live-score feed stopped reporting, does not move it; a game ended that way before November 15, 2026 reads the time of that write. Omitted when there is no frame. */
|
|
1555
1555
|
scores_observed_at?: string;
|
|
1556
1556
|
/** The provider's own frame clock. Omitted when the frame carries none. */
|
|
1557
1557
|
scores_source_at?: string;
|
|
@@ -1705,12 +1705,13 @@ export type GamesCoverage = {
|
|
|
1705
1705
|
/** Scopes whose source half was unavailable for this read, as <sport>:<half>. Empty means every scope answered. */
|
|
1706
1706
|
sources_unavailable: string[];
|
|
1707
1707
|
};
|
|
1708
|
-
/** Event-level sharp money for one game. Every aggregate field is null unless status is computed; null means unknown, never zero. */
|
|
1708
|
+
/** Event-level sharp money for one game. Every aggregate field is null unless status is computed, except lifecycle and at_kickoff, which describe the game; null means unknown, never zero. */
|
|
1709
1709
|
export type GameSharpMoney = {
|
|
1710
1710
|
allocation: "exact" | "degraded" | null;
|
|
1711
1711
|
computed_at: string | null;
|
|
1712
1712
|
event_slug: string;
|
|
1713
1713
|
holders_partial: boolean | null;
|
|
1714
|
+
/** live: before the game's scheduled start, the only lifecycle whose outcomes carry pct and a leader. in_play: past its scheduled start, or reported live, and not over, a suspended, postponed or cancelled game included; whether the game is being played is status on GET /api/v1/games/{event_slug}. ended: over, markets not settled. settled: the settled recap. indeterminate: outcome facts are void, partial or contradictory. */
|
|
1714
1715
|
lifecycle: "live" | "settled" | "indeterminate" | "ended" | "in_play" | null;
|
|
1715
1716
|
money_as_of: string | null;
|
|
1716
1717
|
object: string;
|
|
@@ -1753,20 +1754,55 @@ export type GameSharpMoney = {
|
|
|
1753
1754
|
} | {
|
|
1754
1755
|
kind: "withheld";
|
|
1755
1756
|
} | null;
|
|
1757
|
+
/** The split as the site last recorded it before the game's scheduled start, valued at the prices of that moment, while lifecycle is in_play or ended, so outcomes[].pct keeps meaning now. as_of is when that state was recorded. For a game postponed or cancelled after its scheduled start it is still the split before that time. null on every other lifecycle and when no state with graded money was recorded before the start. */
|
|
1758
|
+
at_kickoff: {
|
|
1759
|
+
as_of: string;
|
|
1760
|
+
outcomes: ({
|
|
1761
|
+
is_leader: boolean;
|
|
1762
|
+
label: string;
|
|
1763
|
+
pct: number;
|
|
1764
|
+
side: "home" | "draw" | "away" | null;
|
|
1765
|
+
usd: number;
|
|
1766
|
+
})[];
|
|
1767
|
+
total_usd: number;
|
|
1768
|
+
trader_count: number;
|
|
1769
|
+
verdict: {
|
|
1770
|
+
kind: "no_sharp_money";
|
|
1771
|
+
} | {
|
|
1772
|
+
kind: "all_on";
|
|
1773
|
+
label: string;
|
|
1774
|
+
} | {
|
|
1775
|
+
kind: "split";
|
|
1776
|
+
} | {
|
|
1777
|
+
kind: "leans";
|
|
1778
|
+
label: string;
|
|
1779
|
+
pct: number;
|
|
1780
|
+
} | {
|
|
1781
|
+
kind: "unavailable";
|
|
1782
|
+
} | {
|
|
1783
|
+
divergence_pts: number;
|
|
1784
|
+
kind: "leans_over_price";
|
|
1785
|
+
label: string;
|
|
1786
|
+
} | {
|
|
1787
|
+
kind: "no_clear_lean";
|
|
1788
|
+
} | {
|
|
1789
|
+
kind: "withheld";
|
|
1790
|
+
};
|
|
1791
|
+
} | null;
|
|
1756
1792
|
};
|
|
1757
1793
|
/** Where the game is in its own life, as the provider reports it. A postponement, a cancellation and a suspension each keep their own state, so a client can tell a game that will be played later from one that never will be. */
|
|
1758
1794
|
export type GameStatus = {
|
|
1759
|
-
/** scheduled: kickoff is ahead, or the provider still lists the game open and neither in play nor ended. With no live-score frame a game stays scheduled past its kickoff until the provider says otherwise. live: the provider reports it in play. paused: halftime or a provider-reported break. ended: the provider reported a final, an award or a forfeit. postponed, cancelled, suspended, delayed: the provider's own verdict, kept distinct. A
|
|
1795
|
+
/** scheduled: kickoff is ahead, or the provider still lists the game open and neither in play nor ended. With no live-score frame a game stays scheduled past its kickoff until the provider says otherwise. live: the provider reports it in play. paused: halftime or a provider-reported break. ended: the provider reported a final, an award or a forfeit. postponed, cancelled, suspended, delayed: the provider's own verdict, kept distinct. A game that the provider still lists in play, with no live score feed and no change of period or score for 3 hours, also reads suspended in tennis, soccer, hockey, basketball, American football, cricket, CS2, Dota 2, League of Legends, Valorant, Mobile Legends: Bang Bang, Rainbow Six Siege, Overwatch and Call of Duty; any other sport keeps the provider's flag. Outside tennis those 3 hours start no sooner than 2 hours after kickoff (6 for esports), so a game reads suspended only after the longest game measured in its sport; for cricket they start once the match's scheduled days have passed (5 for a match with a draw market, 1 for a limited-overs match, one fewer when the score shows runs), so a multi-day match stays live overnight. unknown: no provider state reached this read. A kickoff in the past is never read as live on its own. */
|
|
1760
1796
|
state: "scheduled" | "live" | "paused" | "ended" | "postponed" | "cancelled" | "suspended" | "delayed" | "unknown";
|
|
1761
|
-
/** The provider status folded onto one vocabulary across leagues. unknown means the provider sent a value this API has no meaning for; provider_status keeps that value verbatim. Omitted when no live-score frame carries a status, as for a listed game no live-score feed has reported yet. */
|
|
1797
|
+
/** The provider status folded onto one vocabulary across leagues. unknown means the provider sent a value this API has no meaning for; provider_status keeps that value verbatim. Omitted when no live-score frame carries a status, as for a listed game no live-score feed has reported yet, and on an ended game whose last status is one the provider sends only before the end (scheduled, in_progress, halftime, penalty_shootout, delayed). */
|
|
1762
1798
|
match_status?: "scheduled" | "in_progress" | "halftime" | "penalty_shootout" | "delayed" | "suspended" | "final" | "final_overtime" | "final_shootout" | "awarded" | "forfeit" | "not_necessary" | "postponed" | "cancelled" | "unknown";
|
|
1763
|
-
/** The live-score feed's status string, verbatim. Omitted when no live-score frame carries one. This API never puts a label of its own here, such as Scheduled for a listed game. */
|
|
1799
|
+
/** The live-score feed's status string, verbatim. Omitted when no live-score frame carries one. This API never puts a label of its own here, such as Scheduled for a listed game. Omitted with match_status on an ended game whose last status is from before the end. */
|
|
1764
1800
|
provider_status?: string;
|
|
1765
1801
|
/** The provider's period label, for example Q3, End Q2 or T5. Omitted when the provider sent none. */
|
|
1766
1802
|
period?: string;
|
|
1767
1803
|
/** The game clock as the provider spells it, never reformatted. Omitted when the provider sent none. */
|
|
1768
1804
|
clock?: string;
|
|
1769
|
-
/** Whether the game is in play. It is the provider's own in-play flag, except that three cases read false: a game the provider reports suspended (period SUS), a game rescheduled to a later kickoff, and a
|
|
1805
|
+
/** Whether the game is in play. It is the provider's own in-play flag, except that three cases read false: a game the provider reports suspended (period SUS), a game rescheduled to a later kickoff, and a game that the provider still lists in play with no live score feed and no change of period or score for 3 hours (state names the sports and when those 3 hours start). Omitted when no live-score frame exists, which is not the same as false. */
|
|
1770
1806
|
live?: boolean;
|
|
1771
1807
|
/** Whether the game is over. Always present. */
|
|
1772
1808
|
ended: boolean;
|
|
@@ -2765,6 +2801,14 @@ export type MarketTopHolder = {
|
|
|
2765
2801
|
category_win_rate_game?: string;
|
|
2766
2802
|
/** Why `category_win_rate` is present or absent: `measured` (rate present), `not_enough_data` (the wallet is on file and under the floor of 5 decided markets in the category), `untracked` (0xinsider has no record of the wallet, so nothing was measured; `grade`, `in_scope_realized_pnl` and `in_scope_volume` are null too), or `unavailable` (a read failed; retry later). Absent when the market has no canonical category. */
|
|
2767
2803
|
category_win_rate_status?: "measured" | "not_enough_data" | "unavailable" | "untracked";
|
|
2804
|
+
/** The wallet's edge over the price it paid in the market's canonical category (`market.category`), the figure the event page's Top holders row prints for this wallet, from the same computation: how often the side it bought won, minus the average price it paid, over its settled markets there of $20 or more at a known entry price. Probabilities, not percentages: `edge` 0.022 is the page's +2.2 pp, and `hit_rate` 0.515 over `markets` 98 is its `won 51.5% of 98 markets`. The page's 95% range is 1.96 * sqrt(avg_price * (1 - avg_price) / markets) either side of `edge` (0.099, the page's ± 9.9 pp, at 0.5 over 98 markets), and the page names an edge only when that range is all on one side of zero, printing `no clear edge` otherwise. Not `category_win_rate` minus `category_avg_price`: the edge counts its own sample. As of the row's `category_records_as_of`, or the payload's when the row has none. Present only with `category_win_rate_status` = `measured` when the page shows the edge; otherwise, beside a measured rate, `category_price_edge_hold` says why. Absent on every other row. */
|
|
2805
|
+
category_price_edge?: PickHolderPriceEdge;
|
|
2806
|
+
/** The same edge over the markets of the game or league `category_win_rate_game` names alone: the edge the page prints beside a game or league win rate (for example `+1.7 pp` in CS2). Present only beside `category_win_rate_game`; otherwise, beside a game or league rate, `category_scope_price_edge_hold` says why. Never the whole category's edge in its place. Absent on every other row. */
|
|
2807
|
+
category_scope_price_edge?: PickHolderPriceEdge;
|
|
2808
|
+
/** Why there is no `category_price_edge` for a wallet with a measured rate, with the rule's figures when it has them: the reason the page prints in place of the edge (for example `too few markets`). Present only with `category_win_rate_status` = `measured`, and never beside `category_price_edge`. */
|
|
2809
|
+
category_price_edge_hold?: PickHolderPriceEdgeHold;
|
|
2810
|
+
/** Why there is no `category_scope_price_edge` beside a game or league rate, with the rule's figures when it has them. Present only beside `category_win_rate_game`, and never beside `category_scope_price_edge`. */
|
|
2811
|
+
category_scope_price_edge_hold?: PickHolderPriceEdgeHold;
|
|
2768
2812
|
/** Whole UTC calendar days since this wallet's first trade, as an integer (271, not 271.0): the number of UTC dates from the first trade's date to today, so a first trade at 23:00 UTC reads 1 an hour later. Every wallet's age changes at 00:00 UTC, once a day, not on every request. The five badge fields are present together, only for a wallet that draws at least one badge. */
|
|
2769
2813
|
wallet_age_days?: number | null;
|
|
2770
2814
|
/** True when the wallet's first trade was under 30 days ago. */
|
|
@@ -2775,7 +2819,7 @@ export type MarketTopHolder = {
|
|
|
2775
2819
|
is_bot?: boolean;
|
|
2776
2820
|
/** The wallet's X handle without the @, when linked. */
|
|
2777
2821
|
x_username?: string | null;
|
|
2778
|
-
/** When this wallet's category record was recounted, sent only when that is later than the `category_records_as_of` beside the rows: a wallet's record is also recounted about an hour after its markets settle, between daily rebuilds. This row's `category_win_rate`, `category_win_record` and `
|
|
2822
|
+
/** When this wallet's category record was recounted, sent only when that is later than the `category_records_as_of` beside the rows: a wallet's record is also recounted about an hour after its markets settle, between daily rebuilds. This row's `category_win_rate`, `category_win_record`, `category_avg_price` and price edges (`category_price_edge`, `category_scope_price_edge` and their holds) are as of this time. Absent on every other row, which is as of the payload's `category_records_as_of`. */
|
|
2779
2823
|
category_records_as_of?: string;
|
|
2780
2824
|
};
|
|
2781
2825
|
export type MarketTopHolders = {
|
|
@@ -2787,7 +2831,7 @@ export type MarketTopHolders = {
|
|
|
2787
2831
|
totals: MarketTopHoldersTotals;
|
|
2788
2832
|
/** `unavailable` when the wallet record read failed: `in_scope_realized_pnl`, `in_scope_volume` and `strategy_type` are then null for every row because they were not read, not because they are unknown. */
|
|
2789
2833
|
profiles_status: "available" | "unavailable";
|
|
2790
|
-
/** When the daily pass behind the rows' category win records began: the oldest any row's record can be. A row whose wallet was recounted since carries its own, later `category_records_as_of`; every other row is as of this time. Absent when the market has no category or the read answered no row. */
|
|
2834
|
+
/** When the daily pass behind the rows' category win records and price edges began: the oldest any row's record or edge can be. A row whose wallet was recounted since carries its own, later `category_records_as_of`; every other row is as of this time. Absent when the market has no category or the read answered no row. */
|
|
2791
2835
|
category_records_as_of?: string;
|
|
2792
2836
|
/** When this holder sample was built. */
|
|
2793
2837
|
computed_at?: string;
|