@0xinsider/sdk 0.134.4 → 0.135.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/client.d.ts +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/errors.d.ts +3 -3
- package/dist/errors.js +3 -3
- package/dist/provenance.d.ts +1 -1
- package/dist/provenance.js +2 -2
- package/dist/schema.d.ts +17 -4
- package/dist/schema.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -617,7 +617,7 @@ export type EdgeHunterBoard = {
|
|
|
617
617
|
/** When the ranked snapshot was computed. Date current quotes with their own ts values. */
|
|
618
618
|
as_of: string;
|
|
619
619
|
horizon_hours: number;
|
|
620
|
-
/**
|
|
620
|
+
/** Effective holder-presence grade floor, S or A (default A; B requests normalize to A since every ranked row requires S or A money). A holder at that grade or better admits the row; other holders remain visible. */
|
|
621
621
|
min_grade: "S" | "A" | "B";
|
|
622
622
|
/** live uses the current graded holder pile; db_only is a weaker stored-data fallback. */
|
|
623
623
|
ranking_source: "live" | "db_only";
|
|
@@ -3711,6 +3711,9 @@ export type PickOfTheDay = {
|
|
|
3711
3711
|
sports_market_type?: string;
|
|
3712
3712
|
/** 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. */
|
|
3713
3713
|
protocol_version?: "v1" | "v2";
|
|
3714
|
+
current_odds_display?: string;
|
|
3715
|
+
current_price?: number;
|
|
3716
|
+
share_grades?: "s_a" | "s_a_b";
|
|
3714
3717
|
};
|
|
3715
3718
|
export type PickOfTheDayArchive = {
|
|
3716
3719
|
/** 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. */
|
|
@@ -6802,6 +6805,16 @@ export interface OperationData {
|
|
|
6802
6805
|
sports_market_type?: string;
|
|
6803
6806
|
/** 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. */
|
|
6804
6807
|
protocol_version?: "v1" | "v2";
|
|
6808
|
+
after_release_summary?: {
|
|
6809
|
+
holders_added: number;
|
|
6810
|
+
holders_exited: number;
|
|
6811
|
+
holders_hedged: number;
|
|
6812
|
+
holders_reduced: number;
|
|
6813
|
+
holders_switched: number;
|
|
6814
|
+
};
|
|
6815
|
+
current_price?: number;
|
|
6816
|
+
entry_authorization?: PotdEntryAuthorization;
|
|
6817
|
+
share_grades?: "s_a" | "s_a_b";
|
|
6805
6818
|
})[];
|
|
6806
6819
|
proof_pending_picks?: ({
|
|
6807
6820
|
is_free_selection: boolean;
|
|
@@ -7421,13 +7434,13 @@ export interface OperationQuery {
|
|
|
7421
7434
|
view?: "board" | "signals" | "observations";
|
|
7422
7435
|
/** Legacy canonical bucket alias, now accepted in every view. Provider aliases canonicalize: NFL reaches Football and EPL reaches Soccer. Use leagues for a league-specific selection. The word sports, in any casing, reads as kind=sports, every sport but Esports, as category=sports does on every other route (#32720): the response echoes kind sports beside category sports, and with kind=esports it returns 400 with param category. Any other unmappable non-sport category returns an empty result and echoes category non_sport. Combines with other selection axes using AND. */
|
|
7423
7436
|
category?: string;
|
|
7424
|
-
/** 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=
|
|
7437
|
+
/** 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=A, no selector), so until kickoff a market is in at most one of the two views. view=signals judges each holder by the wallet's current grade when it reads the holders, not the grade it had when it traded. 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. */
|
|
7425
7438
|
cohort?: "wider_holder" | "in_play" | "emerging_pile";
|
|
7426
7439
|
/** 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 and A 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 departures lists its own cards that left. 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, most_held_48h_cutoffs and departures are that selection's own. 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. */
|
|
7427
7440
|
admission?: "most_held_48h" | "most_held_48h_by_type" | "most_held_48h_min_25_usd";
|
|
7428
7441
|
/** view=observations with cohort=wider_holder and an admission only; rejected otherwise. An RFC 3339 time within the last 48 hours: the response adds place_exits, the selection's place stays that ended before kickoff at or after it, each with its reason, readable after the game starts. Pass the snapshot_as_of of your previous read. Rejected with leagues or series_slugs, which a stay does not record, and when the window holds more than 1000 exits; then pass a later time or one category. */
|
|
7429
7442
|
place_exits_since?: string;
|
|
7430
|
-
/** Board and signals: S
|
|
7443
|
+
/** Board and signals: S or A (default A; B is accepted as a legacy alias for A and normalized to A in board.min_grade, cursors and ETags). Requires a piled-side wallet holding at least $25 net value at the selected grade floor or better (an S wallet for S; an S or A wallet for A, since every ranked row needs S or A money), without removing other holders. Rejected for observations. */
|
|
7431
7444
|
min_grade?: "S" | "A" | "B";
|
|
7432
7445
|
/** 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. */
|
|
7433
7446
|
limit?: number;
|
|
@@ -7570,7 +7583,7 @@ export interface OperationQuery {
|
|
|
7570
7583
|
getPickOfTheDay: {
|
|
7571
7584
|
/** A product day (America/New_York) in YYYY-MM-DD format, on or before today. Omit it, or send today, for the current read. A past day with no published pick returns 404 not_found with error.param=date; a date after today, or a value that is not a date, returns 400 bad_request with error.param=date. */
|
|
7572
7585
|
date?: string;
|
|
7573
|
-
/** full (default) is the whole recorded set: every pick with its thesis, and its holders, lead backer, sports context and entry_authorization when recorded, and the top-level copy of the first pick. summary returns pick_date, pick_count, the disclaimer once, and each entitled pick's identity, side, price, result, return and
|
|
7586
|
+
/** full (default) is the whole recorded set: every pick with its thesis, and its holders, lead backer, sports context and entry_authorization when recorded, and the top-level copy of the first pick. summary returns pick_date, pick_count, the disclaimer once, and each entitled pick's identity, side, frozen and current pre-game price, result, return, grade, entry grant and pre-game holder-change counts (pick_id, publication_order, is_free_selection, matchup, category, display_category, event_slug, polymarket_url, token_id, protocol_version, pick_outcome_label, sports_market_type, outcome, backed_price, current_price, stake_usd, return_usd, unit_score, top_grade, holder_count, share_grades, backed_side_share, sharp_positioned_usd, clv_status, clv_pct, release_at, kickoff, game_started, game_ended, entry_authorization, after_release_summary), with the same scheduled_picks, proof_pending_picks, locked_picks and more_picks_until. The locked-only state=none body is the same in both views. Any other value returns 400 bad_request with error.param=view. */
|
|
7574
7587
|
view?: "full" | "summary";
|
|
7575
7588
|
/** One entitled published pick, by its stable decimal-string pick_id. Without date it reads the pick on its own product day, whatever day published it, under the same tier rule as date with pick_id. The body carries that pick once, as picks[0], beside state, pick_date and pick_count=1. It leaves out the top-level copy of the first pick that a set read without pick_id repeats, and scheduled_picks, proof_pending_picks, locked_picks and more_picks_until. With date, the pick must be one of that day's. A pick_id that is not among the day's entitled published picks (its own day without date, or the date sent) returns 404 not_found with error.param=pick_id, as does one that no served pick has (unknown, skipped or withdrawn); one whose holder proof is not readable yet returns 503 read_model_warming with Retry-After; a value that is not a positive canonical decimal returns 400 bad_request with error.param=pick_id. */
|
|
7576
7589
|
pick_id?: string;
|