@0xinsider/sdk 0.58.0 → 0.62.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 +84 -6
- 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 = "d6f4a1a6932db45ff7b5eacd07f9ab316c5613c97ace9185aee29527bebe481d";
|
|
3
3
|
export declare const OPENAPI_VERSION = "1.0.0";
|
|
4
4
|
export declare const OPERATION_COUNT = 112;
|
|
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 = "d6f4a1a6932db45ff7b5eacd07f9ab316c5613c97ace9185aee29527bebe481d";
|
|
10
10
|
export const OPENAPI_VERSION = "1.0.0";
|
|
11
11
|
export const OPERATION_COUNT = 112;
|
|
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 = "ee2155d57fc216ae4bdd93494d03a06ca97e2784";
|
|
15
15
|
//# sourceMappingURL=provenance.js.map
|
package/dist/schema.d.ts
CHANGED
|
@@ -2879,7 +2879,7 @@ export type PickOfTheDay = {
|
|
|
2879
2879
|
unit_score?: number;
|
|
2880
2880
|
/** Backend-formatted signed unit score, present exactly when unit_score is present. */
|
|
2881
2881
|
unit_score_display?: string;
|
|
2882
|
-
/** Recorded sharp-money share as a 0..1 fraction. This is not a winning probability. Absent on every pick dated 2026-08-12 or later: from that date the recorded share includes B grade wallets, which this S and A projection does not count. Earlier picks carry it when it was recorded. */
|
|
2882
|
+
/** Recorded sharp-money share as a 0..1 fraction. This is not a winning probability. Absent on every pick dated 2026-08-12 or later: from that date the recorded share includes B grade wallets, which this S and A projection does not count. Earlier picks carry it when it was recorded. backed_side_share carries the recorded share on every pick, on the pick's own grade basis. */
|
|
2883
2883
|
sharp_pct?: number;
|
|
2884
2884
|
/** Recorded market-implied probability as a 0..1 fraction when available. */
|
|
2885
2885
|
market_pct?: number;
|
|
@@ -2906,7 +2906,7 @@ export type PickOfTheDay = {
|
|
|
2906
2906
|
};
|
|
2907
2907
|
/** Public V1 S/A wallet count on the backed side, equal to sharp_wallet_count. */
|
|
2908
2908
|
traders?: number;
|
|
2909
|
-
/** Recorded aggregate backed-side position value in USD, not a live balance or entry cost. Absent on every pick dated 2026-08-12 or later: from that date the recorded value includes B grade wallets, which this S and A projection does not count. Earlier picks carry it when it was recorded. The display_holders roster can include additional wallets; use the returned aggregate rather than summing that roster. */
|
|
2909
|
+
/** Recorded aggregate backed-side position value in USD, not a live balance or entry cost. Absent on every pick dated 2026-08-12 or later: from that date the recorded value includes B grade wallets, which this S and A projection does not count. Earlier picks carry it when it was recorded. sharp_positioned_usd carries the recorded value on every pick, on the pick's own grade basis. The display_holders roster can include additional wallets; use the returned aggregate rather than summing that roster. */
|
|
2910
2910
|
backed_sharp_usd?: number;
|
|
2911
2911
|
/** Bounded S/A holder display projection from the recorded snapshot. Historical rows retain their recorded display shape. */
|
|
2912
2912
|
holders?: PickHolder[];
|
|
@@ -2988,6 +2988,8 @@ export type PickOfTheDay = {
|
|
|
2988
2988
|
/** Tennis tour of the player: atp, wta or itf. Sent for a tennis player whether or not a headshot is on file. */
|
|
2989
2989
|
tour?: string;
|
|
2990
2990
|
};
|
|
2991
|
+
/** Which of yes_team and no_team the game lists first, the same value as sports_context.side_order: Polymarket's order for the event (the order of its title: the away team first in US leagues, the home team first in soccer). yes_first when yes_team is the first team, no_first when no_team is. A spread's Yes side is the favorite, so it is often the game's second team. Lay the teams out in this order to show every pick on one game the same way; yes_team and no_team keep their Yes and No meaning. Omitted when the order is unknown: lay out yes_team first. */
|
|
2992
|
+
side_order?: "yes_first" | "no_first";
|
|
2991
2993
|
/** The side the market's Yes outcome names; when event_matchup is true, the parent game's first side in display order. */
|
|
2992
2994
|
yes_team?: {
|
|
2993
2995
|
/** Full display name of the team or player. */
|
|
@@ -3021,6 +3023,10 @@ export type PickOfTheDay = {
|
|
|
3021
3023
|
resolved_at?: string;
|
|
3022
3024
|
/** When the backed game starts (RFC3339 UTC): the same instant the 0xinsider site shows for the pick, read from the provider's current schedule, so a rescheduled game shows its new start, else the start recorded with the pick. scheduled_picks and proof_pending_picks use the same name for a pick's start. Omitted (not null) only when neither is on record, on a legacy pick; never estimated. Additive and optional for mixed-version client compatibility. */
|
|
3023
3025
|
kickoff?: string;
|
|
3026
|
+
/** Recorded share of graded-wallet money on the backed side, as a 0..1 fraction: the Side share the pick's page shows, from the same recorded value. It counts the grades of the pick's own wallet policy: S, A and B wallets on picks dated 2026-08-12 or later, where sharp_pct is absent, and S and A wallets before that date, where it equals sharp_pct. A measure of positioning, not a winning probability. Absent when the pick recorded no share. Additive and optional. */
|
|
3027
|
+
backed_side_share?: number;
|
|
3028
|
+
/** Recorded USD value of the counted wallets' positions on the backed side: the Sharp positioned value the pick's page shows, from the same recorded value. Same grade basis as backed_side_share; on picks dated before 2026-08-12 it equals backed_sharp_usd. Not a live balance or entry cost. The display_holders roster can include additional wallets; use this value rather than summing that roster. Absent when the pick recorded no value. Additive and optional. */
|
|
3029
|
+
sharp_positioned_usd?: number;
|
|
3024
3030
|
};
|
|
3025
3031
|
export type PickOfTheDayArchive = {
|
|
3026
3032
|
/** 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. */
|
|
@@ -3349,6 +3355,8 @@ export type PickOfTheDayLedgerOpenedEntry = {
|
|
|
3349
3355
|
outcome: "win" | "loss" | "void";
|
|
3350
3356
|
/** Why the site withdrew this pick from its track record, or null when the pick counts. provider_game_cancelled: Polymarket marked the game Cancelled while the pick was pending. published_after_kickoff: the pick was published at or after its game started, including a suspended match that resumed later, so it was never a pre-game pick; this can be set after the pick settled. A withdrawn pick keeps its commitment and its real outcome here, but the site's record leaves it out of every count and money figure. Not part of the hashed payload, so it never moves commitment_hash. */
|
|
3351
3357
|
withdrawal_reason: "provider_game_cancelled" | "published_after_kickoff" | null;
|
|
3358
|
+
/** When the site withdrew this pick from its track record, or null when the pick counts. Set beside withdrawal_reason by the same write and never without it, so a reader can tell a correction made after the pick settled (withdrawn_at later than resolved_at) from a withdrawal made while it was pending. null beside a reason only if that instant was not stored. Not part of the hashed payload, so it never moves commitment_hash. */
|
|
3359
|
+
withdrawn_at: string | null;
|
|
3352
3360
|
/** Frozen matchup, for a reader. */
|
|
3353
3361
|
matchup: string;
|
|
3354
3362
|
/** Frozen canonical sport bucket (for example Basketball or MMA), not the exact public league identity; the archive owns that. */
|
|
@@ -3417,6 +3425,8 @@ export type PickOfTheDayLedgerUncommittedEntry = {
|
|
|
3417
3425
|
outcome: "pending" | "win" | "loss" | "void";
|
|
3418
3426
|
/** Omitted while the pick is pending; once it settles, why the site withdrew it from its track record, or null when the pick counts. provider_game_cancelled: Polymarket marked the game Cancelled while the pick was pending. published_after_kickoff: the pick was published at or after its game started, including a suspended match that resumed later, so it was never a pre-game pick; this can be set after the pick settled. A withdrawn pick stays here with its real outcome, but the site's record leaves it out of every count and money figure. */
|
|
3419
3427
|
withdrawal_reason?: "provider_game_cancelled" | "published_after_kickoff" | null;
|
|
3428
|
+
/** Omitted while the pick is pending; once it settles, when the site withdrew it from its track record, or null when the pick counts. Set beside withdrawal_reason by the same write and never without it, so a reader can tell a correction made after the pick settled (withdrawn_at later than resolved_at) from a withdrawal made while it was pending. null beside a reason only if that instant was not stored. */
|
|
3429
|
+
withdrawn_at?: string | null;
|
|
3420
3430
|
/** Frozen matchup, for a reader. */
|
|
3421
3431
|
matchup?: string;
|
|
3422
3432
|
/** Frozen canonical sport bucket (for example Basketball or MMA), not the exact public league identity; the archive owns that. */
|
|
@@ -5068,9 +5078,15 @@ export type SuspiciousTrade = {
|
|
|
5068
5078
|
title: string | null;
|
|
5069
5079
|
};
|
|
5070
5080
|
scores: {
|
|
5071
|
-
/**
|
|
5081
|
+
/**
|
|
5082
|
+
* Deprecated: always null, because the live scorer records no timing component. How long before kickoff the trade filled is clv.close_anchor_at minus created_at.
|
|
5083
|
+
* @deprecated
|
|
5084
|
+
*/
|
|
5072
5085
|
timing: number | null;
|
|
5073
|
-
/**
|
|
5086
|
+
/**
|
|
5087
|
+
* Deprecated: always null, because the live scorer records no edge component. The trade's edge over the closing line is clv.clv_cents.
|
|
5088
|
+
* @deprecated
|
|
5089
|
+
*/
|
|
5074
5090
|
edge: number | null;
|
|
5075
5091
|
/** Numeric evidence.size when recorded; otherwise null. */
|
|
5076
5092
|
size: number | null;
|
|
@@ -5081,6 +5097,64 @@ export type SuspiciousTrade = {
|
|
|
5081
5097
|
evidence: unknown;
|
|
5082
5098
|
/** Stored trade timestamp. */
|
|
5083
5099
|
created_at: string;
|
|
5100
|
+
/** Closing line value against the market's stored close (GET /api/v1/market/{condition_id}/close), the same object large trades carry. Always present; status says whether it is measured. */
|
|
5101
|
+
clv: {
|
|
5102
|
+
/** The CLV definition, clv@v1. */
|
|
5103
|
+
basis_version: string;
|
|
5104
|
+
/** The anchor pre_kickoff was judged against: the stored close's anchor, else the market's kickoff. */
|
|
5105
|
+
close_anchor_at: string | null;
|
|
5106
|
+
/** The traded outcome's closing price, 0 to 1, whenever a usable close is stored and the outcome is known, in play included. */
|
|
5107
|
+
close_price: number | null;
|
|
5108
|
+
/** Cents per share, positive when the trade beat the close: buy is (close_price - price) * 100, sell is (price - close_price) * 100. Gross of fees. Computed from the trade's exact stored price; price on the wire is rounded to 4 places, so a recomputation from it agrees within 0.005 cents. Set exactly when status is measured. */
|
|
5109
|
+
clv_cents: number | null;
|
|
5110
|
+
/** Whether the trade filled before close_anchor_at. null when the market has no anchor. */
|
|
5111
|
+
pre_kickoff: boolean | null;
|
|
5112
|
+
/** measured: clv_cents is set. in_play: traded at or after the close anchor (kickoff), no CLV is defined. pending: traded before kickoff and the market's close is not stored yet. unavailable: see unavailable_reason. */
|
|
5113
|
+
status: "measured" | "in_play" | "pending" | "unavailable";
|
|
5114
|
+
/** Set exactly when status is unavailable. The market's reasons (see MarketClose.unavailable_reason), plus anchor_stale (the kickoff moved after the close was captured) and outcome_unknown (the traded outcome is not known for this trade). */
|
|
5115
|
+
unavailable_reason: "no_observation_in_lookback" | "provider_empty_window" | "provider_invalid_contract" | "capture_window_closed" | "no_game_start_time" | "not_one_sided_resolution" | "not_captured" | "close_token_mismatch" | "anchor_stale" | "outcome_unknown" | null;
|
|
5116
|
+
/** clv_cents - taker_fee_cents: the CLV after the fee the fill paid, cents per share. Set exactly when both are set. */
|
|
5117
|
+
clv_after_fees_cents: number | null;
|
|
5118
|
+
/** The fee the fill paid as taker, cents per share, from the exchange's on-chain record of the fill (the OrderFilled event in its Polygon receipt); the trader is its taker. Polymarket charges only takers, so a buy's fee adds to its cost and a sell's comes out of its proceeds, and either way it lowers the CLV by this amount. Includes any builder fee an app added; excludes maker and taker rebates, which Polymarket pays later and no fill records. Set whatever status is; null until the record is decoded (about a minute after the trade) and for trades before 2026-08-16. */
|
|
5119
|
+
taker_fee_cents: number | null;
|
|
5120
|
+
};
|
|
5121
|
+
/** How the market settled for the trade's side. A flag is a lead, not a verdict; this is what followed it. */
|
|
5122
|
+
result: {
|
|
5123
|
+
/** won: the trade's side won at settlement, a buy whose outcome won or a sell whose outcome lost. lost: the opposite. void: the market resolved to neither side (cancelled or 50-50). pending: the market has not resolved to a side yet. unknown: the market resolved, but the trade's outcome is not known. */
|
|
5124
|
+
status: "won" | "lost" | "void" | "pending" | "unknown";
|
|
5125
|
+
/** When the market resolved. Set when status is won, lost or void. */
|
|
5126
|
+
resolved_at: string | null;
|
|
5127
|
+
/** What the fill made or lost at settlement, in USDC: shares times (payout - price) for a buy, shares times (price - payout) for a sell, the payout 1 for the winning outcome and 0 for a losing one. Gross of fees and of anything the wallet did after the trade. Set exactly when status is won or lost. */
|
|
5128
|
+
pnl_usdc: number | null;
|
|
5129
|
+
};
|
|
5130
|
+
/** What else the wallet holds that pays if the flagged outcome loses: the hedge the Suspicious trades page shows. Only outcomes that cannot win together with the flagged one count: the other outcome of the same market, and for a Yes buy on a negative-risk market, Yes on the event's other negative-risk markets of the same type. Null when the trade is older than 90 days, the window the page measures. */
|
|
5131
|
+
hedge: {
|
|
5132
|
+
/** Which positions were measured. `live`: the wallet's current positions, while they can still show the hedge. `at_flag`: the positions frozen when the trade was flagged, served once the current ones cannot (the market decided, or the listing went stale or missing). */
|
|
5133
|
+
basis: "live" | "at_flag";
|
|
5134
|
+
/** Each opposing position, largest cost first. Empty unless `state` is `hedged`. */
|
|
5135
|
+
legs: ({
|
|
5136
|
+
/** The leg's market. */
|
|
5137
|
+
condition_id: string;
|
|
5138
|
+
/** The leg's outcome index in that market, 0 or 1 in Polymarket's outcome order (0 is Yes on a Yes/No market). */
|
|
5139
|
+
outcome_index: number;
|
|
5140
|
+
/** Where the money is, in the market's words: the outcome's name ("Raptors"), the market for a generic Yes ("Draw (Real Madrid CF vs. Sevilla FC)"), or "No on" the market for a generic No. */
|
|
5141
|
+
place: string;
|
|
5142
|
+
/** True for the other outcome of the flagged market itself. */
|
|
5143
|
+
same_market: boolean;
|
|
5144
|
+
/** Shares held. Null only when the amount has no finite number. */
|
|
5145
|
+
shares: number | null;
|
|
5146
|
+
/** Shares times the wallet's average entry price, in USD. Null when Polymarket gave no entry price. */
|
|
5147
|
+
usd: number | null;
|
|
5148
|
+
})[];
|
|
5149
|
+
/** The legs' total cost in USD: `0` for `none`, null when a leg's entry price is unknown or nothing was measured. */
|
|
5150
|
+
opposing_usd: number | null;
|
|
5151
|
+
/** When Polymarket listed the positions measured. For `unknown` with `stale`, the last listing, too old to measure from (null on a flag recorded before that time was kept). Null for every other state. */
|
|
5152
|
+
positions_at: string | null;
|
|
5153
|
+
/** `hedged`: holds at least one leg. `none`: holds no leg. `unknown`: see `unknown_reason`, and never read it as `none`. `sell`: the flagged trade is a sell, which takes no side, so nothing is measured. */
|
|
5154
|
+
state: "hedged" | "none" | "unknown" | "sell";
|
|
5155
|
+
/** Set exactly when `state` is `unknown`. `not_loaded`: no position listing for the wallet. `stale`: the last listing is older than the freshness bound. `market_decided`: the flagged market resolved or closed. `read_failed`: the positions read failed. `not_recorded`: the trade was flagged before hedges were recorded. */
|
|
5156
|
+
unknown_reason: "not_loaded" | "stale" | "market_decided" | "read_failed" | "not_recorded" | null;
|
|
5157
|
+
} | null;
|
|
5084
5158
|
};
|
|
5085
5159
|
/** `suspicious_trade_flagged` data (Pro and Max): a trade's suspicion score crossed the flag threshold for the first time. The deprecated spelling `insider_radar_flag_raised` delivers the same object until its sunset on 2027-02-01 (#29352). */
|
|
5086
5160
|
export type SuspiciousTradeFlaggedData = {
|
|
@@ -6591,6 +6665,10 @@ export interface OperationData {
|
|
|
6591
6665
|
unit_score?: number;
|
|
6592
6666
|
/** When the backed game starts (RFC3339 UTC): the full pick's kickoff. */
|
|
6593
6667
|
kickoff?: string;
|
|
6668
|
+
/** The full pick's backed_side_share: the Side share the pick's page shows, as a 0..1 fraction. */
|
|
6669
|
+
backed_side_share?: number;
|
|
6670
|
+
/** The full pick's sharp_positioned_usd: the Sharp positioned value the pick's page shows, in USD. */
|
|
6671
|
+
sharp_positioned_usd?: number;
|
|
6594
6672
|
}[];
|
|
6595
6673
|
proof_pending_picks?: ({
|
|
6596
6674
|
is_free_selection: boolean;
|
|
@@ -7202,7 +7280,7 @@ export interface OperationQuery {
|
|
|
7202
7280
|
getPickOfTheDay: {
|
|
7203
7281
|
/** 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. */
|
|
7204
7282
|
date?: string;
|
|
7205
|
-
/** 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 grade (pick_id, publication_order, is_free_selection, matchup, category, display_category, event_slug, polymarket_url, token_id, pick_outcome_label, outcome, backed_price, stake_usd, return_usd, unit_score, top_grade, holder_count, clv_status, clv_pct, release_at, kickoff, game_started, game_ended), 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. */
|
|
7283
|
+
/** 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 grade (pick_id, publication_order, is_free_selection, matchup, category, display_category, event_slug, polymarket_url, token_id, pick_outcome_label, outcome, backed_price, stake_usd, return_usd, unit_score, top_grade, holder_count, backed_side_share, sharp_positioned_usd, clv_status, clv_pct, release_at, kickoff, game_started, game_ended), 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. */
|
|
7206
7284
|
view?: "full" | "summary";
|
|
7207
7285
|
/** 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. */
|
|
7208
7286
|
pick_id?: string;
|
|
@@ -7212,7 +7290,7 @@ export interface OperationQuery {
|
|
|
7212
7290
|
view?: "full" | "summary";
|
|
7213
7291
|
/** Rows per page of picks, 1 to 200, default 50. An integer outside that range is clamped into it, like every list limit, and X-Effective-Query reports the limit applied; a value that is not an integer returns 400 invalid_query. On view=full, sending limit or cursor pages picks and adds page, while days and hit_rate still describe the whole record; with neither, the response is the whole record. */
|
|
7214
7292
|
limit?: number;
|
|
7215
|
-
/** The page.next_cursor of the previous page: the rows after it, newest first. A cursor is a position in the record, so a pick published while you page does not shift later pages.
|
|
7293
|
+
/** The page.next_cursor of the previous page: the rows after it, newest first. A cursor is a position in the record, pick_date.pick_rank (YYYY-MM-DD.N), so a pick published while you page does not shift later pages. Any value in that form is read as a position, including one this route did not return, and the page holds the rows after it; a value not in that form returns 400 bad_request with error.param=cursor. */
|
|
7216
7294
|
cursor?: string;
|
|
7217
7295
|
};
|
|
7218
7296
|
getPickOfTheDayLedger: Record<string, never>;
|