@liberfi.io/react-predict 0.1.50 → 0.1.51

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.
@@ -172,10 +172,11 @@ interface EventSummary {
172
172
  image_url?: string;
173
173
  status: EventStatus;
174
174
  }
175
- /** Lightweight market summary embedded in a trade. */
175
+ /** Lightweight market summary embedded in a trade or order. */
176
176
  interface MarketSummary {
177
177
  slug: string;
178
178
  question: string;
179
+ image_url?: string;
179
180
  status: MarketStatus;
180
181
  }
181
182
  /** A single trade record. */
@@ -519,6 +520,10 @@ interface PredictOrder {
519
520
  created_at?: number;
520
521
  expires_at?: number;
521
522
  provider_meta?: ProviderMeta;
523
+ /** Enriched event context (populated by multi-wallet endpoint). */
524
+ event?: EventSummary;
525
+ /** Enriched market context (populated by multi-wallet endpoint). */
526
+ market?: MarketSummary;
522
527
  }
523
528
  /** Query parameters for `GET /api/v1/orders`. */
524
529
  interface ListOrdersParams {
@@ -529,6 +534,17 @@ interface ListOrdersParams {
529
534
  asset_id?: string;
530
535
  next_cursor?: string;
531
536
  }
537
+ /** Query parameters for multi-wallet `GET /api/v1/orders` mode. */
538
+ interface ListOrdersMultiParams {
539
+ kalshi_user?: string;
540
+ polymarket_user?: string;
541
+ }
542
+ /** Response from multi-wallet `GET /api/v1/orders`. */
543
+ interface PredictOrdersResponse {
544
+ user?: string;
545
+ wallets?: Record<string, string>;
546
+ orders: PredictOrder[];
547
+ }
532
548
  /** Result of `DELETE /api/v1/orders/{id}`. */
533
549
  interface CancelOrderResult {
534
550
  cancelled: string[];
@@ -808,6 +824,15 @@ declare class PredictClient {
808
824
  * @param headers - Optional extra headers (e.g. Polymarket POLY_* HMAC headers).
809
825
  */
810
826
  listOrders(params: ListOrdersParams, headers?: Record<string, string>): Promise<PredictPage<PredictOrder>>;
827
+ /**
828
+ * Multi-wallet order listing with enriched market/event context.
829
+ *
830
+ * Maps to `GET /api/v1/orders?kalshi_user=...&polymarket_user=...`.
831
+ *
832
+ * @param params - Per-provider wallet addresses.
833
+ * @param headers - Optional extra headers (e.g. Polymarket POLY_* HMAC headers).
834
+ */
835
+ listOrdersMulti(params: ListOrdersMultiParams, headers?: Record<string, string>): Promise<PredictOrdersResponse>;
811
836
  /**
812
837
  * Maps to `GET /api/v1/orders/:id?source=...`.
813
838
  *
@@ -1455,4 +1480,4 @@ interface ClobOrderPayload {
1455
1480
  */
1456
1481
  declare function buildClobPayload(signedOrder: SignedOrder, owner: string): ClobOrderPayload;
1457
1482
 
1458
- export { type PredictWsClientConfig as $, type AvailableSharesResponse as A, type BalanceResponse as B, type Candlestick as C, type DFlowQuoteRequest as D, type EventStats as E, type WithdrawBuildRequest as F, type WithdrawSubmitResponse as G, type WithdrawSubmitRequest as H, type WithdrawStatusResponse as I, type PolymarketDepositAddresses as J, type PolymarketWithdrawResponse as K, type ListEventsParams as L, type MatchesParams as M, type PolymarketWithdrawRequest as N, type Orderbook as O, PredictClient as P, type WsConnectionStatus as Q, type WsDataMessage as R, type SimilarEventsParams as S, type TickSizeResponse as T, type WsPriceEvent as U, type WsOrderbookEvent as V, type WithdrawBuildResponse as W, type WsTradeEvent as X, type CreateOrderInput as Y, createPredictClient as Z, createPredictWsClient as _, PredictWsClient as a, type BuildClobAuthMessageInput as a$, type ProviderMeta as a0, type PredictTag as a1, type SettlementSource as a2, type MarketStatus as a3, type MarketResult as a4, type MarketOutcome as a5, type OrderbookLevel as a6, type TradeType as a7, type EventSummary as a8, type MarketSummary as a9, type WsSubscribedMessage as aA, type WsErrorCode as aB, type WsErrorMessage as aC, eventQueryKey as aD, fetchEvent as aE, resolveTagSlug as aF, resolveEventsParams as aG, infiniteEventsQueryKey as aH, fetchEventsPage as aI, type ResolveEventsParamsInput as aJ, type TagSlugSelection as aK, marketQueryKey as aL, fetchMarket as aM, matchesQueryKey as aN, matchQueryKey as aO, fetchMatchesPage as aP, matchMarketsQueryKey as aQ, fetchMatchMarketsPage as aR, CLOB_AUTH_DOMAIN as aS, CLOB_AUTH_TYPES as aT, buildClobAuthMessage as aU, hmacSha256Base64 as aV, buildPolymarketL2Headers as aW, derivePolymarketApiKey as aX, type HttpMethod as aY, type PolymarketL2HeadersInput as aZ, type PolymarketL2Headers as a_, type PricePoint as aa, type PredictPosition as ab, type OrderStatus as ac, type OrderSide as ad, type DFlowOrderContext as ae, type PolymarketOrderType as af, type DepositBuildRequest as ag, type DepositBuildResponse as ah, type DepositSubmitRequest as ai, type DepositSubmitResponse as aj, type DepositStatusResponse as ak, type UnsignedTx as al, type MatchStatus as am, type MatchGroupEntry as an, type MatchGroupMarket as ao, type MatchSortField as ap, type MatchesStats as aq, type MatchConfidenceTier as ar, type MatchMarketFlat as as, type WsChannel as at, type WsChannelEvent as au, type WsClientMessage as av, type WsSubscribeMessage as aw, type WsPingMessage as ax, type WsServerMessage as ay, type WsPongMessage as az, type PredictPage as b, CTF_EXCHANGE_ADDRESS as b0, NEG_RISK_CTF_EXCHANGE_ADDRESS as b1, USDC_ADDRESS as b2, POLYGON_CHAIN_ID as b3, buildCtfExchangeDomain as b4, CTF_ORDER_TYPES as b5, ORDER_TYPE as b6, SIDE as b7, buildOrderMessage as b8, buildSignedOrder as b9, buildClobPayload as ba, type ClobOrderPayload as bb, type BuildOrderMessageInput as bc, type OrderMessage as bd, type SignedOrder as be, DEFAULT_PAGE_SIZE as bf, 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 CancelOrderResult as p, type MatchGroupPage as q, type MatchGroup as r, type MatchMarketParams as s, type MatchMarketPage as t, type ListTradesParams as u, type DFlowQuoteResponse as v, type DFlowSubmitResponse as w, type DFlowSubmitRequest as x, type DFlowKYCStatus as y, type PolymarketSetupStatus as z };
1483
+ export { createPredictClient as $, type AvailableSharesResponse as A, type BalanceResponse as B, type Candlestick as C, type DFlowQuoteRequest as D, type EventStats as E, type DFlowKYCStatus as F, type PolymarketSetupStatus as G, type WithdrawBuildRequest as H, type WithdrawSubmitResponse as I, type WithdrawSubmitRequest as J, type WithdrawStatusResponse as K, type ListEventsParams as L, type MatchesParams as M, type PolymarketDepositAddresses as N, type Orderbook as O, PredictClient as P, type PolymarketWithdrawResponse as Q, type PolymarketWithdrawRequest as R, type SimilarEventsParams as S, type TickSizeResponse as T, type WsConnectionStatus as U, type WsDataMessage as V, type WithdrawBuildResponse as W, type WsPriceEvent as X, type WsOrderbookEvent as Y, type WsTradeEvent as Z, type CreateOrderInput as _, PredictWsClient as a, type PolymarketL2HeadersInput as a$, createPredictWsClient as a0, type PredictWsClientConfig as a1, type ProviderMeta as a2, type PredictTag as a3, type SettlementSource as a4, type MarketStatus as a5, type MarketResult as a6, type MarketOutcome as a7, type OrderbookLevel as a8, type TradeType as a9, type WsServerMessage as aA, type WsPongMessage as aB, type WsSubscribedMessage as aC, type WsErrorCode as aD, type WsErrorMessage as aE, eventQueryKey as aF, fetchEvent as aG, resolveTagSlug as aH, resolveEventsParams as aI, infiniteEventsQueryKey as aJ, fetchEventsPage as aK, type ResolveEventsParamsInput as aL, type TagSlugSelection as aM, marketQueryKey as aN, fetchMarket as aO, matchesQueryKey as aP, matchQueryKey as aQ, fetchMatchesPage as aR, matchMarketsQueryKey as aS, fetchMatchMarketsPage as aT, CLOB_AUTH_DOMAIN as aU, CLOB_AUTH_TYPES as aV, buildClobAuthMessage as aW, hmacSha256Base64 as aX, buildPolymarketL2Headers as aY, derivePolymarketApiKey as aZ, type HttpMethod as a_, type EventSummary as aa, type MarketSummary as ab, type PricePoint as ac, type PredictPosition as ad, type OrderStatus as ae, type OrderSide as af, type DFlowOrderContext as ag, type PolymarketOrderType as ah, type DepositBuildRequest as ai, type DepositBuildResponse as aj, type DepositSubmitRequest as ak, type DepositSubmitResponse as al, type DepositStatusResponse as am, type UnsignedTx as an, type MatchStatus as ao, type MatchGroupEntry as ap, type MatchGroupMarket as aq, type MatchSortField as ar, type MatchesStats as as, type MatchConfidenceTier as at, type MatchMarketFlat as au, type WsChannel as av, type WsChannelEvent as aw, type WsClientMessage as ax, type WsSubscribeMessage as ay, type WsPingMessage as az, type PredictPage as b, type PolymarketL2Headers as b0, type BuildClobAuthMessageInput as b1, CTF_EXCHANGE_ADDRESS as b2, NEG_RISK_CTF_EXCHANGE_ADDRESS as b3, USDC_ADDRESS as b4, POLYGON_CHAIN_ID as b5, buildCtfExchangeDomain as b6, CTF_ORDER_TYPES as b7, ORDER_TYPE as b8, SIDE as b9, buildOrderMessage as ba, buildSignedOrder as bb, buildClobPayload as bc, type ClobOrderPayload as bd, type BuildOrderMessageInput as be, type OrderMessage as bf, type SignedOrder as bg, DEFAULT_PAGE_SIZE as bh, 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 DFlowQuoteResponse as x, type DFlowSubmitResponse as y, type DFlowSubmitRequest as z };
@@ -172,10 +172,11 @@ interface EventSummary {
172
172
  image_url?: string;
173
173
  status: EventStatus;
174
174
  }
175
- /** Lightweight market summary embedded in a trade. */
175
+ /** Lightweight market summary embedded in a trade or order. */
176
176
  interface MarketSummary {
177
177
  slug: string;
178
178
  question: string;
179
+ image_url?: string;
179
180
  status: MarketStatus;
180
181
  }
181
182
  /** A single trade record. */
@@ -519,6 +520,10 @@ interface PredictOrder {
519
520
  created_at?: number;
520
521
  expires_at?: number;
521
522
  provider_meta?: ProviderMeta;
523
+ /** Enriched event context (populated by multi-wallet endpoint). */
524
+ event?: EventSummary;
525
+ /** Enriched market context (populated by multi-wallet endpoint). */
526
+ market?: MarketSummary;
522
527
  }
523
528
  /** Query parameters for `GET /api/v1/orders`. */
524
529
  interface ListOrdersParams {
@@ -529,6 +534,17 @@ interface ListOrdersParams {
529
534
  asset_id?: string;
530
535
  next_cursor?: string;
531
536
  }
537
+ /** Query parameters for multi-wallet `GET /api/v1/orders` mode. */
538
+ interface ListOrdersMultiParams {
539
+ kalshi_user?: string;
540
+ polymarket_user?: string;
541
+ }
542
+ /** Response from multi-wallet `GET /api/v1/orders`. */
543
+ interface PredictOrdersResponse {
544
+ user?: string;
545
+ wallets?: Record<string, string>;
546
+ orders: PredictOrder[];
547
+ }
532
548
  /** Result of `DELETE /api/v1/orders/{id}`. */
533
549
  interface CancelOrderResult {
534
550
  cancelled: string[];
@@ -808,6 +824,15 @@ declare class PredictClient {
808
824
  * @param headers - Optional extra headers (e.g. Polymarket POLY_* HMAC headers).
809
825
  */
810
826
  listOrders(params: ListOrdersParams, headers?: Record<string, string>): Promise<PredictPage<PredictOrder>>;
827
+ /**
828
+ * Multi-wallet order listing with enriched market/event context.
829
+ *
830
+ * Maps to `GET /api/v1/orders?kalshi_user=...&polymarket_user=...`.
831
+ *
832
+ * @param params - Per-provider wallet addresses.
833
+ * @param headers - Optional extra headers (e.g. Polymarket POLY_* HMAC headers).
834
+ */
835
+ listOrdersMulti(params: ListOrdersMultiParams, headers?: Record<string, string>): Promise<PredictOrdersResponse>;
811
836
  /**
812
837
  * Maps to `GET /api/v1/orders/:id?source=...`.
813
838
  *
@@ -1455,4 +1480,4 @@ interface ClobOrderPayload {
1455
1480
  */
1456
1481
  declare function buildClobPayload(signedOrder: SignedOrder, owner: string): ClobOrderPayload;
1457
1482
 
1458
- export { type PredictWsClientConfig as $, type AvailableSharesResponse as A, type BalanceResponse as B, type Candlestick as C, type DFlowQuoteRequest as D, type EventStats as E, type WithdrawBuildRequest as F, type WithdrawSubmitResponse as G, type WithdrawSubmitRequest as H, type WithdrawStatusResponse as I, type PolymarketDepositAddresses as J, type PolymarketWithdrawResponse as K, type ListEventsParams as L, type MatchesParams as M, type PolymarketWithdrawRequest as N, type Orderbook as O, PredictClient as P, type WsConnectionStatus as Q, type WsDataMessage as R, type SimilarEventsParams as S, type TickSizeResponse as T, type WsPriceEvent as U, type WsOrderbookEvent as V, type WithdrawBuildResponse as W, type WsTradeEvent as X, type CreateOrderInput as Y, createPredictClient as Z, createPredictWsClient as _, PredictWsClient as a, type BuildClobAuthMessageInput as a$, type ProviderMeta as a0, type PredictTag as a1, type SettlementSource as a2, type MarketStatus as a3, type MarketResult as a4, type MarketOutcome as a5, type OrderbookLevel as a6, type TradeType as a7, type EventSummary as a8, type MarketSummary as a9, type WsSubscribedMessage as aA, type WsErrorCode as aB, type WsErrorMessage as aC, eventQueryKey as aD, fetchEvent as aE, resolveTagSlug as aF, resolveEventsParams as aG, infiniteEventsQueryKey as aH, fetchEventsPage as aI, type ResolveEventsParamsInput as aJ, type TagSlugSelection as aK, marketQueryKey as aL, fetchMarket as aM, matchesQueryKey as aN, matchQueryKey as aO, fetchMatchesPage as aP, matchMarketsQueryKey as aQ, fetchMatchMarketsPage as aR, CLOB_AUTH_DOMAIN as aS, CLOB_AUTH_TYPES as aT, buildClobAuthMessage as aU, hmacSha256Base64 as aV, buildPolymarketL2Headers as aW, derivePolymarketApiKey as aX, type HttpMethod as aY, type PolymarketL2HeadersInput as aZ, type PolymarketL2Headers as a_, type PricePoint as aa, type PredictPosition as ab, type OrderStatus as ac, type OrderSide as ad, type DFlowOrderContext as ae, type PolymarketOrderType as af, type DepositBuildRequest as ag, type DepositBuildResponse as ah, type DepositSubmitRequest as ai, type DepositSubmitResponse as aj, type DepositStatusResponse as ak, type UnsignedTx as al, type MatchStatus as am, type MatchGroupEntry as an, type MatchGroupMarket as ao, type MatchSortField as ap, type MatchesStats as aq, type MatchConfidenceTier as ar, type MatchMarketFlat as as, type WsChannel as at, type WsChannelEvent as au, type WsClientMessage as av, type WsSubscribeMessage as aw, type WsPingMessage as ax, type WsServerMessage as ay, type WsPongMessage as az, type PredictPage as b, CTF_EXCHANGE_ADDRESS as b0, NEG_RISK_CTF_EXCHANGE_ADDRESS as b1, USDC_ADDRESS as b2, POLYGON_CHAIN_ID as b3, buildCtfExchangeDomain as b4, CTF_ORDER_TYPES as b5, ORDER_TYPE as b6, SIDE as b7, buildOrderMessage as b8, buildSignedOrder as b9, buildClobPayload as ba, type ClobOrderPayload as bb, type BuildOrderMessageInput as bc, type OrderMessage as bd, type SignedOrder as be, DEFAULT_PAGE_SIZE as bf, 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 CancelOrderResult as p, type MatchGroupPage as q, type MatchGroup as r, type MatchMarketParams as s, type MatchMarketPage as t, type ListTradesParams as u, type DFlowQuoteResponse as v, type DFlowSubmitResponse as w, type DFlowSubmitRequest as x, type DFlowKYCStatus as y, type PolymarketSetupStatus as z };
1483
+ export { createPredictClient as $, type AvailableSharesResponse as A, type BalanceResponse as B, type Candlestick as C, type DFlowQuoteRequest as D, type EventStats as E, type DFlowKYCStatus as F, type PolymarketSetupStatus as G, type WithdrawBuildRequest as H, type WithdrawSubmitResponse as I, type WithdrawSubmitRequest as J, type WithdrawStatusResponse as K, type ListEventsParams as L, type MatchesParams as M, type PolymarketDepositAddresses as N, type Orderbook as O, PredictClient as P, type PolymarketWithdrawResponse as Q, type PolymarketWithdrawRequest as R, type SimilarEventsParams as S, type TickSizeResponse as T, type WsConnectionStatus as U, type WsDataMessage as V, type WithdrawBuildResponse as W, type WsPriceEvent as X, type WsOrderbookEvent as Y, type WsTradeEvent as Z, type CreateOrderInput as _, PredictWsClient as a, type PolymarketL2HeadersInput as a$, createPredictWsClient as a0, type PredictWsClientConfig as a1, type ProviderMeta as a2, type PredictTag as a3, type SettlementSource as a4, type MarketStatus as a5, type MarketResult as a6, type MarketOutcome as a7, type OrderbookLevel as a8, type TradeType as a9, type WsServerMessage as aA, type WsPongMessage as aB, type WsSubscribedMessage as aC, type WsErrorCode as aD, type WsErrorMessage as aE, eventQueryKey as aF, fetchEvent as aG, resolveTagSlug as aH, resolveEventsParams as aI, infiniteEventsQueryKey as aJ, fetchEventsPage as aK, type ResolveEventsParamsInput as aL, type TagSlugSelection as aM, marketQueryKey as aN, fetchMarket as aO, matchesQueryKey as aP, matchQueryKey as aQ, fetchMatchesPage as aR, matchMarketsQueryKey as aS, fetchMatchMarketsPage as aT, CLOB_AUTH_DOMAIN as aU, CLOB_AUTH_TYPES as aV, buildClobAuthMessage as aW, hmacSha256Base64 as aX, buildPolymarketL2Headers as aY, derivePolymarketApiKey as aZ, type HttpMethod as a_, type EventSummary as aa, type MarketSummary as ab, type PricePoint as ac, type PredictPosition as ad, type OrderStatus as ae, type OrderSide as af, type DFlowOrderContext as ag, type PolymarketOrderType as ah, type DepositBuildRequest as ai, type DepositBuildResponse as aj, type DepositSubmitRequest as ak, type DepositSubmitResponse as al, type DepositStatusResponse as am, type UnsignedTx as an, type MatchStatus as ao, type MatchGroupEntry as ap, type MatchGroupMarket as aq, type MatchSortField as ar, type MatchesStats as as, type MatchConfidenceTier as at, type MatchMarketFlat as au, type WsChannel as av, type WsChannelEvent as aw, type WsClientMessage as ax, type WsSubscribeMessage as ay, type WsPingMessage as az, type PredictPage as b, type PolymarketL2Headers as b0, type BuildClobAuthMessageInput as b1, CTF_EXCHANGE_ADDRESS as b2, NEG_RISK_CTF_EXCHANGE_ADDRESS as b3, USDC_ADDRESS as b4, POLYGON_CHAIN_ID as b5, buildCtfExchangeDomain as b6, CTF_ORDER_TYPES as b7, ORDER_TYPE as b8, SIDE as b9, buildOrderMessage as ba, buildSignedOrder as bb, buildClobPayload as bc, type ClobOrderPayload as bd, type BuildOrderMessageInput as be, type OrderMessage as bf, type SignedOrder as bg, DEFAULT_PAGE_SIZE as bh, 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 DFlowQuoteResponse as x, type DFlowSubmitResponse as y, type DFlowSubmitRequest as z };
package/dist/server.d.mts CHANGED
@@ -1 +1 @@
1
- export { B as BalanceResponse, a$ as BuildClobAuthMessageInput, bc as BuildOrderMessageInput, aS as CLOB_AUTH_DOMAIN, aT as CLOB_AUTH_TYPES, b0 as CTF_EXCHANGE_ADDRESS, b5 as CTF_ORDER_TYPES, p as CancelOrderResult, C as Candlestick, bb as ClobOrderPayload, Y as CreateOrderInput, bf as DEFAULT_PAGE_SIZE, ae as DFlowOrderContext, D as DFlowQuoteRequest, v as DFlowQuoteResponse, x as DFlowSubmitRequest, w as DFlowSubmitResponse, ag as DepositBuildRequest, ah as DepositBuildResponse, ak as DepositStatusResponse, ai as DepositSubmitRequest, aj as DepositSubmitResponse, f as EventSortField, e as EventStatus, a8 as EventSummary, aY as HttpMethod, l as ListCandlesticksParams, L as ListEventsParams, h as ListMarketTradesParams, n as ListOrdersParams, u as ListTradesParams, a5 as MarketOutcome, a4 as MarketResult, a3 as MarketStatus, a9 as MarketSummary, ar as MatchConfidenceTier, r as MatchGroup, an as MatchGroupEntry, ao as MatchGroupMarket, q as MatchGroupPage, as as MatchMarketFlat, t as MatchMarketPage, s as MatchMarketParams, ap as MatchSortField, am as MatchStatus, M as MatchesParams, aq as MatchesStats, b1 as NEG_RISK_CTF_EXCHANGE_ADDRESS, b6 as ORDER_TYPE, bd as OrderMessage, ad as OrderSide, ac as OrderStatus, O as Orderbook, a6 as OrderbookLevel, b3 as POLYGON_CHAIN_ID, a_ as PolymarketL2Headers, aZ as PolymarketL2HeadersInput, af as PolymarketOrderType, m as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, o as PredictOrder, b as PredictPage, ab as PredictPosition, a1 as PredictTag, i as PredictTrade, a as PredictWsClient, $ as PredictWsClientConfig, j as PriceHistoryRange, k as PriceHistoryResponse, aa as PricePoint, a0 as ProviderMeta, d as ProviderSource, aJ as ResolveEventsParamsInput, b7 as SIDE, a2 as SettlementSource, be as SignedOrder, S as SimilarEventsParams, aK as TagSlugSelection, a7 as TradeType, b2 as USDC_ADDRESS, al as UnsignedTx, at as WsChannel, au as WsChannelEvent, av as WsClientMessage, Q as WsConnectionStatus, R as WsDataMessage, aB as WsErrorCode, aC as WsErrorMessage, V as WsOrderbookEvent, ax as WsPingMessage, az as WsPongMessage, U as WsPriceEvent, ay as WsServerMessage, aw as WsSubscribeMessage, aA as WsSubscribedMessage, X as WsTradeEvent, aU as buildClobAuthMessage, ba as buildClobPayload, b4 as buildCtfExchangeDomain, b8 as buildOrderMessage, aW as buildPolymarketL2Headers, b9 as buildSignedOrder, Z as createPredictClient, _ as createPredictWsClient, aX as derivePolymarketApiKey, aD as eventQueryKey, aE as fetchEvent, aI as fetchEventsPage, aM as fetchMarket, aR as fetchMatchMarketsPage, aP as fetchMatchesPage, aV as hmacSha256Base64, aH as infiniteEventsQueryKey, aL as marketQueryKey, aQ as matchMarketsQueryKey, aO as matchQueryKey, aN as matchesQueryKey, aG as resolveEventsParams, aF as resolveTagSlug } from './server-CaB0XJAa.mjs';
1
+ export { B as BalanceResponse, b1 as BuildClobAuthMessageInput, be as BuildOrderMessageInput, aU as CLOB_AUTH_DOMAIN, aV as CLOB_AUTH_TYPES, b2 as CTF_EXCHANGE_ADDRESS, b7 as CTF_ORDER_TYPES, r as CancelOrderResult, C as Candlestick, bd as ClobOrderPayload, _ as CreateOrderInput, bh as DEFAULT_PAGE_SIZE, ag as DFlowOrderContext, D as DFlowQuoteRequest, x as DFlowQuoteResponse, z as DFlowSubmitRequest, y as DFlowSubmitResponse, ai as DepositBuildRequest, aj as DepositBuildResponse, am as DepositStatusResponse, ak as DepositSubmitRequest, al as DepositSubmitResponse, f as EventSortField, e as EventStatus, aa as EventSummary, a_ as HttpMethod, l as ListCandlesticksParams, L as ListEventsParams, h as ListMarketTradesParams, n as ListOrdersParams, w as ListTradesParams, a7 as MarketOutcome, a6 as MarketResult, a5 as MarketStatus, ab as MarketSummary, at as MatchConfidenceTier, t as MatchGroup, ap as MatchGroupEntry, aq as MatchGroupMarket, s as MatchGroupPage, au as MatchMarketFlat, v as MatchMarketPage, u as MatchMarketParams, ar as MatchSortField, ao as MatchStatus, M as MatchesParams, as as MatchesStats, b3 as NEG_RISK_CTF_EXCHANGE_ADDRESS, b8 as ORDER_TYPE, bf as OrderMessage, af as OrderSide, ae as OrderStatus, O as Orderbook, a8 as OrderbookLevel, b5 as POLYGON_CHAIN_ID, b0 as PolymarketL2Headers, a$ as PolymarketL2HeadersInput, ah as PolymarketOrderType, m as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, o as PredictOrder, b as PredictPage, ad as PredictPosition, a3 as PredictTag, i as PredictTrade, a as PredictWsClient, a1 as PredictWsClientConfig, j as PriceHistoryRange, k as PriceHistoryResponse, ac as PricePoint, a2 as ProviderMeta, d as ProviderSource, aL as ResolveEventsParamsInput, b9 as SIDE, a4 as SettlementSource, bg as SignedOrder, S as SimilarEventsParams, aM as TagSlugSelection, a9 as TradeType, b4 as USDC_ADDRESS, an as UnsignedTx, av as WsChannel, aw as WsChannelEvent, ax as WsClientMessage, U as WsConnectionStatus, V as WsDataMessage, aD as WsErrorCode, aE as WsErrorMessage, Y as WsOrderbookEvent, az as WsPingMessage, aB as WsPongMessage, X as WsPriceEvent, aA as WsServerMessage, ay as WsSubscribeMessage, aC as WsSubscribedMessage, Z as WsTradeEvent, aW as buildClobAuthMessage, bc as buildClobPayload, b6 as buildCtfExchangeDomain, ba as buildOrderMessage, aY as buildPolymarketL2Headers, bb as buildSignedOrder, $ as createPredictClient, a0 as createPredictWsClient, aZ as derivePolymarketApiKey, aF as eventQueryKey, aG as fetchEvent, aK as fetchEventsPage, aO as fetchMarket, aT as fetchMatchMarketsPage, aR as fetchMatchesPage, aX as hmacSha256Base64, aJ as infiniteEventsQueryKey, aN as marketQueryKey, aS as matchMarketsQueryKey, aQ as matchQueryKey, aP as matchesQueryKey, aI as resolveEventsParams, aH as resolveTagSlug } from './server-eKqIns8z.mjs';
package/dist/server.d.ts CHANGED
@@ -1 +1 @@
1
- export { B as BalanceResponse, a$ as BuildClobAuthMessageInput, bc as BuildOrderMessageInput, aS as CLOB_AUTH_DOMAIN, aT as CLOB_AUTH_TYPES, b0 as CTF_EXCHANGE_ADDRESS, b5 as CTF_ORDER_TYPES, p as CancelOrderResult, C as Candlestick, bb as ClobOrderPayload, Y as CreateOrderInput, bf as DEFAULT_PAGE_SIZE, ae as DFlowOrderContext, D as DFlowQuoteRequest, v as DFlowQuoteResponse, x as DFlowSubmitRequest, w as DFlowSubmitResponse, ag as DepositBuildRequest, ah as DepositBuildResponse, ak as DepositStatusResponse, ai as DepositSubmitRequest, aj as DepositSubmitResponse, f as EventSortField, e as EventStatus, a8 as EventSummary, aY as HttpMethod, l as ListCandlesticksParams, L as ListEventsParams, h as ListMarketTradesParams, n as ListOrdersParams, u as ListTradesParams, a5 as MarketOutcome, a4 as MarketResult, a3 as MarketStatus, a9 as MarketSummary, ar as MatchConfidenceTier, r as MatchGroup, an as MatchGroupEntry, ao as MatchGroupMarket, q as MatchGroupPage, as as MatchMarketFlat, t as MatchMarketPage, s as MatchMarketParams, ap as MatchSortField, am as MatchStatus, M as MatchesParams, aq as MatchesStats, b1 as NEG_RISK_CTF_EXCHANGE_ADDRESS, b6 as ORDER_TYPE, bd as OrderMessage, ad as OrderSide, ac as OrderStatus, O as Orderbook, a6 as OrderbookLevel, b3 as POLYGON_CHAIN_ID, a_ as PolymarketL2Headers, aZ as PolymarketL2HeadersInput, af as PolymarketOrderType, m as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, o as PredictOrder, b as PredictPage, ab as PredictPosition, a1 as PredictTag, i as PredictTrade, a as PredictWsClient, $ as PredictWsClientConfig, j as PriceHistoryRange, k as PriceHistoryResponse, aa as PricePoint, a0 as ProviderMeta, d as ProviderSource, aJ as ResolveEventsParamsInput, b7 as SIDE, a2 as SettlementSource, be as SignedOrder, S as SimilarEventsParams, aK as TagSlugSelection, a7 as TradeType, b2 as USDC_ADDRESS, al as UnsignedTx, at as WsChannel, au as WsChannelEvent, av as WsClientMessage, Q as WsConnectionStatus, R as WsDataMessage, aB as WsErrorCode, aC as WsErrorMessage, V as WsOrderbookEvent, ax as WsPingMessage, az as WsPongMessage, U as WsPriceEvent, ay as WsServerMessage, aw as WsSubscribeMessage, aA as WsSubscribedMessage, X as WsTradeEvent, aU as buildClobAuthMessage, ba as buildClobPayload, b4 as buildCtfExchangeDomain, b8 as buildOrderMessage, aW as buildPolymarketL2Headers, b9 as buildSignedOrder, Z as createPredictClient, _ as createPredictWsClient, aX as derivePolymarketApiKey, aD as eventQueryKey, aE as fetchEvent, aI as fetchEventsPage, aM as fetchMarket, aR as fetchMatchMarketsPage, aP as fetchMatchesPage, aV as hmacSha256Base64, aH as infiniteEventsQueryKey, aL as marketQueryKey, aQ as matchMarketsQueryKey, aO as matchQueryKey, aN as matchesQueryKey, aG as resolveEventsParams, aF as resolveTagSlug } from './server-CaB0XJAa.js';
1
+ export { B as BalanceResponse, b1 as BuildClobAuthMessageInput, be as BuildOrderMessageInput, aU as CLOB_AUTH_DOMAIN, aV as CLOB_AUTH_TYPES, b2 as CTF_EXCHANGE_ADDRESS, b7 as CTF_ORDER_TYPES, r as CancelOrderResult, C as Candlestick, bd as ClobOrderPayload, _ as CreateOrderInput, bh as DEFAULT_PAGE_SIZE, ag as DFlowOrderContext, D as DFlowQuoteRequest, x as DFlowQuoteResponse, z as DFlowSubmitRequest, y as DFlowSubmitResponse, ai as DepositBuildRequest, aj as DepositBuildResponse, am as DepositStatusResponse, ak as DepositSubmitRequest, al as DepositSubmitResponse, f as EventSortField, e as EventStatus, aa as EventSummary, a_ as HttpMethod, l as ListCandlesticksParams, L as ListEventsParams, h as ListMarketTradesParams, n as ListOrdersParams, w as ListTradesParams, a7 as MarketOutcome, a6 as MarketResult, a5 as MarketStatus, ab as MarketSummary, at as MatchConfidenceTier, t as MatchGroup, ap as MatchGroupEntry, aq as MatchGroupMarket, s as MatchGroupPage, au as MatchMarketFlat, v as MatchMarketPage, u as MatchMarketParams, ar as MatchSortField, ao as MatchStatus, M as MatchesParams, as as MatchesStats, b3 as NEG_RISK_CTF_EXCHANGE_ADDRESS, b8 as ORDER_TYPE, bf as OrderMessage, af as OrderSide, ae as OrderStatus, O as Orderbook, a8 as OrderbookLevel, b5 as POLYGON_CHAIN_ID, b0 as PolymarketL2Headers, a$ as PolymarketL2HeadersInput, ah as PolymarketOrderType, m as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, o as PredictOrder, b as PredictPage, ad as PredictPosition, a3 as PredictTag, i as PredictTrade, a as PredictWsClient, a1 as PredictWsClientConfig, j as PriceHistoryRange, k as PriceHistoryResponse, ac as PricePoint, a2 as ProviderMeta, d as ProviderSource, aL as ResolveEventsParamsInput, b9 as SIDE, a4 as SettlementSource, bg as SignedOrder, S as SimilarEventsParams, aM as TagSlugSelection, a9 as TradeType, b4 as USDC_ADDRESS, an as UnsignedTx, av as WsChannel, aw as WsChannelEvent, ax as WsClientMessage, U as WsConnectionStatus, V as WsDataMessage, aD as WsErrorCode, aE as WsErrorMessage, Y as WsOrderbookEvent, az as WsPingMessage, aB as WsPongMessage, X as WsPriceEvent, aA as WsServerMessage, ay as WsSubscribeMessage, aC as WsSubscribedMessage, Z as WsTradeEvent, aW as buildClobAuthMessage, bc as buildClobPayload, b6 as buildCtfExchangeDomain, ba as buildOrderMessage, aY as buildPolymarketL2Headers, bb as buildSignedOrder, $ as createPredictClient, a0 as createPredictWsClient, aZ as derivePolymarketApiKey, aF as eventQueryKey, aG as fetchEvent, aK as fetchEventsPage, aO as fetchMarket, aT as fetchMatchMarketsPage, aR as fetchMatchesPage, aX as hmacSha256Base64, aJ as infiniteEventsQueryKey, aN as marketQueryKey, aS as matchMarketsQueryKey, aQ as matchQueryKey, aP as matchesQueryKey, aI as resolveEventsParams, aH as resolveTagSlug } from './server-eKqIns8z.js';
package/dist/server.js CHANGED
@@ -266,6 +266,22 @@ var PredictClient = class {
266
266
  headers ? { headers } : void 0
267
267
  );
268
268
  }
269
+ /**
270
+ * Multi-wallet order listing with enriched market/event context.
271
+ *
272
+ * Maps to `GET /api/v1/orders?kalshi_user=...&polymarket_user=...`.
273
+ *
274
+ * @param params - Per-provider wallet addresses.
275
+ * @param headers - Optional extra headers (e.g. Polymarket POLY_* HMAC headers).
276
+ */
277
+ async listOrdersMulti(params, headers) {
278
+ const query = buildQuery(params);
279
+ const url = `${this.endpoint}/api/v1/orders${query}`;
280
+ return await utils.httpGet(
281
+ url,
282
+ headers ? { headers } : void 0
283
+ );
284
+ }
269
285
  /**
270
286
  * Maps to `GET /api/v1/orders/:id?source=...`.
271
287
  *