@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.
- package/dist/index.d.mts +36 -4
- package/dist/index.d.ts +36 -4
- package/dist/index.js +75 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +72 -5
- package/dist/index.mjs.map +1 -1
- package/dist/{server-CaB0XJAa.d.mts → server-BPTOChEG.d.mts} +42 -2
- package/dist/{server-CaB0XJAa.d.ts → server-BPTOChEG.d.ts} +42 -2
- package/dist/server.d.mts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +22 -0
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +22 -0
- package/dist/server.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -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
|
|
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
|
|
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,
|
|
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,
|
|
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
|
// -------------------------------------------------------------------------
|