@0xinsider/mcp 3.13.0 → 3.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/sdk/client.d.ts +5 -2
- package/dist/sdk/client.d.ts.map +1 -1
- package/dist/sdk/client.js +5 -2
- package/dist/sdk/client.js.map +1 -1
- package/dist/sdk/schema.d.ts +92 -12
- package/dist/sdk/schema.d.ts.map +1 -1
- package/dist/tools/games.d.ts.map +1 -1
- package/dist/tools/games.js +20 -13
- package/dist/tools/games.js.map +1 -1
- package/dist/tools/read-parity.js +1 -1
- package/dist/tools/read-parity.js.map +1 -1
- package/package.json +1 -1
package/dist/sdk/schema.d.ts
CHANGED
|
@@ -1336,6 +1336,10 @@ export type GameFreshness = {
|
|
|
1336
1336
|
scores_observed_at?: string;
|
|
1337
1337
|
/** The provider's own frame clock. Omitted when the frame carries none. */
|
|
1338
1338
|
scores_source_at?: string;
|
|
1339
|
+
/** Seconds since this game's last Sports WebSocket frame. The esports feed resends an unchanged series about every 20 seconds, so this dates the feed's last frame, not the last score change. Omitted when no Sports WebSocket frame dates the score, which is not age zero: a score read from the provider's event listing is re-read on a cadence whether or not the game moved. */
|
|
1340
|
+
scores_age_seconds?: number;
|
|
1341
|
+
/** Whether this game's score and clock are current, judged on how often this league's feed sends a frame, and independent of source_freshness, which dates the board: a board can be seconds old while one game's frame is frozen. not_applicable outside play (scheduled, final, postponed, cancelled), at halftime and in a break between periods (a period of HT or End ...). stale when the last frame is older than the bound measured for its state: 180 seconds for a running soccer half before stoppage time (the provider sends a frame each match minute); 120 seconds for an in-progress cs2 or lol series (the feed resends each running series about every 20 seconds, so fresh means the provider resent it, not that the map score moved); 600 seconds for a running period of men's and women's college basketball (league cbb, cwbb) and NHL hockey (nhl), whose feeds send no frame while the clock is stopped for a timeout or review. fresh within the bound. unknown otherwise: no dated frame, soccer stoppage time, a period clock at 00:00, End OT in women's college basketball (the end of the third quarter, after which the provider sends no frame until the final), tennis (frames land on points and stop for changeovers and breaks), and every league with no measured bound, including the NBA and NFL. */
|
|
1342
|
+
scores_freshness: "fresh" | "stale" | "unknown" | "not_applicable";
|
|
1339
1343
|
};
|
|
1340
1344
|
/** One market of a game holders batch: GET /api/v1/market/{condition_id}/holders unfiltered and cut to the batch limit. */
|
|
1341
1345
|
export type GameHoldersItem = {
|
|
@@ -1379,6 +1383,21 @@ export type GameMarket = {
|
|
|
1379
1383
|
prices?: GameMarketPrices;
|
|
1380
1384
|
/** Polymarket's reported liquidity for this market. Omitted when the provider read carried none, and on a finished game read from its stored record; never 0 in place of a missing figure. */
|
|
1381
1385
|
liquidity?: GameMarketLiquidity;
|
|
1386
|
+
/** How Polymarket's oracle settled or is settling this market, the block GET /api/v1/games/{event_slug}/markets serves, from the same per-game store. Always present on GET /api/v1/games/{event_slug}; on GET /api/v1/games only with expand=settlement. It never waits for Polymarket: a game not read lately reads status unavailable while its read starts. */
|
|
1387
|
+
settlement?: {
|
|
1388
|
+
expected_settlement_time: string | null;
|
|
1389
|
+
observed_at: string | null;
|
|
1390
|
+
oracle_status: string | null;
|
|
1391
|
+
payouts: number[] | null;
|
|
1392
|
+
proposed_answer: "outcome_0" | "outcome_1" | "split" | "too_early" | null;
|
|
1393
|
+
resolved_at: string | null;
|
|
1394
|
+
result: "outcome" | "split" | null;
|
|
1395
|
+
settled: boolean | null;
|
|
1396
|
+
settlement_time_basis: string | null;
|
|
1397
|
+
status: "observed" | "not_posed" | "unavailable";
|
|
1398
|
+
was_disputed: boolean | null;
|
|
1399
|
+
winning_outcome_index: number | null;
|
|
1400
|
+
};
|
|
1382
1401
|
};
|
|
1383
1402
|
/** One market's liquidity as Polymarket reports it (Gamma liquidityNum), verbatim. Polymarket documents it only as reported market liquidity, with no unit. It describes the market's resting order book, not traded volume. */
|
|
1384
1403
|
export type GameMarketLiquidity = {
|
|
@@ -2260,6 +2279,21 @@ export type MarketSnapshot = {
|
|
|
2260
2279
|
};
|
|
2261
2280
|
/** Price and spread trust metadata. Present only when expand=trust or expand[]=trust is requested. */
|
|
2262
2281
|
trust?: MarketSnapshotTrust;
|
|
2282
|
+
/** How Polymarket's oracle settled or is settling this market, the block GET /api/v1/games/{event_slug}/markets serves, read from the store of the market's event (a child event's market: its game's). It never waits for Polymarket: with nothing stored it reads status unavailable while the read starts. market.market_result stays null; read settlement.result. */
|
|
2283
|
+
settlement: {
|
|
2284
|
+
expected_settlement_time: string | null;
|
|
2285
|
+
observed_at: string | null;
|
|
2286
|
+
oracle_status: string | null;
|
|
2287
|
+
payouts: number[] | null;
|
|
2288
|
+
proposed_answer: "outcome_0" | "outcome_1" | "split" | "too_early" | null;
|
|
2289
|
+
resolved_at: string | null;
|
|
2290
|
+
result: "outcome" | "split" | null;
|
|
2291
|
+
settled: boolean | null;
|
|
2292
|
+
settlement_time_basis: string | null;
|
|
2293
|
+
status: "observed" | "not_posed" | "unavailable";
|
|
2294
|
+
was_disputed: boolean | null;
|
|
2295
|
+
winning_outcome_index: number | null;
|
|
2296
|
+
};
|
|
2263
2297
|
};
|
|
2264
2298
|
export type MarketSnapshotFreshness = {
|
|
2265
2299
|
status: "fresh" | "stale" | "available" | "not_live" | "unavailable";
|
|
@@ -6298,11 +6332,21 @@ export interface OperationData {
|
|
|
6298
6332
|
line?: number;
|
|
6299
6333
|
line_outcome_index?: number;
|
|
6300
6334
|
negative_risk?: boolean;
|
|
6301
|
-
outcomes: {
|
|
6335
|
+
outcomes: ({
|
|
6302
6336
|
index: number;
|
|
6303
6337
|
label?: string;
|
|
6304
6338
|
token_id?: string;
|
|
6305
|
-
|
|
6339
|
+
quote?: {
|
|
6340
|
+
best_ask: number | null;
|
|
6341
|
+
best_bid: number | null;
|
|
6342
|
+
book_observed_at: string | null;
|
|
6343
|
+
price: number | null;
|
|
6344
|
+
price_basis: "midpoint" | "last_trade" | null;
|
|
6345
|
+
price_observed_at: string | null;
|
|
6346
|
+
status: "observed" | "no_orderbook" | "unavailable";
|
|
6347
|
+
book_unavailable_reason: "cache_miss" | "stream_capacity" | "no_orderbook" | "missing_provider_token_id" | null;
|
|
6348
|
+
};
|
|
6349
|
+
})[];
|
|
6306
6350
|
platform?: string;
|
|
6307
6351
|
slug?: string;
|
|
6308
6352
|
sports_market_type?: string;
|
|
@@ -6322,6 +6366,42 @@ export interface OperationData {
|
|
|
6322
6366
|
status: "computed" | "not_computed" | "unavailable";
|
|
6323
6367
|
trader_count: number | null;
|
|
6324
6368
|
};
|
|
6369
|
+
settlement: {
|
|
6370
|
+
expected_settlement_time: string | null;
|
|
6371
|
+
observed_at: string | null;
|
|
6372
|
+
oracle_status: string | null;
|
|
6373
|
+
payouts: number[] | null;
|
|
6374
|
+
proposed_answer: "split" | "too_early" | "outcome_0" | "outcome_1" | null;
|
|
6375
|
+
resolved_at: string | null;
|
|
6376
|
+
result: "outcome" | "split" | null;
|
|
6377
|
+
settled: boolean | null;
|
|
6378
|
+
settlement_time_basis: string | null;
|
|
6379
|
+
status: "observed" | "not_posed" | "unavailable";
|
|
6380
|
+
was_disputed: boolean | null;
|
|
6381
|
+
winning_outcome_index: number | null;
|
|
6382
|
+
};
|
|
6383
|
+
trading_terms?: {
|
|
6384
|
+
fee_schedule: {
|
|
6385
|
+
exponent: number | null;
|
|
6386
|
+
rate: number | null;
|
|
6387
|
+
rebate_rate: number | null;
|
|
6388
|
+
taker_only: boolean | null;
|
|
6389
|
+
} | null;
|
|
6390
|
+
fees_enabled: boolean | null;
|
|
6391
|
+
observed_at: string | null;
|
|
6392
|
+
reward_allocations: ({
|
|
6393
|
+
end_date: string | null;
|
|
6394
|
+
rewards_amount: number | null;
|
|
6395
|
+
rewards_daily_rate: number | null;
|
|
6396
|
+
start_date: string | null;
|
|
6397
|
+
})[] | null;
|
|
6398
|
+
rewards_max_spread: number | null;
|
|
6399
|
+
rewards_min_size: number | null;
|
|
6400
|
+
seconds_delay: number | null;
|
|
6401
|
+
status: "observed" | "not_listed" | "unavailable";
|
|
6402
|
+
tick_size: number | null;
|
|
6403
|
+
min_order_size_shares: number | null;
|
|
6404
|
+
};
|
|
6325
6405
|
})[];
|
|
6326
6406
|
listGames: Game[];
|
|
6327
6407
|
listGameTrades: GameTrade[];
|
|
@@ -6539,7 +6619,7 @@ export interface OperationQuery {
|
|
|
6539
6619
|
series_slugs?: string[];
|
|
6540
6620
|
};
|
|
6541
6621
|
getEventReplaySince: {
|
|
6542
|
-
/** Opaque event replay cursor returned as next_cursor by a prior response. The cursor maps to the global (whale_alerts.inserted_xid, whale_alerts.id) commit-order position, is valid across backend replicas, and is bound to
|
|
6622
|
+
/** Opaque event replay cursor returned as next_cursor by a prior response. The cursor maps to the global (whale_alerts.inserted_xid, whale_alerts.id) commit-order position, is valid across backend replicas, and is bound to every filter the walk ran with (trader, condition_id, min_grade, min_grade_at_trade, min_size; expand is not a filter): presenting it under different filters, including a switch between min_grade and min_grade_at_trade, answers 400 bad_request with error.reason cursor_expired, and the walk restarts without a cursor. Cursors issued before 2026-09-22 (id-only) stay accepted and are bound to no filters. Omit to fetch the latest durable public suffix. */
|
|
6543
6623
|
cursor?: string;
|
|
6544
6624
|
/** Maximum durable public whale-trade events to return. Out-of-range values are clamped to 1..100. */
|
|
6545
6625
|
limit?: number;
|
|
@@ -6776,15 +6856,15 @@ export interface OperationQuery {
|
|
|
6776
6856
|
limit?: number;
|
|
6777
6857
|
/** Opaque gmk_v1_ cursor from next_cursor, sent with the same filters. It pins the page position (sports_market_type, line, condition_id), not a snapshot. A cursor this endpoint did not issue returns 400 with error.param=cursor. */
|
|
6778
6858
|
cursor?: string;
|
|
6779
|
-
/** sharp_money adds each row's sharp_money: the game page's per-line split, side USD and S, A and B wallet counts per outcome. One read for the event whatever the page size; the request costs 5 instead of 2. Pro and Max. Repeatable: sharp_money. */
|
|
6780
|
-
expand?: "sharp_money"[];
|
|
6781
|
-
/** Backward-compatible alias for expand. Repeatable: sharp_money. */
|
|
6782
|
-
"expand[]"?: "sharp_money"[];
|
|
6859
|
+
/** sharp_money adds each row's sharp_money: the game page's per-line split, side USD and S, A and B wallet counts per outcome. One read for the event whatever the page size; the request costs 5 instead of 2. Pro and Max. quotes adds each outcome's quote: the cached display price and best bid and ask, each with its observation time, in one cache read for the page; it adds 1 to the cost, on every plan. trading_terms adds each row's fee schedule, reward settings and allocations, order delay, tick and minimum order size in shares from its Gamma record, with the read's time; it adds 1 to the cost, on every plan. Repeatable: sharp_money, quotes, trading_terms. */
|
|
6860
|
+
expand?: ("sharp_money" | "quotes" | "trading_terms")[];
|
|
6861
|
+
/** Backward-compatible alias for expand. Repeatable: sharp_money, quotes, trading_terms. */
|
|
6862
|
+
"expand[]"?: ("sharp_money" | "quotes" | "trading_terms")[];
|
|
6783
6863
|
};
|
|
6784
6864
|
listGames: {
|
|
6785
6865
|
/** 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. */
|
|
6786
6866
|
sport?: string;
|
|
6787
|
-
/** League tag, case-insensitive, as coverage.leagues spells it: nfl, epl, cs2, euroleague, cbb, cwbb. EuroLeague games use sport=Basketball and league=euroleague; NCAA men's and women's college basketball games use sport=Basketball with league=cbb and league=cwbb. Omit for every league inside the selected sports. */
|
|
6867
|
+
/** League tag, case-insensitive, as this list's coverage.leagues spells it (GET /api/v1/coverage lists no leagues): nfl, epl, cs2, euroleague, cbb, cwbb. EuroLeague games use sport=Basketball and league=euroleague; NCAA men's and women's college basketball games use sport=Basketball with league=cbb and league=cwbb. Omit for every league inside the selected sports. */
|
|
6788
6868
|
league?: string;
|
|
6789
6869
|
/** Keep only games in this state. ended, cancelled and postponed also list finished games that have left the live board, read from their stored records, for kickoffs within starts_after..starts_before (default: the 7 days before now). Without status, or with any other state, the list is the live and upcoming board. A value outside the enum returns an empty page. */
|
|
6790
6870
|
status?: "scheduled" | "live" | "paused" | "ended" | "postponed" | "cancelled" | "suspended" | "delayed" | "unknown";
|
|
@@ -6798,10 +6878,10 @@ export interface OperationQuery {
|
|
|
6798
6878
|
limit?: number;
|
|
6799
6879
|
/** 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. With a finished status, a page that spent its read budget carries a cursor past everything it read, which may be past the last game it returned. A cursor this endpoint did not issue returns 400 with error.param=cursor. */
|
|
6800
6880
|
cursor?: string;
|
|
6801
|
-
/** Backward-compatible alias for expand. Repeatable: sharp_money. */
|
|
6802
|
-
"expand[]"?: "sharp_money"[];
|
|
6803
|
-
/** sharp_money adds each game's sharp_money, the GameSharpMoney object GET /api/v1/games/{event_slug}/sharp-money returns, read from the sport board's cached aggregate: one board read per sport on the page, never a per-game compute. A game the board did not evaluate carries status not_computed (read the per-game route for it); a sport whose aggregate could not be read carries status unavailable while the rest of the page is served.
|
|
6804
|
-
expand?: "sharp_money"[];
|
|
6881
|
+
/** Backward-compatible alias for expand. Repeatable: sharp_money, settlement. */
|
|
6882
|
+
"expand[]"?: ("sharp_money" | "settlement")[];
|
|
6883
|
+
/** sharp_money adds each game's sharp_money, the GameSharpMoney object GET /api/v1/games/{event_slug}/sharp-money returns, read from the sport board's cached aggregate: one board read per sport on the page, never a per-game compute. A game the board did not evaluate carries status not_computed (read the per-game route for it); a sport whose aggregate could not be read carries status unavailable while the rest of the page is served. Pro and Max only; adds 3 to the request cost. settlement adds settlement to each winner market, the GameMarketSettlement block GET /api/v1/games/{event_slug}/markets serves, from the same per-game store. It never waits for Polymarket: a game not read lately carries status unavailable and its read starts, so a read a moment later may answer. Every plan; adds 2 to the request cost. Repeatable; the two combine. */
|
|
6884
|
+
expand?: ("sharp_money" | "settlement")[];
|
|
6805
6885
|
};
|
|
6806
6886
|
listGameTrades: {
|
|
6807
6887
|
/** Newest fills to return. Out-of-range values are clamped to 1..200. */
|