@liberfi.io/react-predict 0.3.70 → 0.3.72
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 +325 -3
- package/dist/index.d.ts +325 -3
- package/dist/index.js +1621 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1601 -16
- package/dist/index.mjs.map +1 -1
- package/dist/{server-B8IpkdJf.d.mts → server-CzifZBb_.d.mts} +141 -2
- package/dist/{server-B8IpkdJf.d.ts → server-CzifZBb_.d.ts} +141 -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 +6 -5
|
@@ -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
|
}
|
|
@@ -113,6 +115,119 @@ interface PredictMarket {
|
|
|
113
115
|
source: ProviderSource;
|
|
114
116
|
provider_meta?: ProviderMeta;
|
|
115
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
|
+
};
|
|
116
231
|
/** Generic paginated result set returned by the prediction-server list endpoints. */
|
|
117
232
|
interface PredictPage<T> {
|
|
118
233
|
items: T[];
|
|
@@ -218,7 +333,7 @@ interface OrderbooksBatchResponse {
|
|
|
218
333
|
/** Top-level evergreen sports section. */
|
|
219
334
|
type SportsSection = "sports" | "esports";
|
|
220
335
|
/** Sports provider used by orderbook keys and search results. */
|
|
221
|
-
type SportsProviderSource =
|
|
336
|
+
type SportsProviderSource = ProviderSource;
|
|
222
337
|
/** Public Sports event card type. */
|
|
223
338
|
type SportsEventType = "match" | "prop";
|
|
224
339
|
/** Sports event route result kind. */
|
|
@@ -307,6 +422,7 @@ interface SportsMatchCard {
|
|
|
307
422
|
market_count?: number;
|
|
308
423
|
live_state?: SportsLiveState;
|
|
309
424
|
inline_markets?: SportsInlineMarket[];
|
|
425
|
+
initial_quotes?: MarketDataInitialQuotes;
|
|
310
426
|
}
|
|
311
427
|
type SportsMatchesResponse = PredictPage<SportsMatchCard>;
|
|
312
428
|
interface SportsPropEventCard {
|
|
@@ -323,6 +439,7 @@ interface SportsPropEventCard {
|
|
|
323
439
|
start_time?: string;
|
|
324
440
|
parent_match_group_slug?: string;
|
|
325
441
|
markets?: SportsInlineMarket[];
|
|
442
|
+
initial_quotes?: MarketDataInitialQuotes;
|
|
326
443
|
}
|
|
327
444
|
type SportsPropsResponse = PredictPage<SportsPropEventCard>;
|
|
328
445
|
interface SportsRoutingResponse {
|
|
@@ -1391,6 +1508,14 @@ interface PolymarketRedeemResponse {
|
|
|
1391
1508
|
interface PredictClientOptions {
|
|
1392
1509
|
headers?: HeadersInit | (() => HeadersInit | undefined);
|
|
1393
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
|
+
}
|
|
1394
1519
|
/**
|
|
1395
1520
|
* HTTP client for the prediction-server REST API.
|
|
1396
1521
|
*
|
|
@@ -1409,6 +1534,7 @@ declare class PredictClient {
|
|
|
1409
1534
|
private readonly options;
|
|
1410
1535
|
constructor(endpoint: string, options?: PredictClientOptions);
|
|
1411
1536
|
private requestOptions;
|
|
1537
|
+
private marketDataRequest;
|
|
1412
1538
|
/**
|
|
1413
1539
|
* List prediction events with optional filtering, sorting, and pagination.
|
|
1414
1540
|
*
|
|
@@ -1479,6 +1605,19 @@ declare class PredictClient {
|
|
|
1479
1605
|
* @returns A paginated page of comments.
|
|
1480
1606
|
*/
|
|
1481
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>;
|
|
1482
1621
|
/**
|
|
1483
1622
|
* Fetch a single prediction market by its slug.
|
|
1484
1623
|
*
|
|
@@ -2366,4 +2505,4 @@ declare function buildClobPayload(signedOrder: SignedOrder, owner: string): Clob
|
|
|
2366
2505
|
*/
|
|
2367
2506
|
declare function getPolymarketSharesPrecision(tickSize: string): number;
|
|
2368
2507
|
|
|
2369
|
-
export { type
|
|
2508
|
+
export { type AvailableSharesResponse as $, type SportsSection as A, type SportsMatchDetailParams as B, type SportsMatchDetail as C, type SportsOrderbookKey as D, type EsportsTaxonomyParams as E, type EventStats as F, type EventStatus as G, type EventSortField as H, type SimilarEventsParams as I, type PredictMarket as J, type OrderbookOutcome as K, type ListEventsParams as L, type MarketDataBBAComponent as M, type ListMarketTradesParams as N, type Orderbook as O, type ProviderSource as P, type PredictTrade as Q, type PriceHistoryRange as R, type SportsTaxonomyParams as S, type PriceHistoryParams as T, type PriceHistoryResponse as U, type ListCandlesticksParams as V, type Candlestick as W, type ListCommentsParams as X, type PredictComment as Y, type PositionsResponse as Z, type PositionValueResponse as _, type MarketDataValueComponent as a, type MarketDataQuotesRequest as a$, type BalanceResponse as a0, type ListOrdersParams as a1, type PredictOrder as a2, type ListOrdersMultiParams as a3, type PredictOrdersResponse as a4, type CancelOrderResult as a5, type MatchesParams as a6, type MatchGroupPage as a7, type MatchGroup as a8, type MatchMarketParams as a9, type PolymarketWithdrawRelaySubmitRequest as aA, type PolymarketWithdrawBridgeStatusResponse as aB, type PolymarketRedeemResponse as aC, type PolymarketTypedData as aD, type TickSizeResponse as aE, type FeeRateResponse as aF, type RebateConfig as aG, type WsConnectionStatus as aH, type WsDataMessage as aI, type WsPriceEvent as aJ, type WsOrderbookEvent as aK, type WsTradeEvent as aL, type CreateOrderInput as aM, MarketDataHttpError as aN, createPredictClient as aO, type PredictClientOptions as aP, MARKET_STRUCTURE_MEDIA_TYPE_V1 as aQ, createPredictWsClient as aR, type PredictWsClientConfig as aS, type ProviderMeta as aT, type PredictTag as aU, type SettlementSource as aV, type MarketResult as aW, type MarketOutcome as aX, type MarketDataSchemaVersion as aY, type MarketDataMarketView as aZ, type MarketDataEventWatch as a_, type MatchMarketPage as aa, type ListTradesParams as ab, type ListTradesMultiParams as ac, type DFlowQuoteRequest as ad, type DFlowQuoteResponse as ae, type DFlowSubmitResponse as af, type DFlowSubmitRequest as ag, type DFlowKYCStatus as ah, type PolymarketSetupStatus as ai, type PolymarketDepositWalletDeployResponse as aj, type WithdrawBuildResponse as ak, type WithdrawBuildRequest as al, type WithdrawSubmitResponse as am, type WithdrawSubmitRequest as an, type WithdrawStatusResponse as ao, type PolymarketDepositAddresses as ap, type PolymarketSupportedAsset as aq, type PolymarketWithdrawResponse as ar, type PolymarketWithdrawRequest as as, type PolymarketWithdrawPrepareResponse as at, type PolymarketWithdrawPrepareRequest as au, type PolymarketWithdrawQuoteResponse as av, type PolymarketWithdrawQuoteRequest as aw, type PolymarketWithdrawRelayBuildResponse as ax, type PolymarketWithdrawRelayBuildRequest as ay, type PolymarketWithdrawRelaySubmitResponse as az, type MarketDataInitialQuotes as b, type MatchMarketFlat as b$, type MarketDataOutcomeQuote as b0, type MarketDataMarketQuoteResult as b1, type MarketDataOutcomeOrderbook as b2, type MarketStructureResourceType as b3, type MarketStructureOutcome as b4, type MarketStructureMarket as b5, type MarketStructureItem 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 MarketDataMarketKey as g, type MarketDataQuotesResponse as h, type MarketDataOrderbooksResponse as i, type MarketStructureHttpResponse as j, type MarketStructureResponse as k, PredictClient as l, PredictWsClient as m, type PredictPage as n, type PredictEvent as o, type PredictSearchParams as p, type PredictSearchResponse as q, type SportsTaxonomyResponse as r, type SportsMatchesParams as s, type SportsMatchesResponse as t, type SportsPropsParams as u, type SportsPropsResponse as v, type EsportsMatchesParams as w, type EsportsPropsParams as x, type SportsRoutingParams as y, type SportsRoutingResponse 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
|
}
|
|
@@ -113,6 +115,119 @@ interface PredictMarket {
|
|
|
113
115
|
source: ProviderSource;
|
|
114
116
|
provider_meta?: ProviderMeta;
|
|
115
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
|
+
};
|
|
116
231
|
/** Generic paginated result set returned by the prediction-server list endpoints. */
|
|
117
232
|
interface PredictPage<T> {
|
|
118
233
|
items: T[];
|
|
@@ -218,7 +333,7 @@ interface OrderbooksBatchResponse {
|
|
|
218
333
|
/** Top-level evergreen sports section. */
|
|
219
334
|
type SportsSection = "sports" | "esports";
|
|
220
335
|
/** Sports provider used by orderbook keys and search results. */
|
|
221
|
-
type SportsProviderSource =
|
|
336
|
+
type SportsProviderSource = ProviderSource;
|
|
222
337
|
/** Public Sports event card type. */
|
|
223
338
|
type SportsEventType = "match" | "prop";
|
|
224
339
|
/** Sports event route result kind. */
|
|
@@ -307,6 +422,7 @@ interface SportsMatchCard {
|
|
|
307
422
|
market_count?: number;
|
|
308
423
|
live_state?: SportsLiveState;
|
|
309
424
|
inline_markets?: SportsInlineMarket[];
|
|
425
|
+
initial_quotes?: MarketDataInitialQuotes;
|
|
310
426
|
}
|
|
311
427
|
type SportsMatchesResponse = PredictPage<SportsMatchCard>;
|
|
312
428
|
interface SportsPropEventCard {
|
|
@@ -323,6 +439,7 @@ interface SportsPropEventCard {
|
|
|
323
439
|
start_time?: string;
|
|
324
440
|
parent_match_group_slug?: string;
|
|
325
441
|
markets?: SportsInlineMarket[];
|
|
442
|
+
initial_quotes?: MarketDataInitialQuotes;
|
|
326
443
|
}
|
|
327
444
|
type SportsPropsResponse = PredictPage<SportsPropEventCard>;
|
|
328
445
|
interface SportsRoutingResponse {
|
|
@@ -1391,6 +1508,14 @@ interface PolymarketRedeemResponse {
|
|
|
1391
1508
|
interface PredictClientOptions {
|
|
1392
1509
|
headers?: HeadersInit | (() => HeadersInit | undefined);
|
|
1393
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
|
+
}
|
|
1394
1519
|
/**
|
|
1395
1520
|
* HTTP client for the prediction-server REST API.
|
|
1396
1521
|
*
|
|
@@ -1409,6 +1534,7 @@ declare class PredictClient {
|
|
|
1409
1534
|
private readonly options;
|
|
1410
1535
|
constructor(endpoint: string, options?: PredictClientOptions);
|
|
1411
1536
|
private requestOptions;
|
|
1537
|
+
private marketDataRequest;
|
|
1412
1538
|
/**
|
|
1413
1539
|
* List prediction events with optional filtering, sorting, and pagination.
|
|
1414
1540
|
*
|
|
@@ -1479,6 +1605,19 @@ declare class PredictClient {
|
|
|
1479
1605
|
* @returns A paginated page of comments.
|
|
1480
1606
|
*/
|
|
1481
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>;
|
|
1482
1621
|
/**
|
|
1483
1622
|
* Fetch a single prediction market by its slug.
|
|
1484
1623
|
*
|
|
@@ -2366,4 +2505,4 @@ declare function buildClobPayload(signedOrder: SignedOrder, owner: string): Clob
|
|
|
2366
2505
|
*/
|
|
2367
2506
|
declare function getPolymarketSharesPrecision(tickSize: string): number;
|
|
2368
2507
|
|
|
2369
|
-
export { type
|
|
2508
|
+
export { type AvailableSharesResponse as $, type SportsSection as A, type SportsMatchDetailParams as B, type SportsMatchDetail as C, type SportsOrderbookKey as D, type EsportsTaxonomyParams as E, type EventStats as F, type EventStatus as G, type EventSortField as H, type SimilarEventsParams as I, type PredictMarket as J, type OrderbookOutcome as K, type ListEventsParams as L, type MarketDataBBAComponent as M, type ListMarketTradesParams as N, type Orderbook as O, type ProviderSource as P, type PredictTrade as Q, type PriceHistoryRange as R, type SportsTaxonomyParams as S, type PriceHistoryParams as T, type PriceHistoryResponse as U, type ListCandlesticksParams as V, type Candlestick as W, type ListCommentsParams as X, type PredictComment as Y, type PositionsResponse as Z, type PositionValueResponse as _, type MarketDataValueComponent as a, type MarketDataQuotesRequest as a$, type BalanceResponse as a0, type ListOrdersParams as a1, type PredictOrder as a2, type ListOrdersMultiParams as a3, type PredictOrdersResponse as a4, type CancelOrderResult as a5, type MatchesParams as a6, type MatchGroupPage as a7, type MatchGroup as a8, type MatchMarketParams as a9, type PolymarketWithdrawRelaySubmitRequest as aA, type PolymarketWithdrawBridgeStatusResponse as aB, type PolymarketRedeemResponse as aC, type PolymarketTypedData as aD, type TickSizeResponse as aE, type FeeRateResponse as aF, type RebateConfig as aG, type WsConnectionStatus as aH, type WsDataMessage as aI, type WsPriceEvent as aJ, type WsOrderbookEvent as aK, type WsTradeEvent as aL, type CreateOrderInput as aM, MarketDataHttpError as aN, createPredictClient as aO, type PredictClientOptions as aP, MARKET_STRUCTURE_MEDIA_TYPE_V1 as aQ, createPredictWsClient as aR, type PredictWsClientConfig as aS, type ProviderMeta as aT, type PredictTag as aU, type SettlementSource as aV, type MarketResult as aW, type MarketOutcome as aX, type MarketDataSchemaVersion as aY, type MarketDataMarketView as aZ, type MarketDataEventWatch as a_, type MatchMarketPage as aa, type ListTradesParams as ab, type ListTradesMultiParams as ac, type DFlowQuoteRequest as ad, type DFlowQuoteResponse as ae, type DFlowSubmitResponse as af, type DFlowSubmitRequest as ag, type DFlowKYCStatus as ah, type PolymarketSetupStatus as ai, type PolymarketDepositWalletDeployResponse as aj, type WithdrawBuildResponse as ak, type WithdrawBuildRequest as al, type WithdrawSubmitResponse as am, type WithdrawSubmitRequest as an, type WithdrawStatusResponse as ao, type PolymarketDepositAddresses as ap, type PolymarketSupportedAsset as aq, type PolymarketWithdrawResponse as ar, type PolymarketWithdrawRequest as as, type PolymarketWithdrawPrepareResponse as at, type PolymarketWithdrawPrepareRequest as au, type PolymarketWithdrawQuoteResponse as av, type PolymarketWithdrawQuoteRequest as aw, type PolymarketWithdrawRelayBuildResponse as ax, type PolymarketWithdrawRelayBuildRequest as ay, type PolymarketWithdrawRelaySubmitResponse as az, type MarketDataInitialQuotes as b, type MatchMarketFlat as b$, type MarketDataOutcomeQuote as b0, type MarketDataMarketQuoteResult as b1, type MarketDataOutcomeOrderbook as b2, type MarketStructureResourceType as b3, type MarketStructureOutcome as b4, type MarketStructureMarket as b5, type MarketStructureItem 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 MarketDataMarketKey as g, type MarketDataQuotesResponse as h, type MarketDataOrderbooksResponse as i, type MarketStructureHttpResponse as j, type MarketStructureResponse as k, PredictClient as l, PredictWsClient as m, type PredictPage as n, type PredictEvent as o, type PredictSearchParams as p, type PredictSearchResponse as q, type SportsTaxonomyResponse as r, type SportsMatchesParams as s, type SportsMatchesResponse as t, type SportsPropsParams as u, type SportsPropsResponse as v, type EsportsMatchesParams as w, type EsportsPropsParams as x, type SportsRoutingParams as y, type SportsRoutingResponse as z };
|
package/dist/server.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a0 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, a5 as CancelOrderResult, W as Candlestick, d5 as ClobOrderPayload, aM as CreateOrderInput, d9 as DEFAULT_PAGE_SIZE, bF as DFlowOrderContext, ad as DFlowQuoteRequest, ae as DFlowQuoteResponse, ag as DFlowSubmitRequest, af as DFlowSubmitResponse, bK as DepositBuildRequest, bL as DepositBuildResponse, bO as DepositStatusResponse, bM as DepositSubmitRequest, bN as DepositSubmitResponse, br as EsportsMatchDetailParams, w as EsportsMatchesParams, x as EsportsPropsParams, E as EsportsTaxonomyParams, H as EventSortField, G as EventStatus, bw as EventSummary, cQ as HttpMethod, V as ListCandlesticksParams, L as ListEventsParams, N as ListMarketTradesParams, a1 as ListOrdersParams, ab as ListTradesParams, aX as MarketOutcome, aW as MarketResult, d as MarketStatus, bx as MarketSummary, bY as MatchConfidenceTier, a8 as MatchGroup, bU as MatchGroupEntry, bV as MatchGroupMarket, a7 as MatchGroupPage, b_ as MatchLeg, b$ as MatchMarketFlat, aa as MatchMarketPage, a9 as MatchMarketParams, bW as MatchSortField, bT as MatchStatus, a6 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, _ as PositionValueResponse, Z as PositionsResponse, l as PredictClient, aP as PredictClientOptions, o as PredictEvent, J as PredictMarket, a2 as PredictOrder, n as PredictPage, bA as PredictPosition, p as PredictSearchParams, q as PredictSearchResponse, bu as PredictSearchResult, bs as PredictSearchResultType, bt as PredictSearchSortField, aU as PredictTag, Q as PredictTrade, m as PredictWsClient, aS as PredictWsClientConfig, T as PriceHistoryParams, R as PriceHistoryRange, U as PriceHistoryResponse, bz as PricePoint, aT as ProviderMeta, P as ProviderSource, cB as ResolveEventsParamsInput, c$ as SIDE, aV as SettlementSource, bZ as SignalTag, d8 as SignedOrder, I 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, C as SportsMatchDetail, B as SportsMatchDetailParams, s as SportsMatchesParams, t as SportsMatchesResponse, D as SportsOrderbookKey, bj as SportsParticipant, bq as SportsPropEventCard, u as SportsPropsParams, v as SportsPropsResponse, bc as SportsProviderSource, be as SportsRouteType, y as SportsRoutingParams, z as SportsRoutingResponse, A as SportsSection, bh as SportsTaxonomyNode, bf as SportsTaxonomyNodeType, S as SportsTaxonomyParams, r 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, aH as WsConnectionStatus, aI as WsDataMessage, c8 as WsErrorCode, c9 as WsErrorMessage, aK as WsOrderbookEvent, c4 as WsPingMessage, c6 as WsPongMessage, aJ as WsPriceEvent, c5 as WsServerMessage, c3 as WsSubscribeMessage, c7 as WsSubscribedMessage, aL as WsTradeEvent, cM as buildClobAuthMessage, d2 as buildClobPayload, cY as buildCtfExchangeDomain, d0 as buildOrderMessage, cO as buildPolymarketL2Headers, d1 as buildSignedOrder, aO as createPredictClient, aR 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-CzifZBb_.mjs';
|
package/dist/server.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a0 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, a5 as CancelOrderResult, W as Candlestick, d5 as ClobOrderPayload, aM as CreateOrderInput, d9 as DEFAULT_PAGE_SIZE, bF as DFlowOrderContext, ad as DFlowQuoteRequest, ae as DFlowQuoteResponse, ag as DFlowSubmitRequest, af as DFlowSubmitResponse, bK as DepositBuildRequest, bL as DepositBuildResponse, bO as DepositStatusResponse, bM as DepositSubmitRequest, bN as DepositSubmitResponse, br as EsportsMatchDetailParams, w as EsportsMatchesParams, x as EsportsPropsParams, E as EsportsTaxonomyParams, H as EventSortField, G as EventStatus, bw as EventSummary, cQ as HttpMethod, V as ListCandlesticksParams, L as ListEventsParams, N as ListMarketTradesParams, a1 as ListOrdersParams, ab as ListTradesParams, aX as MarketOutcome, aW as MarketResult, d as MarketStatus, bx as MarketSummary, bY as MatchConfidenceTier, a8 as MatchGroup, bU as MatchGroupEntry, bV as MatchGroupMarket, a7 as MatchGroupPage, b_ as MatchLeg, b$ as MatchMarketFlat, aa as MatchMarketPage, a9 as MatchMarketParams, bW as MatchSortField, bT as MatchStatus, a6 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, _ as PositionValueResponse, Z as PositionsResponse, l as PredictClient, aP as PredictClientOptions, o as PredictEvent, J as PredictMarket, a2 as PredictOrder, n as PredictPage, bA as PredictPosition, p as PredictSearchParams, q as PredictSearchResponse, bu as PredictSearchResult, bs as PredictSearchResultType, bt as PredictSearchSortField, aU as PredictTag, Q as PredictTrade, m as PredictWsClient, aS as PredictWsClientConfig, T as PriceHistoryParams, R as PriceHistoryRange, U as PriceHistoryResponse, bz as PricePoint, aT as ProviderMeta, P as ProviderSource, cB as ResolveEventsParamsInput, c$ as SIDE, aV as SettlementSource, bZ as SignalTag, d8 as SignedOrder, I 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, C as SportsMatchDetail, B as SportsMatchDetailParams, s as SportsMatchesParams, t as SportsMatchesResponse, D as SportsOrderbookKey, bj as SportsParticipant, bq as SportsPropEventCard, u as SportsPropsParams, v as SportsPropsResponse, bc as SportsProviderSource, be as SportsRouteType, y as SportsRoutingParams, z as SportsRoutingResponse, A as SportsSection, bh as SportsTaxonomyNode, bf as SportsTaxonomyNodeType, S as SportsTaxonomyParams, r 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, aH as WsConnectionStatus, aI as WsDataMessage, c8 as WsErrorCode, c9 as WsErrorMessage, aK as WsOrderbookEvent, c4 as WsPingMessage, c6 as WsPongMessage, aJ as WsPriceEvent, c5 as WsServerMessage, c3 as WsSubscribeMessage, c7 as WsSubscribedMessage, aL as WsTradeEvent, cM as buildClobAuthMessage, d2 as buildClobPayload, cY as buildCtfExchangeDomain, d0 as buildOrderMessage, cO as buildPolymarketL2Headers, d1 as buildSignedOrder, aO as createPredictClient, aR 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-CzifZBb_.js';
|