@liberfi.io/react-predict 0.1.67 → 0.1.69

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.
@@ -286,6 +286,7 @@ interface MatchGroupMarket {
286
286
  spread?: number;
287
287
  spread_percent?: number;
288
288
  arb_profit?: number;
289
+ reject_reason?: string;
289
290
  }
290
291
  /**
291
292
  * A group of matched events across N providers referring to the same
@@ -358,6 +359,7 @@ interface MatchMarketFlat {
358
359
  arb_profit?: number;
359
360
  combined_volume?: number;
360
361
  combined_volume_24h?: number;
362
+ reject_reason?: string;
361
363
  }
362
364
  /** Paginated result for flattened market pairs. */
363
365
  interface MatchMarketPage {
@@ -286,6 +286,7 @@ interface MatchGroupMarket {
286
286
  spread?: number;
287
287
  spread_percent?: number;
288
288
  arb_profit?: number;
289
+ reject_reason?: string;
289
290
  }
290
291
  /**
291
292
  * A group of matched events across N providers referring to the same
@@ -358,6 +359,7 @@ interface MatchMarketFlat {
358
359
  arb_profit?: number;
359
360
  combined_volume?: number;
360
361
  combined_volume_24h?: number;
362
+ reject_reason?: string;
361
363
  }
362
364
  /** Paginated result for flattened market pairs. */
363
365
  interface MatchMarketPage {
package/dist/server.d.mts CHANGED
@@ -1 +1 @@
1
- export { B as BalanceResponse, b9 as BuildClobAuthMessageInput, bn as BuildOrderMessageInput, b0 as CLOB_AUTH_DOMAIN, b1 as CLOB_AUTH_TYPES, ba as CTF_EXCHANGE_ADDRESS, bf as CTF_ORDER_TYPES, r as CancelOrderResult, C as Candlestick, bm as ClobOrderPayload, a1 as CreateOrderInput, bq 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, b6 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, az as MatchMarketFlat, v as MatchMarketPage, u as MatchMarketParams, aw as MatchSortField, at as MatchStatus, M as MatchesParams, ax as MatchesStats, bb as NEG_RISK_CTF_EXCHANGE_ADDRESS, bg as ORDER_TYPE, bo as OrderMessage, ai as OrderSide, ah as OrderStatus, O as Orderbook, ab as OrderbookLevel, bd as POLYGON_CHAIN_ID, b8 as PolymarketL2Headers, b7 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, aT as ResolveEventsParamsInput, bh as SIDE, a7 as SettlementSource, bp as SignedOrder, S as SimilarEventsParams, aU as TagSlugSelection, ac as TradeType, bc as USDC_ADDRESS, aq as UnsignedTx, aA as WsChannel, aB as WsChannelEvent, aC as WsClientMessage, Y as WsConnectionStatus, Z as WsDataMessage, aI as WsErrorCode, aJ as WsErrorMessage, $ as WsOrderbookEvent, aE as WsPingMessage, aG as WsPongMessage, _ as WsPriceEvent, aF as WsServerMessage, aD as WsSubscribeMessage, aH as WsSubscribedMessage, a0 as WsTradeEvent, b2 as buildClobAuthMessage, bk as buildClobPayload, be as buildCtfExchangeDomain, bi as buildOrderMessage, b4 as buildPolymarketL2Headers, bj as buildSignedOrder, a2 as createPredictClient, a3 as createPredictWsClient, b5 as derivePolymarketApiKey, aN as eventQueryKey, aO as fetchEvent, aS as fetchEventsPage, aW as fetchMarket, a$ as fetchMatchMarketsPage, aZ as fetchMatchesPage, b3 as hmacSha256Base64, aR as infiniteEventsQueryKey, aV as marketQueryKey, a_ as matchMarketsQueryKey, aY as matchQueryKey, aX as matchesQueryKey, aQ as resolveEventsParams, aP as resolveTagSlug } from './server-DDzzly1V.mjs';
1
+ export { B as BalanceResponse, b9 as BuildClobAuthMessageInput, bn as BuildOrderMessageInput, b0 as CLOB_AUTH_DOMAIN, b1 as CLOB_AUTH_TYPES, ba as CTF_EXCHANGE_ADDRESS, bf as CTF_ORDER_TYPES, r as CancelOrderResult, C as Candlestick, bm as ClobOrderPayload, a1 as CreateOrderInput, bq 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, b6 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, az as MatchMarketFlat, v as MatchMarketPage, u as MatchMarketParams, aw as MatchSortField, at as MatchStatus, M as MatchesParams, ax as MatchesStats, bb as NEG_RISK_CTF_EXCHANGE_ADDRESS, bg as ORDER_TYPE, bo as OrderMessage, ai as OrderSide, ah as OrderStatus, O as Orderbook, ab as OrderbookLevel, bd as POLYGON_CHAIN_ID, b8 as PolymarketL2Headers, b7 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, aT as ResolveEventsParamsInput, bh as SIDE, a7 as SettlementSource, bp as SignedOrder, S as SimilarEventsParams, aU as TagSlugSelection, ac as TradeType, bc as USDC_ADDRESS, aq as UnsignedTx, aA as WsChannel, aB as WsChannelEvent, aC as WsClientMessage, Y as WsConnectionStatus, Z as WsDataMessage, aI as WsErrorCode, aJ as WsErrorMessage, $ as WsOrderbookEvent, aE as WsPingMessage, aG as WsPongMessage, _ as WsPriceEvent, aF as WsServerMessage, aD as WsSubscribeMessage, aH as WsSubscribedMessage, a0 as WsTradeEvent, b2 as buildClobAuthMessage, bk as buildClobPayload, be as buildCtfExchangeDomain, bi as buildOrderMessage, b4 as buildPolymarketL2Headers, bj as buildSignedOrder, a2 as createPredictClient, a3 as createPredictWsClient, b5 as derivePolymarketApiKey, aN as eventQueryKey, aO as fetchEvent, aS as fetchEventsPage, aW as fetchMarket, a$ as fetchMatchMarketsPage, aZ as fetchMatchesPage, b3 as hmacSha256Base64, aR as infiniteEventsQueryKey, aV as marketQueryKey, a_ as matchMarketsQueryKey, aY as matchQueryKey, aX as matchesQueryKey, aQ as resolveEventsParams, aP as resolveTagSlug } from './server-HRO1ViL3.mjs';
package/dist/server.d.ts CHANGED
@@ -1 +1 @@
1
- export { B as BalanceResponse, b9 as BuildClobAuthMessageInput, bn as BuildOrderMessageInput, b0 as CLOB_AUTH_DOMAIN, b1 as CLOB_AUTH_TYPES, ba as CTF_EXCHANGE_ADDRESS, bf as CTF_ORDER_TYPES, r as CancelOrderResult, C as Candlestick, bm as ClobOrderPayload, a1 as CreateOrderInput, bq 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, b6 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, az as MatchMarketFlat, v as MatchMarketPage, u as MatchMarketParams, aw as MatchSortField, at as MatchStatus, M as MatchesParams, ax as MatchesStats, bb as NEG_RISK_CTF_EXCHANGE_ADDRESS, bg as ORDER_TYPE, bo as OrderMessage, ai as OrderSide, ah as OrderStatus, O as Orderbook, ab as OrderbookLevel, bd as POLYGON_CHAIN_ID, b8 as PolymarketL2Headers, b7 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, aT as ResolveEventsParamsInput, bh as SIDE, a7 as SettlementSource, bp as SignedOrder, S as SimilarEventsParams, aU as TagSlugSelection, ac as TradeType, bc as USDC_ADDRESS, aq as UnsignedTx, aA as WsChannel, aB as WsChannelEvent, aC as WsClientMessage, Y as WsConnectionStatus, Z as WsDataMessage, aI as WsErrorCode, aJ as WsErrorMessage, $ as WsOrderbookEvent, aE as WsPingMessage, aG as WsPongMessage, _ as WsPriceEvent, aF as WsServerMessage, aD as WsSubscribeMessage, aH as WsSubscribedMessage, a0 as WsTradeEvent, b2 as buildClobAuthMessage, bk as buildClobPayload, be as buildCtfExchangeDomain, bi as buildOrderMessage, b4 as buildPolymarketL2Headers, bj as buildSignedOrder, a2 as createPredictClient, a3 as createPredictWsClient, b5 as derivePolymarketApiKey, aN as eventQueryKey, aO as fetchEvent, aS as fetchEventsPage, aW as fetchMarket, a$ as fetchMatchMarketsPage, aZ as fetchMatchesPage, b3 as hmacSha256Base64, aR as infiniteEventsQueryKey, aV as marketQueryKey, a_ as matchMarketsQueryKey, aY as matchQueryKey, aX as matchesQueryKey, aQ as resolveEventsParams, aP as resolveTagSlug } from './server-DDzzly1V.js';
1
+ export { B as BalanceResponse, b9 as BuildClobAuthMessageInput, bn as BuildOrderMessageInput, b0 as CLOB_AUTH_DOMAIN, b1 as CLOB_AUTH_TYPES, ba as CTF_EXCHANGE_ADDRESS, bf as CTF_ORDER_TYPES, r as CancelOrderResult, C as Candlestick, bm as ClobOrderPayload, a1 as CreateOrderInput, bq 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, b6 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, az as MatchMarketFlat, v as MatchMarketPage, u as MatchMarketParams, aw as MatchSortField, at as MatchStatus, M as MatchesParams, ax as MatchesStats, bb as NEG_RISK_CTF_EXCHANGE_ADDRESS, bg as ORDER_TYPE, bo as OrderMessage, ai as OrderSide, ah as OrderStatus, O as Orderbook, ab as OrderbookLevel, bd as POLYGON_CHAIN_ID, b8 as PolymarketL2Headers, b7 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, aT as ResolveEventsParamsInput, bh as SIDE, a7 as SettlementSource, bp as SignedOrder, S as SimilarEventsParams, aU as TagSlugSelection, ac as TradeType, bc as USDC_ADDRESS, aq as UnsignedTx, aA as WsChannel, aB as WsChannelEvent, aC as WsClientMessage, Y as WsConnectionStatus, Z as WsDataMessage, aI as WsErrorCode, aJ as WsErrorMessage, $ as WsOrderbookEvent, aE as WsPingMessage, aG as WsPongMessage, _ as WsPriceEvent, aF as WsServerMessage, aD as WsSubscribeMessage, aH as WsSubscribedMessage, a0 as WsTradeEvent, b2 as buildClobAuthMessage, bk as buildClobPayload, be as buildCtfExchangeDomain, bi as buildOrderMessage, b4 as buildPolymarketL2Headers, bj as buildSignedOrder, a2 as createPredictClient, a3 as createPredictWsClient, b5 as derivePolymarketApiKey, aN as eventQueryKey, aO as fetchEvent, aS as fetchEventsPage, aW as fetchMarket, a$ as fetchMatchMarketsPage, aZ as fetchMatchesPage, b3 as hmacSha256Base64, aR as infiniteEventsQueryKey, aV as marketQueryKey, a_ as matchMarketsQueryKey, aY as matchQueryKey, aX as matchesQueryKey, aQ as resolveEventsParams, aP as resolveTagSlug } from './server-HRO1ViL3.js';
package/dist/server.js CHANGED
@@ -585,7 +585,7 @@ var PredictWsClient = class {
585
585
  this.reconnectMax = config.reconnectMaxInterval ?? DEFAULT_RECONNECT_MAX;
586
586
  this.pingMs = config.pingInterval ?? DEFAULT_PING_INTERVAL;
587
587
  this.pongTimeoutMs = config.pongTimeout ?? DEFAULT_PONG_TIMEOUT;
588
- if (config.autoConnect !== false) {
588
+ if (config.autoConnect !== false && typeof window !== "undefined") {
589
589
  this.connect();
590
590
  }
591
591
  }
@@ -593,6 +593,7 @@ var PredictWsClient = class {
593
593
  // Connection management
594
594
  // -------------------------------------------------------------------------
595
595
  connect() {
596
+ if (typeof window === "undefined") return;
596
597
  if (this.ws && (this.ws.readyState === WebSocket.OPEN || this.ws.readyState === WebSocket.CONNECTING)) {
597
598
  return;
598
599
  }