@liberfi.io/react-predict 0.1.70 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/{server-HRO1ViL3.d.mts → server-DI6As_Bv.d.mts} +79 -3
- package/dist/{server-HRO1ViL3.d.ts → server-DI6As_Bv.d.ts} +79 -3
- package/dist/server.d.mts +1 -1
- package/dist/server.d.ts +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -326,6 +326,37 @@ await createOrder({
|
|
|
326
326
|
|
|
327
327
|
---
|
|
328
328
|
|
|
329
|
+
### Hooks — Matches (cross-platform pairs, v1.1)
|
|
330
|
+
|
|
331
|
+
`/api/v1/matches/markets` exposes pairs of equivalent markets across providers (e.g. Polymarket vs Kalshi). v1.1 reframes the surface as a pure **information layer** — the response carries an absolute YES-side `gap` (no fees, no arb framing) plus a `signal_tag` describing the quality of the pair.
|
|
332
|
+
|
|
333
|
+
#### `useInfiniteMatchMarkets(params, queryOptions?)`
|
|
334
|
+
|
|
335
|
+
Cursor-based infinite query for matched market pairs. Accepts `MatchMarketParams` (sort/filter/pagination + the new v1.1 `signal` filter, which is a comma-separated list of `SignalTag` values).
|
|
336
|
+
|
|
337
|
+
```tsx
|
|
338
|
+
const { data, fetchNextPage } = useInfiniteMatchMarkets({
|
|
339
|
+
sort_by: "spread",
|
|
340
|
+
sort_asc: false,
|
|
341
|
+
status: "active",
|
|
342
|
+
signal: "liquid_gap,active_gap",
|
|
343
|
+
limit: 20,
|
|
344
|
+
});
|
|
345
|
+
const matches = data?.pages.flatMap((p) => p.items) ?? [];
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
#### Key Types
|
|
349
|
+
|
|
350
|
+
| Type | Description |
|
|
351
|
+
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
352
|
+
| `MatchMarketFlat` | A flattened pair. v1.1 fields: `legs: MatchLeg[]`, `signal_tag?: SignalTag`, `age_seconds?: number`, plus `spread_percent` (now interpreted as the absolute YES-side gap, **not** arbitrage profit). |
|
|
353
|
+
| `MatchLeg` | Single market within a pair: `source`, `event_title`, `event_slug`, `market_id`, `best_price`, `vol_24h_usd`, `external_url`, `age_seconds`. |
|
|
354
|
+
| `SignalTag` | `"liquid_gap"` \| `"active_gap"` \| `"stale_gap"` \| `"stale_data"`. Replaces the deprecated `MatchConfidenceTier`. |
|
|
355
|
+
|
|
356
|
+
> The legacy `market_a` / `market_b` / `arb_profit` fields on `MatchMarketFlat` are still emitted for one release window but are marked `@deprecated`. Prefer reading from `legs[0]` / `legs[1]`. `arb_profit` is now always `0` — the matcher no longer applies fees.
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
|
|
329
360
|
### Server-safe exports (`/server`)
|
|
330
361
|
|
|
331
362
|
Import from `@liberfi.io/react-predict/server` in Server Components and route handlers:
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PredictClient, a as PredictWsClient, L as ListEventsParams, b as PredictPage, c as PredictEvent, d as ProviderSource, E as EventStats, e as EventStatus, f as EventSortField, S as SimilarEventsParams, g as PredictMarket, O as Orderbook, h as ListMarketTradesParams, i as PredictTrade, j as PriceHistoryRange, k as PriceHistoryResponse, l as ListCandlesticksParams, C as Candlestick, m as PositionsResponse, A as AvailableSharesResponse, B as BalanceResponse, n as ListOrdersParams, o as PredictOrder, p as ListOrdersMultiParams, q as PredictOrdersResponse, r as CancelOrderResult, M as MatchesParams, s as MatchGroupPage, t as MatchGroup, u as MatchMarketParams, v as MatchMarketPage, w as ListTradesParams, x as ListTradesMultiParams, D as DFlowQuoteRequest, y as DFlowQuoteResponse, z as DFlowSubmitResponse, F as DFlowSubmitRequest, G as DFlowKYCStatus, H as PolymarketSetupStatus, W as WithdrawBuildResponse, I as WithdrawBuildRequest, J as WithdrawSubmitResponse, K as WithdrawSubmitRequest, N as WithdrawStatusResponse, Q as PolymarketDepositAddresses, R as PolymarketWithdrawResponse, T as PolymarketWithdrawRequest, U as PolymarketRedeemResponse, V as TickSizeResponse, X as FeeRateResponse, Y as WsConnectionStatus, Z as WsDataMessage, _ as WsPriceEvent, $ as WsOrderbookEvent, a0 as WsTradeEvent, a1 as CreateOrderInput } from './server-
|
|
2
|
-
export {
|
|
1
|
+
import { P as PredictClient, a as PredictWsClient, L as ListEventsParams, b as PredictPage, c as PredictEvent, d as ProviderSource, E as EventStats, e as EventStatus, f as EventSortField, S as SimilarEventsParams, g as PredictMarket, O as Orderbook, h as ListMarketTradesParams, i as PredictTrade, j as PriceHistoryRange, k as PriceHistoryResponse, l as ListCandlesticksParams, C as Candlestick, m as PositionsResponse, A as AvailableSharesResponse, B as BalanceResponse, n as ListOrdersParams, o as PredictOrder, p as ListOrdersMultiParams, q as PredictOrdersResponse, r as CancelOrderResult, M as MatchesParams, s as MatchGroupPage, t as MatchGroup, u as MatchMarketParams, v as MatchMarketPage, w as ListTradesParams, x as ListTradesMultiParams, D as DFlowQuoteRequest, y as DFlowQuoteResponse, z as DFlowSubmitResponse, F as DFlowSubmitRequest, G as DFlowKYCStatus, H as PolymarketSetupStatus, W as WithdrawBuildResponse, I as WithdrawBuildRequest, J as WithdrawSubmitResponse, K as WithdrawSubmitRequest, N as WithdrawStatusResponse, Q as PolymarketDepositAddresses, R as PolymarketWithdrawResponse, T as PolymarketWithdrawRequest, U as PolymarketRedeemResponse, V as TickSizeResponse, X as FeeRateResponse, Y as WsConnectionStatus, Z as WsDataMessage, _ as WsPriceEvent, $ as WsOrderbookEvent, a0 as WsTradeEvent, a1 as CreateOrderInput } from './server-DI6As_Bv.mjs';
|
|
2
|
+
export { bb as BuildClobAuthMessageInput, bp as BuildOrderMessageInput, b2 as CLOB_AUTH_DOMAIN, b3 as CLOB_AUTH_TYPES, bc as CTF_EXCHANGE_ADDRESS, bh as CTF_ORDER_TYPES, bo as ClobOrderPayload, aj as DFlowOrderContext, al as DepositBuildRequest, am as DepositBuildResponse, ap as DepositStatusResponse, an as DepositSubmitRequest, ao as DepositSubmitResponse, ad as EventSummary, b8 as HttpMethod, aa as MarketOutcome, a9 as MarketResult, a8 as MarketStatus, ae as MarketSummary, ay as MatchConfidenceTier, au as MatchGroupEntry, av as MatchGroupMarket, aA as MatchLeg, aB as MatchMarketFlat, aw as MatchSortField, at as MatchStatus, ax as MatchesStats, bd as NEG_RISK_CTF_EXCHANGE_ADDRESS, bi as ORDER_TYPE, bq as OrderMessage, ai as OrderSide, ah as OrderStatus, ab as OrderbookLevel, bf as POLYGON_CHAIN_ID, ba as PolymarketL2Headers, b9 as PolymarketL2HeadersInput, ak as PolymarketOrderType, aO as PolymarketRedeemInput, aM as PolymarketRedeemPrepareInput, aN as PolymarketRedeemPrepareResponse, ar as PolymarketWithdrawPrepareRequest, as as PolymarketWithdrawPrepareResponse, ag as PredictPosition, a6 as PredictTag, a4 as PredictWsClientConfig, af as PricePoint, a5 as ProviderMeta, aV as ResolveEventsParamsInput, bj as SIDE, a7 as SettlementSource, az as SignalTag, br as SignedOrder, aW as TagSlugSelection, ac as TradeType, be as USDC_ADDRESS, aq as UnsignedTx, aC as WsChannel, aD as WsChannelEvent, aE as WsClientMessage, aK as WsErrorCode, aL as WsErrorMessage, aG as WsPingMessage, aI as WsPongMessage, aH as WsServerMessage, aF as WsSubscribeMessage, aJ as WsSubscribedMessage, b4 as buildClobAuthMessage, bm as buildClobPayload, bg as buildCtfExchangeDomain, bk as buildOrderMessage, b6 as buildPolymarketL2Headers, bl as buildSignedOrder, a2 as createPredictClient, a3 as createPredictWsClient, b7 as derivePolymarketApiKey, aP as eventQueryKey, aQ as fetchEvent, aU as fetchEventsPage, aY as fetchMarket, b1 as fetchMatchMarketsPage, a$ as fetchMatchesPage, bn as getPolymarketSharesPrecision, b5 as hmacSha256Base64, aT as infiniteEventsQueryKey, aX as marketQueryKey, b0 as matchMarketsQueryKey, a_ as matchQueryKey, aZ as matchesQueryKey, aS as resolveEventsParams, aR as resolveTagSlug } from './server-DI6As_Bv.mjs';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { PropsWithChildren } from 'react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PredictClient, a as PredictWsClient, L as ListEventsParams, b as PredictPage, c as PredictEvent, d as ProviderSource, E as EventStats, e as EventStatus, f as EventSortField, S as SimilarEventsParams, g as PredictMarket, O as Orderbook, h as ListMarketTradesParams, i as PredictTrade, j as PriceHistoryRange, k as PriceHistoryResponse, l as ListCandlesticksParams, C as Candlestick, m as PositionsResponse, A as AvailableSharesResponse, B as BalanceResponse, n as ListOrdersParams, o as PredictOrder, p as ListOrdersMultiParams, q as PredictOrdersResponse, r as CancelOrderResult, M as MatchesParams, s as MatchGroupPage, t as MatchGroup, u as MatchMarketParams, v as MatchMarketPage, w as ListTradesParams, x as ListTradesMultiParams, D as DFlowQuoteRequest, y as DFlowQuoteResponse, z as DFlowSubmitResponse, F as DFlowSubmitRequest, G as DFlowKYCStatus, H as PolymarketSetupStatus, W as WithdrawBuildResponse, I as WithdrawBuildRequest, J as WithdrawSubmitResponse, K as WithdrawSubmitRequest, N as WithdrawStatusResponse, Q as PolymarketDepositAddresses, R as PolymarketWithdrawResponse, T as PolymarketWithdrawRequest, U as PolymarketRedeemResponse, V as TickSizeResponse, X as FeeRateResponse, Y as WsConnectionStatus, Z as WsDataMessage, _ as WsPriceEvent, $ as WsOrderbookEvent, a0 as WsTradeEvent, a1 as CreateOrderInput } from './server-
|
|
2
|
-
export {
|
|
1
|
+
import { P as PredictClient, a as PredictWsClient, L as ListEventsParams, b as PredictPage, c as PredictEvent, d as ProviderSource, E as EventStats, e as EventStatus, f as EventSortField, S as SimilarEventsParams, g as PredictMarket, O as Orderbook, h as ListMarketTradesParams, i as PredictTrade, j as PriceHistoryRange, k as PriceHistoryResponse, l as ListCandlesticksParams, C as Candlestick, m as PositionsResponse, A as AvailableSharesResponse, B as BalanceResponse, n as ListOrdersParams, o as PredictOrder, p as ListOrdersMultiParams, q as PredictOrdersResponse, r as CancelOrderResult, M as MatchesParams, s as MatchGroupPage, t as MatchGroup, u as MatchMarketParams, v as MatchMarketPage, w as ListTradesParams, x as ListTradesMultiParams, D as DFlowQuoteRequest, y as DFlowQuoteResponse, z as DFlowSubmitResponse, F as DFlowSubmitRequest, G as DFlowKYCStatus, H as PolymarketSetupStatus, W as WithdrawBuildResponse, I as WithdrawBuildRequest, J as WithdrawSubmitResponse, K as WithdrawSubmitRequest, N as WithdrawStatusResponse, Q as PolymarketDepositAddresses, R as PolymarketWithdrawResponse, T as PolymarketWithdrawRequest, U as PolymarketRedeemResponse, V as TickSizeResponse, X as FeeRateResponse, Y as WsConnectionStatus, Z as WsDataMessage, _ as WsPriceEvent, $ as WsOrderbookEvent, a0 as WsTradeEvent, a1 as CreateOrderInput } from './server-DI6As_Bv.js';
|
|
2
|
+
export { bb as BuildClobAuthMessageInput, bp as BuildOrderMessageInput, b2 as CLOB_AUTH_DOMAIN, b3 as CLOB_AUTH_TYPES, bc as CTF_EXCHANGE_ADDRESS, bh as CTF_ORDER_TYPES, bo as ClobOrderPayload, aj as DFlowOrderContext, al as DepositBuildRequest, am as DepositBuildResponse, ap as DepositStatusResponse, an as DepositSubmitRequest, ao as DepositSubmitResponse, ad as EventSummary, b8 as HttpMethod, aa as MarketOutcome, a9 as MarketResult, a8 as MarketStatus, ae as MarketSummary, ay as MatchConfidenceTier, au as MatchGroupEntry, av as MatchGroupMarket, aA as MatchLeg, aB as MatchMarketFlat, aw as MatchSortField, at as MatchStatus, ax as MatchesStats, bd as NEG_RISK_CTF_EXCHANGE_ADDRESS, bi as ORDER_TYPE, bq as OrderMessage, ai as OrderSide, ah as OrderStatus, ab as OrderbookLevel, bf as POLYGON_CHAIN_ID, ba as PolymarketL2Headers, b9 as PolymarketL2HeadersInput, ak as PolymarketOrderType, aO as PolymarketRedeemInput, aM as PolymarketRedeemPrepareInput, aN as PolymarketRedeemPrepareResponse, ar as PolymarketWithdrawPrepareRequest, as as PolymarketWithdrawPrepareResponse, ag as PredictPosition, a6 as PredictTag, a4 as PredictWsClientConfig, af as PricePoint, a5 as ProviderMeta, aV as ResolveEventsParamsInput, bj as SIDE, a7 as SettlementSource, az as SignalTag, br as SignedOrder, aW as TagSlugSelection, ac as TradeType, be as USDC_ADDRESS, aq as UnsignedTx, aC as WsChannel, aD as WsChannelEvent, aE as WsClientMessage, aK as WsErrorCode, aL as WsErrorMessage, aG as WsPingMessage, aI as WsPongMessage, aH as WsServerMessage, aF as WsSubscribeMessage, aJ as WsSubscribedMessage, b4 as buildClobAuthMessage, bm as buildClobPayload, bg as buildCtfExchangeDomain, bk as buildOrderMessage, b6 as buildPolymarketL2Headers, bl as buildSignedOrder, a2 as createPredictClient, a3 as createPredictWsClient, b7 as derivePolymarketApiKey, aP as eventQueryKey, aQ as fetchEvent, aU as fetchEventsPage, aY as fetchMarket, b1 as fetchMatchMarketsPage, a$ as fetchMatchesPage, bn as getPolymarketSharesPrecision, b5 as hmacSha256Base64, aT as infiniteEventsQueryKey, aX as marketQueryKey, b0 as matchMarketsQueryKey, a_ as matchQueryKey, aZ as matchesQueryKey, aS as resolveEventsParams, aR as resolveTagSlug } from './server-DI6As_Bv.js';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { PropsWithChildren } from 'react';
|
|
@@ -283,9 +283,24 @@ interface MatchGroupMarket {
|
|
|
283
283
|
market_a: PredictMarket;
|
|
284
284
|
source_b: ProviderSource;
|
|
285
285
|
market_b: PredictMarket;
|
|
286
|
+
/**
|
|
287
|
+
* v1.1: now `|a − b|` absolute YES-side gap, no longer fee-adjusted
|
|
288
|
+
* arbitrage edge. Range [0, 1].
|
|
289
|
+
*/
|
|
286
290
|
spread?: number;
|
|
291
|
+
/** v1.1: `|a − b| × 100`. */
|
|
287
292
|
spread_percent?: number;
|
|
293
|
+
/** @deprecated PRD v1.1 removed the arbitrage framing. Always `0`. */
|
|
288
294
|
arb_profit?: number;
|
|
295
|
+
/**
|
|
296
|
+
* v1.1: pair quality classification. Mirrors backend signal.go.
|
|
297
|
+
* - `liquid_gap`: both legs vol_24h ≥ vol_active_usd, fresh.
|
|
298
|
+
* - `active_gap`: at least one leg vol_24h ≥ vol_stale_usd, fresh.
|
|
299
|
+
* - `stale_gap`: both legs vol_24h < vol_stale_usd, fresh data.
|
|
300
|
+
* - `stale_data`: snapshot age > stale_age_seconds (data freshness wins).
|
|
301
|
+
*/
|
|
302
|
+
signal_tag?: SignalTag;
|
|
303
|
+
/** Pre-filter rejection reason (not surfaced to UI when set). */
|
|
289
304
|
reject_reason?: string;
|
|
290
305
|
}
|
|
291
306
|
/**
|
|
@@ -340,22 +355,78 @@ interface MatchGroupPage {
|
|
|
340
355
|
total?: number;
|
|
341
356
|
stats?: MatchesStats;
|
|
342
357
|
}
|
|
343
|
-
/**
|
|
358
|
+
/**
|
|
359
|
+
* Confidence tier for match quality.
|
|
360
|
+
* @deprecated v1.1 — UI surfaces `signal_tag` instead. Kept on the wire
|
|
361
|
+
* for one release for backwards compatibility.
|
|
362
|
+
*/
|
|
344
363
|
type MatchConfidenceTier = "high" | "medium" | "low";
|
|
345
|
-
/**
|
|
364
|
+
/**
|
|
365
|
+
* v1.1 pair-quality classification (PRD §5.3). Empty string is never
|
|
366
|
+
* emitted by the server — it's just here to silence narrowing on legacy
|
|
367
|
+
* cached responses that predate the migration.
|
|
368
|
+
*/
|
|
369
|
+
type SignalTag = "liquid_gap" | "active_gap" | "stale_gap" | "stale_data";
|
|
370
|
+
/**
|
|
371
|
+
* v1.1 per-leg projection of a market in a matched pair (PRD §5).
|
|
372
|
+
* Renders one side of the MatchMarketCard.
|
|
373
|
+
*/
|
|
374
|
+
interface MatchLeg {
|
|
375
|
+
source: ProviderSource;
|
|
376
|
+
event_title: string;
|
|
377
|
+
event_slug: string;
|
|
378
|
+
market_id: number;
|
|
379
|
+
market_slug: string;
|
|
380
|
+
question: string;
|
|
381
|
+
status: MarketStatus;
|
|
382
|
+
outcomes?: MarketOutcome[];
|
|
383
|
+
/**
|
|
384
|
+
* YES-side effective best price used for the gap. Mid (bid+ask)/2
|
|
385
|
+
* when both sides exist, else best_ask, else best_bid, else
|
|
386
|
+
* outcome.price. Always in [0, 1] when set.
|
|
387
|
+
*/
|
|
388
|
+
best_price?: number;
|
|
389
|
+
/** Per-leg 24h notional in USD. Liquidity proxy now that depth is deferred. */
|
|
390
|
+
vol_24h_usd?: number;
|
|
391
|
+
/**
|
|
392
|
+
* Deep link to this market on the original provider. Surfaced as the
|
|
393
|
+
* small "view on Polymarket / Kalshi" icon next to the leg.
|
|
394
|
+
*/
|
|
395
|
+
external_url?: string;
|
|
396
|
+
/** now − markets.synced_at for THIS leg, in whole seconds. */
|
|
397
|
+
age_seconds?: number;
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Flattened market pair from a match group (market-level granularity).
|
|
401
|
+
*
|
|
402
|
+
* v1.1: prefer reading `legs[0]` / `legs[1]` and `signal_tag`. The
|
|
403
|
+
* legacy `market_a` / `market_b` / `spread_percent` fields are still
|
|
404
|
+
* emitted for one release window so existing cached SDK responses do
|
|
405
|
+
* not 500 — they will be removed in v1.2.
|
|
406
|
+
*/
|
|
346
407
|
interface MatchMarketFlat {
|
|
347
408
|
match_id: number;
|
|
348
409
|
similarity_score: number;
|
|
410
|
+
/** @deprecated v1.1 — prefer `signal_tag`. */
|
|
349
411
|
confidence_tier: MatchConfidenceTier;
|
|
350
412
|
status: MatchStatus;
|
|
413
|
+
/** v1.1 primary projection — always length 2, ordered same as source_a/source_b. */
|
|
414
|
+
legs: MatchLeg[];
|
|
415
|
+
/** v1.1 pair quality (see SignalTag). */
|
|
416
|
+
signal_tag?: SignalTag;
|
|
417
|
+
/** v1.1 max(legs[*].age_seconds) — used for the pair-level freshness pill. */
|
|
418
|
+
age_seconds?: number;
|
|
351
419
|
source_a: ProviderSource;
|
|
352
420
|
event_a_title: string;
|
|
353
421
|
market_a: PredictMarket;
|
|
354
422
|
source_b: ProviderSource;
|
|
355
423
|
event_b_title: string;
|
|
356
424
|
market_b: PredictMarket;
|
|
425
|
+
/** v1.1 semantics: `|a − b|` absolute gap (0..1). */
|
|
357
426
|
spread?: number;
|
|
427
|
+
/** v1.1 semantics: `|a − b| × 100`. */
|
|
358
428
|
spread_percent?: number;
|
|
429
|
+
/** @deprecated PRD v1.1 removed arbitrage framing. */
|
|
359
430
|
arb_profit?: number;
|
|
360
431
|
combined_volume?: number;
|
|
361
432
|
combined_volume_24h?: number;
|
|
@@ -377,6 +448,11 @@ interface MatchMarketParams {
|
|
|
377
448
|
sources?: string;
|
|
378
449
|
status?: MatchStatus;
|
|
379
450
|
search?: string;
|
|
451
|
+
/**
|
|
452
|
+
* v1.1: comma-separated `SignalTag` values, e.g. `"liquid_gap,active_gap"`.
|
|
453
|
+
* Pass `"any"` (or omit) to disable signal filtering.
|
|
454
|
+
*/
|
|
455
|
+
signal?: string;
|
|
380
456
|
limit?: number;
|
|
381
457
|
offset?: number;
|
|
382
458
|
}
|
|
@@ -1614,4 +1690,4 @@ declare function buildClobPayload(signedOrder: SignedOrder, owner: string): Clob
|
|
|
1614
1690
|
*/
|
|
1615
1691
|
declare function getPolymarketSharesPrecision(tickSize: string): number;
|
|
1616
1692
|
|
|
1617
|
-
export { type WsOrderbookEvent as $, type AvailableSharesResponse as A, type BalanceResponse as B, type Candlestick as C, type DFlowQuoteRequest as D, type EventStats as E, type DFlowSubmitRequest as F, type DFlowKYCStatus as G, type PolymarketSetupStatus as H, type WithdrawBuildRequest as I, type WithdrawSubmitResponse as J, type WithdrawSubmitRequest as K, type ListEventsParams as L, type MatchesParams as M, type WithdrawStatusResponse as N, type Orderbook as O, PredictClient as P, type PolymarketDepositAddresses as Q, type PolymarketWithdrawResponse as R, type SimilarEventsParams as S, type PolymarketWithdrawRequest as T, type PolymarketRedeemResponse as U, type TickSizeResponse as V, type WithdrawBuildResponse as W, type FeeRateResponse as X, type WsConnectionStatus as Y, type WsDataMessage as Z, type WsPriceEvent as _, PredictWsClient as a,
|
|
1693
|
+
export { type WsOrderbookEvent as $, type AvailableSharesResponse as A, type BalanceResponse as B, type Candlestick as C, type DFlowQuoteRequest as D, type EventStats as E, type DFlowSubmitRequest as F, type DFlowKYCStatus as G, type PolymarketSetupStatus as H, type WithdrawBuildRequest as I, type WithdrawSubmitResponse as J, type WithdrawSubmitRequest as K, type ListEventsParams as L, type MatchesParams as M, type WithdrawStatusResponse as N, type Orderbook as O, PredictClient as P, type PolymarketDepositAddresses as Q, type PolymarketWithdrawResponse as R, type SimilarEventsParams as S, type PolymarketWithdrawRequest as T, type PolymarketRedeemResponse as U, type TickSizeResponse as V, type WithdrawBuildResponse as W, type FeeRateResponse as X, type WsConnectionStatus as Y, type WsDataMessage as Z, type WsPriceEvent as _, PredictWsClient as a, fetchMatchesPage as a$, type WsTradeEvent as a0, type CreateOrderInput as a1, createPredictClient as a2, createPredictWsClient as a3, type PredictWsClientConfig as a4, type ProviderMeta as a5, type PredictTag as a6, type SettlementSource as a7, type MarketStatus as a8, type MarketResult as a9, type MatchLeg as aA, type MatchMarketFlat as aB, type WsChannel as aC, type WsChannelEvent as aD, type WsClientMessage as aE, type WsSubscribeMessage as aF, type WsPingMessage as aG, type WsServerMessage as aH, type WsPongMessage as aI, type WsSubscribedMessage as aJ, type WsErrorCode as aK, type WsErrorMessage as aL, type PolymarketRedeemPrepareInput as aM, type PolymarketRedeemPrepareResponse as aN, type PolymarketRedeemInput as aO, eventQueryKey as aP, fetchEvent as aQ, resolveTagSlug as aR, resolveEventsParams as aS, infiniteEventsQueryKey as aT, fetchEventsPage as aU, type ResolveEventsParamsInput as aV, type TagSlugSelection as aW, marketQueryKey as aX, fetchMarket as aY, matchesQueryKey as aZ, matchQueryKey as a_, type MarketOutcome as aa, type OrderbookLevel as ab, type TradeType as ac, type EventSummary as ad, type MarketSummary as ae, type PricePoint as af, type PredictPosition as ag, type OrderStatus as ah, type OrderSide as ai, type DFlowOrderContext as aj, type PolymarketOrderType as ak, type DepositBuildRequest as al, type DepositBuildResponse as am, type DepositSubmitRequest as an, type DepositSubmitResponse as ao, type DepositStatusResponse as ap, type UnsignedTx as aq, type PolymarketWithdrawPrepareRequest as ar, type PolymarketWithdrawPrepareResponse as as, type MatchStatus as at, type MatchGroupEntry as au, type MatchGroupMarket as av, type MatchSortField as aw, type MatchesStats as ax, type MatchConfidenceTier as ay, type SignalTag as az, type PredictPage as b, matchMarketsQueryKey as b0, fetchMatchMarketsPage as b1, CLOB_AUTH_DOMAIN as b2, CLOB_AUTH_TYPES as b3, buildClobAuthMessage as b4, hmacSha256Base64 as b5, buildPolymarketL2Headers as b6, derivePolymarketApiKey as b7, type HttpMethod as b8, type PolymarketL2HeadersInput as b9, type PolymarketL2Headers as ba, type BuildClobAuthMessageInput as bb, CTF_EXCHANGE_ADDRESS as bc, NEG_RISK_CTF_EXCHANGE_ADDRESS as bd, USDC_ADDRESS as be, POLYGON_CHAIN_ID as bf, buildCtfExchangeDomain as bg, CTF_ORDER_TYPES as bh, ORDER_TYPE as bi, SIDE as bj, buildOrderMessage as bk, buildSignedOrder as bl, buildClobPayload as bm, getPolymarketSharesPrecision as bn, type ClobOrderPayload as bo, type BuildOrderMessageInput as bp, type OrderMessage as bq, type SignedOrder as br, DEFAULT_PAGE_SIZE as bs, type PredictEvent as c, type ProviderSource as d, type EventStatus as e, type EventSortField as f, type PredictMarket as g, type ListMarketTradesParams as h, type PredictTrade as i, type PriceHistoryRange as j, type PriceHistoryResponse as k, type ListCandlesticksParams as l, type PositionsResponse as m, type ListOrdersParams as n, type PredictOrder as o, type ListOrdersMultiParams as p, type PredictOrdersResponse as q, type CancelOrderResult as r, type MatchGroupPage as s, type MatchGroup as t, type MatchMarketParams as u, type MatchMarketPage as v, type ListTradesParams as w, type ListTradesMultiParams as x, type DFlowQuoteResponse as y, type DFlowSubmitResponse as z };
|
|
@@ -283,9 +283,24 @@ interface MatchGroupMarket {
|
|
|
283
283
|
market_a: PredictMarket;
|
|
284
284
|
source_b: ProviderSource;
|
|
285
285
|
market_b: PredictMarket;
|
|
286
|
+
/**
|
|
287
|
+
* v1.1: now `|a − b|` absolute YES-side gap, no longer fee-adjusted
|
|
288
|
+
* arbitrage edge. Range [0, 1].
|
|
289
|
+
*/
|
|
286
290
|
spread?: number;
|
|
291
|
+
/** v1.1: `|a − b| × 100`. */
|
|
287
292
|
spread_percent?: number;
|
|
293
|
+
/** @deprecated PRD v1.1 removed the arbitrage framing. Always `0`. */
|
|
288
294
|
arb_profit?: number;
|
|
295
|
+
/**
|
|
296
|
+
* v1.1: pair quality classification. Mirrors backend signal.go.
|
|
297
|
+
* - `liquid_gap`: both legs vol_24h ≥ vol_active_usd, fresh.
|
|
298
|
+
* - `active_gap`: at least one leg vol_24h ≥ vol_stale_usd, fresh.
|
|
299
|
+
* - `stale_gap`: both legs vol_24h < vol_stale_usd, fresh data.
|
|
300
|
+
* - `stale_data`: snapshot age > stale_age_seconds (data freshness wins).
|
|
301
|
+
*/
|
|
302
|
+
signal_tag?: SignalTag;
|
|
303
|
+
/** Pre-filter rejection reason (not surfaced to UI when set). */
|
|
289
304
|
reject_reason?: string;
|
|
290
305
|
}
|
|
291
306
|
/**
|
|
@@ -340,22 +355,78 @@ interface MatchGroupPage {
|
|
|
340
355
|
total?: number;
|
|
341
356
|
stats?: MatchesStats;
|
|
342
357
|
}
|
|
343
|
-
/**
|
|
358
|
+
/**
|
|
359
|
+
* Confidence tier for match quality.
|
|
360
|
+
* @deprecated v1.1 — UI surfaces `signal_tag` instead. Kept on the wire
|
|
361
|
+
* for one release for backwards compatibility.
|
|
362
|
+
*/
|
|
344
363
|
type MatchConfidenceTier = "high" | "medium" | "low";
|
|
345
|
-
/**
|
|
364
|
+
/**
|
|
365
|
+
* v1.1 pair-quality classification (PRD §5.3). Empty string is never
|
|
366
|
+
* emitted by the server — it's just here to silence narrowing on legacy
|
|
367
|
+
* cached responses that predate the migration.
|
|
368
|
+
*/
|
|
369
|
+
type SignalTag = "liquid_gap" | "active_gap" | "stale_gap" | "stale_data";
|
|
370
|
+
/**
|
|
371
|
+
* v1.1 per-leg projection of a market in a matched pair (PRD §5).
|
|
372
|
+
* Renders one side of the MatchMarketCard.
|
|
373
|
+
*/
|
|
374
|
+
interface MatchLeg {
|
|
375
|
+
source: ProviderSource;
|
|
376
|
+
event_title: string;
|
|
377
|
+
event_slug: string;
|
|
378
|
+
market_id: number;
|
|
379
|
+
market_slug: string;
|
|
380
|
+
question: string;
|
|
381
|
+
status: MarketStatus;
|
|
382
|
+
outcomes?: MarketOutcome[];
|
|
383
|
+
/**
|
|
384
|
+
* YES-side effective best price used for the gap. Mid (bid+ask)/2
|
|
385
|
+
* when both sides exist, else best_ask, else best_bid, else
|
|
386
|
+
* outcome.price. Always in [0, 1] when set.
|
|
387
|
+
*/
|
|
388
|
+
best_price?: number;
|
|
389
|
+
/** Per-leg 24h notional in USD. Liquidity proxy now that depth is deferred. */
|
|
390
|
+
vol_24h_usd?: number;
|
|
391
|
+
/**
|
|
392
|
+
* Deep link to this market on the original provider. Surfaced as the
|
|
393
|
+
* small "view on Polymarket / Kalshi" icon next to the leg.
|
|
394
|
+
*/
|
|
395
|
+
external_url?: string;
|
|
396
|
+
/** now − markets.synced_at for THIS leg, in whole seconds. */
|
|
397
|
+
age_seconds?: number;
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Flattened market pair from a match group (market-level granularity).
|
|
401
|
+
*
|
|
402
|
+
* v1.1: prefer reading `legs[0]` / `legs[1]` and `signal_tag`. The
|
|
403
|
+
* legacy `market_a` / `market_b` / `spread_percent` fields are still
|
|
404
|
+
* emitted for one release window so existing cached SDK responses do
|
|
405
|
+
* not 500 — they will be removed in v1.2.
|
|
406
|
+
*/
|
|
346
407
|
interface MatchMarketFlat {
|
|
347
408
|
match_id: number;
|
|
348
409
|
similarity_score: number;
|
|
410
|
+
/** @deprecated v1.1 — prefer `signal_tag`. */
|
|
349
411
|
confidence_tier: MatchConfidenceTier;
|
|
350
412
|
status: MatchStatus;
|
|
413
|
+
/** v1.1 primary projection — always length 2, ordered same as source_a/source_b. */
|
|
414
|
+
legs: MatchLeg[];
|
|
415
|
+
/** v1.1 pair quality (see SignalTag). */
|
|
416
|
+
signal_tag?: SignalTag;
|
|
417
|
+
/** v1.1 max(legs[*].age_seconds) — used for the pair-level freshness pill. */
|
|
418
|
+
age_seconds?: number;
|
|
351
419
|
source_a: ProviderSource;
|
|
352
420
|
event_a_title: string;
|
|
353
421
|
market_a: PredictMarket;
|
|
354
422
|
source_b: ProviderSource;
|
|
355
423
|
event_b_title: string;
|
|
356
424
|
market_b: PredictMarket;
|
|
425
|
+
/** v1.1 semantics: `|a − b|` absolute gap (0..1). */
|
|
357
426
|
spread?: number;
|
|
427
|
+
/** v1.1 semantics: `|a − b| × 100`. */
|
|
358
428
|
spread_percent?: number;
|
|
429
|
+
/** @deprecated PRD v1.1 removed arbitrage framing. */
|
|
359
430
|
arb_profit?: number;
|
|
360
431
|
combined_volume?: number;
|
|
361
432
|
combined_volume_24h?: number;
|
|
@@ -377,6 +448,11 @@ interface MatchMarketParams {
|
|
|
377
448
|
sources?: string;
|
|
378
449
|
status?: MatchStatus;
|
|
379
450
|
search?: string;
|
|
451
|
+
/**
|
|
452
|
+
* v1.1: comma-separated `SignalTag` values, e.g. `"liquid_gap,active_gap"`.
|
|
453
|
+
* Pass `"any"` (or omit) to disable signal filtering.
|
|
454
|
+
*/
|
|
455
|
+
signal?: string;
|
|
380
456
|
limit?: number;
|
|
381
457
|
offset?: number;
|
|
382
458
|
}
|
|
@@ -1614,4 +1690,4 @@ declare function buildClobPayload(signedOrder: SignedOrder, owner: string): Clob
|
|
|
1614
1690
|
*/
|
|
1615
1691
|
declare function getPolymarketSharesPrecision(tickSize: string): number;
|
|
1616
1692
|
|
|
1617
|
-
export { type WsOrderbookEvent as $, type AvailableSharesResponse as A, type BalanceResponse as B, type Candlestick as C, type DFlowQuoteRequest as D, type EventStats as E, type DFlowSubmitRequest as F, type DFlowKYCStatus as G, type PolymarketSetupStatus as H, type WithdrawBuildRequest as I, type WithdrawSubmitResponse as J, type WithdrawSubmitRequest as K, type ListEventsParams as L, type MatchesParams as M, type WithdrawStatusResponse as N, type Orderbook as O, PredictClient as P, type PolymarketDepositAddresses as Q, type PolymarketWithdrawResponse as R, type SimilarEventsParams as S, type PolymarketWithdrawRequest as T, type PolymarketRedeemResponse as U, type TickSizeResponse as V, type WithdrawBuildResponse as W, type FeeRateResponse as X, type WsConnectionStatus as Y, type WsDataMessage as Z, type WsPriceEvent as _, PredictWsClient as a,
|
|
1693
|
+
export { type WsOrderbookEvent as $, type AvailableSharesResponse as A, type BalanceResponse as B, type Candlestick as C, type DFlowQuoteRequest as D, type EventStats as E, type DFlowSubmitRequest as F, type DFlowKYCStatus as G, type PolymarketSetupStatus as H, type WithdrawBuildRequest as I, type WithdrawSubmitResponse as J, type WithdrawSubmitRequest as K, type ListEventsParams as L, type MatchesParams as M, type WithdrawStatusResponse as N, type Orderbook as O, PredictClient as P, type PolymarketDepositAddresses as Q, type PolymarketWithdrawResponse as R, type SimilarEventsParams as S, type PolymarketWithdrawRequest as T, type PolymarketRedeemResponse as U, type TickSizeResponse as V, type WithdrawBuildResponse as W, type FeeRateResponse as X, type WsConnectionStatus as Y, type WsDataMessage as Z, type WsPriceEvent as _, PredictWsClient as a, fetchMatchesPage as a$, type WsTradeEvent as a0, type CreateOrderInput as a1, createPredictClient as a2, createPredictWsClient as a3, type PredictWsClientConfig as a4, type ProviderMeta as a5, type PredictTag as a6, type SettlementSource as a7, type MarketStatus as a8, type MarketResult as a9, type MatchLeg as aA, type MatchMarketFlat as aB, type WsChannel as aC, type WsChannelEvent as aD, type WsClientMessage as aE, type WsSubscribeMessage as aF, type WsPingMessage as aG, type WsServerMessage as aH, type WsPongMessage as aI, type WsSubscribedMessage as aJ, type WsErrorCode as aK, type WsErrorMessage as aL, type PolymarketRedeemPrepareInput as aM, type PolymarketRedeemPrepareResponse as aN, type PolymarketRedeemInput as aO, eventQueryKey as aP, fetchEvent as aQ, resolveTagSlug as aR, resolveEventsParams as aS, infiniteEventsQueryKey as aT, fetchEventsPage as aU, type ResolveEventsParamsInput as aV, type TagSlugSelection as aW, marketQueryKey as aX, fetchMarket as aY, matchesQueryKey as aZ, matchQueryKey as a_, type MarketOutcome as aa, type OrderbookLevel as ab, type TradeType as ac, type EventSummary as ad, type MarketSummary as ae, type PricePoint as af, type PredictPosition as ag, type OrderStatus as ah, type OrderSide as ai, type DFlowOrderContext as aj, type PolymarketOrderType as ak, type DepositBuildRequest as al, type DepositBuildResponse as am, type DepositSubmitRequest as an, type DepositSubmitResponse as ao, type DepositStatusResponse as ap, type UnsignedTx as aq, type PolymarketWithdrawPrepareRequest as ar, type PolymarketWithdrawPrepareResponse as as, type MatchStatus as at, type MatchGroupEntry as au, type MatchGroupMarket as av, type MatchSortField as aw, type MatchesStats as ax, type MatchConfidenceTier as ay, type SignalTag as az, type PredictPage as b, matchMarketsQueryKey as b0, fetchMatchMarketsPage as b1, CLOB_AUTH_DOMAIN as b2, CLOB_AUTH_TYPES as b3, buildClobAuthMessage as b4, hmacSha256Base64 as b5, buildPolymarketL2Headers as b6, derivePolymarketApiKey as b7, type HttpMethod as b8, type PolymarketL2HeadersInput as b9, type PolymarketL2Headers as ba, type BuildClobAuthMessageInput as bb, CTF_EXCHANGE_ADDRESS as bc, NEG_RISK_CTF_EXCHANGE_ADDRESS as bd, USDC_ADDRESS as be, POLYGON_CHAIN_ID as bf, buildCtfExchangeDomain as bg, CTF_ORDER_TYPES as bh, ORDER_TYPE as bi, SIDE as bj, buildOrderMessage as bk, buildSignedOrder as bl, buildClobPayload as bm, getPolymarketSharesPrecision as bn, type ClobOrderPayload as bo, type BuildOrderMessageInput as bp, type OrderMessage as bq, type SignedOrder as br, DEFAULT_PAGE_SIZE as bs, type PredictEvent as c, type ProviderSource as d, type EventStatus as e, type EventSortField as f, type PredictMarket as g, type ListMarketTradesParams as h, type PredictTrade as i, type PriceHistoryRange as j, type PriceHistoryResponse as k, type ListCandlesticksParams as l, type PositionsResponse as m, type ListOrdersParams as n, type PredictOrder as o, type ListOrdersMultiParams as p, type PredictOrdersResponse as q, type CancelOrderResult as r, type MatchGroupPage as s, type MatchGroup as t, type MatchMarketParams as u, type MatchMarketPage as v, type ListTradesParams as w, type ListTradesMultiParams as x, type DFlowQuoteResponse as y, type DFlowSubmitResponse as z };
|
package/dist/server.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { B as BalanceResponse,
|
|
1
|
+
export { B as BalanceResponse, bb as BuildClobAuthMessageInput, bp as BuildOrderMessageInput, b2 as CLOB_AUTH_DOMAIN, b3 as CLOB_AUTH_TYPES, bc as CTF_EXCHANGE_ADDRESS, bh as CTF_ORDER_TYPES, r as CancelOrderResult, C as Candlestick, bo as ClobOrderPayload, a1 as CreateOrderInput, bs as DEFAULT_PAGE_SIZE, aj as DFlowOrderContext, D as DFlowQuoteRequest, y as DFlowQuoteResponse, F as DFlowSubmitRequest, z as DFlowSubmitResponse, al as DepositBuildRequest, am as DepositBuildResponse, ap as DepositStatusResponse, an as DepositSubmitRequest, ao as DepositSubmitResponse, f as EventSortField, e as EventStatus, ad as EventSummary, b8 as HttpMethod, l as ListCandlesticksParams, L as ListEventsParams, h as ListMarketTradesParams, n as ListOrdersParams, w as ListTradesParams, aa as MarketOutcome, a9 as MarketResult, a8 as MarketStatus, ae as MarketSummary, ay as MatchConfidenceTier, t as MatchGroup, au as MatchGroupEntry, av as MatchGroupMarket, s as MatchGroupPage, aA as MatchLeg, aB as MatchMarketFlat, v as MatchMarketPage, u as MatchMarketParams, aw as MatchSortField, at as MatchStatus, M as MatchesParams, ax as MatchesStats, bd as NEG_RISK_CTF_EXCHANGE_ADDRESS, bi as ORDER_TYPE, bq as OrderMessage, ai as OrderSide, ah as OrderStatus, O as Orderbook, ab as OrderbookLevel, bf as POLYGON_CHAIN_ID, ba as PolymarketL2Headers, b9 as PolymarketL2HeadersInput, ak as PolymarketOrderType, m as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, o as PredictOrder, b as PredictPage, ag as PredictPosition, a6 as PredictTag, i as PredictTrade, a as PredictWsClient, a4 as PredictWsClientConfig, j as PriceHistoryRange, k as PriceHistoryResponse, af as PricePoint, a5 as ProviderMeta, d as ProviderSource, aV as ResolveEventsParamsInput, bj as SIDE, a7 as SettlementSource, az as SignalTag, br as SignedOrder, S as SimilarEventsParams, aW as TagSlugSelection, ac as TradeType, be as USDC_ADDRESS, aq as UnsignedTx, aC as WsChannel, aD as WsChannelEvent, aE as WsClientMessage, Y as WsConnectionStatus, Z as WsDataMessage, aK as WsErrorCode, aL as WsErrorMessage, $ as WsOrderbookEvent, aG as WsPingMessage, aI as WsPongMessage, _ as WsPriceEvent, aH as WsServerMessage, aF as WsSubscribeMessage, aJ as WsSubscribedMessage, a0 as WsTradeEvent, b4 as buildClobAuthMessage, bm as buildClobPayload, bg as buildCtfExchangeDomain, bk as buildOrderMessage, b6 as buildPolymarketL2Headers, bl as buildSignedOrder, a2 as createPredictClient, a3 as createPredictWsClient, b7 as derivePolymarketApiKey, aP as eventQueryKey, aQ as fetchEvent, aU as fetchEventsPage, aY as fetchMarket, b1 as fetchMatchMarketsPage, a$ as fetchMatchesPage, b5 as hmacSha256Base64, aT as infiniteEventsQueryKey, aX as marketQueryKey, b0 as matchMarketsQueryKey, a_ as matchQueryKey, aZ as matchesQueryKey, aS as resolveEventsParams, aR as resolveTagSlug } from './server-DI6As_Bv.mjs';
|
package/dist/server.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { B as BalanceResponse,
|
|
1
|
+
export { B as BalanceResponse, bb as BuildClobAuthMessageInput, bp as BuildOrderMessageInput, b2 as CLOB_AUTH_DOMAIN, b3 as CLOB_AUTH_TYPES, bc as CTF_EXCHANGE_ADDRESS, bh as CTF_ORDER_TYPES, r as CancelOrderResult, C as Candlestick, bo as ClobOrderPayload, a1 as CreateOrderInput, bs as DEFAULT_PAGE_SIZE, aj as DFlowOrderContext, D as DFlowQuoteRequest, y as DFlowQuoteResponse, F as DFlowSubmitRequest, z as DFlowSubmitResponse, al as DepositBuildRequest, am as DepositBuildResponse, ap as DepositStatusResponse, an as DepositSubmitRequest, ao as DepositSubmitResponse, f as EventSortField, e as EventStatus, ad as EventSummary, b8 as HttpMethod, l as ListCandlesticksParams, L as ListEventsParams, h as ListMarketTradesParams, n as ListOrdersParams, w as ListTradesParams, aa as MarketOutcome, a9 as MarketResult, a8 as MarketStatus, ae as MarketSummary, ay as MatchConfidenceTier, t as MatchGroup, au as MatchGroupEntry, av as MatchGroupMarket, s as MatchGroupPage, aA as MatchLeg, aB as MatchMarketFlat, v as MatchMarketPage, u as MatchMarketParams, aw as MatchSortField, at as MatchStatus, M as MatchesParams, ax as MatchesStats, bd as NEG_RISK_CTF_EXCHANGE_ADDRESS, bi as ORDER_TYPE, bq as OrderMessage, ai as OrderSide, ah as OrderStatus, O as Orderbook, ab as OrderbookLevel, bf as POLYGON_CHAIN_ID, ba as PolymarketL2Headers, b9 as PolymarketL2HeadersInput, ak as PolymarketOrderType, m as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, o as PredictOrder, b as PredictPage, ag as PredictPosition, a6 as PredictTag, i as PredictTrade, a as PredictWsClient, a4 as PredictWsClientConfig, j as PriceHistoryRange, k as PriceHistoryResponse, af as PricePoint, a5 as ProviderMeta, d as ProviderSource, aV as ResolveEventsParamsInput, bj as SIDE, a7 as SettlementSource, az as SignalTag, br as SignedOrder, S as SimilarEventsParams, aW as TagSlugSelection, ac as TradeType, be as USDC_ADDRESS, aq as UnsignedTx, aC as WsChannel, aD as WsChannelEvent, aE as WsClientMessage, Y as WsConnectionStatus, Z as WsDataMessage, aK as WsErrorCode, aL as WsErrorMessage, $ as WsOrderbookEvent, aG as WsPingMessage, aI as WsPongMessage, _ as WsPriceEvent, aH as WsServerMessage, aF as WsSubscribeMessage, aJ as WsSubscribedMessage, a0 as WsTradeEvent, b4 as buildClobAuthMessage, bm as buildClobPayload, bg as buildCtfExchangeDomain, bk as buildOrderMessage, b6 as buildPolymarketL2Headers, bl as buildSignedOrder, a2 as createPredictClient, a3 as createPredictWsClient, b7 as derivePolymarketApiKey, aP as eventQueryKey, aQ as fetchEvent, aU as fetchEventsPage, aY as fetchMarket, b1 as fetchMatchMarketsPage, a$ as fetchMatchesPage, b5 as hmacSha256Base64, aT as infiniteEventsQueryKey, aX as marketQueryKey, b0 as matchMarketsQueryKey, a_ as matchQueryKey, aZ as matchesQueryKey, aS as resolveEventsParams, aR as resolveTagSlug } from './server-DI6As_Bv.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liberfi.io/react-predict",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "React hooks and client for prediction markets (prediction-server backend), including Polymarket and DFlow order flows",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"react-dom": ">=18"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@liberfi.io/utils": "0.1.
|
|
40
|
+
"@liberfi.io/utils": "0.1.157"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@tanstack/react-query": "^5.90.2",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"rimraf": "^5.0.5",
|
|
49
49
|
"tsup": "^8.5.0",
|
|
50
50
|
"typescript": "^5.9.2",
|
|
51
|
-
"tsconfig": "0.1.
|
|
51
|
+
"tsconfig": "0.1.148"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|