@liberfi.io/react-predict 0.1.50 → 0.1.52

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. */
@@ -216,6 +217,19 @@ interface ListTradesParams {
216
217
  type?: string;
217
218
  side?: string;
218
219
  }
220
+ /**
221
+ * Query parameters for `GET /api/v1/trades` in multi-wallet mode.
222
+ * Each provider uses its own wallet address (e.g. Solana for Kalshi, EVM for Polymarket).
223
+ */
224
+ interface ListTradesMultiParams {
225
+ kalshi_user?: string;
226
+ polymarket_user?: string;
227
+ limit?: number;
228
+ cursor?: string;
229
+ /** Comma-separated trade types. */
230
+ type?: string;
231
+ side?: string;
232
+ }
219
233
  /** A single price-history data point. */
220
234
  interface PricePoint {
221
235
  /** Unix seconds. */
@@ -519,6 +533,10 @@ interface PredictOrder {
519
533
  created_at?: number;
520
534
  expires_at?: number;
521
535
  provider_meta?: ProviderMeta;
536
+ /** Enriched event context (populated by multi-wallet endpoint). */
537
+ event?: EventSummary;
538
+ /** Enriched market context (populated by multi-wallet endpoint). */
539
+ market?: MarketSummary;
522
540
  }
523
541
  /** Query parameters for `GET /api/v1/orders`. */
524
542
  interface ListOrdersParams {
@@ -529,6 +547,17 @@ interface ListOrdersParams {
529
547
  asset_id?: string;
530
548
  next_cursor?: string;
531
549
  }
550
+ /** Query parameters for multi-wallet `GET /api/v1/orders` mode. */
551
+ interface ListOrdersMultiParams {
552
+ kalshi_user?: string;
553
+ polymarket_user?: string;
554
+ }
555
+ /** Response from multi-wallet `GET /api/v1/orders`. */
556
+ interface PredictOrdersResponse {
557
+ user?: string;
558
+ wallets?: Record<string, string>;
559
+ orders: PredictOrder[];
560
+ }
532
561
  /** Result of `DELETE /api/v1/orders/{id}`. */
533
562
  interface CancelOrderResult {
534
563
  cancelled: string[];
@@ -808,6 +837,15 @@ declare class PredictClient {
808
837
  * @param headers - Optional extra headers (e.g. Polymarket POLY_* HMAC headers).
809
838
  */
810
839
  listOrders(params: ListOrdersParams, headers?: Record<string, string>): Promise<PredictPage<PredictOrder>>;
840
+ /**
841
+ * Multi-wallet order listing with enriched market/event context.
842
+ *
843
+ * Maps to `GET /api/v1/orders?kalshi_user=...&polymarket_user=...`.
844
+ *
845
+ * @param params - Per-provider wallet addresses.
846
+ * @param headers - Optional extra headers (e.g. Polymarket POLY_* HMAC headers).
847
+ */
848
+ listOrdersMulti(params: ListOrdersMultiParams, headers?: Record<string, string>): Promise<PredictOrdersResponse>;
811
849
  /**
812
850
  * Maps to `GET /api/v1/orders/:id?source=...`.
813
851
  *
@@ -883,6 +921,8 @@ declare class PredictClient {
883
921
  listMatchMarkets(params?: MatchMarketParams): Promise<MatchMarketPage>;
884
922
  /** Maps to `GET /api/v1/trades?source=...&wallet=...`. */
885
923
  listTrades(params: ListTradesParams): Promise<PredictPage<PredictTrade>>;
924
+ /** Maps to `GET /api/v1/trades?kalshi_user=...&polymarket_user=...`. */
925
+ listTradesMulti(params: ListTradesMultiParams): Promise<PredictPage<PredictTrade>>;
886
926
  /** Maps to `POST /api/v1/withdraw/build`. */
887
927
  withdrawBuild(body: WithdrawBuildRequest): Promise<WithdrawBuildResponse>;
888
928
  /** Maps to `POST /api/v1/withdraw/submit`. */
@@ -1455,4 +1495,4 @@ interface ClobOrderPayload {
1455
1495
  */
1456
1496
  declare function buildClobPayload(signedOrder: SignedOrder, owner: string): ClobOrderPayload;
1457
1497
 
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 };
1498
+ export { type CreateOrderInput 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 TickSizeResponse as U, type WsConnectionStatus as V, type WithdrawBuildResponse as W, type WsDataMessage as X, type WsPriceEvent as Y, type WsOrderbookEvent as Z, type WsTradeEvent as _, PredictWsClient as a, type HttpMethod as a$, createPredictClient as a0, createPredictWsClient as a1, type PredictWsClientConfig as a2, type ProviderMeta as a3, type PredictTag as a4, type SettlementSource as a5, type MarketStatus as a6, type MarketResult as a7, type MarketOutcome as a8, type OrderbookLevel as a9, type WsPingMessage as aA, type WsServerMessage as aB, type WsPongMessage as aC, type WsSubscribedMessage as aD, type WsErrorCode as aE, type WsErrorMessage as aF, eventQueryKey as aG, fetchEvent as aH, resolveTagSlug as aI, resolveEventsParams as aJ, infiniteEventsQueryKey as aK, fetchEventsPage as aL, type ResolveEventsParamsInput as aM, type TagSlugSelection as aN, marketQueryKey as aO, fetchMarket as aP, matchesQueryKey as aQ, matchQueryKey as aR, fetchMatchesPage as aS, matchMarketsQueryKey as aT, fetchMatchMarketsPage as aU, CLOB_AUTH_DOMAIN as aV, CLOB_AUTH_TYPES as aW, buildClobAuthMessage as aX, hmacSha256Base64 as aY, buildPolymarketL2Headers as aZ, derivePolymarketApiKey as a_, type TradeType as aa, type EventSummary as ab, type MarketSummary as ac, type PricePoint as ad, type PredictPosition as ae, type OrderStatus as af, type OrderSide as ag, type DFlowOrderContext as ah, type PolymarketOrderType as ai, type DepositBuildRequest as aj, type DepositBuildResponse as ak, type DepositSubmitRequest as al, type DepositSubmitResponse as am, type DepositStatusResponse as an, type UnsignedTx as ao, type MatchStatus as ap, type MatchGroupEntry as aq, type MatchGroupMarket as ar, type MatchSortField as as, type MatchesStats as at, type MatchConfidenceTier as au, type MatchMarketFlat as av, type WsChannel as aw, type WsChannelEvent as ax, type WsClientMessage as ay, type WsSubscribeMessage as az, type PredictPage as b, type PolymarketL2HeadersInput as b0, type PolymarketL2Headers as b1, type BuildClobAuthMessageInput as b2, CTF_EXCHANGE_ADDRESS as b3, NEG_RISK_CTF_EXCHANGE_ADDRESS as b4, USDC_ADDRESS as b5, POLYGON_CHAIN_ID as b6, buildCtfExchangeDomain as b7, CTF_ORDER_TYPES as b8, ORDER_TYPE as b9, SIDE as ba, buildOrderMessage as bb, buildSignedOrder as bc, buildClobPayload as bd, type ClobOrderPayload as be, type BuildOrderMessageInput as bf, type OrderMessage as bg, type SignedOrder as bh, DEFAULT_PAGE_SIZE as bi, 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 };
@@ -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. */
@@ -216,6 +217,19 @@ interface ListTradesParams {
216
217
  type?: string;
217
218
  side?: string;
218
219
  }
220
+ /**
221
+ * Query parameters for `GET /api/v1/trades` in multi-wallet mode.
222
+ * Each provider uses its own wallet address (e.g. Solana for Kalshi, EVM for Polymarket).
223
+ */
224
+ interface ListTradesMultiParams {
225
+ kalshi_user?: string;
226
+ polymarket_user?: string;
227
+ limit?: number;
228
+ cursor?: string;
229
+ /** Comma-separated trade types. */
230
+ type?: string;
231
+ side?: string;
232
+ }
219
233
  /** A single price-history data point. */
220
234
  interface PricePoint {
221
235
  /** Unix seconds. */
@@ -519,6 +533,10 @@ interface PredictOrder {
519
533
  created_at?: number;
520
534
  expires_at?: number;
521
535
  provider_meta?: ProviderMeta;
536
+ /** Enriched event context (populated by multi-wallet endpoint). */
537
+ event?: EventSummary;
538
+ /** Enriched market context (populated by multi-wallet endpoint). */
539
+ market?: MarketSummary;
522
540
  }
523
541
  /** Query parameters for `GET /api/v1/orders`. */
524
542
  interface ListOrdersParams {
@@ -529,6 +547,17 @@ interface ListOrdersParams {
529
547
  asset_id?: string;
530
548
  next_cursor?: string;
531
549
  }
550
+ /** Query parameters for multi-wallet `GET /api/v1/orders` mode. */
551
+ interface ListOrdersMultiParams {
552
+ kalshi_user?: string;
553
+ polymarket_user?: string;
554
+ }
555
+ /** Response from multi-wallet `GET /api/v1/orders`. */
556
+ interface PredictOrdersResponse {
557
+ user?: string;
558
+ wallets?: Record<string, string>;
559
+ orders: PredictOrder[];
560
+ }
532
561
  /** Result of `DELETE /api/v1/orders/{id}`. */
533
562
  interface CancelOrderResult {
534
563
  cancelled: string[];
@@ -808,6 +837,15 @@ declare class PredictClient {
808
837
  * @param headers - Optional extra headers (e.g. Polymarket POLY_* HMAC headers).
809
838
  */
810
839
  listOrders(params: ListOrdersParams, headers?: Record<string, string>): Promise<PredictPage<PredictOrder>>;
840
+ /**
841
+ * Multi-wallet order listing with enriched market/event context.
842
+ *
843
+ * Maps to `GET /api/v1/orders?kalshi_user=...&polymarket_user=...`.
844
+ *
845
+ * @param params - Per-provider wallet addresses.
846
+ * @param headers - Optional extra headers (e.g. Polymarket POLY_* HMAC headers).
847
+ */
848
+ listOrdersMulti(params: ListOrdersMultiParams, headers?: Record<string, string>): Promise<PredictOrdersResponse>;
811
849
  /**
812
850
  * Maps to `GET /api/v1/orders/:id?source=...`.
813
851
  *
@@ -883,6 +921,8 @@ declare class PredictClient {
883
921
  listMatchMarkets(params?: MatchMarketParams): Promise<MatchMarketPage>;
884
922
  /** Maps to `GET /api/v1/trades?source=...&wallet=...`. */
885
923
  listTrades(params: ListTradesParams): Promise<PredictPage<PredictTrade>>;
924
+ /** Maps to `GET /api/v1/trades?kalshi_user=...&polymarket_user=...`. */
925
+ listTradesMulti(params: ListTradesMultiParams): Promise<PredictPage<PredictTrade>>;
886
926
  /** Maps to `POST /api/v1/withdraw/build`. */
887
927
  withdrawBuild(body: WithdrawBuildRequest): Promise<WithdrawBuildResponse>;
888
928
  /** Maps to `POST /api/v1/withdraw/submit`. */
@@ -1455,4 +1495,4 @@ interface ClobOrderPayload {
1455
1495
  */
1456
1496
  declare function buildClobPayload(signedOrder: SignedOrder, owner: string): ClobOrderPayload;
1457
1497
 
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 };
1498
+ export { type CreateOrderInput 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 TickSizeResponse as U, type WsConnectionStatus as V, type WithdrawBuildResponse as W, type WsDataMessage as X, type WsPriceEvent as Y, type WsOrderbookEvent as Z, type WsTradeEvent as _, PredictWsClient as a, type HttpMethod as a$, createPredictClient as a0, createPredictWsClient as a1, type PredictWsClientConfig as a2, type ProviderMeta as a3, type PredictTag as a4, type SettlementSource as a5, type MarketStatus as a6, type MarketResult as a7, type MarketOutcome as a8, type OrderbookLevel as a9, type WsPingMessage as aA, type WsServerMessage as aB, type WsPongMessage as aC, type WsSubscribedMessage as aD, type WsErrorCode as aE, type WsErrorMessage as aF, eventQueryKey as aG, fetchEvent as aH, resolveTagSlug as aI, resolveEventsParams as aJ, infiniteEventsQueryKey as aK, fetchEventsPage as aL, type ResolveEventsParamsInput as aM, type TagSlugSelection as aN, marketQueryKey as aO, fetchMarket as aP, matchesQueryKey as aQ, matchQueryKey as aR, fetchMatchesPage as aS, matchMarketsQueryKey as aT, fetchMatchMarketsPage as aU, CLOB_AUTH_DOMAIN as aV, CLOB_AUTH_TYPES as aW, buildClobAuthMessage as aX, hmacSha256Base64 as aY, buildPolymarketL2Headers as aZ, derivePolymarketApiKey as a_, type TradeType as aa, type EventSummary as ab, type MarketSummary as ac, type PricePoint as ad, type PredictPosition as ae, type OrderStatus as af, type OrderSide as ag, type DFlowOrderContext as ah, type PolymarketOrderType as ai, type DepositBuildRequest as aj, type DepositBuildResponse as ak, type DepositSubmitRequest as al, type DepositSubmitResponse as am, type DepositStatusResponse as an, type UnsignedTx as ao, type MatchStatus as ap, type MatchGroupEntry as aq, type MatchGroupMarket as ar, type MatchSortField as as, type MatchesStats as at, type MatchConfidenceTier as au, type MatchMarketFlat as av, type WsChannel as aw, type WsChannelEvent as ax, type WsClientMessage as ay, type WsSubscribeMessage as az, type PredictPage as b, type PolymarketL2HeadersInput as b0, type PolymarketL2Headers as b1, type BuildClobAuthMessageInput as b2, CTF_EXCHANGE_ADDRESS as b3, NEG_RISK_CTF_EXCHANGE_ADDRESS as b4, USDC_ADDRESS as b5, POLYGON_CHAIN_ID as b6, buildCtfExchangeDomain as b7, CTF_ORDER_TYPES as b8, ORDER_TYPE as b9, SIDE as ba, buildOrderMessage as bb, buildSignedOrder as bc, buildClobPayload as bd, type ClobOrderPayload as be, type BuildOrderMessageInput as bf, type OrderMessage as bg, type SignedOrder as bh, DEFAULT_PAGE_SIZE as bi, 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, 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, b2 as BuildClobAuthMessageInput, bf as BuildOrderMessageInput, aV as CLOB_AUTH_DOMAIN, aW as CLOB_AUTH_TYPES, b3 as CTF_EXCHANGE_ADDRESS, b8 as CTF_ORDER_TYPES, r as CancelOrderResult, C as Candlestick, be as ClobOrderPayload, $ as CreateOrderInput, bi as DEFAULT_PAGE_SIZE, ah as DFlowOrderContext, D as DFlowQuoteRequest, y as DFlowQuoteResponse, F as DFlowSubmitRequest, z as DFlowSubmitResponse, aj as DepositBuildRequest, ak as DepositBuildResponse, an as DepositStatusResponse, al as DepositSubmitRequest, am as DepositSubmitResponse, f as EventSortField, e as EventStatus, ab as EventSummary, a$ as HttpMethod, l as ListCandlesticksParams, L as ListEventsParams, h as ListMarketTradesParams, n as ListOrdersParams, w as ListTradesParams, a8 as MarketOutcome, a7 as MarketResult, a6 as MarketStatus, ac as MarketSummary, au as MatchConfidenceTier, t as MatchGroup, aq as MatchGroupEntry, ar as MatchGroupMarket, s as MatchGroupPage, av as MatchMarketFlat, v as MatchMarketPage, u as MatchMarketParams, as as MatchSortField, ap as MatchStatus, M as MatchesParams, at as MatchesStats, b4 as NEG_RISK_CTF_EXCHANGE_ADDRESS, b9 as ORDER_TYPE, bg as OrderMessage, ag as OrderSide, af as OrderStatus, O as Orderbook, a9 as OrderbookLevel, b6 as POLYGON_CHAIN_ID, b1 as PolymarketL2Headers, b0 as PolymarketL2HeadersInput, ai as PolymarketOrderType, m as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, o as PredictOrder, b as PredictPage, ae as PredictPosition, a4 as PredictTag, i as PredictTrade, a as PredictWsClient, a2 as PredictWsClientConfig, j as PriceHistoryRange, k as PriceHistoryResponse, ad as PricePoint, a3 as ProviderMeta, d as ProviderSource, aM as ResolveEventsParamsInput, ba as SIDE, a5 as SettlementSource, bh as SignedOrder, S as SimilarEventsParams, aN as TagSlugSelection, aa as TradeType, b5 as USDC_ADDRESS, ao as UnsignedTx, aw as WsChannel, ax as WsChannelEvent, ay as WsClientMessage, V as WsConnectionStatus, X as WsDataMessage, aE as WsErrorCode, aF as WsErrorMessage, Z as WsOrderbookEvent, aA as WsPingMessage, aC as WsPongMessage, Y as WsPriceEvent, aB as WsServerMessage, az as WsSubscribeMessage, aD as WsSubscribedMessage, _ as WsTradeEvent, aX as buildClobAuthMessage, bd as buildClobPayload, b7 as buildCtfExchangeDomain, bb as buildOrderMessage, aZ as buildPolymarketL2Headers, bc as buildSignedOrder, a0 as createPredictClient, a1 as createPredictWsClient, a_ as derivePolymarketApiKey, aG as eventQueryKey, aH as fetchEvent, aL as fetchEventsPage, aP as fetchMarket, aU as fetchMatchMarketsPage, aS as fetchMatchesPage, aY as hmacSha256Base64, aK as infiniteEventsQueryKey, aO as marketQueryKey, aT as matchMarketsQueryKey, aR as matchQueryKey, aQ as matchesQueryKey, aJ as resolveEventsParams, aI as resolveTagSlug } from './server-BPTOChEG.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, b2 as BuildClobAuthMessageInput, bf as BuildOrderMessageInput, aV as CLOB_AUTH_DOMAIN, aW as CLOB_AUTH_TYPES, b3 as CTF_EXCHANGE_ADDRESS, b8 as CTF_ORDER_TYPES, r as CancelOrderResult, C as Candlestick, be as ClobOrderPayload, $ as CreateOrderInput, bi as DEFAULT_PAGE_SIZE, ah as DFlowOrderContext, D as DFlowQuoteRequest, y as DFlowQuoteResponse, F as DFlowSubmitRequest, z as DFlowSubmitResponse, aj as DepositBuildRequest, ak as DepositBuildResponse, an as DepositStatusResponse, al as DepositSubmitRequest, am as DepositSubmitResponse, f as EventSortField, e as EventStatus, ab as EventSummary, a$ as HttpMethod, l as ListCandlesticksParams, L as ListEventsParams, h as ListMarketTradesParams, n as ListOrdersParams, w as ListTradesParams, a8 as MarketOutcome, a7 as MarketResult, a6 as MarketStatus, ac as MarketSummary, au as MatchConfidenceTier, t as MatchGroup, aq as MatchGroupEntry, ar as MatchGroupMarket, s as MatchGroupPage, av as MatchMarketFlat, v as MatchMarketPage, u as MatchMarketParams, as as MatchSortField, ap as MatchStatus, M as MatchesParams, at as MatchesStats, b4 as NEG_RISK_CTF_EXCHANGE_ADDRESS, b9 as ORDER_TYPE, bg as OrderMessage, ag as OrderSide, af as OrderStatus, O as Orderbook, a9 as OrderbookLevel, b6 as POLYGON_CHAIN_ID, b1 as PolymarketL2Headers, b0 as PolymarketL2HeadersInput, ai as PolymarketOrderType, m as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, o as PredictOrder, b as PredictPage, ae as PredictPosition, a4 as PredictTag, i as PredictTrade, a as PredictWsClient, a2 as PredictWsClientConfig, j as PriceHistoryRange, k as PriceHistoryResponse, ad as PricePoint, a3 as ProviderMeta, d as ProviderSource, aM as ResolveEventsParamsInput, ba as SIDE, a5 as SettlementSource, bh as SignedOrder, S as SimilarEventsParams, aN as TagSlugSelection, aa as TradeType, b5 as USDC_ADDRESS, ao as UnsignedTx, aw as WsChannel, ax as WsChannelEvent, ay as WsClientMessage, V as WsConnectionStatus, X as WsDataMessage, aE as WsErrorCode, aF as WsErrorMessage, Z as WsOrderbookEvent, aA as WsPingMessage, aC as WsPongMessage, Y as WsPriceEvent, aB as WsServerMessage, az as WsSubscribeMessage, aD as WsSubscribedMessage, _ as WsTradeEvent, aX as buildClobAuthMessage, bd as buildClobPayload, b7 as buildCtfExchangeDomain, bb as buildOrderMessage, aZ as buildPolymarketL2Headers, bc as buildSignedOrder, a0 as createPredictClient, a1 as createPredictWsClient, a_ as derivePolymarketApiKey, aG as eventQueryKey, aH as fetchEvent, aL as fetchEventsPage, aP as fetchMarket, aU as fetchMatchMarketsPage, aS as fetchMatchesPage, aY as hmacSha256Base64, aK as infiniteEventsQueryKey, aO as marketQueryKey, aT as matchMarketsQueryKey, aR as matchQueryKey, aQ as matchesQueryKey, aJ as resolveEventsParams, aI as resolveTagSlug } from './server-BPTOChEG.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
  *
@@ -410,6 +426,12 @@ var PredictClient = class {
410
426
  const url = `${this.endpoint}/api/v1/trades${query}`;
411
427
  return await utils.httpGet(url);
412
428
  }
429
+ /** Maps to `GET /api/v1/trades?kalshi_user=...&polymarket_user=...`. */
430
+ async listTradesMulti(params) {
431
+ const query = buildQuery(params);
432
+ const url = `${this.endpoint}/api/v1/trades${query}`;
433
+ return await utils.httpGet(url);
434
+ }
413
435
  // -------------------------------------------------------------------------
414
436
  // Withdraw
415
437
  // -------------------------------------------------------------------------