@polymarket/client 0.1.0-beta.12 → 0.1.0-beta.14

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,17 +1,15 @@
1
1
  import * as _polymarket_bindings from '@polymarket/bindings';
2
- import { PaginationCursor, OrderSide, OrderType, TokenId, BuilderCode, EvmAddress as EvmAddress$1, CtfConditionId, TickSizeValue, TxHashSchema, PositionId, TransactionId } from '@polymarket/bindings';
3
- import * as _polymarket_types from '@polymarket/types';
4
- import { PolymarketError, HexString, EvmAddress, EvmSignature, NonEmptyArray, Prettify, Erc1271Signature, PrivateKey, TxHash } from '@polymarket/types';
5
- import { WalletType, Event, TagReference, Market, Series, Tag, RelatedTag, SportsMetadata, SportsMarketTypesResponse, Team, PublicProfile, Comment, Profile, SearchTag } from '@polymarket/bindings/gamma';
2
+ import { PaginationCursor, 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';
4
+ import { WalletType, Event, TagReference, Market, Series, MarketClarification, Tag, RelatedTag, SportsMetadata, SportsMarketTypesResponse, Team, PublicProfile, Comment, MarketClarificationState, Profile, SearchTag } from '@polymarket/bindings/gamma';
6
5
  import { RelayerTransactionType, RelayerExecuteParams, GaslessTransaction } from '@polymarket/bindings/relayer';
7
6
  import { ZodError, z } from 'zod';
8
7
  import * as _polymarket_bindings_clob from '@polymarket/bindings/clob';
9
8
  import { ClobTrade, NotificationsResponse, BuilderTrade, Prices, OrderBook, LastTradePrice, LastTradePriceForToken, PriceHistoryPoint, CurrentReward, MarketReward, OrdersScoringResponse, UserEarning, TotalUserEarning, UserRewardsEarning, RewardsPercentages, CancelOrdersResponse, SignatureType, OrderResponse, OrderResponses, OpenOrder, ApiKeyCreds, BalanceAllowanceResponse, BuilderFeeRates, MarketInfo } from '@polymarket/bindings/clob';
10
9
  import * as _polymarket_bindings_data from '@polymarket/bindings/data';
11
- import { Value, Traded, ClosedPosition, ComboPosition, Position, MetaMarketPosition, Activity, LeaderboardEntry, BuilderVolumeEntry, TraderLeaderboardEntry, LiveVolume, OpenInterest, MetaHolder, Trade } from '@polymarket/bindings/data';
10
+ import { Activity, ComboActivity, Trade, Value, Traded, ClosedPosition, ComboPosition, Position, MetaMarketPosition, LeaderboardEntry, BuilderVolumeEntry, TraderLeaderboardEntry, LiveVolume, OpenInterest, MetaHolder } from '@polymarket/bindings/data';
12
11
  import { ComboMarket, RfqQuoteRequest, RfqRequestedSize, RfqSide, RfqQuoteAck, RfqConfirmationRequest, RfqConfirmationAck as RfqConfirmationAck$1, RfqExecutionUpdate, RfqTrade, RfqQuoteCancelAck, RfqErrorCode, RfqId, RfqQuoteId } from '@polymarket/bindings/rfq';
13
- import * as _polymarket_bindings_perps from '@polymarket/bindings/perps';
14
- import { PerpsInstrument, PerpsTicker, PerpsBook, PerpsCandle, PerpsFundingRate, PerpsPublicTrade, PerpsFeeScheduleEntry, PerpsWithdrawalId, PerpsInstrumentId, PerpsDepositStatusSchema, PerpsWithdrawalStatusSchema, PerpsPnlIntervalSchema, PerpsDecimalInput, PerpsTimeInForce, PerpsCredentials, PerpsBalance, PerpsPortfolio, PerpsAccountStats, PerpsAccountConfig, PerpsOrder, PerpsAccountFill, PerpsAccountFundingPayment, PerpsDeposit, PerpsWithdrawal, PerpsEquityPoint, PerpsPnlPoint, PerpsOrderId, PerpsPostOrderAck, PerpsCancelOrderResult, PerpsUpdateLeverageResult, PerpsKlineInterval, PerpsInstrumentIdSchema } from '@polymarket/bindings/perps';
12
+ 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';
15
13
  import { PerpsSessionEvent, CommentsEvent, CryptoPricesTopic, EquityPricesTopic, EquityPricesEvent, MarketEvent, StandardMarketEvent, UserEvent, SportsEvent, CryptoPricesBinanceEvent, CryptoPricesChainlinkEvent, PerpsTradeEvent, PerpsBboEvent, PerpsBookEvent, PerpsCandleEvent, PerpsTickerEvent, PerpsStatisticEvent, CryptoPricesEvent, PerpsMarketDataEvent } from '@polymarket/bindings/subscriptions';
16
14
  import { Hex } from 'ox';
17
15
 
@@ -159,7 +157,7 @@ declare const FetchExecuteParamsRequestSchema: z.ZodObject<{
159
157
  type FetchExecuteParamsRequest = z.input<typeof FetchExecuteParamsRequestSchema>;
160
158
  type FetchExecuteParamsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
161
159
  declare const FetchExecuteParamsError: {
162
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
160
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
163
161
  };
164
162
  /**
165
163
  * Fetches the parameters needed to prepare a low-level transaction submission.
@@ -182,7 +180,7 @@ declare const IsWalletDeployedRequestSchema: z.ZodObject<{
182
180
  type IsWalletDeployedRequest = z.input<typeof IsWalletDeployedRequestSchema>;
183
181
  type IsWalletDeployedError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
184
182
  declare const IsWalletDeployedError: {
185
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
183
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
186
184
  };
187
185
  /**
188
186
  * Checks whether a wallet is deployed for relayer-backed transactions.
@@ -207,7 +205,7 @@ declare function isWalletDeployed(client: BaseClient, request?: IsWalletDeployed
207
205
  declare const GaslessTransactionMetadataSchema: z.ZodString;
208
206
  type DeployDepositWalletError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
209
207
  declare const DeployDepositWalletError: {
210
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
208
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
211
209
  };
212
210
  /**
213
211
  * Deploys a Deposit Wallet for the authenticated signer.
@@ -250,7 +248,7 @@ type GaslessWorkflowRequest = RequestAddressRequest | SignGaslessMessageRequest
250
248
  type GaslessWorkflow = AsyncGenerator<GaslessWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
251
249
  type PrepareGaslessTransactionError = ExecuteGaslessError | FetchExecuteParamsError | UserInputError;
252
250
  declare const PrepareGaslessTransactionError: {
253
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
251
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
254
252
  };
255
253
  /**
256
254
  * Starts preparing a low-level transaction workflow from one or more calls.
@@ -265,7 +263,7 @@ declare function prepareGaslessTransaction(client: BaseSecureClient, request: Pr
265
263
  type ExecuteGaslessError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
266
264
  type WaitForGaslessTransactionError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | TimeoutError | TransactionFailedError;
267
265
  declare const WaitForGaslessTransactionError: {
268
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError;
266
+ isError(error: unknown): error is TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
269
267
  };
270
268
 
271
269
  declare const PageSizeSchema: z.ZodNumber;
@@ -280,78 +278,211 @@ type Paginated<T> = AsyncIterable<Page<T>> & {
280
278
  from(cursor?: PaginationCursor): Paginated<T>;
281
279
  };
282
280
 
283
- declare const ListPositionsRequestSchema: z.ZodObject<{
281
+ declare const ListTradesRequestSchema: z.ZodObject<{
284
282
  cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
285
- user: z.ZodString;
283
+ pageSize: z.ZodDefault<z.ZodNumber>;
284
+ takerOnly: z.ZodOptional<z.ZodBoolean>;
285
+ filterType: z.ZodOptional<z.ZodEnum<{
286
+ CASH: "CASH";
287
+ TOKENS: "TOKENS";
288
+ }>>;
289
+ filterAmount: z.ZodOptional<z.ZodNumber>;
286
290
  market: z.ZodOptional<z.ZodArray<z.ZodString>>;
287
291
  eventId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
288
- sizeThreshold: z.ZodOptional<z.ZodNumber>;
289
- redeemable: z.ZodOptional<z.ZodBoolean>;
290
- mergeable: z.ZodOptional<z.ZodBoolean>;
292
+ user: z.ZodOptional<z.ZodString>;
293
+ side: z.ZodOptional<z.ZodEnum<{
294
+ BUY: "BUY";
295
+ SELL: "SELL";
296
+ }>>;
297
+ start: z.ZodOptional<z.ZodNumber>;
298
+ end: z.ZodOptional<z.ZodNumber>;
299
+ }, z.core.$strip>;
300
+ type ListTradesRequest = z.input<typeof ListTradesRequestSchema>;
301
+ type ListTradesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
302
+ declare const ListTradesError: {
303
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
304
+ };
305
+ /**
306
+ * Lists trades for a wallet, market, or event.
307
+ *
308
+ * @remarks
309
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
310
+ *
311
+ * @throws {@link ListTradesError}
312
+ * Thrown on failure.
313
+ *
314
+ * @example
315
+ * Fetch the first page of results:
316
+ * ```ts
317
+ * const result = listTrades(client, {
318
+ * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
319
+ * pageSize: 10,
320
+ * });
321
+ *
322
+ * const firstPage = await result.firstPage();
323
+ *
324
+ * // Optionally, fetch additional pages:
325
+ * for await (const page of result.from(firstPage.nextCursor)) {
326
+ * // page.items: Trade[]
327
+ * }
328
+ * ```
329
+ *
330
+ * @example
331
+ * Loop through all pages with `for await`:
332
+ * ```ts
333
+ * const result = listTrades(client, {
334
+ * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
335
+ * pageSize: 10,
336
+ * });
337
+ *
338
+ * for await (const page of result) {
339
+ * // page.items: Trade[]
340
+ * }
341
+ * ```
342
+ */
343
+ declare function listTrades(client: BaseClient, request?: ListTradesRequest): Paginated<Trade[]>;
344
+ declare const ListActivityRequestSchema: z.ZodObject<{
345
+ cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
291
346
  pageSize: z.ZodDefault<z.ZodNumber>;
347
+ user: z.ZodString;
348
+ market: z.ZodOptional<z.ZodArray<z.ZodString>>;
349
+ eventId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
350
+ type: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof _polymarket_bindings_data.ActivityType>>>;
351
+ start: z.ZodOptional<z.ZodNumber>;
352
+ end: z.ZodOptional<z.ZodNumber>;
292
353
  sortBy: z.ZodOptional<z.ZodEnum<{
293
- CURRENT: "CURRENT";
294
- INITIAL: "INITIAL";
354
+ CASH: "CASH";
295
355
  TOKENS: "TOKENS";
296
- CASHPNL: "CASHPNL";
297
- PERCENTPNL: "PERCENTPNL";
298
- TITLE: "TITLE";
299
- RESOLVING: "RESOLVING";
300
- PRICE: "PRICE";
301
- AVGPRICE: "AVGPRICE";
356
+ TIMESTAMP: "TIMESTAMP";
302
357
  }>>;
303
358
  sortDirection: z.ZodOptional<z.ZodEnum<{
304
359
  ASC: "ASC";
305
360
  DESC: "DESC";
306
361
  }>>;
307
- title: z.ZodOptional<z.ZodString>;
362
+ side: z.ZodOptional<z.ZodEnum<{
363
+ BUY: "BUY";
364
+ SELL: "SELL";
365
+ }>>;
308
366
  }, z.core.$strip>;
309
- declare const ListClosedPositionsRequestSchema: z.ZodObject<{
367
+ type ListActivityRequest = z.input<typeof ListActivityRequestSchema>;
368
+ type ListActivityError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
369
+ declare const ListActivityError: {
370
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
371
+ };
372
+ /**
373
+ * Lists wallet activity.
374
+ *
375
+ * @remarks
376
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
377
+ *
378
+ * @throws {@link ListActivityError}
379
+ * Thrown on failure.
380
+ *
381
+ * @example
382
+ * Fetch the first page of results:
383
+ * ```ts
384
+ * const result = listActivity(client, {
385
+ * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
386
+ * pageSize: 10,
387
+ * });
388
+ *
389
+ * const firstPage = await result.firstPage();
390
+ *
391
+ * // Optionally, fetch additional pages:
392
+ * for await (const page of result.from(firstPage.nextCursor)) {
393
+ * // page.items: Activity[]
394
+ * }
395
+ * ```
396
+ *
397
+ * @example
398
+ * Loop through all pages with `for await`:
399
+ * ```ts
400
+ * const result = listActivity(client, {
401
+ * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
402
+ * pageSize: 10,
403
+ * });
404
+ *
405
+ * for await (const page of result) {
406
+ * // page.items: Activity[]
407
+ * }
408
+ * ```
409
+ */
410
+ declare function listActivity(client: BaseClient, request: ListActivityRequest): Paginated<Activity[]>;
411
+ declare const ListComboActivityRequestSchema: z.ZodObject<{
412
+ cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
413
+ pageSize: z.ZodDefault<z.ZodNumber>;
414
+ user: z.ZodString;
415
+ conditionId: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.ComboConditionId, string>>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.ComboConditionId, string>>>]>>;
416
+ }, z.core.$strip>;
417
+ type ListComboActivityRequest = z.input<typeof ListComboActivityRequestSchema>;
418
+ type ListComboActivityError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
419
+ declare const ListComboActivityError: {
420
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
421
+ };
422
+ /**
423
+ * Lists combo lifecycle activity for a wallet.
424
+ *
425
+ * @remarks
426
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
427
+ *
428
+ * @throws {@link ListComboActivityError}
429
+ * Thrown on failure.
430
+ *
431
+ * @example
432
+ * Fetch the first page of results:
433
+ * ```ts
434
+ * const result = listComboActivity(client, {
435
+ * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
436
+ * pageSize: 10,
437
+ * });
438
+ *
439
+ * const firstPage = await result.firstPage();
440
+ *
441
+ * // Optionally, fetch additional pages:
442
+ * for await (const page of result.from(firstPage.nextCursor)) {
443
+ * // page.items: ComboActivity[]
444
+ * }
445
+ * ```
446
+ */
447
+ declare function listComboActivity(client: BaseClient, request: ListComboActivityRequest): Paginated<ComboActivity[]>;
448
+
449
+ declare enum ComboPositionSort {
450
+ CurrentValueDesc = "current_value_desc",
451
+ FirstEntryDesc = "first_entry_desc",
452
+ EntryCostDesc = "entry_cost_desc",
453
+ ResolvedAtDesc = "resolved_at_desc",
454
+ UpdatedAsc = "updated_asc"
455
+ }
456
+ declare const ListPositionsRequestSchema: z.ZodObject<{
310
457
  cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
311
458
  user: z.ZodString;
312
459
  market: z.ZodOptional<z.ZodArray<z.ZodString>>;
313
- title: z.ZodOptional<z.ZodString>;
314
460
  eventId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
461
+ sizeThreshold: z.ZodOptional<z.ZodNumber>;
462
+ redeemable: z.ZodOptional<z.ZodBoolean>;
463
+ mergeable: z.ZodOptional<z.ZodBoolean>;
315
464
  pageSize: z.ZodDefault<z.ZodNumber>;
316
465
  sortBy: z.ZodOptional<z.ZodEnum<{
466
+ TOKENS: "TOKENS";
467
+ CURRENT: "CURRENT";
468
+ INITIAL: "INITIAL";
469
+ CASHPNL: "CASHPNL";
470
+ PERCENTPNL: "PERCENTPNL";
317
471
  TITLE: "TITLE";
472
+ RESOLVING: "RESOLVING";
318
473
  PRICE: "PRICE";
319
474
  AVGPRICE: "AVGPRICE";
320
- REALIZEDPNL: "REALIZEDPNL";
321
- TIMESTAMP: "TIMESTAMP";
322
475
  }>>;
323
476
  sortDirection: z.ZodOptional<z.ZodEnum<{
324
477
  ASC: "ASC";
325
478
  DESC: "DESC";
326
479
  }>>;
327
- }, z.core.$strip>;
328
- declare const ListComboPositionsRequestSchema: z.ZodObject<{
329
- cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
330
- user: z.ZodString;
331
- pageSize: z.ZodDefault<z.ZodNumber>;
332
- status: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.ComboPositionStatus>>;
333
- conditionId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.ComboConditionId, string>>>;
334
- positionId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.PositionId, string>>>;
335
- }, z.core.$strip>;
336
- declare const FetchPortfolioValueRequestSchema: z.ZodObject<{
337
- user: z.ZodString;
338
- market: z.ZodOptional<z.ZodArray<z.ZodString>>;
339
- }, z.core.$strip>;
340
- declare const FetchTradedMarketCountRequestSchema: z.ZodObject<{
341
- user: z.ZodString;
342
- }, z.core.$strip>;
343
- declare const DownloadAccountingSnapshotRequestSchema: z.ZodObject<{
344
- user: z.ZodString;
480
+ title: z.ZodOptional<z.ZodString>;
345
481
  }, z.core.$strip>;
346
482
  type ListPositionsRequest = z.input<typeof ListPositionsRequestSchema>;
347
- type ListClosedPositionsRequest = z.input<typeof ListClosedPositionsRequestSchema>;
348
- type ListComboPositionsRequest = z.input<typeof ListComboPositionsRequestSchema>;
349
- type FetchPortfolioValueRequest = z.input<typeof FetchPortfolioValueRequestSchema>;
350
- type FetchTradedMarketCountRequest = z.input<typeof FetchTradedMarketCountRequestSchema>;
351
- type DownloadAccountingSnapshotRequest = z.input<typeof DownloadAccountingSnapshotRequestSchema>;
352
483
  type ListPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
353
484
  declare const ListPositionsError: {
354
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
485
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
355
486
  };
356
487
  /**
357
488
  * Lists current positions for a wallet.
@@ -392,13 +523,29 @@ declare const ListPositionsError: {
392
523
  * ```
393
524
  */
394
525
  declare function listPositions(client: BaseClient, request: ListPositionsRequest): Paginated<Position[]>;
526
+ declare const ListClosedPositionsRequestSchema: z.ZodObject<{
527
+ cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
528
+ user: z.ZodString;
529
+ market: z.ZodOptional<z.ZodArray<z.ZodString>>;
530
+ title: z.ZodOptional<z.ZodString>;
531
+ eventId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
532
+ pageSize: z.ZodDefault<z.ZodNumber>;
533
+ sortBy: z.ZodOptional<z.ZodEnum<{
534
+ TIMESTAMP: "TIMESTAMP";
535
+ TITLE: "TITLE";
536
+ PRICE: "PRICE";
537
+ AVGPRICE: "AVGPRICE";
538
+ REALIZEDPNL: "REALIZEDPNL";
539
+ }>>;
540
+ sortDirection: z.ZodOptional<z.ZodEnum<{
541
+ ASC: "ASC";
542
+ DESC: "DESC";
543
+ }>>;
544
+ }, z.core.$strip>;
545
+ type ListClosedPositionsRequest = z.input<typeof ListClosedPositionsRequestSchema>;
395
546
  type ListClosedPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
396
547
  declare const ListClosedPositionsError: {
397
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
398
- };
399
- type ListComboPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
400
- declare const ListComboPositionsError: {
401
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
548
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
402
549
  };
403
550
  /**
404
551
  * Lists closed positions for a wallet.
@@ -439,6 +586,21 @@ declare const ListComboPositionsError: {
439
586
  * ```
440
587
  */
441
588
  declare function listClosedPositions(client: BaseClient, request: ListClosedPositionsRequest): Paginated<ClosedPosition[]>;
589
+ declare const ListComboPositionsRequestSchema: z.ZodObject<{
590
+ cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
591
+ user: z.ZodString;
592
+ pageSize: z.ZodDefault<z.ZodNumber>;
593
+ status: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.ComboPositionStatus>>;
594
+ sort: z.ZodOptional<z.ZodEnum<typeof ComboPositionSort>>;
595
+ conditionId: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.ComboConditionId, string>>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.ComboConditionId, string>>>]>>;
596
+ updatedAfter: z.ZodOptional<z.ZodNumber>;
597
+ updatedBefore: z.ZodOptional<z.ZodNumber>;
598
+ }, z.core.$strip>;
599
+ type ListComboPositionsRequest = z.input<typeof ListComboPositionsRequestSchema>;
600
+ type ListComboPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
601
+ declare const ListComboPositionsError: {
602
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
603
+ };
442
604
  /**
443
605
  * Lists combo positions for a wallet.
444
606
  *
@@ -472,11 +634,27 @@ declare function listClosedPositions(client: BaseClient, request: ListClosedPosi
472
634
  * status: ComboPositionStatus.Open,
473
635
  * });
474
636
  * ```
637
+ *
638
+ * @example
639
+ * Incrementally sync changed combo positions:
640
+ * ```ts
641
+ * const result = listComboPositions(client, {
642
+ * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
643
+ * updatedAfter: 1_797_360_000,
644
+ * sort: ComboPositionSort.UpdatedAsc,
645
+ * pageSize: 1000,
646
+ * });
647
+ * ```
475
648
  */
476
649
  declare function listComboPositions(client: BaseClient, request: ListComboPositionsRequest): Paginated<ComboPosition[]>;
650
+ declare const FetchPortfolioValueRequestSchema: z.ZodObject<{
651
+ user: z.ZodString;
652
+ market: z.ZodOptional<z.ZodArray<z.ZodString>>;
653
+ }, z.core.$strip>;
654
+ type FetchPortfolioValueRequest = z.input<typeof FetchPortfolioValueRequestSchema>;
477
655
  type FetchPortfolioValueError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
478
656
  declare const FetchPortfolioValueError: {
479
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
657
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
480
658
  };
481
659
  /**
482
660
  * Fetches the total value for a wallet's positions.
@@ -497,9 +675,13 @@ declare const FetchPortfolioValueError: {
497
675
  * ```
498
676
  */
499
677
  declare function fetchPortfolioValue(client: BaseClient, request: FetchPortfolioValueRequest): Promise<Value[]>;
678
+ declare const FetchTradedMarketCountRequestSchema: z.ZodObject<{
679
+ user: z.ZodString;
680
+ }, z.core.$strip>;
681
+ type FetchTradedMarketCountRequest = z.input<typeof FetchTradedMarketCountRequestSchema>;
500
682
  type FetchTradedMarketCountError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
501
683
  declare const FetchTradedMarketCountError: {
502
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
684
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
503
685
  };
504
686
  /**
505
687
  * Fetches the total number of markets a wallet has traded.
@@ -520,9 +702,13 @@ declare const FetchTradedMarketCountError: {
520
702
  * ```
521
703
  */
522
704
  declare function fetchTradedMarketCount(client: BaseClient, request: FetchTradedMarketCountRequest): Promise<Traded>;
705
+ declare const DownloadAccountingSnapshotRequestSchema: z.ZodObject<{
706
+ user: z.ZodString;
707
+ }, z.core.$strip>;
708
+ type DownloadAccountingSnapshotRequest = z.input<typeof DownloadAccountingSnapshotRequestSchema>;
523
709
  type DownloadAccountingSnapshotError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
524
710
  declare const DownloadAccountingSnapshotError: {
525
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
711
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
526
712
  };
527
713
  /**
528
714
  * Downloads an accounting snapshot archive for a wallet.
@@ -561,6 +747,7 @@ type SecureFetchPortfolioValueRequest = DefaultAccountWallet<FetchPortfolioValue
561
747
  type SecureFetchTradedMarketCountRequest = DefaultAccountWallet<FetchTradedMarketCountRequest>;
562
748
  type SecureDownloadAccountingSnapshotRequest = DefaultAccountWallet<DownloadAccountingSnapshotRequest>;
563
749
  type SecureListActivityRequest = DefaultAccountWallet<ListActivityRequest>;
750
+ type SecureListComboActivityRequest = DefaultAccountWallet<ListComboActivityRequest>;
564
751
  type CommonAccountActions = {
565
752
  /**
566
753
  * Lists positions for a market.
@@ -768,20 +955,38 @@ type PublicAccountActions = Prettify<CommonAccountActions & {
768
955
  * ```
769
956
  */
770
957
  listActivity(request: ListActivityRequest): Paginated<Activity[]>;
771
- }>;
772
- type SecureAccountActions = Prettify<CommonAccountActions & {
773
958
  /**
774
- * Lists current positions for a wallet.
775
- *
776
- * Defaults to the authenticated account's wallet when `user` is omitted.
959
+ * Lists combo lifecycle activity for a wallet.
777
960
  *
778
- * @throws {@link ListPositionsError}
961
+ * @throws {@link ListComboActivityError}
779
962
  * Thrown on failure.
780
963
  *
781
964
  * @example
782
- * Fetch the first page of results for the authenticated account:
965
+ * Fetch the first page of results:
783
966
  * ```ts
784
- * const paginator = client.listPositions({
967
+ * const paginator = client.listComboActivity({
968
+ * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
969
+ * pageSize: 10,
970
+ * });
971
+ *
972
+ * const firstPage = await paginator.firstPage();
973
+ * ```
974
+ */
975
+ listComboActivity(request: ListComboActivityRequest): Paginated<ComboActivity[]>;
976
+ }>;
977
+ type SecureAccountActions = Prettify<CommonAccountActions & {
978
+ /**
979
+ * Lists current positions for a wallet.
980
+ *
981
+ * Defaults to the authenticated account's wallet when `user` is omitted.
982
+ *
983
+ * @throws {@link ListPositionsError}
984
+ * Thrown on failure.
985
+ *
986
+ * @example
987
+ * Fetch the first page of results for the authenticated account:
988
+ * ```ts
989
+ * const paginator = client.listPositions({
785
990
  * pageSize: 10,
786
991
  * });
787
992
  *
@@ -843,6 +1048,15 @@ type SecureAccountActions = Prettify<CommonAccountActions & {
843
1048
  * Thrown on failure.
844
1049
  */
845
1050
  listActivity(request?: SecureListActivityRequest): Paginated<Activity[]>;
1051
+ /**
1052
+ * Lists combo lifecycle activity for a wallet.
1053
+ *
1054
+ * Defaults to the authenticated account's wallet when `user` is omitted.
1055
+ *
1056
+ * @throws {@link ListComboActivityError}
1057
+ * Thrown on failure.
1058
+ */
1059
+ listComboActivity(request?: SecureListComboActivityRequest): Paginated<ComboActivity[]>;
846
1060
  /**
847
1061
  * Lists trades for the authenticated account across all pages.
848
1062
  *
@@ -1524,6 +1738,25 @@ type DiscoveryActions = {
1524
1738
  * ```
1525
1739
  */
1526
1740
  fetchSeries(request: FetchSeriesRequest): Promise<Series>;
1741
+ /**
1742
+ * Lists market clarifications — notes that resolve ambiguity in how a market
1743
+ * settles.
1744
+ *
1745
+ * @throws {@link ListMarketClarificationsError}
1746
+ * Thrown on failure.
1747
+ *
1748
+ * @example
1749
+ * ```ts
1750
+ * const paginator = client.listMarketClarifications({
1751
+ * marketId: '512038',
1752
+ * });
1753
+ *
1754
+ * for await (const page of paginator) {
1755
+ * // page.items: MarketClarification[]
1756
+ * }
1757
+ * ```
1758
+ */
1759
+ listMarketClarifications(request?: ListMarketClarificationsRequest): Paginated<MarketClarification[]>;
1527
1760
  /**
1528
1761
  * Lists tags.
1529
1762
  *
@@ -1799,6 +2032,11 @@ type PublicPerpsActions = {
1799
2032
  /**
1800
2033
  * Fetches Perps instruments.
1801
2034
  *
2035
+ * @example
2036
+ * ```ts
2037
+ * const instruments = await client.fetchPerpsInstruments();
2038
+ * ```
2039
+ *
1802
2040
  * @throws {@link FetchPerpsInstrumentsError}
1803
2041
  * Thrown on failure.
1804
2042
  */
@@ -1806,6 +2044,11 @@ type PublicPerpsActions = {
1806
2044
  /**
1807
2045
  * Fetches the current Perps ticker for an instrument.
1808
2046
  *
2047
+ * @example
2048
+ * ```ts
2049
+ * const ticker = await client.fetchPerpsTicker({ instrumentId: 1 });
2050
+ * ```
2051
+ *
1809
2052
  * @throws {@link FetchPerpsTickerError}
1810
2053
  * Thrown on failure.
1811
2054
  */
@@ -1813,6 +2056,11 @@ type PublicPerpsActions = {
1813
2056
  /**
1814
2057
  * Fetches current Perps tickers.
1815
2058
  *
2059
+ * @example
2060
+ * ```ts
2061
+ * const tickers = await client.fetchPerpsTickers();
2062
+ * ```
2063
+ *
1816
2064
  * @throws {@link FetchPerpsTickersError}
1817
2065
  * Thrown on failure.
1818
2066
  */
@@ -1820,6 +2068,11 @@ type PublicPerpsActions = {
1820
2068
  /**
1821
2069
  * Fetches a Perps order book.
1822
2070
  *
2071
+ * @example
2072
+ * ```ts
2073
+ * const book = await client.fetchPerpsBook({ instrumentId: 1, depth: 100 });
2074
+ * ```
2075
+ *
1823
2076
  * @throws {@link FetchPerpsBookError}
1824
2077
  * Thrown on failure.
1825
2078
  */
@@ -1827,6 +2080,16 @@ type PublicPerpsActions = {
1827
2080
  /**
1828
2081
  * Lists Perps candles for an instrument with SDK-owned pagination.
1829
2082
  *
2083
+ * @example
2084
+ * ```ts
2085
+ * for await (const candles of client.listPerpsCandles({
2086
+ * instrumentId: 1,
2087
+ * interval: PerpsKlineInterval.OneMinute,
2088
+ * })) {
2089
+ * console.log(candles);
2090
+ * }
2091
+ * ```
2092
+ *
1830
2093
  * @throws {@link ListPerpsCandlesError}
1831
2094
  * Thrown on failure.
1832
2095
  */
@@ -1834,6 +2097,15 @@ type PublicPerpsActions = {
1834
2097
  /**
1835
2098
  * Lists Perps funding-rate history for an instrument with SDK-owned pagination.
1836
2099
  *
2100
+ * @example
2101
+ * ```ts
2102
+ * for await (const rates of client.listPerpsFundingHistory({
2103
+ * instrumentId: 1,
2104
+ * })) {
2105
+ * console.log(rates);
2106
+ * }
2107
+ * ```
2108
+ *
1837
2109
  * @throws {@link ListPerpsFundingHistoryError}
1838
2110
  * Thrown on failure.
1839
2111
  */
@@ -1841,6 +2113,13 @@ type PublicPerpsActions = {
1841
2113
  /**
1842
2114
  * Lists recent Perps trades for an instrument with SDK-owned pagination.
1843
2115
  *
2116
+ * @example
2117
+ * ```ts
2118
+ * for await (const trades of client.listPerpsTrades({ instrumentId: 1 })) {
2119
+ * console.log(trades);
2120
+ * }
2121
+ * ```
2122
+ *
1844
2123
  * @throws {@link ListPerpsTradesError}
1845
2124
  * Thrown on failure.
1846
2125
  */
@@ -1848,6 +2127,11 @@ type PublicPerpsActions = {
1848
2127
  /**
1849
2128
  * Fetches the Perps fee schedule.
1850
2129
  *
2130
+ * @example
2131
+ * ```ts
2132
+ * const fees = await client.fetchPerpsFees();
2133
+ * ```
2134
+ *
1851
2135
  * @throws {@link FetchPerpsFeesError}
1852
2136
  * Thrown on failure.
1853
2137
  */
@@ -1857,6 +2141,11 @@ type SecurePerpsActions = PublicPerpsActions & {
1857
2141
  /**
1858
2142
  * Deposits collateral into Perps for the authenticated signer account.
1859
2143
  *
2144
+ * @example
2145
+ * ```ts
2146
+ * const transaction = await client.depositToPerps({ amount: 100_000_000n });
2147
+ * ```
2148
+ *
1860
2149
  * @throws {@link DepositToPerpsError}
1861
2150
  * Thrown on failure.
1862
2151
  */
@@ -1870,6 +2159,11 @@ type SecurePerpsActions = PublicPerpsActions & {
1870
2159
  * longer credential lifetime, or pass existing credentials to validate and
1871
2160
  * resume a previous session.
1872
2161
  *
2162
+ * @example
2163
+ * ```ts
2164
+ * const session = await client.openPerpsSession();
2165
+ * ```
2166
+ *
1873
2167
  * @throws {@link OpenPerpsSessionError}
1874
2168
  * Thrown on failure.
1875
2169
  */
@@ -1880,6 +2174,11 @@ type SecurePerpsActions = PublicPerpsActions & {
1880
2174
  * @remarks
1881
2175
  * This can revoke credentials outside the currently open Perps session.
1882
2176
  *
2177
+ * @example
2178
+ * ```ts
2179
+ * await client.revokePerpsCredentials({ proxy: session.credentials.proxy });
2180
+ * ```
2181
+ *
1883
2182
  * @throws {@link RevokePerpsCredentialsError}
1884
2183
  * Thrown on failure.
1885
2184
  */
@@ -1887,6 +2186,11 @@ type SecurePerpsActions = PublicPerpsActions & {
1887
2186
  /**
1888
2187
  * Requests a Perps withdrawal to the authenticated wallet.
1889
2188
  *
2189
+ * @example
2190
+ * ```ts
2191
+ * const withdrawalId = await client.withdrawFromPerps({ amount: 100_000_000n });
2192
+ * ```
2193
+ *
1890
2194
  * @throws {@link WithdrawFromPerpsError}
1891
2195
  * Thrown on failure.
1892
2196
  */
@@ -2151,7 +2455,7 @@ declare class RfqQuoteRejectedError extends PolymarketError {
2151
2455
  }
2152
2456
  type RfqQuoteError = RfqQuoteRejectedError | SigningError | TimeoutError | TransportError | UserInputError;
2153
2457
  declare const RfqQuoteError: {
2154
- isError(error: unknown): error is UserInputError | TransportError | TimeoutError | SigningError | RfqQuoteRejectedError;
2458
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | TimeoutError | RfqQuoteRejectedError;
2155
2459
  };
2156
2460
  type RfqCancelQuoteRejectedErrorOptions = {
2157
2461
  /** RFQ error code for the rejected cancellation request. */
@@ -2509,7 +2813,7 @@ declare const CancelMarketOrdersRequestSchema: z.ZodObject<{
2509
2813
  type CancelOrderRequest = z.input<typeof CancelOrderRequestSchema>;
2510
2814
  type CancelOrderError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
2511
2815
  declare const CancelOrderError: {
2512
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
2816
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
2513
2817
  };
2514
2818
  /**
2515
2819
  * Cancels a single open order for the authenticated account.
@@ -2533,7 +2837,7 @@ declare function cancelOrder(client: BaseSecureClient, request: CancelOrderReque
2533
2837
  type CancelOrdersRequest = z.input<typeof CancelOrdersRequestSchema>;
2534
2838
  type CancelOrdersError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
2535
2839
  declare const CancelOrdersError: {
2536
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
2840
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
2537
2841
  };
2538
2842
  /**
2539
2843
  * Cancels multiple open orders for the authenticated account.
@@ -2556,7 +2860,7 @@ declare const CancelOrdersError: {
2556
2860
  declare function cancelOrders(client: BaseSecureClient, request: CancelOrdersRequest): Promise<CancelOrdersResponse>;
2557
2861
  type CancelAllError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError;
2558
2862
  declare const CancelAllError: {
2559
- isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
2863
+ isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
2560
2864
  };
2561
2865
  /**
2562
2866
  * Cancels all open orders for the authenticated account.
@@ -2578,7 +2882,7 @@ declare function cancelAll(client: BaseSecureClient): Promise<CancelOrdersRespon
2578
2882
  type CancelMarketOrdersRequest = z.input<typeof CancelMarketOrdersRequestSchema>;
2579
2883
  type CancelMarketOrdersError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
2580
2884
  declare const CancelMarketOrdersError: {
2581
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
2885
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
2582
2886
  };
2583
2887
  /**
2584
2888
  * Cancels all open orders for the authenticated account that match the market
@@ -2632,7 +2936,7 @@ type EstimateMarketSellPriceRequest = {
2632
2936
  type EstimateMarketPriceRequest = EstimateMarketBuyPriceRequest | EstimateMarketSellPriceRequest;
2633
2937
  type EstimateMarketPriceError = InsufficientLiquidityError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
2634
2938
  declare const EstimateMarketPriceError: {
2635
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | InsufficientLiquidityError;
2939
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | InsufficientLiquidityError;
2636
2940
  };
2637
2941
  /**
2638
2942
  * Estimates the price level a market order would cross at current book depth.
@@ -2810,11 +3114,11 @@ declare const PostOrdersRequestSchema: z.ZodArray<z.ZodCustom<SignedOrder, Signe
2810
3114
  type PostOrdersRequest = z.input<typeof PostOrdersRequestSchema>;
2811
3115
  type PostOrderError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
2812
3116
  declare const PostOrderError: {
2813
- isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3117
+ isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
2814
3118
  };
2815
3119
  type PostOrdersError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
2816
3120
  declare const PostOrdersError: {
2817
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3121
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
2818
3122
  };
2819
3123
  /**
2820
3124
  * Posts a signed order for the authenticated account.
@@ -3612,7 +3916,7 @@ type SecureClientOptions = PublicClientOptions & {
3612
3916
  declare function createPublicClient(options?: PublicClientOptions): PublicClient<PublicActions, SecureActions>;
3613
3917
  type CreateSecureClientError = CancelledSigningError | DeployDepositWalletError | IsWalletDeployedError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError | WaitForGaslessTransactionError;
3614
3918
  declare const CreateSecureClientError: {
3615
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
3919
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
3616
3920
  };
3617
3921
  type SetupGaslessWalletError = UserInputError;
3618
3922
  declare const SetupGaslessWalletError: {
@@ -3635,7 +3939,7 @@ declare function createSecureClient(options: SecureClientOptions): Promise<Secur
3635
3939
 
3636
3940
  type FetchClosedOnlyModeError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
3637
3941
  declare const FetchClosedOnlyModeError: {
3638
- isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3942
+ isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3639
3943
  };
3640
3944
  /**
3641
3945
  * Fetches whether the account is restricted to closed-only trading.
@@ -3660,7 +3964,7 @@ declare const ListOpenOrdersRequestSchema: z.ZodDefault<z.ZodObject<{
3660
3964
  type ListOpenOrdersRequest = z.input<typeof ListOpenOrdersRequestSchema>;
3661
3965
  type ListOpenOrdersError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3662
3966
  declare const ListOpenOrdersError: {
3663
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3967
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3664
3968
  };
3665
3969
  /**
3666
3970
  * Lists open orders for the authenticated account across all pages.
@@ -3704,7 +4008,7 @@ declare const FetchOrderRequestSchema: z.ZodObject<{
3704
4008
  type FetchOrderRequest = z.input<typeof FetchOrderRequestSchema>;
3705
4009
  type FetchOrderError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3706
4010
  declare const FetchOrderError: {
3707
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
4011
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3708
4012
  };
3709
4013
  /**
3710
4014
  * Fetches a single order for the authenticated account.
@@ -3734,7 +4038,7 @@ declare const ListAccountTradesRequestSchema: z.ZodDefault<z.ZodObject<{
3734
4038
  type ListAccountTradesRequest = z.input<typeof ListAccountTradesRequestSchema>;
3735
4039
  type ListAccountTradesError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3736
4040
  declare const ListAccountTradesError: {
3737
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
4041
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3738
4042
  };
3739
4043
  /**
3740
4044
  * Lists trades for the authenticated account across all pages.
@@ -3774,7 +4078,7 @@ declare const ListAccountTradesError: {
3774
4078
  declare function listAccountTrades(client: BaseSecureClient, request?: ListAccountTradesRequest): Paginated<ClobTrade[]>;
3775
4079
  type FetchNotificationsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
3776
4080
  declare const FetchNotificationsError: {
3777
- isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
4081
+ isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3778
4082
  };
3779
4083
  declare const DropNotificationsRequestSchema: z.ZodObject<{
3780
4084
  ids: z.ZodArray<z.ZodString>;
@@ -3796,7 +4100,7 @@ type DropNotificationsRequest = z.input<typeof DropNotificationsRequestSchema>;
3796
4100
  declare function fetchNotifications(client: BaseSecureClient): Promise<NotificationsResponse>;
3797
4101
  type DropNotificationsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3798
4102
  declare const DropNotificationsError: {
3799
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
4103
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3800
4104
  };
3801
4105
  /**
3802
4106
  * Drops notifications for the authenticated account.
@@ -3822,7 +4126,7 @@ declare const FetchBalanceAllowanceRequestSchema: z.ZodObject<{
3822
4126
  type FetchBalanceAllowanceRequest = z.input<typeof FetchBalanceAllowanceRequestSchema>;
3823
4127
  type FetchBalanceAllowanceError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3824
4128
  declare const FetchBalanceAllowanceError: {
3825
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
4129
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3826
4130
  };
3827
4131
  /**
3828
4132
  * Fetches balance and allowance for the authenticated account.
@@ -3848,7 +4152,7 @@ declare const UpdateBalanceAllowanceRequestSchema: z.ZodObject<{
3848
4152
  type UpdateBalanceAllowanceRequest = z.input<typeof UpdateBalanceAllowanceRequestSchema>;
3849
4153
  type UpdateBalanceAllowanceError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3850
4154
  declare const UpdateBalanceAllowanceError: {
3851
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
4155
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3852
4156
  };
3853
4157
  /**
3854
4158
  * Refreshes balance and allowance for the authenticated account.
@@ -3873,7 +4177,7 @@ declare const FetchOrderScoringRequestSchema: z.ZodObject<{
3873
4177
  type FetchOrderScoringRequest = z.input<typeof FetchOrderScoringRequestSchema>;
3874
4178
  type FetchOrderScoringError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3875
4179
  declare const FetchOrderScoringError: {
3876
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
4180
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3877
4181
  };
3878
4182
  /**
3879
4183
  * Fetches whether a single order is currently scoring.
@@ -3897,7 +4201,7 @@ declare const FetchOrdersScoringRequestSchema: z.ZodObject<{
3897
4201
  type FetchOrdersScoringRequest = z.input<typeof FetchOrdersScoringRequestSchema>;
3898
4202
  type FetchOrdersScoringError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3899
4203
  declare const FetchOrdersScoringError: {
3900
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
4204
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3901
4205
  };
3902
4206
  /**
3903
4207
  * Fetches scoring state for multiple orders.
@@ -3922,7 +4226,7 @@ declare const ListUserEarningsForDayRequestSchema: z.ZodObject<{
3922
4226
  type ListUserEarningsForDayRequest = z.input<typeof ListUserEarningsForDayRequestSchema>;
3923
4227
  type ListUserEarningsForDayError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3924
4228
  declare const ListUserEarningsForDayError: {
3925
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
4229
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3926
4230
  };
3927
4231
  /**
3928
4232
  * Lists per-market earnings for the authenticated account on a given day.
@@ -3963,7 +4267,7 @@ declare function listUserEarningsForDay(client: BaseSecureClient, request: ListU
3963
4267
  type FetchTotalEarningsForUserForDayRequest = z.input<typeof ListUserEarningsForDayRequestSchema>;
3964
4268
  type FetchTotalEarningsForUserForDayError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3965
4269
  declare const FetchTotalEarningsForUserForDayError: {
3966
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
4270
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3967
4271
  };
3968
4272
  /**
3969
4273
  * Fetches total earnings for the authenticated account on a given day.
@@ -3992,7 +4296,7 @@ declare const ListUserEarningsAndMarketsConfigRequestSchema: z.ZodObject<{
3992
4296
  type ListUserEarningsAndMarketsConfigRequest = z.input<typeof ListUserEarningsAndMarketsConfigRequestSchema>;
3993
4297
  type ListUserEarningsAndMarketsConfigError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3994
4298
  declare const ListUserEarningsAndMarketsConfigError: {
3995
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
4299
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3996
4300
  };
3997
4301
  /**
3998
4302
  * Lists market reward configuration and earnings for the authenticated account on a given day.
@@ -4032,7 +4336,7 @@ declare const ListUserEarningsAndMarketsConfigError: {
4032
4336
  declare function listUserEarningsAndMarketsConfig(client: BaseSecureClient, request: ListUserEarningsAndMarketsConfigRequest): Paginated<UserRewardsEarning[]>;
4033
4337
  type FetchRewardPercentagesError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
4034
4338
  declare const FetchRewardPercentagesError: {
4035
- isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
4339
+ isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4036
4340
  };
4037
4341
  /**
4038
4342
  * Fetches reward percentages for the authenticated account.
@@ -4049,135 +4353,6 @@ declare const FetchRewardPercentagesError: {
4049
4353
  */
4050
4354
  declare function fetchRewardPercentages(client: BaseSecureClient): Promise<RewardsPercentages>;
4051
4355
 
4052
- declare const ListTradesRequestSchema: z.ZodObject<{
4053
- cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
4054
- pageSize: z.ZodDefault<z.ZodNumber>;
4055
- takerOnly: z.ZodOptional<z.ZodBoolean>;
4056
- filterType: z.ZodOptional<z.ZodEnum<{
4057
- TOKENS: "TOKENS";
4058
- CASH: "CASH";
4059
- }>>;
4060
- filterAmount: z.ZodOptional<z.ZodNumber>;
4061
- market: z.ZodOptional<z.ZodArray<z.ZodString>>;
4062
- eventId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
4063
- user: z.ZodOptional<z.ZodString>;
4064
- side: z.ZodOptional<z.ZodEnum<{
4065
- BUY: "BUY";
4066
- SELL: "SELL";
4067
- }>>;
4068
- }, z.core.$strip>;
4069
- declare const ListActivityRequestSchema: z.ZodObject<{
4070
- cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
4071
- pageSize: z.ZodDefault<z.ZodNumber>;
4072
- user: z.ZodString;
4073
- market: z.ZodOptional<z.ZodArray<z.ZodString>>;
4074
- eventId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
4075
- type: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof _polymarket_bindings_data.ActivityType>>>;
4076
- start: z.ZodOptional<z.ZodNumber>;
4077
- end: z.ZodOptional<z.ZodNumber>;
4078
- sortBy: z.ZodOptional<z.ZodEnum<{
4079
- TOKENS: "TOKENS";
4080
- TIMESTAMP: "TIMESTAMP";
4081
- CASH: "CASH";
4082
- }>>;
4083
- sortDirection: z.ZodOptional<z.ZodEnum<{
4084
- ASC: "ASC";
4085
- DESC: "DESC";
4086
- }>>;
4087
- side: z.ZodOptional<z.ZodEnum<{
4088
- BUY: "BUY";
4089
- SELL: "SELL";
4090
- }>>;
4091
- }, z.core.$strip>;
4092
- type ListTradesRequest = z.input<typeof ListTradesRequestSchema>;
4093
- type ListActivityRequest = z.input<typeof ListActivityRequestSchema>;
4094
- type ListTradesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4095
- declare const ListTradesError: {
4096
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4097
- };
4098
- /**
4099
- * Lists trades for a wallet, market, or event.
4100
- *
4101
- * @remarks
4102
- * This is a low-level function. Most SDK consumers should prefer the client instance API.
4103
- *
4104
- * @throws {@link ListTradesError}
4105
- * Thrown on failure.
4106
- *
4107
- * @example
4108
- * Fetch the first page of results:
4109
- * ```ts
4110
- * const result = listTrades(client, {
4111
- * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
4112
- * pageSize: 10,
4113
- * });
4114
- *
4115
- * const firstPage = await result.firstPage();
4116
- *
4117
- * // Optionally, fetch additional pages:
4118
- * for await (const page of result.from(firstPage.nextCursor)) {
4119
- * // page.items: Trade[]
4120
- * }
4121
- * ```
4122
- *
4123
- * @example
4124
- * Loop through all pages with `for await`:
4125
- * ```ts
4126
- * const result = listTrades(client, {
4127
- * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
4128
- * pageSize: 10,
4129
- * });
4130
- *
4131
- * for await (const page of result) {
4132
- * // page.items: Trade[]
4133
- * }
4134
- * ```
4135
- */
4136
- declare function listTrades(client: BaseClient, request?: ListTradesRequest): Paginated<Trade[]>;
4137
- type ListActivityError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4138
- declare const ListActivityError: {
4139
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4140
- };
4141
- /**
4142
- * Lists wallet activity.
4143
- *
4144
- * @remarks
4145
- * This is a low-level function. Most SDK consumers should prefer the client instance API.
4146
- *
4147
- * @throws {@link ListActivityError}
4148
- * Thrown on failure.
4149
- *
4150
- * @example
4151
- * Fetch the first page of results:
4152
- * ```ts
4153
- * const result = listActivity(client, {
4154
- * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
4155
- * pageSize: 10,
4156
- * });
4157
- *
4158
- * const firstPage = await result.firstPage();
4159
- *
4160
- * // Optionally, fetch additional pages:
4161
- * for await (const page of result.from(firstPage.nextCursor)) {
4162
- * // page.items: Activity[]
4163
- * }
4164
- * ```
4165
- *
4166
- * @example
4167
- * Loop through all pages with `for await`:
4168
- * ```ts
4169
- * const result = listActivity(client, {
4170
- * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
4171
- * pageSize: 10,
4172
- * });
4173
- *
4174
- * for await (const page of result) {
4175
- * // page.items: Activity[]
4176
- * }
4177
- * ```
4178
- */
4179
- declare function listActivity(client: BaseClient, request: ListActivityRequest): Paginated<Activity[]>;
4180
-
4181
4356
  type Erc20ApprovalWorkflowRequest = GaslessWorkflowRequest | SendErc20ApprovalTransactionRequest;
4182
4357
  type Erc20ApprovalWorkflow = AsyncGenerator<Erc20ApprovalWorkflowRequest, TransactionHandle, EvmAddress$1 | EvmSignature | TransactionHandle>;
4183
4358
  declare const PrepareErc20ApprovalRequestSchema: z.ZodObject<{
@@ -4212,7 +4387,7 @@ declare const PrepareErc20ApprovalError: {
4212
4387
  declare function prepareErc20Approval(client: BaseSecureClient, request: PrepareErc20ApprovalRequest): Promise<Erc20ApprovalWorkflow>;
4213
4388
  type ApproveErc20Error = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
4214
4389
  declare const ApproveErc20Error: {
4215
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
4390
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4216
4391
  };
4217
4392
  /**
4218
4393
  * Approves ERC-20 token spending for the authenticated account.
@@ -4257,7 +4432,7 @@ declare const PrepareErc1155ApprovalForAllError: {
4257
4432
  declare function prepareErc1155ApprovalForAll(client: BaseSecureClient, request: PrepareErc1155ApprovalForAllRequest): Promise<Erc1155ApprovalForAllWorkflow>;
4258
4433
  type ApproveErc1155ForAllError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
4259
4434
  declare const ApproveErc1155ForAllError: {
4260
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
4435
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4261
4436
  };
4262
4437
  /**
4263
4438
  * Approves or revokes ERC-1155 operator access for the authenticated account.
@@ -4273,7 +4448,7 @@ type TradingApprovalsWorkflowRequest = GaslessWorkflowRequest | SendErc20Approva
4273
4448
  type TradingApprovalsWorkflow = AsyncGenerator<TradingApprovalsWorkflowRequest, void, EvmAddress$1 | EvmSignature | TransactionHandle>;
4274
4449
  type PrepareTradingApprovalsError = RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4275
4450
  declare const PrepareTradingApprovalsError: {
4276
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError;
4451
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError;
4277
4452
  };
4278
4453
  /**
4279
4454
  * Starts a trading-setup approval workflow.
@@ -4292,7 +4467,7 @@ declare const PrepareTradingApprovalsError: {
4292
4467
  declare function prepareTradingApprovals(client: BaseSecureClient): Promise<TradingApprovalsWorkflow>;
4293
4468
  type SetupTradingApprovalsError = PrepareTradingApprovalsError | CancelledSigningError | SigningError | WaitForGaslessTransactionError;
4294
4469
  declare const SetupTradingApprovalsError: {
4295
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
4470
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
4296
4471
  };
4297
4472
  type DeprecatedTransactionHandle = Omit<TransactionHandle, 'wait'> & {
4298
4473
  /**
@@ -4324,7 +4499,7 @@ declare const ListBuilderTradesRequestSchema: z.ZodObject<{
4324
4499
  type ListBuilderTradesRequest = z.input<typeof ListBuilderTradesRequestSchema>;
4325
4500
  type ListBuilderTradesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4326
4501
  declare const ListBuilderTradesError: {
4327
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4502
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4328
4503
  };
4329
4504
  /**
4330
4505
  * Lists builder-attributed trades.
@@ -4366,7 +4541,7 @@ declare const FetchMidpointRequestSchema: z.ZodObject<{
4366
4541
  type FetchMidpointRequest = z.input<typeof FetchMidpointRequestSchema>;
4367
4542
  type FetchMidpointError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4368
4543
  declare const FetchMidpointError: {
4369
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4544
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4370
4545
  };
4371
4546
  /**
4372
4547
  * Fetches the midpoint price for a token.
@@ -4395,7 +4570,7 @@ declare const FetchMidpointsRequestSchema: z.ZodArray<z.ZodObject<{
4395
4570
  type FetchMidpointsRequest = z.input<typeof FetchMidpointsRequestSchema>;
4396
4571
  type FetchMidpointsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4397
4572
  declare const FetchMidpointsError: {
4398
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4573
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4399
4574
  };
4400
4575
  /**
4401
4576
  * Fetches midpoint prices for multiple tokens.
@@ -4426,7 +4601,7 @@ declare const FetchTickSizeRequestSchema: z.ZodObject<{
4426
4601
  type FetchTickSizeRequest = z.input<typeof FetchTickSizeRequestSchema>;
4427
4602
  type FetchTickSizeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4428
4603
  declare const FetchTickSizeError: {
4429
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4604
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4430
4605
  };
4431
4606
  /**
4432
4607
  * Fetches the minimum price tick size for a token's order book.
@@ -4454,7 +4629,7 @@ declare const FetchNegRiskRequestSchema: z.ZodObject<{
4454
4629
  type FetchNegRiskRequest = z.input<typeof FetchNegRiskRequestSchema>;
4455
4630
  type FetchNegRiskError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4456
4631
  declare const FetchNegRiskError: {
4457
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4632
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4458
4633
  };
4459
4634
  /**
4460
4635
  * Fetches whether a token is in a negative-risk market.
@@ -4482,7 +4657,7 @@ declare const ResolveConditionByTokenRequestSchema: z.ZodObject<{
4482
4657
  type ResolveConditionByTokenRequest = z.input<typeof ResolveConditionByTokenRequestSchema>;
4483
4658
  type ResolveConditionByTokenError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4484
4659
  declare const ResolveConditionByTokenError: {
4485
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4660
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4486
4661
  };
4487
4662
  /**
4488
4663
  * Resolves the condition ID for a token.
@@ -4500,7 +4675,7 @@ declare const FetchMarketInfoRequestSchema: z.ZodObject<{
4500
4675
  type FetchMarketInfoRequest = z.input<typeof FetchMarketInfoRequestSchema>;
4501
4676
  type FetchMarketInfoError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4502
4677
  declare const FetchMarketInfoError: {
4503
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4678
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4504
4679
  };
4505
4680
  /**
4506
4681
  * Fetches market-level metadata for a condition.
@@ -4518,7 +4693,7 @@ declare const FetchBuilderFeeRatesRequestSchema: z.ZodObject<{
4518
4693
  type FetchBuilderFeeRatesRequest = z.input<typeof FetchBuilderFeeRatesRequestSchema>;
4519
4694
  type FetchBuilderFeeRatesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4520
4695
  declare const FetchBuilderFeeRatesError: {
4521
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4696
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4522
4697
  };
4523
4698
  /**
4524
4699
  * Fetches builder maker and taker fee rates.
@@ -4537,7 +4712,7 @@ declare const FetchPriceRequestSchema: z.ZodObject<{
4537
4712
  type FetchPriceRequest = z.input<typeof FetchPriceRequestSchema>;
4538
4713
  type FetchPriceError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4539
4714
  declare const FetchPriceError: {
4540
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4715
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4541
4716
  };
4542
4717
  /**
4543
4718
  * Fetches the current quoted price for a token and side.
@@ -4568,7 +4743,7 @@ declare const FetchPricesRequestSchema: z.ZodArray<z.ZodObject<{
4568
4743
  type FetchPricesRequest = z.input<typeof FetchPricesRequestSchema>;
4569
4744
  type FetchPricesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4570
4745
  declare const FetchPricesError: {
4571
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4746
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4572
4747
  };
4573
4748
  /**
4574
4749
  * Fetches quoted prices for multiple tokens.
@@ -4600,7 +4775,7 @@ declare const FetchOrderBookRequestSchema: z.ZodObject<{
4600
4775
  type FetchOrderBookRequest = z.input<typeof FetchOrderBookRequestSchema>;
4601
4776
  type FetchOrderBookError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4602
4777
  declare const FetchOrderBookError: {
4603
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4778
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4604
4779
  };
4605
4780
  /**
4606
4781
  * Fetches the current order book for a token.
@@ -4628,7 +4803,7 @@ declare const FetchOrderBooksRequestSchema: z.ZodArray<z.ZodObject<{
4628
4803
  type FetchOrderBooksRequest = z.input<typeof FetchOrderBooksRequestSchema>;
4629
4804
  type FetchOrderBooksError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4630
4805
  declare const FetchOrderBooksError: {
4631
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4806
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4632
4807
  };
4633
4808
  /**
4634
4809
  * Fetches order books for multiple tokens.
@@ -4658,7 +4833,7 @@ declare const FetchSpreadRequestSchema: z.ZodObject<{
4658
4833
  type FetchSpreadRequest = z.input<typeof FetchSpreadRequestSchema>;
4659
4834
  type FetchSpreadError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4660
4835
  declare const FetchSpreadError: {
4661
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4836
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4662
4837
  };
4663
4838
  /**
4664
4839
  * Fetches the spread for a token.
@@ -4687,7 +4862,7 @@ declare const FetchSpreadsRequestSchema: z.ZodArray<z.ZodObject<{
4687
4862
  type FetchSpreadsRequest = z.input<typeof FetchSpreadsRequestSchema>;
4688
4863
  type FetchSpreadsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4689
4864
  declare const FetchSpreadsError: {
4690
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4865
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4691
4866
  };
4692
4867
  /**
4693
4868
  * Fetches spreads for multiple tokens.
@@ -4718,7 +4893,7 @@ declare const FetchLastTradePriceRequestSchema: z.ZodObject<{
4718
4893
  type FetchLastTradePriceRequest = z.input<typeof FetchLastTradePriceRequestSchema>;
4719
4894
  type FetchLastTradePriceError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4720
4895
  declare const FetchLastTradePriceError: {
4721
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4896
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4722
4897
  };
4723
4898
  /**
4724
4899
  * Fetches the last traded price for a token.
@@ -4747,7 +4922,7 @@ declare const FetchLastTradePricesRequestSchema: z.ZodArray<z.ZodObject<{
4747
4922
  type FetchLastTradePricesRequest = z.input<typeof FetchLastTradePricesRequestSchema>;
4748
4923
  type FetchLastTradePricesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4749
4924
  declare const FetchLastTradePricesError: {
4750
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4925
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4751
4926
  };
4752
4927
  /**
4753
4928
  * Fetches last traded prices for multiple tokens.
@@ -4782,7 +4957,7 @@ declare const ListPriceHistoryRequestSchema: z.ZodObject<{
4782
4957
  type FetchPriceHistoryRequest = z.input<typeof ListPriceHistoryRequestSchema>;
4783
4958
  type FetchPriceHistoryError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4784
4959
  declare const FetchPriceHistoryError: {
4785
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4960
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4786
4961
  };
4787
4962
  /**
4788
4963
  * Fetches historical price points for a token.
@@ -4814,7 +4989,7 @@ declare const ListCurrentRewardsRequestSchema: z.ZodDefault<z.ZodObject<{
4814
4989
  type ListCurrentRewardsRequest = z.input<typeof ListCurrentRewardsRequestSchema>;
4815
4990
  type ListCurrentRewardsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4816
4991
  declare const ListCurrentRewardsError: {
4817
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4992
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4818
4993
  };
4819
4994
  /**
4820
4995
  * Lists current active market rewards.
@@ -4857,7 +5032,7 @@ declare const ListMarketRewardsRequestSchema: z.ZodObject<{
4857
5032
  type ListMarketRewardsRequest = z.input<typeof ListMarketRewardsRequestSchema>;
4858
5033
  type ListMarketRewardsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4859
5034
  declare const ListMarketRewardsError: {
4860
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5035
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4861
5036
  };
4862
5037
  /**
4863
5038
  * Lists reward configurations for a market.
@@ -4925,7 +5100,7 @@ type FetchCommentsByIdRequest = z.input<typeof FetchCommentsByIdRequestSchema>;
4925
5100
  type ListCommentsByUserAddressRequest = z.input<typeof ListCommentsByUserAddressRequestSchema>;
4926
5101
  type ListCommentsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4927
5102
  declare const ListCommentsError: {
4928
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5103
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4929
5104
  };
4930
5105
  /**
4931
5106
  * Lists comments for an event or series.
@@ -4970,7 +5145,7 @@ declare const ListCommentsError: {
4970
5145
  declare function listComments(client: BaseClient, request: ListCommentsRequest): Paginated<Comment[]>;
4971
5146
  type FetchCommentsByIdError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4972
5147
  declare const FetchCommentsByIdError: {
4973
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5148
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4974
5149
  };
4975
5150
  /**
4976
5151
  * Fetches a comment thread by comment id.
@@ -4994,7 +5169,7 @@ declare const FetchCommentsByIdError: {
4994
5169
  declare function fetchCommentsById(client: BaseClient, request: FetchCommentsByIdRequest): Promise<Comment[]>;
4995
5170
  type ListCommentsByUserAddressError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4996
5171
  declare const ListCommentsByUserAddressError: {
4997
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5172
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4998
5173
  };
4999
5174
  /**
5000
5175
  * Lists comments written by a wallet address.
@@ -5118,7 +5293,7 @@ declare const FetchEventLiveVolumeRequestSchema: z.ZodObject<{
5118
5293
  type FetchEventLiveVolumeRequest = z.input<typeof FetchEventLiveVolumeRequestSchema>;
5119
5294
  type ListEventsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5120
5295
  declare const ListEventsError: {
5121
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5296
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5122
5297
  };
5123
5298
  /**
5124
5299
  * Lists events.
@@ -5163,7 +5338,7 @@ declare const ListEventsError: {
5163
5338
  declare function listEvents(client: BaseClient, request?: ListEventsRequest): Paginated<Event[]>;
5164
5339
  type FetchEventError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5165
5340
  declare const FetchEventError: {
5166
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5341
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5167
5342
  };
5168
5343
  /**
5169
5344
  * Fetches an event.
@@ -5194,7 +5369,7 @@ declare const FetchEventError: {
5194
5369
  declare function fetchEvent(client: BaseClient, request: FetchEventRequest): Promise<Event>;
5195
5370
  type FetchEventTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5196
5371
  declare const FetchEventTagsError: {
5197
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5372
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5198
5373
  };
5199
5374
  /**
5200
5375
  * Fetches an event's tags.
@@ -5217,7 +5392,7 @@ declare const FetchEventTagsError: {
5217
5392
  declare function fetchEventTags(client: BaseClient, request: FetchEventTagsRequest): Promise<TagReference[]>;
5218
5393
  type FetchEventLiveVolumeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5219
5394
  declare const FetchEventLiveVolumeError: {
5220
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5395
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5221
5396
  };
5222
5397
  /**
5223
5398
  * Fetches live volume for an event.
@@ -5290,7 +5465,7 @@ type ListBuilderVolumeRequest = z.input<typeof ListBuilderVolumeRequestSchema>;
5290
5465
  type ListTraderLeaderboardRequest = z.input<typeof ListTraderLeaderboardRequestSchema>;
5291
5466
  type ListBuilderLeaderboardError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5292
5467
  declare const ListBuilderLeaderboardError: {
5293
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5468
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5294
5469
  };
5295
5470
  /**
5296
5471
  * Lists builder leaderboard rankings.
@@ -5333,7 +5508,7 @@ declare const ListBuilderLeaderboardError: {
5333
5508
  declare function listBuilderLeaderboard(client: BaseClient, request?: ListBuilderLeaderboardRequest): Paginated<LeaderboardEntry[]>;
5334
5509
  type ListBuilderVolumeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5335
5510
  declare const ListBuilderVolumeError: {
5336
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5511
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5337
5512
  };
5338
5513
  /**
5339
5514
  * Lists daily builder volume entries.
@@ -5356,7 +5531,7 @@ declare const ListBuilderVolumeError: {
5356
5531
  declare function fetchBuilderVolume(client: BaseClient, request?: ListBuilderVolumeRequest): Promise<BuilderVolumeEntry[]>;
5357
5532
  type ListTraderLeaderboardError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5358
5533
  declare const ListTraderLeaderboardError: {
5359
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5534
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5360
5535
  };
5361
5536
  /**
5362
5537
  * Lists trader leaderboard rankings.
@@ -5400,6 +5575,63 @@ declare const ListTraderLeaderboardError: {
5400
5575
  */
5401
5576
  declare function listTraderLeaderboard(client: BaseClient, request?: ListTraderLeaderboardRequest): Paginated<TraderLeaderboardEntry[]>;
5402
5577
 
5578
+ declare const ListMarketClarificationsRequestSchema: z.ZodObject<{
5579
+ marketId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
5580
+ eventId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
5581
+ questionId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
5582
+ state: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<typeof MarketClarificationState>, z.ZodArray<z.ZodEnum<typeof MarketClarificationState>>]>>;
5583
+ showInFrontend: z.ZodOptional<z.ZodBoolean>;
5584
+ txHash: z.ZodOptional<z.ZodString>;
5585
+ order: z.ZodOptional<z.ZodString>;
5586
+ ascending: z.ZodOptional<z.ZodBoolean>;
5587
+ cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
5588
+ pageSize: z.ZodDefault<z.ZodNumber>;
5589
+ }, z.core.$strip>;
5590
+ type ListMarketClarificationsRequest = z.input<typeof ListMarketClarificationsRequestSchema>;
5591
+ type ListMarketClarificationsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5592
+ declare const ListMarketClarificationsError: {
5593
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5594
+ };
5595
+ /**
5596
+ * Lists market clarifications — official notes that resolve ambiguity in how a
5597
+ * market settles.
5598
+ *
5599
+ * @remarks
5600
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
5601
+ *
5602
+ * @throws {@link ListMarketClarificationsError}
5603
+ * Thrown on failure.
5604
+ *
5605
+ * @example
5606
+ * Fetch the first page of results:
5607
+ * ```ts
5608
+ * const result = listMarketClarifications(client, {
5609
+ * marketId: '512038',
5610
+ * pageSize: 25,
5611
+ * });
5612
+ *
5613
+ * const firstPage = await result.firstPage();
5614
+ *
5615
+ * // Optionally, fetch additional pages:
5616
+ * for await (const page of result.from(firstPage.nextCursor)) {
5617
+ * // page.items: MarketClarification[]
5618
+ * }
5619
+ * ```
5620
+ *
5621
+ * @example
5622
+ * Loop through all pages with `for await`:
5623
+ * ```ts
5624
+ * const result = listMarketClarifications(client, {
5625
+ * marketId: '512038',
5626
+ * });
5627
+ *
5628
+ * for await (const page of result) {
5629
+ * // page.items: MarketClarification[]
5630
+ * }
5631
+ * ```
5632
+ */
5633
+ declare function listMarketClarifications(client: BaseClient, request?: ListMarketClarificationsRequest): Paginated<MarketClarification[]>;
5634
+
5403
5635
  declare const ListMarketsRequestSchema: z.ZodObject<{
5404
5636
  ascending: z.ZodOptional<z.ZodBoolean>;
5405
5637
  closed: z.ZodOptional<z.ZodBoolean>;
@@ -5490,7 +5722,7 @@ type ListOpenInterestRequest = z.input<typeof ListOpenInterestRequestSchema>;
5490
5722
  type ListMarketPositionsRequest = z.input<typeof ListMarketPositionsRequestSchema>;
5491
5723
  type ListMarketsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5492
5724
  declare const ListMarketsError: {
5493
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5725
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5494
5726
  };
5495
5727
  /**
5496
5728
  * Lists markets.
@@ -5542,7 +5774,7 @@ declare const ListComboMarketsRequestSchema: z.ZodObject<{
5542
5774
  type ListComboMarketsRequest = z.input<typeof ListComboMarketsRequestSchema>;
5543
5775
  type ListComboMarketsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5544
5776
  declare const ListComboMarketsError: {
5545
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5777
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5546
5778
  };
5547
5779
  /**
5548
5780
  * Lists markets available for Combos.
@@ -5580,7 +5812,7 @@ declare const ListComboMarketsError: {
5580
5812
  declare function listComboMarkets(client: BaseClient, request?: ListComboMarketsRequest): Paginated<ComboMarket[]>;
5581
5813
  type FetchMarketError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5582
5814
  declare const FetchMarketError: {
5583
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5815
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5584
5816
  };
5585
5817
  /**
5586
5818
  * Fetches a market.
@@ -5615,7 +5847,7 @@ declare const FetchMarketError: {
5615
5847
  declare function fetchMarket(client: BaseClient, request: FetchMarketRequest): Promise<Market>;
5616
5848
  type FetchMarketTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5617
5849
  declare const FetchMarketTagsError: {
5618
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5850
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5619
5851
  };
5620
5852
  /**
5621
5853
  * Fetches a market's tags.
@@ -5638,7 +5870,7 @@ declare const FetchMarketTagsError: {
5638
5870
  declare function fetchMarketTags(client: BaseClient, request: FetchMarketTagsRequest): Promise<TagReference[]>;
5639
5871
  type ListMarketHoldersError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5640
5872
  declare const ListMarketHoldersError: {
5641
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5873
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5642
5874
  };
5643
5875
  /**
5644
5876
  * Lists the top holders for one or more markets.
@@ -5662,7 +5894,7 @@ declare const ListMarketHoldersError: {
5662
5894
  declare function listMarketHolders(client: BaseClient, request: ListMarketHoldersRequest): Promise<MetaHolder[]>;
5663
5895
  type ListOpenInterestError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5664
5896
  declare const ListOpenInterestError: {
5665
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5897
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5666
5898
  };
5667
5899
  /**
5668
5900
  * Lists open interest for one or more markets.
@@ -5685,7 +5917,7 @@ declare const ListOpenInterestError: {
5685
5917
  declare function listOpenInterest(client: BaseClient, request?: ListOpenInterestRequest): Promise<OpenInterest[]>;
5686
5918
  type ListMarketPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5687
5919
  declare const ListMarketPositionsError: {
5688
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5920
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5689
5921
  };
5690
5922
  /**
5691
5923
  * Lists positions for a market.
@@ -5727,193 +5959,106 @@ declare const ListMarketPositionsError: {
5727
5959
  */
5728
5960
  declare function listMarketPositions(client: BaseClient, request: ListMarketPositionsRequest): Paginated<MetaMarketPosition[]>;
5729
5961
 
5730
- type PerpsHistoryParams = {
5731
- startTimestamp: number;
5732
- endTimestamp: number;
5733
- instrumentId?: PerpsInstrumentId;
5734
- depositStatus?: z.output<typeof PerpsDepositStatusSchema>;
5735
- withdrawalStatus?: z.output<typeof PerpsWithdrawalStatusSchema>;
5736
- hash?: z.output<typeof TxHashSchema>;
5737
- };
5738
- type PerpsIntervalHistoryParams = PerpsHistoryParams & {
5739
- interval: z.output<typeof PerpsPnlIntervalSchema>;
5740
- };
5741
- declare const FetchPerpsAccountConfigRequestSchema: z.ZodDefault<z.ZodObject<{
5742
- instrumentId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>>;
5743
- }, z.core.$strip>>;
5744
- type FetchPerpsAccountConfigRequest = z.input<typeof FetchPerpsAccountConfigRequestSchema>;
5745
- declare const FetchPerpsOpenOrdersRequestSchema: z.ZodDefault<z.ZodObject<{
5746
- instrumentId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>>;
5747
- }, z.core.$strip>>;
5748
- type FetchPerpsOpenOrdersRequest = z.input<typeof FetchPerpsOpenOrdersRequestSchema>;
5749
- declare const FetchPerpsOrdersRequestSchema: z.ZodPipe<z.ZodDefault<z.ZodObject<{
5750
- orderId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsOrderId, number>>>;
5751
- clientOrderId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings_perps.PerpsClientOrderId, string>>>;
5752
- instrumentId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>>;
5753
- start: z.ZodOptional<z.ZodNumber>;
5754
- end: z.ZodOptional<z.ZodNumber>;
5755
- }, z.core.$strip>>, z.ZodTransform<{
5756
- endTimestamp: number | undefined;
5757
- startTimestamp: number | undefined;
5758
- orderId?: _polymarket_bindings_perps.PerpsOrderId | undefined;
5759
- clientOrderId?: _polymarket_bindings_perps.PerpsClientOrderId | undefined;
5760
- instrumentId?: PerpsInstrumentId | undefined;
5761
- }, {
5762
- orderId?: _polymarket_bindings_perps.PerpsOrderId | undefined;
5763
- clientOrderId?: _polymarket_bindings_perps.PerpsClientOrderId | undefined;
5764
- instrumentId?: PerpsInstrumentId | undefined;
5765
- start?: number | undefined;
5766
- end?: number | undefined;
5767
- }>>;
5768
- type FetchPerpsOrdersRequest = z.input<typeof FetchPerpsOrdersRequestSchema>;
5769
- declare const ListPerpsFillsRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
5770
- start: z.ZodOptional<z.ZodNumber>;
5771
- end: z.ZodOptional<z.ZodNumber>;
5772
- cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
5773
- }, z.core.$strip>, z.ZodTransform<{
5774
- cursor: PaginationCursor | undefined;
5775
- params: Omit<Record<string, unknown>, "start" | "end"> & PerpsHistoryParams;
5776
- }, {
5777
- start?: number | undefined;
5778
- end?: number | undefined;
5779
- cursor?: PaginationCursor | undefined;
5780
- }>>, z.ZodPipe<z.ZodObject<{
5781
- cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
5782
- }, z.core.$strip>, z.ZodTransform<{
5783
- cursor: PaginationCursor;
5784
- params: undefined;
5785
- }, {
5786
- cursor: PaginationCursor;
5787
- }>>]>;
5788
- type ListPerpsFillsRequest = z.input<typeof ListPerpsFillsRequestSchema>;
5789
- declare const ListPerpsFundingPaymentsRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
5790
- start: z.ZodOptional<z.ZodNumber>;
5791
- end: z.ZodOptional<z.ZodNumber>;
5792
- cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
5793
- instrumentId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>>;
5794
- }, z.core.$strip>, z.ZodTransform<{
5795
- cursor: PaginationCursor | undefined;
5796
- params: Omit<{
5797
- start?: number | undefined;
5798
- end?: number | undefined;
5799
- instrumentId?: PerpsInstrumentId | undefined;
5800
- }, "start" | "end"> & PerpsHistoryParams;
5801
- }, {
5802
- start?: number | undefined;
5803
- end?: number | undefined;
5804
- cursor?: PaginationCursor | undefined;
5805
- instrumentId?: PerpsInstrumentId | undefined;
5806
- }>>, z.ZodPipe<z.ZodObject<{
5807
- cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
5808
- }, z.core.$strip>, z.ZodTransform<{
5809
- cursor: PaginationCursor;
5810
- params: undefined;
5811
- }, {
5812
- cursor: PaginationCursor;
5813
- }>>]>;
5814
- type ListPerpsFundingPaymentsRequest = z.input<typeof ListPerpsFundingPaymentsRequestSchema>;
5815
- declare const ListPerpsDepositsRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
5816
- start: z.ZodOptional<z.ZodNumber>;
5817
- end: z.ZodOptional<z.ZodNumber>;
5818
- cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
5819
- depositStatus: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_perps.PerpsDepositStatus>>;
5820
- hash: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>;
5821
- }, z.core.$strip>, z.ZodTransform<{
5822
- cursor: PaginationCursor | undefined;
5823
- params: Omit<{
5824
- start?: number | undefined;
5825
- end?: number | undefined;
5826
- depositStatus?: _polymarket_bindings_perps.PerpsDepositStatus | undefined;
5827
- hash?: _polymarket_types.TxHash | undefined;
5828
- }, "start" | "end"> & PerpsHistoryParams;
5829
- }, {
5830
- start?: number | undefined;
5831
- end?: number | undefined;
5832
- cursor?: PaginationCursor | undefined;
5833
- depositStatus?: _polymarket_bindings_perps.PerpsDepositStatus | undefined;
5834
- hash?: _polymarket_types.TxHash | undefined;
5835
- }>>, z.ZodPipe<z.ZodObject<{
5836
- cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
5837
- }, z.core.$strip>, z.ZodTransform<{
5962
+ type FetchPerpsAccountConfigRequest = {
5963
+ /** Optional Perps instrument identifier filter. */
5964
+ instrumentId?: number;
5965
+ };
5966
+ type FetchPerpsOpenOrdersRequest = {
5967
+ /** Optional Perps instrument identifier filter. */
5968
+ instrumentId?: number;
5969
+ };
5970
+ type FetchPerpsOrdersRequest = {
5971
+ /** Optional order identifier filter. */
5972
+ orderId?: number;
5973
+ /** Optional caller-supplied idempotency identifier filter. */
5974
+ clientOrderId?: string;
5975
+ /** Optional Perps instrument identifier filter. */
5976
+ instrumentId?: number;
5977
+ /** Inclusive start timestamp in milliseconds. */
5978
+ start?: number;
5979
+ /** Inclusive end timestamp in milliseconds. */
5980
+ end?: number;
5981
+ };
5982
+ type ListPerpsFillsRequest = {
5983
+ /** Inclusive start timestamp in milliseconds. */
5984
+ start?: number;
5985
+ /** Inclusive end timestamp in milliseconds. */
5986
+ end?: number;
5987
+ /** Opaque cursor returned by a previous page. */
5988
+ cursor?: PaginationCursor;
5989
+ } | {
5990
+ /** Opaque cursor returned by a previous page. */
5838
5991
  cursor: PaginationCursor;
5839
- params: undefined;
5840
- }, {
5992
+ };
5993
+ type ListPerpsFundingPaymentsRequest = {
5994
+ /** Optional Perps instrument identifier filter. */
5995
+ instrumentId?: number;
5996
+ /** Inclusive start timestamp in milliseconds. */
5997
+ start?: number;
5998
+ /** Inclusive end timestamp in milliseconds. */
5999
+ end?: number;
6000
+ /** Opaque cursor returned by a previous page. */
6001
+ cursor?: PaginationCursor;
6002
+ } | {
6003
+ /** Opaque cursor returned by a previous page. */
5841
6004
  cursor: PaginationCursor;
5842
- }>>]>;
5843
- type ListPerpsDepositsRequest = z.input<typeof ListPerpsDepositsRequestSchema>;
5844
- declare const ListPerpsWithdrawalsRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
5845
- start: z.ZodOptional<z.ZodNumber>;
5846
- end: z.ZodOptional<z.ZodNumber>;
5847
- cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
5848
- withdrawalStatus: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_perps.PerpsWithdrawalStatus>>;
5849
- hash: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>;
5850
- }, z.core.$strip>, z.ZodTransform<{
5851
- cursor: PaginationCursor | undefined;
5852
- params: Omit<{
5853
- start?: number | undefined;
5854
- end?: number | undefined;
5855
- withdrawalStatus?: _polymarket_bindings_perps.PerpsWithdrawalStatus | undefined;
5856
- hash?: _polymarket_types.TxHash | undefined;
5857
- }, "start" | "end"> & PerpsHistoryParams;
5858
- }, {
5859
- start?: number | undefined;
5860
- end?: number | undefined;
5861
- cursor?: PaginationCursor | undefined;
5862
- withdrawalStatus?: _polymarket_bindings_perps.PerpsWithdrawalStatus | undefined;
5863
- hash?: _polymarket_types.TxHash | undefined;
5864
- }>>, z.ZodPipe<z.ZodObject<{
5865
- cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
5866
- }, z.core.$strip>, z.ZodTransform<{
6005
+ };
6006
+ type ListPerpsDepositsRequest = {
6007
+ /** Optional deposit status filter. */
6008
+ depositStatus?: PerpsDepositStatus;
6009
+ /** Optional transaction hash filter. */
6010
+ hash?: string;
6011
+ /** Inclusive start timestamp in milliseconds. */
6012
+ start?: number;
6013
+ /** Inclusive end timestamp in milliseconds. */
6014
+ end?: number;
6015
+ /** Opaque cursor returned by a previous page. */
6016
+ cursor?: PaginationCursor;
6017
+ } | {
6018
+ /** Opaque cursor returned by a previous page. */
5867
6019
  cursor: PaginationCursor;
5868
- params: undefined;
5869
- }, {
6020
+ };
6021
+ type ListPerpsWithdrawalsRequest = {
6022
+ /** Optional withdrawal status filter. */
6023
+ withdrawalStatus?: PerpsWithdrawalStatus;
6024
+ /** Optional transaction hash filter. */
6025
+ hash?: string;
6026
+ /** Inclusive start timestamp in milliseconds. */
6027
+ start?: number;
6028
+ /** Inclusive end timestamp in milliseconds. */
6029
+ end?: number;
6030
+ /** Opaque cursor returned by a previous page. */
6031
+ cursor?: PaginationCursor;
6032
+ } | {
6033
+ /** Opaque cursor returned by a previous page. */
5870
6034
  cursor: PaginationCursor;
5871
- }>>]>;
5872
- type ListPerpsWithdrawalsRequest = z.input<typeof ListPerpsWithdrawalsRequestSchema>;
5873
- declare const ListPerpsEquityHistoryRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
5874
- interval: z.ZodEnum<typeof _polymarket_bindings_perps.PerpsPnlInterval>;
5875
- start: z.ZodNumber;
5876
- end: z.ZodOptional<z.ZodNumber>;
5877
- cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
5878
- }, z.core.$strip>, z.ZodTransform<{
5879
- cursor: PaginationCursor | undefined;
5880
- params: PerpsIntervalHistoryParams;
5881
- }, {
5882
- interval: _polymarket_bindings_perps.PerpsPnlInterval;
6035
+ };
6036
+ type ListPerpsEquityHistoryRequest = {
6037
+ /** History interval. */
6038
+ interval: PerpsPnlInterval;
6039
+ /** Inclusive start timestamp in milliseconds. */
5883
6040
  start: number;
5884
- end?: number | undefined;
5885
- cursor?: PaginationCursor | undefined;
5886
- }>>, z.ZodPipe<z.ZodObject<{
5887
- cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
5888
- }, z.core.$strip>, z.ZodTransform<{
5889
- cursor: PaginationCursor;
5890
- params: undefined;
5891
- }, {
6041
+ /** Inclusive end timestamp in milliseconds. */
6042
+ end?: number;
6043
+ /** Opaque cursor returned by a previous page. */
6044
+ cursor?: PaginationCursor;
6045
+ } | {
6046
+ /** Opaque cursor returned by a previous page. */
5892
6047
  cursor: PaginationCursor;
5893
- }>>]>;
5894
- type ListPerpsEquityHistoryRequest = z.input<typeof ListPerpsEquityHistoryRequestSchema>;
5895
- declare const ListPerpsPnlHistoryRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
5896
- interval: z.ZodEnum<typeof _polymarket_bindings_perps.PerpsPnlInterval>;
5897
- start: z.ZodNumber;
5898
- end: z.ZodOptional<z.ZodNumber>;
5899
- cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
5900
- }, z.core.$strip>, z.ZodTransform<{
5901
- cursor: PaginationCursor | undefined;
5902
- params: PerpsIntervalHistoryParams;
5903
- }, {
5904
- interval: _polymarket_bindings_perps.PerpsPnlInterval;
6048
+ };
6049
+ type ListPerpsPnlHistoryRequest = {
6050
+ /** History interval. */
6051
+ interval: PerpsPnlInterval;
6052
+ /** Inclusive start timestamp in milliseconds. */
5905
6053
  start: number;
5906
- end?: number | undefined;
5907
- cursor?: PaginationCursor | undefined;
5908
- }>>, z.ZodPipe<z.ZodObject<{
5909
- cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
5910
- }, z.core.$strip>, z.ZodTransform<{
5911
- cursor: PaginationCursor;
5912
- params: undefined;
5913
- }, {
6054
+ /** Inclusive end timestamp in milliseconds. */
6055
+ end?: number;
6056
+ /** Opaque cursor returned by a previous page. */
6057
+ cursor?: PaginationCursor;
6058
+ } | {
6059
+ /** Opaque cursor returned by a previous page. */
5914
6060
  cursor: PaginationCursor;
5915
- }>>]>;
5916
- type ListPerpsPnlHistoryRequest = z.input<typeof ListPerpsPnlHistoryRequestSchema>;
6061
+ };
5917
6062
 
5918
6063
  /**
5919
6064
  * Good-til-cancelled Perps order.
@@ -5931,6 +6076,8 @@ type PerpsPlaceGtcOrderRequest = {
5931
6076
  timeInForce: PerpsTimeInForce.GTC;
5932
6077
  /** Whether the order must rest instead of taking liquidity. */
5933
6078
  postOnly?: boolean;
6079
+ /** Whether the order may only reduce or close an existing position. */
6080
+ reduceOnly?: boolean;
5934
6081
  /** Optional caller-supplied idempotency identifier. */
5935
6082
  clientOrderId?: string;
5936
6083
  };
@@ -5948,7 +6095,9 @@ type PerpsPlaceIocOrderRequest = {
5948
6095
  quantity: PerpsDecimalInput;
5949
6096
  /** Immediate-or-cancel execution. */
5950
6097
  timeInForce: PerpsTimeInForce.IOC;
5951
- postOnly?: undefined;
6098
+ postOnly?: never;
6099
+ /** Whether the order may only reduce or close an existing position. */
6100
+ reduceOnly?: boolean;
5952
6101
  /** Optional caller-supplied idempotency identifier. */
5953
6102
  clientOrderId?: string;
5954
6103
  };
@@ -5966,7 +6115,9 @@ type PerpsPlaceFokOrderRequest = {
5966
6115
  quantity: PerpsDecimalInput;
5967
6116
  /** Fill-or-kill execution. */
5968
6117
  timeInForce: PerpsTimeInForce.FOK;
5969
- postOnly?: undefined;
6118
+ postOnly?: never;
6119
+ /** Whether the order may only reduce or close an existing position. */
6120
+ reduceOnly?: boolean;
5970
6121
  /** Optional caller-supplied idempotency identifier. */
5971
6122
  clientOrderId?: string;
5972
6123
  };
@@ -5981,13 +6132,6 @@ type PerpsTpSlTrigger = {
5981
6132
  type PerpsPositionTpSlTrigger = {
5982
6133
  triggerPrice: PerpsDecimalInput;
5983
6134
  };
5984
- type PerpsTpSlPairRequest = {
5985
- takeProfit: PerpsTpSlTrigger;
5986
- stopLoss?: PerpsTpSlTrigger;
5987
- } | {
5988
- takeProfit?: PerpsTpSlTrigger;
5989
- stopLoss: PerpsTpSlTrigger;
5990
- };
5991
6135
  /** Request parameters for posting one or more Perps orders. */
5992
6136
  type PostPerpsOrdersRequest = {
5993
6137
  /** Orders to post as one command. */
@@ -5995,13 +6139,202 @@ type PostPerpsOrdersRequest = {
5995
6139
  /** Optional command expiration timestamp in milliseconds. */
5996
6140
  expiresAt?: number;
5997
6141
  };
5998
- type PlacePerpsOrderRequest = PerpsOrderRequest & {
6142
+ type PlacePerpsOrderRequest = {
6143
+ /** Perps instrument identifier to trade. */
6144
+ instrumentId: number;
6145
+ /** Trade direction. */
6146
+ side: OrderSide;
6147
+ /** Limit price. */
6148
+ price: PerpsDecimalInput;
6149
+ /** Order quantity. */
6150
+ quantity: PerpsDecimalInput;
6151
+ /** Good-til-cancelled execution. */
6152
+ timeInForce: PerpsTimeInForce.GTC;
6153
+ /** Whether the order must rest instead of taking liquidity. */
6154
+ postOnly?: boolean;
6155
+ /** Whether the order may only reduce or close an existing position. */
6156
+ reduceOnly?: boolean;
6157
+ /** Optional caller-supplied idempotency identifier. */
6158
+ clientOrderId?: string;
6159
+ /** Optional command expiration timestamp in milliseconds. */
5999
6160
  expiresAt?: number;
6000
- stopLoss?: undefined;
6001
- takeProfit?: undefined;
6161
+ takeProfit?: never;
6162
+ stopLoss?: never;
6163
+ } | {
6164
+ /** Perps instrument identifier to trade. */
6165
+ instrumentId: number;
6166
+ /** Trade direction. */
6167
+ side: OrderSide;
6168
+ /** Optional limit price. Omit for market-style execution. */
6169
+ price?: PerpsDecimalInput;
6170
+ /** Order quantity. */
6171
+ quantity: PerpsDecimalInput;
6172
+ /** Immediate-or-cancel execution. */
6173
+ timeInForce: PerpsTimeInForce.IOC;
6174
+ postOnly?: never;
6175
+ /** Whether the order may only reduce or close an existing position. */
6176
+ reduceOnly?: boolean;
6177
+ /** Optional caller-supplied idempotency identifier. */
6178
+ clientOrderId?: string;
6179
+ /** Optional command expiration timestamp in milliseconds. */
6180
+ expiresAt?: number;
6181
+ takeProfit?: never;
6182
+ stopLoss?: never;
6183
+ } | {
6184
+ /** Perps instrument identifier to trade. */
6185
+ instrumentId: number;
6186
+ /** Trade direction. */
6187
+ side: OrderSide;
6188
+ /** Optional limit price. Omit for market-style execution. */
6189
+ price?: PerpsDecimalInput;
6190
+ /** Order quantity. */
6191
+ quantity: PerpsDecimalInput;
6192
+ /** Fill-or-kill execution. */
6193
+ timeInForce: PerpsTimeInForce.FOK;
6194
+ postOnly?: never;
6195
+ /** Whether the order may only reduce or close an existing position. */
6196
+ reduceOnly?: boolean;
6197
+ /** Optional caller-supplied idempotency identifier. */
6198
+ clientOrderId?: string;
6199
+ /** Optional command expiration timestamp in milliseconds. */
6200
+ expiresAt?: number;
6201
+ takeProfit?: never;
6202
+ stopLoss?: never;
6002
6203
  };
6003
- type PlacePerpsOrderWithTpSlRequest = PerpsOrderRequest & PerpsTpSlPairRequest & {
6204
+ type PlacePerpsOrderWithTpSlRequest = {
6205
+ /** Perps instrument identifier to trade. */
6206
+ instrumentId: number;
6207
+ /** Trade direction. */
6208
+ side: OrderSide;
6209
+ /** Limit price. */
6210
+ price: PerpsDecimalInput;
6211
+ /** Order quantity. */
6212
+ quantity: PerpsDecimalInput;
6213
+ /** Good-til-cancelled execution. */
6214
+ timeInForce: PerpsTimeInForce.GTC;
6215
+ /** Whether the order must rest instead of taking liquidity. */
6216
+ postOnly?: boolean;
6217
+ /** Whether the order may only reduce or close an existing position. */
6218
+ reduceOnly?: boolean;
6219
+ /** Optional caller-supplied idempotency identifier. */
6220
+ clientOrderId?: string;
6221
+ /** Optional command expiration timestamp in milliseconds. */
6222
+ expiresAt?: number;
6223
+ /** Take-profit trigger to place with the entry order. */
6224
+ takeProfit: PerpsTpSlTrigger;
6225
+ /** Optional stop-loss trigger to place with the entry order. */
6226
+ stopLoss?: PerpsTpSlTrigger;
6227
+ } | {
6228
+ /** Perps instrument identifier to trade. */
6229
+ instrumentId: number;
6230
+ /** Trade direction. */
6231
+ side: OrderSide;
6232
+ /** Limit price. */
6233
+ price: PerpsDecimalInput;
6234
+ /** Order quantity. */
6235
+ quantity: PerpsDecimalInput;
6236
+ /** Good-til-cancelled execution. */
6237
+ timeInForce: PerpsTimeInForce.GTC;
6238
+ /** Whether the order must rest instead of taking liquidity. */
6239
+ postOnly?: boolean;
6240
+ /** Whether the order may only reduce or close an existing position. */
6241
+ reduceOnly?: boolean;
6242
+ /** Optional caller-supplied idempotency identifier. */
6243
+ clientOrderId?: string;
6244
+ /** Optional command expiration timestamp in milliseconds. */
6245
+ expiresAt?: number;
6246
+ /** Optional take-profit trigger to place with the entry order. */
6247
+ takeProfit?: PerpsTpSlTrigger;
6248
+ /** Stop-loss trigger to place with the entry order. */
6249
+ stopLoss: PerpsTpSlTrigger;
6250
+ } | {
6251
+ /** Perps instrument identifier to trade. */
6252
+ instrumentId: number;
6253
+ /** Trade direction. */
6254
+ side: OrderSide;
6255
+ /** Optional limit price. Omit for market-style execution. */
6256
+ price?: PerpsDecimalInput;
6257
+ /** Order quantity. */
6258
+ quantity: PerpsDecimalInput;
6259
+ /** Immediate-or-cancel execution. */
6260
+ timeInForce: PerpsTimeInForce.IOC;
6261
+ postOnly?: never;
6262
+ /** Whether the order may only reduce or close an existing position. */
6263
+ reduceOnly?: boolean;
6264
+ /** Optional caller-supplied idempotency identifier. */
6265
+ clientOrderId?: string;
6266
+ /** Optional command expiration timestamp in milliseconds. */
6267
+ expiresAt?: number;
6268
+ /** Take-profit trigger to place with the entry order. */
6269
+ takeProfit: PerpsTpSlTrigger;
6270
+ /** Optional stop-loss trigger to place with the entry order. */
6271
+ stopLoss?: PerpsTpSlTrigger;
6272
+ } | {
6273
+ /** Perps instrument identifier to trade. */
6274
+ instrumentId: number;
6275
+ /** Trade direction. */
6276
+ side: OrderSide;
6277
+ /** Optional limit price. Omit for market-style execution. */
6278
+ price?: PerpsDecimalInput;
6279
+ /** Order quantity. */
6280
+ quantity: PerpsDecimalInput;
6281
+ /** Immediate-or-cancel execution. */
6282
+ timeInForce: PerpsTimeInForce.IOC;
6283
+ postOnly?: never;
6284
+ /** Whether the order may only reduce or close an existing position. */
6285
+ reduceOnly?: boolean;
6286
+ /** Optional caller-supplied idempotency identifier. */
6287
+ clientOrderId?: string;
6288
+ /** Optional command expiration timestamp in milliseconds. */
6004
6289
  expiresAt?: number;
6290
+ /** Optional take-profit trigger to place with the entry order. */
6291
+ takeProfit?: PerpsTpSlTrigger;
6292
+ /** Stop-loss trigger to place with the entry order. */
6293
+ stopLoss: PerpsTpSlTrigger;
6294
+ } | {
6295
+ /** Perps instrument identifier to trade. */
6296
+ instrumentId: number;
6297
+ /** Trade direction. */
6298
+ side: OrderSide;
6299
+ /** Optional limit price. Omit for market-style execution. */
6300
+ price?: PerpsDecimalInput;
6301
+ /** Order quantity. */
6302
+ quantity: PerpsDecimalInput;
6303
+ /** Fill-or-kill execution. */
6304
+ timeInForce: PerpsTimeInForce.FOK;
6305
+ postOnly?: never;
6306
+ /** Whether the order may only reduce or close an existing position. */
6307
+ reduceOnly?: boolean;
6308
+ /** Optional caller-supplied idempotency identifier. */
6309
+ clientOrderId?: string;
6310
+ /** Optional command expiration timestamp in milliseconds. */
6311
+ expiresAt?: number;
6312
+ /** Take-profit trigger to place with the entry order. */
6313
+ takeProfit: PerpsTpSlTrigger;
6314
+ /** Optional stop-loss trigger to place with the entry order. */
6315
+ stopLoss?: PerpsTpSlTrigger;
6316
+ } | {
6317
+ /** Perps instrument identifier to trade. */
6318
+ instrumentId: number;
6319
+ /** Trade direction. */
6320
+ side: OrderSide;
6321
+ /** Optional limit price. Omit for market-style execution. */
6322
+ price?: PerpsDecimalInput;
6323
+ /** Order quantity. */
6324
+ quantity: PerpsDecimalInput;
6325
+ /** Fill-or-kill execution. */
6326
+ timeInForce: PerpsTimeInForce.FOK;
6327
+ postOnly?: never;
6328
+ /** Whether the order may only reduce or close an existing position. */
6329
+ reduceOnly?: boolean;
6330
+ /** Optional caller-supplied idempotency identifier. */
6331
+ clientOrderId?: string;
6332
+ /** Optional command expiration timestamp in milliseconds. */
6333
+ expiresAt?: number;
6334
+ /** Optional take-profit trigger to place with the entry order. */
6335
+ takeProfit?: PerpsTpSlTrigger;
6336
+ /** Stop-loss trigger to place with the entry order. */
6337
+ stopLoss: PerpsTpSlTrigger;
6005
6338
  };
6006
6339
  type PlacePerpsPositionTpSlRequest = {
6007
6340
  /** Perps instrument identifier whose current position should receive TP/SL protection. */
@@ -6022,35 +6355,49 @@ type PlacePerpsPositionTpSlRequest = {
6022
6355
  /** Optional command expiration timestamp in milliseconds. */
6023
6356
  expiresAt?: number;
6024
6357
  };
6025
- declare const CancelPerpsOrderRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
6026
- orderId: z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsOrderId, number>>;
6027
- clientOrderId: z.ZodOptional<z.ZodUndefined>;
6028
- expiresAt: z.ZodOptional<z.ZodNumber>;
6029
- }, z.core.$strip>, z.ZodObject<{
6030
- clientOrderId: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings_perps.PerpsClientOrderId, string>>;
6031
- orderId: z.ZodOptional<z.ZodUndefined>;
6032
- expiresAt: z.ZodOptional<z.ZodNumber>;
6033
- }, z.core.$strip>]>;
6034
- type CancelPerpsOrderRequest = z.input<typeof CancelPerpsOrderRequestSchema>;
6035
- declare const CancelPerpsOrdersRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
6036
- orderIds: z.ZodArray<z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsOrderId, number>>>;
6037
- clientOrderIds: z.ZodOptional<z.ZodUndefined>;
6038
- expiresAt: z.ZodOptional<z.ZodNumber>;
6039
- }, z.core.$strip>, z.ZodObject<{
6040
- clientOrderIds: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings_perps.PerpsClientOrderId, string>>>;
6041
- orderIds: z.ZodOptional<z.ZodUndefined>;
6042
- expiresAt: z.ZodOptional<z.ZodNumber>;
6043
- }, z.core.$strip>]>;
6044
- type CancelPerpsOrdersRequest = z.input<typeof CancelPerpsOrdersRequestSchema>;
6045
- declare const UpdatePerpsLeverageRequestSchema: z.ZodObject<{
6046
- instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
6047
- leverage: z.ZodNumber;
6048
- crossMargin: z.ZodBoolean;
6049
- }, z.core.$strip>;
6050
- type UpdatePerpsLeverageRequest = z.input<typeof UpdatePerpsLeverageRequestSchema>;
6358
+ type CancelPerpsOrderRequest = {
6359
+ /** Order identifier to cancel. */
6360
+ orderId: number;
6361
+ clientOrderId?: never;
6362
+ /** Optional command expiration timestamp in milliseconds. */
6363
+ expiresAt?: number;
6364
+ } | {
6365
+ /** Caller-supplied idempotency identifier to cancel. */
6366
+ clientOrderId: string;
6367
+ orderId?: never;
6368
+ /** Optional command expiration timestamp in milliseconds. */
6369
+ expiresAt?: number;
6370
+ };
6371
+ type CancelPerpsOrdersRequest = {
6372
+ /** Order identifiers to cancel. */
6373
+ orderIds: number[];
6374
+ clientOrderIds?: never;
6375
+ /** Optional command expiration timestamp in milliseconds. */
6376
+ expiresAt?: number;
6377
+ } | {
6378
+ /** Caller-supplied idempotency identifiers to cancel. */
6379
+ clientOrderIds: string[];
6380
+ orderIds?: never;
6381
+ /** Optional command expiration timestamp in milliseconds. */
6382
+ expiresAt?: number;
6383
+ };
6384
+ type CancelAllPerpsOrdersRequest = {
6385
+ /** Optional Perps instrument identifier to scope cancellation. */
6386
+ instrumentId?: number;
6387
+ /** Optional command expiration timestamp in milliseconds. */
6388
+ expiresAt?: number;
6389
+ };
6390
+ type UpdatePerpsLeverageRequest = {
6391
+ /** Perps instrument identifier whose leverage should be updated. */
6392
+ instrumentId: number;
6393
+ /** Target leverage multiplier. */
6394
+ leverage: number;
6395
+ /** Whether the instrument should use cross margin. */
6396
+ crossMargin: boolean;
6397
+ };
6051
6398
  type UpdatePerpsLeverageError = RequestRejectedError | SigningError | TransportError | UserInputError;
6052
6399
  declare const UpdatePerpsLeverageError: {
6053
- isError(error: unknown): error is UserInputError | TransportError | RequestRejectedError | SigningError;
6400
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | RequestRejectedError;
6054
6401
  };
6055
6402
 
6056
6403
  type PerpsSessionOptions = {
@@ -6061,6 +6408,9 @@ type PerpsSessionOptions = {
6061
6408
  restUrl: string;
6062
6409
  wsUrl: string;
6063
6410
  };
6411
+ type PerpsSessionLifecycleError = RequestRejectedError | TransportError;
6412
+ type PerpsSessionAccountError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6413
+ type PerpsSessionTradingError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
6064
6414
  type PerpsPlacedTpSlOrder = {
6065
6415
  orderId: PerpsOrderId;
6066
6416
  };
@@ -6082,25 +6432,145 @@ declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
6082
6432
  readonly credentials: PerpsCredentials;
6083
6433
  constructor(options: PerpsSessionOptions);
6084
6434
  get closed(): boolean;
6435
+ /**
6436
+ * Connects and authenticates the session WebSocket.
6437
+ *
6438
+ * @throws {@link PerpsSessionLifecycleError}
6439
+ * Thrown on failure.
6440
+ */
6085
6441
  connect(): Promise<void>;
6442
+ /**
6443
+ * Closes the session and releases pending requests.
6444
+ *
6445
+ * @throws {@link PerpsSessionLifecycleError}
6446
+ * Thrown on failure.
6447
+ */
6086
6448
  close(): Promise<void>;
6449
+ /**
6450
+ * Iterates authenticated Perps account events emitted by this session.
6451
+ *
6452
+ * @example
6453
+ * ```ts
6454
+ * for await (const event of session) {
6455
+ * if (event.type === 'order') {
6456
+ * console.log(event.payload.id);
6457
+ * }
6458
+ * }
6459
+ * ```
6460
+ */
6087
6461
  [Symbol.asyncIterator](): AsyncIterator<PerpsSessionEvent>;
6462
+ /**
6463
+ * Fetches current Perps balances for the authenticated account.
6464
+ *
6465
+ * @throws {@link PerpsSessionAccountError}
6466
+ * Thrown on failure.
6467
+ */
6088
6468
  fetchBalances(): Promise<PerpsBalance[]>;
6469
+ /**
6470
+ * Fetches the current Perps portfolio for the authenticated account.
6471
+ *
6472
+ * @throws {@link PerpsSessionAccountError}
6473
+ * Thrown on failure.
6474
+ */
6089
6475
  fetchPortfolio(): Promise<PerpsPortfolio>;
6476
+ /**
6477
+ * Fetches account-level Perps statistics for the authenticated account.
6478
+ *
6479
+ * @throws {@link PerpsSessionAccountError}
6480
+ * Thrown on failure.
6481
+ */
6090
6482
  fetchStats(): Promise<PerpsAccountStats>;
6483
+ /**
6484
+ * Fetches Perps account configuration, optionally filtered by instrument.
6485
+ *
6486
+ * @throws {@link PerpsSessionAccountError}
6487
+ * Thrown on failure.
6488
+ */
6091
6489
  fetchAccountConfig(request?: FetchPerpsAccountConfigRequest): Promise<PerpsAccountConfig[]>;
6490
+ /**
6491
+ * Fetches currently open Perps orders, optionally filtered by instrument.
6492
+ *
6493
+ * @throws {@link PerpsSessionAccountError}
6494
+ * Thrown on failure.
6495
+ */
6092
6496
  fetchOpenOrders(request?: FetchPerpsOpenOrdersRequest): Promise<PerpsOrder[]>;
6497
+ /**
6498
+ * Fetches Perps orders for the authenticated account.
6499
+ *
6500
+ * @throws {@link PerpsSessionAccountError}
6501
+ * Thrown on failure.
6502
+ */
6093
6503
  fetchOrders(request?: FetchPerpsOrdersRequest): Promise<PerpsOrder[]>;
6504
+ /**
6505
+ * Lists Perps fills with SDK-owned pagination.
6506
+ *
6507
+ * @throws {@link PerpsSessionAccountError}
6508
+ * Thrown on failure.
6509
+ */
6094
6510
  listFills(request?: ListPerpsFillsRequest): Paginated<PerpsAccountFill[]>;
6511
+ /**
6512
+ * Lists Perps funding payments with SDK-owned pagination.
6513
+ *
6514
+ * @throws {@link PerpsSessionAccountError}
6515
+ * Thrown on failure.
6516
+ */
6095
6517
  listFundingPayments(request?: ListPerpsFundingPaymentsRequest): Paginated<PerpsAccountFundingPayment[]>;
6518
+ /**
6519
+ * Lists Perps deposits with SDK-owned pagination.
6520
+ *
6521
+ * @throws {@link PerpsSessionAccountError}
6522
+ * Thrown on failure.
6523
+ */
6096
6524
  listDeposits(request?: ListPerpsDepositsRequest): Paginated<PerpsDeposit[]>;
6525
+ /**
6526
+ * Lists Perps withdrawals with SDK-owned pagination.
6527
+ *
6528
+ * @throws {@link PerpsSessionAccountError}
6529
+ * Thrown on failure.
6530
+ */
6097
6531
  listWithdrawals(request?: ListPerpsWithdrawalsRequest): Paginated<PerpsWithdrawal[]>;
6532
+ /**
6533
+ * Lists Perps equity history with SDK-owned pagination.
6534
+ *
6535
+ * @throws {@link PerpsSessionAccountError}
6536
+ * Thrown on failure.
6537
+ */
6098
6538
  listEquityHistory(request: ListPerpsEquityHistoryRequest): Paginated<PerpsEquityPoint[]>;
6539
+ /**
6540
+ * Lists Perps PnL history with SDK-owned pagination.
6541
+ *
6542
+ * @throws {@link PerpsSessionAccountError}
6543
+ * Thrown on failure.
6544
+ */
6099
6545
  listPnlHistory(request: ListPerpsPnlHistoryRequest): Paginated<PerpsPnlPoint[]>;
6100
6546
  /**
6101
6547
  * Places one Perps order and resolves with the first matching orders update.
6102
6548
  *
6103
- * @throws Thrown on failure.
6549
+ * @example
6550
+ * ```ts
6551
+ * const { order } = await session.placeOrder({
6552
+ * instrumentId: 1,
6553
+ * price: '100',
6554
+ * quantity: '1',
6555
+ * side: OrderSide.BUY,
6556
+ * timeInForce: PerpsTimeInForce.GTC,
6557
+ * });
6558
+ * ```
6559
+ *
6560
+ * @example
6561
+ * ```ts
6562
+ * const { order, tpSl } = await session.placeOrder({
6563
+ * instrumentId: 1,
6564
+ * price: '100',
6565
+ * quantity: '1',
6566
+ * side: OrderSide.BUY,
6567
+ * stopLoss: { triggerPrice: '90' },
6568
+ * timeInForce: PerpsTimeInForce.GTC,
6569
+ * });
6570
+ * ```
6571
+ *
6572
+ * @throws {@link PerpsSessionTradingError}
6573
+ * Thrown on failure.
6104
6574
  */
6105
6575
  placeOrder(request: PlacePerpsOrderWithTpSlRequest): Promise<PlacePerpsOrderWithTpSlResult>;
6106
6576
  placeOrder(request: PlacePerpsOrderRequest): Promise<PlacePerpsOrderResult>;
@@ -6109,14 +6579,41 @@ declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
6109
6579
  *
6110
6580
  * @remarks
6111
6581
  * This is a low-level method. Most SDK consumers should prefer `placeOrder`.
6582
+ *
6583
+ * @throws {@link PerpsSessionTradingError}
6584
+ * Thrown on failure.
6112
6585
  */
6113
6586
  postOrders(request: PostPerpsOrdersRequest): Promise<PerpsPostOrderAck[]>;
6587
+ /**
6588
+ * Places take-profit and/or stop-loss protection for the current position.
6589
+ *
6590
+ * @remarks
6591
+ * The exit side is inferred from the current position for the requested
6592
+ * instrument.
6593
+ *
6594
+ * @example
6595
+ * ```ts
6596
+ * const { tpSl } = await session.placePositionTpSl({
6597
+ * instrumentId: 1,
6598
+ * stopLoss: { triggerPrice: '90' },
6599
+ * });
6600
+ * ```
6601
+ *
6602
+ * @throws {@link PerpsSessionAccountError}
6603
+ * Thrown when the current position cannot be read.
6604
+ *
6605
+ * @throws {@link PerpsSessionTradingError}
6606
+ * Thrown when the TP/SL command fails.
6607
+ */
6114
6608
  placePositionTpSl(request: PlacePerpsPositionTpSlRequest): Promise<PlacePerpsPositionTpSlResult>;
6115
6609
  /**
6116
6610
  * Cancels one Perps order and returns the cancel result.
6117
6611
  *
6118
6612
  * @remarks
6119
6613
  * The returned status reflects whether the cancel happened.
6614
+ *
6615
+ * @throws {@link PerpsSessionTradingError}
6616
+ * Thrown on failure.
6120
6617
  */
6121
6618
  cancelOrder(request: CancelPerpsOrderRequest): Promise<PerpsCancelOrderResult>;
6122
6619
  /**
@@ -6124,35 +6621,54 @@ declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
6124
6621
  *
6125
6622
  * @remarks
6126
6623
  * Each returned status reflects whether that cancel happened.
6624
+ *
6625
+ * @throws {@link PerpsSessionTradingError}
6626
+ * Thrown on failure.
6127
6627
  */
6128
6628
  cancelOrders(request: CancelPerpsOrdersRequest): Promise<PerpsCancelOrderResult[]>;
6629
+ /**
6630
+ * Cancels all open Perps orders for the authenticated account.
6631
+ *
6632
+ * @remarks
6633
+ * Omit `instrumentId` to cancel open orders across all instruments. The
6634
+ * endpoint returns once the cancel-all request is accepted; individual orders
6635
+ * can still race with fills or other cancels.
6636
+ *
6637
+ * @throws {@link PerpsSessionTradingError}
6638
+ * Thrown on failure.
6639
+ */
6640
+ cancelAllOrders(request?: CancelAllPerpsOrdersRequest): Promise<void>;
6641
+ /**
6642
+ * Updates Perps leverage and margin mode for an instrument.
6643
+ *
6644
+ * @example
6645
+ * ```ts
6646
+ * await session.updateLeverage({
6647
+ * crossMargin: true,
6648
+ * instrumentId: 1,
6649
+ * leverage: 2,
6650
+ * });
6651
+ * ```
6652
+ *
6653
+ * @throws {@link UpdatePerpsLeverageError}
6654
+ * Thrown on failure.
6655
+ */
6129
6656
  updateLeverage(request: UpdatePerpsLeverageRequest): Promise<PerpsUpdateLeverageResult>;
6130
6657
  }
6131
6658
 
6132
6659
  type PerpsPublicReadError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6133
6660
  declare const PerpsPublicReadError: {
6134
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6661
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6662
+ };
6663
+ type FetchPerpsInstrumentsRequest = {
6664
+ /** Perps instrument identifier to fetch. */
6665
+ instrumentId?: number;
6666
+ /** Optional instrument category filter. */
6667
+ category?: PerpsInstrumentCategory;
6135
6668
  };
6136
- type PerpsCandlesParams = {
6137
- instrumentId: z.output<typeof PerpsInstrumentIdSchema>;
6138
- interval: PerpsKlineInterval;
6139
- startTimestamp: number;
6140
- endTimestamp: number;
6141
- };
6142
- type PerpsTimeRangeParams = {
6143
- instrumentId: z.output<typeof PerpsInstrumentIdSchema>;
6144
- startTimestamp: number;
6145
- endTimestamp: number;
6146
- };
6147
- declare const FetchPerpsInstrumentsRequestSchema: z.ZodDefault<z.ZodObject<{
6148
- instrumentId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>>;
6149
- instrumentType: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_perps.PerpsInstrumentType>>;
6150
- category: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_perps.PerpsInstrumentCategory>>;
6151
- }, z.core.$strip>>;
6152
- type FetchPerpsInstrumentsRequest = z.input<typeof FetchPerpsInstrumentsRequestSchema>;
6153
6669
  type FetchPerpsInstrumentsError = PerpsPublicReadError;
6154
6670
  declare const FetchPerpsInstrumentsError: {
6155
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6671
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6156
6672
  };
6157
6673
  /**
6158
6674
  * Fetches Perps instruments.
@@ -6164,13 +6680,13 @@ declare const FetchPerpsInstrumentsError: {
6164
6680
  * Thrown on failure.
6165
6681
  */
6166
6682
  declare function fetchPerpsInstruments(client: BaseClient, request?: FetchPerpsInstrumentsRequest): Promise<PerpsInstrument[]>;
6167
- declare const FetchPerpsTickerRequestSchema: z.ZodObject<{
6168
- instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>;
6169
- }, z.core.$strip>;
6170
- type FetchPerpsTickerRequest = z.input<typeof FetchPerpsTickerRequestSchema>;
6683
+ type FetchPerpsTickerRequest = {
6684
+ /** Perps instrument identifier whose ticker should be fetched. */
6685
+ instrumentId: number;
6686
+ };
6171
6687
  type FetchPerpsTickerError = PerpsPublicReadError;
6172
6688
  declare const FetchPerpsTickerError: {
6173
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6689
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6174
6690
  };
6175
6691
  /**
6176
6692
  * Fetches the current Perps ticker for an instrument.
@@ -6182,13 +6698,13 @@ declare const FetchPerpsTickerError: {
6182
6698
  * Thrown on failure.
6183
6699
  */
6184
6700
  declare function fetchPerpsTicker(client: BaseClient, request: FetchPerpsTickerRequest): Promise<PerpsTicker>;
6185
- declare const FetchPerpsTickersRequestSchema: z.ZodDefault<z.ZodObject<{
6186
- instrumentId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>>;
6187
- }, z.core.$strip>>;
6188
- type FetchPerpsTickersRequest = z.input<typeof FetchPerpsTickersRequestSchema>;
6701
+ type FetchPerpsTickersRequest = {
6702
+ /** Optional Perps instrument identifier filter. */
6703
+ instrumentId?: number;
6704
+ };
6189
6705
  type FetchPerpsTickersError = PerpsPublicReadError;
6190
6706
  declare const FetchPerpsTickersError: {
6191
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6707
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6192
6708
  };
6193
6709
  /**
6194
6710
  * Fetches current Perps tickers.
@@ -6201,14 +6717,15 @@ declare const FetchPerpsTickersError: {
6201
6717
  */
6202
6718
  declare function fetchPerpsTickers(client: BaseClient, request?: FetchPerpsTickersRequest): Promise<PerpsTicker[]>;
6203
6719
  type PerpsBookDepth = 10 | 100 | 500 | 1000;
6204
- declare const FetchPerpsBookRequestSchema: z.ZodObject<{
6205
- instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>;
6206
- depth: z.ZodDefault<z.ZodType<PerpsBookDepth, unknown, z.core.$ZodTypeInternals<PerpsBookDepth, unknown>>>;
6207
- }, z.core.$strip>;
6208
- type FetchPerpsBookRequest = z.input<typeof FetchPerpsBookRequestSchema>;
6720
+ type FetchPerpsBookRequest = {
6721
+ /** Perps instrument identifier whose order book should be fetched. */
6722
+ instrumentId: number;
6723
+ /** Number of price levels to return on each side. */
6724
+ depth?: PerpsBookDepth;
6725
+ };
6209
6726
  type FetchPerpsBookError = PerpsPublicReadError;
6210
6727
  declare const FetchPerpsBookError: {
6211
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6728
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6212
6729
  };
6213
6730
  /**
6214
6731
  * Fetches a Perps order book.
@@ -6220,33 +6737,24 @@ declare const FetchPerpsBookError: {
6220
6737
  * Thrown on failure.
6221
6738
  */
6222
6739
  declare function fetchPerpsBook(client: BaseClient, request: FetchPerpsBookRequest): Promise<PerpsBook>;
6223
- declare const ListPerpsCandlesRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
6224
- instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>;
6225
- interval: z.ZodEnum<typeof PerpsKlineInterval>;
6226
- start: z.ZodOptional<z.ZodNumber>;
6227
- end: z.ZodOptional<z.ZodNumber>;
6228
- cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
6229
- }, z.core.$strip>, z.ZodTransform<{
6230
- cursor: PaginationCursor | undefined;
6231
- params: PerpsCandlesParams;
6232
- }, {
6233
- instrumentId: _polymarket_bindings_perps.PerpsInstrumentId;
6740
+ type ListPerpsCandlesRequest = {
6741
+ /** Perps instrument identifier whose candles should be listed. */
6742
+ instrumentId: number;
6743
+ /** Candle interval. */
6234
6744
  interval: PerpsKlineInterval;
6235
- start?: number | undefined;
6236
- end?: number | undefined;
6237
- cursor?: PaginationCursor | undefined;
6238
- }>>, z.ZodPipe<z.ZodObject<{
6239
- cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
6240
- }, z.core.$strip>, z.ZodTransform<{
6241
- cursor: PaginationCursor;
6242
- params: undefined;
6243
- }, {
6745
+ /** Inclusive start timestamp in milliseconds. */
6746
+ start?: number;
6747
+ /** Inclusive end timestamp in milliseconds. */
6748
+ end?: number;
6749
+ /** Opaque cursor returned by a previous page. */
6750
+ cursor?: PaginationCursor;
6751
+ } | {
6752
+ /** Opaque cursor returned by a previous page. */
6244
6753
  cursor: PaginationCursor;
6245
- }>>]>;
6246
- type ListPerpsCandlesRequest = z.input<typeof ListPerpsCandlesRequestSchema>;
6754
+ };
6247
6755
  type ListPerpsCandlesError = PerpsPublicReadError;
6248
6756
  declare const ListPerpsCandlesError: {
6249
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6757
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6250
6758
  };
6251
6759
  /**
6252
6760
  * Lists Perps candles for an instrument with SDK-owned pagination.
@@ -6258,31 +6766,22 @@ declare const ListPerpsCandlesError: {
6258
6766
  * Thrown on failure.
6259
6767
  */
6260
6768
  declare function listPerpsCandles(client: BaseClient, request: ListPerpsCandlesRequest): Paginated<PerpsCandle[]>;
6261
- declare const ListPerpsFundingHistoryRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
6262
- instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>;
6263
- start: z.ZodOptional<z.ZodNumber>;
6264
- end: z.ZodOptional<z.ZodNumber>;
6265
- cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
6266
- }, z.core.$strip>, z.ZodTransform<{
6267
- cursor: PaginationCursor | undefined;
6268
- params: PerpsTimeRangeParams;
6269
- }, {
6270
- instrumentId: _polymarket_bindings_perps.PerpsInstrumentId;
6271
- start?: number | undefined;
6272
- end?: number | undefined;
6273
- cursor?: PaginationCursor | undefined;
6274
- }>>, z.ZodPipe<z.ZodObject<{
6275
- cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
6276
- }, z.core.$strip>, z.ZodTransform<{
6277
- cursor: PaginationCursor;
6278
- params: undefined;
6279
- }, {
6769
+ type ListPerpsFundingHistoryRequest = {
6770
+ /** Perps instrument identifier whose funding history should be listed. */
6771
+ instrumentId: number;
6772
+ /** Inclusive start timestamp in milliseconds. */
6773
+ start?: number;
6774
+ /** Inclusive end timestamp in milliseconds. */
6775
+ end?: number;
6776
+ /** Opaque cursor returned by a previous page. */
6777
+ cursor?: PaginationCursor;
6778
+ } | {
6779
+ /** Opaque cursor returned by a previous page. */
6280
6780
  cursor: PaginationCursor;
6281
- }>>]>;
6282
- type ListPerpsFundingHistoryRequest = z.input<typeof ListPerpsFundingHistoryRequestSchema>;
6781
+ };
6283
6782
  type ListPerpsFundingHistoryError = PerpsPublicReadError;
6284
6783
  declare const ListPerpsFundingHistoryError: {
6285
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6784
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6286
6785
  };
6287
6786
  /**
6288
6787
  * Lists Perps funding-rate history for an instrument with SDK-owned pagination.
@@ -6294,31 +6793,22 @@ declare const ListPerpsFundingHistoryError: {
6294
6793
  * Thrown on failure.
6295
6794
  */
6296
6795
  declare function listPerpsFundingHistory(client: BaseClient, request: ListPerpsFundingHistoryRequest): Paginated<PerpsFundingRate[]>;
6297
- declare const ListPerpsTradesRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
6298
- instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>;
6299
- start: z.ZodOptional<z.ZodNumber>;
6300
- end: z.ZodOptional<z.ZodNumber>;
6301
- cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
6302
- }, z.core.$strip>, z.ZodTransform<{
6303
- cursor: PaginationCursor | undefined;
6304
- params: PerpsTimeRangeParams;
6305
- }, {
6306
- instrumentId: _polymarket_bindings_perps.PerpsInstrumentId;
6307
- start?: number | undefined;
6308
- end?: number | undefined;
6309
- cursor?: PaginationCursor | undefined;
6310
- }>>, z.ZodPipe<z.ZodObject<{
6311
- cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
6312
- }, z.core.$strip>, z.ZodTransform<{
6313
- cursor: PaginationCursor;
6314
- params: undefined;
6315
- }, {
6796
+ type ListPerpsTradesRequest = {
6797
+ /** Perps instrument identifier whose recent trades should be listed. */
6798
+ instrumentId: number;
6799
+ /** Inclusive start timestamp in milliseconds. */
6800
+ start?: number;
6801
+ /** Inclusive end timestamp in milliseconds. */
6802
+ end?: number;
6803
+ /** Opaque cursor returned by a previous page. */
6804
+ cursor?: PaginationCursor;
6805
+ } | {
6806
+ /** Opaque cursor returned by a previous page. */
6316
6807
  cursor: PaginationCursor;
6317
- }>>]>;
6318
- type ListPerpsTradesRequest = z.input<typeof ListPerpsTradesRequestSchema>;
6808
+ };
6319
6809
  type ListPerpsTradesError = PerpsPublicReadError;
6320
6810
  declare const ListPerpsTradesError: {
6321
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6811
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6322
6812
  };
6323
6813
  /**
6324
6814
  * Lists recent Perps trades for an instrument with SDK-owned pagination.
@@ -6332,7 +6822,7 @@ declare const ListPerpsTradesError: {
6332
6822
  declare function listPerpsTrades(client: BaseClient, request: ListPerpsTradesRequest): Paginated<PerpsPublicTrade[]>;
6333
6823
  type FetchPerpsFeesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError;
6334
6824
  declare const FetchPerpsFeesError: {
6335
- isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6825
+ isError(error: unknown): error is TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6336
6826
  };
6337
6827
  /**
6338
6828
  * Fetches the Perps fee schedule.
@@ -6344,43 +6834,40 @@ declare const FetchPerpsFeesError: {
6344
6834
  * Thrown on failure.
6345
6835
  */
6346
6836
  declare function fetchPerpsFees(client: BaseClient): Promise<PerpsFeeScheduleEntry[]>;
6347
- declare const CreatePerpsSessionRequestSchema: z.ZodObject<{
6348
- expiresIn: z.ZodDefault<z.ZodNumber>;
6349
- label: z.ZodOptional<z.ZodString>;
6350
- }, z.core.$strict>;
6351
- declare const ResumePerpsSessionRequestSchema: z.ZodObject<{
6352
- credentials: z.ZodObject<{
6353
- proxy: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>;
6354
- privateKey: z.ZodCustom<PrivateKey, PrivateKey>;
6355
- secret: z.ZodString;
6356
- expiresAt: z.ZodNumber;
6357
- }, z.core.$strip>;
6358
- }, z.core.$strict>;
6359
- declare const RevokePerpsCredentialsRequestSchema: z.ZodObject<{
6360
- proxy: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>;
6361
- }, z.core.$strip>;
6362
- type CreatePerpsSessionRequest = z.input<typeof CreatePerpsSessionRequestSchema>;
6363
- type ResumePerpsSessionRequest = z.input<typeof ResumePerpsSessionRequestSchema>;
6837
+ type CreatePerpsSessionRequest = {
6838
+ /** Delegated credential lifetime in milliseconds. */
6839
+ expiresIn?: number;
6840
+ /** Optional label for the delegated credentials. */
6841
+ label?: string;
6842
+ };
6843
+ type ResumePerpsSessionRequest = {
6844
+ /** Existing delegated Perps credentials to validate and resume. */
6845
+ credentials: PerpsCredentials;
6846
+ };
6364
6847
  type OpenPerpsSessionRequest = CreatePerpsSessionRequest | ResumePerpsSessionRequest;
6365
- type RevokePerpsCredentialsRequest = z.input<typeof RevokePerpsCredentialsRequestSchema>;
6848
+ type RevokePerpsCredentialsRequest = {
6849
+ /** Proxy address whose delegated credentials should be revoked. */
6850
+ proxy: string;
6851
+ };
6366
6852
  type PerpsDepositWorkflowRequest = GaslessWorkflowRequest | SendPerpsDepositTransactionRequest;
6367
6853
  type PerpsDepositWorkflow = AsyncGenerator<PerpsDepositWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
6368
- declare const DepositToPerpsRequestSchema: z.ZodObject<{
6369
- amount: z.ZodBigInt;
6370
- metadata: z.ZodOptional<z.ZodString>;
6371
- }, z.core.$strip>;
6372
- declare const WithdrawFromPerpsRequestSchema: z.ZodObject<{
6373
- amount: z.ZodBigInt;
6374
- }, z.core.$strip>;
6375
- type DepositToPerpsRequest = z.input<typeof DepositToPerpsRequestSchema>;
6376
- type WithdrawFromPerpsRequest = z.input<typeof WithdrawFromPerpsRequestSchema>;
6854
+ type DepositToPerpsRequest = {
6855
+ /** Collateral amount in base units. */
6856
+ amount: bigint;
6857
+ /** Optional wallet-visible metadata for gasless deposit workflows. */
6858
+ metadata?: string;
6859
+ };
6860
+ type WithdrawFromPerpsRequest = {
6861
+ /** Collateral amount in base units. */
6862
+ amount: bigint;
6863
+ };
6377
6864
  type OpenPerpsSessionError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
6378
6865
  declare const OpenPerpsSessionError: {
6379
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
6866
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6380
6867
  };
6381
6868
  type RevokePerpsCredentialsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
6382
6869
  declare const RevokePerpsCredentialsError: {
6383
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
6870
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6384
6871
  };
6385
6872
  type PreparePerpsDepositError = UserInputError;
6386
6873
  declare const PreparePerpsDepositError: {
@@ -6388,11 +6875,11 @@ declare const PreparePerpsDepositError: {
6388
6875
  };
6389
6876
  type DepositToPerpsError = RateLimitError | RequestRejectedError | CancelledSigningError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
6390
6877
  declare const DepositToPerpsError: {
6391
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
6878
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6392
6879
  };
6393
6880
  type WithdrawFromPerpsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
6394
6881
  declare const WithdrawFromPerpsError: {
6395
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
6882
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6396
6883
  };
6397
6884
  /**
6398
6885
  * Opens a Perps account session.
@@ -6486,39 +6973,39 @@ type MergePositionsWorkflow = AsyncGenerator<MergePositionsWorkflowRequest, Tran
6486
6973
  type RedeemPositionsWorkflow = AsyncGenerator<RedeemPositionsWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
6487
6974
  type PrepareSplitPositionError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6488
6975
  declare const PrepareSplitPositionError: {
6489
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6976
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6490
6977
  };
6491
6978
  type PrepareSplitMarketPositionError = PrepareSplitPositionError;
6492
6979
  declare const PrepareSplitMarketPositionError: {
6493
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6980
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6494
6981
  };
6495
6982
  type PrepareSplitComboPositionError = PrepareSplitPositionError;
6496
6983
  declare const PrepareSplitComboPositionError: {
6497
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6984
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6498
6985
  };
6499
6986
  type PrepareMergePositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6500
6987
  declare const PrepareMergePositionsError: {
6501
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6988
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6502
6989
  };
6503
6990
  type PrepareMergeMarketPositionError = PrepareMergePositionsError;
6504
6991
  declare const PrepareMergeMarketPositionError: {
6505
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6992
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6506
6993
  };
6507
6994
  type PrepareMergeComboPositionError = PrepareMergePositionsError;
6508
6995
  declare const PrepareMergeComboPositionError: {
6509
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6996
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6510
6997
  };
6511
6998
  type PrepareRedeemPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6512
6999
  declare const PrepareRedeemPositionsError: {
6513
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7000
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6514
7001
  };
6515
7002
  type PrepareRedeemMarketPositionsError = PrepareRedeemPositionsError;
6516
7003
  declare const PrepareRedeemMarketPositionsError: {
6517
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7004
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6518
7005
  };
6519
7006
  type PrepareRedeemComboPositionError = PrepareRedeemPositionsError;
6520
7007
  declare const PrepareRedeemComboPositionError: {
6521
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7008
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6522
7009
  };
6523
7010
  /**
6524
7011
  * Starts a split workflow for a market condition.
@@ -6566,15 +7053,15 @@ declare function prepareSplitComboPosition(client: BaseSecureClient, request: Pr
6566
7053
  declare function prepareSplitPosition(client: BaseSecureClient, request: PrepareSplitPositionRequest): Promise<SplitPositionWorkflow>;
6567
7054
  type SplitPositionError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
6568
7055
  declare const SplitPositionError: {
6569
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
7056
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
6570
7057
  };
6571
7058
  type SplitMarketPositionError = SplitPositionError;
6572
7059
  declare const SplitMarketPositionError: {
6573
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
7060
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
6574
7061
  };
6575
7062
  type SplitComboPositionError = SplitPositionError;
6576
7063
  declare const SplitComboPositionError: {
6577
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
7064
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
6578
7065
  };
6579
7066
  /**
6580
7067
  * Splits collateral into market positions.
@@ -6678,15 +7165,15 @@ declare function prepareMergeComboPosition(client: BaseSecureClient, request: Pr
6678
7165
  declare function prepareMergePositions(client: BaseSecureClient, request: PrepareMergePositionsRequest): Promise<MergePositionsWorkflow>;
6679
7166
  type MergePositionsError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
6680
7167
  declare const MergePositionsError: {
6681
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
7168
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
6682
7169
  };
6683
7170
  type MergeMarketPositionError = MergePositionsError;
6684
7171
  declare const MergeMarketPositionError: {
6685
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
7172
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
6686
7173
  };
6687
7174
  type MergeComboPositionError = MergePositionsError;
6688
7175
  declare const MergeComboPositionError: {
6689
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
7176
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
6690
7177
  };
6691
7178
  /**
6692
7179
  * Merges complementary market positions back into collateral.
@@ -6812,7 +7299,7 @@ declare function prepareRedeemComboPosition(client: BaseSecureClient, request: P
6812
7299
  declare function prepareRedeemPositions(client: BaseSecureClient, request: PrepareRedeemPositionsRequest): Promise<RedeemPositionsWorkflow>;
6813
7300
  type RedeemPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
6814
7301
  declare const RedeemPositionsError: {
6815
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
7302
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6816
7303
  };
6817
7304
  /**
6818
7305
  * Redeems resolved market or combo positions.
@@ -6831,7 +7318,7 @@ declare const FetchPublicProfileRequestSchema: z.ZodObject<{
6831
7318
  type FetchPublicProfileRequest = z.input<typeof FetchPublicProfileRequestSchema>;
6832
7319
  type FetchPublicProfileError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6833
7320
  declare const FetchPublicProfileError: {
6834
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7321
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6835
7322
  };
6836
7323
  /**
6837
7324
  * Fetches a public profile by wallet address.
@@ -6891,7 +7378,7 @@ type SearchResults = {
6891
7378
  };
6892
7379
  type SearchError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6893
7380
  declare const SearchError: {
6894
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7381
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6895
7382
  };
6896
7383
  /**
6897
7384
  * Runs a public full-text search.
@@ -6947,7 +7434,7 @@ type ListSeriesRequest = z.input<typeof ListSeriesRequestSchema>;
6947
7434
  type FetchSeriesRequest = z.input<typeof FetchSeriesRequestSchema>;
6948
7435
  type ListSeriesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6949
7436
  declare const ListSeriesError: {
6950
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7437
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6951
7438
  };
6952
7439
  /**
6953
7440
  * Lists series.
@@ -6990,7 +7477,7 @@ declare const ListSeriesError: {
6990
7477
  declare function listSeries(client: BaseClient, request?: ListSeriesRequest): Paginated<Series[]>;
6991
7478
  type FetchSeriesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6992
7479
  declare const FetchSeriesError: {
6993
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7480
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6994
7481
  };
6995
7482
  /**
6996
7483
  * Fetches a series.
@@ -7192,7 +7679,7 @@ type FetchRelatedTagsRequest = z.input<typeof RelatedTagsByIdRequestSchema> | z.
7192
7679
  type FetchRelatedTagResourcesRequest = z.input<typeof RelatedTagResourcesByIdRequestSchema> | z.input<typeof RelatedTagResourcesBySlugRequestSchema>;
7193
7680
  type ListTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7194
7681
  declare const ListTagsError: {
7195
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7682
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7196
7683
  };
7197
7684
  /**
7198
7685
  * Lists tags.
@@ -7235,7 +7722,7 @@ declare const ListTagsError: {
7235
7722
  declare function listTags(client: BaseClient, request?: ListTagsRequest): Paginated<Tag[]>;
7236
7723
  type FetchTagError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7237
7724
  declare const FetchTagError: {
7238
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7725
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7239
7726
  };
7240
7727
  /**
7241
7728
  * Fetches a tag by id or slug.
@@ -7259,7 +7746,7 @@ declare const FetchTagError: {
7259
7746
  declare function fetchTag(client: BaseClient, request: FetchTagRequest): Promise<Tag>;
7260
7747
  type FetchRelatedTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7261
7748
  declare const FetchRelatedTagsError: {
7262
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7749
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7263
7750
  };
7264
7751
  /**
7265
7752
  * Fetches related tag relationships by id or slug.
@@ -7284,7 +7771,7 @@ declare const FetchRelatedTagsError: {
7284
7771
  declare function fetchRelatedTags(client: BaseClient, request: FetchRelatedTagsRequest): Promise<RelatedTag[]>;
7285
7772
  type FetchRelatedTagResourcesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7286
7773
  declare const FetchRelatedTagResourcesError: {
7287
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7774
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7288
7775
  };
7289
7776
  /**
7290
7777
  * Fetches resources linked from related tag relationships by id or slug.
@@ -7321,7 +7808,7 @@ declare const ListTeamsRequestSchema: z.ZodObject<{
7321
7808
  type ListTeamsRequest = z.input<typeof ListTeamsRequestSchema>;
7322
7809
  type ListTeamsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7323
7810
  declare const ListTeamsError: {
7324
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7811
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7325
7812
  };
7326
7813
  /**
7327
7814
  * Lists teams.
@@ -7397,7 +7884,7 @@ declare const PrepareErc20TransferError: {
7397
7884
  declare function prepareErc20Transfer(client: BaseSecureClient, request: PrepareErc20TransferRequest): Promise<Erc20TransferWorkflow>;
7398
7885
  type TransferErc20Error = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
7399
7886
  declare const TransferErc20Error: {
7400
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
7887
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7401
7888
  };
7402
7889
  /**
7403
7890
  * Transfers ERC-20 tokens from the authenticated account.
@@ -7454,7 +7941,7 @@ type TransactionOutcome = {
7454
7941
  };
7455
7942
  type WaitForTransactionError = WaitForGaslessTransactionError;
7456
7943
  declare const WaitForTransactionError: {
7457
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError;
7944
+ isError(error: unknown): error is TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
7458
7945
  };
7459
7946
  interface TransactionHandle {
7460
7947
  /**
@@ -7481,4 +7968,4 @@ type Signer = {
7481
7968
  sendTransaction(request: SignerTransactionRequest): Promise<TransactionHandle>;
7482
7969
  };
7483
7970
 
7484
- export { FetchPublicProfileError as $, type ApiKeyAuthorization as A, type BaseClient as B, CancelAllError as C, type DataActions as D, type EnvironmentConfig as E, FetchClosedOnlyModeError as F, FetchEventLiveVolumeError as G, FetchEventTagsError as H, FetchLastTradePriceError as I, FetchLastTradePricesError as J, FetchMarketError as K, FetchMarketTagsError as L, FetchMidpointError as M, FetchMidpointsError as N, FetchNotificationsError as O, FetchOrderBookError as P, FetchOrderBooksError as Q, FetchOrderError as R, type Signer as S, type TypedDataPayload as T, UserInputError as U, FetchOrderScoringError as V, FetchOrdersScoringError as W, FetchPortfolioValueError as X, FetchPriceError as Y, FetchPriceHistoryError as Z, FetchPricesError as _, type TypedData as a, RfqConfirmationError as a$, FetchRelatedTagResourcesError as a0, FetchRelatedTagsError as a1, FetchRewardPercentagesError as a2, FetchSeriesError as a3, FetchSpreadError as a4, FetchSpreadsError as a5, FetchTagError as a6, FetchTotalEarningsForUserForDayError as a7, FetchTradedMarketCountError as a8, InsufficientLiquidityError as a9, MergePositionsError as aA, OpenRfqSessionError as aB, type Page as aC, PageSizeSchema as aD, type Paginated as aE, type PerpsActions as aF, type PerpsEndpoints as aG, PerpsSession as aH, PostOrderError as aI, PostOrdersError as aJ, type PublicAccountActions as aK, type PublicActions as aL, type PublicClient as aM, type PublicClientOptions as aN, type PublicPerpsActions as aO, type PublicRewardsActions as aP, type PublicSubscriptionsActions as aQ, RateLimitError as aR, RedeemPositionsError as aS, RequestRejectedError as aT, type RequestRejectedErrorOptions as aU, type RestEndpoint as aV, type RfqCancelQuoteAck as aW, RfqCancelQuoteError as aX, RfqCancelQuoteRejectedError as aY, type RfqCancelQuoteRejectedErrorOptions as aZ, type RfqConfirmationAck as a_, ListAccountTradesError as aa, ListActivityError as ab, ListBuilderLeaderboardError as ac, ListBuilderTradesError as ad, ListBuilderVolumeError as ae, ListClosedPositionsError as af, ListComboMarketsError as ag, ListComboPositionsError as ah, ListCommentsByUserAddressError as ai, ListCommentsError as aj, ListCurrentRewardsError as ak, ListEventsError as al, ListMarketHoldersError as am, ListMarketPositionsError as an, ListMarketRewardsError as ao, ListMarketsError as ap, ListOpenInterestError as aq, ListOpenOrdersError as ar, ListPositionsError as as, ListSeriesError as at, ListTagsError as au, ListTeamsError as av, ListTraderLeaderboardError as aw, ListTradesError as ax, ListUserEarningsAndMarketsConfigError as ay, ListUserEarningsForDayError as az, type TransactionCall as b, subscriptionsActions as b$, RfqConfirmationRejectedError as b0, type RfqConfirmationRequestEvent as b1, type RfqEndpoints as b2, type RfqEvent as b3, RfqQuoteError as b4, type RfqQuoteReference as b5, RfqQuoteRejectedError as b6, type RfqQuoteRejectedErrorOptions as b7, type RfqQuoteRequestEvent as b8, type RfqQuoteResponse as b9, SplitPositionError as bA, TimeoutError as bB, TransactionFailedError as bC, type TransactionHandle as bD, type TransactionOutcome as bE, TransferErc20Error as bF, TransportError as bG, type TypedDataDomain as bH, type TypedDataField as bI, UnexpectedResponseError as bJ, UpdatePerpsLeverageError as bK, WaitForTransactionError as bL, type WalletDerivationConfig as bM, type WebSocketEndpoint as bN, accountActions as bO, allActions as bP, analyticsActions as bQ, createPublicClient as bR, createSecureClient as bS, dataActions as bT, discoveryActions as bU, forkEnvironmentConfig as bV, makeErrorGuard as bW, perpsActions as bX, production as bY, rewardsActions as bZ, rfqActions as b_, type RfqQuoteSource as ba, type RfqSession as bb, type RfqTradeEvent as bc, SearchError as bd, SearchSort as be, type SecureAccountActions as bf, type SecureActions as bg, type SecureClient as bh, type SecureClientOptions as bi, type SecureDownloadAccountingSnapshotRequest as bj, type SecureFetchPortfolioValueRequest as bk, type SecureFetchTradedMarketCountRequest as bl, type SecureListActivityRequest as bm, type SecureListClosedPositionsRequest as bn, type SecureListComboPositionsRequest as bo, type SecureListPositionsRequest as bp, type SecurePerpsActions as bq, type SecureRewardsActions as br, type SecureRfqActions as bs, type SecureSubscriptionsActions as bt, type SecureTradingActions as bu, type SecureWalletActions as bv, SetupGaslessWalletError as bw, SetupTradingApprovalsError as bx, type SignerTransactionRequest as by, SigningError as bz, type AccountIdentity as c, type FetchPerpsOpenOrdersRequest as c$, tradingActions as c0, walletActions as c1, type CancelMarketOrdersRequest as c2, type CancelOrderRequest as c3, type CancelOrdersRequest as c4, type CancelPerpsOrderRequest as c5, type CancelPerpsOrdersRequest as c6, type CommentsEventType as c7, type CommentsSubscription as c8, type CreatePerpsSessionRequest as c9, type FetchEventLiveVolumeRequest as cA, type FetchEventRequest as cB, type FetchEventTagsRequest as cC, FetchExecuteParamsError as cD, type FetchExecuteParamsRequest as cE, type FetchGaslessTransactionRequest as cF, type FetchLastTradePriceRequest as cG, type FetchLastTradePricesRequest as cH, FetchMarketInfoError as cI, type FetchMarketInfoRequest as cJ, type FetchMarketRequest as cK, type FetchMarketTagsRequest as cL, type FetchMidpointRequest as cM, type FetchMidpointsRequest as cN, FetchNegRiskError as cO, type FetchNegRiskRequest as cP, type FetchOrderBookRequest as cQ, type FetchOrderBooksRequest as cR, type FetchOrderRequest as cS, type FetchOrderScoringRequest as cT, type FetchOrdersScoringRequest as cU, type FetchPerpsAccountConfigRequest as cV, FetchPerpsBookError as cW, type FetchPerpsBookRequest as cX, FetchPerpsFeesError as cY, FetchPerpsInstrumentsError as cZ, type FetchPerpsInstrumentsRequest as c_, type CryptoPricesEventType as ca, type CryptoPricesSubscription as cb, DeployDepositWalletError as cc, DepositToPerpsError as cd, type DepositToPerpsRequest as ce, type DeprecatedTransactionHandle as cf, type DownloadAccountingSnapshotRequest as cg, type DropNotificationsRequest as ch, type EquityPricesEventType as ci, type EquityPricesSubscription as cj, type Erc1155ApprovalForAllWorkflow as ck, type Erc1155ApprovalForAllWorkflowRequest as cl, type Erc20ApprovalWorkflow as cm, type Erc20ApprovalWorkflowRequest as cn, type Erc20TransferWorkflow as co, type Erc20TransferWorkflowRequest as cp, type EstimateMarketBuyPriceRequest as cq, type EstimateMarketPriceRequest as cr, type EstimateMarketSellPriceRequest as cs, type EventForSubscriptionSpec as ct, type EventForSubscriptionSpecs as cu, FetchBalanceAllowanceError as cv, type FetchBalanceAllowanceRequest as cw, FetchBuilderFeeRatesError as cx, type FetchBuilderFeeRatesRequest as cy, type FetchCommentsByIdRequest as cz, type AnalyticsActions as d, type ListUserEarningsForDayRequest as d$, type FetchPerpsOrdersRequest as d0, FetchPerpsTickerError as d1, type FetchPerpsTickerRequest as d2, FetchPerpsTickersError as d3, type FetchPerpsTickersRequest as d4, type FetchPortfolioValueRequest as d5, type FetchPriceHistoryRequest as d6, type FetchPriceRequest as d7, type FetchPricesRequest as d8, type FetchPublicProfileRequest as d9, type ListCurrentRewardsRequest as dA, type ListEventsRequest as dB, type ListMarketHoldersRequest as dC, type ListMarketPositionsRequest as dD, type ListMarketRewardsRequest as dE, type ListMarketsRequest as dF, type ListOpenInterestRequest as dG, type ListOpenOrdersRequest as dH, ListPerpsCandlesError as dI, type ListPerpsCandlesRequest as dJ, type ListPerpsDepositsRequest as dK, type ListPerpsEquityHistoryRequest as dL, type ListPerpsFillsRequest as dM, ListPerpsFundingHistoryError as dN, type ListPerpsFundingHistoryRequest as dO, type ListPerpsFundingPaymentsRequest as dP, type ListPerpsPnlHistoryRequest as dQ, ListPerpsTradesError as dR, type ListPerpsTradesRequest as dS, type ListPerpsWithdrawalsRequest as dT, type ListPositionsRequest as dU, type ListSeriesRequest as dV, type ListTagsRequest as dW, type ListTeamsRequest as dX, type ListTraderLeaderboardRequest as dY, type ListTradesRequest as dZ, type ListUserEarningsAndMarketsConfigRequest as d_, type FetchRelatedTagResourcesRequest as da, type FetchRelatedTagsRequest as db, type FetchSeriesRequest as dc, type FetchSpreadRequest as dd, type FetchSpreadsRequest as de, type FetchTagRequest as df, FetchTickSizeError as dg, type FetchTickSizeRequest as dh, type FetchTotalEarningsForUserForDayRequest as di, type FetchTradedMarketCountRequest as dj, GaslessTransactionMetadataSchema as dk, type GaslessWorkflow as dl, type GaslessWorkflowRequest as dm, IsWalletDeployedError as dn, type IsWalletDeployedRequest as dp, type ListAccountTradesRequest as dq, type ListActivityRequest as dr, type ListBuilderLeaderboardRequest as ds, type ListBuilderTradesRequest as dt, type ListBuilderVolumeRequest as du, type ListClosedPositionsRequest as dv, type ListComboMarketsRequest as dw, type ListComboPositionsRequest as dx, type ListCommentsByUserAddressRequest as dy, type ListCommentsRequest as dz, ApproveErc1155ForAllError as e, PrepareRedeemMarketPositionsError as e$, type MarketEventType as e0, type MarketSubscription as e1, MergeComboPositionError as e2, MergeMarketPositionError as e3, type MergePositionsWorkflow as e4, type MergePositionsWorkflowRequest as e5, OpenPerpsSessionError as e6, type OpenPerpsSessionRequest as e7, type OrderDraft as e8, type OrderPostingWorkflow as e9, type PlacePerpsPositionTpSlRequest as eA, type PlacePerpsPositionTpSlResult as eB, type PostOrdersRequest as eC, type PostPerpsOrdersRequest as eD, PrepareErc1155ApprovalForAllError as eE, type PrepareErc1155ApprovalForAllRequest as eF, PrepareErc20ApprovalError as eG, type PrepareErc20ApprovalRequest as eH, PrepareErc20TransferError as eI, type PrepareErc20TransferRequest as eJ, PrepareGaslessTransactionError as eK, type PrepareGaslessTransactionRequest as eL, type PrepareLimitOrderRequest as eM, type PrepareMarketBuyOrderRequest as eN, type PrepareMarketOrderRequest as eO, type PrepareMarketSellOrderRequest as eP, PrepareMergeComboPositionError as eQ, type PrepareMergeComboPositionRequest as eR, PrepareMergeMarketPositionError as eS, type PrepareMergeMarketPositionRequest as eT, PrepareMergePositionsError as eU, type PrepareMergePositionsRequest as eV, PreparePerpsDepositError as eW, PrepareRedeemComboPositionError as eX, type PrepareRedeemComboPositionRequest as eY, type PrepareRedeemMarketPositionsByConditionIdRequest as eZ, type PrepareRedeemMarketPositionsByMarketIdRequest as e_, type OrderWorkflow as ea, type OrderWorkflowRequest as eb, type PerpsBboSubscription as ec, type PerpsBookDepth as ed, type PerpsBookSubscription as ee, type PerpsCandlesSubscription as ef, type PerpsDepositWorkflow as eg, type PerpsDepositWorkflowRequest as eh, type PerpsMarketDataEventType as ei, type PerpsMarketDataSubscription as ej, type PerpsOrderRequest as ek, type PerpsPlaceFokOrderRequest as el, type PerpsPlaceGtcOrderRequest as em, type PerpsPlaceIocOrderRequest as en, type PerpsPlacedTpSlOrder as eo, type PerpsPlacedTpSlOrders as ep, type PerpsPositionTpSlTrigger as eq, type PerpsStatisticsSubscription as er, type PerpsStreamingCandleInterval as es, type PerpsTickersSubscription as et, type PerpsTpSlTrigger as eu, type PerpsTradesSubscription as ev, type PlacePerpsOrderRequest as ew, type PlacePerpsOrderResult as ex, type PlacePerpsOrderWithTpSlRequest as ey, type PlacePerpsOrderWithTpSlResult as ez, ApproveErc20Error as f, fetchEventLiveVolume as f$, type PrepareRedeemMarketPositionsRequest as f0, PrepareRedeemPositionsError as f1, type PrepareRedeemPositionsRequest as f2, PrepareSplitComboPositionError as f3, type PrepareSplitComboPositionRequest as f4, PrepareSplitMarketPositionError as f5, type PrepareSplitMarketPositionRequest as f6, PrepareSplitPositionError as f7, type PrepareSplitPositionRequest as f8, PrepareTradingApprovalsError as f9, type TradingApprovalsWorkflow as fA, type TradingApprovalsWorkflowRequest as fB, UpdateBalanceAllowanceError as fC, type UpdateBalanceAllowanceRequest as fD, type UpdatePerpsLeverageRequest as fE, type UserEventType as fF, type UserSubscription as fG, WaitForGaslessTransactionError as fH, WithdrawFromPerpsError as fI, type WithdrawFromPerpsRequest as fJ, approveErc1155ForAll as fK, approveErc20 as fL, cancelAll as fM, cancelMarketOrders as fN, cancelOrder as fO, cancelOrders as fP, deployDepositWallet as fQ, depositToPerps as fR, downloadAccountingSnapshot as fS, dropNotifications as fT, estimateMarketPrice as fU, fetchBalanceAllowance as fV, fetchBuilderFeeRates as fW, fetchBuilderVolume as fX, fetchClosedOnlyMode as fY, fetchCommentsById as fZ, fetchEvent as f_, type PublicRealtimeEvent as fa, type PublicRealtimeTopic as fb, type PublicSubscriptionSpec as fc, type RedeemPositionsWorkflow as fd, type RedeemPositionsWorkflowRequest as fe, ResolveConditionByTokenError as ff, type ResolveConditionByTokenRequest as fg, type ResumePerpsSessionRequest as fh, RevokePerpsCredentialsError as fi, type RevokePerpsCredentialsRequest as fj, type RfqConfirmationRejectedErrorOptions as fk, type RfqExecutionUpdateEvent as fl, type SearchRequest as fm, type SearchResults as fn, type SecureRealtimeEvent as fo, type SecureRealtimeTopic as fp, type SecureSubscriptionSpec as fq, type SignedOrder as fr, SplitComboPositionError as fs, SplitMarketPositionError as ft, type SplitPositionWorkflow as fu, type SplitPositionWorkflowRequest as fv, type SportsEventType as fw, type SportsSubscription as fx, type SubscribeError as fy, type SubscriptionHandle as fz, BasePublicClient as g, listTrades as g$, fetchEventTags as g0, fetchExecuteParams as g1, fetchLastTradePrice as g2, fetchLastTradePrices as g3, fetchMarket as g4, fetchMarketInfo as g5, fetchMarketTags as g6, fetchMidpoint as g7, fetchMidpoints as g8, fetchNegRisk as g9, fetchTransaction as gA, isWalletDeployed as gB, listAccountTrades as gC, listActivity as gD, listBuilderLeaderboard as gE, listBuilderTrades as gF, listClosedPositions as gG, listComboMarkets as gH, listComboPositions as gI, listComments as gJ, listCommentsByUserAddress as gK, listCurrentRewards as gL, listEvents as gM, listMarketHolders as gN, listMarketPositions as gO, listMarketRewards as gP, listMarkets as gQ, listOpenInterest as gR, listOpenOrders as gS, listPerpsCandles as gT, listPerpsFundingHistory as gU, listPerpsTrades as gV, listPositions as gW, listSeries as gX, listTags as gY, listTeams as gZ, listTraderLeaderboard as g_, fetchNotifications as ga, fetchOrder as gb, fetchOrderBook as gc, fetchOrderBooks as gd, fetchOrderScoring as ge, fetchOrdersScoring as gf, fetchPerpsBook as gg, fetchPerpsFees as gh, fetchPerpsInstruments as gi, fetchPerpsTicker as gj, fetchPerpsTickers as gk, fetchPortfolioValue as gl, fetchPrice as gm, fetchPriceHistory as gn, fetchPrices as go, fetchPublicProfile as gp, fetchRelatedTagResources as gq, fetchRelatedTags as gr, fetchRewardPercentages as gs, fetchSeries as gt, fetchSpread as gu, fetchSpreads as gv, fetchTag as gw, fetchTickSize as gx, fetchTotalEarningsForUserForDay as gy, fetchTradedMarketCount as gz, BaseSecureClient as h, listUserEarningsAndMarketsConfig as h0, listUserEarningsForDay as h1, mergeComboPosition as h2, mergeMarketPosition as h3, mergePositions as h4, openPerpsSession as h5, openRfqSession as h6, postOrder as h7, postOrders as h8, prepareErc1155ApprovalForAll as h9, prepareErc20Approval as ha, prepareErc20Transfer as hb, prepareGaslessTransaction as hc, prepareMergeComboPosition as hd, prepareMergeMarketPosition as he, prepareMergePositions as hf, preparePerpsDeposit as hg, prepareRedeemComboPosition as hh, prepareRedeemMarketPositions as hi, prepareRedeemPositions as hj, prepareSplitComboPosition as hk, prepareSplitMarketPosition as hl, prepareSplitPosition as hm, prepareTradingApprovals as hn, redeemPositions as ho, resolveConditionByToken as hp, revokePerpsCredentials as hq, search as hr, setupTradingApprovals as hs, splitComboPosition as ht, splitMarketPosition as hu, splitPosition as hv, subscribe as hw, transferErc20 as hx, updateBalanceAllowance as hy, withdrawFromPerps as hz, type BeginAuthenticationRequest as i, CancelMarketOrdersError as j, CancelOrderError as k, CancelOrdersError as l, CancelledSigningError as m, type Client as n, type ClientActions as o, type ClientDecorator as p, type ClobEndpoints as q, CreateSecureClientError as r, type DiscoveryActions as s, DownloadAccountingSnapshotError as t, DropNotificationsError as u, type EnvironmentConfigFork as v, type EnvironmentContracts as w, EstimateMarketPriceError as x, FetchCommentsByIdError as y, FetchEventError as z };
7971
+ export { FetchOrderError as $, type ApiKeyAuthorization as A, type BaseClient as B, CancelAllError as C, type DataActions as D, DownloadAccountingSnapshotError as E, DropNotificationsError as F, type EnvironmentConfig as G, type EnvironmentConfigFork as H, type EnvironmentContracts as I, EstimateMarketPriceError as J, FetchClosedOnlyModeError as K, FetchCommentsByIdError as L, FetchEventError as M, FetchEventLiveVolumeError as N, FetchEventTagsError as O, FetchLastTradePriceError as P, FetchLastTradePricesError as Q, FetchMarketError as R, type Signer as S, type TypedDataPayload as T, UserInputError as U, FetchMarketTagsError as V, FetchMidpointError as W, FetchMidpointsError as X, FetchNotificationsError as Y, FetchOrderBookError as Z, FetchOrderBooksError as _, type TypedData as a, ListTeamsError as a$, FetchOrderScoringError as a0, FetchOrdersScoringError as a1, type FetchPerpsAccountConfigRequest as a2, FetchPerpsBookError as a3, type FetchPerpsBookRequest as a4, FetchPerpsFeesError as a5, FetchPerpsInstrumentsError as a6, type FetchPerpsInstrumentsRequest as a7, type FetchPerpsOpenOrdersRequest as a8, type FetchPerpsOrdersRequest as a9, ListComboMarketsError as aA, ListComboPositionsError as aB, ListCommentsByUserAddressError as aC, ListCommentsError as aD, ListCurrentRewardsError as aE, ListEventsError as aF, ListMarketHoldersError as aG, ListMarketPositionsError as aH, ListMarketRewardsError as aI, ListMarketsError as aJ, ListOpenInterestError as aK, ListOpenOrdersError as aL, ListPerpsCandlesError as aM, type ListPerpsCandlesRequest as aN, type ListPerpsDepositsRequest as aO, type ListPerpsEquityHistoryRequest as aP, type ListPerpsFillsRequest as aQ, ListPerpsFundingHistoryError as aR, type ListPerpsFundingHistoryRequest as aS, type ListPerpsFundingPaymentsRequest as aT, type ListPerpsPnlHistoryRequest as aU, ListPerpsTradesError as aV, type ListPerpsTradesRequest as aW, type ListPerpsWithdrawalsRequest as aX, ListPositionsError as aY, ListSeriesError as aZ, ListTagsError as a_, FetchPerpsTickerError as aa, type FetchPerpsTickerRequest as ab, FetchPerpsTickersError as ac, type FetchPerpsTickersRequest as ad, FetchPortfolioValueError as ae, FetchPriceError as af, FetchPriceHistoryError as ag, FetchPricesError as ah, FetchPublicProfileError as ai, FetchRelatedTagResourcesError as aj, FetchRelatedTagsError as ak, FetchRewardPercentagesError as al, FetchSeriesError as am, FetchSpreadError as an, FetchSpreadsError as ao, FetchTagError as ap, FetchTotalEarningsForUserForDayError as aq, FetchTradedMarketCountError as ar, InsufficientLiquidityError as as, ListAccountTradesError as at, ListActivityError as au, ListBuilderLeaderboardError as av, ListBuilderTradesError as aw, ListBuilderVolumeError as ax, ListClosedPositionsError as ay, ListComboActivityError as az, type TransactionCall as b, type RfqQuoteRejectedErrorOptions as b$, ListTraderLeaderboardError as b0, ListTradesError as b1, ListUserEarningsAndMarketsConfigError as b2, ListUserEarningsForDayError as b3, MergePositionsError as b4, OpenPerpsSessionError as b5, type OpenPerpsSessionRequest as b6, OpenRfqSessionError as b7, type Page as b8, PageSizeSchema as b9, type PublicActions as bA, type PublicClient as bB, type PublicClientOptions as bC, type PublicPerpsActions as bD, type PublicRewardsActions as bE, type PublicSubscriptionsActions as bF, RateLimitError as bG, RedeemPositionsError as bH, RequestRejectedError as bI, type RequestRejectedErrorOptions as bJ, type RestEndpoint as bK, type ResumePerpsSessionRequest as bL, RevokePerpsCredentialsError as bM, type RevokePerpsCredentialsRequest as bN, type RfqCancelQuoteAck as bO, RfqCancelQuoteError as bP, RfqCancelQuoteRejectedError as bQ, type RfqCancelQuoteRejectedErrorOptions as bR, type RfqConfirmationAck as bS, RfqConfirmationError as bT, RfqConfirmationRejectedError as bU, type RfqConfirmationRequestEvent as bV, type RfqEndpoints as bW, type RfqEvent as bX, RfqQuoteError as bY, type RfqQuoteReference as bZ, RfqQuoteRejectedError as b_, type Paginated as ba, type PerpsActions as bb, type PerpsBookDepth as bc, type PerpsEndpoints as bd, type PerpsOrderRequest as be, type PerpsPlaceFokOrderRequest as bf, type PerpsPlaceGtcOrderRequest as bg, type PerpsPlaceIocOrderRequest as bh, type PerpsPlacedTpSlOrder as bi, type PerpsPlacedTpSlOrders as bj, type PerpsPositionTpSlTrigger as bk, PerpsSession as bl, type PerpsSessionAccountError as bm, type PerpsSessionLifecycleError as bn, type PerpsSessionTradingError as bo, type PerpsTpSlTrigger as bp, type PlacePerpsOrderRequest as bq, type PlacePerpsOrderResult as br, type PlacePerpsOrderWithTpSlRequest as bs, type PlacePerpsOrderWithTpSlResult as bt, type PlacePerpsPositionTpSlRequest as bu, type PlacePerpsPositionTpSlResult as bv, PostOrderError as bw, PostOrdersError as bx, type PostPerpsOrdersRequest as by, type PublicAccountActions as bz, type AccountIdentity as c, type CancelOrderRequest as c$, type RfqQuoteRequestEvent as c0, type RfqQuoteResponse as c1, type RfqQuoteSource as c2, type RfqSession as c3, type RfqTradeEvent as c4, SearchError as c5, SearchSort as c6, type SecureAccountActions as c7, type SecureActions as c8, type SecureClient as c9, type TypedDataDomain as cA, type TypedDataField as cB, UnexpectedResponseError as cC, UpdatePerpsLeverageError as cD, type UpdatePerpsLeverageRequest as cE, WaitForTransactionError as cF, type WalletDerivationConfig as cG, type WebSocketEndpoint as cH, WithdrawFromPerpsError as cI, type WithdrawFromPerpsRequest as cJ, accountActions as cK, allActions as cL, analyticsActions as cM, createPublicClient as cN, createSecureClient as cO, dataActions as cP, discoveryActions as cQ, forkEnvironmentConfig as cR, makeErrorGuard as cS, perpsActions as cT, production as cU, rewardsActions as cV, rfqActions as cW, subscriptionsActions as cX, tradingActions as cY, walletActions as cZ, type CancelMarketOrdersRequest as c_, type SecureClientOptions as ca, type SecureDownloadAccountingSnapshotRequest as cb, type SecureFetchPortfolioValueRequest as cc, type SecureFetchTradedMarketCountRequest as cd, type SecureListActivityRequest as ce, type SecureListClosedPositionsRequest as cf, type SecureListComboActivityRequest as cg, type SecureListComboPositionsRequest as ch, type SecureListPositionsRequest as ci, type SecurePerpsActions as cj, type SecureRewardsActions as ck, type SecureRfqActions as cl, type SecureSubscriptionsActions as cm, type SecureTradingActions as cn, type SecureWalletActions as co, SetupGaslessWalletError as cp, SetupTradingApprovalsError as cq, type SignerTransactionRequest as cr, SigningError as cs, SplitPositionError as ct, TimeoutError as cu, TransactionFailedError as cv, type TransactionHandle as cw, type TransactionOutcome as cx, TransferErc20Error as cy, TransportError as cz, type AnalyticsActions as d, type FetchTradedMarketCountRequest as d$, type CancelOrdersRequest as d0, type CommentsEventType as d1, type CommentsSubscription as d2, type CryptoPricesEventType as d3, type CryptoPricesSubscription as d4, DeployDepositWalletError as d5, type DeprecatedTransactionHandle as d6, type DownloadAccountingSnapshotRequest as d7, type DropNotificationsRequest as d8, type EquityPricesEventType as d9, FetchMarketInfoError as dA, type FetchMarketInfoRequest as dB, type FetchMarketRequest as dC, type FetchMarketTagsRequest as dD, type FetchMidpointRequest as dE, type FetchMidpointsRequest as dF, FetchNegRiskError as dG, type FetchNegRiskRequest as dH, type FetchOrderBookRequest as dI, type FetchOrderBooksRequest as dJ, type FetchOrderRequest as dK, type FetchOrderScoringRequest as dL, type FetchOrdersScoringRequest as dM, type FetchPortfolioValueRequest as dN, type FetchPriceHistoryRequest as dO, type FetchPriceRequest as dP, type FetchPricesRequest as dQ, type FetchPublicProfileRequest as dR, type FetchRelatedTagResourcesRequest as dS, type FetchRelatedTagsRequest as dT, type FetchSeriesRequest as dU, type FetchSpreadRequest as dV, type FetchSpreadsRequest as dW, type FetchTagRequest as dX, FetchTickSizeError as dY, type FetchTickSizeRequest as dZ, type FetchTotalEarningsForUserForDayRequest as d_, type EquityPricesSubscription as da, type Erc1155ApprovalForAllWorkflow as db, type Erc1155ApprovalForAllWorkflowRequest as dc, type Erc20ApprovalWorkflow as dd, type Erc20ApprovalWorkflowRequest as de, type Erc20TransferWorkflow as df, type Erc20TransferWorkflowRequest as dg, type EstimateMarketBuyPriceRequest as dh, type EstimateMarketPriceRequest as di, type EstimateMarketSellPriceRequest as dj, type EventForSubscriptionSpec as dk, type EventForSubscriptionSpecs as dl, FetchBalanceAllowanceError as dm, type FetchBalanceAllowanceRequest as dn, FetchBuilderFeeRatesError as dp, type FetchBuilderFeeRatesRequest as dq, type FetchCommentsByIdRequest as dr, type FetchEventLiveVolumeRequest as ds, type FetchEventRequest as dt, type FetchEventTagsRequest as du, FetchExecuteParamsError as dv, type FetchExecuteParamsRequest as dw, type FetchGaslessTransactionRequest as dx, type FetchLastTradePriceRequest as dy, type FetchLastTradePricesRequest as dz, ApproveErc1155ForAllError as e, type PrepareGaslessTransactionRequest as e$, GaslessTransactionMetadataSchema as e0, type GaslessWorkflow as e1, type GaslessWorkflowRequest as e2, IsWalletDeployedError as e3, type IsWalletDeployedRequest as e4, type ListAccountTradesRequest as e5, type ListActivityRequest as e6, type ListBuilderLeaderboardRequest as e7, type ListBuilderTradesRequest as e8, type ListBuilderVolumeRequest as e9, MergeComboPositionError as eA, MergeMarketPositionError as eB, type MergePositionsWorkflow as eC, type MergePositionsWorkflowRequest as eD, type OrderDraft as eE, type OrderPostingWorkflow as eF, type OrderWorkflow as eG, type OrderWorkflowRequest as eH, type PerpsBboSubscription as eI, type PerpsBookSubscription as eJ, type PerpsCandlesSubscription as eK, type PerpsDepositWorkflow as eL, type PerpsDepositWorkflowRequest as eM, type PerpsMarketDataEventType as eN, type PerpsMarketDataSubscription as eO, type PerpsStatisticsSubscription as eP, type PerpsStreamingCandleInterval as eQ, type PerpsTickersSubscription as eR, type PerpsTradesSubscription as eS, type PostOrdersRequest as eT, PrepareErc1155ApprovalForAllError as eU, type PrepareErc1155ApprovalForAllRequest as eV, PrepareErc20ApprovalError as eW, type PrepareErc20ApprovalRequest as eX, PrepareErc20TransferError as eY, type PrepareErc20TransferRequest as eZ, PrepareGaslessTransactionError as e_, type ListClosedPositionsRequest as ea, type ListComboActivityRequest as eb, type ListComboMarketsRequest as ec, type ListComboPositionsRequest as ed, type ListCommentsByUserAddressRequest as ee, type ListCommentsRequest as ef, type ListCurrentRewardsRequest as eg, type ListEventsRequest as eh, ListMarketClarificationsError as ei, type ListMarketClarificationsRequest as ej, type ListMarketHoldersRequest as ek, type ListMarketPositionsRequest as el, type ListMarketRewardsRequest as em, type ListMarketsRequest as en, type ListOpenInterestRequest as eo, type ListOpenOrdersRequest as ep, type ListPositionsRequest as eq, type ListSeriesRequest as er, type ListTagsRequest as es, type ListTeamsRequest as et, type ListTraderLeaderboardRequest as eu, type ListTradesRequest as ev, type ListUserEarningsAndMarketsConfigRequest as ew, type ListUserEarningsForDayRequest as ex, type MarketEventType as ey, type MarketSubscription as ez, ApproveErc20Error as f, depositToPerps as f$, type PrepareLimitOrderRequest as f0, type PrepareMarketBuyOrderRequest as f1, type PrepareMarketOrderRequest as f2, type PrepareMarketSellOrderRequest as f3, PrepareMergeComboPositionError as f4, type PrepareMergeComboPositionRequest as f5, PrepareMergeMarketPositionError as f6, type PrepareMergeMarketPositionRequest as f7, PrepareMergePositionsError as f8, type PrepareMergePositionsRequest as f9, type SearchResults as fA, type SecureRealtimeEvent as fB, type SecureRealtimeTopic as fC, type SecureSubscriptionSpec as fD, type SignedOrder as fE, SplitComboPositionError as fF, SplitMarketPositionError as fG, type SplitPositionWorkflow as fH, type SplitPositionWorkflowRequest as fI, type SportsEventType as fJ, type SportsSubscription as fK, type SubscribeError as fL, type SubscriptionHandle as fM, type TradingApprovalsWorkflow as fN, type TradingApprovalsWorkflowRequest as fO, UpdateBalanceAllowanceError as fP, type UpdateBalanceAllowanceRequest as fQ, type UserEventType as fR, type UserSubscription as fS, WaitForGaslessTransactionError as fT, approveErc1155ForAll as fU, approveErc20 as fV, cancelAll as fW, cancelMarketOrders as fX, cancelOrder as fY, cancelOrders as fZ, deployDepositWallet as f_, PreparePerpsDepositError as fa, PrepareRedeemComboPositionError as fb, type PrepareRedeemComboPositionRequest as fc, type PrepareRedeemMarketPositionsByConditionIdRequest as fd, type PrepareRedeemMarketPositionsByMarketIdRequest as fe, PrepareRedeemMarketPositionsError as ff, type PrepareRedeemMarketPositionsRequest as fg, PrepareRedeemPositionsError as fh, type PrepareRedeemPositionsRequest as fi, PrepareSplitComboPositionError as fj, type PrepareSplitComboPositionRequest as fk, PrepareSplitMarketPositionError as fl, type PrepareSplitMarketPositionRequest as fm, PrepareSplitPositionError as fn, type PrepareSplitPositionRequest as fo, PrepareTradingApprovalsError as fp, type PublicRealtimeEvent as fq, type PublicRealtimeTopic as fr, type PublicSubscriptionSpec as fs, type RedeemPositionsWorkflow as ft, type RedeemPositionsWorkflowRequest as fu, ResolveConditionByTokenError as fv, type ResolveConditionByTokenRequest as fw, type RfqConfirmationRejectedErrorOptions as fx, type RfqExecutionUpdateEvent as fy, type SearchRequest as fz, BasePublicClient as g, listMarketRewards as g$, downloadAccountingSnapshot as g0, dropNotifications as g1, estimateMarketPrice as g2, fetchBalanceAllowance as g3, fetchBuilderFeeRates as g4, fetchBuilderVolume as g5, fetchClosedOnlyMode as g6, fetchCommentsById as g7, fetchEvent as g8, fetchEventLiveVolume as g9, fetchRelatedTagResources as gA, fetchRelatedTags as gB, fetchRewardPercentages as gC, fetchSeries as gD, fetchSpread as gE, fetchSpreads as gF, fetchTag as gG, fetchTickSize as gH, fetchTotalEarningsForUserForDay as gI, fetchTradedMarketCount as gJ, fetchTransaction as gK, isWalletDeployed as gL, listAccountTrades as gM, listActivity as gN, listBuilderLeaderboard as gO, listBuilderTrades as gP, listClosedPositions as gQ, listComboActivity as gR, listComboMarkets as gS, listComboPositions as gT, listComments as gU, listCommentsByUserAddress as gV, listCurrentRewards as gW, listEvents as gX, listMarketClarifications as gY, listMarketHolders as gZ, listMarketPositions as g_, fetchEventTags as ga, fetchExecuteParams as gb, fetchLastTradePrice as gc, fetchLastTradePrices as gd, fetchMarket as ge, fetchMarketInfo as gf, fetchMarketTags as gg, fetchMidpoint as gh, fetchMidpoints as gi, fetchNegRisk as gj, fetchNotifications as gk, fetchOrder as gl, fetchOrderBook as gm, fetchOrderBooks as gn, fetchOrderScoring as go, fetchOrdersScoring as gp, fetchPerpsBook as gq, fetchPerpsFees as gr, fetchPerpsInstruments as gs, fetchPerpsTicker as gt, fetchPerpsTickers as gu, fetchPortfolioValue as gv, fetchPrice as gw, fetchPriceHistory as gx, fetchPrices as gy, fetchPublicProfile as gz, BaseSecureClient as h, listMarkets as h0, listOpenInterest as h1, listOpenOrders as h2, listPerpsCandles as h3, listPerpsFundingHistory as h4, listPerpsTrades as h5, listPositions as h6, listSeries as h7, listTags as h8, listTeams as h9, redeemPositions as hA, resolveConditionByToken as hB, revokePerpsCredentials as hC, search as hD, setupTradingApprovals as hE, splitComboPosition as hF, splitMarketPosition as hG, splitPosition as hH, subscribe as hI, transferErc20 as hJ, updateBalanceAllowance as hK, withdrawFromPerps as hL, listTraderLeaderboard as ha, listTrades as hb, listUserEarningsAndMarketsConfig as hc, listUserEarningsForDay as hd, mergeComboPosition as he, mergeMarketPosition as hf, mergePositions as hg, openPerpsSession as hh, openRfqSession as hi, postOrder as hj, postOrders as hk, prepareErc1155ApprovalForAll as hl, prepareErc20Approval as hm, prepareErc20Transfer as hn, prepareGaslessTransaction as ho, prepareMergeComboPosition as hp, prepareMergeMarketPosition as hq, prepareMergePositions as hr, preparePerpsDeposit as hs, prepareRedeemComboPosition as ht, prepareRedeemMarketPositions as hu, prepareRedeemPositions as hv, prepareSplitComboPosition as hw, prepareSplitMarketPosition as hx, prepareSplitPosition as hy, prepareTradingApprovals 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 CreatePerpsSessionRequest as v, CreateSecureClientError as w, DepositToPerpsError as x, type DepositToPerpsRequest as y, type DiscoveryActions as z };