@0xinsider/mcp 2.1.3 → 2.4.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 +25 -12
- package/dist/catalog.generated.d.ts +42 -6
- package/dist/catalog.generated.d.ts.map +1 -1
- package/dist/catalog.generated.js +51 -6
- package/dist/catalog.generated.js.map +1 -1
- package/dist/cli-lib.d.ts +7 -0
- package/dist/cli-lib.d.ts.map +1 -1
- package/dist/cli-lib.js +83 -17
- package/dist/cli-lib.js.map +1 -1
- package/dist/client.d.ts +2 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js.map +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/product-cli/index.d.ts.map +1 -1
- package/dist/product-cli/index.js +3 -1
- package/dist/product-cli/index.js.map +1 -1
- package/dist/prompts/index.js +2 -2
- package/dist/sdk/client.d.ts +186 -18
- package/dist/sdk/client.d.ts.map +1 -1
- package/dist/sdk/client.js +232 -9
- package/dist/sdk/client.js.map +1 -1
- package/dist/sdk/errors.d.ts +7 -1
- package/dist/sdk/errors.d.ts.map +1 -1
- package/dist/sdk/errors.js +20 -1
- package/dist/sdk/errors.js.map +1 -1
- package/dist/sdk/index.d.ts +33 -3
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/pagination.d.ts +7 -7
- package/dist/sdk/pagination.d.ts.map +1 -1
- package/dist/sdk/pagination.js.map +1 -1
- package/dist/sdk/schema.d.ts +879 -309
- package/dist/sdk/schema.d.ts.map +1 -1
- package/dist/sdk/stream.d.ts +12 -7
- package/dist/sdk/stream.d.ts.map +1 -1
- package/dist/sdk/stream.js +82 -3
- package/dist/sdk/stream.js.map +1 -1
- package/dist/sdk/webhooks.d.ts +86 -9
- package/dist/sdk/webhooks.d.ts.map +1 -1
- package/dist/sdk/webhooks.js +9 -3
- package/dist/sdk/webhooks.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +13 -2
- package/dist/server.js.map +1 -1
- package/dist/tools/games.d.ts +5 -0
- package/dist/tools/games.d.ts.map +1 -0
- package/dist/tools/games.js +103 -0
- package/dist/tools/games.js.map +1 -0
- package/dist/tools/get-insider-radar.d.ts.map +1 -1
- package/dist/tools/get-insider-radar.js +10 -32
- package/dist/tools/get-insider-radar.js.map +1 -1
- package/dist/tools/get-leaderboard.d.ts.map +1 -1
- package/dist/tools/get-leaderboard.js +20 -2
- package/dist/tools/get-leaderboard.js.map +1 -1
- package/dist/tools/get-suspicious-trades.d.ts +26 -0
- package/dist/tools/get-suspicious-trades.d.ts.map +1 -0
- package/dist/tools/get-suspicious-trades.js +91 -0
- package/dist/tools/get-suspicious-trades.js.map +1 -0
- package/dist/tools/get-whale-trades.d.ts +2 -0
- package/dist/tools/get-whale-trades.d.ts.map +1 -1
- package/dist/tools/get-whale-trades.js +18 -6
- package/dist/tools/get-whale-trades.js.map +1 -1
- package/dist/tools/read-parity.d.ts +8 -0
- package/dist/tools/read-parity.d.ts.map +1 -1
- package/dist/tools/read-parity.js +91 -35
- package/dist/tools/read-parity.js.map +1 -1
- package/package.json +1 -1
package/dist/sdk/schema.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export type AgentRegistration = {
|
|
|
25
25
|
environment: "sandbox";
|
|
26
26
|
created_at: string;
|
|
27
27
|
sandbox: {
|
|
28
|
-
/** The sandbox V1 base URL. Every documented operation answers here with example data. */
|
|
28
|
+
/** The sandbox V1 base URL. Every documented operation answers here with example data, except GET /api/v1/stream: a Server-Sent Events stream is a live connection rather than a body, so the sandbox answers it with 400. */
|
|
29
29
|
api_base_url: string;
|
|
30
30
|
/** A read to send with the key. */
|
|
31
31
|
first_request_url: string;
|
|
@@ -76,7 +76,7 @@ export type ApiError = {
|
|
|
76
76
|
/** The recommended next request instant (RFC3339), always in the future. Present on every retryable error: `pick_not_released`, `rate_limited`, `rate_limit_unavailable`, and `read_model_warming`. Omitted otherwise. The absolute twin of `Retry-After`; prefer the header for the sleep duration. For `pick_not_released`, the earliest of the next scheduled release, the next automatic selector attempt, the operating-window start, or about 60 seconds. See that response. */
|
|
77
77
|
retry_at?: string;
|
|
78
78
|
/** ADDITIVE (#7209). The specific, actionable cause behind `code`, when there is one more specific than the code itself. `code` keeps its published values, so existing clients are unaffected; new clients branch on `reason`. Omitted when the code already says everything we know. pick_not_released: no Pick of the Day is published for the current product day; schedule one request against retry_at instead of polling. unknown_endpoint: the PATH is not a route on this API -- read GET /api/v1, do not retry. trader_not_tracked: the wallet is real and the URL is right, but the trader is outside the HOT/WARM sync tiers -- stop asking for this wallet. cursor_expired: pagination went stale mid-walk -- re-request the first page and continue. read_model_warming: the requested endpoint cannot serve its read model yet; exact causes are endpoint-specific and can include a cold or contended refresh or a dependency that prevented refresh. database_unavailable: the API's database or its connection pool is temporarily unreachable (a connection-class failure, not a query fault); code stays rate_limit_unavailable, nothing is rate-limited, retry after Retry-After / retry_at. idempotency_in_progress: retain the exact Idempotency-Key and request body, then retry shortly. webhook_delivery_in_progress: retry the URL or signing-secret configuration change after the destination's active request completes. request_accounting_unavailable: accounting capacity is unavailable before the handler executes; retry after Retry-After / retry_at. sandbox_api_key: the credential is a sandbox key (oxi_sk_test_) from POST /api/v1/agents/register, which only the sandbox server accepts -- call the sandbox base URL with it, or get a live key or OAuth access token; do not retry it here. api_key_in_query: the key was sent as a ?token= query parameter, which no route reads because URLs land in logs and history; the key itself was not checked -- resend it as Authorization: Bearer. subscription_inactive: the key is valid but the account's Pro subscription has lapsed (402 subscription_required); permanent until a person reactivates at https://0xinsider.com/billing, which the message names -- stop retrying on a schedule and surface the link. The key owner is emailed once per lapse. monthly_quota_exceeded: the account has used the requests Pro includes for the UTC calendar month (429 rate_limited); retry_at and Retry-After name the first of next month, the only retry that can succeed, and the message names https://0xinsider.com/developers, where pay as you go for requests over the quota is turned on. The X-Monthly-Quota-Limit, X-Monthly-Quota-Remaining and X-Monthly-Quota-Reset headers on every authenticated response say how close the account is. invalid_query, invalid_path, invalid_body (400 bad_request, #16146): a query parameter, a path segment or the JSON body did not parse or does not fit the route's schema, so no handler ran; param names the field when the parser named one (a query key, a path segment, a JSON path such as traders[0], or body); fix the request, never retry it as sent. unsupported_media_type (415 bad_request, param content-type): send the body with Content-Type: application/json. payload_too_large (413 bad_request, param body): the body is over 1048576 bytes. method_not_allowed (405 bad_request): the path is a route but not with this method; the Allow header names the methods it serves. ip_rate_limited (429 rate_limited, #16380): the per-address budget every caller behind one IP shares, counted before authentication, is spent; not the key's own window, and the RateLimit-* headers describe that bucket. ip_throttled (429 rate_limited): the address is in a cooldown after sustained over-limit traffic; Retry-After is minutes to days, and a request before it does not shorten the cooldown. */
|
|
79
|
-
reason?: "cursor_expired" | "unknown_endpoint" | "pick_not_released" | "trader_not_tracked" | "read_model_warming" | "database_unavailable" | "request_accounting_unavailable" | "idempotency_in_progress" | "webhook_delivery_in_progress" | "webhook_secret_rotation_not_prepared" | "webhook_secret_rotation_overlap_active" | "sandbox_api_key" | "api_key_in_query" | "subscription_inactive" | "monthly_quota_exceeded" | "invalid_query" | "unknown_query_parameter" | "invalid_path" | "invalid_body" | "unsupported_media_type" | "payload_too_large" | "method_not_allowed" | "ip_rate_limited" | "ip_throttled";
|
|
79
|
+
reason?: "cursor_expired" | "unknown_endpoint" | "pick_not_released" | "trader_not_tracked" | "read_model_warming" | "database_unavailable" | "request_accounting_unavailable" | "idempotency_in_progress" | "webhook_delivery_in_progress" | "webhook_secret_rotation_not_prepared" | "webhook_secret_rotation_overlap_active" | "sandbox_api_key" | "api_key_in_query" | "subscription_inactive" | "monthly_quota_exceeded" | "invalid_query" | "unknown_query_parameter" | "invalid_path" | "invalid_body" | "unsupported_media_type" | "payload_too_large" | "method_not_allowed" | "ip_rate_limited" | "ip_throttled" | "export_expired";
|
|
80
80
|
};
|
|
81
81
|
meta: ResponseMeta;
|
|
82
82
|
};
|
|
@@ -89,7 +89,7 @@ export type ApiErrorBody = {
|
|
|
89
89
|
/** The recommended next retry instant (RFC3339). Present on every retryable error (reason=pick_not_released, code=rate_limited including reason=monthly_quota_exceeded, code=rate_limit_unavailable, reason=read_model_warming) and omitted otherwise. Always in the future. For pick_not_released: before the 11:00 UTC operating-window start, before a selected pick's stored release, or after a skipped day, it names the automatic system's next boundary. While no candidate exists in the live window it normally names the persisted next automatic selector attempt. Every value is advisory under supported operator actions: manual publication, release-time override, or admin generation can make a pick available first. When the automatic schedule is absent/due or a pick is overdue it degrades to ~60s. Schedule one request and do not poll. Prefer Retry-After for the duration because it is immune to client clock skew. */
|
|
90
90
|
retry_at?: string;
|
|
91
91
|
/** ADDITIVE (#7209). The specific, actionable cause behind `code`, when there is one more specific than the code itself. `code` keeps its published values, so existing clients are unaffected; new clients branch on `reason`. Omitted when the code already says everything we know. pick_not_released: no Pick of the Day is published for the current product day; schedule one request against retry_at instead of polling. unknown_endpoint: the PATH is not a route on this API -- read GET /api/v1, do not retry. trader_not_tracked: the wallet is real and the URL is right, but the trader is outside the HOT/WARM sync tiers -- stop asking for this wallet. cursor_expired: pagination went stale mid-walk -- re-request the first page and continue. read_model_warming: the requested endpoint cannot serve its read model yet; exact causes are endpoint-specific and can include a cold or contended refresh or a dependency that prevented refresh. database_unavailable: the API's database or its connection pool is temporarily unreachable (a connection-class failure, not a query fault); code stays rate_limit_unavailable, nothing is rate-limited, retry after Retry-After / retry_at. idempotency_in_progress: retain the exact Idempotency-Key and request body, then retry shortly. webhook_delivery_in_progress: retry the URL or signing-secret configuration change after the destination's active request completes. request_accounting_unavailable: accounting capacity is unavailable before the handler executes; retry after Retry-After / retry_at. sandbox_api_key: the credential is a sandbox key (oxi_sk_test_) from POST /api/v1/agents/register, which only the sandbox server accepts -- call the sandbox base URL with it, or get a live key or OAuth access token; do not retry it here. api_key_in_query: the key was sent as a ?token= query parameter, which no route reads because URLs land in logs and history; the key itself was not checked -- resend it as Authorization: Bearer. subscription_inactive: the key is valid but the account's Pro subscription has lapsed (402 subscription_required); permanent until a person reactivates at https://0xinsider.com/billing, which the message names -- stop retrying on a schedule and surface the link. The key owner is emailed once per lapse. monthly_quota_exceeded: the account has used the requests Pro includes for the UTC calendar month (429 rate_limited); retry_at and Retry-After name the first of next month, the only retry that can succeed, and the message names https://0xinsider.com/developers, where pay as you go for requests over the quota is turned on. The X-Monthly-Quota-Limit, X-Monthly-Quota-Remaining and X-Monthly-Quota-Reset headers on every authenticated response say how close the account is. invalid_query, invalid_path, invalid_body (400 bad_request, #16146): a query parameter, a path segment or the JSON body did not parse or does not fit the route's schema, so no handler ran; param names the field when the parser named one (a query key, a path segment, a JSON path such as traders[0], or body); fix the request, never retry it as sent. unsupported_media_type (415 bad_request, param content-type): send the body with Content-Type: application/json. payload_too_large (413 bad_request, param body): the body is over 1048576 bytes. method_not_allowed (405 bad_request): the path is a route but not with this method; the Allow header names the methods it serves. ip_rate_limited (429 rate_limited, #16380): the per-address budget every caller behind one IP shares, counted before authentication, is spent; not the key's own window, and the RateLimit-* headers describe that bucket. ip_throttled (429 rate_limited): the address is in a cooldown after sustained over-limit traffic; Retry-After is minutes to days, and a request before it does not shorten the cooldown. */
|
|
92
|
-
reason?: "cursor_expired" | "unknown_endpoint" | "pick_not_released" | "trader_not_tracked" | "read_model_warming" | "database_unavailable" | "request_accounting_unavailable" | "idempotency_in_progress" | "webhook_delivery_in_progress" | "webhook_secret_rotation_not_prepared" | "webhook_secret_rotation_overlap_active" | "sandbox_api_key" | "api_key_in_query" | "subscription_inactive" | "monthly_quota_exceeded" | "invalid_query" | "unknown_query_parameter" | "invalid_path" | "invalid_body" | "unsupported_media_type" | "payload_too_large" | "method_not_allowed" | "ip_rate_limited" | "ip_throttled";
|
|
92
|
+
reason?: "cursor_expired" | "unknown_endpoint" | "pick_not_released" | "trader_not_tracked" | "read_model_warming" | "database_unavailable" | "request_accounting_unavailable" | "idempotency_in_progress" | "webhook_delivery_in_progress" | "webhook_secret_rotation_not_prepared" | "webhook_secret_rotation_overlap_active" | "sandbox_api_key" | "api_key_in_query" | "subscription_inactive" | "monthly_quota_exceeded" | "invalid_query" | "unknown_query_parameter" | "invalid_path" | "invalid_body" | "unsupported_media_type" | "payload_too_large" | "method_not_allowed" | "ip_rate_limited" | "ip_throttled" | "export_expired";
|
|
93
93
|
};
|
|
94
94
|
export type BatchMarketIntelItem = {
|
|
95
95
|
/** Zero-based request index. Duplicate inputs keep separate result rows. */
|
|
@@ -273,8 +273,8 @@ export type EventReplayEvent = {
|
|
|
273
273
|
/** Provider discriminator. Polymarket only. */
|
|
274
274
|
platform: "polymarket";
|
|
275
275
|
};
|
|
276
|
-
/** Present only with expand=trade: the
|
|
277
|
-
trade?:
|
|
276
|
+
/** Present only with expand=trade: the base trade fields for this row, read at request time from one query per page. GET /api/v1/large-trades/{id} adds counterparty_analysis; replay does not include it. traded_at, side, size_usd, price, outcome, token_id, recorded_signal_score and trader.grade_at_trade with its status are the row's event-time facts; trader.grade, trader.username, signal_score, suspicion_score, suspicion_track and market title/slug/category are enrichment that can move after the event. null when that route would answer 404 for the row (its trader or market is not synced yet). */
|
|
277
|
+
trade?: LargeTrade | null;
|
|
278
278
|
source: EventReplaySource;
|
|
279
279
|
freshness: EventReplayFreshness;
|
|
280
280
|
};
|
|
@@ -351,6 +351,8 @@ export type ExploreGroup = {
|
|
|
351
351
|
/** Markets in the event cluster, ranked by volume with condition_id as the tie-breaker. The selected representative is retained within the 12-market cap. */
|
|
352
352
|
markets: ExploreMarket[];
|
|
353
353
|
rep_volume: number | null;
|
|
354
|
+
/** Canonical key since #16304; rep_whales is its deprecated spelling, emitted beside it with the same value. */
|
|
355
|
+
rep_large_trades: number | null;
|
|
354
356
|
rep_whales: number | null;
|
|
355
357
|
};
|
|
356
358
|
export type ExploreMarket = {
|
|
@@ -369,9 +371,17 @@ export type ExploreMarket = {
|
|
|
369
371
|
status: "active" | "closed";
|
|
370
372
|
volume: number | null;
|
|
371
373
|
liquidity: number | null;
|
|
374
|
+
/** Canonical key since #16304 (Polymarket's noun is large trade); whale_trade_count is its deprecated spelling, emitted beside it with the same value. */
|
|
375
|
+
large_trade_count: number | null;
|
|
372
376
|
whale_trade_count: number | null;
|
|
377
|
+
/** Canonical key since #16304; whale_distinct_wallets is its deprecated spelling, emitted beside it with the same value. */
|
|
378
|
+
large_trade_distinct_wallets: number | null;
|
|
373
379
|
whale_distinct_wallets: number | null;
|
|
380
|
+
/** Canonical key since #16304; whale_total_usd is its deprecated spelling, emitted beside it with the same value. */
|
|
381
|
+
large_trade_total_usd: number | null;
|
|
374
382
|
whale_total_usd: number | null;
|
|
383
|
+
/** Canonical key since #16304; whale_last_trade_at is its deprecated spelling, emitted beside it with the same value. */
|
|
384
|
+
large_trade_last_at: string | null;
|
|
375
385
|
whale_last_trade_at: string | null;
|
|
376
386
|
end_date: string | null;
|
|
377
387
|
created_at: string | null;
|
|
@@ -405,6 +415,8 @@ export type ExploreMarket = {
|
|
|
405
415
|
discover_score: number | null;
|
|
406
416
|
score_components?: {
|
|
407
417
|
volume_signal: number | null;
|
|
418
|
+
/** Canonical key since #16304; whale_signal is its deprecated spelling, emitted beside it with the same value. */
|
|
419
|
+
large_trade_signal: number | null;
|
|
408
420
|
whale_signal: number | null;
|
|
409
421
|
liquidity_signal: number | null;
|
|
410
422
|
recency_signal: number | null;
|
|
@@ -446,6 +458,125 @@ export type ExportVolumeReconciliation = {
|
|
|
446
458
|
provider_activity_volume_gap: number | null;
|
|
447
459
|
activity_volume_coverage: number | null;
|
|
448
460
|
};
|
|
461
|
+
/** One sports or esports game: both sides, its schedule, its provider status and the Polymarket markets linked to it. Assembled from the same provider-first live and upcoming projections the site's boards use, with no request-time provider fan-out. */
|
|
462
|
+
export type Game = {
|
|
463
|
+
object: "game";
|
|
464
|
+
/** The game's identity, for example mlb-mil-cin-2026-06-22. The same key the live_sports_updated webhook pulse carries and the same key /api/v1/games/{event_slug} takes. */
|
|
465
|
+
event_slug: string;
|
|
466
|
+
/** The provider's Gamma gameId, as a string. Omitted when the canonical owner has no single value for this slug: the provider stamps one gameId across an event's derivative siblings, so an ambiguous read is reported as unknown rather than guessed. */
|
|
467
|
+
game_id?: string;
|
|
468
|
+
/** The canonical sport bucket, for example Soccer or Table Tennis. Omitted when neither the board scope nor the provider category names one. */
|
|
469
|
+
sport?: string;
|
|
470
|
+
/** The league tag, for example nfl or epl. Omitted for a sport served as one whole bucket with no league scope. */
|
|
471
|
+
league?: string;
|
|
472
|
+
/** The provider's event title. Omitted when the provider sent none. */
|
|
473
|
+
title?: string;
|
|
474
|
+
/** Kickoff in UTC, as the provider supplied it. Omitted when the provider published none; coverage.schedule then reads unavailable. */
|
|
475
|
+
scheduled_at?: string;
|
|
476
|
+
status: GameStatus;
|
|
477
|
+
/** Both sides, in the provider's own order. For a team league the provider lists the home side first. Empty when the provider identified neither side. */
|
|
478
|
+
competitors: GameCompetitor[];
|
|
479
|
+
/** The esports series length, for example Bo3. Omitted for everything else. */
|
|
480
|
+
series_format?: string;
|
|
481
|
+
/** Whether one of this game's markets pays on a draw. Read this instead of assuming a two-outcome moneyline. */
|
|
482
|
+
draw_offered: boolean;
|
|
483
|
+
/** Every market this read linked to the game, ordered by condition_id. */
|
|
484
|
+
markets: GameMarket[];
|
|
485
|
+
freshness: GameFreshness;
|
|
486
|
+
coverage: GameCoverage;
|
|
487
|
+
/** The game's page on 0xinsider. */
|
|
488
|
+
url: string;
|
|
489
|
+
};
|
|
490
|
+
/** One side of the game. */
|
|
491
|
+
export type GameCompetitor = {
|
|
492
|
+
/** The competitor's name as the provider gives it. */
|
|
493
|
+
name: string;
|
|
494
|
+
/** The provider's league-scoped competitor id, as a string. Omitted when the provider has not identified this side; coverage.competitors then reads labels. */
|
|
495
|
+
provider_id?: string;
|
|
496
|
+
/** Provider crest or logo URL. Omitted when there is none. */
|
|
497
|
+
logo?: string;
|
|
498
|
+
/** The provider's score for this side, verbatim. A string because the provider sends one: a set score, a map score and a run total are not all integers. Omitted when no live-score frame carries a score. */
|
|
499
|
+
score?: string;
|
|
500
|
+
/** The provider's season record for this side, for example 12-4. Omitted when the provider sent none. */
|
|
501
|
+
record?: string;
|
|
502
|
+
};
|
|
503
|
+
/** What this game's read actually supplied, so a client branches on coverage instead of on a missing key. */
|
|
504
|
+
export type GameCoverage = {
|
|
505
|
+
/** available when a live-score frame supplied this game's scores. */
|
|
506
|
+
scores: "available" | "unavailable";
|
|
507
|
+
/** provider_ids when every side carries a provider id, labels when only the provider's names identify them, unavailable when neither exists. Do not join on names when this reads labels. */
|
|
508
|
+
competitors: "provider_ids" | "labels" | "unavailable";
|
|
509
|
+
/** available when the provider supplied a kickoff. */
|
|
510
|
+
schedule: "available" | "unavailable";
|
|
511
|
+
};
|
|
512
|
+
/** How current this game's facts are. Independent per source: the board half that produced the game, and the live-score frame that produced its scores. */
|
|
513
|
+
export type GameFreshness = {
|
|
514
|
+
/** Which board half produced this game. */
|
|
515
|
+
source: "live" | "upcoming";
|
|
516
|
+
/** Whether that half returned a truthful source body for this read. */
|
|
517
|
+
source_status: "ok" | "unavailable";
|
|
518
|
+
/** Whether that half had a source body at all. not_applicable means the sport has no configured source for that half. */
|
|
519
|
+
source_availability: "available" | "unavailable" | "not_applicable";
|
|
520
|
+
/** Freshness of the cached source body, never inferred from the response clock or the row count. */
|
|
521
|
+
source_freshness: "fresh" | "stale" | "unknown" | "not_applicable";
|
|
522
|
+
/** The source body's data vintage. Omitted when the read has no vintage anchor, which is not age zero. */
|
|
523
|
+
source_observed_at?: string;
|
|
524
|
+
/** Age of source_observed_at in seconds, capped at 600. Omitted past the cap or with no anchor. */
|
|
525
|
+
source_age_seconds?: number;
|
|
526
|
+
/** Whether a reader should be told these rows are behind. This applies the half's own servable-age bar (15 s live, 120 s upcoming), which is not the same as source_freshness: a live board whose scores are seconds old reads stale for about half of every publish cycle and is not delayed. */
|
|
527
|
+
delayed: boolean;
|
|
528
|
+
/** When this game's live-score frame was observed. Omitted when there is no frame. */
|
|
529
|
+
scores_observed_at?: string;
|
|
530
|
+
/** The provider's own frame clock. Omitted when the frame carries none. */
|
|
531
|
+
scores_source_at?: string;
|
|
532
|
+
};
|
|
533
|
+
/** One Polymarket market linked to this game. */
|
|
534
|
+
export type GameMarket = {
|
|
535
|
+
/** The mkt_-prefixed market id every other V1 response uses. */
|
|
536
|
+
id: string;
|
|
537
|
+
/** The raw provider condition id. */
|
|
538
|
+
condition_id: string;
|
|
539
|
+
/** Always polymarket. */
|
|
540
|
+
platform: string;
|
|
541
|
+
/** The provider's market slug. Omitted when the provider sent none. */
|
|
542
|
+
slug?: string;
|
|
543
|
+
/** The provider's own market type, for example moneyline or spread. Omitted when the provider sent none. Not an enum: the provider owns this vocabulary and adds to it. */
|
|
544
|
+
sports_market_type?: string;
|
|
545
|
+
/** Which side of the game this market's YES leg pays. draw is a real value: a 1X2 market's third leg is not a competitor. Omitted when the provider ids do not classify the leg, which is not the same as other. */
|
|
546
|
+
side?: "home" | "away" | "draw" | "other";
|
|
547
|
+
/** The provider's label for the YES outcome. Omitted when the provider sent none. */
|
|
548
|
+
outcome_yes?: string;
|
|
549
|
+
/** The provider's label for the NO outcome. Omitted when the provider sent none. */
|
|
550
|
+
outcome_no?: string;
|
|
551
|
+
/** Polymarket CLOB token ids in the provider's own outcome-index order. Omitted when the provider has published none for this market. */
|
|
552
|
+
outcome_token_ids?: string[];
|
|
553
|
+
};
|
|
554
|
+
/** What this deployment covers, published with every page so a client never has to guess whether an empty list means no games or no coverage. */
|
|
555
|
+
export type GamesCoverage = {
|
|
556
|
+
/** Canonical sport buckets served, sorted. */
|
|
557
|
+
sports: string[];
|
|
558
|
+
/** League tags served, sorted. */
|
|
559
|
+
leagues: string[];
|
|
560
|
+
/** Scopes whose source half was unavailable for this read, as <sport>:<half>. Empty means every scope answered. */
|
|
561
|
+
sources_unavailable: string[];
|
|
562
|
+
};
|
|
563
|
+
/** Where the game is in its own life, as the provider reports it. A postponement, a cancellation and a suspension each keep their own state, so a client can tell a game that will be played later from one that never will be. */
|
|
564
|
+
export type GameStatus = {
|
|
565
|
+
/** scheduled: kickoff is ahead or the provider still calls it scheduled. live: the provider reports it in play. paused: halftime or a provider-reported break. ended: the provider reported a final, an award or a forfeit. postponed, cancelled, suspended, delayed: the provider's own verdict, kept distinct. unknown: no provider state reached this read. A kickoff in the past is never read as live on its own. */
|
|
566
|
+
state: "scheduled" | "live" | "paused" | "ended" | "postponed" | "cancelled" | "suspended" | "delayed" | "unknown";
|
|
567
|
+
/** The provider status folded onto one vocabulary across leagues. unknown means the provider sent a value this API has no meaning for; provider_status keeps that value verbatim. Omitted when no live-score frame carries a status. */
|
|
568
|
+
match_status?: "scheduled" | "in_progress" | "halftime" | "penalty_shootout" | "delayed" | "suspended" | "final" | "final_overtime" | "final_shootout" | "awarded" | "forfeit" | "not_necessary" | "postponed" | "cancelled" | "unknown";
|
|
569
|
+
/** The provider's status string, verbatim. Omitted when the provider sent none. */
|
|
570
|
+
provider_status?: string;
|
|
571
|
+
/** The provider's period label, for example Q3, End Q2 or T5. Omitted when the provider sent none. */
|
|
572
|
+
period?: string;
|
|
573
|
+
/** The game clock as the provider spells it, never reformatted. Omitted when the provider sent none. */
|
|
574
|
+
clock?: string;
|
|
575
|
+
/** The provider's own in-play flag. Omitted when no live-score frame exists, which is not the same as false. */
|
|
576
|
+
live?: boolean;
|
|
577
|
+
/** Whether the game is over. Always present. */
|
|
578
|
+
ended: boolean;
|
|
579
|
+
};
|
|
449
580
|
/** Current category evidence, independent of the global grade. Pick of the Day stamps only the served display roster; frozen entry snapshots remain unchanged. */
|
|
450
581
|
export type HolderCategoryEvidence = {
|
|
451
582
|
status: "live" | "insufficient" | "stale" | "unknown" | "degraded";
|
|
@@ -457,7 +588,7 @@ export type LargeExportPolicy = {
|
|
|
457
588
|
current_internal_route: string;
|
|
458
589
|
/** Programmatic API-key-gated export routes (submit/status/download) and supported formats (json, ndjson, csv). */
|
|
459
590
|
v1_async: {
|
|
460
|
-
/** POST route template to submit an export job. */
|
|
591
|
+
/** POST route template to submit an export job. fresh=true asks for a snapshot read after the submit instead of reusing a finished one. */
|
|
461
592
|
submit_route?: string;
|
|
462
593
|
/** GET route template to poll job status. */
|
|
463
594
|
status_route?: string;
|
|
@@ -466,7 +597,7 @@ export type LargeExportPolicy = {
|
|
|
466
597
|
/** Supported ?format= values. */
|
|
467
598
|
formats?: ("json" | "ndjson" | "csv")[];
|
|
468
599
|
/** Possible job status values. */
|
|
469
|
-
status_values?: ("queued" | "running" | "ready" | "failed")[];
|
|
600
|
+
status_values?: ("queued" | "running" | "ready" | "failed" | "reconcile_required" | "expired")[];
|
|
470
601
|
/** How long a finished export is retained before expiry. */
|
|
471
602
|
retention?: string;
|
|
472
603
|
};
|
|
@@ -545,6 +676,67 @@ export type LargePosition = {
|
|
|
545
676
|
category?: string;
|
|
546
677
|
};
|
|
547
678
|
};
|
|
679
|
+
export type LargeTrade = {
|
|
680
|
+
/** Prefixed ID (wt_...). */
|
|
681
|
+
id: string;
|
|
682
|
+
traded_at: string;
|
|
683
|
+
size_usd: number;
|
|
684
|
+
side: "BUY" | "SELL";
|
|
685
|
+
/** Traded outcome label (e.g. "Yes"/"No"/team name), resolved provider-first from the trade's outcome_index against market_canonical (index 0 -> yes, 1 -> no). Distinct axis from side (BUY/SELL): side is the trade direction, outcome is which leg was traded. null for multi-outcome (outcome_index >= 2) or unsynced markets, and for a Polymarket trade recorded before 2026-04-02T00:00:00Z, whose stored outcome_index is not trusted (a defaulted 0 for about a third of those rows; the side is unknown, not defaulted). */
|
|
686
|
+
outcome: string | null;
|
|
687
|
+
/** The Polymarket CLOB token id (ERC1155 asset id, decimal string) for the traded outcome; null when unavailable (e.g. unsynced markets) and for a Polymarket trade recorded before 2026-04-02T00:00:00Z, where the traded side is unknown. */
|
|
688
|
+
token_id: string | null;
|
|
689
|
+
price: number;
|
|
690
|
+
/** Current 0.0–1.0 normalized signal score, computed at request time from the trader's win rate today and the trade's age now. On a historical row it is today's view of the trade, not what a reader saw then; use recorded_signal_score for that. */
|
|
691
|
+
signal_score: number;
|
|
692
|
+
/** 0.0–1.0 signal score written once when the trade row is inserted, from the trader's statistics at that moment. Populated from 2026-08-03T11:59Z; older rows return null and are never backfilled, because a backfill could only read today's statistics. If a trade is added later, its time-sensitive recorded score reflects that delay. */
|
|
693
|
+
recorded_signal_score: number | null;
|
|
694
|
+
/** Persisted live suspicion score from the scorer. Null when the row has no persisted score. */
|
|
695
|
+
suspicion_score: number | null;
|
|
696
|
+
/** Persisted scorer track. Null when a legacy row has no stored track label. */
|
|
697
|
+
suspicion_track: "whale" | "fresh_conviction" | "sliced_position" | null;
|
|
698
|
+
/** This fill's size relative to its market: size_usd divided by a market volume figure recorded at or after the trade, so the value always falls between 0 and 1 inclusive. A $10,000 fill is 0.00005 of a $200M market and 0.125 of an $80,000 one, which size_usd alone cannot distinguish. Absent when no volume figure recorded at or after the trade is available; never 0 as a stand-in and never capped at 1, because a denominator we cannot trust publishes nothing rather than a trimmed number. A market's volume keeps growing, so the same trade reports a smaller share as the market trades on. */
|
|
699
|
+
market_volume_share?: number;
|
|
700
|
+
trader: {
|
|
701
|
+
id: string;
|
|
702
|
+
address: string;
|
|
703
|
+
username?: string;
|
|
704
|
+
/** The trader's grade today, on every row however old. For what the grade was when the trade happened, read grade_at_trade. */
|
|
705
|
+
grade?: string;
|
|
706
|
+
/** The grade the trader held when the trade happened, from recorded grade history (recorded from 2026-09-19T23:00Z). Null unless grade_at_trade_status is graded. Never today's grade projected backward. */
|
|
707
|
+
grade_at_trade: "S" | "A" | "B" | "C" | "D" | "F" | null;
|
|
708
|
+
/** graded: grade_at_trade holds the recorded grade. ungraded: the trader was recorded without a grade at that moment. unknown: no record covers the moment, which is every trade before 2026-09-19T23:00Z and a trade that fell between a grade change and its confirmation. unknown never means ungraded. */
|
|
709
|
+
grade_at_trade_status: "graded" | "ungraded" | "unknown";
|
|
710
|
+
};
|
|
711
|
+
market: {
|
|
712
|
+
id: string;
|
|
713
|
+
condition_id: string;
|
|
714
|
+
title: string;
|
|
715
|
+
slug?: string;
|
|
716
|
+
/** Provider-backed market_canonical category. */
|
|
717
|
+
category?: string;
|
|
718
|
+
};
|
|
719
|
+
};
|
|
720
|
+
export type LargeTradeDetail = LargeTrade & {
|
|
721
|
+
counterparty_analysis: CounterpartyAnalysis;
|
|
722
|
+
};
|
|
723
|
+
export type LargeTradeHistoryMeta = {
|
|
724
|
+
/** Unique request ID (req_ prefix). The same value as the X-Request-Id response header, the request's usage accounting row and its log lines. */
|
|
725
|
+
request_id: string;
|
|
726
|
+
cached: boolean;
|
|
727
|
+
/** Cache age in seconds; the key is absent when the response was not cached. */
|
|
728
|
+
cache_age_s?: number;
|
|
729
|
+
source: {
|
|
730
|
+
kind: "local_replay";
|
|
731
|
+
table: "whale_alerts";
|
|
732
|
+
provider_fetch_at_request_time: false;
|
|
733
|
+
};
|
|
734
|
+
completeness: {
|
|
735
|
+
status: "best_effort";
|
|
736
|
+
/** Explains that local replay completeness can vary by market and time window. */
|
|
737
|
+
reason: string;
|
|
738
|
+
};
|
|
739
|
+
};
|
|
548
740
|
export type LeaderboardEntry = {
|
|
549
741
|
id: string;
|
|
550
742
|
address: string;
|
|
@@ -685,6 +877,8 @@ export type MarketIntel = {
|
|
|
685
877
|
direction: "YES" | "NO";
|
|
686
878
|
/** The Polymarket CLOB token id (ERC1155 asset id, decimal string) for the net-flow direction outcome; null when unavailable (e.g. unsynced markets). */
|
|
687
879
|
token_id: string | null;
|
|
880
|
+
/** Canonical key since #16304 (Polymarket's noun is large trade); whale_trade_count is its deprecated spelling, emitted beside it with the same value. */
|
|
881
|
+
large_trade_count?: number;
|
|
688
882
|
whale_trade_count: number;
|
|
689
883
|
buy_volume_usd: number;
|
|
690
884
|
sell_volume_usd: number;
|
|
@@ -698,6 +892,8 @@ export type MarketIntel = {
|
|
|
698
892
|
token_id: string | null;
|
|
699
893
|
size_usd: number;
|
|
700
894
|
})[];
|
|
895
|
+
/** Age of the oldest stored position snapshot behind top_positions: the minimum wallet sync clock over the positions this body publishes. The roster is a stored read rather than a live one, and graded wallets sit on different sync tiers, so this names how current the whole roster is; the response is no fresher than this timestamp. Null when the roster is empty or no published position carries a sync clock. It does not date net_flow_usd, the volumes or the trade counts, which come from large-trade event times. */
|
|
896
|
+
oldest_snapshot_as_of: string | null;
|
|
701
897
|
};
|
|
702
898
|
/** Deprecated alias of sharp_money; byte-identical and retained for backward compatibility. */
|
|
703
899
|
smart_money: {
|
|
@@ -705,6 +901,8 @@ export type MarketIntel = {
|
|
|
705
901
|
direction: "YES" | "NO";
|
|
706
902
|
/** The Polymarket CLOB token id (ERC1155 asset id, decimal string) for the net-flow direction outcome; null when unavailable (e.g. unsynced markets). */
|
|
707
903
|
token_id: string | null;
|
|
904
|
+
/** Canonical key since #16304 (Polymarket's noun is large trade); whale_trade_count is its deprecated spelling, emitted beside it with the same value. */
|
|
905
|
+
large_trade_count?: number;
|
|
708
906
|
whale_trade_count: number;
|
|
709
907
|
buy_volume_usd: number;
|
|
710
908
|
sell_volume_usd: number;
|
|
@@ -718,6 +916,8 @@ export type MarketIntel = {
|
|
|
718
916
|
token_id: string | null;
|
|
719
917
|
size_usd: number;
|
|
720
918
|
})[];
|
|
919
|
+
/** Age of the oldest stored position snapshot behind top_positions: the minimum wallet sync clock over the positions this body publishes. The roster is a stored read rather than a live one, and graded wallets sit on different sync tiers, so this names how current the whole roster is; the response is no fresher than this timestamp. Null when the roster is empty or no published position carries a sync clock. It does not date net_flow_usd, the volumes or the trade counts, which come from large-trade event times. */
|
|
920
|
+
oldest_snapshot_as_of: string | null;
|
|
721
921
|
};
|
|
722
922
|
timeframe: string;
|
|
723
923
|
};
|
|
@@ -1356,7 +1556,10 @@ export type PlatformCapabilities = {
|
|
|
1356
1556
|
pnl: PlatformCapabilityStatus;
|
|
1357
1557
|
strategy: PlatformCapabilityStatus;
|
|
1358
1558
|
timeline: PlatformCapabilityStatus;
|
|
1559
|
+
/** The large-trade feed. Canonical key since #16304; whale_signal is its deprecated spelling, emitted beside it with the same value. */
|
|
1560
|
+
large_trades: PlatformCapabilityStatus;
|
|
1359
1561
|
whale_signal: PlatformCapabilityStatus;
|
|
1562
|
+
suspicious_trades: PlatformCapabilityStatus;
|
|
1360
1563
|
insider_radar: PlatformCapabilityStatus;
|
|
1361
1564
|
market_snapshot: PlatformCapabilityStatus;
|
|
1362
1565
|
};
|
|
@@ -1464,6 +1667,193 @@ export type PotdEntryAuthorization = {
|
|
|
1464
1667
|
/** Original provider kickoff ceiling. Never extended on retry. */
|
|
1465
1668
|
expires_at: string;
|
|
1466
1669
|
};
|
|
1670
|
+
/** One ranked pre-game sports market where graded sharp money is piled on one side, with required-status shadow category evidence from partial forward-observed Polymarket fills. */
|
|
1671
|
+
export type PreGameSide = {
|
|
1672
|
+
/** 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. */
|
|
1673
|
+
side: string | null;
|
|
1674
|
+
/** UTC time at which the snapshot that ranked this row was computed. Canonical spelling of signal_created_at (#16310), same value. */
|
|
1675
|
+
ranked_at: string;
|
|
1676
|
+
/** Grade-weighted holders times the share of their money on the side: (5*s + 4*a + 3*b) * sharp_pct. Canonical spelling of conviction_score (#16310), same value. */
|
|
1677
|
+
backing_score: number;
|
|
1678
|
+
/** Signed share of graded money on the side, (yes_usd - no_usd)/(yes_usd + no_usd) in [-1, 1] (side-yes positive, side-no negative). Canonical spelling of smart_score (#16309, #16310), same value. */
|
|
1679
|
+
side_share: number | null;
|
|
1680
|
+
/** Polymarket condition id. */
|
|
1681
|
+
condition_id: string;
|
|
1682
|
+
/** UTC time at which the immutable signal snapshot was computed. Every row from one snapshot shares this value; it is not provider market creation time and is not rewritten at request time. Deprecated (#16310): `ranked_at` is the canonical spelling and carries the same value; this key stays on the wire. */
|
|
1683
|
+
signal_created_at: string;
|
|
1684
|
+
/** Polymarket CLOB token id (ERC1155 asset id, decimal string) for the PILED outcome; null when unavailable. */
|
|
1685
|
+
token_id: string | null;
|
|
1686
|
+
/** Canonical sport bucket (e.g. Basketball, Tennis); null when the raw category has no canonical mapping. */
|
|
1687
|
+
category: string | null;
|
|
1688
|
+
/** Raw provider category as stored (e.g. NBA, EPL). */
|
|
1689
|
+
raw_category: string | null;
|
|
1690
|
+
title: string | null;
|
|
1691
|
+
event_slug: string | null;
|
|
1692
|
+
/** Kickoff (UTC). In the future at SNAPSHOT time and within the requested horizon; because the response is served from a shared snapshot cached up to the ~180s TTL, a served kickoff can be up to ~180s in the past relative to the response time. Not a live guarantee that the game has not yet started. */
|
|
1693
|
+
game_start_time: string | null;
|
|
1694
|
+
/** Nullable provider-backed piled-outcome display label. When provider group context is unavailable, it may remain a bare Yes/No/Over/Under; do not use it alone as participant identity. Deprecated (#16310): `side` is the canonical spelling and carries the same value; this key stays on the wire. */
|
|
1695
|
+
piled_side: string | null;
|
|
1696
|
+
/** Provider binary-column selector: 0 selects outcome_yes/token_id_yes; 1 selects outcome_no/token_id_no. It does not identify home/away or a participant. Use piled_side together with title/event context for display. */
|
|
1697
|
+
piled_outcome_index: number;
|
|
1698
|
+
/** Piled-side dollar concentration backed_usd / (yes_usd + no_usd), in (0.5, 1] for a real pile; null when there is no sharp USD. */
|
|
1699
|
+
sharp_pct: number | null;
|
|
1700
|
+
/** Raw piled-side sharp-money USD. */
|
|
1701
|
+
backed_sharp_usd: number;
|
|
1702
|
+
/** S-grade graded holders on the piled side. */
|
|
1703
|
+
s_count: number;
|
|
1704
|
+
/** A-grade graded holders on the piled side. */
|
|
1705
|
+
a_count: number;
|
|
1706
|
+
/** B-grade graded holders on the piled side. */
|
|
1707
|
+
b_count: number;
|
|
1708
|
+
/** Piled-side graded holder count (s_count + a_count + b_count). */
|
|
1709
|
+
graded_holders: number;
|
|
1710
|
+
/** Best grade present on the piled side; null when none. */
|
|
1711
|
+
top_grade: "S" | "A" | "B" | null;
|
|
1712
|
+
/** Canonical sharp-money score (yes_usd - no_usd)/(yes_usd + no_usd) in [-1, 1] (piled-yes positive, piled-no negative); a lower-order ranking tiebreak (after directional_rank_score and conviction_score). Deprecated (#16310): `side_share` is the canonical spelling and carries the same value; this key stays on the wire. */
|
|
1713
|
+
smart_score: number | null;
|
|
1714
|
+
/** Market volume (USD). */
|
|
1715
|
+
volume: number | null;
|
|
1716
|
+
/** Aggregate recent flow direction on the market; null when unavailable. */
|
|
1717
|
+
net_side: "BUY" | "SELL" | null;
|
|
1718
|
+
/** Grade-weighted pile score (5*s + 4*a + 3*b) * sharp_pct; the raw conviction input to the ranking (see directional_rank_score). Deprecated (#16310): `backing_score` is the canonical spelling and carries the same value; this key stays on the wire. */
|
|
1719
|
+
conviction_score: number;
|
|
1720
|
+
/** Piled-side graded holders read one-way: their fresh open legs across the signal game's markets (cross-market within the one game; moneyline+spread family only) all back the same team, or, when the market's holder scan was complete, Polymarket's currentValue shows no opposite leg on this market worth 10% of the backed leg and no fresh leg opposes it. Null when the directional read was not computed (no groupable game, no holder-level data on this ranking path, or the enrichment read failed) or classified nobody. */
|
|
1721
|
+
one_way_holder_count: number | null;
|
|
1722
|
+
/** Piled-side graded holders classified HEDGED across the game by fresh legs (they back two or more distinct teams). A wallet long both outcomes of this market is not one-way and not counted here. Null when the directional read was not computed or classified nobody. */
|
|
1723
|
+
hedged_holder_count: number | null;
|
|
1724
|
+
/** Piled-side graded USD held by one-way wallets (share-weighted allocation of backed_sharp_usd). Null when the directional read was not computed or classified nobody. */
|
|
1725
|
+
one_way_graded_usd: number | null;
|
|
1726
|
+
/** One-way fraction of the piled graded dollars, in [0, 1] -- the metric orthogonal to sharp_pct. Stale, unknown, hedged, and two-sided dollars dilute it toward zero (conservative). Null when the directional read was not computed or classified nobody. */
|
|
1727
|
+
directional_confidence: number | null;
|
|
1728
|
+
/** The ranking key, descending: conviction_score * (1 + 0.25 * directional_confidence). Equals conviction_score when the directional read is null/zero, so signals without the read rank exactly as before. */
|
|
1729
|
+
directional_rank_score: number;
|
|
1730
|
+
category_skill: PreGameSideCategorySkill;
|
|
1731
|
+
/** 1-based rank within the (min_grade-filtered) ranked result. */
|
|
1732
|
+
rank: number;
|
|
1733
|
+
};
|
|
1734
|
+
/** Shadow-only category evidence over the full uncapped piled-side S/A/B holder allocation. It never changes signal membership, ordering, routing, or sizing. */
|
|
1735
|
+
export type PreGameSideCategorySkill = {
|
|
1736
|
+
status: "live" | "insufficient" | "stale" | "unknown" | "degraded";
|
|
1737
|
+
model_version: string;
|
|
1738
|
+
taxonomy_version: string | null;
|
|
1739
|
+
platform: "polymarket";
|
|
1740
|
+
scope: "observed_goldsky_primary_taker_fill";
|
|
1741
|
+
source_coverage: "partial_whale_threshold_fills" | "graded_wallet_fills";
|
|
1742
|
+
observation_started_at: string;
|
|
1743
|
+
as_of: string;
|
|
1744
|
+
canonical_category: string | null;
|
|
1745
|
+
eligible_holders: number;
|
|
1746
|
+
covered_holders: number;
|
|
1747
|
+
backed_sharp_usd: number | null;
|
|
1748
|
+
covered_backed_usd: number | null;
|
|
1749
|
+
coverage_pct: number | null;
|
|
1750
|
+
weighted_edge_mean: number | null;
|
|
1751
|
+
weighted_holder_lower_mean: number | null;
|
|
1752
|
+
specialist_backed_usd: number | null;
|
|
1753
|
+
specialist_backed_usd_pct: number | null;
|
|
1754
|
+
largest_holder_backed_usd_pct: number | null;
|
|
1755
|
+
minimum_holder_event_count: number | null;
|
|
1756
|
+
};
|
|
1757
|
+
/** Per-sport accountable funnel for the full observation snapshot, returned on every page. */
|
|
1758
|
+
export type PreGameSideFunnelReport = {
|
|
1759
|
+
sports: PreGameSideSportFunnelReport[];
|
|
1760
|
+
};
|
|
1761
|
+
/** One explicitly observation-only holder-pile measurement. It is evidence for cohort evaluation, not an execution instruction, and is isolated from the funded sports-edge-signals route. */
|
|
1762
|
+
export type PreGameSideObservation = {
|
|
1763
|
+
/** 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. */
|
|
1764
|
+
side: string | null;
|
|
1765
|
+
/** Grade-weighted holder-pile score before directional enrichment. Canonical spelling of conviction_score (#16310), same value. */
|
|
1766
|
+
backing_score: number;
|
|
1767
|
+
/** Signed share of graded money on the side, in [-1, 1]. Canonical spelling of smart_score (#16309, #16310), same value. */
|
|
1768
|
+
side_share: number;
|
|
1769
|
+
/** Raw Polymarket condition id. */
|
|
1770
|
+
condition_id: string;
|
|
1771
|
+
/** Provider-backed Polymarket CLOB token id for the piled outcome. Rows without a verified token terminate before emission. */
|
|
1772
|
+
token_id: string;
|
|
1773
|
+
/** Canonical sport bucket. */
|
|
1774
|
+
category: "Basketball" | "Football" | "Baseball" | "Hockey" | "MMA" | "Boxing" | "Soccer" | "Cricket" | "Golf" | "Tennis" | "Esports" | "Racing" | "Table Tennis" | "Pickleball";
|
|
1775
|
+
/** Raw provider category as stored. */
|
|
1776
|
+
raw_category: string | null;
|
|
1777
|
+
/** Provider-backed market title. */
|
|
1778
|
+
title: string;
|
|
1779
|
+
event_slug: string | null;
|
|
1780
|
+
/** Provider event id when available. */
|
|
1781
|
+
event_id: string | null;
|
|
1782
|
+
/** Provider parent-event id used as the first event-cap identity when available. */
|
|
1783
|
+
parent_event_id: string | null;
|
|
1784
|
+
/** Provider-backed kickoff time in UTC. */
|
|
1785
|
+
game_start_time: string;
|
|
1786
|
+
/** UTC instant when this row finished provider/holder evaluation. */
|
|
1787
|
+
observed_at: string;
|
|
1788
|
+
/** Source cohort or additive projection view. emerging_pile is projected from wider_holder after source computation, overlaps its funnel denominator, and uses the source row's directional evidence. */
|
|
1789
|
+
cohort: "wider_holder" | "in_play" | "emerging_pile";
|
|
1790
|
+
/** Always true. This row must not be routed to an order executor. */
|
|
1791
|
+
observation_only: true;
|
|
1792
|
+
/** Nullable provider-backed piled-outcome display label. When provider group context is unavailable, it may remain a bare Yes/No/Over/Under; do not use it alone as participant identity. Deprecated (#16310): `side` is the canonical spelling and carries the same value; this key stays on the wire. */
|
|
1793
|
+
piled_side: string | null;
|
|
1794
|
+
/** Provider binary-column selector: 0 selects outcome_yes/token_id_yes; 1 selects outcome_no/token_id_no. It does not identify home/away or a participant. Use piled_side together with title/event context for display. */
|
|
1795
|
+
piled_outcome_index: 0 | 1;
|
|
1796
|
+
/** Provider-backed implied price for the piled outcome at observation time. */
|
|
1797
|
+
backed_price: number;
|
|
1798
|
+
/** Piled-side graded-holder dollar concentration. */
|
|
1799
|
+
sharp_pct: number;
|
|
1800
|
+
/** Raw graded-holder USD on the piled outcome. */
|
|
1801
|
+
backed_sharp_usd: number;
|
|
1802
|
+
s_count: number;
|
|
1803
|
+
a_count: number;
|
|
1804
|
+
b_count: number;
|
|
1805
|
+
/** Piled-side S/A/B holder count. */
|
|
1806
|
+
graded_holders: number;
|
|
1807
|
+
top_grade: "S" | "A" | "B";
|
|
1808
|
+
/** Canonical signed holder-pile score. Deprecated (#16310): `side_share` is the canonical spelling and carries the same value; this key stays on the wire. */
|
|
1809
|
+
smart_score: number;
|
|
1810
|
+
/** Strictly positive stored market volume in USD. Missing, zero, or non-finite volume terminates as invalid_market and is never emitted as an observation. */
|
|
1811
|
+
volume: number;
|
|
1812
|
+
/** Grade-weighted holder-pile score before directional enrichment. Deprecated (#16310): `backing_score` is the canonical spelling and carries the same value; this key stays on the wire. */
|
|
1813
|
+
conviction_score: number;
|
|
1814
|
+
/** Whether the provider holder page came from the shared cache or a live provider read. */
|
|
1815
|
+
provider_read_source: "cached" | "live";
|
|
1816
|
+
/** True only when neither provider outcome holder page hit the top-100 scan bound. False means the pile is a positive lower bound and cannot satisfy a future capital-promotion gate. */
|
|
1817
|
+
holder_scan_complete: boolean;
|
|
1818
|
+
/** Proven provider holder observation time. A warm cache hit uses only the original provider completion time from its companion metadata, never cache-read time. Null, malformed, future, or stale holder time fails in-play closed. */
|
|
1819
|
+
holder_snapshot_at: string | null;
|
|
1820
|
+
/** Truthful state of the directional read, which classifies each graded holder by its fresh synced legs across the game's markets and, when holder_scan_complete is true, by Polymarket's currentValue on both outcomes of this market. A wider_holder row can remain emitted with unavailable and terminal wider_holder_emitted; in_play fails closed instead and terminates as in_play_directional_unavailable. */
|
|
1821
|
+
directional_status: "available" | "unknown_ungrouped" | "unknown_stale" | "unavailable";
|
|
1822
|
+
one_way_holder_count: number | null;
|
|
1823
|
+
hedged_holder_count: number | null;
|
|
1824
|
+
one_way_graded_usd: number | null;
|
|
1825
|
+
directional_confidence: number | null;
|
|
1826
|
+
/** Default cohort ordering key: conviction_score * (1 + 0.25 * directional_confidence), or conviction_score when confidence is null. */
|
|
1827
|
+
directional_rank_score: number;
|
|
1828
|
+
/** 1-based rank within this observation cohort and snapshot. */
|
|
1829
|
+
rank: number;
|
|
1830
|
+
};
|
|
1831
|
+
/** Closed 25-value terminal-reason vocabulary for the accountable sports-edge 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 an attempted holder-provider failure; holder_deadline_unavailable is holder cache/provider absolute-deadline exhaustion. */
|
|
1832
|
+
export type PreGameSideObservationTerminalReason = "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";
|
|
1833
|
+
/** Independent sports-board supply plus stored-universe terminal accounting for one canonical sport. */
|
|
1834
|
+
export type PreGameSideSportFunnelReport = {
|
|
1835
|
+
sport: "Basketball" | "Football" | "Baseball" | "Hockey" | "MMA" | "Boxing" | "Soccer" | "Cricket" | "Golf" | "Tennis" | "Esports" | "Racing" | "Table Tennis" | "Pickleball";
|
|
1836
|
+
/** Unique condition ids independently visible on the provider-first sports board. */
|
|
1837
|
+
board_input: number;
|
|
1838
|
+
/** Whether the always-applicable live-board source completed as available. False can mean a completed source failure (board_source_unavailable) or live-board work missing an internal configured-scope deadline or the outer fair-wave deadline (board_deadline_unavailable); inspect terminals to distinguish them. */
|
|
1839
|
+
board_live_available: boolean;
|
|
1840
|
+
/** Whether a provider-backed upcoming-board source is configured and applicable for this sport. False means not applicable, not provider failure. */
|
|
1841
|
+
board_upcoming_configured: boolean;
|
|
1842
|
+
/** Whether every configured upcoming-board scope completed as available. False with board_upcoming_configured=false means not applicable. When board_upcoming_configured is true and this flag is false, read board_upcoming_status for the cause (it reads unknown, i.e. no recorded cause, only on a snapshot cached before that field existed, which self-clears within one TTL): the board_source_unavailable and board_deadline_unavailable terminals are assigned only to already-started rows (the live half) and are structurally 0 for the upcoming source, so they never explain this flag. */
|
|
1843
|
+
board_upcoming_available: boolean;
|
|
1844
|
+
/** Why the upcoming-board source is (un)available. Board supply is one canonical-sport union: the bare category owns live truth and every configured composed league scope contributes upcoming rows; folded leagues without a configured board (currently NCAAB and CFL) are not in the upcoming union. available: every configured scope completed truthfully (a successful empty schedule still counts). capacity_limited: provider pagination or a configured upcoming cache published an intentionally bounded complete-event prefix; those rows are excluded from diagnostic-universe input and must not be treated as a complete upcoming universe. Cache-bound prefixes are limited to 3,000 rows or an exact 5,000,000-byte final envelope. source_unavailable: composition failed before a truthful union; resolved scope readers turn half failures into cold_unavailable, so fresh producers are whole-union identity reconciliation or a registry contract failure and carry zero rows. cold_unavailable: every scope completed but at least one reported its upcoming half unavailable because no servable entry was inside the stale-serve bound and the background warm did not land in time; it is not by itself proof of a provider outage. deadline_unavailable: an internal configured-scope deadline or the outer bounded fair wave expired. An internal deadline may retain healthy bare-category or sibling-scope rows; the outer wave records zero rows. These upcoming fields do not describe league live-membership availability. If the bare-category live scope fails, all live rows are dropped even when a league scope completed, because the bare category is the sole live-truth owner. not_configured: no upcoming scope applies to the sport. unknown: exactly one cause -- a snapshot cached before this field existed whose legacy flags recorded an unavailable-but-configured half without saying why. Every freshly computed snapshot reports a concrete status, and a legacy available or not-configured row is reconstructed exactly, so unknown self-clears within one TTL. board_upcoming_available is exactly board_upcoming_status == available. */
|
|
1845
|
+
board_upcoming_status: "unknown" | "not_configured" | "available" | "capacity_limited" | "source_unavailable" | "cold_unavailable" | "deadline_unavailable";
|
|
1846
|
+
/** Configured upcoming scopes that did not complete as available. Values are category, a provider league tag slug (nfl, cfb, nba, wnba, nhl, mls, valorant, league-of-legends, counter-strike-2, or dota-2), registry when the compiled scope/projection contract drifted, union when cross-scope identity reconciliation failed, or wave when the outer fair-wave deadline expired before scope-level evidence returned. Empty means no unavailable upcoming scope was identified; this includes healthy/not-configured rows and a legacy cached row. Observation league scopes are upcoming-only and perform no live-membership read. */
|
|
1847
|
+
board_upcoming_unavailable_scopes: ("category" | "nfl" | "cfb" | "nba" | "wnba" | "nhl" | "mls" | "valorant" | "league-of-legends" | "counter-strike-2" | "dota-2" | "registry" | "union" | "wave")[];
|
|
1848
|
+
/** Stored-universe rows plus provider-board rows missing from storage. */
|
|
1849
|
+
input: number;
|
|
1850
|
+
/** Sparse counts over the closed 25-value terminal vocabulary: 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, or internal_unclassified. primary_slate_candidate means exact admission by the funded route's raw shared signals query before provider/holder enrichment; recent-flow rows rejected by its event, bucket, or total caps remain eligible for wider_holder measurement. capacity_limited is intentional bounded provider-work admission, is fully accounted here, and does not itself set degraded=true. board_source_unavailable means a completed board source was unavailable; board_deadline_unavailable means live-board work missed either an internal configured-scope deadline or the outer fair-wave deadline; provider_unavailable means an attempted holder-provider read failed; holder_deadline_unavailable means holder cache/provider work missed the absolute request deadline; holder_computation_unavailable means post-holder provider or DB-backed price/metadata evaluation was unavailable. */
|
|
1851
|
+
terminals: Record<string, number>;
|
|
1852
|
+
/** Sum of every sparse terminal count. */
|
|
1853
|
+
terminal_total: number;
|
|
1854
|
+
/** True exactly when input equals terminal_total. */
|
|
1855
|
+
reconciled: boolean;
|
|
1856
|
+
};
|
|
1467
1857
|
/** One PUBLISHED same-day pick whose holder proof is not readable yet: its stable slot rank, the release and kickoff instants, and the instant before which a retry cannot succeed. Every item in `picks` carries its full required shape, so a pick that cannot meet it is listed here instead of being served with missing fields or a synthetic zero. */
|
|
1468
1858
|
export type ProofPendingPickSlot = {
|
|
1469
1859
|
/** Stable 1-based slot within the product day's ranked picks. The pick keeps this rank once its proof is readable and it moves into `picks`. */
|
|
@@ -1475,44 +1865,44 @@ export type ProofPendingPickSlot = {
|
|
|
1475
1865
|
/** Recommended next read: 30 seconds ahead while pre-game proof is warming, one hour ahead for a post-kickoff pending legacy row that only settlement can make readable. Schedule against it instead of polling. */
|
|
1476
1866
|
retry_at: string;
|
|
1477
1867
|
};
|
|
1478
|
-
export type RadarFlag = {
|
|
1479
|
-
/** Prefixed ID (rf_...). */
|
|
1480
|
-
id: string;
|
|
1481
|
-
/** Stored score that met the live flag threshold. */
|
|
1482
|
-
suspicion_score: number;
|
|
1483
|
-
/** The live scorer persists one threshold class. */
|
|
1484
|
-
severity: "flag";
|
|
1485
|
-
trader: {
|
|
1486
|
-
id: string;
|
|
1487
|
-
address: string;
|
|
1488
|
-
username: string | null;
|
|
1489
|
-
};
|
|
1490
|
-
market: {
|
|
1491
|
-
id: string;
|
|
1492
|
-
condition_id: string;
|
|
1493
|
-
/** Canonical market question when available. */
|
|
1494
|
-
title: string | null;
|
|
1495
|
-
};
|
|
1496
|
-
scores: {
|
|
1497
|
-
/** Null because the live scorer does not record this component. */
|
|
1498
|
-
timing: number | null;
|
|
1499
|
-
/** Null because the live scorer does not record this component. */
|
|
1500
|
-
edge: number | null;
|
|
1501
|
-
/** Numeric evidence.size when recorded; otherwise null. */
|
|
1502
|
-
size: number | null;
|
|
1503
|
-
/** Numeric evidence.fresh when recorded; otherwise null. */
|
|
1504
|
-
fresh_wallet: number | null;
|
|
1505
|
-
};
|
|
1506
|
-
/** Stored whale_alerts.suspicion_signals JSON from the scorer. */
|
|
1507
|
-
evidence: unknown;
|
|
1508
|
-
/** Stored trade timestamp. */
|
|
1509
|
-
created_at: string;
|
|
1510
|
-
};
|
|
1511
1868
|
export type ReportPayload = {
|
|
1869
|
+
/** Canonical key since #16304; total_whale_trades is its deprecated spelling, emitted beside it with the same value. */
|
|
1870
|
+
total_large_trades: number | null;
|
|
1512
1871
|
total_whale_trades: number | null;
|
|
1872
|
+
/** Canonical key since #16304; total_whale_volume is its deprecated spelling, emitted beside it with the same value. */
|
|
1873
|
+
total_large_trade_volume: number | null;
|
|
1513
1874
|
total_whale_volume: number | null;
|
|
1514
1875
|
biggest_trade_size: number | null;
|
|
1515
1876
|
active_traders: number | null;
|
|
1877
|
+
/** Canonical key since #16304; top_whale_trades is its deprecated spelling, emitted beside it with the same value. */
|
|
1878
|
+
top_large_trades: ({
|
|
1879
|
+
/** Provider outcome label for the traded side. */
|
|
1880
|
+
outcome: string | null;
|
|
1881
|
+
/** Trade direction (BUY or SELL), not the outcome side. */
|
|
1882
|
+
side: string | null;
|
|
1883
|
+
/** Market title. */
|
|
1884
|
+
title: string | null;
|
|
1885
|
+
/** Trade size in USD. */
|
|
1886
|
+
size: number | null;
|
|
1887
|
+
/** Trade price in provider [0, 1] units. */
|
|
1888
|
+
price: number | null;
|
|
1889
|
+
/** The Polymarket CLOB token id (ERC1155 asset id, decimal string) for the traded outcome; null when unavailable (e.g. unsynced markets). */
|
|
1890
|
+
token_id: string | null;
|
|
1891
|
+
/** Whale trade id. */
|
|
1892
|
+
id: number | null;
|
|
1893
|
+
/** Trade timestamp (UTC). */
|
|
1894
|
+
trade_time: string | null;
|
|
1895
|
+
/** Provider market category. */
|
|
1896
|
+
market_category: string | null;
|
|
1897
|
+
/** Venue: polymarket. */
|
|
1898
|
+
platform: string | null;
|
|
1899
|
+
/** Trader display name, when known. */
|
|
1900
|
+
name: string | null;
|
|
1901
|
+
/** Trader pseudonym, when no display name is known. */
|
|
1902
|
+
pseudonym: string | null;
|
|
1903
|
+
/** Trader grade (S-F) at snapshot time. */
|
|
1904
|
+
trader_grade: string | null;
|
|
1905
|
+
})[] | null;
|
|
1516
1906
|
top_whale_trades: ({
|
|
1517
1907
|
/** Provider outcome label for the traded side. */
|
|
1518
1908
|
outcome: string | null;
|
|
@@ -1542,6 +1932,7 @@ export type ReportPayload = {
|
|
|
1542
1932
|
trader_grade: string | null;
|
|
1543
1933
|
})[] | null;
|
|
1544
1934
|
categories: Record<string, unknown>[] | null;
|
|
1935
|
+
/** Counts of current grades for distinct Polymarket traders with at least one whale alert in the report's source date range. The grade is the current projection at snapshot materialization time, not a historical grade at trade time. Traders without a current ranking projection are omitted; a null grade entry means the active trader's current grade is unavailable. */
|
|
1545
1936
|
grade_distribution: Record<string, unknown>[] | null;
|
|
1546
1937
|
};
|
|
1547
1938
|
export type ReportReconciliation = {
|
|
@@ -1635,6 +2026,8 @@ export type SmartMoneyFlowMarket = {
|
|
|
1635
2026
|
direction: "YES" | "NO";
|
|
1636
2027
|
/** The Polymarket CLOB token id (ERC1155 asset id, decimal string) for the net-flow direction outcome; null when unavailable (e.g. unsynced markets). */
|
|
1637
2028
|
token_id: string | null;
|
|
2029
|
+
/** Canonical key since #16304 (Polymarket's noun is large trade); whale_trade_count is its deprecated spelling, emitted beside it with the same value. */
|
|
2030
|
+
large_trade_count?: number;
|
|
1638
2031
|
whale_trade_count: number;
|
|
1639
2032
|
buy_volume_usd: number;
|
|
1640
2033
|
sell_volume_usd: number;
|
|
@@ -1645,6 +2038,8 @@ export type SmartMoneyFlowMarket = {
|
|
|
1645
2038
|
direction: "YES" | "NO";
|
|
1646
2039
|
/** The Polymarket CLOB token id (ERC1155 asset id, decimal string) for the net-flow direction outcome; null when unavailable (e.g. unsynced markets). */
|
|
1647
2040
|
token_id: string | null;
|
|
2041
|
+
/** Canonical key since #16304 (Polymarket's noun is large trade); whale_trade_count is its deprecated spelling, emitted beside it with the same value. */
|
|
2042
|
+
large_trade_count?: number;
|
|
1648
2043
|
whale_trade_count: number;
|
|
1649
2044
|
buy_volume_usd: number;
|
|
1650
2045
|
sell_volume_usd: number;
|
|
@@ -1656,6 +2051,8 @@ export type SnapshotCompleteness = {
|
|
|
1656
2051
|
status: "complete" | "partial" | "empty";
|
|
1657
2052
|
reason: string;
|
|
1658
2053
|
expected_days: number;
|
|
2054
|
+
/** Canonical key since #16304; covered_days_with_whale_activity is its deprecated spelling, emitted beside it with the same value. */
|
|
2055
|
+
covered_days_with_large_trade_activity?: number;
|
|
1659
2056
|
covered_days_with_whale_activity: number;
|
|
1660
2057
|
};
|
|
1661
2058
|
export type SnapshotState = {
|
|
@@ -1667,186 +2064,46 @@ export type SnapshotState = {
|
|
|
1667
2064
|
status: "final" | "rolling";
|
|
1668
2065
|
generated_at: string;
|
|
1669
2066
|
/** For a rolling body, the UTC date on which a final body can first be built (the date of final_after); null once final. */
|
|
1670
|
-
mutable_until: string | null;
|
|
1671
|
-
/** Whether the source range has ended on the UTC calendar. Closing is not finality: a closed range is rolling until final_after. */
|
|
1672
|
-
period_closed: boolean;
|
|
1673
|
-
/** The instant a source read must start at or after to produce a final body: the range's UTC close plus 7,530 s, the whale-trade ingestion budget (p95 block lag gate plus the projection retry budget). */
|
|
1674
|
-
final_after: string;
|
|
1675
|
-
/** When this body's source read started, the clock finality is judged on. null for a body stored before that clock was recorded. */
|
|
1676
|
-
source_read_started_at: string | null;
|
|
1677
|
-
};
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
piled_outcome_index: 0 | 1;
|
|
1711
|
-
/** Provider-backed implied price for the piled outcome at observation time. */
|
|
1712
|
-
backed_price: number;
|
|
1713
|
-
/** Piled-side graded-holder dollar concentration. */
|
|
1714
|
-
sharp_pct: number;
|
|
1715
|
-
/** Raw graded-holder USD on the piled outcome. */
|
|
1716
|
-
backed_sharp_usd: number;
|
|
1717
|
-
s_count: number;
|
|
1718
|
-
a_count: number;
|
|
1719
|
-
b_count: number;
|
|
1720
|
-
/** Piled-side S/A/B holder count. */
|
|
1721
|
-
graded_holders: number;
|
|
1722
|
-
top_grade: "S" | "A" | "B";
|
|
1723
|
-
/** Canonical signed holder-pile score. */
|
|
1724
|
-
smart_score: number;
|
|
1725
|
-
/** Strictly positive stored market volume in USD. Missing, zero, or non-finite volume terminates as invalid_market and is never emitted as an observation. */
|
|
1726
|
-
volume: number;
|
|
1727
|
-
/** Grade-weighted holder-pile score before directional enrichment. */
|
|
1728
|
-
conviction_score: number;
|
|
1729
|
-
/** Whether the provider holder page came from the shared cache or a live provider read. */
|
|
1730
|
-
provider_read_source: "cached" | "live";
|
|
1731
|
-
/** True only when neither provider outcome holder page hit the top-100 scan bound. False means the pile is a positive lower bound and cannot satisfy a future capital-promotion gate. */
|
|
1732
|
-
holder_scan_complete: boolean;
|
|
1733
|
-
/** Proven provider holder observation time. A warm cache hit uses only the original provider completion time from its companion metadata, never cache-read time. Null, malformed, future, or stale holder time fails in-play closed. */
|
|
1734
|
-
holder_snapshot_at: string | null;
|
|
1735
|
-
/** Truthful state of the directional read, which classifies each graded holder by its fresh synced legs across the game's markets and, when holder_scan_complete is true, by Polymarket's currentValue on both outcomes of this market. A wider_holder row can remain emitted with unavailable and terminal wider_holder_emitted; in_play fails closed instead and terminates as in_play_directional_unavailable. */
|
|
1736
|
-
directional_status: "available" | "unknown_ungrouped" | "unknown_stale" | "unavailable";
|
|
1737
|
-
one_way_holder_count: number | null;
|
|
1738
|
-
hedged_holder_count: number | null;
|
|
1739
|
-
one_way_graded_usd: number | null;
|
|
1740
|
-
directional_confidence: number | null;
|
|
1741
|
-
/** Default cohort ordering key: conviction_score * (1 + 0.25 * directional_confidence), or conviction_score when confidence is null. */
|
|
1742
|
-
directional_rank_score: number;
|
|
1743
|
-
/** 1-based rank within this observation cohort and snapshot. */
|
|
1744
|
-
rank: number;
|
|
1745
|
-
};
|
|
1746
|
-
/** Closed 25-value terminal-reason vocabulary for the accountable sports-edge 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 an attempted holder-provider failure; holder_deadline_unavailable is holder cache/provider absolute-deadline exhaustion. */
|
|
1747
|
-
export type SportsEdgeObservationTerminalReason = "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";
|
|
1748
|
-
/** One ranked pre-game sports market where graded sharp money is piled on one side, with required-status shadow category evidence from partial forward-observed Polymarket fills. */
|
|
1749
|
-
export type SportsEdgeSignal = {
|
|
1750
|
-
/** Polymarket condition id. */
|
|
1751
|
-
condition_id: string;
|
|
1752
|
-
/** UTC time at which the immutable signal snapshot was computed. Every row from one snapshot shares this value; it is not provider market creation time and is not rewritten at request time. */
|
|
1753
|
-
signal_created_at: string;
|
|
1754
|
-
/** Polymarket CLOB token id (ERC1155 asset id, decimal string) for the PILED outcome; null when unavailable. */
|
|
1755
|
-
token_id: string | null;
|
|
1756
|
-
/** Canonical sport bucket (e.g. Basketball, Tennis); null when the raw category has no canonical mapping. */
|
|
1757
|
-
category: string | null;
|
|
1758
|
-
/** Raw provider category as stored (e.g. NBA, EPL). */
|
|
1759
|
-
raw_category: string | null;
|
|
1760
|
-
title: string | null;
|
|
1761
|
-
event_slug: string | null;
|
|
1762
|
-
/** Kickoff (UTC). In the future at SNAPSHOT time and within the requested horizon; because the response is served from a shared snapshot cached up to the ~180s TTL, a served kickoff can be up to ~180s in the past relative to the response time. Not a live guarantee that the game has not yet started. */
|
|
1763
|
-
game_start_time: string | null;
|
|
1764
|
-
/** Nullable provider-backed piled-outcome display label. When provider group context is unavailable, it may remain a bare Yes/No/Over/Under; do not use it alone as participant identity. */
|
|
1765
|
-
piled_side: string | null;
|
|
1766
|
-
/** Provider binary-column selector: 0 selects outcome_yes/token_id_yes; 1 selects outcome_no/token_id_no. It does not identify home/away or a participant. Use piled_side together with title/event context for display. */
|
|
1767
|
-
piled_outcome_index: number;
|
|
1768
|
-
/** Piled-side dollar concentration backed_usd / (yes_usd + no_usd), in (0.5, 1] for a real pile; null when there is no sharp USD. */
|
|
1769
|
-
sharp_pct: number | null;
|
|
1770
|
-
/** Raw piled-side sharp-money USD. */
|
|
1771
|
-
backed_sharp_usd: number;
|
|
1772
|
-
/** S-grade graded holders on the piled side. */
|
|
1773
|
-
s_count: number;
|
|
1774
|
-
/** A-grade graded holders on the piled side. */
|
|
1775
|
-
a_count: number;
|
|
1776
|
-
/** B-grade graded holders on the piled side. */
|
|
1777
|
-
b_count: number;
|
|
1778
|
-
/** Piled-side graded holder count (s_count + a_count + b_count). */
|
|
1779
|
-
graded_holders: number;
|
|
1780
|
-
/** Best grade present on the piled side; null when none. */
|
|
1781
|
-
top_grade: "S" | "A" | "B" | null;
|
|
1782
|
-
/** Canonical sharp-money score (yes_usd - no_usd)/(yes_usd + no_usd) in [-1, 1] (piled-yes positive, piled-no negative); a lower-order ranking tiebreak (after directional_rank_score and conviction_score). */
|
|
1783
|
-
smart_score: number | null;
|
|
1784
|
-
/** Market volume (USD). */
|
|
1785
|
-
volume: number | null;
|
|
1786
|
-
/** Aggregate recent flow direction on the market; null when unavailable. */
|
|
1787
|
-
net_side: "BUY" | "SELL" | null;
|
|
1788
|
-
/** Grade-weighted pile score (5*s + 4*a + 3*b) * sharp_pct; the raw conviction input to the ranking (see directional_rank_score). */
|
|
1789
|
-
conviction_score: number;
|
|
1790
|
-
/** Piled-side graded holders read one-way: their fresh open legs across the signal game's markets (cross-market within the one game; moneyline+spread family only) all back the same team, or, when the market's holder scan was complete, Polymarket's currentValue shows no opposite leg on this market worth 10% of the backed leg and no fresh leg opposes it. Null when the directional read was not computed (no groupable game, no holder-level data on this ranking path, or the enrichment read failed) or classified nobody. */
|
|
1791
|
-
one_way_holder_count: number | null;
|
|
1792
|
-
/** Piled-side graded holders classified HEDGED across the game by fresh legs (they back two or more distinct teams). A wallet long both outcomes of this market is not one-way and not counted here. Null when the directional read was not computed or classified nobody. */
|
|
1793
|
-
hedged_holder_count: number | null;
|
|
1794
|
-
/** Piled-side graded USD held by one-way wallets (share-weighted allocation of backed_sharp_usd). Null when the directional read was not computed or classified nobody. */
|
|
1795
|
-
one_way_graded_usd: number | null;
|
|
1796
|
-
/** One-way fraction of the piled graded dollars, in [0, 1] -- the metric orthogonal to sharp_pct. Stale, unknown, hedged, and two-sided dollars dilute it toward zero (conservative). Null when the directional read was not computed or classified nobody. */
|
|
1797
|
-
directional_confidence: number | null;
|
|
1798
|
-
/** The ranking key, descending: conviction_score * (1 + 0.25 * directional_confidence). Equals conviction_score when the directional read is null/zero, so signals without the read rank exactly as before. */
|
|
1799
|
-
directional_rank_score: number;
|
|
1800
|
-
category_skill: SportsEdgeSignalCategorySkill;
|
|
1801
|
-
/** 1-based rank within the (min_grade-filtered) ranked result. */
|
|
1802
|
-
rank: number;
|
|
1803
|
-
};
|
|
1804
|
-
/** Shadow-only category evidence over the full uncapped piled-side S/A/B holder allocation. It never changes signal membership, ordering, routing, or sizing. */
|
|
1805
|
-
export type SportsEdgeSignalCategorySkill = {
|
|
1806
|
-
status: "live" | "insufficient" | "stale" | "unknown" | "degraded";
|
|
1807
|
-
model_version: string;
|
|
1808
|
-
taxonomy_version: string | null;
|
|
1809
|
-
platform: "polymarket";
|
|
1810
|
-
scope: "observed_goldsky_primary_taker_fill";
|
|
1811
|
-
source_coverage: "partial_whale_threshold_fills" | "graded_wallet_fills";
|
|
1812
|
-
observation_started_at: string;
|
|
1813
|
-
as_of: string;
|
|
1814
|
-
canonical_category: string | null;
|
|
1815
|
-
eligible_holders: number;
|
|
1816
|
-
covered_holders: number;
|
|
1817
|
-
backed_sharp_usd: number | null;
|
|
1818
|
-
covered_backed_usd: number | null;
|
|
1819
|
-
coverage_pct: number | null;
|
|
1820
|
-
weighted_edge_mean: number | null;
|
|
1821
|
-
weighted_holder_lower_mean: number | null;
|
|
1822
|
-
specialist_backed_usd: number | null;
|
|
1823
|
-
specialist_backed_usd_pct: number | null;
|
|
1824
|
-
largest_holder_backed_usd_pct: number | null;
|
|
1825
|
-
minimum_holder_event_count: number | null;
|
|
1826
|
-
};
|
|
1827
|
-
/** Independent sports-board supply plus stored-universe terminal accounting for one canonical sport. */
|
|
1828
|
-
export type SportsEdgeSportFunnelReport = {
|
|
1829
|
-
sport: "Basketball" | "Football" | "Baseball" | "Hockey" | "MMA" | "Boxing" | "Soccer" | "Cricket" | "Golf" | "Tennis" | "Esports" | "Racing" | "Table Tennis" | "Pickleball";
|
|
1830
|
-
/** Unique condition ids independently visible on the provider-first sports board. */
|
|
1831
|
-
board_input: number;
|
|
1832
|
-
/** Whether the always-applicable live-board source completed as available. False can mean a completed source failure (board_source_unavailable) or live-board work missing an internal configured-scope deadline or the outer fair-wave deadline (board_deadline_unavailable); inspect terminals to distinguish them. */
|
|
1833
|
-
board_live_available: boolean;
|
|
1834
|
-
/** Whether a provider-backed upcoming-board source is configured and applicable for this sport. False means not applicable, not provider failure. */
|
|
1835
|
-
board_upcoming_configured: boolean;
|
|
1836
|
-
/** Whether every configured upcoming-board scope completed as available. False with board_upcoming_configured=false means not applicable. When board_upcoming_configured is true and this flag is false, read board_upcoming_status for the cause (it reads unknown, i.e. no recorded cause, only on a snapshot cached before that field existed, which self-clears within one TTL): the board_source_unavailable and board_deadline_unavailable terminals are assigned only to already-started rows (the live half) and are structurally 0 for the upcoming source, so they never explain this flag. */
|
|
1837
|
-
board_upcoming_available: boolean;
|
|
1838
|
-
/** Why the upcoming-board source is (un)available. Board supply is one canonical-sport union: the bare category owns live truth and every configured composed league scope contributes upcoming rows; folded leagues without a configured board (currently NCAAB and CFL) are not in the upcoming union. available: every configured scope completed truthfully (a successful empty schedule still counts). capacity_limited: provider pagination or a configured upcoming cache published an intentionally bounded complete-event prefix; those rows are excluded from diagnostic-universe input and must not be treated as a complete upcoming universe. Cache-bound prefixes are limited to 3,000 rows or an exact 5,000,000-byte final envelope. source_unavailable: composition failed before a truthful union; resolved scope readers turn half failures into cold_unavailable, so fresh producers are whole-union identity reconciliation or a registry contract failure and carry zero rows. cold_unavailable: every scope completed but at least one reported its upcoming half unavailable because no servable entry was inside the stale-serve bound and the background warm did not land in time; it is not by itself proof of a provider outage. deadline_unavailable: an internal configured-scope deadline or the outer bounded fair wave expired. An internal deadline may retain healthy bare-category or sibling-scope rows; the outer wave records zero rows. These upcoming fields do not describe league live-membership availability. If the bare-category live scope fails, all live rows are dropped even when a league scope completed, because the bare category is the sole live-truth owner. not_configured: no upcoming scope applies to the sport. unknown: exactly one cause -- a snapshot cached before this field existed whose legacy flags recorded an unavailable-but-configured half without saying why. Every freshly computed snapshot reports a concrete status, and a legacy available or not-configured row is reconstructed exactly, so unknown self-clears within one TTL. board_upcoming_available is exactly board_upcoming_status == available. */
|
|
1839
|
-
board_upcoming_status: "unknown" | "not_configured" | "available" | "capacity_limited" | "source_unavailable" | "cold_unavailable" | "deadline_unavailable";
|
|
1840
|
-
/** Configured upcoming scopes that did not complete as available. Values are category, a provider league tag slug (nfl, cfb, nba, wnba, nhl, mls, valorant, league-of-legends, counter-strike-2, or dota-2), registry when the compiled scope/projection contract drifted, union when cross-scope identity reconciliation failed, or wave when the outer fair-wave deadline expired before scope-level evidence returned. Empty means no unavailable upcoming scope was identified; this includes healthy/not-configured rows and a legacy cached row. Observation league scopes are upcoming-only and perform no live-membership read. */
|
|
1841
|
-
board_upcoming_unavailable_scopes: ("category" | "nfl" | "cfb" | "nba" | "wnba" | "nhl" | "mls" | "valorant" | "league-of-legends" | "counter-strike-2" | "dota-2" | "registry" | "union" | "wave")[];
|
|
1842
|
-
/** Stored-universe rows plus provider-board rows missing from storage. */
|
|
1843
|
-
input: number;
|
|
1844
|
-
/** Sparse counts over the closed 25-value terminal vocabulary: 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, or internal_unclassified. primary_slate_candidate means exact admission by the funded route's raw shared signals query before provider/holder enrichment; recent-flow rows rejected by its event, bucket, or total caps remain eligible for wider_holder measurement. capacity_limited is intentional bounded provider-work admission, is fully accounted here, and does not itself set degraded=true. board_source_unavailable means a completed board source was unavailable; board_deadline_unavailable means live-board work missed either an internal configured-scope deadline or the outer fair-wave deadline; provider_unavailable means an attempted holder-provider read failed; holder_deadline_unavailable means holder cache/provider work missed the absolute request deadline; holder_computation_unavailable means post-holder provider or DB-backed price/metadata evaluation was unavailable. */
|
|
1845
|
-
terminals: Record<string, number>;
|
|
1846
|
-
/** Sum of every sparse terminal count. */
|
|
1847
|
-
terminal_total: number;
|
|
1848
|
-
/** True exactly when input equals terminal_total. */
|
|
1849
|
-
reconciled: boolean;
|
|
2067
|
+
mutable_until: string | null;
|
|
2068
|
+
/** Whether the source range has ended on the UTC calendar. Closing is not finality: a closed range is rolling until final_after. */
|
|
2069
|
+
period_closed: boolean;
|
|
2070
|
+
/** The instant a source read must start at or after to produce a final body: the range's UTC close plus 7,530 s, the whale-trade ingestion budget (p95 block lag gate plus the projection retry budget). */
|
|
2071
|
+
final_after: string;
|
|
2072
|
+
/** When this body's source read started, the clock finality is judged on. null for a body stored before that clock was recorded. */
|
|
2073
|
+
source_read_started_at: string | null;
|
|
2074
|
+
};
|
|
2075
|
+
export type SuspiciousTrade = {
|
|
2076
|
+
/** Prefixed ID (rf_...). */
|
|
2077
|
+
id: string;
|
|
2078
|
+
/** Stored score that met the live flag threshold. */
|
|
2079
|
+
suspicion_score: number;
|
|
2080
|
+
/** The live scorer persists one threshold class. */
|
|
2081
|
+
severity: "flag";
|
|
2082
|
+
trader: {
|
|
2083
|
+
id: string;
|
|
2084
|
+
address: string;
|
|
2085
|
+
username: string | null;
|
|
2086
|
+
};
|
|
2087
|
+
market: {
|
|
2088
|
+
id: string;
|
|
2089
|
+
condition_id: string;
|
|
2090
|
+
/** Canonical market question when available. */
|
|
2091
|
+
title: string | null;
|
|
2092
|
+
};
|
|
2093
|
+
scores: {
|
|
2094
|
+
/** Null because the live scorer does not record this component. */
|
|
2095
|
+
timing: number | null;
|
|
2096
|
+
/** Null because the live scorer does not record this component. */
|
|
2097
|
+
edge: number | null;
|
|
2098
|
+
/** Numeric evidence.size when recorded; otherwise null. */
|
|
2099
|
+
size: number | null;
|
|
2100
|
+
/** Numeric evidence.fresh when recorded; otherwise null. */
|
|
2101
|
+
fresh_wallet: number | null;
|
|
2102
|
+
};
|
|
2103
|
+
/** Stored whale_alerts.suspicion_signals JSON from the scorer. */
|
|
2104
|
+
evidence: unknown;
|
|
2105
|
+
/** Stored trade timestamp. */
|
|
2106
|
+
created_at: string;
|
|
1850
2107
|
};
|
|
1851
2108
|
export type Trader = {
|
|
1852
2109
|
/** Prefixed ID (trd_...). */
|
|
@@ -1995,12 +2252,44 @@ export type TraderExportJob = {
|
|
|
1995
2252
|
object: "trader_export_job";
|
|
1996
2253
|
data: {
|
|
1997
2254
|
job_id: number;
|
|
1998
|
-
|
|
2255
|
+
/** queued: accepted, not started. running: the worker is streaming rows. reconcile_required: the upload finished but the storage completion answer was lost; the hourly reconciler reads the object back and moves the job to ready or failed, and expires_at bounds the wait. ready: downloadable until expires_at. failed: terminal; error says why; submit a new export. expired: the retention window passed; the file is retired, the download route answers 410, submit a new export. A job that has not reached ready by expires_at reads failed with error 'export expired before completion'. failed and expired rows stay readable for 48 hours, then the job answers 404. */
|
|
2256
|
+
status: "queued" | "running" | "ready" | "failed" | "reconcile_required" | "expired";
|
|
1999
2257
|
format: "json" | "ndjson" | "csv";
|
|
2000
2258
|
total_trades: number | null;
|
|
2001
2259
|
processed_trades: number | null;
|
|
2002
2260
|
file_size: number | null;
|
|
2003
2261
|
error: string | null;
|
|
2262
|
+
/** True when status never changes again (ready, failed, expired). Stop polling. */
|
|
2263
|
+
terminal: boolean;
|
|
2264
|
+
/** What to do next: poll the status route after poll_after_s, follow the download route, or submit a new export. Published beside status so a status value added later does not strand a client. */
|
|
2265
|
+
next_action: "poll" | "download" | "resubmit";
|
|
2266
|
+
/** Seconds to wait before polling again. Absent when terminal. 5 while queued or running; 300 while reconcile_required, the cadence that state can change at. */
|
|
2267
|
+
poll_after_s?: number;
|
|
2268
|
+
created_at: string;
|
|
2269
|
+
/** When the worker last claimed the job; null while queued. */
|
|
2270
|
+
started_at: string | null;
|
|
2271
|
+
/** When the file became downloadable. null before ready, and on jobs finalized before this field existed. */
|
|
2272
|
+
ready_at: string | null;
|
|
2273
|
+
failed_at: string | null;
|
|
2274
|
+
/** The retention window: 24 hours from submit. A ready file downloads until this instant; a job that has not reached ready by it fails. A reused job (200 on submit) keeps its original window. */
|
|
2275
|
+
expires_at: string;
|
|
2276
|
+
/** When the job became expired; null until then. */
|
|
2277
|
+
expired_at: string | null;
|
|
2278
|
+
/** What the file is a snapshot of: the trader's served-data clock (the latest position refresh, else the last completed sync) when the file was written; the same value as export_metadata.data_as_of inside the file. null until the file is written, or when the trader had neither. Read this, not ready_at, to decide whether a reused job is fresh enough; submit with fresh=true for a newer snapshot. */
|
|
2279
|
+
data_as_of: string | null;
|
|
2280
|
+
/** Worker claims so far. */
|
|
2281
|
+
attempt: number;
|
|
2282
|
+
/** The job fails when attempt reaches this. */
|
|
2283
|
+
max_attempts: number;
|
|
2284
|
+
/** Present only while status is ready: the stored object's identity, so a client can check the download it receives. */
|
|
2285
|
+
artifact?: {
|
|
2286
|
+
/** The storage ETag of the object. */
|
|
2287
|
+
etag: string | null;
|
|
2288
|
+
/** Bytes on the wire (gzip); file_size is the decompressed size. */
|
|
2289
|
+
compressed_size_bytes: number | null;
|
|
2290
|
+
content_type: "application/json" | "application/x-ndjson" | "text/csv";
|
|
2291
|
+
content_encoding: "gzip";
|
|
2292
|
+
};
|
|
2004
2293
|
};
|
|
2005
2294
|
meta: ResponseMeta;
|
|
2006
2295
|
};
|
|
@@ -2013,13 +2302,37 @@ export type TraderExportSnapshot = {
|
|
|
2013
2302
|
counts: ExportCounts;
|
|
2014
2303
|
large_export_policy: LargeExportPolicy;
|
|
2015
2304
|
};
|
|
2305
|
+
/** A trader's daily P&L object. `id` is always present. The five sections -- `entries`, `stats`, `monthly`, `year_totals`, `drawdown` -- are present unless the request's `sections` parameter excluded them, so a request that sends no `sections` always carries all five. An excluded section is absent from the object, never null and never an empty array. */
|
|
2016
2306
|
export type TraderPnl = {
|
|
2017
2307
|
/** Prefixed trader ID (`trd_...`). */
|
|
2018
2308
|
id: string;
|
|
2309
|
+
/** Representation parameters applied to this body. Present only when the request sent `from`, `to` or `sections`; omitted otherwise, which is what keeps a no-parameter response identical to the one this route served before the parameters existed. */
|
|
2310
|
+
view?: {
|
|
2311
|
+
/** Inclusive UTC lower bound applied to the daily series; null when the request left the series unbounded below. */
|
|
2312
|
+
from: string | null;
|
|
2313
|
+
/** Inclusive UTC upper bound applied to the daily series; null when the request left the series unbounded above. */
|
|
2314
|
+
to: string | null;
|
|
2315
|
+
/** Sections this body carries, in the order the object publishes them, whatever order the query listed. */
|
|
2316
|
+
sections: ("entries" | "stats" | "monthly" | "year_totals" | "drawdown")[];
|
|
2317
|
+
/** Points in the full stored daily series, before the window. Compare with entries_in_window to tell a clipped chart from a wallet that really has that many days. */
|
|
2318
|
+
entries_total: number;
|
|
2319
|
+
/** Points of the daily series inside the window. Equal to entries_total when no bound narrowed it, and reported whether or not entries was among the requested sections. */
|
|
2320
|
+
entries_in_window: number;
|
|
2321
|
+
/** The last daily point strictly before `from`: the cumulative baseline the window was cut away from. null when the request set no lower bound, or when the window starts at or before the first stored point and the slice already begins at the start of the history. Cumulative values in `entries` and `drawdown` are never rebased to the window, so this is the figure to subtract for a window-relative change. */
|
|
2322
|
+
anchor: {
|
|
2323
|
+
date: string;
|
|
2324
|
+
/** Cumulative profit carried into the window; null when the stored point has none, the same nullability entries[].cumulative_profit has. */
|
|
2325
|
+
cumulative_profit: number | null;
|
|
2326
|
+
/** Cumulative total P&L carried into the window; null on the same terms. */
|
|
2327
|
+
total_pnl: number | null;
|
|
2328
|
+
/** Underwater value at the anchor date; null when that date has no drawdown point, which happens exactly when its cumulative_profit is null. The running peak behind the window is cumulative_profit minus drawdown (drawdown is zero or negative). */
|
|
2329
|
+
drawdown: number | null;
|
|
2330
|
+
} | null;
|
|
2331
|
+
};
|
|
2019
2332
|
/** RFC3339 served-freshness clock for this trader's PnL history = traders.daily_pnl_recomputed_at, when the daily_pnl read model this response is served from was last rebuilt; null when it has never been recomputed for the trader. Always present, so read it as a value that can be null rather than a key that can be missing. */
|
|
2020
2333
|
freshness_at: string | null;
|
|
2021
|
-
/** Daily cumulative-P&L series (oldest-first). */
|
|
2022
|
-
entries
|
|
2334
|
+
/** Daily cumulative-P&L series (oldest-first). Present unless the request's `sections` excluded it, and clipped to `from`/`to` when either is set. cumulative_profit and total_pnl stay cumulative from the start of the stored history, so a clipped slice keeps the same economic meaning; view.anchor carries the point before the window. */
|
|
2335
|
+
entries?: {
|
|
2023
2336
|
date: string;
|
|
2024
2337
|
markets_traded?: number;
|
|
2025
2338
|
total_volume?: number;
|
|
@@ -2027,7 +2340,8 @@ export type TraderPnl = {
|
|
|
2027
2340
|
total_pnl?: number;
|
|
2028
2341
|
daily_change: number;
|
|
2029
2342
|
}[];
|
|
2030
|
-
stats
|
|
2343
|
+
/** Pre-derived period stats. Present unless the request's `sections` excluded it. Always the published all/90d/30d/7d windows over the full stored history; `from`/`to` never recompute them over the request's range. */
|
|
2344
|
+
stats?: {
|
|
2031
2345
|
all: {
|
|
2032
2346
|
current: number;
|
|
2033
2347
|
change: number;
|
|
@@ -2081,20 +2395,20 @@ export type TraderPnl = {
|
|
|
2081
2395
|
rebase_anchor: number;
|
|
2082
2396
|
};
|
|
2083
2397
|
};
|
|
2084
|
-
/** Per-month P&L aggregation. */
|
|
2085
|
-
monthly
|
|
2398
|
+
/** Per-month P&L aggregation. Present unless the request's `sections` excluded it. Whole months over the full stored history, never clipped to `from`/`to`, so a month is never a partial month. */
|
|
2399
|
+
monthly?: {
|
|
2086
2400
|
year: number;
|
|
2087
2401
|
month: number;
|
|
2088
2402
|
pnl: number;
|
|
2089
2403
|
markets_traded: number;
|
|
2090
2404
|
}[];
|
|
2091
|
-
/** Per-year P&L totals (ascending by year). */
|
|
2092
|
-
year_totals
|
|
2405
|
+
/** Per-year P&L totals (ascending by year). Present unless the request's `sections` excluded it. Whole years over the full stored history, never clipped to `from`/`to`. */
|
|
2406
|
+
year_totals?: {
|
|
2093
2407
|
year: number;
|
|
2094
2408
|
pnl: number;
|
|
2095
2409
|
}[];
|
|
2096
|
-
/** Underwater (drawdown) series. */
|
|
2097
|
-
drawdown
|
|
2410
|
+
/** Underwater (drawdown) series. Present unless the request's `sections` excluded it, and clipped to `from`/`to` when either is set. The running peak behind each point is the full-history peak, so a clipped slice is not rebased; view.anchor.drawdown carries the value at the point before the window. */
|
|
2411
|
+
drawdown?: {
|
|
2098
2412
|
date: string;
|
|
2099
2413
|
cumulative_profit: number;
|
|
2100
2414
|
drawdown: number;
|
|
@@ -2277,7 +2591,7 @@ export type WebhookEndpoint = {
|
|
|
2277
2591
|
signing_secret?: string;
|
|
2278
2592
|
verification?: WebhookVerification;
|
|
2279
2593
|
};
|
|
2280
|
-
/** Self-describing entry in the webhook event catalog: the event type a subscriber lists in event_types, when it fires, the data payload shape, and whether it currently fires (active) or is reserved (dormant, subscribable but not yet delivered). Pro-only event types (whale_trades_inserted, wallet_grade_changed, insider_radar_flag_raised, smart_money_flow_detected) only deliver to API keys on an active Pro subscription. */
|
|
2594
|
+
/** Self-describing entry in the webhook event catalog: the event type a subscriber lists in event_types, when it fires, the data payload shape, and whether it currently fires (active) or is reserved (dormant, subscribable but not yet delivered). Pro-only event types (whale_trades_inserted, wallet_grade_changed, suspicious_trade_flagged, insider_radar_flag_raised, smart_money_flow_detected) only deliver to API keys on an active Pro subscription. suspicious_trade_flagged and insider_radar_flag_raised are two spellings of one event: either one subscribes, and an endpoint receives deliveries under the spelling it registered. */
|
|
2281
2595
|
export type WebhookEventDescriptor = {
|
|
2282
2596
|
id: WebhookEventType;
|
|
2283
2597
|
/** One-line description of when the event fires. */
|
|
@@ -2287,7 +2601,7 @@ export type WebhookEventDescriptor = {
|
|
|
2287
2601
|
/** active: the event has a firing producer callsite. dormant: advertised and subscribable, but does not yet enqueue any delivery. */
|
|
2288
2602
|
status: "active" | "dormant";
|
|
2289
2603
|
};
|
|
2290
|
-
export type WebhookEventType = "whale_trades_inserted" | "live_sports_updated" | "whale_trader_synced" | "large_positions_updated" | "wallet_grade_changed" | "insider_radar_flag_raised" | "smart_money_flow_detected";
|
|
2604
|
+
export type WebhookEventType = "whale_trades_inserted" | "live_sports_updated" | "whale_trader_synced" | "large_positions_updated" | "wallet_grade_changed" | "suspicious_trade_flagged" | "insider_radar_flag_raised" | "smart_money_flow_detected";
|
|
2291
2605
|
export type WebhookRetryPolicy = {
|
|
2292
2606
|
max_attempts: 8;
|
|
2293
2607
|
terminal_status: "dead_letter";
|
|
@@ -2308,67 +2622,6 @@ export type WebhookVerification = {
|
|
|
2308
2622
|
token: string;
|
|
2309
2623
|
expires_at: string;
|
|
2310
2624
|
};
|
|
2311
|
-
export type WhaleTrade = {
|
|
2312
|
-
/** Prefixed ID (wt_...). */
|
|
2313
|
-
id: string;
|
|
2314
|
-
traded_at: string;
|
|
2315
|
-
size_usd: number;
|
|
2316
|
-
side: "BUY" | "SELL";
|
|
2317
|
-
/** Traded outcome label (e.g. "Yes"/"No"/team name), resolved provider-first from the trade's outcome_index against market_canonical (index 0 -> yes, 1 -> no). Distinct axis from side (BUY/SELL): side is the trade direction, outcome is which leg was traded. null for multi-outcome (outcome_index >= 2) or unsynced markets, and for a Polymarket trade recorded before 2026-04-02T00:00:00Z, whose stored outcome_index is not trusted (a defaulted 0 for about a third of those rows; the side is unknown, not defaulted). */
|
|
2318
|
-
outcome: string | null;
|
|
2319
|
-
/** The Polymarket CLOB token id (ERC1155 asset id, decimal string) for the traded outcome; null when unavailable (e.g. unsynced markets) and for a Polymarket trade recorded before 2026-04-02T00:00:00Z, where the traded side is unknown. */
|
|
2320
|
-
token_id: string | null;
|
|
2321
|
-
price: number;
|
|
2322
|
-
/** Current 0.0–1.0 normalized signal score, computed at request time from the trader's win rate today and the trade's age now. On a historical row it is today's view of the trade, not what a reader saw then; use recorded_signal_score for that. */
|
|
2323
|
-
signal_score: number;
|
|
2324
|
-
/** 0.0–1.0 signal score written once when the trade row is inserted, from the trader's statistics at that moment. Populated from 2026-08-03T11:59Z; older rows return null and are never backfilled, because a backfill could only read today's statistics. If a trade is added later, its time-sensitive recorded score reflects that delay. */
|
|
2325
|
-
recorded_signal_score: number | null;
|
|
2326
|
-
/** Persisted live suspicion score from the scorer. Null when the row has no persisted score. */
|
|
2327
|
-
suspicion_score: number | null;
|
|
2328
|
-
/** Persisted scorer track. Null when a legacy row has no stored track label. */
|
|
2329
|
-
suspicion_track: "whale" | "fresh_conviction" | "sliced_position" | null;
|
|
2330
|
-
/** This fill's size relative to its market: size_usd divided by the market's volume at the moment the trade was inserted. A $10,000 fill is 0.00005 of a $200M market and 0.125 of an $80,000 one, which size_usd alone cannot distinguish. Absent when the market carried no volume figure and on rows written before 2026-09-16; never 0 as a stand-in. Not capped at 1: a fill larger than the stored trailing volume is real, and that is the most significant case. */
|
|
2331
|
-
market_volume_share?: number;
|
|
2332
|
-
trader: {
|
|
2333
|
-
id: string;
|
|
2334
|
-
address: string;
|
|
2335
|
-
username?: string;
|
|
2336
|
-
/** The trader's grade today, on every row however old. For what the grade was when the trade happened, read grade_at_trade. */
|
|
2337
|
-
grade?: string;
|
|
2338
|
-
/** The grade the trader held when the trade happened, from recorded grade history (recorded from 2026-09-19T23:00Z). Null unless grade_at_trade_status is graded. Never today's grade projected backward. */
|
|
2339
|
-
grade_at_trade: "S" | "A" | "B" | "C" | "D" | "F" | null;
|
|
2340
|
-
/** graded: grade_at_trade holds the recorded grade. ungraded: the trader was recorded without a grade at that moment. unknown: no record covers the moment, which is every trade before 2026-09-19T23:00Z and a trade that fell between a grade change and its confirmation. unknown never means ungraded. */
|
|
2341
|
-
grade_at_trade_status: "graded" | "ungraded" | "unknown";
|
|
2342
|
-
};
|
|
2343
|
-
market: {
|
|
2344
|
-
id: string;
|
|
2345
|
-
condition_id: string;
|
|
2346
|
-
title: string;
|
|
2347
|
-
slug?: string;
|
|
2348
|
-
/** Provider-backed market_canonical category. */
|
|
2349
|
-
category?: string;
|
|
2350
|
-
};
|
|
2351
|
-
};
|
|
2352
|
-
export type WhaleTradeDetail = WhaleTrade & {
|
|
2353
|
-
counterparty_analysis: CounterpartyAnalysis;
|
|
2354
|
-
};
|
|
2355
|
-
export type WhaleTradeHistoryMeta = {
|
|
2356
|
-
/** Unique request ID (req_ prefix). The same value as the X-Request-Id response header, the request's usage accounting row and its log lines. */
|
|
2357
|
-
request_id: string;
|
|
2358
|
-
cached: boolean;
|
|
2359
|
-
/** Cache age in seconds; the key is absent when the response was not cached. */
|
|
2360
|
-
cache_age_s?: number;
|
|
2361
|
-
source: {
|
|
2362
|
-
kind: "local_replay";
|
|
2363
|
-
table: "whale_alerts";
|
|
2364
|
-
provider_fetch_at_request_time: false;
|
|
2365
|
-
};
|
|
2366
|
-
completeness: {
|
|
2367
|
-
status: "best_effort";
|
|
2368
|
-
/** Explains that local replay completeness can vary by market and time window. */
|
|
2369
|
-
reason: string;
|
|
2370
|
-
};
|
|
2371
|
-
};
|
|
2372
2625
|
/**
|
|
2373
2626
|
* The `data` payload each operation answers with: what
|
|
2374
2627
|
* `ApiClient.call<T>` resolves to, and the default `T` of every
|
|
@@ -2407,6 +2660,7 @@ export interface OperationData {
|
|
|
2407
2660
|
getApiDiscovery: ApiDiscovery;
|
|
2408
2661
|
getDailyReportSnapshot: ReportSnapshot;
|
|
2409
2662
|
getEventReplaySince: EventReplayEvent[];
|
|
2663
|
+
getGame: Game;
|
|
2410
2664
|
getHealth: {
|
|
2411
2665
|
status?: "ok" | "degraded" | "down" | "maintenance";
|
|
2412
2666
|
db?: boolean;
|
|
@@ -2429,7 +2683,8 @@ export interface OperationData {
|
|
|
2429
2683
|
};
|
|
2430
2684
|
};
|
|
2431
2685
|
};
|
|
2432
|
-
getInsiderRadarFlag:
|
|
2686
|
+
getInsiderRadarFlag: SuspiciousTrade;
|
|
2687
|
+
getLargeTrade: LargeTradeDetail;
|
|
2433
2688
|
getMarketCandles: MarketCandles;
|
|
2434
2689
|
getMarketContextMarkdown: string;
|
|
2435
2690
|
getMarketHolders: MarketHolder[];
|
|
@@ -2444,6 +2699,7 @@ export interface OperationData {
|
|
|
2444
2699
|
getPositionTimelineById: PositionTimelineEvent[];
|
|
2445
2700
|
getReports: ReportSnapshot;
|
|
2446
2701
|
getStream: string;
|
|
2702
|
+
getSuspiciousTrade: SuspiciousTrade;
|
|
2447
2703
|
getTrader: Trader;
|
|
2448
2704
|
getTraderCategoryRecords: TraderCategoryRecords;
|
|
2449
2705
|
getTraderContext: TraderContext;
|
|
@@ -2451,12 +2707,44 @@ export interface OperationData {
|
|
|
2451
2707
|
getTraderExportSnapshot: TraderExportSnapshot;
|
|
2452
2708
|
getTraderExportStatus: {
|
|
2453
2709
|
job_id: number;
|
|
2454
|
-
|
|
2710
|
+
/** queued: accepted, not started. running: the worker is streaming rows. reconcile_required: the upload finished but the storage completion answer was lost; the hourly reconciler reads the object back and moves the job to ready or failed, and expires_at bounds the wait. ready: downloadable until expires_at. failed: terminal; error says why; submit a new export. expired: the retention window passed; the file is retired, the download route answers 410, submit a new export. A job that has not reached ready by expires_at reads failed with error 'export expired before completion'. failed and expired rows stay readable for 48 hours, then the job answers 404. */
|
|
2711
|
+
status: "queued" | "running" | "ready" | "failed" | "reconcile_required" | "expired";
|
|
2455
2712
|
format: "json" | "ndjson" | "csv";
|
|
2456
2713
|
total_trades: number | null;
|
|
2457
2714
|
processed_trades: number | null;
|
|
2458
2715
|
file_size: number | null;
|
|
2459
2716
|
error: string | null;
|
|
2717
|
+
/** True when status never changes again (ready, failed, expired). Stop polling. */
|
|
2718
|
+
terminal: boolean;
|
|
2719
|
+
/** What to do next: poll the status route after poll_after_s, follow the download route, or submit a new export. Published beside status so a status value added later does not strand a client. */
|
|
2720
|
+
next_action: "poll" | "download" | "resubmit";
|
|
2721
|
+
/** Seconds to wait before polling again. Absent when terminal. 5 while queued or running; 300 while reconcile_required, the cadence that state can change at. */
|
|
2722
|
+
poll_after_s?: number;
|
|
2723
|
+
created_at: string;
|
|
2724
|
+
/** When the worker last claimed the job; null while queued. */
|
|
2725
|
+
started_at: string | null;
|
|
2726
|
+
/** When the file became downloadable. null before ready, and on jobs finalized before this field existed. */
|
|
2727
|
+
ready_at: string | null;
|
|
2728
|
+
failed_at: string | null;
|
|
2729
|
+
/** The retention window: 24 hours from submit. A ready file downloads until this instant; a job that has not reached ready by it fails. A reused job (200 on submit) keeps its original window. */
|
|
2730
|
+
expires_at: string;
|
|
2731
|
+
/** When the job became expired; null until then. */
|
|
2732
|
+
expired_at: string | null;
|
|
2733
|
+
/** What the file is a snapshot of: the trader's served-data clock (the latest position refresh, else the last completed sync) when the file was written; the same value as export_metadata.data_as_of inside the file. null until the file is written, or when the trader had neither. Read this, not ready_at, to decide whether a reused job is fresh enough; submit with fresh=true for a newer snapshot. */
|
|
2734
|
+
data_as_of: string | null;
|
|
2735
|
+
/** Worker claims so far. */
|
|
2736
|
+
attempt: number;
|
|
2737
|
+
/** The job fails when attempt reaches this. */
|
|
2738
|
+
max_attempts: number;
|
|
2739
|
+
/** Present only while status is ready: the stored object's identity, so a client can check the download it receives. */
|
|
2740
|
+
artifact?: {
|
|
2741
|
+
/** The storage ETag of the object. */
|
|
2742
|
+
etag: string | null;
|
|
2743
|
+
/** Bytes on the wire (gzip); file_size is the decompressed size. */
|
|
2744
|
+
compressed_size_bytes: number | null;
|
|
2745
|
+
content_type: "application/json" | "application/x-ndjson" | "text/csv";
|
|
2746
|
+
content_encoding: "gzip";
|
|
2747
|
+
};
|
|
2460
2748
|
};
|
|
2461
2749
|
getTraderPnl: TraderPnl;
|
|
2462
2750
|
getUsage: {
|
|
@@ -2496,23 +2784,31 @@ export interface OperationData {
|
|
|
2496
2784
|
};
|
|
2497
2785
|
getWebhook: WebhookEndpoint;
|
|
2498
2786
|
getWeeklyReportSnapshot: ReportSnapshot;
|
|
2499
|
-
getWhaleTrade:
|
|
2500
|
-
|
|
2787
|
+
getWhaleTrade: LargeTradeDetail;
|
|
2788
|
+
listGames: Game[];
|
|
2789
|
+
listInsiderRadar: SuspiciousTrade[];
|
|
2501
2790
|
listLargePositions: LargePosition[];
|
|
2791
|
+
listLargeTradeCounterpartyExecutions: CounterpartyAnalysis;
|
|
2792
|
+
listLargeTradeCounterpartyMakers: CounterpartyMakerPage;
|
|
2793
|
+
listLargeTradeHistory: LargeTrade[];
|
|
2794
|
+
listLargeTrades: LargeTrade[];
|
|
2502
2795
|
listLeaderboard: LeaderboardEntry[];
|
|
2503
2796
|
listPositions: Position[];
|
|
2797
|
+
listPreGameSideObservations: PreGameSideObservation[];
|
|
2798
|
+
listPreGameSides: PreGameSide[];
|
|
2504
2799
|
listSharpMoneyFlows: SmartMoneyFlowMarket[];
|
|
2505
2800
|
listSmartMoneyFlows: SmartMoneyFlowMarket[];
|
|
2506
|
-
listSportsEdgeObservations:
|
|
2507
|
-
listSportsEdgeSignals:
|
|
2801
|
+
listSportsEdgeObservations: PreGameSideObservation[];
|
|
2802
|
+
listSportsEdgeSignals: PreGameSide[];
|
|
2803
|
+
listSuspiciousTrades: SuspiciousTrade[];
|
|
2508
2804
|
listTrendingWallets: TrendingWallet[];
|
|
2509
2805
|
listWebhookDeliveries: WebhookDelivery[];
|
|
2510
2806
|
listWebhookEvents: WebhookEventDescriptor[];
|
|
2511
2807
|
listWebhooks: WebhookEndpoint[];
|
|
2512
2808
|
listWhaleTradeCounterpartyExecutions: CounterpartyAnalysis;
|
|
2513
2809
|
listWhaleTradeCounterpartyMakers: CounterpartyMakerPage;
|
|
2514
|
-
listWhaleTradeHistory:
|
|
2515
|
-
listWhaleTrades:
|
|
2810
|
+
listWhaleTradeHistory: LargeTrade[];
|
|
2811
|
+
listWhaleTrades: LargeTrade[];
|
|
2516
2812
|
prepareWebhookSecret: WebhookEndpoint;
|
|
2517
2813
|
redeliverWebhookDelivery: WebhookDelivery;
|
|
2518
2814
|
registerAgent: AgentRegistration;
|
|
@@ -2522,12 +2818,44 @@ export interface OperationData {
|
|
|
2522
2818
|
searchMarkets: MarketSearchResult[];
|
|
2523
2819
|
submitTraderExport: {
|
|
2524
2820
|
job_id: number;
|
|
2525
|
-
|
|
2821
|
+
/** queued: accepted, not started. running: the worker is streaming rows. reconcile_required: the upload finished but the storage completion answer was lost; the hourly reconciler reads the object back and moves the job to ready or failed, and expires_at bounds the wait. ready: downloadable until expires_at. failed: terminal; error says why; submit a new export. expired: the retention window passed; the file is retired, the download route answers 410, submit a new export. A job that has not reached ready by expires_at reads failed with error 'export expired before completion'. failed and expired rows stay readable for 48 hours, then the job answers 404. */
|
|
2822
|
+
status: "queued" | "running" | "ready" | "failed" | "reconcile_required" | "expired";
|
|
2526
2823
|
format: "json" | "ndjson" | "csv";
|
|
2527
2824
|
total_trades: number | null;
|
|
2528
2825
|
processed_trades: number | null;
|
|
2529
2826
|
file_size: number | null;
|
|
2530
2827
|
error: string | null;
|
|
2828
|
+
/** True when status never changes again (ready, failed, expired). Stop polling. */
|
|
2829
|
+
terminal: boolean;
|
|
2830
|
+
/** What to do next: poll the status route after poll_after_s, follow the download route, or submit a new export. Published beside status so a status value added later does not strand a client. */
|
|
2831
|
+
next_action: "poll" | "download" | "resubmit";
|
|
2832
|
+
/** Seconds to wait before polling again. Absent when terminal. 5 while queued or running; 300 while reconcile_required, the cadence that state can change at. */
|
|
2833
|
+
poll_after_s?: number;
|
|
2834
|
+
created_at: string;
|
|
2835
|
+
/** When the worker last claimed the job; null while queued. */
|
|
2836
|
+
started_at: string | null;
|
|
2837
|
+
/** When the file became downloadable. null before ready, and on jobs finalized before this field existed. */
|
|
2838
|
+
ready_at: string | null;
|
|
2839
|
+
failed_at: string | null;
|
|
2840
|
+
/** The retention window: 24 hours from submit. A ready file downloads until this instant; a job that has not reached ready by it fails. A reused job (200 on submit) keeps its original window. */
|
|
2841
|
+
expires_at: string;
|
|
2842
|
+
/** When the job became expired; null until then. */
|
|
2843
|
+
expired_at: string | null;
|
|
2844
|
+
/** What the file is a snapshot of: the trader's served-data clock (the latest position refresh, else the last completed sync) when the file was written; the same value as export_metadata.data_as_of inside the file. null until the file is written, or when the trader had neither. Read this, not ready_at, to decide whether a reused job is fresh enough; submit with fresh=true for a newer snapshot. */
|
|
2845
|
+
data_as_of: string | null;
|
|
2846
|
+
/** Worker claims so far. */
|
|
2847
|
+
attempt: number;
|
|
2848
|
+
/** The job fails when attempt reaches this. */
|
|
2849
|
+
max_attempts: number;
|
|
2850
|
+
/** Present only while status is ready: the stored object's identity, so a client can check the download it receives. */
|
|
2851
|
+
artifact?: {
|
|
2852
|
+
/** The storage ETag of the object. */
|
|
2853
|
+
etag: string | null;
|
|
2854
|
+
/** Bytes on the wire (gzip); file_size is the decompressed size. */
|
|
2855
|
+
compressed_size_bytes: number | null;
|
|
2856
|
+
content_type: "application/json" | "application/x-ndjson" | "text/csv";
|
|
2857
|
+
content_encoding: "gzip";
|
|
2858
|
+
};
|
|
2531
2859
|
};
|
|
2532
2860
|
updateWebhook: WebhookEndpoint;
|
|
2533
2861
|
verifyWebhook: WebhookEndpoint;
|
|
@@ -2578,8 +2906,10 @@ export interface OperationQuery {
|
|
|
2578
2906
|
/** 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. */
|
|
2579
2907
|
expand?: "trade"[];
|
|
2580
2908
|
};
|
|
2909
|
+
getGame: Record<string, never>;
|
|
2581
2910
|
getHealth: Record<string, never>;
|
|
2582
2911
|
getInsiderRadarFlag: Record<string, never>;
|
|
2912
|
+
getLargeTrade: Record<string, never>;
|
|
2583
2913
|
getMarketCandles: {
|
|
2584
2914
|
/** Bucketing granularity. 1d aggregates by UTC calendar day, 1w by ISO week (Monday 00:00 UTC start). Defaults to 1d. */
|
|
2585
2915
|
resolution?: "1d" | "1w";
|
|
@@ -2651,6 +2981,7 @@ export interface OperationQuery {
|
|
|
2651
2981
|
/** Optional per-connection subscribe-time filter. A frame passes only when it carries a grade field whose grade is better-or-equal to this minimum (S is best). Frames that carry no grade field (every frame except wallet_grade_changed) are EXCLUDED while this is set. An invalid grade returns HTTP 400. Combines with event and condition_id as a logical AND; an absent param adds no constraint. */
|
|
2652
2982
|
min_grade?: "S" | "A" | "B" | "C" | "D" | "F";
|
|
2653
2983
|
};
|
|
2984
|
+
getSuspiciousTrade: Record<string, never>;
|
|
2654
2985
|
getTrader: {
|
|
2655
2986
|
/** Backward-compatible alias for expand. Repeatable: strategy, categories, quant_metrics, trust. */
|
|
2656
2987
|
"expand[]"?: ("strategy" | "categories" | "quant_metrics" | "trust")[];
|
|
@@ -2668,7 +2999,16 @@ export interface OperationQuery {
|
|
|
2668
2999
|
/** Export job id returned by the submit route. */
|
|
2669
3000
|
job_id: number;
|
|
2670
3001
|
};
|
|
2671
|
-
getTraderPnl:
|
|
3002
|
+
getTraderPnl: {
|
|
3003
|
+
/** 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. */
|
|
3004
|
+
from?: string;
|
|
3005
|
+
/** Inclusive UTC calendar-date upper 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 returns 400 bad_request with error.param to. Does not change stats, monthly or year_totals. */
|
|
3006
|
+
to?: string;
|
|
3007
|
+
/** Which sections of the object to return. Repeatable and comma-separated: entries, stats, monthly, year_totals, drawdown. Omit it, or send it empty, for all five. A section left out is absent from data. An unrecognized name returns 400 bad_request with error.param sections rather than being ignored, so a typo cannot look like a successful request that silently dropped the section you came for. */
|
|
3008
|
+
sections?: ("entries" | "stats" | "monthly" | "year_totals" | "drawdown")[];
|
|
3009
|
+
/** Backward-compatible bracket alias for sections, for clients that emit array keys. Repeatable and comma-separated: entries, stats, monthly, year_totals, drawdown. */
|
|
3010
|
+
"sections[]"?: ("entries" | "stats" | "monthly" | "year_totals" | "drawdown")[];
|
|
3011
|
+
};
|
|
2672
3012
|
getUsage: Record<string, never>;
|
|
2673
3013
|
getWebhook: Record<string, never>;
|
|
2674
3014
|
getWeeklyReportSnapshot: {
|
|
@@ -2680,6 +3020,22 @@ export interface OperationQuery {
|
|
|
2680
3020
|
week?: string;
|
|
2681
3021
|
};
|
|
2682
3022
|
getWhaleTrade: Record<string, never>;
|
|
3023
|
+
listGames: {
|
|
3024
|
+
/** Canonical sport bucket, case-insensitive, with - and _ read as a space: table-tennis and Table Tennis are the same bucket. Omit for every covered sport. A bucket this deployment does not serve returns an empty page. */
|
|
3025
|
+
sport?: string;
|
|
3026
|
+
/** League tag, case-insensitive, as coverage.leagues spells it: nfl, epl, cs2. Omit for every league inside the selected sports. */
|
|
3027
|
+
league?: string;
|
|
3028
|
+
/** Keep only games in this state. A value outside the enum returns an empty page. */
|
|
3029
|
+
status?: "scheduled" | "live" | "paused" | "ended" | "postponed" | "cancelled" | "suspended" | "delayed" | "unknown";
|
|
3030
|
+
/** RFC 3339 instant. Keep only games whose kickoff is at or after it. Games with no published kickoff are excluded whenever either bound is set. */
|
|
3031
|
+
starts_after?: string;
|
|
3032
|
+
/** RFC 3339 instant. Keep only games whose kickoff is at or before it. Must be at or after starts_after. */
|
|
3033
|
+
starts_before?: string;
|
|
3034
|
+
/** Page size. */
|
|
3035
|
+
limit?: number;
|
|
3036
|
+
/** Opaque gms_v1_ cursor from next_cursor. It pins the page position (kickoff and event_slug), not a snapshot: the catalog is live, so a game added or removed between pages moves with it. A cursor this endpoint did not issue returns 400 with error.param=cursor. */
|
|
3037
|
+
cursor?: string;
|
|
3038
|
+
};
|
|
2683
3039
|
listInsiderRadar: {
|
|
2684
3040
|
/** Maximum number of radar flags to return. */
|
|
2685
3041
|
limit?: number;
|
|
@@ -2706,6 +3062,60 @@ export interface OperationQuery {
|
|
|
2706
3062
|
/** Scope to one market. Accepts the raw provider condition_id or the mkt_-prefixed market id (round-trips a value from a list response). Polymarket-only; an unknown id returns []. */
|
|
2707
3063
|
condition_id?: string;
|
|
2708
3064
|
};
|
|
3065
|
+
listLargeTradeCounterpartyExecutions: {
|
|
3066
|
+
/** Counterparty snapshot ID from the large trade detail response. */
|
|
3067
|
+
snapshot_id: string;
|
|
3068
|
+
/** Opaque cursor from the previous response's next_cursor. */
|
|
3069
|
+
cursor?: string;
|
|
3070
|
+
/** Maximum number of counterparty execution rows to return. */
|
|
3071
|
+
limit?: number;
|
|
3072
|
+
};
|
|
3073
|
+
listLargeTradeCounterpartyMakers: {
|
|
3074
|
+
/** Counterparty snapshot ID from the large trade detail response. */
|
|
3075
|
+
snapshot_id: string;
|
|
3076
|
+
/** Opaque cursor from the previous response's next_cursor. */
|
|
3077
|
+
cursor?: string;
|
|
3078
|
+
/** Maximum number of maker rows to return. */
|
|
3079
|
+
limit?: number;
|
|
3080
|
+
};
|
|
3081
|
+
listLargeTradeHistory: {
|
|
3082
|
+
/** Maximum number of historical large trades to return. */
|
|
3083
|
+
limit?: number;
|
|
3084
|
+
/** Pagination cursor from previous response's next_cursor. Prefix: wth_. URL-encode when replaying as a query parameter. */
|
|
3085
|
+
cursor?: string;
|
|
3086
|
+
/** Minimum trade size in USD. The capture floor was 3,000 USD before 2026-07-06 and 10,000 USD from then (1,000 USD in earnings markets), so 10000 gives one size rule across the whole archive. */
|
|
3087
|
+
min_size?: number;
|
|
3088
|
+
/** Exact raw provider condition_id. Unknown markets return an empty list. */
|
|
3089
|
+
condition_id?: string;
|
|
3090
|
+
/** Trader wallet address, timestamp-suffixed wallet alias, username, or trd_-prefixed trader ID, resolved against the traders table. Unknown traders return an empty list. */
|
|
3091
|
+
trader?: string;
|
|
3092
|
+
/** Filter by market category (case-insensitive). A canonical bucket name (e.g. Basketball) matches every provider member that folds into it (NBA, WNBA, NCAAB); a raw provider value also resolves to its bucket. */
|
|
3093
|
+
category?: string;
|
|
3094
|
+
/** Minimum trader grade as of today (trader.grade), not at trade time. On a historical window it selects wallets by a grade they may have earned after the trade; for a point-in-time rule filter on trader.grade_at_trade instead. A means S or A, B means S, A or B. */
|
|
3095
|
+
min_grade?: "S" | "A" | "B" | "C" | "D" | "F";
|
|
3096
|
+
/** When true, return only rows with persisted suspicion_score >= 60. The filter is applied before SQL-backed limit + 1 pagination. */
|
|
3097
|
+
suspicious_only?: boolean;
|
|
3098
|
+
/** Filter by whale_alerts.platform. all is equivalent to omitted. */
|
|
3099
|
+
platform?: "polymarket" | "all";
|
|
3100
|
+
/** Inclusive RFC3339 lower bound on whale_alerts.traded_at. */
|
|
3101
|
+
from?: string;
|
|
3102
|
+
/** Exclusive RFC3339 upper bound on whale_alerts.traded_at. Must be after from when both are present. */
|
|
3103
|
+
to?: string;
|
|
3104
|
+
};
|
|
3105
|
+
listLargeTrades: {
|
|
3106
|
+
/** Maximum number of recent large trades to return. */
|
|
3107
|
+
limit?: number;
|
|
3108
|
+
/** Pagination cursor from previous response's next_cursor. */
|
|
3109
|
+
cursor?: string;
|
|
3110
|
+
/** Minimum trade size in USD. */
|
|
3111
|
+
min_size?: number;
|
|
3112
|
+
/** Filter by market category (case-insensitive). A canonical bucket name (e.g. Basketball) matches every provider member that folds into it (NBA, WNBA, NCAAB); a raw provider value also resolves to its bucket. */
|
|
3113
|
+
category?: string;
|
|
3114
|
+
/** Minimum trader grade. */
|
|
3115
|
+
min_grade?: "S" | "A" | "B" | "C" | "D" | "F";
|
|
3116
|
+
/** When true, return only rows with persisted suspicion_score >= 60. The filter is applied before SQL-backed limit + 1 pagination. */
|
|
3117
|
+
suspicious_only?: boolean;
|
|
3118
|
+
};
|
|
2709
3119
|
listLeaderboard: {
|
|
2710
3120
|
/** Maximum number of ranked traders to return. */
|
|
2711
3121
|
limit?: number;
|
|
@@ -2736,6 +3146,28 @@ export interface OperationQuery {
|
|
|
2736
3146
|
/** Filter by the binary outcome side. `yes` maps to outcome_index=0, `no` to outcome_index=1. */
|
|
2737
3147
|
side?: "yes" | "no";
|
|
2738
3148
|
};
|
|
3149
|
+
listPreGameSideObservations: {
|
|
3150
|
+
/** Observation cohort. wider_holder measures pre-game holder piles outside the funded route's exact raw signals admission. in_play admits only provider-confirmed live games and excludes stale or unavailable provider live-board, holder, or directional evidence. emerging_pile is a post-compute wider_holder projection for finite sharp_pct in [0.75, 0.85) with holder_scan_complete=true and a kickoff after its pinned projection cutoff; it overlaps wider_holder, is not an independent denominator, and is not arrival history. */
|
|
3151
|
+
cohort: "wider_holder" | "in_play" | "emerging_pile";
|
|
3152
|
+
/** Optional canonical sport bucket. Omitted or blank selects all registered sports. Raw provider categories resolve through the canonical taxonomy, including table-tennis or table tennis to Table Tennis and pickleball to Pickleball; a non-sport category returns an empty list. */
|
|
3153
|
+
category?: string;
|
|
3154
|
+
/** Page size. */
|
|
3155
|
+
limit?: number;
|
|
3156
|
+
/** Server-authenticated opaque seo_v2_ cursor from next_cursor. Pins snapshot_as_of, cohort, rank, and condition_id; pre-deploy unsigned seo_ cursors are rejected, so clients must request the first page after this contract ships; emerging_pile cursors also pin the first-page projection_now cutoff so kickoff filtering cannot renumber continuation pages. Client edits fail closed; it cannot cross cohorts; a refreshed snapshot invalidates it with 400. */
|
|
3157
|
+
cursor?: string;
|
|
3158
|
+
};
|
|
3159
|
+
listPreGameSides: {
|
|
3160
|
+
/** Optional canonical sport bucket filter (e.g. Basketball, Tennis, Soccer). A raw provider value (NBA) resolves to its canonical bucket. A non-sport category returns an empty list. */
|
|
3161
|
+
category?: string;
|
|
3162
|
+
/** Page size. */
|
|
3163
|
+
limit?: number;
|
|
3164
|
+
/** Opaque cursor from a previous response's next_cursor. Encodes the snapshot anchor plus the last row's directional_rank_score, conviction_score, smart_score and condition_id. A cursor from an expired snapshot returns 400. */
|
|
3165
|
+
cursor?: string;
|
|
3166
|
+
/** Kickoff ceiling in hours from now; the floor is now (only games not yet started). Clamped to 1..48. */
|
|
3167
|
+
horizon_hours?: number;
|
|
3168
|
+
/** Minimum trader grade required on the piled side. Only S, A, B are accepted (the piled-side grade distribution is S/A/B only; C, D, F return 400). Default B means at least one S/A/B holder is piled; S requires an S holder, A requires an S or A holder. */
|
|
3169
|
+
min_grade?: "S" | "A" | "B";
|
|
3170
|
+
};
|
|
2739
3171
|
listSharpMoneyFlows: {
|
|
2740
3172
|
/** Lookback window for grade-filtered whale flow aggregation. */
|
|
2741
3173
|
timeframe?: "1h" | "4h" | "24h" | "7d";
|
|
@@ -2790,6 +3222,18 @@ export interface OperationQuery {
|
|
|
2790
3222
|
/** Minimum trader grade required on the piled side. Only S, A, B are accepted (the piled-side grade distribution is S/A/B only; C, D, F return 400). Default B means at least one S/A/B holder is piled; S requires an S holder, A requires an S or A holder. */
|
|
2791
3223
|
min_grade?: "S" | "A" | "B";
|
|
2792
3224
|
};
|
|
3225
|
+
listSuspiciousTrades: {
|
|
3226
|
+
/** Maximum number of suspicious trades to return. */
|
|
3227
|
+
limit?: number;
|
|
3228
|
+
/** Pagination cursor from previous response. */
|
|
3229
|
+
cursor?: string;
|
|
3230
|
+
/** Minimum suspicion score (0-100). The live flag floor of 60 also applies. */
|
|
3231
|
+
min_suspicion?: number;
|
|
3232
|
+
/** Compatible filter. flag selects live threshold crossings. watch returns no rows because no live watch policy exists. */
|
|
3233
|
+
severity?: "flag" | "watch";
|
|
3234
|
+
/** Pagination mode. live (default) keeps the 120-second response cache; stable pins the walk to one published scoring generation and binds the cursor to the limit and filters. */
|
|
3235
|
+
mode?: "live" | "stable";
|
|
3236
|
+
};
|
|
2793
3237
|
listTrendingWallets: {
|
|
2794
3238
|
/** Polymarket's weekly leaderboard caps the ranked set at 50 wallets; requests above 50 still return at most 50. */
|
|
2795
3239
|
limit?: number;
|
|
@@ -2827,15 +3271,15 @@ export interface OperationQuery {
|
|
|
2827
3271
|
limit?: number;
|
|
2828
3272
|
/** Pagination cursor from previous response's next_cursor. Prefix: wth_. URL-encode when replaying as a query parameter. */
|
|
2829
3273
|
cursor?: string;
|
|
2830
|
-
/** Minimum trade size in USD.
|
|
3274
|
+
/** Minimum trade size in USD. */
|
|
2831
3275
|
min_size?: number;
|
|
2832
3276
|
/** Exact raw provider condition_id. Unknown markets return an empty list. */
|
|
2833
3277
|
condition_id?: string;
|
|
2834
|
-
/** Trader wallet address, timestamp-suffixed wallet alias,
|
|
3278
|
+
/** Trader wallet address, timestamp-suffixed wallet alias, or username resolved against the traders table. Unknown traders return an empty list. */
|
|
2835
3279
|
trader?: string;
|
|
2836
3280
|
/** Filter by market category (case-insensitive). A canonical bucket name (e.g. Basketball) matches every provider member that folds into it (NBA, WNBA, NCAAB); a raw provider value also resolves to its bucket. */
|
|
2837
3281
|
category?: string;
|
|
2838
|
-
/** Minimum trader grade
|
|
3282
|
+
/** Minimum trader grade. */
|
|
2839
3283
|
min_grade?: "S" | "A" | "B" | "C" | "D" | "F";
|
|
2840
3284
|
/** When true, return only rows with persisted suspicion_score >= 60. The filter is applied before SQL-backed limit + 1 pagination. */
|
|
2841
3285
|
suspicious_only?: boolean;
|
|
@@ -2886,6 +3330,8 @@ export interface OperationQuery {
|
|
|
2886
3330
|
submitTraderExport: {
|
|
2887
3331
|
/** Output serialization. json = full envelope document (default); ndjson = full envelope as line 1 then one trade object per line; csv = flat trades rows only. */
|
|
2888
3332
|
format?: "json" | "ndjson" | "csv";
|
|
3333
|
+
/** true: do not reuse a finished, running or reconciling job; only a queued job is reused, so the file is a snapshot read after this submit. Consumes quota when nothing is queued. Default false. */
|
|
3334
|
+
fresh?: boolean;
|
|
2889
3335
|
};
|
|
2890
3336
|
updateWebhook: Record<string, never>;
|
|
2891
3337
|
verifyWebhook: Record<string, never>;
|
|
@@ -2909,11 +3355,19 @@ export interface OperationPath {
|
|
|
2909
3355
|
getApiDiscovery: Record<string, never>;
|
|
2910
3356
|
getDailyReportSnapshot: Record<string, never>;
|
|
2911
3357
|
getEventReplaySince: Record<string, never>;
|
|
3358
|
+
getGame: {
|
|
3359
|
+
/** The game's event slug, for example nfl-buf-nyj-2026-09-22. Matched case-insensitively. */
|
|
3360
|
+
event_slug: string;
|
|
3361
|
+
};
|
|
2912
3362
|
getHealth: Record<string, never>;
|
|
2913
3363
|
getInsiderRadarFlag: {
|
|
2914
3364
|
/** Raw whale_alerts.id or rf_-prefixed radar flag id. */
|
|
2915
3365
|
id: string;
|
|
2916
3366
|
};
|
|
3367
|
+
getLargeTrade: {
|
|
3368
|
+
/** Raw whale_alerts.id or wt_-prefixed large trade id. */
|
|
3369
|
+
id: string;
|
|
3370
|
+
};
|
|
2917
3371
|
getMarketCandles: {
|
|
2918
3372
|
/** 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. */
|
|
2919
3373
|
condition_id: string;
|
|
@@ -2949,6 +3403,10 @@ export interface OperationPath {
|
|
|
2949
3403
|
};
|
|
2950
3404
|
getReports: Record<string, never>;
|
|
2951
3405
|
getStream: Record<string, never>;
|
|
3406
|
+
getSuspiciousTrade: {
|
|
3407
|
+
/** Raw whale_alerts.id or rf_-prefixed suspicious trade id. */
|
|
3408
|
+
id: string;
|
|
3409
|
+
};
|
|
2952
3410
|
getTrader: {
|
|
2953
3411
|
/** Ethereum wallet address (0x...), known trader username, or trd_-prefixed trader ID emitted by this API. */
|
|
2954
3412
|
address: string;
|
|
@@ -2987,14 +3445,30 @@ export interface OperationPath {
|
|
|
2987
3445
|
/** Raw whale_alerts.id or wt_-prefixed whale trade id. */
|
|
2988
3446
|
id: string;
|
|
2989
3447
|
};
|
|
3448
|
+
listGames: Record<string, never>;
|
|
2990
3449
|
listInsiderRadar: Record<string, never>;
|
|
2991
3450
|
listLargePositions: Record<string, never>;
|
|
3451
|
+
listLargeTradeCounterpartyExecutions: {
|
|
3452
|
+
/** Large trade ID. Accepts wt_-prefixed or raw whale_alerts.id. */
|
|
3453
|
+
id: string;
|
|
3454
|
+
};
|
|
3455
|
+
listLargeTradeCounterpartyMakers: {
|
|
3456
|
+
/** Large trade ID. Accepts wt_-prefixed or raw whale_alerts.id. */
|
|
3457
|
+
id: string;
|
|
3458
|
+
/** Counterparty execution ID from the parent response. */
|
|
3459
|
+
execution_id: string;
|
|
3460
|
+
};
|
|
3461
|
+
listLargeTradeHistory: Record<string, never>;
|
|
3462
|
+
listLargeTrades: Record<string, never>;
|
|
2992
3463
|
listLeaderboard: Record<string, never>;
|
|
2993
3464
|
listPositions: Record<string, never>;
|
|
3465
|
+
listPreGameSideObservations: Record<string, never>;
|
|
3466
|
+
listPreGameSides: Record<string, never>;
|
|
2994
3467
|
listSharpMoneyFlows: Record<string, never>;
|
|
2995
3468
|
listSmartMoneyFlows: Record<string, never>;
|
|
2996
3469
|
listSportsEdgeObservations: Record<string, never>;
|
|
2997
3470
|
listSportsEdgeSignals: Record<string, never>;
|
|
3471
|
+
listSuspiciousTrades: Record<string, never>;
|
|
2998
3472
|
listTrendingWallets: Record<string, never>;
|
|
2999
3473
|
listWebhookDeliveries: {
|
|
3000
3474
|
/** Webhook endpoint id owned by the authenticated API key user. */
|
|
@@ -3080,8 +3554,10 @@ export interface OperationBody {
|
|
|
3080
3554
|
getApiDiscovery: never;
|
|
3081
3555
|
getDailyReportSnapshot: never;
|
|
3082
3556
|
getEventReplaySince: never;
|
|
3557
|
+
getGame: never;
|
|
3083
3558
|
getHealth: never;
|
|
3084
3559
|
getInsiderRadarFlag: never;
|
|
3560
|
+
getLargeTrade: never;
|
|
3085
3561
|
getMarketCandles: never;
|
|
3086
3562
|
getMarketContextMarkdown: never;
|
|
3087
3563
|
getMarketHolders: never;
|
|
@@ -3096,6 +3572,7 @@ export interface OperationBody {
|
|
|
3096
3572
|
getPositionTimelineById: never;
|
|
3097
3573
|
getReports: never;
|
|
3098
3574
|
getStream: never;
|
|
3575
|
+
getSuspiciousTrade: never;
|
|
3099
3576
|
getTrader: never;
|
|
3100
3577
|
getTraderCategoryRecords: never;
|
|
3101
3578
|
getTraderContext: never;
|
|
@@ -3107,14 +3584,22 @@ export interface OperationBody {
|
|
|
3107
3584
|
getWebhook: never;
|
|
3108
3585
|
getWeeklyReportSnapshot: never;
|
|
3109
3586
|
getWhaleTrade: never;
|
|
3587
|
+
listGames: never;
|
|
3110
3588
|
listInsiderRadar: never;
|
|
3111
3589
|
listLargePositions: never;
|
|
3590
|
+
listLargeTradeCounterpartyExecutions: never;
|
|
3591
|
+
listLargeTradeCounterpartyMakers: never;
|
|
3592
|
+
listLargeTradeHistory: never;
|
|
3593
|
+
listLargeTrades: never;
|
|
3112
3594
|
listLeaderboard: never;
|
|
3113
3595
|
listPositions: never;
|
|
3596
|
+
listPreGameSideObservations: never;
|
|
3597
|
+
listPreGameSides: never;
|
|
3114
3598
|
listSharpMoneyFlows: never;
|
|
3115
3599
|
listSmartMoneyFlows: never;
|
|
3116
3600
|
listSportsEdgeObservations: never;
|
|
3117
3601
|
listSportsEdgeSignals: never;
|
|
3602
|
+
listSuspiciousTrades: never;
|
|
3118
3603
|
listTrendingWallets: never;
|
|
3119
3604
|
listWebhookDeliveries: never;
|
|
3120
3605
|
listWebhookEvents: never;
|
|
@@ -3206,6 +3691,13 @@ export interface OperationResponse {
|
|
|
3206
3691
|
next_cursor: string;
|
|
3207
3692
|
meta: EventReplayMeta;
|
|
3208
3693
|
};
|
|
3694
|
+
getGame: {
|
|
3695
|
+
object: "game";
|
|
3696
|
+
data: OperationData["getGame"];
|
|
3697
|
+
/** When this read assembled the catalog. Per-source vintage is on freshness. */
|
|
3698
|
+
as_of: string;
|
|
3699
|
+
meta: ResponseMeta;
|
|
3700
|
+
};
|
|
3209
3701
|
getHealth: {
|
|
3210
3702
|
object: "health";
|
|
3211
3703
|
data: OperationData["getHealth"];
|
|
@@ -3216,6 +3708,11 @@ export interface OperationResponse {
|
|
|
3216
3708
|
data: OperationData["getInsiderRadarFlag"];
|
|
3217
3709
|
meta: ResponseMeta;
|
|
3218
3710
|
};
|
|
3711
|
+
getLargeTrade: {
|
|
3712
|
+
object: "large_trade";
|
|
3713
|
+
data: OperationData["getLargeTrade"];
|
|
3714
|
+
meta: ResponseMeta;
|
|
3715
|
+
};
|
|
3219
3716
|
getMarketCandles: {
|
|
3220
3717
|
object: "market_candles";
|
|
3221
3718
|
data: OperationData["getMarketCandles"];
|
|
@@ -3294,6 +3791,11 @@ export interface OperationResponse {
|
|
|
3294
3791
|
meta: ResponseMeta;
|
|
3295
3792
|
};
|
|
3296
3793
|
getStream: string;
|
|
3794
|
+
getSuspiciousTrade: {
|
|
3795
|
+
object: "suspicious_trade";
|
|
3796
|
+
data: OperationData["getSuspiciousTrade"];
|
|
3797
|
+
meta: ResponseMeta;
|
|
3798
|
+
};
|
|
3297
3799
|
getTrader: {
|
|
3298
3800
|
object: "trader";
|
|
3299
3801
|
data: OperationData["getTrader"];
|
|
@@ -3337,6 +3839,17 @@ export interface OperationResponse {
|
|
|
3337
3839
|
data: OperationData["getWhaleTrade"];
|
|
3338
3840
|
meta: ResponseMeta;
|
|
3339
3841
|
};
|
|
3842
|
+
listGames: {
|
|
3843
|
+
object: "list";
|
|
3844
|
+
data: OperationData["listGames"];
|
|
3845
|
+
has_more: boolean;
|
|
3846
|
+
/** Pass as cursor for the next page. Present only when has_more is true. */
|
|
3847
|
+
next_cursor?: string;
|
|
3848
|
+
/** When this read assembled the catalog. Per-source vintage is on each game's freshness. */
|
|
3849
|
+
as_of: string;
|
|
3850
|
+
coverage: GamesCoverage;
|
|
3851
|
+
meta: ResponseMeta;
|
|
3852
|
+
};
|
|
3340
3853
|
listInsiderRadar: {
|
|
3341
3854
|
object: "list";
|
|
3342
3855
|
data: OperationData["listInsiderRadar"];
|
|
@@ -3356,6 +3869,34 @@ export interface OperationResponse {
|
|
|
3356
3869
|
total?: number;
|
|
3357
3870
|
meta: ResponseMeta;
|
|
3358
3871
|
};
|
|
3872
|
+
listLargeTradeCounterpartyExecutions: {
|
|
3873
|
+
object: "counterparty_analysis";
|
|
3874
|
+
data: OperationData["listLargeTradeCounterpartyExecutions"];
|
|
3875
|
+
meta: ResponseMeta;
|
|
3876
|
+
};
|
|
3877
|
+
listLargeTradeCounterpartyMakers: {
|
|
3878
|
+
object: "counterparty_maker_page";
|
|
3879
|
+
data: OperationData["listLargeTradeCounterpartyMakers"];
|
|
3880
|
+
meta: ResponseMeta;
|
|
3881
|
+
};
|
|
3882
|
+
listLargeTradeHistory: {
|
|
3883
|
+
object: "list";
|
|
3884
|
+
data: OperationData["listLargeTradeHistory"];
|
|
3885
|
+
has_more: boolean;
|
|
3886
|
+
next_cursor?: string;
|
|
3887
|
+
/** Total matching rows when the read model exposes a count; the key is absent when it does not. */
|
|
3888
|
+
total?: number;
|
|
3889
|
+
meta: LargeTradeHistoryMeta;
|
|
3890
|
+
};
|
|
3891
|
+
listLargeTrades: {
|
|
3892
|
+
object: "list";
|
|
3893
|
+
data: OperationData["listLargeTrades"];
|
|
3894
|
+
has_more: boolean;
|
|
3895
|
+
next_cursor?: string;
|
|
3896
|
+
/** Total matching rows when the read model exposes a count; absent (or null) when it does not. */
|
|
3897
|
+
total?: number;
|
|
3898
|
+
meta: ResponseMeta;
|
|
3899
|
+
};
|
|
3359
3900
|
listLeaderboard: {
|
|
3360
3901
|
object: "list";
|
|
3361
3902
|
data: OperationData["listLeaderboard"];
|
|
@@ -3374,6 +3915,26 @@ export interface OperationResponse {
|
|
|
3374
3915
|
total?: number;
|
|
3375
3916
|
meta: ResponseMeta;
|
|
3376
3917
|
};
|
|
3918
|
+
listPreGameSideObservations: {
|
|
3919
|
+
object: "list";
|
|
3920
|
+
data: OperationData["listPreGameSideObservations"];
|
|
3921
|
+
has_more: boolean;
|
|
3922
|
+
next_cursor?: string;
|
|
3923
|
+
/** Completion time of the shared observation snapshot pinned by the cursor. */
|
|
3924
|
+
snapshot_as_of: string;
|
|
3925
|
+
/** True when an operational failure or unknown provider-board, holder, directional, reconciliation, or internal completeness state made this snapshot partial. This is snapshot-wide and can retain degradation that the funnel's one-terminal-per-input accounting cannot represent. Intentional bounded capacity_limited rows remain fully accounted in the funnel and do not by themselves set this field. */
|
|
3926
|
+
degraded: boolean;
|
|
3927
|
+
funnel: PreGameSideFunnelReport;
|
|
3928
|
+
meta: ResponseMeta;
|
|
3929
|
+
};
|
|
3930
|
+
listPreGameSides: {
|
|
3931
|
+
object: "list";
|
|
3932
|
+
data: OperationData["listPreGameSides"];
|
|
3933
|
+
has_more: boolean;
|
|
3934
|
+
next_cursor?: string;
|
|
3935
|
+
total?: number;
|
|
3936
|
+
meta: ResponseMeta;
|
|
3937
|
+
};
|
|
3377
3938
|
listSharpMoneyFlows: {
|
|
3378
3939
|
object: "list";
|
|
3379
3940
|
data: OperationData["listSharpMoneyFlows"];
|
|
@@ -3399,7 +3960,7 @@ export interface OperationResponse {
|
|
|
3399
3960
|
snapshot_as_of: string;
|
|
3400
3961
|
/** True when an operational failure or unknown provider-board, holder, directional, reconciliation, or internal completeness state made this snapshot partial. This is snapshot-wide and can retain degradation that the funnel's one-terminal-per-input accounting cannot represent. Intentional bounded capacity_limited rows remain fully accounted in the funnel and do not by themselves set this field. */
|
|
3401
3962
|
degraded: boolean;
|
|
3402
|
-
funnel:
|
|
3963
|
+
funnel: PreGameSideFunnelReport;
|
|
3403
3964
|
meta: ResponseMeta;
|
|
3404
3965
|
};
|
|
3405
3966
|
listSportsEdgeSignals: {
|
|
@@ -3410,6 +3971,15 @@ export interface OperationResponse {
|
|
|
3410
3971
|
total?: number;
|
|
3411
3972
|
meta: ResponseMeta;
|
|
3412
3973
|
};
|
|
3974
|
+
listSuspiciousTrades: {
|
|
3975
|
+
object: "list";
|
|
3976
|
+
data: OperationData["listSuspiciousTrades"];
|
|
3977
|
+
has_more: boolean;
|
|
3978
|
+
next_cursor?: string;
|
|
3979
|
+
/** Total matching rows when the read model exposes a count; the key is absent when it does not. */
|
|
3980
|
+
total?: number;
|
|
3981
|
+
meta: ResponseMeta;
|
|
3982
|
+
};
|
|
3413
3983
|
listTrendingWallets: {
|
|
3414
3984
|
object: "list";
|
|
3415
3985
|
data: OperationData["listTrendingWallets"];
|
|
@@ -3459,9 +4029,9 @@ export interface OperationResponse {
|
|
|
3459
4029
|
data: OperationData["listWhaleTradeHistory"];
|
|
3460
4030
|
has_more: boolean;
|
|
3461
4031
|
next_cursor?: string;
|
|
3462
|
-
/** Total matching rows when the read model exposes a count;
|
|
4032
|
+
/** Total matching rows when the read model exposes a count; absent (or null) when it does not. */
|
|
3463
4033
|
total?: number;
|
|
3464
|
-
meta:
|
|
4034
|
+
meta: LargeTradeHistoryMeta;
|
|
3465
4035
|
};
|
|
3466
4036
|
listWhaleTrades: {
|
|
3467
4037
|
object: "list";
|