@liberfi.io/react-predict 0.3.69 → 0.3.71
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/index.d.mts +246 -3
- package/dist/index.d.ts +246 -3
- package/dist/index.js +1472 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1455 -9
- package/dist/index.mjs.map +1 -1
- package/dist/{server-CCZfNoWO.d.mts → server-1_Lm8FLS.d.mts} +143 -2
- package/dist/{server-CCZfNoWO.d.ts → server-1_Lm8FLS.d.ts} +143 -2
- package/dist/server.d.mts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +126 -0
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +126 -0
- package/dist/server.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -61,6 +61,8 @@ interface PredictEvent {
|
|
|
61
61
|
settlement_sources?: SettlementSource[];
|
|
62
62
|
/** Nested markets; omitted when the request used `with_markets=false`. */
|
|
63
63
|
markets?: PredictMarket[];
|
|
64
|
+
/** Cache-only quote snapshot embedded when the market-data contract is enabled. */
|
|
65
|
+
initial_quotes?: MarketDataInitialQuotes;
|
|
64
66
|
source: ProviderSource;
|
|
65
67
|
provider_meta?: ProviderMeta;
|
|
66
68
|
}
|
|
@@ -70,6 +72,8 @@ type MarketStatus = "pending" | "open" | "closed" | "voided";
|
|
|
70
72
|
type MarketResult = "yes" | "no" | "voided" | "";
|
|
71
73
|
/** One possible outcome in a binary (or multi-outcome) prediction market. */
|
|
72
74
|
interface MarketOutcome {
|
|
75
|
+
/** Provider-neutral structural identity; unique within the parent market. */
|
|
76
|
+
key: string;
|
|
73
77
|
/** Display name, e.g. "Yes" or "No". */
|
|
74
78
|
label: string;
|
|
75
79
|
/** Localized label for the request language. Falls back to `label` when absent. */
|
|
@@ -111,6 +115,119 @@ interface PredictMarket {
|
|
|
111
115
|
source: ProviderSource;
|
|
112
116
|
provider_meta?: ProviderMeta;
|
|
113
117
|
}
|
|
118
|
+
declare const MARKET_STRUCTURE_MEDIA_TYPE_V1 = "application/vnd.liberfi.market-structure+json;v=1";
|
|
119
|
+
type MarketDataSchemaVersion = 1;
|
|
120
|
+
type MarketDataMarketView = "summary" | "full";
|
|
121
|
+
interface MarketDataMarketKey {
|
|
122
|
+
source: ProviderSource;
|
|
123
|
+
market_slug: string;
|
|
124
|
+
}
|
|
125
|
+
interface MarketDataEventWatch {
|
|
126
|
+
source: ProviderSource;
|
|
127
|
+
event_slug: string;
|
|
128
|
+
market_view: MarketDataMarketView;
|
|
129
|
+
}
|
|
130
|
+
interface MarketDataWatchRequest {
|
|
131
|
+
quote_events?: MarketDataEventWatch[];
|
|
132
|
+
quote_markets?: MarketDataMarketKey[];
|
|
133
|
+
orderbook_market?: MarketDataMarketKey;
|
|
134
|
+
}
|
|
135
|
+
interface MarketDataWatchResponse {
|
|
136
|
+
refresh_after_ms: number;
|
|
137
|
+
}
|
|
138
|
+
interface MarketDataQuotesRequest {
|
|
139
|
+
markets: MarketDataMarketKey[];
|
|
140
|
+
}
|
|
141
|
+
interface MarketDataValueComponent {
|
|
142
|
+
available: boolean;
|
|
143
|
+
value?: number;
|
|
144
|
+
provider_timestamp?: string;
|
|
145
|
+
observed_at?: string;
|
|
146
|
+
}
|
|
147
|
+
interface MarketDataBBAComponent {
|
|
148
|
+
available: boolean;
|
|
149
|
+
empty: boolean;
|
|
150
|
+
best_bid?: number;
|
|
151
|
+
best_ask?: number;
|
|
152
|
+
midpoint?: number;
|
|
153
|
+
provider_timestamp?: string;
|
|
154
|
+
observed_at?: string;
|
|
155
|
+
}
|
|
156
|
+
interface MarketDataOutcomeQuote extends MarketDataMarketKey {
|
|
157
|
+
outcome: string;
|
|
158
|
+
bba: MarketDataBBAComponent;
|
|
159
|
+
last_trade: MarketDataValueComponent;
|
|
160
|
+
tick_size: MarketDataValueComponent;
|
|
161
|
+
}
|
|
162
|
+
interface MarketDataMarketQuoteResult extends MarketDataMarketKey {
|
|
163
|
+
realtime_supported: boolean;
|
|
164
|
+
outcomes: MarketDataOutcomeQuote[];
|
|
165
|
+
}
|
|
166
|
+
interface MarketDataQuotesResponse {
|
|
167
|
+
schema_version: MarketDataSchemaVersion;
|
|
168
|
+
markets: MarketDataMarketQuoteResult[];
|
|
169
|
+
}
|
|
170
|
+
type MarketDataInitialQuotes = MarketDataQuotesResponse;
|
|
171
|
+
interface MarketDataBookLevel {
|
|
172
|
+
price: string;
|
|
173
|
+
size: string;
|
|
174
|
+
}
|
|
175
|
+
interface MarketDataOutcomeOrderbook {
|
|
176
|
+
outcome: string;
|
|
177
|
+
provider_timestamp?: string;
|
|
178
|
+
observed_at: string;
|
|
179
|
+
bids: MarketDataBookLevel[];
|
|
180
|
+
asks: MarketDataBookLevel[];
|
|
181
|
+
}
|
|
182
|
+
interface MarketDataOrderbooksResponse extends MarketDataMarketKey {
|
|
183
|
+
schema_version: MarketDataSchemaVersion;
|
|
184
|
+
orderbooks: MarketDataOutcomeOrderbook[];
|
|
185
|
+
}
|
|
186
|
+
type MarketStructureResourceType = "event" | "match" | "prop";
|
|
187
|
+
interface MarketStructureOutcome {
|
|
188
|
+
key: string;
|
|
189
|
+
label: string;
|
|
190
|
+
label_trans?: string;
|
|
191
|
+
quote_capable: boolean;
|
|
192
|
+
orderbook_capable: boolean;
|
|
193
|
+
price_history_supported: boolean;
|
|
194
|
+
book_channel?: string;
|
|
195
|
+
}
|
|
196
|
+
interface MarketStructureMarket extends MarketDataMarketKey {
|
|
197
|
+
question: string;
|
|
198
|
+
question_trans?: string;
|
|
199
|
+
status: MarketStatus;
|
|
200
|
+
realtime_supported: boolean;
|
|
201
|
+
realtime_book_supported: boolean;
|
|
202
|
+
outcomes: MarketStructureOutcome[];
|
|
203
|
+
}
|
|
204
|
+
interface MarketStructureItem {
|
|
205
|
+
resource_type: MarketStructureResourceType;
|
|
206
|
+
source?: ProviderSource;
|
|
207
|
+
resource_slug: string;
|
|
208
|
+
section?: SportsSection;
|
|
209
|
+
title: string;
|
|
210
|
+
title_trans?: string;
|
|
211
|
+
status: string;
|
|
212
|
+
market_view: MarketDataMarketView;
|
|
213
|
+
markets_included: boolean;
|
|
214
|
+
item_channel?: string;
|
|
215
|
+
markets: MarketStructureMarket[];
|
|
216
|
+
}
|
|
217
|
+
interface MarketStructureResponse {
|
|
218
|
+
representation_schema_version: 1;
|
|
219
|
+
initial_quotes_contract_enabled: boolean;
|
|
220
|
+
items: MarketStructureItem[];
|
|
221
|
+
}
|
|
222
|
+
type MarketStructureHttpResponse = {
|
|
223
|
+
status: 200;
|
|
224
|
+
etag: string;
|
|
225
|
+
body: MarketStructureResponse;
|
|
226
|
+
} | {
|
|
227
|
+
status: 304;
|
|
228
|
+
etag: string;
|
|
229
|
+
body?: never;
|
|
230
|
+
};
|
|
114
231
|
/** Generic paginated result set returned by the prediction-server list endpoints. */
|
|
115
232
|
interface PredictPage<T> {
|
|
116
233
|
items: T[];
|
|
@@ -216,7 +333,7 @@ interface OrderbooksBatchResponse {
|
|
|
216
333
|
/** Top-level evergreen sports section. */
|
|
217
334
|
type SportsSection = "sports" | "esports";
|
|
218
335
|
/** Sports provider used by orderbook keys and search results. */
|
|
219
|
-
type SportsProviderSource =
|
|
336
|
+
type SportsProviderSource = ProviderSource;
|
|
220
337
|
/** Public Sports event card type. */
|
|
221
338
|
type SportsEventType = "match" | "prop";
|
|
222
339
|
/** Sports event route result kind. */
|
|
@@ -305,6 +422,7 @@ interface SportsMatchCard {
|
|
|
305
422
|
market_count?: number;
|
|
306
423
|
live_state?: SportsLiveState;
|
|
307
424
|
inline_markets?: SportsInlineMarket[];
|
|
425
|
+
initial_quotes?: MarketDataInitialQuotes;
|
|
308
426
|
}
|
|
309
427
|
type SportsMatchesResponse = PredictPage<SportsMatchCard>;
|
|
310
428
|
interface SportsPropEventCard {
|
|
@@ -321,6 +439,7 @@ interface SportsPropEventCard {
|
|
|
321
439
|
start_time?: string;
|
|
322
440
|
parent_match_group_slug?: string;
|
|
323
441
|
markets?: SportsInlineMarket[];
|
|
442
|
+
initial_quotes?: MarketDataInitialQuotes;
|
|
324
443
|
}
|
|
325
444
|
type SportsPropsResponse = PredictPage<SportsPropEventCard>;
|
|
326
445
|
interface SportsRoutingResponse {
|
|
@@ -1389,6 +1508,14 @@ interface PolymarketRedeemResponse {
|
|
|
1389
1508
|
interface PredictClientOptions {
|
|
1390
1509
|
headers?: HeadersInit | (() => HeadersInit | undefined);
|
|
1391
1510
|
}
|
|
1511
|
+
declare class MarketDataHttpError extends Error {
|
|
1512
|
+
readonly status: number;
|
|
1513
|
+
readonly code?: string | undefined;
|
|
1514
|
+
readonly retryAfter?: string | undefined;
|
|
1515
|
+
readonly body?: unknown | undefined;
|
|
1516
|
+
readonly name = "MarketDataHttpError";
|
|
1517
|
+
constructor(message: string, status: number, code?: string | undefined, retryAfter?: string | undefined, body?: unknown | undefined);
|
|
1518
|
+
}
|
|
1392
1519
|
/**
|
|
1393
1520
|
* HTTP client for the prediction-server REST API.
|
|
1394
1521
|
*
|
|
@@ -1407,6 +1534,7 @@ declare class PredictClient {
|
|
|
1407
1534
|
private readonly options;
|
|
1408
1535
|
constructor(endpoint: string, options?: PredictClientOptions);
|
|
1409
1536
|
private requestOptions;
|
|
1537
|
+
private marketDataRequest;
|
|
1410
1538
|
/**
|
|
1411
1539
|
* List prediction events with optional filtering, sorting, and pagination.
|
|
1412
1540
|
*
|
|
@@ -1477,6 +1605,19 @@ declare class PredictClient {
|
|
|
1477
1605
|
* @returns A paginated page of comments.
|
|
1478
1606
|
*/
|
|
1479
1607
|
listEventComments(slug: string, params: ListCommentsParams): Promise<PredictPage<PredictComment>>;
|
|
1608
|
+
/** Register or refresh the complete provider-neutral market-data demand set. */
|
|
1609
|
+
watchMarketData(request: MarketDataWatchRequest): Promise<MarketDataWatchResponse>;
|
|
1610
|
+
/** Read cache-only quote snapshots for at most 500 provider-neutral keys. */
|
|
1611
|
+
getMarketDataQuotes(markets: MarketDataMarketKey[]): Promise<MarketDataQuotesResponse>;
|
|
1612
|
+
/** Read all cached Top20 outcome books for one provider-neutral market. */
|
|
1613
|
+
getMarketDataOrderbooks(slug: string, source: ProviderSource): Promise<MarketDataOrderbooksResponse>;
|
|
1614
|
+
/**
|
|
1615
|
+
* Revalidate a page's allowlist-only structure representation.
|
|
1616
|
+
*
|
|
1617
|
+
* The path must remain inside the prediction API so callers cannot turn a
|
|
1618
|
+
* configured authenticated client into a cross-origin request primitive.
|
|
1619
|
+
*/
|
|
1620
|
+
getMarketStructure(path: string, ifNoneMatch?: string): Promise<MarketStructureHttpResponse>;
|
|
1480
1621
|
/**
|
|
1481
1622
|
* Fetch a single prediction market by its slug.
|
|
1482
1623
|
*
|
|
@@ -2364,4 +2505,4 @@ declare function buildClobPayload(signedOrder: SignedOrder, owner: string): Clob
|
|
|
2364
2505
|
*/
|
|
2365
2506
|
declare function getPolymarketSharesPrecision(tickSize: string): number;
|
|
2366
2507
|
|
|
2367
|
-
export { type
|
|
2508
|
+
export { type PredictOrder as $, type SportsOrderbookKey as A, type EventStats as B, type EventStatus as C, type EventSortField as D, type EsportsTaxonomyParams as E, type SimilarEventsParams as F, type PredictMarket as G, type OrderbookOutcome as H, type ListMarketTradesParams as I, type PredictTrade as J, type PriceHistoryRange as K, type ListEventsParams as L, type MarketDataBBAComponent as M, type PriceHistoryParams as N, type Orderbook as O, type ProviderSource as P, type PriceHistoryResponse as Q, type ListCandlesticksParams as R, type SportsTaxonomyParams as S, type Candlestick as T, type ListCommentsParams as U, type PredictComment as V, type PositionsResponse as W, type PositionValueResponse as X, type AvailableSharesResponse as Y, type BalanceResponse as Z, type ListOrdersParams as _, type MarketDataValueComponent as a, type MarketDataMarketQuoteResult as a$, type ListOrdersMultiParams as a0, type PredictOrdersResponse as a1, type CancelOrderResult as a2, type MatchesParams as a3, type MatchGroupPage as a4, type MatchGroup as a5, type MatchMarketParams as a6, type MatchMarketPage as a7, type ListTradesParams as a8, type ListTradesMultiParams as a9, type PolymarketTypedData as aA, type TickSizeResponse as aB, type FeeRateResponse as aC, type RebateConfig as aD, type WsConnectionStatus as aE, type WsDataMessage as aF, type WsPriceEvent as aG, type WsOrderbookEvent as aH, type WsTradeEvent as aI, type CreateOrderInput as aJ, MarketDataHttpError as aK, createPredictClient as aL, type PredictClientOptions as aM, MARKET_STRUCTURE_MEDIA_TYPE_V1 as aN, createPredictWsClient as aO, type PredictWsClientConfig as aP, type ProviderMeta as aQ, type PredictTag as aR, type SettlementSource as aS, type MarketResult as aT, type MarketOutcome as aU, type MarketDataSchemaVersion as aV, type MarketDataMarketView as aW, type MarketDataMarketKey as aX, type MarketDataEventWatch as aY, type MarketDataQuotesRequest as aZ, type MarketDataOutcomeQuote as a_, type DFlowQuoteRequest as aa, type DFlowQuoteResponse as ab, type DFlowSubmitResponse as ac, type DFlowSubmitRequest as ad, type DFlowKYCStatus as ae, type PolymarketSetupStatus as af, type PolymarketDepositWalletDeployResponse as ag, type WithdrawBuildResponse as ah, type WithdrawBuildRequest as ai, type WithdrawSubmitResponse as aj, type WithdrawSubmitRequest as ak, type WithdrawStatusResponse as al, type PolymarketDepositAddresses as am, type PolymarketSupportedAsset as an, type PolymarketWithdrawResponse as ao, type PolymarketWithdrawRequest as ap, type PolymarketWithdrawPrepareResponse as aq, type PolymarketWithdrawPrepareRequest as ar, type PolymarketWithdrawQuoteResponse as as, type PolymarketWithdrawQuoteRequest as at, type PolymarketWithdrawRelayBuildResponse as au, type PolymarketWithdrawRelayBuildRequest as av, type PolymarketWithdrawRelaySubmitResponse as aw, type PolymarketWithdrawRelaySubmitRequest as ax, type PolymarketWithdrawBridgeStatusResponse as ay, type PolymarketRedeemResponse as az, type MarketDataInitialQuotes as b, type MatchMarketFlat as b$, type MarketDataQuotesResponse as b0, type MarketDataOutcomeOrderbook as b1, type MarketStructureResourceType as b2, type MarketStructureOutcome as b3, type MarketStructureMarket as b4, type MarketStructureItem as b5, type MarketStructureHttpResponse as b6, type OrderbookLevel as b7, type OrderbookBatchItem as b8, type OrderbookBatchResult as b9, type PredictPosition as bA, type PositionValue as bB, type PositionValueError as bC, type OrderStatus as bD, type OrderSide as bE, type DFlowOrderContext as bF, type PolymarketOrderType as bG, type PolymarketTickSize as bH, type PolymarketWalletKind as bI, type PolymarketDepositWalletDeployRequest as bJ, type DepositBuildRequest as bK, type DepositBuildResponse as bL, type DepositSubmitRequest as bM, type DepositSubmitResponse as bN, type DepositStatusResponse as bO, type UnsignedTx as bP, type PolymarketBridgeToken as bQ, type PolymarketSupportedAssetsResponse as bR, type PolymarketTypedDataArg as bS, type MatchStatus as bT, type MatchGroupEntry as bU, type MatchGroupMarket as bV, type MatchSortField as bW, type MatchesStats as bX, type MatchConfidenceTier as bY, type SignalTag as bZ, type MatchLeg as b_, type OrderbooksBatchRequest as ba, type OrderbooksBatchResponse as bb, type SportsProviderSource as bc, type SportsEventType as bd, type SportsRouteType as be, type SportsTaxonomyNodeType as bf, type SportsBinaryOutcome as bg, type SportsTaxonomyNode as bh, type SportsTaxonomySection as bi, type SportsParticipant as bj, type SportsLiveState as bk, type SportsMarketOutcome as bl, type SportsInlineMarket as bm, type SportsMarket as bn, type SportsMarketGroup as bo, type SportsMatchCard as bp, type SportsPropEventCard as bq, type EsportsMatchDetailParams as br, type PredictSearchResultType as bs, type PredictSearchSortField as bt, type PredictSearchResult as bu, type TradeType as bv, type EventSummary as bw, type MarketSummary as bx, type PredictCommentProfile as by, type PricePoint as bz, type MarketDataBookLevel as c, SIDE as c$, type WsChannel as c0, type WsChannelEvent as c1, type WsClientMessage as c2, type WsSubscribeMessage as c3, type WsPingMessage as c4, type WsServerMessage as c5, type WsPongMessage as c6, type WsSubscribedMessage as c7, type WsErrorCode as c8, type WsErrorMessage as c9, fetchEventsPage as cA, type ResolveEventsParamsInput as cB, type TagSlugSelection as cC, marketQueryKey as cD, fetchMarket as cE, matchesQueryKey as cF, matchQueryKey as cG, fetchMatchesPage as cH, matchMarketsQueryKey as cI, fetchMatchMarketsPage as cJ, CLOB_AUTH_DOMAIN as cK, CLOB_AUTH_TYPES as cL, buildClobAuthMessage as cM, hmacSha256Base64 as cN, buildPolymarketL2Headers as cO, derivePolymarketApiKey as cP, type HttpMethod as cQ, type PolymarketL2HeadersInput as cR, type PolymarketL2Headers as cS, type BuildClobAuthMessageInput as cT, CTF_EXCHANGE_ADDRESS as cU, NEG_RISK_CTF_EXCHANGE_ADDRESS as cV, USDC_ADDRESS as cW, POLYGON_CHAIN_ID as cX, buildCtfExchangeDomain as cY, CTF_ORDER_TYPES as cZ, ORDER_TYPE as c_, type PolymarketRedeemPrepareInput as ca, type PolymarketRedeemPrepareResponse as cb, type PolymarketRedeemInput as cc, eventQueryKey as cd, fetchEvent as ce, predictSearchQueryKey as cf, fetchPredictSearch as cg, sportsTaxonomyQueryKey as ch, fetchSportsTaxonomy as ci, sportsMatchesQueryKey as cj, fetchSportsMatches as ck, sportsPropsQueryKey as cl, fetchSportsProps as cm, esportsTaxonomyQueryKey as cn, fetchEsportsTaxonomy as co, esportsMatchesQueryKey as cp, fetchEsportsMatches as cq, esportsPropsQueryKey as cr, fetchEsportsProps as cs, sportsRoutingQueryKey as ct, fetchSportsRouting as cu, sportsMatchDetailQueryKey as cv, fetchSportsMatchDetail as cw, resolveTagSlug as cx, resolveEventsParams as cy, infiniteEventsQueryKey as cz, type MarketStatus as d, buildOrderMessage as d0, buildSignedOrder as d1, buildClobPayload as d2, getPolymarketSharesPrecision as d3, normalizePolymarketTickSize as d4, type ClobOrderPayload as d5, type BuildOrderMessageInput as d6, type OrderMessage as d7, type SignedOrder as d8, DEFAULT_PAGE_SIZE as d9, resolveSportsTaxonomyParams as da, resolveSportsMatchesParams as db, resolveSportsPropsParams as dc, resolveEsportsTaxonomyParams as dd, resolveEsportsMatchesParams as de, resolveEsportsPropsParams as df, resolveSportsRoutingParams as dg, esportsMatchDetailQueryKey as dh, resolveSportsMatchDetailParams as di, resolveEsportsMatchDetailParams as dj, fetchEsportsMatchDetail as dk, resolvePredictSearchParams as dl, type MarketDataWatchRequest as e, type MarketDataWatchResponse as f, type MarketStructureResponse as g, type MarketDataOrderbooksResponse as h, PredictClient as i, PredictWsClient as j, type PredictPage as k, type PredictEvent as l, type PredictSearchParams as m, type PredictSearchResponse as n, type SportsTaxonomyResponse as o, type SportsMatchesParams as p, type SportsMatchesResponse as q, type SportsPropsParams as r, type SportsPropsResponse as s, type EsportsMatchesParams as t, type EsportsPropsParams as u, type SportsRoutingParams as v, type SportsRoutingResponse as w, type SportsSection as x, type SportsMatchDetailParams as y, type SportsMatchDetail as z };
|
|
@@ -61,6 +61,8 @@ interface PredictEvent {
|
|
|
61
61
|
settlement_sources?: SettlementSource[];
|
|
62
62
|
/** Nested markets; omitted when the request used `with_markets=false`. */
|
|
63
63
|
markets?: PredictMarket[];
|
|
64
|
+
/** Cache-only quote snapshot embedded when the market-data contract is enabled. */
|
|
65
|
+
initial_quotes?: MarketDataInitialQuotes;
|
|
64
66
|
source: ProviderSource;
|
|
65
67
|
provider_meta?: ProviderMeta;
|
|
66
68
|
}
|
|
@@ -70,6 +72,8 @@ type MarketStatus = "pending" | "open" | "closed" | "voided";
|
|
|
70
72
|
type MarketResult = "yes" | "no" | "voided" | "";
|
|
71
73
|
/** One possible outcome in a binary (or multi-outcome) prediction market. */
|
|
72
74
|
interface MarketOutcome {
|
|
75
|
+
/** Provider-neutral structural identity; unique within the parent market. */
|
|
76
|
+
key: string;
|
|
73
77
|
/** Display name, e.g. "Yes" or "No". */
|
|
74
78
|
label: string;
|
|
75
79
|
/** Localized label for the request language. Falls back to `label` when absent. */
|
|
@@ -111,6 +115,119 @@ interface PredictMarket {
|
|
|
111
115
|
source: ProviderSource;
|
|
112
116
|
provider_meta?: ProviderMeta;
|
|
113
117
|
}
|
|
118
|
+
declare const MARKET_STRUCTURE_MEDIA_TYPE_V1 = "application/vnd.liberfi.market-structure+json;v=1";
|
|
119
|
+
type MarketDataSchemaVersion = 1;
|
|
120
|
+
type MarketDataMarketView = "summary" | "full";
|
|
121
|
+
interface MarketDataMarketKey {
|
|
122
|
+
source: ProviderSource;
|
|
123
|
+
market_slug: string;
|
|
124
|
+
}
|
|
125
|
+
interface MarketDataEventWatch {
|
|
126
|
+
source: ProviderSource;
|
|
127
|
+
event_slug: string;
|
|
128
|
+
market_view: MarketDataMarketView;
|
|
129
|
+
}
|
|
130
|
+
interface MarketDataWatchRequest {
|
|
131
|
+
quote_events?: MarketDataEventWatch[];
|
|
132
|
+
quote_markets?: MarketDataMarketKey[];
|
|
133
|
+
orderbook_market?: MarketDataMarketKey;
|
|
134
|
+
}
|
|
135
|
+
interface MarketDataWatchResponse {
|
|
136
|
+
refresh_after_ms: number;
|
|
137
|
+
}
|
|
138
|
+
interface MarketDataQuotesRequest {
|
|
139
|
+
markets: MarketDataMarketKey[];
|
|
140
|
+
}
|
|
141
|
+
interface MarketDataValueComponent {
|
|
142
|
+
available: boolean;
|
|
143
|
+
value?: number;
|
|
144
|
+
provider_timestamp?: string;
|
|
145
|
+
observed_at?: string;
|
|
146
|
+
}
|
|
147
|
+
interface MarketDataBBAComponent {
|
|
148
|
+
available: boolean;
|
|
149
|
+
empty: boolean;
|
|
150
|
+
best_bid?: number;
|
|
151
|
+
best_ask?: number;
|
|
152
|
+
midpoint?: number;
|
|
153
|
+
provider_timestamp?: string;
|
|
154
|
+
observed_at?: string;
|
|
155
|
+
}
|
|
156
|
+
interface MarketDataOutcomeQuote extends MarketDataMarketKey {
|
|
157
|
+
outcome: string;
|
|
158
|
+
bba: MarketDataBBAComponent;
|
|
159
|
+
last_trade: MarketDataValueComponent;
|
|
160
|
+
tick_size: MarketDataValueComponent;
|
|
161
|
+
}
|
|
162
|
+
interface MarketDataMarketQuoteResult extends MarketDataMarketKey {
|
|
163
|
+
realtime_supported: boolean;
|
|
164
|
+
outcomes: MarketDataOutcomeQuote[];
|
|
165
|
+
}
|
|
166
|
+
interface MarketDataQuotesResponse {
|
|
167
|
+
schema_version: MarketDataSchemaVersion;
|
|
168
|
+
markets: MarketDataMarketQuoteResult[];
|
|
169
|
+
}
|
|
170
|
+
type MarketDataInitialQuotes = MarketDataQuotesResponse;
|
|
171
|
+
interface MarketDataBookLevel {
|
|
172
|
+
price: string;
|
|
173
|
+
size: string;
|
|
174
|
+
}
|
|
175
|
+
interface MarketDataOutcomeOrderbook {
|
|
176
|
+
outcome: string;
|
|
177
|
+
provider_timestamp?: string;
|
|
178
|
+
observed_at: string;
|
|
179
|
+
bids: MarketDataBookLevel[];
|
|
180
|
+
asks: MarketDataBookLevel[];
|
|
181
|
+
}
|
|
182
|
+
interface MarketDataOrderbooksResponse extends MarketDataMarketKey {
|
|
183
|
+
schema_version: MarketDataSchemaVersion;
|
|
184
|
+
orderbooks: MarketDataOutcomeOrderbook[];
|
|
185
|
+
}
|
|
186
|
+
type MarketStructureResourceType = "event" | "match" | "prop";
|
|
187
|
+
interface MarketStructureOutcome {
|
|
188
|
+
key: string;
|
|
189
|
+
label: string;
|
|
190
|
+
label_trans?: string;
|
|
191
|
+
quote_capable: boolean;
|
|
192
|
+
orderbook_capable: boolean;
|
|
193
|
+
price_history_supported: boolean;
|
|
194
|
+
book_channel?: string;
|
|
195
|
+
}
|
|
196
|
+
interface MarketStructureMarket extends MarketDataMarketKey {
|
|
197
|
+
question: string;
|
|
198
|
+
question_trans?: string;
|
|
199
|
+
status: MarketStatus;
|
|
200
|
+
realtime_supported: boolean;
|
|
201
|
+
realtime_book_supported: boolean;
|
|
202
|
+
outcomes: MarketStructureOutcome[];
|
|
203
|
+
}
|
|
204
|
+
interface MarketStructureItem {
|
|
205
|
+
resource_type: MarketStructureResourceType;
|
|
206
|
+
source?: ProviderSource;
|
|
207
|
+
resource_slug: string;
|
|
208
|
+
section?: SportsSection;
|
|
209
|
+
title: string;
|
|
210
|
+
title_trans?: string;
|
|
211
|
+
status: string;
|
|
212
|
+
market_view: MarketDataMarketView;
|
|
213
|
+
markets_included: boolean;
|
|
214
|
+
item_channel?: string;
|
|
215
|
+
markets: MarketStructureMarket[];
|
|
216
|
+
}
|
|
217
|
+
interface MarketStructureResponse {
|
|
218
|
+
representation_schema_version: 1;
|
|
219
|
+
initial_quotes_contract_enabled: boolean;
|
|
220
|
+
items: MarketStructureItem[];
|
|
221
|
+
}
|
|
222
|
+
type MarketStructureHttpResponse = {
|
|
223
|
+
status: 200;
|
|
224
|
+
etag: string;
|
|
225
|
+
body: MarketStructureResponse;
|
|
226
|
+
} | {
|
|
227
|
+
status: 304;
|
|
228
|
+
etag: string;
|
|
229
|
+
body?: never;
|
|
230
|
+
};
|
|
114
231
|
/** Generic paginated result set returned by the prediction-server list endpoints. */
|
|
115
232
|
interface PredictPage<T> {
|
|
116
233
|
items: T[];
|
|
@@ -216,7 +333,7 @@ interface OrderbooksBatchResponse {
|
|
|
216
333
|
/** Top-level evergreen sports section. */
|
|
217
334
|
type SportsSection = "sports" | "esports";
|
|
218
335
|
/** Sports provider used by orderbook keys and search results. */
|
|
219
|
-
type SportsProviderSource =
|
|
336
|
+
type SportsProviderSource = ProviderSource;
|
|
220
337
|
/** Public Sports event card type. */
|
|
221
338
|
type SportsEventType = "match" | "prop";
|
|
222
339
|
/** Sports event route result kind. */
|
|
@@ -305,6 +422,7 @@ interface SportsMatchCard {
|
|
|
305
422
|
market_count?: number;
|
|
306
423
|
live_state?: SportsLiveState;
|
|
307
424
|
inline_markets?: SportsInlineMarket[];
|
|
425
|
+
initial_quotes?: MarketDataInitialQuotes;
|
|
308
426
|
}
|
|
309
427
|
type SportsMatchesResponse = PredictPage<SportsMatchCard>;
|
|
310
428
|
interface SportsPropEventCard {
|
|
@@ -321,6 +439,7 @@ interface SportsPropEventCard {
|
|
|
321
439
|
start_time?: string;
|
|
322
440
|
parent_match_group_slug?: string;
|
|
323
441
|
markets?: SportsInlineMarket[];
|
|
442
|
+
initial_quotes?: MarketDataInitialQuotes;
|
|
324
443
|
}
|
|
325
444
|
type SportsPropsResponse = PredictPage<SportsPropEventCard>;
|
|
326
445
|
interface SportsRoutingResponse {
|
|
@@ -1389,6 +1508,14 @@ interface PolymarketRedeemResponse {
|
|
|
1389
1508
|
interface PredictClientOptions {
|
|
1390
1509
|
headers?: HeadersInit | (() => HeadersInit | undefined);
|
|
1391
1510
|
}
|
|
1511
|
+
declare class MarketDataHttpError extends Error {
|
|
1512
|
+
readonly status: number;
|
|
1513
|
+
readonly code?: string | undefined;
|
|
1514
|
+
readonly retryAfter?: string | undefined;
|
|
1515
|
+
readonly body?: unknown | undefined;
|
|
1516
|
+
readonly name = "MarketDataHttpError";
|
|
1517
|
+
constructor(message: string, status: number, code?: string | undefined, retryAfter?: string | undefined, body?: unknown | undefined);
|
|
1518
|
+
}
|
|
1392
1519
|
/**
|
|
1393
1520
|
* HTTP client for the prediction-server REST API.
|
|
1394
1521
|
*
|
|
@@ -1407,6 +1534,7 @@ declare class PredictClient {
|
|
|
1407
1534
|
private readonly options;
|
|
1408
1535
|
constructor(endpoint: string, options?: PredictClientOptions);
|
|
1409
1536
|
private requestOptions;
|
|
1537
|
+
private marketDataRequest;
|
|
1410
1538
|
/**
|
|
1411
1539
|
* List prediction events with optional filtering, sorting, and pagination.
|
|
1412
1540
|
*
|
|
@@ -1477,6 +1605,19 @@ declare class PredictClient {
|
|
|
1477
1605
|
* @returns A paginated page of comments.
|
|
1478
1606
|
*/
|
|
1479
1607
|
listEventComments(slug: string, params: ListCommentsParams): Promise<PredictPage<PredictComment>>;
|
|
1608
|
+
/** Register or refresh the complete provider-neutral market-data demand set. */
|
|
1609
|
+
watchMarketData(request: MarketDataWatchRequest): Promise<MarketDataWatchResponse>;
|
|
1610
|
+
/** Read cache-only quote snapshots for at most 500 provider-neutral keys. */
|
|
1611
|
+
getMarketDataQuotes(markets: MarketDataMarketKey[]): Promise<MarketDataQuotesResponse>;
|
|
1612
|
+
/** Read all cached Top20 outcome books for one provider-neutral market. */
|
|
1613
|
+
getMarketDataOrderbooks(slug: string, source: ProviderSource): Promise<MarketDataOrderbooksResponse>;
|
|
1614
|
+
/**
|
|
1615
|
+
* Revalidate a page's allowlist-only structure representation.
|
|
1616
|
+
*
|
|
1617
|
+
* The path must remain inside the prediction API so callers cannot turn a
|
|
1618
|
+
* configured authenticated client into a cross-origin request primitive.
|
|
1619
|
+
*/
|
|
1620
|
+
getMarketStructure(path: string, ifNoneMatch?: string): Promise<MarketStructureHttpResponse>;
|
|
1480
1621
|
/**
|
|
1481
1622
|
* Fetch a single prediction market by its slug.
|
|
1482
1623
|
*
|
|
@@ -2364,4 +2505,4 @@ declare function buildClobPayload(signedOrder: SignedOrder, owner: string): Clob
|
|
|
2364
2505
|
*/
|
|
2365
2506
|
declare function getPolymarketSharesPrecision(tickSize: string): number;
|
|
2366
2507
|
|
|
2367
|
-
export { type
|
|
2508
|
+
export { type PredictOrder as $, type SportsOrderbookKey as A, type EventStats as B, type EventStatus as C, type EventSortField as D, type EsportsTaxonomyParams as E, type SimilarEventsParams as F, type PredictMarket as G, type OrderbookOutcome as H, type ListMarketTradesParams as I, type PredictTrade as J, type PriceHistoryRange as K, type ListEventsParams as L, type MarketDataBBAComponent as M, type PriceHistoryParams as N, type Orderbook as O, type ProviderSource as P, type PriceHistoryResponse as Q, type ListCandlesticksParams as R, type SportsTaxonomyParams as S, type Candlestick as T, type ListCommentsParams as U, type PredictComment as V, type PositionsResponse as W, type PositionValueResponse as X, type AvailableSharesResponse as Y, type BalanceResponse as Z, type ListOrdersParams as _, type MarketDataValueComponent as a, type MarketDataMarketQuoteResult as a$, type ListOrdersMultiParams as a0, type PredictOrdersResponse as a1, type CancelOrderResult as a2, type MatchesParams as a3, type MatchGroupPage as a4, type MatchGroup as a5, type MatchMarketParams as a6, type MatchMarketPage as a7, type ListTradesParams as a8, type ListTradesMultiParams as a9, type PolymarketTypedData as aA, type TickSizeResponse as aB, type FeeRateResponse as aC, type RebateConfig as aD, type WsConnectionStatus as aE, type WsDataMessage as aF, type WsPriceEvent as aG, type WsOrderbookEvent as aH, type WsTradeEvent as aI, type CreateOrderInput as aJ, MarketDataHttpError as aK, createPredictClient as aL, type PredictClientOptions as aM, MARKET_STRUCTURE_MEDIA_TYPE_V1 as aN, createPredictWsClient as aO, type PredictWsClientConfig as aP, type ProviderMeta as aQ, type PredictTag as aR, type SettlementSource as aS, type MarketResult as aT, type MarketOutcome as aU, type MarketDataSchemaVersion as aV, type MarketDataMarketView as aW, type MarketDataMarketKey as aX, type MarketDataEventWatch as aY, type MarketDataQuotesRequest as aZ, type MarketDataOutcomeQuote as a_, type DFlowQuoteRequest as aa, type DFlowQuoteResponse as ab, type DFlowSubmitResponse as ac, type DFlowSubmitRequest as ad, type DFlowKYCStatus as ae, type PolymarketSetupStatus as af, type PolymarketDepositWalletDeployResponse as ag, type WithdrawBuildResponse as ah, type WithdrawBuildRequest as ai, type WithdrawSubmitResponse as aj, type WithdrawSubmitRequest as ak, type WithdrawStatusResponse as al, type PolymarketDepositAddresses as am, type PolymarketSupportedAsset as an, type PolymarketWithdrawResponse as ao, type PolymarketWithdrawRequest as ap, type PolymarketWithdrawPrepareResponse as aq, type PolymarketWithdrawPrepareRequest as ar, type PolymarketWithdrawQuoteResponse as as, type PolymarketWithdrawQuoteRequest as at, type PolymarketWithdrawRelayBuildResponse as au, type PolymarketWithdrawRelayBuildRequest as av, type PolymarketWithdrawRelaySubmitResponse as aw, type PolymarketWithdrawRelaySubmitRequest as ax, type PolymarketWithdrawBridgeStatusResponse as ay, type PolymarketRedeemResponse as az, type MarketDataInitialQuotes as b, type MatchMarketFlat as b$, type MarketDataQuotesResponse as b0, type MarketDataOutcomeOrderbook as b1, type MarketStructureResourceType as b2, type MarketStructureOutcome as b3, type MarketStructureMarket as b4, type MarketStructureItem as b5, type MarketStructureHttpResponse as b6, type OrderbookLevel as b7, type OrderbookBatchItem as b8, type OrderbookBatchResult as b9, type PredictPosition as bA, type PositionValue as bB, type PositionValueError as bC, type OrderStatus as bD, type OrderSide as bE, type DFlowOrderContext as bF, type PolymarketOrderType as bG, type PolymarketTickSize as bH, type PolymarketWalletKind as bI, type PolymarketDepositWalletDeployRequest as bJ, type DepositBuildRequest as bK, type DepositBuildResponse as bL, type DepositSubmitRequest as bM, type DepositSubmitResponse as bN, type DepositStatusResponse as bO, type UnsignedTx as bP, type PolymarketBridgeToken as bQ, type PolymarketSupportedAssetsResponse as bR, type PolymarketTypedDataArg as bS, type MatchStatus as bT, type MatchGroupEntry as bU, type MatchGroupMarket as bV, type MatchSortField as bW, type MatchesStats as bX, type MatchConfidenceTier as bY, type SignalTag as bZ, type MatchLeg as b_, type OrderbooksBatchRequest as ba, type OrderbooksBatchResponse as bb, type SportsProviderSource as bc, type SportsEventType as bd, type SportsRouteType as be, type SportsTaxonomyNodeType as bf, type SportsBinaryOutcome as bg, type SportsTaxonomyNode as bh, type SportsTaxonomySection as bi, type SportsParticipant as bj, type SportsLiveState as bk, type SportsMarketOutcome as bl, type SportsInlineMarket as bm, type SportsMarket as bn, type SportsMarketGroup as bo, type SportsMatchCard as bp, type SportsPropEventCard as bq, type EsportsMatchDetailParams as br, type PredictSearchResultType as bs, type PredictSearchSortField as bt, type PredictSearchResult as bu, type TradeType as bv, type EventSummary as bw, type MarketSummary as bx, type PredictCommentProfile as by, type PricePoint as bz, type MarketDataBookLevel as c, SIDE as c$, type WsChannel as c0, type WsChannelEvent as c1, type WsClientMessage as c2, type WsSubscribeMessage as c3, type WsPingMessage as c4, type WsServerMessage as c5, type WsPongMessage as c6, type WsSubscribedMessage as c7, type WsErrorCode as c8, type WsErrorMessage as c9, fetchEventsPage as cA, type ResolveEventsParamsInput as cB, type TagSlugSelection as cC, marketQueryKey as cD, fetchMarket as cE, matchesQueryKey as cF, matchQueryKey as cG, fetchMatchesPage as cH, matchMarketsQueryKey as cI, fetchMatchMarketsPage as cJ, CLOB_AUTH_DOMAIN as cK, CLOB_AUTH_TYPES as cL, buildClobAuthMessage as cM, hmacSha256Base64 as cN, buildPolymarketL2Headers as cO, derivePolymarketApiKey as cP, type HttpMethod as cQ, type PolymarketL2HeadersInput as cR, type PolymarketL2Headers as cS, type BuildClobAuthMessageInput as cT, CTF_EXCHANGE_ADDRESS as cU, NEG_RISK_CTF_EXCHANGE_ADDRESS as cV, USDC_ADDRESS as cW, POLYGON_CHAIN_ID as cX, buildCtfExchangeDomain as cY, CTF_ORDER_TYPES as cZ, ORDER_TYPE as c_, type PolymarketRedeemPrepareInput as ca, type PolymarketRedeemPrepareResponse as cb, type PolymarketRedeemInput as cc, eventQueryKey as cd, fetchEvent as ce, predictSearchQueryKey as cf, fetchPredictSearch as cg, sportsTaxonomyQueryKey as ch, fetchSportsTaxonomy as ci, sportsMatchesQueryKey as cj, fetchSportsMatches as ck, sportsPropsQueryKey as cl, fetchSportsProps as cm, esportsTaxonomyQueryKey as cn, fetchEsportsTaxonomy as co, esportsMatchesQueryKey as cp, fetchEsportsMatches as cq, esportsPropsQueryKey as cr, fetchEsportsProps as cs, sportsRoutingQueryKey as ct, fetchSportsRouting as cu, sportsMatchDetailQueryKey as cv, fetchSportsMatchDetail as cw, resolveTagSlug as cx, resolveEventsParams as cy, infiniteEventsQueryKey as cz, type MarketStatus as d, buildOrderMessage as d0, buildSignedOrder as d1, buildClobPayload as d2, getPolymarketSharesPrecision as d3, normalizePolymarketTickSize as d4, type ClobOrderPayload as d5, type BuildOrderMessageInput as d6, type OrderMessage as d7, type SignedOrder as d8, DEFAULT_PAGE_SIZE as d9, resolveSportsTaxonomyParams as da, resolveSportsMatchesParams as db, resolveSportsPropsParams as dc, resolveEsportsTaxonomyParams as dd, resolveEsportsMatchesParams as de, resolveEsportsPropsParams as df, resolveSportsRoutingParams as dg, esportsMatchDetailQueryKey as dh, resolveSportsMatchDetailParams as di, resolveEsportsMatchDetailParams as dj, fetchEsportsMatchDetail as dk, resolvePredictSearchParams as dl, type MarketDataWatchRequest as e, type MarketDataWatchResponse as f, type MarketStructureResponse as g, type MarketDataOrderbooksResponse as h, PredictClient as i, PredictWsClient as j, type PredictPage as k, type PredictEvent as l, type PredictSearchParams as m, type PredictSearchResponse as n, type SportsTaxonomyResponse as o, type SportsMatchesParams as p, type SportsMatchesResponse as q, type SportsPropsParams as r, type SportsPropsResponse as s, type EsportsMatchesParams as t, type EsportsPropsParams as u, type SportsRoutingParams as v, type SportsRoutingResponse as w, type SportsSection as x, type SportsMatchDetailParams as y, type SportsMatchDetail as z };
|
package/dist/server.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Z as BalanceResponse, cT as BuildClobAuthMessageInput, d6 as BuildOrderMessageInput, cK as CLOB_AUTH_DOMAIN, cL as CLOB_AUTH_TYPES, cU as CTF_EXCHANGE_ADDRESS, cZ as CTF_ORDER_TYPES, a2 as CancelOrderResult, T as Candlestick, d5 as ClobOrderPayload, aJ as CreateOrderInput, d9 as DEFAULT_PAGE_SIZE, bF as DFlowOrderContext, aa as DFlowQuoteRequest, ab as DFlowQuoteResponse, ad as DFlowSubmitRequest, ac as DFlowSubmitResponse, bK as DepositBuildRequest, bL as DepositBuildResponse, bO as DepositStatusResponse, bM as DepositSubmitRequest, bN as DepositSubmitResponse, br as EsportsMatchDetailParams, t as EsportsMatchesParams, u as EsportsPropsParams, E as EsportsTaxonomyParams, D as EventSortField, C as EventStatus, bw as EventSummary, cQ as HttpMethod, R as ListCandlesticksParams, L as ListEventsParams, I as ListMarketTradesParams, _ as ListOrdersParams, a8 as ListTradesParams, aU as MarketOutcome, aT as MarketResult, d as MarketStatus, bx as MarketSummary, bY as MatchConfidenceTier, a5 as MatchGroup, bU as MatchGroupEntry, bV as MatchGroupMarket, a4 as MatchGroupPage, b_ as MatchLeg, b$ as MatchMarketFlat, a7 as MatchMarketPage, a6 as MatchMarketParams, bW as MatchSortField, bT as MatchStatus, a3 as MatchesParams, bX as MatchesStats, cV as NEG_RISK_CTF_EXCHANGE_ADDRESS, c_ as ORDER_TYPE, d7 as OrderMessage, bE as OrderSide, bD as OrderStatus, O as Orderbook, b7 as OrderbookLevel, cX as POLYGON_CHAIN_ID, cS as PolymarketL2Headers, cR as PolymarketL2HeadersInput, bG as PolymarketOrderType, bB as PositionValue, bC as PositionValueError, X as PositionValueResponse, W as PositionsResponse, i as PredictClient, aM as PredictClientOptions, l as PredictEvent, G as PredictMarket, $ as PredictOrder, k as PredictPage, bA as PredictPosition, m as PredictSearchParams, n as PredictSearchResponse, bu as PredictSearchResult, bs as PredictSearchResultType, bt as PredictSearchSortField, aR as PredictTag, J as PredictTrade, j as PredictWsClient, aP as PredictWsClientConfig, N as PriceHistoryParams, K as PriceHistoryRange, Q as PriceHistoryResponse, bz as PricePoint, aQ as ProviderMeta, P as ProviderSource, cB as ResolveEventsParamsInput, c$ as SIDE, aS as SettlementSource, bZ as SignalTag, d8 as SignedOrder, F as SimilarEventsParams, bg as SportsBinaryOutcome, bd as SportsEventType, bm as SportsInlineMarket, bk as SportsLiveState, bn as SportsMarket, bo as SportsMarketGroup, bl as SportsMarketOutcome, bp as SportsMatchCard, z as SportsMatchDetail, y as SportsMatchDetailParams, p as SportsMatchesParams, q as SportsMatchesResponse, A as SportsOrderbookKey, bj as SportsParticipant, bq as SportsPropEventCard, r as SportsPropsParams, s as SportsPropsResponse, bc as SportsProviderSource, be as SportsRouteType, v as SportsRoutingParams, w as SportsRoutingResponse, x as SportsSection, bh as SportsTaxonomyNode, bf as SportsTaxonomyNodeType, S as SportsTaxonomyParams, o as SportsTaxonomyResponse, bi as SportsTaxonomySection, cC as TagSlugSelection, bv as TradeType, cW as USDC_ADDRESS, bP as UnsignedTx, c0 as WsChannel, c1 as WsChannelEvent, c2 as WsClientMessage, aE as WsConnectionStatus, aF as WsDataMessage, c8 as WsErrorCode, c9 as WsErrorMessage, aH as WsOrderbookEvent, c4 as WsPingMessage, c6 as WsPongMessage, aG as WsPriceEvent, c5 as WsServerMessage, c3 as WsSubscribeMessage, c7 as WsSubscribedMessage, aI as WsTradeEvent, cM as buildClobAuthMessage, d2 as buildClobPayload, cY as buildCtfExchangeDomain, d0 as buildOrderMessage, cO as buildPolymarketL2Headers, d1 as buildSignedOrder, aL as createPredictClient, aO as createPredictWsClient, cP as derivePolymarketApiKey, dh as esportsMatchDetailQueryKey, cp as esportsMatchesQueryKey, cr as esportsPropsQueryKey, cn as esportsTaxonomyQueryKey, cd as eventQueryKey, dk as fetchEsportsMatchDetail, cq as fetchEsportsMatches, cs as fetchEsportsProps, co as fetchEsportsTaxonomy, ce as fetchEvent, cA as fetchEventsPage, cE as fetchMarket, cJ as fetchMatchMarketsPage, cH as fetchMatchesPage, cg as fetchPredictSearch, cw as fetchSportsMatchDetail, ck as fetchSportsMatches, cm as fetchSportsProps, cu as fetchSportsRouting, ci as fetchSportsTaxonomy, cN as hmacSha256Base64, cz as infiniteEventsQueryKey, cD as marketQueryKey, cI as matchMarketsQueryKey, cG as matchQueryKey, cF as matchesQueryKey, cf as predictSearchQueryKey, dj as resolveEsportsMatchDetailParams, de as resolveEsportsMatchesParams, df as resolveEsportsPropsParams, dd as resolveEsportsTaxonomyParams, cy as resolveEventsParams, dl as resolvePredictSearchParams, di as resolveSportsMatchDetailParams, db as resolveSportsMatchesParams, dc as resolveSportsPropsParams, dg as resolveSportsRoutingParams, da as resolveSportsTaxonomyParams, cx as resolveTagSlug, cv as sportsMatchDetailQueryKey, cj as sportsMatchesQueryKey, cl as sportsPropsQueryKey, ct as sportsRoutingQueryKey, ch as sportsTaxonomyQueryKey } from './server-1_Lm8FLS.mjs';
|
package/dist/server.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Z as BalanceResponse, cT as BuildClobAuthMessageInput, d6 as BuildOrderMessageInput, cK as CLOB_AUTH_DOMAIN, cL as CLOB_AUTH_TYPES, cU as CTF_EXCHANGE_ADDRESS, cZ as CTF_ORDER_TYPES, a2 as CancelOrderResult, T as Candlestick, d5 as ClobOrderPayload, aJ as CreateOrderInput, d9 as DEFAULT_PAGE_SIZE, bF as DFlowOrderContext, aa as DFlowQuoteRequest, ab as DFlowQuoteResponse, ad as DFlowSubmitRequest, ac as DFlowSubmitResponse, bK as DepositBuildRequest, bL as DepositBuildResponse, bO as DepositStatusResponse, bM as DepositSubmitRequest, bN as DepositSubmitResponse, br as EsportsMatchDetailParams, t as EsportsMatchesParams, u as EsportsPropsParams, E as EsportsTaxonomyParams, D as EventSortField, C as EventStatus, bw as EventSummary, cQ as HttpMethod, R as ListCandlesticksParams, L as ListEventsParams, I as ListMarketTradesParams, _ as ListOrdersParams, a8 as ListTradesParams, aU as MarketOutcome, aT as MarketResult, d as MarketStatus, bx as MarketSummary, bY as MatchConfidenceTier, a5 as MatchGroup, bU as MatchGroupEntry, bV as MatchGroupMarket, a4 as MatchGroupPage, b_ as MatchLeg, b$ as MatchMarketFlat, a7 as MatchMarketPage, a6 as MatchMarketParams, bW as MatchSortField, bT as MatchStatus, a3 as MatchesParams, bX as MatchesStats, cV as NEG_RISK_CTF_EXCHANGE_ADDRESS, c_ as ORDER_TYPE, d7 as OrderMessage, bE as OrderSide, bD as OrderStatus, O as Orderbook, b7 as OrderbookLevel, cX as POLYGON_CHAIN_ID, cS as PolymarketL2Headers, cR as PolymarketL2HeadersInput, bG as PolymarketOrderType, bB as PositionValue, bC as PositionValueError, X as PositionValueResponse, W as PositionsResponse, i as PredictClient, aM as PredictClientOptions, l as PredictEvent, G as PredictMarket, $ as PredictOrder, k as PredictPage, bA as PredictPosition, m as PredictSearchParams, n as PredictSearchResponse, bu as PredictSearchResult, bs as PredictSearchResultType, bt as PredictSearchSortField, aR as PredictTag, J as PredictTrade, j as PredictWsClient, aP as PredictWsClientConfig, N as PriceHistoryParams, K as PriceHistoryRange, Q as PriceHistoryResponse, bz as PricePoint, aQ as ProviderMeta, P as ProviderSource, cB as ResolveEventsParamsInput, c$ as SIDE, aS as SettlementSource, bZ as SignalTag, d8 as SignedOrder, F as SimilarEventsParams, bg as SportsBinaryOutcome, bd as SportsEventType, bm as SportsInlineMarket, bk as SportsLiveState, bn as SportsMarket, bo as SportsMarketGroup, bl as SportsMarketOutcome, bp as SportsMatchCard, z as SportsMatchDetail, y as SportsMatchDetailParams, p as SportsMatchesParams, q as SportsMatchesResponse, A as SportsOrderbookKey, bj as SportsParticipant, bq as SportsPropEventCard, r as SportsPropsParams, s as SportsPropsResponse, bc as SportsProviderSource, be as SportsRouteType, v as SportsRoutingParams, w as SportsRoutingResponse, x as SportsSection, bh as SportsTaxonomyNode, bf as SportsTaxonomyNodeType, S as SportsTaxonomyParams, o as SportsTaxonomyResponse, bi as SportsTaxonomySection, cC as TagSlugSelection, bv as TradeType, cW as USDC_ADDRESS, bP as UnsignedTx, c0 as WsChannel, c1 as WsChannelEvent, c2 as WsClientMessage, aE as WsConnectionStatus, aF as WsDataMessage, c8 as WsErrorCode, c9 as WsErrorMessage, aH as WsOrderbookEvent, c4 as WsPingMessage, c6 as WsPongMessage, aG as WsPriceEvent, c5 as WsServerMessage, c3 as WsSubscribeMessage, c7 as WsSubscribedMessage, aI as WsTradeEvent, cM as buildClobAuthMessage, d2 as buildClobPayload, cY as buildCtfExchangeDomain, d0 as buildOrderMessage, cO as buildPolymarketL2Headers, d1 as buildSignedOrder, aL as createPredictClient, aO as createPredictWsClient, cP as derivePolymarketApiKey, dh as esportsMatchDetailQueryKey, cp as esportsMatchesQueryKey, cr as esportsPropsQueryKey, cn as esportsTaxonomyQueryKey, cd as eventQueryKey, dk as fetchEsportsMatchDetail, cq as fetchEsportsMatches, cs as fetchEsportsProps, co as fetchEsportsTaxonomy, ce as fetchEvent, cA as fetchEventsPage, cE as fetchMarket, cJ as fetchMatchMarketsPage, cH as fetchMatchesPage, cg as fetchPredictSearch, cw as fetchSportsMatchDetail, ck as fetchSportsMatches, cm as fetchSportsProps, cu as fetchSportsRouting, ci as fetchSportsTaxonomy, cN as hmacSha256Base64, cz as infiniteEventsQueryKey, cD as marketQueryKey, cI as matchMarketsQueryKey, cG as matchQueryKey, cF as matchesQueryKey, cf as predictSearchQueryKey, dj as resolveEsportsMatchDetailParams, de as resolveEsportsMatchesParams, df as resolveEsportsPropsParams, dd as resolveEsportsTaxonomyParams, cy as resolveEventsParams, dl as resolvePredictSearchParams, di as resolveSportsMatchDetailParams, db as resolveSportsMatchesParams, dc as resolveSportsPropsParams, dg as resolveSportsRoutingParams, da as resolveSportsTaxonomyParams, cx as resolveTagSlug, cv as sportsMatchDetailQueryKey, cj as sportsMatchesQueryKey, cl as sportsPropsQueryKey, ct as sportsRoutingQueryKey, ch as sportsTaxonomyQueryKey } from './server-1_Lm8FLS.js';
|