@0xinsider/sdk 0.106.0 → 0.108.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 +29 -0
- package/dist/client.d.ts +6 -3
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js.map +1 -1
- package/dist/provenance.d.ts +1 -1
- package/dist/provenance.js +1 -1
- package/dist/schema.d.ts +20 -10
- package/dist/schema.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -697,6 +697,8 @@ export type EdgeHunterMostHeld48hCutoff = {
|
|
|
697
697
|
volume: number | null;
|
|
698
698
|
/** The third ranking value: of two markets with equal holders and volume, the earlier kickoff ranks first, then the lower condition_id. */
|
|
699
699
|
game_start_time: string;
|
|
700
|
+
/** admission=most_held_48h_min_25_usd only: the first ranking value of that selection, the market's indexed_graded_holders_min_25_usd; volume and game_start_time follow it. Omitted on the other admissions, which rank by indexed_graded_holders. */
|
|
701
|
+
indexed_graded_holders_min_25_usd?: number;
|
|
700
702
|
};
|
|
701
703
|
/** One explicitly observation-only holder-pile measurement. It is evidence for cohort evaluation, not an execution instruction, and is isolated from the funded Edge Hunter signals view. */
|
|
702
704
|
export type EdgeHunterObservation = {
|
|
@@ -727,8 +729,8 @@ export type EdgeHunterObservation = {
|
|
|
727
729
|
observed_at: string;
|
|
728
730
|
/** Source cohort or additive projection view. emerging_pile is projected from wider_holder after source computation, overlaps its funnel denominator, and uses the source row's directional evidence. */
|
|
729
731
|
cohort: "wider_holder" | "in_play" | "emerging_pile";
|
|
730
|
-
/** Which evaluation place in its sport the row took this refresh. most_held: a wider_holder place for up to 8 markets per sport kicking off within 24 hours, most graded holders first, kept until kickoff while the holder page still shows a card or could not be read; also every in_play row, whose places go most graded holders first. soonest_kickoff: a wider_holder place among the sport's 8 soonest kickoffs, which is not kept. emerging_pile rows carry their source wider_holder row's value. Filter on most_held to keep the most-held selection. most_held_48h: every row of an admission=most_held_48h response, which is that opt-in selection (up to 8 markets per sport within 48 hours, most graded holders first, recomputed every refresh), including a market a default place also evaluates; it never appears on a default response. */
|
|
731
|
-
admitted_by: "most_held" | "soonest_kickoff" | "most_held_48h" | "most_held_48h_by_type";
|
|
732
|
+
/** Which evaluation place in its sport the row took this refresh. most_held: a wider_holder place for up to 8 markets per sport kicking off within 24 hours, most graded holders first, kept until kickoff while the holder page still shows a card or could not be read; also every in_play row, whose places go most graded holders first. soonest_kickoff: a wider_holder place among the sport's 8 soonest kickoffs, which is not kept. emerging_pile rows carry their source wider_holder row's value. Filter on most_held to keep the most-held selection. most_held_48h: every row of an admission=most_held_48h response, which is that opt-in selection (up to 8 markets per sport within 48 hours, most graded holders first, recomputed every refresh), including a market a default place also evaluates; it never appears on a default response. most_held_48h_min_25_usd: every row of an admission=most_held_48h_min_25_usd response, the same selection counting only graded holders with $25 or more in the market. */
|
|
733
|
+
admitted_by: "most_held" | "soonest_kickoff" | "most_held_48h" | "most_held_48h_by_type" | "most_held_48h_min_25_usd";
|
|
732
734
|
/** Always true. This row must not be routed to an order executor. */
|
|
733
735
|
observation_only: true;
|
|
734
736
|
/**
|
|
@@ -782,8 +784,10 @@ export type EdgeHunterObservation = {
|
|
|
782
784
|
market_context: EdgeHunterMarketContext | null;
|
|
783
785
|
/** S, A and B graded wallets in the 0xinsider index holding either outcome of the market, as the stored market universe last counted them. Every most-held place ranks by this count: admission=most_held_48h and most_held_48h_by_type, the default selection's most_held places and in_play slots. It can be larger or smaller than graded_holders, which counts the piled side of the provider's holder page. Null only on a row of a generation computed before this field existed. */
|
|
784
786
|
indexed_graded_holders: number | null;
|
|
785
|
-
/** admission=most_held_48h and most_held_48h_by_type only: the market's 1-based place in its sport's most_held_48h admission order, every market type ranked together, from the same refresh that admitted the row. The order is most indexed_graded_holders first, then most volume, then soonest game_start_time, then condition_id, skipping a market whose event (parent event first) already holds 4 markets of the order. Places 1 to 8 are the most_held_48h list; a place above 8 is the number of slots the sport would need for this market to take one, so compare it with most_held_48h_cutoffs[].position. null when the market has no place: its event already held 4 markets ranked above it, so no number of sport slots would admit it. A place stays taken by a market whose holder read ended without a card (a split pile, no read), so the cards of a most_held_48h response can skip places. Omitted on a default read and on a snapshot computed before this field. */
|
|
787
|
+
/** admission=most_held_48h and most_held_48h_by_type only: the market's 1-based place in its sport's most_held_48h admission order, every market type ranked together, from the same refresh that admitted the row. The order is most indexed_graded_holders first, then most volume, then soonest game_start_time, then condition_id, skipping a market whose event (parent event first) already holds 4 markets of the order. Places 1 to 8 are the most_held_48h list; a place above 8 is the number of slots the sport would need for this market to take one, so compare it with most_held_48h_cutoffs[].position. null when the market has no place: its event already held 4 markets ranked above it, so no number of sport slots would admit it. A place stays taken by a market whose holder read ended without a card (a split pile, no read), so the cards of a most_held_48h response can skip places. On admission=most_held_48h_min_25_usd it is the place in that selection's own order, most indexed_graded_holders_min_25_usd first. Omitted on a default read and on a snapshot computed before this field. */
|
|
786
788
|
most_held_48h_position?: number | null;
|
|
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
|
+
indexed_graded_holders_min_25_usd?: number;
|
|
787
791
|
};
|
|
788
792
|
/** 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. */
|
|
789
793
|
export type EdgeHunterObservationCoverage = {
|
|
@@ -845,12 +849,12 @@ export type EdgeHunterObservationsResponse = {
|
|
|
845
849
|
/** Normalized axes requested with a selector or category; omitted on an unselected default read. */
|
|
846
850
|
selection?: EdgeHunterSelection;
|
|
847
851
|
/** Echoes the opt-in admission rule a request named; omitted on a default read. When present, data, funnel, coverage, degraded and degradation_reasons describe that selection, not the default one. */
|
|
848
|
-
admission?: "most_held_48h" | "most_held_48h_by_type";
|
|
852
|
+
admission?: "most_held_48h" | "most_held_48h_by_type" | "most_held_48h_min_25_usd";
|
|
849
853
|
/** cohort=wider_holder only, for the default selection and for admission=most_held_48h: markets that had a wider_holder card in an earlier snapshot of the same selection, have none in this one, and have not kicked off. Newest departed_at first. An entry stays until the game_start_time it carries passes, and leaves as soon as the market has a card again; while it stays, its reason changes only while it reports an unfinished read or when view=signals starts or stops listing the market (see reason), and a later departure of the same market is a new entry. Filtered by the same category and selectors as data, and identical on every page of one snapshot. At most 336 entries; when more are open, the oldest departures leave first. An empty array means no card of this selection is departed. Omitted on in_play and emerging_pile, and on a snapshot that could not establish its departures, never reported as an empty array. Tracking that restarts after its record is lost starts empty. */
|
|
850
854
|
departures?: EdgeHunterObservationDeparture[];
|
|
851
855
|
/** The ranked_at of the view=signals snapshot whose listed markets this snapshot excluded from wider_holder as primary_slate_candidate. The refresh that computed this snapshot read it as it started, so it can be one refresh older than the view=signals snapshot a reader sees at the same moment. null when no view=signals snapshot could be read: that refresh excluded no market, and the funnel counts no primary_slate_candidate. Omitted on an unmappable legacy category, which reads no generation. */
|
|
852
856
|
signals_as_of?: string | null;
|
|
853
|
-
/** admission=most_held_48h and most_held_48h_by_type only: for each sport in the response's category scope that most_held_48h admitted a market in, the last market it admitted in the same snapshot (the 8th when 8 are admitted) and the values it was ranked by. A row whose most_held_48h_position is greater than its sport's position took no most_held_48h slot. Not narrowed by selectors other than category. Omitted on a default read and on a snapshot computed before this field. */
|
|
857
|
+
/** admission=most_held_48h and most_held_48h_by_type only: for each sport in the response's category scope that most_held_48h admitted a market in, the last market it admitted in the same snapshot (the 8th when 8 are admitted) and the values it was ranked by. A row whose most_held_48h_position is greater than its sport's position took no most_held_48h slot. Not narrowed by selectors other than category. On admission=most_held_48h_min_25_usd they are that selection's own last markets, each with indexed_graded_holders_min_25_usd. Omitted on a default read and on a snapshot computed before this field. */
|
|
854
858
|
most_held_48h_cutoffs?: EdgeHunterMostHeld48hCutoff[];
|
|
855
859
|
};
|
|
856
860
|
/** Closed 25-value terminal-reason vocabulary for the accountable Edge Hunter observation funnel. capacity_limited is intentional bounded provider-work admission and does not itself set the snapshot degraded. board_source_unavailable is a completed board-source failure; board_deadline_unavailable means live-board work missed either an internal configured-scope deadline or the outer fair-wave deadline; both classify only already-started rows, so for the upcoming source read funnel.sports[].board_upcoming_status instead; provider_unavailable is reserved for a holder read sent to the provider that failed, with no reusable holder page; holder_deadline_unavailable is holder cache/provider absolute-deadline exhaustion or a holder read local capacity never sent, with no reusable holder page. */
|
|
@@ -3065,7 +3069,7 @@ export type PickHolder = {
|
|
|
3065
3069
|
category_price_edge_hold?: PickHolderPriceEdgeHold;
|
|
3066
3070
|
/** 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`. Absent otherwise and on payloads predating the field. */
|
|
3067
3071
|
category_scope_price_edge_hold?: PickHolderPriceEdgeHold;
|
|
3068
|
-
/** What this wallet did on the pick's market after the pick was released, read from the fills, merges, splits and redemptions 0xinsider stores. Sits beside the release `shares`, which never change. `state` is `held`, `added`, `reduced` or `
|
|
3072
|
+
/** What this wallet did on the pick's market after the pick was released, read from the fills, merges, splits and redemptions 0xinsider stores. Sits beside the release `shares`, which never change. `state` is `held`, `added`, `reduced`, `exited`, `hedged` or `switched` for the time between release and the game's start, then `redeemed` once the wallet redeemed backed shares after settlement, unless it switched. The state reads both outcomes: compare the release `backed_outcome_shares` and `other_outcome_shares` with `shares_after` and `other_shares_after`. Read `unavailable` as unknown, never as held. Present on `display_holders` items of a full pick; absent on teasers and on payloads predating the field. */
|
|
3069
3073
|
after_release?: {
|
|
3070
3074
|
/** End of the share-change window: the game's start once it has started, else `observed_at`. Trading during the game does not count. */
|
|
3071
3075
|
changes_through: string;
|
|
@@ -3087,11 +3091,17 @@ export type PickHolder = {
|
|
|
3087
3091
|
shares_after?: number;
|
|
3088
3092
|
/** Net backed shares gained in the change window: bought, minus sold and merged, plus split. Negative when the wallet cut its position. */
|
|
3089
3093
|
shares_change?: number;
|
|
3090
|
-
/** `held`: no change to its backed shares before the game. `added`: bought more. `reduced`: sold or merged some. `exited`: left under one backed share. `redeemed`: redeemed backed shares after settlement. `unavailable`: the facts could not be read; see `unavailable_reason`. */
|
|
3091
|
-
state: "held" | "added" | "reduced" | "exited" | "redeemed" | "unavailable";
|
|
3094
|
+
/** `held`: no change to its backed shares before the game. `added`: bought more. `reduced`: sold or merged some. `exited`: left under one backed share. `hedged`: bought the other outcome, by more than it added to the backed one, and still holds more of the backed one. `switched`: changed its position and ended the window holding at least one share of the other outcome and more of it than of the backed one; it outranks `redeemed`, so a wallet that switched and later redeemed backed shares reads `switched` beside `redeemed_shares`. `redeemed`: redeemed backed shares after settlement. `unavailable`: the facts could not be read; see `unavailable_reason`. */
|
|
3095
|
+
state: "held" | "added" | "reduced" | "exited" | "hedged" | "switched" | "redeemed" | "unavailable";
|
|
3092
3096
|
/** Present only when `state` is `unavailable`. `read_failed`: the read failed or ran out of time, and a later request can answer. `wallet_not_indexed` or `market_not_indexed`: 0xinsider stores no fills of that wallet or on that market. */
|
|
3093
3097
|
unavailable_reason?: "read_failed" | "wallet_not_indexed" | "market_not_indexed";
|
|
3098
|
+
/** The release `other_outcome_shares` plus `other_shares_change`, never below zero: the other outcome's shares at the end of the change window. Absent when the release roster did not record the other outcome. */
|
|
3099
|
+
other_shares_after?: number;
|
|
3094
3100
|
};
|
|
3101
|
+
/** Gross shares of the backed outcome this wallet held when the pick was released, from the same observation as `other_outcome_shares`; `shares` is the figure the pick lists. Present on `display_holders` items only, always with `other_outcome_shares`; absent on rosters recorded before the pair was. */
|
|
3102
|
+
backed_outcome_shares?: number;
|
|
3103
|
+
/** Shares of the other outcome this wallet held when the pick was released, from the same observation as `backed_outcome_shares`: 0 means it held none then. Beside `after_release.other_shares_change`, it says whether the wallet bought the other side before or after release. Present on `display_holders` items only, always with `backed_outcome_shares`; absent on rosters recorded before the pair was. */
|
|
3104
|
+
other_outcome_shares?: number;
|
|
3095
3105
|
};
|
|
3096
3106
|
/** Edge over the price paid in one category, game or league: how often the side a wallet bought won, minus the average price it paid, over its settled markets there at a known entry price (`every_size`). Probabilities throughout: edge -0.171 is -17.1 percentage points. A market bought on both sides counts by its shares: the winning side's share of the shares bought is its hit, the cost over those shares its price. Figures from the daily record rebuild. */
|
|
3097
3107
|
export type PickHolderPriceEdge = {
|
|
@@ -7166,8 +7176,8 @@ export interface OperationQuery {
|
|
|
7166
7176
|
category?: string;
|
|
7167
7177
|
/** Required for view=observations; wider_holder, in_play or emerging_pile. Rejected for board and signals. wider_holder covers pregame markets that view=signals does not list at its widest selection (horizon_hours=48, min_grade=B, no selector), so until kickoff a market is read in one view or the other. A market view=signals lists leaves wider_holder as primary_slate_candidate, and is a wider_holder candidate again in the first refresh after view=signals stops listing it; signals_as_of names the view=signals snapshot each refresh read. Each refresh evaluates at most 8 markets per sport and cohort, wider_holder by soonest kickoff (most graded holders first among equal kickoffs) and in_play by most graded holders, so a market among a sport's 8 soonest stays evaluated until its game starts. wider_holder also evaluates up to 8 more markets per sport that kick off within 24 hours, most graded holders first, so the most-held markets appear up to a day before kickoff. Each of these keeps its place in later refreshes until its game starts while its holder page still shows a card or could not be read, so a more-held market waits for a free place instead of displacing it. Each row's admitted_by names its place, most_held or soonest_kickoff. The rest count in coverage.capacity_limited_markets. Emerging pile is a wider-holder projection with sharp_pct in [0.75,0.85), complete holder scans and future kickoff, not an independent population or arrival history. */
|
|
7168
7178
|
cohort?: "wider_holder" | "in_play" | "emerging_pile";
|
|
7169
|
-
/** Opt-in admission rule for view=observations with cohort=wider_holder; rejected for every other view and cohort. most_held_48h returns the most-held selection instead of the default one: per sport, up to 8 wider_holder markets kicking off within 48 hours, most indexed_graded_holders first, then most volume, then soonest kickoff, at most 4 per event. indexed_graded_holders, on every row, counts the S, A and B wallets in the 0xinsider index holding either outcome; graded_holders counts the piled side of the provider's holder page and can be larger or smaller, so check the selection against indexed_graded_holders. rank orders the admitted rows by directional_rank_score, as in the default selection, not by either count. It is recomputed every refresh and keeps no place, so a more-held market displaces a less-held one; markets view=signals lists stay excluded. Every row carries admitted_by most_held_48h, including a market the default selection also evaluates, and the response echoes admission. funnel, coverage, degraded and degradation_reasons describe this selection: a wider_holder candidate it did not take counts as capacity_limited, and one it skips counts as provider_excluded. It skips every market of a game the provider marks postponed, cancelled, suspended or final, its exact-score, half-time and other side events included, and a market of the game's main event at a Yes price of 0.02 or lower, or 0.98 or higher. Its markets that no default place covers are read at most once per 10 minutes, one with no holder page to serve right after every default market with none, so a row can rest on a holder page up to 15 minutes old, or up to 30 minutes for a market more than an hour before kickoff that has not traded since that page (holder_snapshot_at). most_held_48h_by_type requires market_types and runs the same rule within each named type: per sport and market_context.market_type, up to 8 markets (4 per event), most indexed_graded_holders first, then volume, then soonest kickoff, so a type whose markets hold fewer wallets than team-win markets still gets its own places. Its rows carry admitted_by most_held_48h_by_type and it has no departures. most_held_48h ranks every market type in one queue per sport with no type weighted or dropped before ranking, ties broken by soonest kickoff and then condition_id; market_types narrows its rows only after admission. Both values add most_held_48h_position to each row, the market's place in that queue, and most_held_48h_cutoffs, each sport's last most_held_48h market and its ranking values, so a most_held_48h_by_type row shows how far it was from a most_held_48h slot. Its markets no other selection read take turns with the most_held_48h ones in that same order, at most once per 10 minutes. A market type not asked for in the last 30 minutes answers 503 read_model_warming with Retry-After 45 s while the next refresh computes it. Omit for the default selection. Cursors and ETags bind it. */
|
|
7170
|
-
admission?: "most_held_48h" | "most_held_48h_by_type";
|
|
7179
|
+
/** Opt-in admission rule for view=observations with cohort=wider_holder; rejected for every other view and cohort. most_held_48h returns the most-held selection instead of the default one: per sport, up to 8 wider_holder markets kicking off within 48 hours, most indexed_graded_holders first, then most volume, then soonest kickoff, at most 4 per event. indexed_graded_holders, on every row, counts the S, A and B wallets in the 0xinsider index holding either outcome; graded_holders counts the piled side of the provider's holder page and can be larger or smaller, so check the selection against indexed_graded_holders. rank orders the admitted rows by directional_rank_score, as in the default selection, not by either count. It is recomputed every refresh and keeps no place, so a more-held market displaces a less-held one; markets view=signals lists stay excluded. Every row carries admitted_by most_held_48h, including a market the default selection also evaluates, and the response echoes admission. funnel, coverage, degraded and degradation_reasons describe this selection: a wider_holder candidate it did not take counts as capacity_limited, and one it skips counts as provider_excluded. It skips every market of a game the provider marks postponed, cancelled, suspended or final, its exact-score, half-time and other side events included, and a market of the game's main event at a Yes price of 0.02 or lower, or 0.98 or higher. Its markets that no default place covers are read at most once per 10 minutes, one with no holder page to serve right after every default market with none, so a row can rest on a holder page up to 15 minutes old, or up to 30 minutes for a market more than an hour before kickoff that has not traded since that page (holder_snapshot_at). most_held_48h_by_type requires market_types and runs the same rule within each named type: per sport and market_context.market_type, up to 8 markets (4 per event), most indexed_graded_holders first, then volume, then soonest kickoff, so a type whose markets hold fewer wallets than team-win markets still gets its own places. Its rows carry admitted_by most_held_48h_by_type and it has no departures. most_held_48h ranks every market type in one queue per sport with no type weighted or dropped before ranking, ties broken by soonest kickoff and then condition_id; market_types narrows its rows only after admission. Both values add most_held_48h_position to each row, the market's place in that queue, and most_held_48h_cutoffs, each sport's last most_held_48h market and its ranking values, so a most_held_48h_by_type row shows how far it was from a most_held_48h slot. Its markets no other selection read take turns with the most_held_48h ones in that same order, at most once per 10 minutes. A market type not asked for in the last 30 minutes answers 503 read_model_warming with Retry-After 45 s while the next refresh computes it. most_held_48h_min_25_usd runs the most_held_48h rule counting only the graded holders whose position in the market is worth $25 or more: per sport, up to 8 markets (4 per event), most indexed_graded_holders_min_25_usd first, then most volume, then soonest kickoff, so a market held by many small positions no longer outranks one held by fewer, larger ones. Each row carries indexed_graded_holders_min_25_usd, the count it was ranked by, and admitted_by most_held_48h_min_25_usd; most_held_48h_position and most_held_48h_cutoffs are that selection's own; it has no departures. most_held_48h and most_held_48h_by_type do not change. Its markets no other selection read take their turns after the other two selections', at most once per 10 minutes. A sport, or the all-sports scope, not asked for in the last 30 minutes answers 503 read_model_warming with Retry-After 45 s while the next refresh computes it. Omit for the default selection. Cursors and ETags bind it. */
|
|
7180
|
+
admission?: "most_held_48h" | "most_held_48h_by_type" | "most_held_48h_min_25_usd";
|
|
7171
7181
|
/** Board and signals: S, A or B, default B. Requires a piled-side holder at the selected grade floor or better, without removing other holders. Rejected for observations. */
|
|
7172
7182
|
min_grade?: "S" | "A" | "B";
|
|
7173
7183
|
/** Board row cap defaults to 30 and clamps integer values to 1..30; total counts selected admitted rows before the cap. Signals and observations page size defaults to 20 and clamps to 1..100. */
|