@0xinsider/sdk 0.60.0 → 0.70.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 +27 -0
- package/dist/client.d.ts +123 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +140 -0
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/provenance.d.ts +2 -2
- package/dist/provenance.js +3 -3
- package/dist/schema.d.ts +547 -14
- package/dist/schema.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -226,6 +226,71 @@ export type CategorySkillV2 = {
|
|
|
226
226
|
edge_lower_95: number | null;
|
|
227
227
|
brier_event_avg: number | null;
|
|
228
228
|
};
|
|
229
|
+
export type Clv = {
|
|
230
|
+
/** Polymarket condition id. */
|
|
231
|
+
condition_id: string;
|
|
232
|
+
/** measured: clv carries the figures. in_play: placed_at is at or after kickoff, so the pre-game close does not grade it. pending: no close is stored yet. unavailable: no close will grade it; see unavailable_reason. */
|
|
233
|
+
status: "measured" | "in_play" | "pending" | "unavailable";
|
|
234
|
+
/** Set exactly when status is unavailable: the close's own unavailable_reason (GET /api/v1/market/{condition_id}/close), or anchor_stale when kickoff moved more than six hours after the close was captured. */
|
|
235
|
+
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;
|
|
236
|
+
outcome: ClvOutcome;
|
|
237
|
+
/** Both outcomes of the market, the first (YES) then the second (NO). */
|
|
238
|
+
outcomes: ClvOutcome[];
|
|
239
|
+
/** Which way the entry traded the outcome. A sell is measured as the buy of the other outcome. */
|
|
240
|
+
side: "buy" | "sell";
|
|
241
|
+
/** The price the caller got. */
|
|
242
|
+
entry: {
|
|
243
|
+
/** For a buy, the break-even probability of the bet, 0 to 1: the Polymarket price paid, or 1 divided by the decimal odds. For a sell, the price received. */
|
|
244
|
+
price: number;
|
|
245
|
+
/** The odds as sent, when the entry was sportsbook odds; null for a price entry. */
|
|
246
|
+
from_odds: string | null;
|
|
247
|
+
/** The format from_odds was read in; null for a price entry. */
|
|
248
|
+
format: "american" | "decimal" | null;
|
|
249
|
+
/** The bought side's decimal odds: the total return per 1 staked. */
|
|
250
|
+
decimal_odds: number;
|
|
251
|
+
/** When the bet was placed, as sent; null when not sent, which is read as a bet placed before kickoff. */
|
|
252
|
+
placed_at: string | null;
|
|
253
|
+
};
|
|
254
|
+
/** The stored close of the outcome, as GET /api/v1/market/{condition_id}/close serves it. */
|
|
255
|
+
close: {
|
|
256
|
+
/** The close endpoint's status for the market. */
|
|
257
|
+
status: "measured" | "pending" | "unavailable";
|
|
258
|
+
/** Set exactly when close.status is unavailable. */
|
|
259
|
+
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;
|
|
260
|
+
/** The outcome's closing price, 0 to 1, whenever a close is stored: the stored YES price, or 1 minus it for the NO leg. null otherwise, never 0. */
|
|
261
|
+
price: number | null;
|
|
262
|
+
/** The market's kickoff as stored now. */
|
|
263
|
+
game_start_time: string | null;
|
|
264
|
+
/** The instant the close was measured at: the kickoff when it was captured. */
|
|
265
|
+
close_anchor_at: string | null;
|
|
266
|
+
/** true when kickoff has moved more than the 6-hour lookback since the close was captured. null without a stored close. */
|
|
267
|
+
anchor_stale: boolean | null;
|
|
268
|
+
/** Start of the provider bucket the close is. */
|
|
269
|
+
observed_at: string | null;
|
|
270
|
+
/** Provider endpoint and grain, e.g. polymarket_data_v2_prices_history@minute-window-v1. */
|
|
271
|
+
source: string | null;
|
|
272
|
+
};
|
|
273
|
+
/** The CLV figures, set exactly when status is measured; every field null otherwise. Gross of fees. */
|
|
274
|
+
clv: {
|
|
275
|
+
/** Price entries only: the close minus the price paid (a sell: the price received minus the close), in cents per share. null for an odds entry. */
|
|
276
|
+
cents: number | null;
|
|
277
|
+
/** The close probability minus the entry's break-even probability, in percentage points. Positive beat the close. */
|
|
278
|
+
points: number | null;
|
|
279
|
+
/** The entry's decimal odds over the close's decimal odds, minus 1, in percent. */
|
|
280
|
+
price_pct: number | null;
|
|
281
|
+
/** The entry's decimal odds times the close probability, minus 1, in percent: the expected return per unit staked if the close was fair. Equal to price_pct against a Polymarket close. */
|
|
282
|
+
ev_at_close_pct: number | null;
|
|
283
|
+
};
|
|
284
|
+
/** The CLV definition, clv@v1, the large trades' own. */
|
|
285
|
+
basis_version: string;
|
|
286
|
+
};
|
|
287
|
+
/** One outcome of the market. */
|
|
288
|
+
export type ClvOutcome = {
|
|
289
|
+
/** Provider outcome index: 0 is the YES leg, 1 the NO leg. */
|
|
290
|
+
index: number;
|
|
291
|
+
/** The outcome's label. */
|
|
292
|
+
label: string | null;
|
|
293
|
+
};
|
|
229
294
|
export type Combo = {
|
|
230
295
|
/** Combo identifier: 0x followed by 62 lowercase hex characters. This differs from a binary market condition ID. */
|
|
231
296
|
condition_id: string;
|
|
@@ -601,6 +666,21 @@ export type EdgeHunterMarketContext = {
|
|
|
601
666
|
/** Exact local canonical metadata writer market_canonical.updated_at. This is not a provider observation clock; null means unavailable. */
|
|
602
667
|
metadata_updated_at: string | null;
|
|
603
668
|
};
|
|
669
|
+
/** One sport's most_held_48h cutoff: the last market the selection admitted and the values it was ranked by. */
|
|
670
|
+
export type EdgeHunterMostHeld48hCutoff = {
|
|
671
|
+
/** Canonical sport bucket, as on a row's category. */
|
|
672
|
+
sport: string;
|
|
673
|
+
/** The market's place in the sport's most_held_48h admission order, which is the number of markets most_held_48h admitted in the sport: 8 when the sport has 8 to admit. */
|
|
674
|
+
position: number;
|
|
675
|
+
/** The market. It may have no card in an admission=most_held_48h response when its holder read ended without one (a split pile, no read). */
|
|
676
|
+
condition_id: string;
|
|
677
|
+
/** The first ranking value: S, A and B graded wallets in the 0xinsider index holding either outcome, as on a row's indexed_graded_holders. */
|
|
678
|
+
indexed_graded_holders: number;
|
|
679
|
+
/** The second ranking value, as on a row's volume. null only for a market without a stored volume, which the ranking never holds: such a market counts as invalid_market. */
|
|
680
|
+
volume: number | null;
|
|
681
|
+
/** The third ranking value: of two markets with equal holders and volume, the earlier kickoff ranks first, then the lower condition_id. */
|
|
682
|
+
game_start_time: string;
|
|
683
|
+
};
|
|
604
684
|
/** 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. */
|
|
605
685
|
export type EdgeHunterObservation = {
|
|
606
686
|
/** The side profitable wallets hold, as a provider-backed display label. Canonical spelling of piled_side (#16310), same value: when provider group context is unavailable it may remain a bare Yes/No/Over/Under, so do not use it alone as participant identity. */
|
|
@@ -685,6 +765,8 @@ export type EdgeHunterObservation = {
|
|
|
685
765
|
market_context: EdgeHunterMarketContext | null;
|
|
686
766
|
/** 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. */
|
|
687
767
|
indexed_graded_holders: number | null;
|
|
768
|
+
/** 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. */
|
|
769
|
+
most_held_48h_position?: number | null;
|
|
688
770
|
};
|
|
689
771
|
/** 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. */
|
|
690
772
|
export type EdgeHunterObservationCoverage = {
|
|
@@ -751,6 +833,8 @@ export type EdgeHunterObservationsResponse = {
|
|
|
751
833
|
departures?: EdgeHunterObservationDeparture[];
|
|
752
834
|
/** 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. */
|
|
753
835
|
signals_as_of?: string | null;
|
|
836
|
+
/** 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. */
|
|
837
|
+
most_held_48h_cutoffs?: EdgeHunterMostHeld48hCutoff[];
|
|
754
838
|
};
|
|
755
839
|
/** 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. */
|
|
756
840
|
export type EdgeHunterObservationTerminalReason = "outside_horizon" | "resolved" | "provider_closed" | "provider_excluded" | "invalid_market" | "missing_token" | "missing_stored_market" | "not_provider_live" | "board_source_unavailable" | "board_deadline_unavailable" | "primary_slate_candidate" | "zero_indexed_holder_research" | "capacity_limited" | "provider_unavailable" | "holder_deadline_unavailable" | "holder_computation_unavailable" | "holder_scan_incomplete" | "no_current_graded_holder" | "split_holder_pile" | "price_unavailable" | "wider_holder_emitted" | "in_play_emitted" | "in_play_stale_observed" | "in_play_directional_unavailable" | "internal_unclassified";
|
|
@@ -1271,6 +1355,114 @@ export type ExportVolumeReconciliation = {
|
|
|
1271
1355
|
/** Always null, for the same reason as provider_activity_volume_gap. */
|
|
1272
1356
|
activity_volume_coverage: number | null;
|
|
1273
1357
|
};
|
|
1358
|
+
/** One game outcome's Polymarket fair price, with the checks that say whether it is fit to price a bet against. */
|
|
1359
|
+
export type FairPrice = {
|
|
1360
|
+
/** ok: two-sided, within max_spread_c, at or above min_book_usd_within_2c where the depth is known, confirmed current within 60 seconds. closed: the market closed or resolved, so there is no price to take. unavailable: no midpoint, and unavailable_reason says why. Otherwise the first entry of failed_checks. */
|
|
1361
|
+
status: "ok" | "wide_spread" | "thin_book" | "stale_quote" | "closed" | "unavailable";
|
|
1362
|
+
/** Set exactly when status is unavailable. cache_miss: the cache holds no book for the outcome yet, and this read starts its live book, so a read a few seconds later may answer. cache_unavailable: the book cache could not be read; a read a few seconds later may answer. stream_capacity: the market is not streamed and API reads hold every live book they may open; read it less often. no_orderbook: the provider confirmed the outcome has no order book. missing_provider_token_id: the outcome has no provider token id. one_sided_book: the book holds bids or asks, not both. empty_book: the book holds no orders. other_outcome_unavailable: the outcome's book is two-sided, but another outcome of its market (a 1X2 game's other leg, or a two-way market's other side) has no midpoint, so the midpoints cannot be normalised. */
|
|
1363
|
+
unavailable_reason: "cache_miss" | "cache_unavailable" | "stream_capacity" | "no_orderbook" | "missing_provider_token_id" | "one_sided_book" | "empty_book" | "other_outcome_unavailable" | null;
|
|
1364
|
+
/** Every check the quote failed, in status order; empty when none did. wide_spread: the spread is above max_spread_c. thin_book: a side holds less than min_book_usd_within_2c within 2 cents of the midpoint. stale_quote: the book was last confirmed current more than 60 seconds before as_of (quote.confirmed_age_seconds above 60). */
|
|
1365
|
+
failed_checks: ("wide_spread" | "thin_book" | "stale_quote")[];
|
|
1366
|
+
/** The market's condition id. */
|
|
1367
|
+
condition_id: string;
|
|
1368
|
+
/** The market's own event: the game's slug, or a child event's (a soccer game's spreads and totals sit under its -more-markets event). game.event_slug is always the game's. */
|
|
1369
|
+
event_slug: string;
|
|
1370
|
+
/** moneyline, spread or total; null for another market type, priced by condition_id. */
|
|
1371
|
+
market_type: "moneyline" | "spread" | "total" | null;
|
|
1372
|
+
/** The provider's sportsMarketType, verbatim: moneyline, spreads, totals or another type. */
|
|
1373
|
+
sports_market_type: string | null;
|
|
1374
|
+
/** The provider's per-market display name, for example Albania on a 1X2 leg. */
|
|
1375
|
+
title: string | null;
|
|
1376
|
+
/** The outcome's own handicap on a spread (-3.5), the total on a total (222.5); null on a moneyline. */
|
|
1377
|
+
line: number | null;
|
|
1378
|
+
/** Whether the market is a leg of a soccer 1X2 game: fair.prob is then normalised over the three legs' Yes midpoints. */
|
|
1379
|
+
three_way: boolean;
|
|
1380
|
+
/** The priced outcome. */
|
|
1381
|
+
outcome: {
|
|
1382
|
+
/** The provider's outcome index, 0 or 1. */
|
|
1383
|
+
index: number;
|
|
1384
|
+
/** The provider's outcome label: Commanders, Over, or Yes on a 1X2 leg. */
|
|
1385
|
+
label: string | null;
|
|
1386
|
+
/** The outcome's CLOB token id, a decimal string; null when the provider has none. */
|
|
1387
|
+
token_id: string | null;
|
|
1388
|
+
};
|
|
1389
|
+
/** The outcome's cached top of book. */
|
|
1390
|
+
quote: {
|
|
1391
|
+
/** The outcome's best bid, 0 to 1; null when the book holds no bids. */
|
|
1392
|
+
best_bid: number | null;
|
|
1393
|
+
/** The outcome's best ask, 0 to 1; null when the book holds no asks. */
|
|
1394
|
+
best_ask: number | null;
|
|
1395
|
+
/** (best_bid + best_ask) / 2; null without both sides. */
|
|
1396
|
+
mid: number | null;
|
|
1397
|
+
/** best_ask less best_bid, in cents, to a hundredth of a cent; null without both sides. */
|
|
1398
|
+
spread_c: number | null;
|
|
1399
|
+
/** USD resting within 2 cents of the midpoint on each side; null when the cache holds none, which is unknown, never 0, and fails no check. */
|
|
1400
|
+
book_depth_within_2c: {
|
|
1401
|
+
/** USD resting on bids at or above the midpoint less 0.02: each level's price times size. */
|
|
1402
|
+
bid_usd: number;
|
|
1403
|
+
/** USD resting on asks at or below the midpoint plus 0.02: each level's price times size. */
|
|
1404
|
+
ask_usd: number;
|
|
1405
|
+
} | null;
|
|
1406
|
+
/** When best_bid or best_ask last changed: the CLOB frame, or CLOB books read, behind them. A quiet book keeps it for as long as it stands. */
|
|
1407
|
+
observed_at: string | null;
|
|
1408
|
+
/** Seconds from observed_at to as_of: how long the bid and ask have stood. stale_quote reads confirmed_age_seconds instead. */
|
|
1409
|
+
age_seconds: number | null;
|
|
1410
|
+
/** The last instant the book is known to have been current: observed_at, or later when the live CLOB stream has since confirmed the unchanged book still matched. A dropped or stalled stream, a book the stream stopped matching, and a CLOB REST read confirm nothing, so confirmed_at is then observed_at. Null when observed_at is. */
|
|
1411
|
+
confirmed_at: string | null;
|
|
1412
|
+
/** Seconds from confirmed_at to as_of. Above 60 fails stale_quote. */
|
|
1413
|
+
confirmed_age_seconds: number | null;
|
|
1414
|
+
/** Who read the book: the CLOB stream or a CLOB REST read. */
|
|
1415
|
+
source: "clob_stream" | "clob_rest" | null;
|
|
1416
|
+
};
|
|
1417
|
+
/** The taker fee a buy at quote.best_ask pays: fee per share = rate x (p x (1 - p))^exponent, with p the ask. */
|
|
1418
|
+
fee: {
|
|
1419
|
+
/** observed: the market's own Gamma fee curve. disabled: the market's Gamma record says it charges no fee. assumed: no record in hand, so the 0.05 sports rate Polymarket's fee page documents, exponent 1. */
|
|
1420
|
+
basis: "observed" | "disabled" | "assumed";
|
|
1421
|
+
/** The taker fee rate; 0 when basis is disabled. */
|
|
1422
|
+
rate: number;
|
|
1423
|
+
/** The fee curve's exponent. */
|
|
1424
|
+
exponent: number;
|
|
1425
|
+
/** When the market's Gamma record was read; null when basis is assumed. */
|
|
1426
|
+
observed_at: string | null;
|
|
1427
|
+
/** The taker fee per share of a buy at quote.best_ask, in USD; null without an ask. */
|
|
1428
|
+
taker_fee_per_share: number | null;
|
|
1429
|
+
/** best_ask plus taker_fee_per_share: what one share costs a taker, in USD; null without an ask. */
|
|
1430
|
+
taker_all_in_ask: number | null;
|
|
1431
|
+
};
|
|
1432
|
+
/** The fair probability and the odds it implies. */
|
|
1433
|
+
fair: {
|
|
1434
|
+
/** The fair probability, 0 to 1: the outcome's midpoint normalised over the market's mutually exclusive outcomes; null without a midpoint. */
|
|
1435
|
+
prob: number | null;
|
|
1436
|
+
/** The outcome's own midpoint, before normalising. */
|
|
1437
|
+
prob_mid: number | null;
|
|
1438
|
+
/** 1 / prob: the shortest decimal odds that are not negative expected value at the fair probability. */
|
|
1439
|
+
decimal_odds: number | null;
|
|
1440
|
+
/** The same price as American odds: (decimal_odds - 1) x 100 when decimal_odds is 2 or more, else -100 / (decimal_odds - 1). */
|
|
1441
|
+
american_odds: number | null;
|
|
1442
|
+
/** two_way_mid: the outcome's midpoint over the sum of both outcomes' midpoints. three_way_mid: a 1X2 leg's Yes midpoint over the sum of the three Yes midpoints; its No is one less that. */
|
|
1443
|
+
method: "two_way_mid" | "three_way_mid";
|
|
1444
|
+
};
|
|
1445
|
+
/** The game the market belongs to. */
|
|
1446
|
+
game: {
|
|
1447
|
+
/** The game's event slug, the key of GET /api/v1/games/{event_slug}. */
|
|
1448
|
+
event_slug: string;
|
|
1449
|
+
/** The stored kickoff; null when the mirror holds none. */
|
|
1450
|
+
start: string | null;
|
|
1451
|
+
/** Whether the kickoff had passed at as_of, so the price may be in play; null when the kickoff is unknown. */
|
|
1452
|
+
started: boolean | null;
|
|
1453
|
+
};
|
|
1454
|
+
/** The limits this answer was checked against. */
|
|
1455
|
+
thresholds: {
|
|
1456
|
+
/** The spread cap, in cents: the request's max_spread_c, default 3. */
|
|
1457
|
+
max_spread_c: number;
|
|
1458
|
+
/** The depth floor per side, in USD: the request's min_book_usd_within_2c, default 500. */
|
|
1459
|
+
min_book_usd_within_2c: number;
|
|
1460
|
+
/** The oldest book that still prices, in seconds: 60. */
|
|
1461
|
+
max_quote_age_seconds: number;
|
|
1462
|
+
};
|
|
1463
|
+
/** When this answer was read. */
|
|
1464
|
+
as_of: string;
|
|
1465
|
+
};
|
|
1274
1466
|
export type FreshnessFailure = {
|
|
1275
1467
|
/** The caller's requested whole-response freshness ceiling in seconds. */
|
|
1276
1468
|
max_age_s: number;
|
|
@@ -2219,7 +2411,7 @@ export type MarketHolder = {
|
|
|
2219
2411
|
/** Why `category_win_rate` is present or absent: `measured` (rate present), `not_enough_data` (under the floor of 5 decided markets in the category), or `unavailable` (the market has no canonical category, or the read failed; retry later). Never `untracked`: this route lists S, A and B wallets only, all on file. Always present on this route. */
|
|
2220
2412
|
category_win_rate_status: "measured" | "not_enough_data" | "unavailable" | "untracked";
|
|
2221
2413
|
category_evidence?: HolderCategoryEvidence;
|
|
2222
|
-
/** Whole UTC calendar days since this wallet's first trade: 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. */
|
|
2414
|
+
/** 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. */
|
|
2223
2415
|
wallet_age_days?: number | null;
|
|
2224
2416
|
/** True when the wallet's first trade was under 30 days ago. */
|
|
2225
2417
|
is_new_wallet?: boolean;
|
|
@@ -2554,7 +2746,7 @@ export type MarketTopHolder = {
|
|
|
2554
2746
|
category_win_rate_game?: string;
|
|
2555
2747
|
/** 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. */
|
|
2556
2748
|
category_win_rate_status?: "measured" | "not_enough_data" | "unavailable" | "untracked";
|
|
2557
|
-
/** Whole UTC calendar days since this wallet's first trade: 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. */
|
|
2749
|
+
/** 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. */
|
|
2558
2750
|
wallet_age_days?: number | null;
|
|
2559
2751
|
/** True when the wallet's first trade was under 30 days ago. */
|
|
2560
2752
|
is_new_wallet?: boolean;
|
|
@@ -2564,6 +2756,8 @@ export type MarketTopHolder = {
|
|
|
2564
2756
|
is_bot?: boolean;
|
|
2565
2757
|
/** The wallet's X handle without the @, when linked. */
|
|
2566
2758
|
x_username?: string | null;
|
|
2759
|
+
/** 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 `category_avg_price` are as of this time. Absent on every other row, which is as of the payload's `category_records_as_of`. */
|
|
2760
|
+
category_records_as_of?: string;
|
|
2567
2761
|
};
|
|
2568
2762
|
export type MarketTopHolders = {
|
|
2569
2763
|
market: MarketHoldersMarket;
|
|
@@ -2574,7 +2768,7 @@ export type MarketTopHolders = {
|
|
|
2574
2768
|
totals: MarketTopHoldersTotals;
|
|
2575
2769
|
/** `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. */
|
|
2576
2770
|
profiles_status: "available" | "unavailable";
|
|
2577
|
-
/** When the daily pass behind the rows' category win records began. Absent when the market has no category or the read answered no row. */
|
|
2771
|
+
/** 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. */
|
|
2578
2772
|
category_records_as_of?: string;
|
|
2579
2773
|
/** When this holder sample was built. */
|
|
2580
2774
|
computed_at?: string;
|
|
@@ -2739,6 +2933,33 @@ export type PickHolder = {
|
|
|
2739
2933
|
category_price_edge_hold?: PickHolderPriceEdgeHold;
|
|
2740
2934
|
/** 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. */
|
|
2741
2935
|
category_scope_price_edge_hold?: PickHolderPriceEdgeHold;
|
|
2936
|
+
/** 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 `exited` for the time between release and the game's start, then `redeemed` once the wallet redeemed backed shares after settlement. 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. */
|
|
2937
|
+
after_release?: {
|
|
2938
|
+
/** End of the share-change window: the game's start once it has started, else `observed_at`. Trading during the game does not count. */
|
|
2939
|
+
changes_through: string;
|
|
2940
|
+
/** True once the facts are stored, 72 hours after settlement; they no longer change. */
|
|
2941
|
+
frozen: boolean;
|
|
2942
|
+
/** Time of the wallet's latest fill, merge or split on either outcome in the change window. Absent when it made none. */
|
|
2943
|
+
last_change_at?: string;
|
|
2944
|
+
/** When the facts were read, to the minute, or when they were stored. */
|
|
2945
|
+
observed_at: string;
|
|
2946
|
+
/** Net shares of the other outcome the wallet gained in the change window: positive when it bought the other side. */
|
|
2947
|
+
other_shares_change?: number;
|
|
2948
|
+
/** When the wallet's latest redemption of backed shares settled. Present beside `redeemed_shares`. */
|
|
2949
|
+
redeemed_at?: string;
|
|
2950
|
+
/** Backed shares the wallet redeemed after the market settled, up to `redemptions_through`. Absent when it redeemed none. */
|
|
2951
|
+
redeemed_shares?: number;
|
|
2952
|
+
/** End of the redemption window: settlement plus 72 hours once stored, else `observed_at`. */
|
|
2953
|
+
redemptions_through: string;
|
|
2954
|
+
/** The release `shares` plus `shares_change`, never below zero. */
|
|
2955
|
+
shares_after?: number;
|
|
2956
|
+
/** Net backed shares gained in the change window: bought, minus sold and merged, plus split. Negative when the wallet cut its position. */
|
|
2957
|
+
shares_change?: number;
|
|
2958
|
+
/** `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`. */
|
|
2959
|
+
state: "held" | "added" | "reduced" | "exited" | "redeemed" | "unavailable";
|
|
2960
|
+
/** 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. */
|
|
2961
|
+
unavailable_reason?: "read_failed" | "wallet_not_indexed" | "market_not_indexed";
|
|
2962
|
+
};
|
|
2742
2963
|
};
|
|
2743
2964
|
/** 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 of $20 or more at a known entry price. 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. */
|
|
2744
2965
|
export type PickHolderPriceEdge = {
|
|
@@ -2840,7 +3061,7 @@ export type PickOfTheDay = {
|
|
|
2840
3061
|
* @deprecated
|
|
2841
3062
|
*/
|
|
2842
3063
|
smart_wallet_count?: number;
|
|
2843
|
-
/** Best recorded S/A grade in the public V1 compatibility projection. */
|
|
3064
|
+
/** Best recorded S/A grade in the public V1 compatibility projection. Absent when the pick lists no S or A grade wallet, for example a pick that lists only B grade wallets; display_holders lists every grade. */
|
|
2844
3065
|
top_grade?: string;
|
|
2845
3066
|
/** Recorded graded-flow magnitude in USD on the backed side. Absent when the recorded value is zero, and on every pick that carries lead_backer. */
|
|
2846
3067
|
sharp_usd?: number;
|
|
@@ -2912,7 +3133,7 @@ export type PickOfTheDay = {
|
|
|
2912
3133
|
holders?: PickHolder[];
|
|
2913
3134
|
/** Optional recorded holder roster in display order, with lead_backer first when present. Preserve the returned order. The roster can include wallets outside the recorded count and aggregate fields; do not derive holder_count, wallet counts or backed_sharp_usd from its length or a sum. Position values are gross holdings on the backed outcome and can coexist with holdings on the other outcome. Historical rows retain their recorded display shape. */
|
|
2914
3135
|
display_holders?: PickHolder[];
|
|
2915
|
-
/** S/A holder count for the public V1 compatibility projection. display_holders can include additional grades. */
|
|
3136
|
+
/** S/A holder count for the public V1 compatibility projection. display_holders can include additional grades. sharp_positioned_usd and backed_side_share count every grade the pick lists, so a pick that lists only B grade wallets reads 0 here beside a positive sharp_positioned_usd. */
|
|
2916
3137
|
holder_count?: number;
|
|
2917
3138
|
/** Display-ready explanation of the recorded pick. Render the returned text rather than reconstructing it from holder counts or grades. */
|
|
2918
3139
|
thesis?: string;
|
|
@@ -3023,10 +3244,28 @@ export type PickOfTheDay = {
|
|
|
3023
3244
|
resolved_at?: string;
|
|
3024
3245
|
/** 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. */
|
|
3025
3246
|
kickoff?: string;
|
|
3026
|
-
/**
|
|
3247
|
+
/** The Sharp side share the pick's page shows, from the same recorded value: of all the dollars graded wallets held in the market, on both sides, the part on the backed side, as a fraction from 0 to 1 (pick 2153 reads 0.887, which the page prints as 88.7%). 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. Frozen when the pick was selected, or at its first complete pre-game publication read for a pick stored without a selection snapshot, and not updated after. A measure of positioning, not a winning probability. Absent when the pick recorded no share. Additive and optional. */
|
|
3027
3248
|
backed_side_share?: number;
|
|
3028
|
-
/**
|
|
3249
|
+
/** The Sharp positioned value the pick's page shows, from the same recorded value: the dollars, in USD, that the wallets the pick counts held on the backed side, on the same grade basis as backed_side_share. When the pick's frozen wallet list states each counted wallet's shares, it is those shares at the pick's recorded price; otherwise it is the figure stored when the pick was selected, which covers every graded wallet on the backed side then. On picks dated before 2026-08-12 it equals backed_sharp_usd. Recorded for the pick and not updated after: 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
3250
|
sharp_positioned_usd?: number;
|
|
3251
|
+
/** Every graded wallet (S, A or B) holding the backed side when the pick was selected, listed or not: the wallets whose money backed_side_share is the share of. display_holders lists some of them, so this can exceed holder_count and the roster's length (pick 2178 lists 6 of 11). Sent on picks recorded under the current S, A and B wallet policy that stored the count; absent otherwise, on a teaser, and on payloads predating the field. Additive and optional. */
|
|
3252
|
+
side_graded_wallet_count?: number;
|
|
3253
|
+
/** Those wallets' gross USD on the backed side when the pick was selected, sent only beside side_graded_wallet_count and only when above zero. It values every share at selection, so it can differ from sharp_positioned_usd. Not a live balance or entry cost. Additive and optional. */
|
|
3254
|
+
side_graded_usd?: number;
|
|
3255
|
+
/** The pick's sealed pre-game commitment as 64 lowercase hex characters: the commitment_hash its entry in GET /api/v1/pick-of-the-day/ledger/{pick_id} and the public repository github.com/0xinsider/picks carry. Sent with sealed_at, ledger_url and committed_kickoff, all four or none; absent on a pick that was never sealed. Additive and optional. */
|
|
3256
|
+
commitment_hash?: string;
|
|
3257
|
+
/** The game start the sealed commitment bound (RFC3339 UTC): the start the pick was released against, the kickoff its opened ledger payload carries. kickoff follows the provider's current schedule, so the two differ when the game moved after release; measure how far ahead of the game a pick went out from this one. Sent with commitment_hash. Additive and optional. */
|
|
3258
|
+
committed_kickoff?: string;
|
|
3259
|
+
/** The same instant as kickoff, under the name the 0xinsider site's own pick body uses. Sent whenever kickoff is. Additive and optional. */
|
|
3260
|
+
game_start_time?: string;
|
|
3261
|
+
/** When the pick's release read of its listed wallets was taken (RFC3339 UTC): the first accepted read of the backed side's holders, stored once at release and never read again, keeping only the wallets display_holders lists. Absent when no release read is stored for the pick yet, when the stored read was not taken at release (picks released before the release read began on November 10, 2026, or whose first read came late), and on picks without display_holders. Additive and optional. */
|
|
3262
|
+
holders_observed_at?: string;
|
|
3263
|
+
/** The page of the public ledger file in github.com/0xinsider/picks that records this pick's product day; its history shows the commit that recorded the hash. Sent with commitment_hash. Additive and optional. */
|
|
3264
|
+
ledger_url?: string;
|
|
3265
|
+
/** When the daily wallet-record pass behind the listed wallets' records began (RFC3339 UTC), from the same stored release read as holders_observed_at and under the same conditions: the oldest a listed wallet's records can be, since a wallet is also recounted about an hour after its markets settle. Absent when that read recorded no pass. Additive and optional. */
|
|
3266
|
+
records_as_of?: string;
|
|
3267
|
+
/** When the commitment was sealed (RFC3339 UTC), the sealed_at its ledger entry carries; always before committed_kickoff. Sent with commitment_hash. Additive and optional. */
|
|
3268
|
+
sealed_at?: string;
|
|
3030
3269
|
};
|
|
3031
3270
|
export type PickOfTheDayArchive = {
|
|
3032
3271
|
/** 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. */
|
|
@@ -3082,7 +3321,7 @@ export type PickOfTheDayArchiveEntry = {
|
|
|
3082
3321
|
image_url?: string;
|
|
3083
3322
|
/** The backed side's outcome label. Omitted for a still-pending pick when the request is not from an authenticated Pro key. */
|
|
3084
3323
|
pick_outcome_label?: string;
|
|
3085
|
-
/** Recorded
|
|
3324
|
+
/** Recorded best S or A grade on the backed side in the public V1 compatibility projection. Omitted when unavailable, including on a pick that lists no S or A grade wallet. Historical values remain recorded snapshots. */
|
|
3086
3325
|
top_grade?: string;
|
|
3087
3326
|
/** Settlement outcome of the backed side; 'pending' until the market resolves. */
|
|
3088
3327
|
outcome: "pending" | "win" | "loss" | "void";
|
|
@@ -3192,6 +3431,7 @@ export type PickOfTheDayArchiveSummary = {
|
|
|
3192
3431
|
pick_outcome_label?: string;
|
|
3193
3432
|
publication_order: number;
|
|
3194
3433
|
required_tier?: string;
|
|
3434
|
+
/** The best S or A grade the pick lists on the backed side. Absent when it lists no S or A grade wallet, and on a locked row. */
|
|
3195
3435
|
top_grade?: string;
|
|
3196
3436
|
unit_score?: number;
|
|
3197
3437
|
}[];
|
|
@@ -3355,6 +3595,8 @@ export type PickOfTheDayLedgerOpenedEntry = {
|
|
|
3355
3595
|
outcome: "win" | "loss" | "void";
|
|
3356
3596
|
/** 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. */
|
|
3357
3597
|
withdrawal_reason: "provider_game_cancelled" | "published_after_kickoff" | null;
|
|
3598
|
+
/** 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. */
|
|
3599
|
+
withdrawn_at: string | null;
|
|
3358
3600
|
/** Frozen matchup, for a reader. */
|
|
3359
3601
|
matchup: string;
|
|
3360
3602
|
/** Frozen canonical sport bucket (for example Basketball or MMA), not the exact public league identity; the archive owns that. */
|
|
@@ -3423,6 +3665,8 @@ export type PickOfTheDayLedgerUncommittedEntry = {
|
|
|
3423
3665
|
outcome: "pending" | "win" | "loss" | "void";
|
|
3424
3666
|
/** 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. */
|
|
3425
3667
|
withdrawal_reason?: "provider_game_cancelled" | "published_after_kickoff" | null;
|
|
3668
|
+
/** 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. */
|
|
3669
|
+
withdrawn_at?: string | null;
|
|
3426
3670
|
/** Frozen matchup, for a reader. */
|
|
3427
3671
|
matchup?: string;
|
|
3428
3672
|
/** Frozen canonical sport bucket (for example Basketball or MMA), not the exact public league identity; the archive owns that. */
|
|
@@ -4594,6 +4838,35 @@ export type PotdEntryAuthorization = {
|
|
|
4594
4838
|
/** Authorization expiry timestamp. Existing grants do not extend; an expired authorization cannot authorize a new automated entry. */
|
|
4595
4839
|
expires_at: string;
|
|
4596
4840
|
};
|
|
4841
|
+
/** What outcome 0's midpoint did after the move, read from the live order book: two-sided with a spread of 10 cents or less. Each checkpoint is measured (mid and its read time), unavailable (unavailable_reason), or pending. Null never means 0. */
|
|
4842
|
+
export type PriceMoveOutcomeAfter = {
|
|
4843
|
+
/** pending: a checkpoint is not due yet, or due and not read yet. final: every checkpoint is measured or unavailable, and nothing here changes again. */
|
|
4844
|
+
status: "pending" | "final";
|
|
4845
|
+
/** Outcome 0's midpoint at the first read at or after detected_at + 15 minutes, as a decimal string; null until measured or when unavailable. */
|
|
4846
|
+
mid_15m: string | null;
|
|
4847
|
+
/** When the 15-minute midpoint was read. */
|
|
4848
|
+
mid_15m_at: string | null;
|
|
4849
|
+
/** Whether the 15-minute midpoint kept at least half of the move; null when not measured. */
|
|
4850
|
+
held_15m: boolean | null;
|
|
4851
|
+
/** no_quote: no two-sided quote with a spread of 10 cents or less at the checkpoint (an empty or one-sided book, a settled market). missed: no read landed within 5 minutes of the checkpoint. */
|
|
4852
|
+
mid_15m_unavailable_reason: "no_quote" | "missed" | null;
|
|
4853
|
+
/** As mid_15m, at detected_at + 60 minutes. */
|
|
4854
|
+
mid_60m: string | null;
|
|
4855
|
+
/** When the 60-minute midpoint was read. */
|
|
4856
|
+
mid_60m_at: string | null;
|
|
4857
|
+
/** Whether the 60-minute midpoint kept at least half of the move; null when not measured. */
|
|
4858
|
+
held_60m: boolean | null;
|
|
4859
|
+
/** As mid_15m_unavailable_reason. */
|
|
4860
|
+
mid_60m_unavailable_reason: "no_quote" | "missed" | null;
|
|
4861
|
+
/** As mid_15m, at the market's scheduled kickoff, for a pre-game move only. */
|
|
4862
|
+
mid_kickoff: string | null;
|
|
4863
|
+
/** When the kickoff midpoint was read. */
|
|
4864
|
+
mid_kickoff_at: string | null;
|
|
4865
|
+
/** Whether the kickoff midpoint kept at least half of the move; null when not measured and for every move that was not pre-game. */
|
|
4866
|
+
held_kickoff: boolean | null;
|
|
4867
|
+
/** no_quote and missed as for mid_15m_unavailable_reason. not_pre_game: the move was in play or its phase unknown, so it has no kickoff checkpoint. no_scheduled_start: the market had no scheduled kickoff after the move. */
|
|
4868
|
+
mid_kickoff_unavailable_reason: "no_quote" | "missed" | "not_pre_game" | "no_scheduled_start" | null;
|
|
4869
|
+
};
|
|
4597
4870
|
/** Settings for market_price_moved: required when event_types includes it, refused (400) when it does not. A PATCH without it keeps the stored settings; removing the event clears them. A subscription receives at most one delivery per market per window: the one level step whose (previous_level_cents, level_cents] holds min_move_cents. */
|
|
4598
4871
|
export type PriceMoveSubscriptionFilters = {
|
|
4599
4872
|
/** Move threshold in whole cents of outcome 0's midpoint. */
|
|
@@ -5055,6 +5328,14 @@ export type SportLeaderboard = {
|
|
|
5055
5328
|
/** What each row's volume measures. sports_and_esports: the wallet's volume across all its sports and esports markets, not this sport's or league's alone. */
|
|
5056
5329
|
volume_scope: "sports_and_esports";
|
|
5057
5330
|
};
|
|
5331
|
+
/** One stored price move: the market_price_moved payload of the episode's largest step, unchanged, plus move_id, episode_started_at and outcome_after. */
|
|
5332
|
+
export type StoredPriceMove = MarketPriceMovedData & {
|
|
5333
|
+
/** Stable id of the stored move: mv_ and a number. */
|
|
5334
|
+
move_id: string;
|
|
5335
|
+
/** When the episode opened, the order of every page. detected_at is the step this item holds, the episode's largest so far. */
|
|
5336
|
+
episode_started_at: string;
|
|
5337
|
+
outcome_after: PriceMoveOutcomeAfter;
|
|
5338
|
+
};
|
|
5058
5339
|
export type SuspiciousTrade = {
|
|
5059
5340
|
/** Prefixed ID (rf_...). */
|
|
5060
5341
|
id: string;
|
|
@@ -5123,6 +5404,34 @@ export type SuspiciousTrade = {
|
|
|
5123
5404
|
/** 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. */
|
|
5124
5405
|
pnl_usdc: number | null;
|
|
5125
5406
|
};
|
|
5407
|
+
/** 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. */
|
|
5408
|
+
hedge: {
|
|
5409
|
+
/** 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). */
|
|
5410
|
+
basis: "live" | "at_flag";
|
|
5411
|
+
/** Each opposing position, largest cost first. Empty unless `state` is `hedged`. */
|
|
5412
|
+
legs: ({
|
|
5413
|
+
/** The leg's market. */
|
|
5414
|
+
condition_id: string;
|
|
5415
|
+
/** The leg's outcome index in that market, 0 or 1 in Polymarket's outcome order (0 is Yes on a Yes/No market). */
|
|
5416
|
+
outcome_index: number;
|
|
5417
|
+
/** 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. */
|
|
5418
|
+
place: string;
|
|
5419
|
+
/** True for the other outcome of the flagged market itself. */
|
|
5420
|
+
same_market: boolean;
|
|
5421
|
+
/** Shares held. Null only when the amount has no finite number. */
|
|
5422
|
+
shares: number | null;
|
|
5423
|
+
/** Shares times the wallet's average entry price, in USD. Null when Polymarket gave no entry price. */
|
|
5424
|
+
usd: number | null;
|
|
5425
|
+
})[];
|
|
5426
|
+
/** The legs' total cost in USD: `0` for `none`, null when a leg's entry price is unknown or nothing was measured. */
|
|
5427
|
+
opposing_usd: number | null;
|
|
5428
|
+
/** 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. */
|
|
5429
|
+
positions_at: string | null;
|
|
5430
|
+
/** `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. */
|
|
5431
|
+
state: "hedged" | "none" | "unknown" | "sell";
|
|
5432
|
+
/** 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. */
|
|
5433
|
+
unknown_reason: "not_loaded" | "stale" | "market_decided" | "read_failed" | "not_recorded" | null;
|
|
5434
|
+
} | null;
|
|
5126
5435
|
};
|
|
5127
5436
|
/** `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). */
|
|
5128
5437
|
export type SuspiciousTradeFlaggedData = {
|
|
@@ -5334,7 +5643,7 @@ export type TraderCategoryRecords = {
|
|
|
5334
5643
|
basis: "settled_markets_all_sizes";
|
|
5335
5644
|
/** Decided markets a category needs before win_rate is served. Published so a caller can apply its own sample rule to the raw counts. */
|
|
5336
5645
|
min_decided_for_win_rate: number;
|
|
5337
|
-
/** When the served records were last rebuilt (RFC3339, Z): the newest stamp among every row served, game and scope rows included, which the daily rebuild writes in one transaction. Null when the wallet has no record at all. */
|
|
5646
|
+
/** When the served records were last rebuilt (RFC3339, Z): the newest stamp among every row served, game and scope rows included, which the daily rebuild, or the recount about an hour after a settlement, writes in one transaction. Null when the wallet has no record at all. */
|
|
5338
5647
|
computed_at: string | null;
|
|
5339
5648
|
/** One entry per canonical category with at least one decided market, ordered by decided descending then category. A category with no decided market is omitted. The Esports entry carries its per-game records in games, and every entry its per-scope records in scopes. */
|
|
5340
5649
|
records: TraderCategoryRecord[];
|
|
@@ -5346,7 +5655,7 @@ export type TraderCategoryScopeRecord = {
|
|
|
5346
5655
|
display_name: string;
|
|
5347
5656
|
/** Markets in this scope the wallet closed with a profit. */
|
|
5348
5657
|
wins: number;
|
|
5349
|
-
/** Markets in this scope it closed with a profit or a loss. A subset of the parent record's decided: the two are read from the same
|
|
5658
|
+
/** Markets in this scope it closed with a profit or a loss. A subset of the parent record's decided: the two are read from the same rebuild. */
|
|
5350
5659
|
decided: number;
|
|
5351
5660
|
/** wins / decided in [0,1], truncated to four decimals. Null when status is not_enough_data. */
|
|
5352
5661
|
win_rate: number | null;
|
|
@@ -5507,7 +5816,7 @@ export type TraderEsportsGameRecord = {
|
|
|
5507
5816
|
series_slug: string;
|
|
5508
5817
|
/** Markets in this game the wallet closed with a profit. */
|
|
5509
5818
|
wins: number;
|
|
5510
|
-
/** Markets in this game it closed with a profit or a loss. A subset of the parent Esports record's decided: the two are read from the same
|
|
5819
|
+
/** Markets in this game it closed with a profit or a loss. A subset of the parent Esports record's decided: the two are read from the same rebuild. */
|
|
5511
5820
|
decided: number;
|
|
5512
5821
|
/** wins / decided in [0,1], truncated to four decimals. Null when status is not_enough_data. */
|
|
5513
5822
|
win_rate: number | null;
|
|
@@ -6557,12 +6866,14 @@ export interface OperationData {
|
|
|
6557
6866
|
};
|
|
6558
6867
|
getApiDiscovery: ApiDiscovery;
|
|
6559
6868
|
getCategoryLeaderboard: CategoryLeader[];
|
|
6869
|
+
getClv: Clv;
|
|
6560
6870
|
getCombo: ComboDetail;
|
|
6561
6871
|
getCombosSummary: CombosSummary;
|
|
6562
6872
|
getCoverage: Platforms;
|
|
6563
6873
|
getDailyReportSnapshot: ReportSnapshot;
|
|
6564
6874
|
getEdgeHunter: EdgeHunterBoard | EdgeHunterRankedSignal[] | EdgeHunterObservation[];
|
|
6565
6875
|
getEventReplaySince: EventReplayEvent[];
|
|
6876
|
+
getFairPrice: FairPrice;
|
|
6566
6877
|
getGame: Game;
|
|
6567
6878
|
getGameHolders: BatchGameHoldersItem[];
|
|
6568
6879
|
getGameSharpMoney: GameSharpMoney;
|
|
@@ -6617,6 +6928,7 @@ export interface OperationData {
|
|
|
6617
6928
|
event_slug?: string;
|
|
6618
6929
|
game_ended?: boolean;
|
|
6619
6930
|
game_started?: boolean;
|
|
6931
|
+
/** The full pick's holder_count: the S and A grade wallets the pick lists on the backed side. sharp_positioned_usd and backed_side_share count every grade the pick lists, so a pick that lists only B grade wallets reads 0 here beside a positive sharp_positioned_usd; read it with pick_id for its display_holders. */
|
|
6620
6932
|
holder_count?: number;
|
|
6621
6933
|
is_free_selection: boolean;
|
|
6622
6934
|
matchup?: string;
|
|
@@ -6629,13 +6941,14 @@ export interface OperationData {
|
|
|
6629
6941
|
return_usd?: number;
|
|
6630
6942
|
stake_usd?: number;
|
|
6631
6943
|
token_id?: string;
|
|
6944
|
+
/** The full pick's top_grade: the best S or A grade the pick lists on the backed side. Absent when the pick lists no S or A grade wallet, for example a pick that lists only B grade wallets. */
|
|
6632
6945
|
top_grade?: string;
|
|
6633
6946
|
unit_score?: number;
|
|
6634
6947
|
/** When the backed game starts (RFC3339 UTC): the full pick's kickoff. */
|
|
6635
6948
|
kickoff?: string;
|
|
6636
|
-
/** The full pick's backed_side_share: the
|
|
6949
|
+
/** The full pick's backed_side_share: the Sharp side share the pick's page shows, the part of the graded wallets' dollars in the market that sat on the backed side when the pick was selected, as a fraction from 0 to 1 (0.887 is the page's 88.7%). */
|
|
6637
6950
|
backed_side_share?: number;
|
|
6638
|
-
/** The full pick's sharp_positioned_usd: the Sharp positioned value the pick's page shows, in USD. */
|
|
6951
|
+
/** The full pick's sharp_positioned_usd: the Sharp positioned value the pick's page shows, the dollars the pick's counted graded wallets held on the backed side, in USD, recorded for the pick and not updated after. */
|
|
6639
6952
|
sharp_positioned_usd?: number;
|
|
6640
6953
|
}[];
|
|
6641
6954
|
proof_pending_picks?: ({
|
|
@@ -6665,6 +6978,48 @@ export interface OperationData {
|
|
|
6665
6978
|
getPickOfTheDayLedger: PickOfTheDayLedger;
|
|
6666
6979
|
getPickOfTheDayLedgerEntry: PickOfTheDayLedgerEntry;
|
|
6667
6980
|
getPickOfTheDayStats: PickOfTheDayStats | PickOfTheDayStatsSections;
|
|
6981
|
+
getPickOfTheDayWalletMarkets: {
|
|
6982
|
+
address: string;
|
|
6983
|
+
as_of: string;
|
|
6984
|
+
basis: "at_release" | "current";
|
|
6985
|
+
category: string;
|
|
6986
|
+
has_more: boolean;
|
|
6987
|
+
listed: {
|
|
6988
|
+
markets: number;
|
|
6989
|
+
matches_printed: boolean | null;
|
|
6990
|
+
status: "counted";
|
|
6991
|
+
won: number;
|
|
6992
|
+
won_share: number | null;
|
|
6993
|
+
} | {
|
|
6994
|
+
status: "counting";
|
|
6995
|
+
} | {
|
|
6996
|
+
status: "unavailable";
|
|
6997
|
+
};
|
|
6998
|
+
markets: ({
|
|
6999
|
+
condition_id: string;
|
|
7000
|
+
polymarket_url: string | null;
|
|
7001
|
+
price_paid: number | null;
|
|
7002
|
+
realized_pnl_usd: number | null;
|
|
7003
|
+
result: "won" | "lost" | "split" | "profit" | "loss";
|
|
7004
|
+
settled_at: string | null;
|
|
7005
|
+
side: "yes" | "no" | "both" | null;
|
|
7006
|
+
side_name: string | null;
|
|
7007
|
+
stake_usd: number | null;
|
|
7008
|
+
title: string | null;
|
|
7009
|
+
won_share: number;
|
|
7010
|
+
})[];
|
|
7011
|
+
name: string | null;
|
|
7012
|
+
next_cursor: string | null;
|
|
7013
|
+
pick_id: number;
|
|
7014
|
+
printed: {
|
|
7015
|
+
markets: number;
|
|
7016
|
+
won: number;
|
|
7017
|
+
won_share: number | null;
|
|
7018
|
+
} | null;
|
|
7019
|
+
sample: "edge" | "record";
|
|
7020
|
+
scope: string | null;
|
|
7021
|
+
within: "scope" | "category";
|
|
7022
|
+
};
|
|
6668
7023
|
getPlatforms: Platforms;
|
|
6669
7024
|
getPositionTimeline: PositionTimelineEvent[];
|
|
6670
7025
|
getPositionTimelineById: PositionTimelineEvent[];
|
|
@@ -6731,6 +7086,16 @@ export interface OperationData {
|
|
|
6731
7086
|
};
|
|
6732
7087
|
};
|
|
6733
7088
|
getTraderGradeAt: TraderGradeAt;
|
|
7089
|
+
getTraderMarkets: ({
|
|
7090
|
+
category: string | null;
|
|
7091
|
+
condition_id: string;
|
|
7092
|
+
cost: ExactDecimal | null;
|
|
7093
|
+
last_trade_at: string | null;
|
|
7094
|
+
realized_pnl: ExactDecimal | null;
|
|
7095
|
+
resolved_at: string | null;
|
|
7096
|
+
status: string;
|
|
7097
|
+
title: string | null;
|
|
7098
|
+
})[];
|
|
6734
7099
|
getTraderPnl: TraderPnl;
|
|
6735
7100
|
getUsage: {
|
|
6736
7101
|
rate_limit: {
|
|
@@ -6921,8 +7286,10 @@ export interface OperationData {
|
|
|
6921
7286
|
listLargeTrades: LargeTrade[];
|
|
6922
7287
|
listLeaderboard: LeaderboardEntry[];
|
|
6923
7288
|
listLeaderboardLeagues: LeaderboardLeagues;
|
|
7289
|
+
listMarketPriceMoves: StoredPriceMove[];
|
|
6924
7290
|
listMarketTrades: MarketTrade[];
|
|
6925
7291
|
listPositions: Position[];
|
|
7292
|
+
listPriceMoves: StoredPriceMove[];
|
|
6926
7293
|
listProps: ({
|
|
6927
7294
|
competitors: string[];
|
|
6928
7295
|
condition_id: string;
|
|
@@ -7129,6 +7496,22 @@ export interface OperationQuery {
|
|
|
7129
7496
|
/** Opaque cel_ pagination cursor from a prior response. It binds the lower-bound/independent-event/wallet boundary to the committed category-skill ranking and to the slug, active_within and min_events of the request that issued it; a cursor from another filter is 400 on cursor, and one issued before the ranking refreshed is 400 with error.reason=cursor_expired. */
|
|
7130
7497
|
cursor?: string;
|
|
7131
7498
|
};
|
|
7499
|
+
getClv: {
|
|
7500
|
+
/** Market condition ID. Accepts the raw provider-backed condition_id returned by /api/v1/markets/search or /api/v1/markets/explore, or the mkt_-prefixed market.id emitted by V1 responses. */
|
|
7501
|
+
condition_id: string;
|
|
7502
|
+
/** The outcome the entry is on: 0 is the first (YES) outcome, 1 the second (NO). The response names both in outcomes. */
|
|
7503
|
+
outcome: 0 | 1;
|
|
7504
|
+
/** A Polymarket price paid, or received with side=sell, strictly between 0 and 1, such as 0.455. Send price or odds, not both. */
|
|
7505
|
+
price?: number;
|
|
7506
|
+
/** Sportsbook odds for the outcome: +130 or -140 with format=american (URL-encode the plus sign as %2B), 2.30 with format=decimal. American odds are +100 or more, or -100 or less; decimal odds are above 1; both within 100,000. Send price or odds, not both; odds are always a buy. */
|
|
7507
|
+
odds?: string;
|
|
7508
|
+
/** How odds is written. Required with odds. */
|
|
7509
|
+
format?: "american" | "decimal";
|
|
7510
|
+
/** buy (the default) or sell. sell is a Polymarket price received and needs price. */
|
|
7511
|
+
side?: "buy" | "sell";
|
|
7512
|
+
/** RFC3339 time the bet was placed. At or after the close's anchor (kickoff) the answer is status in_play with no figures. Omitted, the bet is read as placed before kickoff. */
|
|
7513
|
+
placed_at?: string;
|
|
7514
|
+
};
|
|
7132
7515
|
getCombo: Record<string, never>;
|
|
7133
7516
|
getCombosSummary: Record<string, never>;
|
|
7134
7517
|
getCoverage: Record<string, never>;
|
|
@@ -7143,7 +7526,7 @@ export interface OperationQuery {
|
|
|
7143
7526
|
category?: string;
|
|
7144
7527
|
/** 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. */
|
|
7145
7528
|
cohort?: "wider_holder" | "in_play" | "emerging_pile";
|
|
7146
|
-
/** 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. 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. */
|
|
7529
|
+
/** 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. */
|
|
7147
7530
|
admission?: "most_held_48h" | "most_held_48h_by_type";
|
|
7148
7531
|
/** 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. */
|
|
7149
7532
|
min_grade?: "S" | "A" | "B";
|
|
@@ -7188,6 +7571,24 @@ export interface OperationQuery {
|
|
|
7188
7571
|
/** Repeatable. trade adds the public trade read to every event (the object GET /api/v1/whale-trades/{id} returns for it), from one query per page, so a page of 100 events needs no per-event detail request. Not bound to the cursor: switch it on or off mid-walk. */
|
|
7189
7572
|
expand?: "trade"[];
|
|
7190
7573
|
};
|
|
7574
|
+
getFairPrice: {
|
|
7575
|
+
/** The market's condition id, raw or the mkt_-prefixed market.id V1 responses emit, from GET /api/v1/games/{event_slug}/markets. Pass it with outcome, or pass event_slug instead; both is a 400. */
|
|
7576
|
+
condition_id?: string;
|
|
7577
|
+
/** The outcome index to price, 0 or 1, as outcomes[].index on GET /api/v1/games/{event_slug}/markets. Required with condition_id; a 400 with event_slug. */
|
|
7578
|
+
outcome?: 0 | 1;
|
|
7579
|
+
/** The game's event slug from GET /api/v1/games, for example nfl-was-nyg-2026-11-13. Matched case-insensitively. Pass it with market_type and outcome_label, or pass condition_id instead. */
|
|
7580
|
+
event_slug?: string;
|
|
7581
|
+
/** Which of the game's markets: moneyline (who wins), spread (a handicap) or total (over or under). Required with event_slug. */
|
|
7582
|
+
market_type?: "moneyline" | "spread" | "total";
|
|
7583
|
+
/** The side, as the provider labels it: a team name such as Commanders, or Over or Under. A soccer 1X2 leg is named by its title, the team or Draw, and prices that leg's Yes. Matched case-insensitively against the sides of market_type, an open one first. Required with event_slug. When it matches no side, the 404 message lists the game's open sides; when it matches more than one market, the 400 message lists their condition ids. */
|
|
7584
|
+
outcome_label?: string;
|
|
7585
|
+
/** The side's own handicap on a spread (-3.5 for the favourite, 3.5 for the underdog) or the total on a total (222.5). Required with market_type spread or total; a 400 with moneyline. */
|
|
7586
|
+
line?: number;
|
|
7587
|
+
/** The widest spread, best ask less best bid in cents, that still prices: above 0, at most 100, in steps of 0.01. Default 3. A wider spread fails wide_spread. */
|
|
7588
|
+
max_spread_c?: number;
|
|
7589
|
+
/** The least USD each side of the outcome's book must hold within 2 cents of its midpoint: bids at or above the midpoint minus 0.02 and asks at or below the midpoint plus 0.02, each level's price times size. A whole number from 1 to 10000000. Default 500. A thinner side fails thin_book; a depth the cache does not hold fails nothing. */
|
|
7590
|
+
min_book_usd_within_2c?: number;
|
|
7591
|
+
};
|
|
7191
7592
|
getGame: Record<string, never>;
|
|
7192
7593
|
getGameHolders: {
|
|
7193
7594
|
/** 1 to 25 condition_id values of this game's markets, comma-separated. The key may also repeat (condition_ids=a&condition_ids=b). A raw provider condition_id or the mkt_-prefixed market id. */
|
|
@@ -7271,6 +7672,16 @@ export interface OperationQuery {
|
|
|
7271
7672
|
/** Backward-compatible bracket alias for sections, for clients that emit array keys. Repeatable and comma-separated, with the same names. */
|
|
7272
7673
|
"sections[]"?: ("hit_rate" | "series" | "market_expectations" | "outcome_stats" | "ask_comparison" | "days" | "categories" | "sports" | "tiers" | "months" | "price_bands" | "market_types" | "total_sides" | "streaks" | "records" | "voids")[];
|
|
7273
7674
|
};
|
|
7675
|
+
getPickOfTheDayWalletMarkets: {
|
|
7676
|
+
/** edge: the markets behind the row's edge (won X% of N markets, settled markets of $20 or more where the side and price are known). record: the markets behind its any-size record (X of N markets in profit). Any other value, or none, returns 400 bad_request with error.param=sample. */
|
|
7677
|
+
sample: "edge" | "record";
|
|
7678
|
+
/** scope: the league or esports title the row names; the default when it names one. category: the whole sport, the default otherwise. scope on a row that names none returns 404. Any other value returns 400 bad_request with error.param=within. */
|
|
7679
|
+
within?: "scope" | "category";
|
|
7680
|
+
/** Markets per page, 1 to 200, default 50. An integer outside that range is clamped into it, and X-Effective-Query reports the limit applied; a value that is not an integer returns 400 invalid_query. */
|
|
7681
|
+
limit?: number;
|
|
7682
|
+
/** The next_cursor of the previous page: the markets after it, newest first. A value this list did not return in that form returns 400 bad_request with error.param=cursor. */
|
|
7683
|
+
cursor?: string;
|
|
7684
|
+
};
|
|
7274
7685
|
getPlatforms: Record<string, never>;
|
|
7275
7686
|
getPositionTimeline: {
|
|
7276
7687
|
/** Market condition_id. One timeline per (trader, market). */
|
|
@@ -7366,6 +7777,14 @@ export interface OperationQuery {
|
|
|
7366
7777
|
/** RFC3339 instant whose historically visible grade is requested. Future instants are refused. Send the trade or decision time, not the ranking date. */
|
|
7367
7778
|
as_of: string;
|
|
7368
7779
|
};
|
|
7780
|
+
getTraderMarkets: {
|
|
7781
|
+
/** open, closed (default) or all. closed is the profile Closed tab. all is one time order, newest last trade first, not open rows before closed rows. */
|
|
7782
|
+
status?: "open" | "closed" | "all";
|
|
7783
|
+
/** Markets per page. Default 20, at most 100. */
|
|
7784
|
+
limit?: number;
|
|
7785
|
+
/** next_cursor from the previous page. It is bound to the same status. */
|
|
7786
|
+
cursor?: string;
|
|
7787
|
+
};
|
|
7369
7788
|
getTraderPnl: {
|
|
7370
7789
|
/** Inclusive UTC calendar-date lower bound in YYYY-MM-DD form for the daily series (entries and drawdown). Omit for the whole stored history. A value that is not a calendar date, or a from later than to, returns 400 bad_request with error.param from. Does not change stats, monthly or year_totals, which stay defined over the full history. */
|
|
7371
7790
|
from?: string;
|
|
@@ -7573,6 +7992,26 @@ export interface OperationQuery {
|
|
|
7573
7992
|
activity?: "all" | "active" | "inactive";
|
|
7574
7993
|
};
|
|
7575
7994
|
listLeaderboardLeagues: Record<string, never>;
|
|
7995
|
+
listMarketPriceMoves: {
|
|
7996
|
+
/** Least whole-cent level the move reached (level_cents). The detector stores moves of 2 cents or more, so 1 and 2 both return every move. */
|
|
7997
|
+
min_move_cents?: number;
|
|
7998
|
+
/** Only moves measured over this window, in seconds. Omitted: every window. */
|
|
7999
|
+
window_seconds?: 60 | 120 | 300 | 900;
|
|
8000
|
+
/** Only moves detected in this game phase. Omitted: every phase, unknown included. */
|
|
8001
|
+
phase?: "pre_game" | "in_play";
|
|
8002
|
+
/** Only moves that held at this checkpoint: outcome 0's midpoint there kept at least half of the move, (mid - from_price) / (to_price - from_price) >= 0.5. A move not measured there yet, or with no price there, is left out. */
|
|
8003
|
+
held?: "15m" | "60m" | "kickoff";
|
|
8004
|
+
/** Only moves whose book_depth_within_2c was measured and held at least this many USD within 2 cents of the midpoint on each side; a move with no measured depth is left out. The webhook filter of the same name applies the same rule. */
|
|
8005
|
+
min_book_usd_within_2c?: number;
|
|
8006
|
+
/** Inclusive RFC 3339 lower bound on episode_started_at. Earlier than 90 days ago, or omitted: 90 days ago, the retention. */
|
|
8007
|
+
since?: string;
|
|
8008
|
+
/** Exclusive RFC 3339 upper bound on episode_started_at. Omitted: now. */
|
|
8009
|
+
until?: string;
|
|
8010
|
+
/** Page size. Out-of-range values are clamped to 1..200. */
|
|
8011
|
+
limit?: number;
|
|
8012
|
+
/** Opaque pm_v1_ cursor from next_cursor. It continues the walk before the position it names; send the same filters with it. A cursor these routes did not issue returns 400 with error.param=cursor. */
|
|
8013
|
+
cursor?: string;
|
|
8014
|
+
};
|
|
7576
8015
|
listMarketTrades: {
|
|
7577
8016
|
/** Inclusive RFC 3339 lower bound on traded_at. Omitted or earlier than coverage.recorded_from: the walk runs to the start of the record (coverage.recorded_from). With cursor, it must match the cursor's. */
|
|
7578
8017
|
from?: string;
|
|
@@ -7605,6 +8044,32 @@ export interface OperationQuery {
|
|
|
7605
8044
|
/** Filter by the binary outcome side. `yes` maps to outcome_index=0, `no` to outcome_index=1. */
|
|
7606
8045
|
side?: "yes" | "no";
|
|
7607
8046
|
};
|
|
8047
|
+
listPriceMoves: {
|
|
8048
|
+
/** One league prefix, lowercase, as the event slug starts: nba, nfl, epl, cs2. Name at most one of league, event_slug and condition_id. */
|
|
8049
|
+
league?: string;
|
|
8050
|
+
/** One Polymarket event (game): the moves of each of its markets. An event outside sports and esports returns 404 market_out_of_scope. */
|
|
8051
|
+
event_slug?: string;
|
|
8052
|
+
/** One market's moves, as GET /api/v1/market/{condition_id}/price-moves returns them. Accepts the raw condition_id or the mkt_-prefixed market.id. */
|
|
8053
|
+
condition_id?: string;
|
|
8054
|
+
/** Least whole-cent level the move reached (level_cents). The detector stores moves of 2 cents or more, so 1 and 2 both return every move. */
|
|
8055
|
+
min_move_cents?: number;
|
|
8056
|
+
/** Only moves measured over this window, in seconds. Omitted: every window. */
|
|
8057
|
+
window_seconds?: 60 | 120 | 300 | 900;
|
|
8058
|
+
/** Only moves detected in this game phase. Omitted: every phase, unknown included. */
|
|
8059
|
+
phase?: "pre_game" | "in_play";
|
|
8060
|
+
/** Only moves that held at this checkpoint: outcome 0's midpoint there kept at least half of the move, (mid - from_price) / (to_price - from_price) >= 0.5. A move not measured there yet, or with no price there, is left out. */
|
|
8061
|
+
held?: "15m" | "60m" | "kickoff";
|
|
8062
|
+
/** Only moves whose book_depth_within_2c was measured and held at least this many USD within 2 cents of the midpoint on each side; a move with no measured depth is left out. The webhook filter of the same name applies the same rule. */
|
|
8063
|
+
min_book_usd_within_2c?: number;
|
|
8064
|
+
/** Inclusive RFC 3339 lower bound on episode_started_at. Earlier than 90 days ago, or omitted: 90 days ago, the retention. */
|
|
8065
|
+
since?: string;
|
|
8066
|
+
/** Exclusive RFC 3339 upper bound on episode_started_at. Omitted: now. */
|
|
8067
|
+
until?: string;
|
|
8068
|
+
/** Page size. Out-of-range values are clamped to 1..200. */
|
|
8069
|
+
limit?: number;
|
|
8070
|
+
/** Opaque pm_v1_ cursor from next_cursor. It continues the walk before the position it names; send the same filters with it. A cursor these routes did not issue returns 400 with error.param=cursor. */
|
|
8071
|
+
cursor?: string;
|
|
8072
|
+
};
|
|
7608
8073
|
listProps: {
|
|
7609
8074
|
/** League tag as GET /api/v1/games coverage.leagues spells it, for example nfl or nba. Matched case-insensitively. */
|
|
7610
8075
|
league: string;
|
|
@@ -7861,6 +8326,7 @@ export interface OperationPath {
|
|
|
7861
8326
|
/** The category slug, for example soccer, basketball, tennis or esports, as GET /api/v1/leaderboard/categories lists it lowercased. Matched case-insensitively. */
|
|
7862
8327
|
slug: string;
|
|
7863
8328
|
};
|
|
8329
|
+
getClv: Record<string, never>;
|
|
7864
8330
|
getCombo: {
|
|
7865
8331
|
/** Combo identifier: 0x followed by 62 lowercase hex characters. This differs from a binary market condition ID. */
|
|
7866
8332
|
condition_id: string;
|
|
@@ -7870,6 +8336,7 @@ export interface OperationPath {
|
|
|
7870
8336
|
getDailyReportSnapshot: Record<string, never>;
|
|
7871
8337
|
getEdgeHunter: Record<string, never>;
|
|
7872
8338
|
getEventReplaySince: Record<string, never>;
|
|
8339
|
+
getFairPrice: Record<string, never>;
|
|
7873
8340
|
getGame: {
|
|
7874
8341
|
/** The game's event slug, for example nfl-buf-nyj-2026-09-22. Matched case-insensitively. */
|
|
7875
8342
|
event_slug: string;
|
|
@@ -7936,6 +8403,12 @@ export interface OperationPath {
|
|
|
7936
8403
|
pick_id: string;
|
|
7937
8404
|
};
|
|
7938
8405
|
getPickOfTheDayStats: Record<string, never>;
|
|
8406
|
+
getPickOfTheDayWalletMarkets: {
|
|
8407
|
+
/** The pick's stable pick_id as decimal text. */
|
|
8408
|
+
pick_id: string;
|
|
8409
|
+
/** A wallet address the pick's display_holders list, 0x and 40 hex characters, either case. Any other value returns 404. */
|
|
8410
|
+
address: string;
|
|
8411
|
+
};
|
|
7939
8412
|
getPlatforms: Record<string, never>;
|
|
7940
8413
|
getPositionTimeline: {
|
|
7941
8414
|
/** Trader identity: 0x... wallet address, username, trd_-prefixed trader id, bare integer traders.id, or @username. Resolved with precedence @username -> wallet -> trd_ -> integer -> username (a leading @ forces a username lookup, for all-digit usernames); wallet matching is case-insensitive. */
|
|
@@ -7988,6 +8461,10 @@ export interface OperationPath {
|
|
|
7988
8461
|
/** Wallet address (0x...), username, or trd_-prefixed trader id. */
|
|
7989
8462
|
address: string;
|
|
7990
8463
|
};
|
|
8464
|
+
getTraderMarkets: {
|
|
8465
|
+
/** Wallet address (0x...), username, or trd_-prefixed trader id. */
|
|
8466
|
+
address: string;
|
|
8467
|
+
};
|
|
7991
8468
|
getTraderPnl: {
|
|
7992
8469
|
/** Wallet address (0x...), username, or trd_-prefixed trader id. */
|
|
7993
8470
|
address: string;
|
|
@@ -8039,11 +8516,16 @@ export interface OperationPath {
|
|
|
8039
8516
|
listLargeTrades: Record<string, never>;
|
|
8040
8517
|
listLeaderboard: Record<string, never>;
|
|
8041
8518
|
listLeaderboardLeagues: Record<string, never>;
|
|
8519
|
+
listMarketPriceMoves: {
|
|
8520
|
+
/** Market condition ID. Accepts the raw provider-backed condition_id returned by /api/v1/markets/search or /api/v1/markets/explore, or the mkt_-prefixed market.id emitted by V1 responses. */
|
|
8521
|
+
condition_id: string;
|
|
8522
|
+
};
|
|
8042
8523
|
listMarketTrades: {
|
|
8043
8524
|
/** Market condition ID. Accepts the raw provider-backed condition_id returned by /api/v1/markets/search or /api/v1/markets/explore, or the mkt_-prefixed market.id emitted by V1 responses. */
|
|
8044
8525
|
condition_id: string;
|
|
8045
8526
|
};
|
|
8046
8527
|
listPositions: Record<string, never>;
|
|
8528
|
+
listPriceMoves: Record<string, never>;
|
|
8047
8529
|
listProps: Record<string, never>;
|
|
8048
8530
|
listSettledMarkets: Record<string, never>;
|
|
8049
8531
|
listSharpMoneyFlows: Record<string, never>;
|
|
@@ -8147,12 +8629,14 @@ export interface OperationBody {
|
|
|
8147
8629
|
getAccountIdentity: never;
|
|
8148
8630
|
getApiDiscovery: never;
|
|
8149
8631
|
getCategoryLeaderboard: never;
|
|
8632
|
+
getClv: never;
|
|
8150
8633
|
getCombo: never;
|
|
8151
8634
|
getCombosSummary: never;
|
|
8152
8635
|
getCoverage: never;
|
|
8153
8636
|
getDailyReportSnapshot: never;
|
|
8154
8637
|
getEdgeHunter: never;
|
|
8155
8638
|
getEventReplaySince: never;
|
|
8639
|
+
getFairPrice: never;
|
|
8156
8640
|
getGame: never;
|
|
8157
8641
|
getGameHolders: never;
|
|
8158
8642
|
getGameSharpMoney: never;
|
|
@@ -8174,6 +8658,7 @@ export interface OperationBody {
|
|
|
8174
8658
|
getPickOfTheDayLedger: never;
|
|
8175
8659
|
getPickOfTheDayLedgerEntry: never;
|
|
8176
8660
|
getPickOfTheDayStats: never;
|
|
8661
|
+
getPickOfTheDayWalletMarkets: never;
|
|
8177
8662
|
getPlatforms: never;
|
|
8178
8663
|
getPositionTimeline: never;
|
|
8179
8664
|
getPositionTimelineById: never;
|
|
@@ -8190,6 +8675,7 @@ export interface OperationBody {
|
|
|
8190
8675
|
getTraderExportSnapshot: never;
|
|
8191
8676
|
getTraderExportStatus: never;
|
|
8192
8677
|
getTraderGradeAt: never;
|
|
8678
|
+
getTraderMarkets: never;
|
|
8193
8679
|
getTraderPnl: never;
|
|
8194
8680
|
getUsage: never;
|
|
8195
8681
|
getWebhook: never;
|
|
@@ -8210,8 +8696,10 @@ export interface OperationBody {
|
|
|
8210
8696
|
listLargeTrades: never;
|
|
8211
8697
|
listLeaderboard: never;
|
|
8212
8698
|
listLeaderboardLeagues: never;
|
|
8699
|
+
listMarketPriceMoves: never;
|
|
8213
8700
|
listMarketTrades: never;
|
|
8214
8701
|
listPositions: never;
|
|
8702
|
+
listPriceMoves: never;
|
|
8215
8703
|
listProps: never;
|
|
8216
8704
|
listSettledMarkets: never;
|
|
8217
8705
|
listSharpMoneyFlows: never;
|
|
@@ -8332,6 +8820,11 @@ export interface OperationResponse {
|
|
|
8332
8820
|
total?: number;
|
|
8333
8821
|
meta: ResponseMeta;
|
|
8334
8822
|
};
|
|
8823
|
+
getClv: {
|
|
8824
|
+
object: "clv";
|
|
8825
|
+
data: OperationData["getClv"];
|
|
8826
|
+
meta: ResponseMeta;
|
|
8827
|
+
};
|
|
8335
8828
|
getCombo: ComboResponse;
|
|
8336
8829
|
getCombosSummary: CombosSummaryResponse;
|
|
8337
8830
|
getCoverage: {
|
|
@@ -8352,6 +8845,11 @@ export interface OperationResponse {
|
|
|
8352
8845
|
next_cursor: string;
|
|
8353
8846
|
meta: EventReplayMeta;
|
|
8354
8847
|
};
|
|
8848
|
+
getFairPrice: {
|
|
8849
|
+
object: "fair_price";
|
|
8850
|
+
data: OperationData["getFairPrice"];
|
|
8851
|
+
meta: ResponseMeta;
|
|
8852
|
+
};
|
|
8355
8853
|
getGame: {
|
|
8356
8854
|
object: "game";
|
|
8357
8855
|
data: OperationData["getGame"];
|
|
@@ -8463,6 +8961,11 @@ export interface OperationResponse {
|
|
|
8463
8961
|
data: OperationData["getPickOfTheDayStats"];
|
|
8464
8962
|
meta: ResponseMeta;
|
|
8465
8963
|
};
|
|
8964
|
+
getPickOfTheDayWalletMarkets: {
|
|
8965
|
+
object: "pick_of_the_day_wallet_markets";
|
|
8966
|
+
data: OperationData["getPickOfTheDayWalletMarkets"];
|
|
8967
|
+
meta: ResponseMeta;
|
|
8968
|
+
};
|
|
8466
8969
|
getPlatforms: {
|
|
8467
8970
|
object: "platforms";
|
|
8468
8971
|
data: OperationData["getPlatforms"];
|
|
@@ -8539,6 +9042,14 @@ export interface OperationResponse {
|
|
|
8539
9042
|
data: OperationData["getTraderGradeAt"];
|
|
8540
9043
|
meta: ResponseMeta;
|
|
8541
9044
|
};
|
|
9045
|
+
getTraderMarkets: {
|
|
9046
|
+
object: "list";
|
|
9047
|
+
data: OperationData["getTraderMarkets"];
|
|
9048
|
+
meta: ResponseMeta;
|
|
9049
|
+
has_more: boolean;
|
|
9050
|
+
next_cursor?: string;
|
|
9051
|
+
total?: number;
|
|
9052
|
+
};
|
|
8542
9053
|
getTraderPnl: {
|
|
8543
9054
|
object: "trader_pnl";
|
|
8544
9055
|
data: OperationData["getTraderPnl"];
|
|
@@ -8678,6 +9189,17 @@ export interface OperationResponse {
|
|
|
8678
9189
|
data: OperationData["listLeaderboardLeagues"];
|
|
8679
9190
|
meta: ResponseMeta;
|
|
8680
9191
|
};
|
|
9192
|
+
listMarketPriceMoves: {
|
|
9193
|
+
object: "list";
|
|
9194
|
+
/** Newest episode first by episode_started_at, then move_id. Can hold fewer than limit moves, even none, while has_more is true. */
|
|
9195
|
+
data: OperationData["listMarketPriceMoves"];
|
|
9196
|
+
/** True when older moves may remain: send next_cursor for them. A page reads a fixed share of the history, so follow next_cursor until has_more is false rather than stopping at a short page. */
|
|
9197
|
+
has_more: boolean;
|
|
9198
|
+
/** Opaque pm_v1_ cursor for the next page; absent when has_more is false. */
|
|
9199
|
+
next_cursor?: string;
|
|
9200
|
+
meta: ResponseMeta;
|
|
9201
|
+
total?: number;
|
|
9202
|
+
};
|
|
8681
9203
|
listMarketTrades: {
|
|
8682
9204
|
object: "list";
|
|
8683
9205
|
/** Newest first by traded_at, then transaction_hash, then log_index. */
|
|
@@ -8718,6 +9240,17 @@ export interface OperationResponse {
|
|
|
8718
9240
|
};
|
|
8719
9241
|
meta: ResponseMeta;
|
|
8720
9242
|
};
|
|
9243
|
+
listPriceMoves: {
|
|
9244
|
+
object: "list";
|
|
9245
|
+
/** Newest episode first by episode_started_at, then move_id. Can hold fewer than limit moves, even none, while has_more is true. */
|
|
9246
|
+
data: OperationData["listPriceMoves"];
|
|
9247
|
+
/** True when older moves may remain: send next_cursor for them. A page reads a fixed share of the history, so follow next_cursor until has_more is false rather than stopping at a short page. */
|
|
9248
|
+
has_more: boolean;
|
|
9249
|
+
/** Opaque pm_v1_ cursor for the next page; absent when has_more is false. */
|
|
9250
|
+
next_cursor?: string;
|
|
9251
|
+
meta: ResponseMeta;
|
|
9252
|
+
total?: number;
|
|
9253
|
+
};
|
|
8721
9254
|
listProps: {
|
|
8722
9255
|
as_of: string;
|
|
8723
9256
|
data: OperationData["listProps"];
|