@polymarket/client 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { OrderResponse } from '@polymarket/bindings/clob';
2
- import { bI as RateLimitError, bK as RequestRejectedError, cu as SigningError, cB as TransportError, cE as UnexpectedResponseError, U as UserInputError, au as InsufficientLiquidityError, h as BaseSecureClient, f3 as PrepareLimitOrderRequest, eJ as OrderWorkflow, eI as OrderPostingWorkflow, f5 as PrepareMarketOrderRequest, p as CancelledSigningError, by as PostOrderError, cw as TimeoutError, cx as TransactionFailedError, fH as SignedOrder, B as BaseClient } from './types-CgIv7KE4.js';
2
+ import { bM as RateLimitError, bO as RequestRejectedError, cx as SigningError, cE as TransportError, cH as UnexpectedResponseError, U as UserInputError, ax as InsufficientLiquidityError, h as BaseSecureClient, f9 as PrepareLimitOrderRequest, eO as OrderWorkflow, eN as OrderPostingWorkflow, fb as PrepareMarketOrderRequest, p as CancelledSigningError, bC as PostOrderError, cz as TimeoutError, cA as TransactionFailedError, fN as SignedOrder, B as BaseClient } from './types-vvy5wT5V.js';
3
3
  import { SportsMarketTypesResponse, SportsMetadata } from '@polymarket/bindings/gamma';
4
4
 
5
5
  type PrepareMarketOrderError = InsufficientLiquidityError | RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
@@ -1,14 +1,15 @@
1
1
  import * as _polymarket_bindings from '@polymarket/bindings';
2
- import { PaginationCursor, DecimalString, OrderSide, OrderType, TokenId, BuilderCode, EvmAddress as EvmAddress$1, CtfConditionId, TickSizeValue, PositionId, TransactionId } from '@polymarket/bindings';
3
- import { PolymarketError, HexString, EvmAddress, EvmSignature, NonEmptyArray, Prettify, Erc1271Signature, TxHash } from '@polymarket/types';
2
+ import { PaginationCursor, DecimalString, OrderSide, OrderType, TokenId, BuilderCode, TxHash, EvmAddress as EvmAddress$1, CtfConditionId, TickSizeValue, PositionId, TransactionId } from '@polymarket/bindings';
3
+ import { PolymarketError, HexString, EvmAddress, EvmSignature, NonEmptyArray, Prettify, Erc1271Signature, TxHash as TxHash$1 } from '@polymarket/types';
4
4
  import { WalletType, Event, TagReference, Market, Series, MarketClarification, Tag, RelatedTag, SportsMetadata, SportsMarketTypesResponse, Team, PublicProfile, Comment, MarketClarificationState, Profile, SearchTag } from '@polymarket/bindings/gamma';
5
5
  import { RelayerTransactionType, RelayerExecuteParams, GaslessTransaction } from '@polymarket/bindings/relayer';
6
6
  import { ZodError, z } from 'zod';
7
7
  import * as _polymarket_bindings_clob from '@polymarket/bindings/clob';
8
- import { ClobTrade, NotificationsResponse, BuilderTrade, Midpoints, Prices, OrderBook, Spreads, LastTradePrice, LastTradePriceForToken, PriceHistoryPoint, CurrentReward, MarketReward, OrdersScoringResponse, UserEarning, TotalUserEarning, UserRewardsEarning, RewardsPercentages, CancelOrdersResponse, SignatureType, OrderResponse, OrderResponses, OpenOrder, ApiKeyCreds, BalanceAllowanceResponse, BuilderFeeRates, MarketInfo } from '@polymarket/bindings/clob';
8
+ import { ClobTrade, NotificationsResponse, BuilderTrade, Midpoints, Prices, OrderBook, Spreads, LastTradePrice, LastTradePriceForToken, PriceHistoryPoint, CurrentReward, MarketReward, OrdersScoringResponse, UserEarning, TotalUserEarning, UserRewardsEarning, RewardsPercentages, CancelOrdersResponse, SignatureType, OrderResponse, OrderResponses, AcceptedOrderResponse, OpenOrder, ApiKeyCreds, BalanceAllowanceResponse, BuilderFeeRates, MarketInfo } from '@polymarket/bindings/clob';
9
9
  import * as _polymarket_bindings_data from '@polymarket/bindings/data';
10
10
  import { Activity, ComboActivity, Trade, Value, Traded, ClosedPosition, ComboPosition, Position, MetaMarketPosition, LeaderboardEntry, BuilderVolumeEntry, TraderLeaderboardEntry, LiveVolume, OpenInterest, MetaHolder } from '@polymarket/bindings/data';
11
- import { ComboMarket, RfqQuoteRequest, RfqRequestedSize, RfqSide, RfqQuoteAck, RfqConfirmationRequest, RfqConfirmationAck as RfqConfirmationAck$1, RfqExecutionUpdate, RfqTrade, RfqQuoteCancelAck, RfqErrorCode, RfqId, RfqQuoteId } from '@polymarket/bindings/rfq';
11
+ import * as _polymarket_bindings_combos from '@polymarket/bindings/combos';
12
+ import { ComboMarket, RfqQuoteRequest, RfqRequestedSize, RfqSide, RfqQuoteAck, RfqConfirmationRequest, RfqConfirmationAck as RfqConfirmationAck$1, RfqExecutionUpdate, RfqTrade, RfqQuoteCancelAck, RfqErrorCode, RfqId, RfqQuoteId, CollateralReturnPlanResponse } from '@polymarket/bindings/combos';
12
13
  import { PerpsInstrument, PerpsTicker, PerpsBook, PerpsCandle, PerpsFundingRate, PerpsPublicTrade, PerpsFeeScheduleEntry, PerpsWithdrawalId, PerpsDepositStatus, PerpsWithdrawalStatus, PerpsPnlInterval, PerpsDecimalInput, PerpsTimeInForce, PerpsCredentials, PerpsBalance, PerpsPortfolio, PerpsAccountStats, PerpsAccountConfig, PerpsOrder, PerpsAccountFill, PerpsAccountFundingPayment, PerpsDeposit, PerpsWithdrawal, PerpsEquityPoint, PerpsPnlPoint, PerpsOrderId, PerpsPostOrderAck, PerpsCancelOrderResult, PerpsUpdateLeverageResult, PerpsInstrumentCategory, PerpsKlineInterval } from '@polymarket/bindings/perps';
13
14
  import { PerpsSessionEvent, CommentsEvent, CryptoPricesTopic, EquityPricesTopic, EquityPricesEvent, MarketEvent, StandardMarketEvent, UserEvent, SportsEvent, CryptoPricesBinanceEvent, CryptoPricesChainlinkEvent, PerpsTradeEvent, PerpsBboEvent, PerpsBookEvent, PerpsCandleEvent, PerpsTickerEvent, PerpsStatisticEvent, CryptoPricesEvent, PerpsMarketDataEvent } from '@polymarket/bindings/subscriptions';
14
15
  import { Hex } from 'ox';
@@ -314,6 +315,13 @@ declare const WaitForGaslessTransactionError: {
314
315
  declare const PageSizeSchema: z.ZodNumber;
315
316
  type Page<T> = {
316
317
  items: T;
318
+ /**
319
+ * Whether another page may be available.
320
+ *
321
+ * On methods without a server-provided continuation signal, a full page
322
+ * reports `true` and the follow-up request returns an empty final page when
323
+ * the collection ended exactly on a page boundary.
324
+ */
317
325
  hasMore: boolean;
318
326
  nextCursor?: PaginationCursor;
319
327
  totalCount?: number;
@@ -3242,6 +3250,52 @@ declare function postOrder(client: BaseSecureClient): (order: SignedOrder) => Pr
3242
3250
  */
3243
3251
  declare function postOrders(client: BaseSecureClient): (orders: PostOrdersRequest) => Promise<OrderResponses>;
3244
3252
 
3253
+ type WaitForOrderFillSettlementRequest = {
3254
+ /**
3255
+ * Maximum time to wait for the order's fills to settle, in milliseconds.
3256
+ * Defaults to 30000.
3257
+ */
3258
+ timeoutMs?: number;
3259
+ };
3260
+ type WaitForOrderFillSettlementError = RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
3261
+ declare const WaitForOrderFillSettlementError: {
3262
+ isError(error: unknown): error is SigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
3263
+ };
3264
+ /**
3265
+ * Waits until every fill listed in an order response reaches a terminal
3266
+ * settlement outcome and returns the settlement transaction hashes.
3267
+ *
3268
+ * @remarks
3269
+ * Settlement covers the fills listed in this order response, identified by the
3270
+ * response's `tradeIds`. These are the fills that happened immediately when
3271
+ * the order was accepted. It does not wait for later fills of any remaining
3272
+ * quantity resting on the book; subscribe to the `user` channel to follow
3273
+ * those.
3274
+ *
3275
+ * Orders without fill identifiers resolve immediately to any transaction
3276
+ * hashes carried by the order response, or an empty array. In the rare case
3277
+ * where some fills fail execution, the settled fills' hashes are still
3278
+ * returned; the failed fills simply contribute no hash.
3279
+ *
3280
+ * @example
3281
+ * ```ts
3282
+ * const response = await client.placeMarketOrder({
3283
+ * amount: 10,
3284
+ * side: OrderSide.BUY,
3285
+ * tokenId: '123',
3286
+ * });
3287
+ *
3288
+ * if (response.ok) {
3289
+ * const hashes = await waitForOrderFillSettlement(client, response);
3290
+ * }
3291
+ * ```
3292
+ *
3293
+ * @throws {@link WaitForOrderFillSettlementError}
3294
+ * Thrown on failure: a timeout while fills are still settling, or every fill
3295
+ * failing execution. The order placement itself is unaffected.
3296
+ */
3297
+ declare function waitForOrderFillSettlement(client: BaseSecureClient, order: AcceptedOrderResponse, request?: WaitForOrderFillSettlementRequest): Promise<TxHash[]>;
3298
+
3245
3299
  type SecureTradingActions = {
3246
3300
  /**
3247
3301
  * Creates a signed market order for the authenticated account.
@@ -3272,6 +3326,11 @@ type SecureTradingActions = {
3272
3326
  /**
3273
3327
  * Creates and posts a market order for the authenticated account.
3274
3328
  *
3329
+ * @remarks
3330
+ * Settlement happens asynchronously, so a matched response is not
3331
+ * guaranteed to carry settlement transaction hashes. Use
3332
+ * `waitForOrderFillSettlement` to obtain them reliably.
3333
+ *
3275
3334
  * @throws {@link PlaceMarketOrderError}
3276
3335
  * Thrown on failure.
3277
3336
  *
@@ -3297,6 +3356,20 @@ type SecureTradingActions = {
3297
3356
  *
3298
3357
  * // response: OrderResponse
3299
3358
  * ```
3359
+ *
3360
+ * @example Market buy followed to settlement
3361
+ * ```ts
3362
+ * const response = await client.placeMarketOrder({
3363
+ * amount: 10,
3364
+ * side: OrderSide.BUY,
3365
+ * tokenId: '123',
3366
+ * });
3367
+ *
3368
+ * if (response.ok) {
3369
+ * const hashes = await client.waitForOrderFillSettlement(response);
3370
+ * // hashes: TxHash[]
3371
+ * }
3372
+ * ```
3300
3373
  */
3301
3374
  placeMarketOrder(request: PrepareMarketOrderRequest): Promise<OrderResponse>;
3302
3375
  /**
@@ -3374,6 +3447,35 @@ type SecureTradingActions = {
3374
3447
  * ```
3375
3448
  */
3376
3449
  postOrders(orders: PostOrdersRequest): Promise<OrderResponses>;
3450
+ /**
3451
+ * Waits until every fill listed in an order response reaches a terminal
3452
+ * settlement outcome and returns the settlement transaction hashes.
3453
+ *
3454
+ * @remarks
3455
+ * Settlement covers the fills listed in this order response. These are the
3456
+ * fills that happened immediately when the order was accepted. It does not
3457
+ * wait for later fills of any remaining quantity resting on the book;
3458
+ * subscribe to the `user` channel to follow those.
3459
+ *
3460
+ * @throws {@link WaitForOrderFillSettlementError}
3461
+ * Thrown on failure: a timeout while fills are still settling, or every
3462
+ * fill failing execution. The order placement itself is unaffected.
3463
+ *
3464
+ * @example
3465
+ * ```ts
3466
+ * const response = await client.placeMarketOrder({
3467
+ * amount: 10,
3468
+ * side: OrderSide.BUY,
3469
+ * tokenId: '123',
3470
+ * });
3471
+ *
3472
+ * if (response.ok) {
3473
+ * const hashes = await client.waitForOrderFillSettlement(response);
3474
+ * // hashes: TxHash[]
3475
+ * }
3476
+ * ```
3477
+ */
3478
+ waitForOrderFillSettlement(order: AcceptedOrderResponse, request?: WaitForOrderFillSettlementRequest): Promise<TxHash$1[]>;
3377
3479
  /**
3378
3480
  * Cancels a single open order for the authenticated account.
3379
3481
  *
@@ -3659,6 +3761,58 @@ type SecureWalletActions = {
3659
3761
  * ```
3660
3762
  */
3661
3763
  redeemPositions(request: PrepareRedeemPositionsRequest): Promise<TransactionHandle>;
3764
+ /**
3765
+ * Plans a collateral return for the authenticated account.
3766
+ *
3767
+ * The returned plan is an inspectable artifact: review the collateral it
3768
+ * releases, the inputs it consumes, and the residual-position impact, and
3769
+ * apply any application-specific limits before executing it with
3770
+ * {@link SecureWalletActions.executeCollateralReturnPlan | executeCollateralReturnPlan}.
3771
+ * A truncated plan is one executable chunk of a larger return; execute and
3772
+ * confirm it before requesting the next plan.
3773
+ *
3774
+ * @throws {@link PlanCollateralReturnError}
3775
+ * Thrown on failure.
3776
+ *
3777
+ * @example
3778
+ * ```ts
3779
+ * let plan: CollateralReturnPlanResponse;
3780
+ *
3781
+ * do {
3782
+ * plan = await client.planCollateralReturn();
3783
+ *
3784
+ * // Inspect the return and residual-position impact, and apply any
3785
+ * // application-specific limits before signing.
3786
+ * const handle = await client.executeCollateralReturnPlan({ plan });
3787
+ * await handle.wait();
3788
+ * } while (plan.truncated);
3789
+ * ```
3790
+ */
3791
+ planCollateralReturn(): Promise<CollateralReturnPlanResponse>;
3792
+ /**
3793
+ * Executes a collateral return plan for the authenticated account.
3794
+ *
3795
+ * Execution signs and submits the exact call carried by the plan; nothing is
3796
+ * recomputed on the client, and no approval transactions are run implicitly.
3797
+ * Confirmation stays explicit through the returned handle's `wait()`.
3798
+ *
3799
+ * If wallet state changed since the plan was created, the service rejects
3800
+ * the submission; request a fresh plan and execute that instead.
3801
+ *
3802
+ * @throws {@link ExecuteCollateralReturnPlanError}
3803
+ * Thrown on failure.
3804
+ *
3805
+ * @example
3806
+ * ```ts
3807
+ * const plan = await client.planCollateralReturn();
3808
+ *
3809
+ * const handle = await client.executeCollateralReturnPlan({ plan });
3810
+ * const outcome = await handle.wait();
3811
+ *
3812
+ * // outcome.transactionHash: TxHash
3813
+ * ```
3814
+ */
3815
+ executeCollateralReturnPlan(request: ExecuteCollateralReturnPlanRequest): Promise<TransactionHandle>;
3662
3816
  };
3663
3817
  declare function walletActions(client: BaseSecureClient): SecureWalletActions;
3664
3818
 
@@ -3688,7 +3842,9 @@ type ClobEndpoints = RestEndpoint & {
3688
3842
  market: WebSocketEndpoint;
3689
3843
  user: WebSocketEndpoint;
3690
3844
  };
3691
- type RfqEndpoints = RestEndpoint & WebSocketEndpoint;
3845
+ type CombosEndpoints = RestEndpoint & WebSocketEndpoint & {
3846
+ collateralReturn: RestEndpoint;
3847
+ };
3692
3848
  /**
3693
3849
  * @experimental This API may change in a breaking way in any release, including patch releases.
3694
3850
  */
@@ -3728,7 +3884,9 @@ type EnvironmentConfigFork = {
3728
3884
  relayer?: Partial<RestEndpoint>;
3729
3885
  gamma?: Partial<RestEndpoint>;
3730
3886
  data?: Partial<RestEndpoint>;
3731
- rfq?: EnvironmentConfigForkEndpoint;
3887
+ combos?: EnvironmentConfigForkEndpoint & {
3888
+ collateralReturn?: Partial<RestEndpoint>;
3889
+ };
3732
3890
  perps?: EnvironmentConfigForkEndpoint;
3733
3891
  rtds?: Partial<WebSocketEndpoint>;
3734
3892
  sports?: Partial<WebSocketEndpoint>;
@@ -5142,6 +5300,68 @@ declare const ListMarketRewardsError: {
5142
5300
  */
5143
5301
  declare function listMarketRewards(client: BaseClient, request: ListMarketRewardsRequest): Paginated<MarketReward[]>;
5144
5302
 
5303
+ type PlanCollateralReturnError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError;
5304
+ declare const PlanCollateralReturnError: {
5305
+ isError(error: unknown): error is TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5306
+ };
5307
+ /**
5308
+ * Plans a collateral return for the authenticated account.
5309
+ *
5310
+ * @remarks
5311
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
5312
+ *
5313
+ * @throws {@link PlanCollateralReturnError}
5314
+ * Thrown on failure.
5315
+ */
5316
+ declare function planCollateralReturn(client: BaseSecureClient): Promise<CollateralReturnPlanResponse>;
5317
+ declare const ExecuteCollateralReturnPlanRequestSchema: z.ZodObject<{
5318
+ plan: z.ZodObject<{
5319
+ planHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
5320
+ chainId: z.ZodNumber;
5321
+ wallet: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress$1, string>>;
5322
+ routerCall: z.ZodPipe<z.ZodObject<{
5323
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress$1, string>>;
5324
+ data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
5325
+ }, z.core.$strip>, z.ZodTransform<_polymarket_bindings_combos.CollateralReturnRouterCall, {
5326
+ to: EvmAddress$1;
5327
+ data: `0x${string}`;
5328
+ }>>;
5329
+ }, z.core.$loose>;
5330
+ }, z.core.$strip>;
5331
+ type ExecuteCollateralReturnPlanRequest = z.infer<typeof ExecuteCollateralReturnPlanRequestSchema>;
5332
+ type CollateralReturnExecutionWorkflow = AsyncGenerator<GaslessWorkflowRequest, TransactionHandle, EvmAddress$1 | EvmSignature | TransactionHandle>;
5333
+ type PrepareCollateralReturnExecutionError = RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5334
+ declare const PrepareCollateralReturnExecutionError: {
5335
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError;
5336
+ };
5337
+ /**
5338
+ * Starts a collateral return execution workflow for a previously requested
5339
+ * plan.
5340
+ *
5341
+ * The workflow signs and submits the exact call carried by the plan.
5342
+ *
5343
+ * @remarks
5344
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
5345
+ *
5346
+ * @throws {@link PrepareCollateralReturnExecutionError}
5347
+ * Thrown on failure.
5348
+ */
5349
+ declare function prepareCollateralReturnExecution(client: BaseSecureClient, request: ExecuteCollateralReturnPlanRequest): Promise<CollateralReturnExecutionWorkflow>;
5350
+ type ExecuteCollateralReturnPlanError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
5351
+ declare const ExecuteCollateralReturnPlanError: {
5352
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5353
+ };
5354
+ /**
5355
+ * Executes a collateral return plan for the authenticated account.
5356
+ *
5357
+ * @remarks
5358
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
5359
+ *
5360
+ * @throws {@link ExecuteCollateralReturnPlanError}
5361
+ * Thrown on failure.
5362
+ */
5363
+ declare function executeCollateralReturnPlan(client: BaseSecureClient, request: ExecuteCollateralReturnPlanRequest): Promise<TransactionHandle>;
5364
+
5145
5365
  declare const ListCommentsRequestSchema: z.ZodObject<{
5146
5366
  ascending: z.ZodOptional<z.ZodBoolean>;
5147
5367
  cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
@@ -8334,7 +8554,7 @@ type TransactionOutcome = {
8334
8554
  /**
8335
8555
  * The hash of the settled transaction.
8336
8556
  */
8337
- transactionHash: TxHash;
8557
+ transactionHash: TxHash$1;
8338
8558
  /**
8339
8559
  * The unique identifier of the settled transaction when submitted through the Polymarket API,
8340
8560
  * or null if the transaction was submitted directly to the blockchain.
@@ -8349,7 +8569,7 @@ interface TransactionHandle {
8349
8569
  /**
8350
8570
  * The hash of the submitted transaction, or null if the transaction is pending submission.
8351
8571
  */
8352
- readonly transactionHash: TxHash | null;
8572
+ readonly transactionHash: TxHash$1 | null;
8353
8573
  /**
8354
8574
  * The unique identifier of the submitted transaction when submitted through the Polymarket API,
8355
8575
  * or null if the transaction was submitted directly to the blockchain.
@@ -8370,4 +8590,4 @@ type Signer = {
8370
8590
  sendTransaction(request: SignerTransactionRequest): Promise<TransactionHandle>;
8371
8591
  };
8372
8592
 
8373
- export { FetchOrderBookError as $, type ApiKeyAuthorization as A, type BaseClient as B, CancelAllError as C, type DataActions as D, type DepositToPerpsRequest as E, type DiscoveryActions as F, DownloadAccountingSnapshotError as G, DropNotificationsError as H, type EnvironmentConfig as I, type EnvironmentConfigFork as J, type EnvironmentContracts as K, EstimateMarketPriceError as L, FetchClosedOnlyModeError as M, FetchCommentsByIdError as N, FetchEventError as O, FetchEventLiveVolumeError as P, FetchEventTagsError as Q, FetchLastTradePriceError as R, type Signer as S, type TypedDataPayload as T, UserInputError as U, FetchLastTradePricesError as V, FetchMarketError as W, FetchMarketTagsError as X, FetchMidpointError as Y, FetchMidpointsError as Z, FetchNotificationsError as _, type TypedData as a, ListSeriesError as a$, FetchOrderBooksError as a0, FetchOrderError as a1, FetchOrderScoringError as a2, FetchOrdersScoringError as a3, type FetchPerpsAccountConfigRequest as a4, FetchPerpsBookError as a5, type FetchPerpsBookRequest as a6, FetchPerpsFeesError as a7, FetchPerpsInstrumentsError as a8, type FetchPerpsInstrumentsRequest as a9, ListClosedPositionsError as aA, ListComboActivityError as aB, ListComboMarketsError as aC, ListComboPositionsError as aD, ListCommentsByUserAddressError as aE, ListCommentsError as aF, ListCurrentRewardsError as aG, ListEventsError as aH, ListMarketHoldersError as aI, ListMarketPositionsError as aJ, ListMarketRewardsError as aK, ListMarketsError as aL, ListOpenInterestError as aM, ListOpenOrdersError as aN, ListPerpsCandlesError as aO, type ListPerpsCandlesRequest as aP, type ListPerpsDepositsRequest as aQ, type ListPerpsEquityHistoryRequest as aR, type ListPerpsFillsRequest as aS, ListPerpsFundingHistoryError as aT, type ListPerpsFundingHistoryRequest as aU, type ListPerpsFundingPaymentsRequest as aV, type ListPerpsPnlHistoryRequest as aW, ListPerpsTradesError as aX, type ListPerpsTradesRequest as aY, type ListPerpsWithdrawalsRequest as aZ, ListPositionsError as a_, type FetchPerpsOpenOrdersRequest as aa, type FetchPerpsOrdersRequest as ab, FetchPerpsTickerError as ac, type FetchPerpsTickerRequest as ad, FetchPerpsTickersError as ae, type FetchPerpsTickersRequest as af, FetchPortfolioValueError as ag, FetchPriceError as ah, FetchPriceHistoryError as ai, FetchPricesError as aj, FetchPublicProfileError as ak, FetchRelatedTagResourcesError as al, FetchRelatedTagsError as am, FetchRewardPercentagesError as an, FetchSeriesError as ao, FetchSpreadError as ap, FetchSpreadsError as aq, FetchTagError as ar, FetchTotalEarningsForUserForDayError as as, FetchTradedMarketCountError as at, InsufficientLiquidityError as au, ListAccountTradesError as av, ListActivityError as aw, ListBuilderLeaderboardError as ax, ListBuilderTradesError as ay, ListBuilderVolumeError as az, type TransactionCall as b, type RfqQuoteReference as b$, ListTagsError as b0, ListTeamsError as b1, ListTraderLeaderboardError as b2, ListTradesError as b3, ListUserEarningsAndMarketsConfigError as b4, ListUserEarningsForDayError as b5, MergePositionsError as b6, OpenPerpsSessionError as b7, type OpenPerpsSessionRequest as b8, OpenRfqSessionError as b9, type PostPerpsOrdersRequest as bA, type PublicAccountActions as bB, type PublicActions as bC, type PublicClient as bD, type PublicClientOptions as bE, type PublicPerpsActions as bF, type PublicRewardsActions as bG, type PublicSubscriptionsActions as bH, RateLimitError as bI, RedeemPositionsError as bJ, RequestRejectedError as bK, type RequestRejectedErrorOptions as bL, type RestEndpoint as bM, type ResumePerpsSessionRequest as bN, RevokePerpsCredentialsError as bO, type RevokePerpsCredentialsRequest as bP, type RfqCancelQuoteAck as bQ, RfqCancelQuoteError as bR, RfqCancelQuoteRejectedError as bS, type RfqCancelQuoteRejectedErrorOptions as bT, type RfqConfirmationAck as bU, RfqConfirmationError as bV, RfqConfirmationRejectedError as bW, type RfqConfirmationRequestEvent as bX, type RfqEndpoints as bY, type RfqEvent as bZ, RfqQuoteError as b_, type Page as ba, PageSizeSchema as bb, type Paginated as bc, type PerpsActions as bd, type PerpsBookDepth as be, type PerpsEndpoints as bf, type PerpsOrderRequest as bg, type PerpsPlaceFokOrderRequest as bh, type PerpsPlaceGtcOrderRequest as bi, type PerpsPlaceIocOrderRequest as bj, type PerpsPlacedTpSlOrder as bk, type PerpsPlacedTpSlOrders as bl, type PerpsPositionTpSlTrigger as bm, PerpsSession as bn, type PerpsSessionAccountError as bo, type PerpsSessionLifecycleError as bp, type PerpsSessionTradingError as bq, type PerpsTpSlTrigger as br, type PlacePerpsOrderRequest as bs, type PlacePerpsOrderResult as bt, type PlacePerpsOrderWithTpSlRequest as bu, type PlacePerpsOrderWithTpSlResult as bv, type PlacePerpsPositionTpSlRequest as bw, type PlacePerpsPositionTpSlResult as bx, PostOrderError as by, PostOrdersError as bz, type AccountIdentity as c, subscriptionsActions as c$, RfqQuoteRejectedError as c0, type RfqQuoteRejectedErrorOptions as c1, type RfqQuoteRequestEvent as c2, type RfqQuoteResponse as c3, type RfqQuoteSource as c4, type RfqSession as c5, type RfqTradeEvent as c6, SearchError as c7, SearchSort as c8, type SecureAccountActions as c9, TransferErc20Error as cA, TransportError as cB, type TypedDataDomain as cC, type TypedDataField as cD, UnexpectedResponseError as cE, UpdatePerpsLeverageError as cF, type UpdatePerpsLeverageRequest as cG, WaitForTransactionError as cH, type WalletDerivationConfig as cI, type WebSocketCloseCode as cJ, type WebSocketEndpoint as cK, WebSocketKnownCloseCode as cL, WithdrawFromPerpsError as cM, type WithdrawFromPerpsRequest as cN, accountActions as cO, allActions as cP, analyticsActions as cQ, createPublicClient as cR, createSecureClient as cS, dataActions as cT, discoveryActions as cU, forkEnvironmentConfig as cV, makeErrorGuard as cW, perpsActions as cX, production as cY, rewardsActions as cZ, rfqActions as c_, type SecureActions as ca, type SecureClient as cb, type SecureClientOptions as cc, type SecureDownloadAccountingSnapshotRequest as cd, type SecureFetchPortfolioValueRequest as ce, type SecureFetchTradedMarketCountRequest as cf, type SecureListActivityRequest as cg, type SecureListClosedPositionsRequest as ch, type SecureListComboActivityRequest as ci, type SecureListComboPositionsRequest as cj, type SecureListPositionsRequest as ck, type SecurePerpsActions as cl, type SecureRewardsActions as cm, type SecureRfqActions as cn, type SecureSubscriptionsActions as co, type SecureTradingActions as cp, type SecureWalletActions as cq, SetupGaslessWalletError as cr, SetupTradingApprovalsError as cs, type SignerTransactionRequest as ct, SigningError as cu, SplitPositionError as cv, TimeoutError as cw, TransactionFailedError as cx, type TransactionHandle as cy, type TransactionOutcome as cz, type AnalyticsActions as d, FetchTickSizeError as d$, tradingActions as d0, walletActions as d1, type CancelMarketOrdersRequest as d2, type CancelOrderRequest as d3, type CancelOrdersRequest as d4, type CommentsEventType as d5, type CommentsSubscription as d6, type CryptoPricesEventType as d7, type CryptoPricesSubscription as d8, DeployDepositWalletError as d9, type FetchGaslessTransactionRequest as dA, type FetchLastTradePriceRequest as dB, type FetchLastTradePricesRequest as dC, FetchMarketInfoError as dD, type FetchMarketInfoRequest as dE, type FetchMarketRequest as dF, type FetchMarketTagsRequest as dG, type FetchMidpointRequest as dH, type FetchMidpointsRequest as dI, FetchNegRiskError as dJ, type FetchNegRiskRequest as dK, type FetchOrderBookRequest as dL, type FetchOrderBooksRequest as dM, type FetchOrderRequest as dN, type FetchOrderScoringRequest as dO, type FetchOrdersScoringRequest as dP, type FetchPortfolioValueRequest as dQ, type FetchPriceHistoryRequest as dR, type FetchPriceRequest as dS, type FetchPricesRequest as dT, type FetchPublicProfileRequest as dU, type FetchRelatedTagResourcesRequest as dV, type FetchRelatedTagsRequest as dW, type FetchSeriesRequest as dX, type FetchSpreadRequest as dY, type FetchSpreadsRequest as dZ, type FetchTagRequest as d_, type DownloadAccountingSnapshotRequest as da, type DropNotificationsRequest as db, type EquityPricesEventType as dc, type EquityPricesSubscription as dd, type Erc1155ApprovalForAllWorkflow as de, type Erc1155ApprovalForAllWorkflowRequest as df, type Erc20ApprovalWorkflow as dg, type Erc20ApprovalWorkflowRequest as dh, type Erc20TransferWorkflow as di, type Erc20TransferWorkflowRequest as dj, type EstimateMarketBuyPriceRequest as dk, type EstimateMarketPriceRequest as dl, type EstimateMarketSellPriceRequest as dm, type EventForSubscriptionSpec as dn, type EventForSubscriptionSpecs as dp, FetchBalanceAllowanceError as dq, type FetchBalanceAllowanceRequest as dr, FetchBuilderFeeRatesError as ds, type FetchBuilderFeeRatesRequest as dt, type FetchCommentsByIdRequest as du, type FetchEventLiveVolumeRequest as dv, type FetchEventRequest as dw, type FetchEventTagsRequest as dx, FetchExecuteParamsError as dy, type FetchExecuteParamsRequest as dz, ApproveErc1155ForAllError as e, PrepareErc20TransferError as e$, type FetchTickSizeRequest as e0, type FetchTotalEarningsForUserForDayRequest as e1, type FetchTradedMarketCountRequest as e2, GaslessTransactionMetadataSchema as e3, type GaslessWorkflow as e4, type GaslessWorkflowRequest as e5, IsWalletDeployedError as e6, type IsWalletDeployedRequest as e7, type ListAccountTradesRequest as e8, type ListActivityRequest as e9, type ListUserEarningsForDayRequest as eA, type MarketEventType as eB, type MarketSubscription as eC, MergeComboPositionError as eD, MergeMarketPositionError as eE, type MergePositionsWorkflow as eF, type MergePositionsWorkflowRequest as eG, type OrderDraft as eH, type OrderPostingWorkflow as eI, type OrderWorkflow as eJ, type OrderWorkflowRequest as eK, type PerpsBboSubscription as eL, type PerpsBookSubscription as eM, type PerpsCandlesSubscription as eN, type PerpsDepositWorkflow as eO, type PerpsDepositWorkflowRequest as eP, type PerpsMarketDataEventType as eQ, type PerpsMarketDataSubscription as eR, type PerpsStatisticsSubscription as eS, type PerpsStreamingCandleInterval as eT, type PerpsTickersSubscription as eU, type PerpsTradesSubscription as eV, type PostOrdersRequest as eW, PrepareErc1155ApprovalForAllError as eX, type PrepareErc1155ApprovalForAllRequest as eY, PrepareErc20ApprovalError as eZ, type PrepareErc20ApprovalRequest as e_, type ListBuilderLeaderboardRequest as ea, type ListBuilderTradesRequest as eb, type ListBuilderVolumeRequest as ec, type ListClosedPositionsRequest as ed, type ListComboActivityRequest as ee, type ListComboMarketsRequest as ef, type ListComboPositionsRequest as eg, type ListCommentsByUserAddressRequest as eh, type ListCommentsRequest as ei, type ListCurrentRewardsRequest as ej, type ListEventsRequest as ek, ListMarketClarificationsError as el, type ListMarketClarificationsRequest as em, type ListMarketHoldersRequest as en, type ListMarketPositionsRequest as eo, type ListMarketRewardsRequest as ep, type ListMarketsRequest as eq, type ListOpenInterestRequest as er, type ListOpenOrdersRequest as es, type ListPositionsRequest as et, type ListSeriesRequest as eu, type ListTagsRequest as ev, type ListTeamsRequest as ew, type ListTraderLeaderboardRequest as ex, type ListTradesRequest as ey, type ListUserEarningsAndMarketsConfigRequest as ez, ApproveErc20Error as f, cancelOrder as f$, type PrepareErc20TransferRequest as f0, PrepareGaslessTransactionError as f1, type PrepareGaslessTransactionRequest as f2, type PrepareLimitOrderRequest as f3, type PrepareMarketBuyOrderRequest as f4, type PrepareMarketOrderRequest as f5, type PrepareMarketSellOrderRequest as f6, PrepareMergeComboPositionError as f7, type PrepareMergeComboPositionRequest as f8, PrepareMergeMarketPositionError as f9, type RfqConfirmationRejectedErrorOptions as fA, type RfqExecutionUpdateEvent as fB, type SearchRequest as fC, type SearchResults as fD, type SecureRealtimeEvent as fE, type SecureRealtimeTopic as fF, type SecureSubscriptionSpec as fG, type SignedOrder as fH, SplitComboPositionError as fI, SplitMarketPositionError as fJ, type SplitPositionWorkflow as fK, type SplitPositionWorkflowRequest as fL, type SportsEventType as fM, type SportsSubscription as fN, type SubscribeError as fO, type SubscriptionHandle as fP, type TradingApprovalsWorkflow as fQ, type TradingApprovalsWorkflowRequest as fR, UpdateBalanceAllowanceError as fS, type UpdateBalanceAllowanceRequest as fT, type UserEventType as fU, type UserSubscription as fV, WaitForGaslessTransactionError as fW, approveErc1155ForAll as fX, approveErc20 as fY, cancelAll as fZ, cancelMarketOrders as f_, type PrepareMergeMarketPositionRequest as fa, PrepareMergePositionsError as fb, type PrepareMergePositionsRequest as fc, PreparePerpsDepositError as fd, PrepareRedeemComboPositionError as fe, type PrepareRedeemComboPositionRequest as ff, type PrepareRedeemMarketPositionsByConditionIdRequest as fg, type PrepareRedeemMarketPositionsByMarketIdRequest as fh, PrepareRedeemMarketPositionsError as fi, type PrepareRedeemMarketPositionsRequest as fj, PrepareRedeemPositionsError as fk, type PrepareRedeemPositionsRequest as fl, PrepareSplitComboPositionError as fm, type PrepareSplitComboPositionRequest as fn, PrepareSplitMarketPositionError as fo, type PrepareSplitMarketPositionRequest as fp, PrepareSplitPositionError as fq, type PrepareSplitPositionRequest as fr, PrepareTradingApprovalsError as fs, type PublicRealtimeEvent as ft, type PublicRealtimeTopic as fu, type PublicSubscriptionSpec as fv, type RedeemPositionsWorkflow as fw, type RedeemPositionsWorkflowRequest as fx, ResolveConditionByTokenError as fy, type ResolveConditionByTokenRequest as fz, BasePublicClient as g, listMarketClarifications as g$, cancelOrders as g0, deployDepositWallet as g1, depositToPerps as g2, downloadAccountingSnapshot as g3, dropNotifications as g4, estimateMarketPrice as g5, fetchBalanceAllowance as g6, fetchBuilderFeeRates as g7, fetchBuilderVolume as g8, fetchClosedOnlyMode as g9, fetchPriceHistory as gA, fetchPrices as gB, fetchPublicProfile as gC, fetchRelatedTagResources as gD, fetchRelatedTags as gE, fetchRewardPercentages as gF, fetchSeries as gG, fetchSpread as gH, fetchSpreads as gI, fetchTag as gJ, fetchTickSize as gK, fetchTotalEarningsForUserForDay as gL, fetchTradedMarketCount as gM, fetchTransaction as gN, isWalletDeployed as gO, listAccountTrades as gP, listActivity as gQ, listBuilderLeaderboard as gR, listBuilderTrades as gS, listClosedPositions as gT, listComboActivity as gU, listComboMarkets as gV, listComboPositions as gW, listComments as gX, listCommentsByUserAddress as gY, listCurrentRewards as gZ, listEvents as g_, fetchCommentsById as ga, fetchEvent as gb, fetchEventLiveVolume as gc, fetchEventTags as gd, fetchExecuteParams as ge, fetchLastTradePrice as gf, fetchLastTradePrices as gg, fetchMarket as gh, fetchMarketInfo as gi, fetchMarketTags as gj, fetchMidpoint as gk, fetchMidpoints as gl, fetchNegRisk as gm, fetchNotifications as gn, fetchOrder as go, fetchOrderBook as gp, fetchOrderBooks as gq, fetchOrderScoring as gr, fetchOrdersScoring as gs, fetchPerpsBook as gt, fetchPerpsFees as gu, fetchPerpsInstruments as gv, fetchPerpsTicker as gw, fetchPerpsTickers as gx, fetchPortfolioValue as gy, fetchPrice as gz, BaseSecureClient as h, listMarketHolders as h0, listMarketPositions as h1, listMarketRewards as h2, listMarkets as h3, listOpenInterest as h4, listOpenOrders as h5, listPerpsCandles as h6, listPerpsFundingHistory as h7, listPerpsTrades as h8, listPositions as h9, prepareSplitMarketPosition as hA, prepareSplitPosition as hB, prepareTradingApprovals as hC, redeemPositions as hD, resolveConditionByToken as hE, revokePerpsCredentials as hF, search as hG, setupTradingApprovals as hH, splitComboPosition as hI, splitMarketPosition as hJ, splitPosition as hK, subscribe as hL, transferErc20 as hM, updateBalanceAllowance as hN, withdrawFromPerps as hO, listSeries as ha, listTags as hb, listTeams as hc, listTraderLeaderboard as hd, listTrades as he, listUserEarningsAndMarketsConfig as hf, listUserEarningsForDay as hg, mergeComboPosition as hh, mergeMarketPosition as hi, mergePositions as hj, openPerpsSession as hk, openRfqSession as hl, postOrder as hm, postOrders as hn, prepareErc1155ApprovalForAll as ho, prepareErc20Approval as hp, prepareErc20Transfer as hq, prepareGaslessTransaction as hr, prepareMergeComboPosition as hs, prepareMergeMarketPosition as ht, prepareMergePositions as hu, preparePerpsDeposit as hv, prepareRedeemComboPosition as hw, prepareRedeemMarketPositions as hx, prepareRedeemPositions as hy, prepareSplitComboPosition as hz, type BeginAuthenticationRequest as i, type CancelAllPerpsOrdersRequest as j, CancelMarketOrdersError as k, CancelOrderError as l, CancelOrdersError as m, type CancelPerpsOrderRequest as n, type CancelPerpsOrdersRequest as o, CancelledSigningError as p, type Client as q, type ClientActions as r, type ClientDecorator as s, type ClobEndpoints as t, ComboPositionSort as u, ConnectionLostError as v, type ConnectionLostErrorOptions as w, type CreatePerpsSessionRequest as x, CreateSecureClientError as y, DepositToPerpsError as z };
8593
+ export { FetchMidpointError as $, type ApiKeyAuthorization as A, type BaseClient as B, CancelAllError as C, type DataActions as D, DepositToPerpsError as E, type DepositToPerpsRequest as F, type DiscoveryActions as G, DownloadAccountingSnapshotError as H, DropNotificationsError as I, type EnvironmentConfig as J, type EnvironmentConfigFork as K, type EnvironmentContracts as L, EstimateMarketPriceError as M, ExecuteCollateralReturnPlanError as N, type ExecuteCollateralReturnPlanRequest as O, FetchClosedOnlyModeError as P, FetchCommentsByIdError as Q, FetchEventError as R, type Signer as S, type TypedDataPayload as T, UserInputError as U, FetchEventLiveVolumeError as V, FetchEventTagsError as W, FetchLastTradePriceError as X, FetchLastTradePricesError as Y, FetchMarketError as Z, FetchMarketTagsError as _, type TypedData as a, type ListPerpsTradesRequest as a$, FetchMidpointsError as a0, FetchNotificationsError as a1, FetchOrderBookError as a2, FetchOrderBooksError as a3, FetchOrderError as a4, FetchOrderScoringError as a5, FetchOrdersScoringError as a6, type FetchPerpsAccountConfigRequest as a7, FetchPerpsBookError as a8, type FetchPerpsBookRequest as a9, ListBuilderLeaderboardError as aA, ListBuilderTradesError as aB, ListBuilderVolumeError as aC, ListClosedPositionsError as aD, ListComboActivityError as aE, ListComboMarketsError as aF, ListComboPositionsError as aG, ListCommentsByUserAddressError as aH, ListCommentsError as aI, ListCurrentRewardsError as aJ, ListEventsError as aK, ListMarketHoldersError as aL, ListMarketPositionsError as aM, ListMarketRewardsError as aN, ListMarketsError as aO, ListOpenInterestError as aP, ListOpenOrdersError as aQ, ListPerpsCandlesError as aR, type ListPerpsCandlesRequest as aS, type ListPerpsDepositsRequest as aT, type ListPerpsEquityHistoryRequest as aU, type ListPerpsFillsRequest as aV, ListPerpsFundingHistoryError as aW, type ListPerpsFundingHistoryRequest as aX, type ListPerpsFundingPaymentsRequest as aY, type ListPerpsPnlHistoryRequest as aZ, ListPerpsTradesError as a_, FetchPerpsFeesError as aa, FetchPerpsInstrumentsError as ab, type FetchPerpsInstrumentsRequest as ac, type FetchPerpsOpenOrdersRequest as ad, type FetchPerpsOrdersRequest as ae, FetchPerpsTickerError as af, type FetchPerpsTickerRequest as ag, FetchPerpsTickersError as ah, type FetchPerpsTickersRequest as ai, FetchPortfolioValueError as aj, FetchPriceError as ak, FetchPriceHistoryError as al, FetchPricesError as am, FetchPublicProfileError as an, FetchRelatedTagResourcesError as ao, FetchRelatedTagsError as ap, FetchRewardPercentagesError as aq, FetchSeriesError as ar, FetchSpreadError as as, FetchSpreadsError as at, FetchTagError as au, FetchTotalEarningsForUserForDayError as av, FetchTradedMarketCountError as aw, InsufficientLiquidityError as ax, ListAccountTradesError as ay, ListActivityError as az, type TransactionCall as b, type RfqConfirmationRequestEvent as b$, type ListPerpsWithdrawalsRequest as b0, ListPositionsError as b1, ListSeriesError as b2, ListTagsError as b3, ListTeamsError as b4, ListTraderLeaderboardError as b5, ListTradesError as b6, ListUserEarningsAndMarketsConfigError as b7, ListUserEarningsForDayError as b8, MergePositionsError as b9, type PlacePerpsPositionTpSlResult as bA, PlanCollateralReturnError as bB, PostOrderError as bC, PostOrdersError as bD, type PostPerpsOrdersRequest as bE, type PublicAccountActions as bF, type PublicActions as bG, type PublicClient as bH, type PublicClientOptions as bI, type PublicPerpsActions as bJ, type PublicRewardsActions as bK, type PublicSubscriptionsActions as bL, RateLimitError as bM, RedeemPositionsError as bN, RequestRejectedError as bO, type RequestRejectedErrorOptions as bP, type RestEndpoint as bQ, type ResumePerpsSessionRequest as bR, RevokePerpsCredentialsError as bS, type RevokePerpsCredentialsRequest as bT, type RfqCancelQuoteAck as bU, RfqCancelQuoteError as bV, RfqCancelQuoteRejectedError as bW, type RfqCancelQuoteRejectedErrorOptions as bX, type RfqConfirmationAck as bY, RfqConfirmationError as bZ, RfqConfirmationRejectedError as b_, OpenPerpsSessionError as ba, type OpenPerpsSessionRequest as bb, OpenRfqSessionError as bc, type Page as bd, PageSizeSchema as be, type Paginated as bf, type PerpsActions as bg, type PerpsBookDepth as bh, type PerpsEndpoints as bi, type PerpsOrderRequest as bj, type PerpsPlaceFokOrderRequest as bk, type PerpsPlaceGtcOrderRequest as bl, type PerpsPlaceIocOrderRequest as bm, type PerpsPlacedTpSlOrder as bn, type PerpsPlacedTpSlOrders as bo, type PerpsPositionTpSlTrigger as bp, PerpsSession as bq, type PerpsSessionAccountError as br, type PerpsSessionLifecycleError as bs, type PerpsSessionTradingError as bt, type PerpsTpSlTrigger as bu, type PlacePerpsOrderRequest as bv, type PlacePerpsOrderResult as bw, type PlacePerpsOrderWithTpSlRequest as bx, type PlacePerpsOrderWithTpSlResult as by, type PlacePerpsPositionTpSlRequest as bz, type AccountIdentity as c, perpsActions as c$, type RfqEvent as c0, RfqQuoteError as c1, type RfqQuoteReference as c2, RfqQuoteRejectedError as c3, type RfqQuoteRejectedErrorOptions as c4, type RfqQuoteRequestEvent as c5, type RfqQuoteResponse as c6, type RfqQuoteSource as c7, type RfqSession as c8, type RfqTradeEvent as c9, TransactionFailedError as cA, type TransactionHandle as cB, type TransactionOutcome as cC, TransferErc20Error as cD, TransportError as cE, type TypedDataDomain as cF, type TypedDataField as cG, UnexpectedResponseError as cH, UpdatePerpsLeverageError as cI, type UpdatePerpsLeverageRequest as cJ, WaitForOrderFillSettlementError as cK, WaitForTransactionError as cL, type WalletDerivationConfig as cM, type WebSocketCloseCode as cN, type WebSocketEndpoint as cO, WebSocketKnownCloseCode as cP, WithdrawFromPerpsError as cQ, type WithdrawFromPerpsRequest as cR, accountActions as cS, allActions as cT, analyticsActions as cU, createPublicClient as cV, createSecureClient as cW, dataActions as cX, discoveryActions as cY, forkEnvironmentConfig as cZ, makeErrorGuard as c_, SearchError as ca, SearchSort as cb, type SecureAccountActions as cc, type SecureActions as cd, type SecureClient as ce, type SecureClientOptions as cf, type SecureDownloadAccountingSnapshotRequest as cg, type SecureFetchPortfolioValueRequest as ch, type SecureFetchTradedMarketCountRequest as ci, type SecureListActivityRequest as cj, type SecureListClosedPositionsRequest as ck, type SecureListComboActivityRequest as cl, type SecureListComboPositionsRequest as cm, type SecureListPositionsRequest as cn, type SecurePerpsActions as co, type SecureRewardsActions as cp, type SecureRfqActions as cq, type SecureSubscriptionsActions as cr, type SecureTradingActions as cs, type SecureWalletActions as ct, SetupGaslessWalletError as cu, SetupTradingApprovalsError as cv, type SignerTransactionRequest as cw, SigningError as cx, SplitPositionError as cy, TimeoutError as cz, type AnalyticsActions as d, type FetchRelatedTagsRequest as d$, production as d0, rewardsActions as d1, rfqActions as d2, subscriptionsActions as d3, tradingActions as d4, walletActions as d5, type CancelMarketOrdersRequest as d6, type CancelOrderRequest as d7, type CancelOrdersRequest as d8, type CollateralReturnExecutionWorkflow as d9, type FetchEventLiveVolumeRequest as dA, type FetchEventRequest as dB, type FetchEventTagsRequest as dC, FetchExecuteParamsError as dD, type FetchExecuteParamsRequest as dE, type FetchGaslessTransactionRequest as dF, type FetchLastTradePriceRequest as dG, type FetchLastTradePricesRequest as dH, FetchMarketInfoError as dI, type FetchMarketInfoRequest as dJ, type FetchMarketRequest as dK, type FetchMarketTagsRequest as dL, type FetchMidpointRequest as dM, type FetchMidpointsRequest as dN, FetchNegRiskError as dO, type FetchNegRiskRequest as dP, type FetchOrderBookRequest as dQ, type FetchOrderBooksRequest as dR, type FetchOrderRequest as dS, type FetchOrderScoringRequest as dT, type FetchOrdersScoringRequest as dU, type FetchPortfolioValueRequest as dV, type FetchPriceHistoryRequest as dW, type FetchPriceRequest as dX, type FetchPricesRequest as dY, type FetchPublicProfileRequest as dZ, type FetchRelatedTagResourcesRequest as d_, type CommentsEventType as da, type CommentsSubscription as db, type CryptoPricesEventType as dc, type CryptoPricesSubscription as dd, DeployDepositWalletError as de, type DownloadAccountingSnapshotRequest as df, type DropNotificationsRequest as dg, type EquityPricesEventType as dh, type EquityPricesSubscription as di, type Erc1155ApprovalForAllWorkflow as dj, type Erc1155ApprovalForAllWorkflowRequest as dk, type Erc20ApprovalWorkflow as dl, type Erc20ApprovalWorkflowRequest as dm, type Erc20TransferWorkflow as dn, type Erc20TransferWorkflowRequest as dp, type EstimateMarketBuyPriceRequest as dq, type EstimateMarketPriceRequest as dr, type EstimateMarketSellPriceRequest as ds, type EventForSubscriptionSpec as dt, type EventForSubscriptionSpecs as du, FetchBalanceAllowanceError as dv, type FetchBalanceAllowanceRequest as dw, FetchBuilderFeeRatesError as dx, type FetchBuilderFeeRatesRequest as dy, type FetchCommentsByIdRequest as dz, ApproveErc1155ForAllError as e, type PostOrdersRequest as e$, type FetchSeriesRequest as e0, type FetchSpreadRequest as e1, type FetchSpreadsRequest as e2, type FetchTagRequest as e3, FetchTickSizeError as e4, type FetchTickSizeRequest as e5, type FetchTotalEarningsForUserForDayRequest as e6, type FetchTradedMarketCountRequest as e7, GaslessTransactionMetadataSchema as e8, type GaslessWorkflow as e9, type ListTagsRequest as eA, type ListTeamsRequest as eB, type ListTraderLeaderboardRequest as eC, type ListTradesRequest as eD, type ListUserEarningsAndMarketsConfigRequest as eE, type ListUserEarningsForDayRequest as eF, type MarketEventType as eG, type MarketSubscription as eH, MergeComboPositionError as eI, MergeMarketPositionError as eJ, type MergePositionsWorkflow as eK, type MergePositionsWorkflowRequest as eL, type OrderDraft as eM, type OrderPostingWorkflow as eN, type OrderWorkflow as eO, type OrderWorkflowRequest as eP, type PerpsBboSubscription as eQ, type PerpsBookSubscription as eR, type PerpsCandlesSubscription as eS, type PerpsDepositWorkflow as eT, type PerpsDepositWorkflowRequest as eU, type PerpsMarketDataEventType as eV, type PerpsMarketDataSubscription as eW, type PerpsStatisticsSubscription as eX, type PerpsStreamingCandleInterval as eY, type PerpsTickersSubscription as eZ, type PerpsTradesSubscription as e_, type GaslessWorkflowRequest as ea, IsWalletDeployedError as eb, type IsWalletDeployedRequest as ec, type ListAccountTradesRequest as ed, type ListActivityRequest as ee, type ListBuilderLeaderboardRequest as ef, type ListBuilderTradesRequest as eg, type ListBuilderVolumeRequest as eh, type ListClosedPositionsRequest as ei, type ListComboActivityRequest as ej, type ListComboMarketsRequest as ek, type ListComboPositionsRequest as el, type ListCommentsByUserAddressRequest as em, type ListCommentsRequest as en, type ListCurrentRewardsRequest as eo, type ListEventsRequest as ep, ListMarketClarificationsError as eq, type ListMarketClarificationsRequest as er, type ListMarketHoldersRequest as es, type ListMarketPositionsRequest as et, type ListMarketRewardsRequest as eu, type ListMarketsRequest as ev, type ListOpenInterestRequest as ew, type ListOpenOrdersRequest as ex, type ListPositionsRequest as ey, type ListSeriesRequest as ez, ApproveErc20Error as f, type UserSubscription as f$, PrepareCollateralReturnExecutionError as f0, PrepareErc1155ApprovalForAllError as f1, type PrepareErc1155ApprovalForAllRequest as f2, PrepareErc20ApprovalError as f3, type PrepareErc20ApprovalRequest as f4, PrepareErc20TransferError as f5, type PrepareErc20TransferRequest as f6, PrepareGaslessTransactionError as f7, type PrepareGaslessTransactionRequest as f8, type PrepareLimitOrderRequest as f9, type PublicRealtimeTopic as fA, type PublicSubscriptionSpec as fB, type RedeemPositionsWorkflow as fC, type RedeemPositionsWorkflowRequest as fD, ResolveConditionByTokenError as fE, type ResolveConditionByTokenRequest as fF, type RfqConfirmationRejectedErrorOptions as fG, type RfqExecutionUpdateEvent as fH, type SearchRequest as fI, type SearchResults as fJ, type SecureRealtimeEvent as fK, type SecureRealtimeTopic as fL, type SecureSubscriptionSpec as fM, type SignedOrder as fN, SplitComboPositionError as fO, SplitMarketPositionError as fP, type SplitPositionWorkflow as fQ, type SplitPositionWorkflowRequest as fR, type SportsEventType as fS, type SportsSubscription as fT, type SubscribeError as fU, type SubscriptionHandle as fV, type TradingApprovalsWorkflow as fW, type TradingApprovalsWorkflowRequest as fX, UpdateBalanceAllowanceError as fY, type UpdateBalanceAllowanceRequest as fZ, type UserEventType as f_, type PrepareMarketBuyOrderRequest as fa, type PrepareMarketOrderRequest as fb, type PrepareMarketSellOrderRequest as fc, PrepareMergeComboPositionError as fd, type PrepareMergeComboPositionRequest as fe, PrepareMergeMarketPositionError as ff, type PrepareMergeMarketPositionRequest as fg, PrepareMergePositionsError as fh, type PrepareMergePositionsRequest as fi, PreparePerpsDepositError as fj, PrepareRedeemComboPositionError as fk, type PrepareRedeemComboPositionRequest as fl, type PrepareRedeemMarketPositionsByConditionIdRequest as fm, type PrepareRedeemMarketPositionsByMarketIdRequest as fn, PrepareRedeemMarketPositionsError as fo, type PrepareRedeemMarketPositionsRequest as fp, PrepareRedeemPositionsError as fq, type PrepareRedeemPositionsRequest as fr, PrepareSplitComboPositionError as fs, type PrepareSplitComboPositionRequest as ft, PrepareSplitMarketPositionError as fu, type PrepareSplitMarketPositionRequest as fv, PrepareSplitPositionError as fw, type PrepareSplitPositionRequest as fx, PrepareTradingApprovalsError as fy, type PublicRealtimeEvent as fz, BasePublicClient as g, listClosedPositions as g$, WaitForGaslessTransactionError as g0, type WaitForOrderFillSettlementRequest as g1, approveErc1155ForAll as g2, approveErc20 as g3, cancelAll as g4, cancelMarketOrders as g5, cancelOrder as g6, cancelOrders as g7, deployDepositWallet as g8, depositToPerps as g9, fetchOrdersScoring as gA, fetchPerpsBook as gB, fetchPerpsFees as gC, fetchPerpsInstruments as gD, fetchPerpsTicker as gE, fetchPerpsTickers as gF, fetchPortfolioValue as gG, fetchPrice as gH, fetchPriceHistory as gI, fetchPrices as gJ, fetchPublicProfile as gK, fetchRelatedTagResources as gL, fetchRelatedTags as gM, fetchRewardPercentages as gN, fetchSeries as gO, fetchSpread as gP, fetchSpreads as gQ, fetchTag as gR, fetchTickSize as gS, fetchTotalEarningsForUserForDay as gT, fetchTradedMarketCount as gU, fetchTransaction as gV, isWalletDeployed as gW, listAccountTrades as gX, listActivity as gY, listBuilderLeaderboard as gZ, listBuilderTrades as g_, downloadAccountingSnapshot as ga, dropNotifications as gb, estimateMarketPrice as gc, executeCollateralReturnPlan as gd, fetchBalanceAllowance as ge, fetchBuilderFeeRates as gf, fetchBuilderVolume as gg, fetchClosedOnlyMode as gh, fetchCommentsById as gi, fetchEvent as gj, fetchEventLiveVolume as gk, fetchEventTags as gl, fetchExecuteParams as gm, fetchLastTradePrice as gn, fetchLastTradePrices as go, fetchMarket as gp, fetchMarketInfo as gq, fetchMarketTags as gr, fetchMidpoint as gs, fetchMidpoints as gt, fetchNegRisk as gu, fetchNotifications as gv, fetchOrder as gw, fetchOrderBook as gx, fetchOrderBooks as gy, fetchOrderScoring as gz, BaseSecureClient as h, listComboActivity as h0, listComboMarkets as h1, listComboPositions as h2, listComments as h3, listCommentsByUserAddress as h4, listCurrentRewards as h5, listEvents as h6, listMarketClarifications as h7, listMarketHolders as h8, listMarketPositions as h9, prepareErc20Transfer as hA, prepareGaslessTransaction as hB, prepareMergeComboPosition as hC, prepareMergeMarketPosition as hD, prepareMergePositions as hE, preparePerpsDeposit as hF, prepareRedeemComboPosition as hG, prepareRedeemMarketPositions as hH, prepareRedeemPositions as hI, prepareSplitComboPosition as hJ, prepareSplitMarketPosition as hK, prepareSplitPosition as hL, prepareTradingApprovals as hM, redeemPositions as hN, resolveConditionByToken as hO, revokePerpsCredentials as hP, search as hQ, setupTradingApprovals as hR, splitComboPosition as hS, splitMarketPosition as hT, splitPosition as hU, subscribe as hV, transferErc20 as hW, updateBalanceAllowance as hX, waitForOrderFillSettlement as hY, withdrawFromPerps as hZ, listMarketRewards as ha, listMarkets as hb, listOpenInterest as hc, listOpenOrders as hd, listPerpsCandles as he, listPerpsFundingHistory as hf, listPerpsTrades as hg, listPositions as hh, listSeries as hi, listTags as hj, listTeams as hk, listTraderLeaderboard as hl, listTrades as hm, listUserEarningsAndMarketsConfig as hn, listUserEarningsForDay as ho, mergeComboPosition as hp, mergeMarketPosition as hq, mergePositions as hr, openPerpsSession as hs, openRfqSession as ht, planCollateralReturn as hu, postOrder as hv, postOrders as hw, prepareCollateralReturnExecution as hx, prepareErc1155ApprovalForAll as hy, prepareErc20Approval as hz, type BeginAuthenticationRequest as i, type CancelAllPerpsOrdersRequest as j, CancelMarketOrdersError as k, CancelOrderError as l, CancelOrdersError as m, type CancelPerpsOrderRequest as n, type CancelPerpsOrdersRequest as o, CancelledSigningError as p, type Client as q, type ClientActions as r, type ClientDecorator as s, type ClobEndpoints as t, ComboPositionSort as u, type CombosEndpoints as v, ConnectionLostError as w, type ConnectionLostErrorOptions as x, type CreatePerpsSessionRequest as y, CreateSecureClientError as z };
package/dist/viem.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { PrivateKey } from '@polymarket/types';
2
2
  import { Chain, Transport, WalletClient } from 'viem';
3
- import { S as Signer } from './types-CgIv7KE4.js';
3
+ import { S as Signer } from './types-vvy5wT5V.js';
4
4
  import '@polymarket/bindings';
5
5
  import '@polymarket/bindings/gamma';
6
6
  import '@polymarket/bindings/relayer';
7
7
  import 'zod';
8
8
  import '@polymarket/bindings/clob';
9
9
  import '@polymarket/bindings/data';
10
- import '@polymarket/bindings/rfq';
10
+ import '@polymarket/bindings/combos';
11
11
  import '@polymarket/bindings/perps';
12
12
  import '@polymarket/bindings/subscriptions';
13
13
  import 'ox';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polymarket/client",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "The Polymarket TypeScript client",
5
5
  "repository": {
6
6
  "type": "git",
@@ -93,7 +93,7 @@
93
93
  "ky": "^1.14.3",
94
94
  "ox": "^0.14.16",
95
95
  "zod": "^4.3.6",
96
- "@polymarket/bindings": "0.1.0",
96
+ "@polymarket/bindings": "0.2.0",
97
97
  "@polymarket/types": "0.1.0"
98
98
  },
99
99
  "publishConfig": {