@polymarket/client 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,13 @@
1
1
  import * as _polymarket_bindings from '@polymarket/bindings';
2
2
  import { TransactionId, PaginationCursor, DecimalString, BuilderCode, OrderSide, PositionId, EpochMilliseconds, TxHash, OrderType, TokenId, EvmAddress as EvmAddress$1, ConditionId, TickSizeValue, SessionSignerScope } from '@polymarket/bindings';
3
+ import * as _polymarket_types from '@polymarket/types';
3
4
  import { PolymarketError, HexString, EvmAddress, EvmSignature, NonEmptyArray, Prettify, Erc1271Signature, SessionSignerSignature, TxHash as TxHash$1 } from '@polymarket/types';
4
5
  import { WalletType, Event, TagReference, Market, Series, MarketClarification, Tag, RelatedTag, SportsMetadata, SportsMarketTypesResponse, Team, PublicProfile, Comment, MarketClarificationState, Profile, SearchTag } from '@polymarket/bindings/gamma';
5
6
  import { RelayerTransactionType, RelayerExecuteParams, GaslessTransaction } from '@polymarket/bindings/relayer';
6
7
  import { ZodError, z } from 'zod';
7
- import { ClobTrade, NotificationsResponse, BuilderTrade, Midpoints, Prices, OrderBook, Spreads, LastTradePrice, LastTradePriceForAsset, PriceHistoryPoint, CurrentReward, MarketReward, OrdersScoringResponse, UserEarning, TotalUserEarning, UserRewardsEarning, RewardsPercentages, CancelOrdersResponse, SignatureType, OrderResponse, OrderResponses, AcceptedOrderResponse, OpenOrder, ApiKeyCreds, AssetType, BalanceAllowanceResponse, PriceHistoryInterval, BuilderFeeRates, MarketInfo } from '@polymarket/bindings/clob';
8
+ import { ClobTrade, NotificationsResponse, BuilderTrade, Midpoints, Prices, OrderBook, Spreads, LastTradePrice, LastTradePriceForAsset, CurrentReward, MarketReward, OrdersScoringResponse, UserEarning, TotalUserEarning, UserRewardsEarning, RewardsPercentages, CancelOrdersResponse, SignatureType, OrderResponse, OrderResponses, AcceptedOrderResponse, OpenOrder, ApiKeyCreds, AssetType, BalanceAllowanceResponse, BuilderFeeRates, MarketInfo } from '@polymarket/bindings/clob';
8
9
  import * as _polymarket_bindings_data from '@polymarket/bindings/data';
9
- import { Activity, ComboActivity, Trade, ComboPositionStatus, Value, Traded, ClosedPosition, ComboPosition, Position, MetaMarketPosition, LeaderboardEntry, BuilderVolumeEntry, TraderLeaderboardEntry, LiveVolume, OpenInterest, MetaHolder } from '@polymarket/bindings/data';
10
+ import { Activity, ComboActivity, Trade, ComboPositionStatus, PortfolioValue, UserPnlSeries, UserStats, UserVolume, ComboPosition, Position, TraderLeaderboardStanding, BuilderStanding, BuilderVolumePoint, TraderLeaderboardEntry, BiggestWinner, LiveVolume, Resolution, PriceHistoryPoint, OpenInterest, MetaHolder, PriceHistoryInterval } from '@polymarket/bindings/data';
10
11
  import * as _polymarket_bindings_combos from '@polymarket/bindings/combos';
11
12
  import { ComboMarket, RfqRejectionCode, RfqQuoteId, RfqId, ComboAcceptFailureReason, BuilderRfqError, RfqQuoteRequest, RfqRequestedSize, RfqSide, RfqQuoteAck, RfqConfirmationRequest, RfqConfirmationAck as RfqConfirmationAck$1, RfqExecutionUpdate, RfqTrade, RfqQuoteCancelAck, ComboQuoteUnavailableReason, RfqStatus, RfqErrorCode, BuilderRfqStatusResponse, CollateralReturnPlanResponse } from '@polymarket/bindings/combos';
12
13
  import { PerpsInstrument, PerpsTicker, PerpsBook, PerpsCandle, PerpsFundingRate, PerpsPublicTrade, PerpsFeeScheduleEntry, PerpsWithdrawalId, PerpsSortDirection, PerpsDepositStatus, PerpsWithdrawalStatus, PerpsPnlInterval, PerpsDecimalInput, PerpsTimeInForce, PerpsOrder, PerpsOrderId, PerpsCredentials, PerpsBalance, PerpsPortfolio, PerpsAccountStats, PerpsAccountConfig, PerpsAutoCancelStatus, PerpsAccountFill, PerpsAccountFundingPayment, PerpsDeposit, PerpsWithdrawal, PerpsEquityPoint, PerpsPnlPoint, PerpsNotificationEntry, PerpsPostOrderAck, PerpsCancelOrderResult, PerpsUpdateLeverageResult, PerpsInstrumentCategory, PerpsKlineInterval } from '@polymarket/bindings/perps';
@@ -320,7 +321,7 @@ declare const FetchExecuteParamsRequestSchema: z.ZodObject<{
320
321
  type FetchExecuteParamsRequest = z.input<typeof FetchExecuteParamsRequestSchema>;
321
322
  type FetchExecuteParamsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
322
323
  declare const FetchExecuteParamsError: {
323
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
324
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
324
325
  };
325
326
  /**
326
327
  * Fetches the parameters needed to prepare a low-level transaction submission.
@@ -343,7 +344,7 @@ declare const IsWalletDeployedRequestSchema: z.ZodObject<{
343
344
  type IsWalletDeployedRequest = z.input<typeof IsWalletDeployedRequestSchema>;
344
345
  type IsWalletDeployedError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
345
346
  declare const IsWalletDeployedError: {
346
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
347
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
347
348
  };
348
349
  /**
349
350
  * Checks whether a wallet is deployed for relayer-backed transactions.
@@ -368,7 +369,7 @@ declare function isWalletDeployed(client: BaseClient, request?: IsWalletDeployed
368
369
  declare const GaslessTransactionMetadataSchema: z.ZodString;
369
370
  type DeployDepositWalletError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
370
371
  declare const DeployDepositWalletError: {
371
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
372
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
372
373
  };
373
374
  /**
374
375
  * Deploys a Deposit Wallet for the authenticated signer.
@@ -411,7 +412,7 @@ type GaslessWorkflowRequest = RequestAddressRequest | SignGaslessMessageRequest
411
412
  type GaslessWorkflow = AsyncGenerator<GaslessWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
412
413
  type PrepareGaslessTransactionError = ExecuteGaslessError | FetchExecuteParamsError | UserInputError;
413
414
  declare const PrepareGaslessTransactionError: {
414
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
415
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
415
416
  };
416
417
  /**
417
418
  * Starts preparing a low-level transaction workflow from one or more calls.
@@ -426,7 +427,7 @@ declare function prepareGaslessTransaction(client: BaseSecureClient, request: Pr
426
427
  type ExecuteGaslessError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
427
428
  type WaitForGaslessTransactionError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | TimeoutError | TransactionFailedError;
428
429
  declare const WaitForGaslessTransactionError: {
429
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError;
430
+ isError(error: unknown): error is TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
430
431
  };
431
432
 
432
433
  declare const PageSizeSchema: z.ZodNumber;
@@ -452,29 +453,40 @@ type Paginated<T> = AsyncIterable<Page<T>> & {
452
453
  declare const ListTradesRequestSchema: z.ZodObject<{
453
454
  cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
454
455
  pageSize: z.ZodDefault<z.ZodNumber>;
456
+ user: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>>;
455
457
  takerOnly: z.ZodOptional<z.ZodBoolean>;
456
- filterType: z.ZodOptional<z.ZodEnum<{
457
- CASH: "CASH";
458
- TOKENS: "TOKENS";
459
- }>>;
458
+ filterType: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.TradeFilterType>>;
460
459
  filterAmount: z.ZodOptional<z.ZodNumber>;
461
- market: z.ZodOptional<z.ZodArray<z.ZodString>>;
462
- eventId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
463
- user: z.ZodOptional<z.ZodString>;
464
- side: z.ZodOptional<z.ZodEnum<{
465
- BUY: "BUY";
466
- SELL: "SELL";
467
- }>>;
468
- start: z.ZodOptional<z.ZodNumber>;
469
- end: z.ZodOptional<z.ZodNumber>;
460
+ conditionId: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.ConditionId, string>>, z.ZodPipe<z.ZodArray<z.ZodType<_polymarket_bindings.ConditionId, string, z.core.$ZodTypeInternals<_polymarket_bindings.ConditionId, string>>>, z.ZodTransform<_polymarket_bindings.ConditionId[], _polymarket_bindings.ConditionId[]>>]>>;
461
+ eventId: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>, z.ZodTransform<_polymarket_bindings.EventId, string>>>>;
462
+ side: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings.OrderSide>>;
463
+ window: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<"full">, z.ZodObject<{
464
+ start: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodDate]>, z.ZodTransform<number, number | Date>>>;
465
+ end: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodDate]>, z.ZodTransform<number, number | Date>>>;
466
+ }, z.core.$strip>]>, z.ZodTransform<{
467
+ start?: number | undefined;
468
+ end?: number | undefined;
469
+ }, "full" | {
470
+ start?: number | undefined;
471
+ end?: number | undefined;
472
+ }>>>;
470
473
  }, z.core.$strip>;
471
474
  type ListTradesRequest = z.input<typeof ListTradesRequestSchema>;
472
475
  type ListTradesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
473
476
  declare const ListTradesError: {
474
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
477
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
475
478
  };
476
479
  /**
477
- * Lists trades for a wallet, market, or event.
480
+ * Lists trades for a wallet, market, or event — or the global recent-trades
481
+ * feed when no filter is given.
482
+ *
483
+ * Only the taker side of each match is returned by default
484
+ * (`takerOnly: false` includes maker rows), and a dust filter of 0.01 shares
485
+ * applies unless `filterType`/`filterAmount` say otherwise — either may be
486
+ * sent alone. `conditionId` accepts at most 20 distinct ids. `pageSize`
487
+ * defaults to 100 (max 1000). `window: 'full'` requests the complete
488
+ * history; an omitted window serves the recent feed. Transient rate limits
489
+ * are retried automatically.
478
490
  *
479
491
  * @remarks
480
492
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
@@ -503,7 +515,7 @@ declare const ListTradesError: {
503
515
  * ```ts
504
516
  * const result = listTrades(client, {
505
517
  * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
506
- * pageSize: 10,
518
+ * window: 'full',
507
519
  * });
508
520
  *
509
521
  * for await (const page of result) {
@@ -515,35 +527,37 @@ declare function listTrades(client: BaseClient, request?: ListTradesRequest): Pa
515
527
  declare const ListActivityRequestSchema: z.ZodObject<{
516
528
  cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
517
529
  pageSize: z.ZodDefault<z.ZodNumber>;
518
- user: z.ZodString;
519
- market: z.ZodOptional<z.ZodArray<z.ZodString>>;
520
- eventId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
530
+ user: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
531
+ conditionId: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.ConditionId, string>>, z.ZodPipe<z.ZodArray<z.ZodType<_polymarket_bindings.ConditionId, string, z.core.$ZodTypeInternals<_polymarket_bindings.ConditionId, string>>>, z.ZodTransform<_polymarket_bindings.ConditionId[], _polymarket_bindings.ConditionId[]>>]>>;
532
+ eventId: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>, z.ZodTransform<_polymarket_bindings.EventId, string>>>>;
521
533
  type: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof _polymarket_bindings_data.ActivityType>>>;
522
- start: z.ZodOptional<z.ZodNumber>;
523
- end: z.ZodOptional<z.ZodNumber>;
524
- sortBy: z.ZodOptional<z.ZodEnum<{
525
- CASH: "CASH";
526
- TOKENS: "TOKENS";
527
- TIMESTAMP: "TIMESTAMP";
528
- }>>;
529
- sortDirection: z.ZodOptional<z.ZodEnum<{
530
- ASC: "ASC";
531
- DESC: "DESC";
532
- }>>;
533
- side: z.ZodOptional<z.ZodEnum<{
534
- BUY: "BUY";
535
- SELL: "SELL";
536
- }>>;
534
+ side: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings.OrderSide>>;
535
+ sortDirection: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.SortDirection>>;
536
+ window: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<"full">, z.ZodObject<{
537
+ start: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodDate]>, z.ZodTransform<number, number | Date>>>;
538
+ end: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodDate]>, z.ZodTransform<number, number | Date>>>;
539
+ }, z.core.$strip>]>, z.ZodTransform<{
540
+ start?: number | undefined;
541
+ end?: number | undefined;
542
+ }, "full" | {
543
+ start?: number | undefined;
544
+ end?: number | undefined;
545
+ }>>>;
537
546
  }, z.core.$strip>;
538
547
  type ListActivityRequest = z.input<typeof ListActivityRequestSchema>;
539
548
  type ListActivityError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
540
549
  declare const ListActivityError: {
541
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
550
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
542
551
  };
543
552
  /**
544
- * Lists wallet activity.
553
+ * Lists wallet activity, newest-first by default.
545
554
  *
546
- * All activity types are returned by default, including deposits and withdrawals; use the `type` filter to narrow results.
555
+ * Every activity type the service serves is included by default — deposits
556
+ * and withdrawals are not filtered out; use the `type` filter to narrow
557
+ * results. `window: 'full'`
558
+ * requests the complete history (an omitted window serves the service's
559
+ * default range — the most recent three years). `pageSize` defaults to 100
560
+ * (max 1000). Transient rate limits are retried automatically.
547
561
  *
548
562
  * @remarks
549
563
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
@@ -568,11 +582,11 @@ declare const ListActivityError: {
568
582
  * ```
569
583
  *
570
584
  * @example
571
- * Loop through all pages with `for await`:
585
+ * Loop through the complete history with `for await`:
572
586
  * ```ts
573
587
  * const result = listActivity(client, {
574
588
  * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
575
- * pageSize: 10,
589
+ * window: 'full',
576
590
  * });
577
591
  *
578
592
  * for await (const page of result) {
@@ -584,16 +598,21 @@ declare function listActivity(client: BaseClient, request: ListActivityRequest):
584
598
  declare const ListComboActivityRequestSchema: z.ZodObject<{
585
599
  cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
586
600
  pageSize: z.ZodDefault<z.ZodNumber>;
587
- user: z.ZodString;
588
- 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>>>]>>;
601
+ user: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
602
+ conditionId: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.ComboConditionId, string>>, z.ZodPipe<z.ZodArray<z.ZodType<_polymarket_bindings.ComboConditionId, string, z.core.$ZodTypeInternals<_polymarket_bindings.ComboConditionId, string>>>, z.ZodTransform<_polymarket_bindings.ComboConditionId[], _polymarket_bindings.ComboConditionId[]>>]>>;
589
603
  }, z.core.$strip>;
590
604
  type ListComboActivityRequest = z.input<typeof ListComboActivityRequestSchema>;
591
605
  type ListComboActivityError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
592
606
  declare const ListComboActivityError: {
593
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
607
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
594
608
  };
595
609
  /**
596
- * Lists combo lifecycle activity for a wallet.
610
+ * Lists Combo lifecycle activity for a wallet, ordered by on-chain position.
611
+ *
612
+ * Every row carries the Combo position id and its legs enriched with market
613
+ * metadata; redeem rows additionally carry payout semantics. `pageSize`
614
+ * defaults to 100 (max 1000). Transient rate limits are retried
615
+ * automatically.
597
616
  *
598
617
  * @remarks
599
618
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
@@ -619,46 +638,46 @@ declare const ListComboActivityError: {
619
638
  */
620
639
  declare function listComboActivity(client: BaseClient, request: ListComboActivityRequest): Paginated<ComboActivity[]>;
621
640
 
622
- declare enum ComboPositionSort {
623
- CurrentValueDesc = "current_value_desc",
624
- FirstEntryDesc = "first_entry_desc",
625
- EntryCostDesc = "entry_cost_desc",
626
- ResolvedAtDesc = "resolved_at_desc",
627
- UpdatedAsc = "updated_asc"
628
- }
629
641
  declare const ListPositionsRequestSchema: z.ZodObject<{
630
642
  cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
631
- user: z.ZodString;
632
- market: z.ZodOptional<z.ZodArray<z.ZodString>>;
633
- eventId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
634
- sizeThreshold: z.ZodOptional<z.ZodNumber>;
635
- redeemable: z.ZodOptional<z.ZodBoolean>;
636
- mergeable: z.ZodOptional<z.ZodBoolean>;
637
643
  pageSize: z.ZodDefault<z.ZodNumber>;
638
- sortBy: z.ZodOptional<z.ZodEnum<{
639
- TOKENS: "TOKENS";
640
- CURRENT: "CURRENT";
641
- INITIAL: "INITIAL";
642
- CASHPNL: "CASHPNL";
643
- PERCENTPNL: "PERCENTPNL";
644
- TITLE: "TITLE";
645
- RESOLVING: "RESOLVING";
646
- PRICE: "PRICE";
647
- AVGPRICE: "AVGPRICE";
648
- }>>;
649
- sortDirection: z.ZodOptional<z.ZodEnum<{
650
- ASC: "ASC";
651
- DESC: "DESC";
652
- }>>;
653
- title: z.ZodOptional<z.ZodString>;
644
+ user: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>>;
645
+ conditionId: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.ConditionId, string>>, z.ZodTransform<_polymarket_bindings.ConditionId, _polymarket_bindings.ConditionId>>, z.ZodPipe<z.ZodArray<z.ZodType<_polymarket_bindings.ConditionId, string, z.core.$ZodTypeInternals<_polymarket_bindings.ConditionId, string>>>, z.ZodTransform<_polymarket_bindings.ConditionId[], _polymarket_bindings.ConditionId[]>>]>>;
646
+ status: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.PositionStatus>>;
647
+ eventId: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>, z.ZodTransform<_polymarket_bindings.EventId, string>>>>;
648
+ filterType: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.PositionFilterType>>;
649
+ filterAmount: z.ZodOptional<z.ZodNumber>;
650
+ includeArchived: z.ZodOptional<z.ZodBoolean>;
651
+ sortBy: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.PositionSortBy>>;
652
+ sortDirection: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.SortDirection>>;
653
+ window: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<"full">, z.ZodObject<{
654
+ start: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodDate]>, z.ZodTransform<number, number | Date>>>;
655
+ end: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodDate]>, z.ZodTransform<number, number | Date>>>;
656
+ }, z.core.$strip>]>, z.ZodTransform<{
657
+ start?: number | undefined;
658
+ end?: number | undefined;
659
+ }, "full" | {
660
+ start?: number | undefined;
661
+ end?: number | undefined;
662
+ }>>>;
654
663
  }, z.core.$strip>;
655
664
  type ListPositionsRequest = z.input<typeof ListPositionsRequestSchema>;
656
665
  type ListPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
657
666
  declare const ListPositionsError: {
658
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
667
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
659
668
  };
660
669
  /**
661
- * Lists current positions for a wallet.
670
+ * Lists positions for a wallet, or a market's holders when anchored on a
671
+ * single `conditionId` without a `user`.
672
+ *
673
+ * One method serves the whole lifecycle: `status: 'OPEN'` (the default) is
674
+ * the superset including settled-but-unredeemed winners, `'REDEEMABLE'`
675
+ * narrows to exactly those, and `'CLOSED'` lists exited positions. Every row
676
+ * carries `redeemable`/`mergeable` flags and fee-exclusive entry economics. A
677
+ * dust floor of 0.1 shares applies on OPEN/REDEEMABLE unless
678
+ * `filterType`/`filterAmount` say otherwise. `conditionId` accepts at most
679
+ * 20 distinct ids (with `user`). `pageSize` defaults to 100 (max 1000).
680
+ * Transient rate limits are retried automatically.
662
681
  *
663
682
  * @remarks
664
683
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
@@ -683,11 +702,11 @@ declare const ListPositionsError: {
683
702
  * ```
684
703
  *
685
704
  * @example
686
- * Loop through all pages with `for await`:
705
+ * Loop through a wallet's exited positions with `for await`:
687
706
  * ```ts
688
707
  * const result = listPositions(client, {
689
708
  * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
690
- * pageSize: 10,
709
+ * status: PositionStatus.Closed,
691
710
  * });
692
711
  *
693
712
  * for await (const page of result) {
@@ -696,93 +715,41 @@ declare const ListPositionsError: {
696
715
  * ```
697
716
  */
698
717
  declare function listPositions(client: BaseClient, request: ListPositionsRequest): Paginated<Position[]>;
699
- declare const ListClosedPositionsRequestSchema: z.ZodObject<{
700
- cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
701
- user: z.ZodString;
702
- market: z.ZodOptional<z.ZodArray<z.ZodString>>;
703
- title: z.ZodOptional<z.ZodString>;
704
- eventId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
705
- pageSize: z.ZodDefault<z.ZodNumber>;
706
- sortBy: z.ZodOptional<z.ZodEnum<{
707
- TIMESTAMP: "TIMESTAMP";
708
- TITLE: "TITLE";
709
- PRICE: "PRICE";
710
- AVGPRICE: "AVGPRICE";
711
- REALIZEDPNL: "REALIZEDPNL";
712
- }>>;
713
- sortDirection: z.ZodOptional<z.ZodEnum<{
714
- ASC: "ASC";
715
- DESC: "DESC";
716
- }>>;
717
- }, z.core.$strip>;
718
- type ListClosedPositionsRequest = z.input<typeof ListClosedPositionsRequestSchema>;
719
- type ListClosedPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
720
- declare const ListClosedPositionsError: {
721
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
722
- };
723
718
  /**
724
- * Lists closed positions for a wallet.
725
- *
726
- * @remarks
727
- * This is a low-level function. Most SDK consumers should prefer the client instance API.
728
- *
729
- * @throws {@link ListClosedPositionsError}
730
- * Thrown on failure.
731
- *
732
- * @example
733
- * Fetch the first page of results:
734
- * ```ts
735
- * const result = listClosedPositions(client, {
736
- * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
737
- * pageSize: 10,
738
- * });
739
- *
740
- * const firstPage = await result.firstPage();
741
- *
742
- * // Optionally, fetch additional pages:
743
- * for await (const page of result.from(firstPage.nextCursor)) {
744
- * // page.items: ClosedPosition[]
745
- * }
746
- * ```
747
- *
748
- * @example
749
- * Loop through all pages with `for await`:
750
- * ```ts
751
- * const result = listClosedPositions(client, {
752
- * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
753
- * pageSize: 10,
754
- * });
755
- *
756
- * for await (const page of result) {
757
- * // page.items: ClosedPosition[]
758
- * }
759
- * ```
760
- */
761
- declare function listClosedPositions(client: BaseClient, request: ListClosedPositionsRequest): Paginated<ClosedPosition[]>;
762
- /**
763
- * One status or a non-empty ordered list of statuses for filtering combo positions.
764
- * Pass multiple statuses as an array rather than a comma-separated string.
719
+ * One status or a non-empty ordered list of statuses. Pass multiple statuses
720
+ * as an array rather than a comma-separated string.
721
+ * `ComboPositionStatus.Redeemable` must be the sole value (scalar or a
722
+ * one-element array — both serialize identically) — it narrows to rows whose
723
+ * `redeemable` flag is set and cannot ride a multi-status list.
765
724
  */
766
725
  type ComboPositionStatusFilter = ComboPositionStatus | readonly [ComboPositionStatus, ...ComboPositionStatus[]];
767
726
  declare const ListComboPositionsRequestSchema: z.ZodObject<{
768
727
  cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
769
- user: z.ZodString;
770
728
  pageSize: z.ZodDefault<z.ZodNumber>;
729
+ user: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
730
+ conditionId: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.ComboConditionId, string>>, z.ZodPipe<z.ZodArray<z.ZodType<_polymarket_bindings.ComboConditionId, string, z.core.$ZodTypeInternals<_polymarket_bindings.ComboConditionId, string>>>, z.ZodTransform<_polymarket_bindings.ComboConditionId[], _polymarket_bindings.ComboConditionId[]>>]>>;
771
731
  status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<typeof ComboPositionStatus>, z.ZodTuple<[z.ZodEnum<typeof ComboPositionStatus>], z.ZodEnum<typeof ComboPositionStatus>>]>>;
772
- sort: z.ZodOptional<z.ZodEnum<typeof ComboPositionSort>>;
773
- 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>>>]>>;
774
- updatedAfter: z.ZodOptional<z.ZodNumber>;
775
- updatedBefore: z.ZodOptional<z.ZodNumber>;
732
+ sortBy: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.ComboPositionSortBy>>;
733
+ sortDirection: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.SortDirection>>;
734
+ updatedAfter: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodDate]>, z.ZodTransform<number, number | Date>>>;
735
+ updatedBefore: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodDate]>, z.ZodTransform<number, number | Date>>>;
776
736
  }, z.core.$strip>;
777
737
  type ListComboPositionsRequest = Omit<z.input<typeof ListComboPositionsRequestSchema>, 'status'> & {
778
738
  status?: ComboPositionStatusFilter;
779
739
  };
780
740
  type ListComboPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
781
741
  declare const ListComboPositionsError: {
782
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
742
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
783
743
  };
784
744
  /**
785
- * Lists combo positions for a wallet.
745
+ * Lists Combo positions for a wallet.
746
+ *
747
+ * `status: 'OPEN'` is the superset including custody-held redeemable
748
+ * positions; `'REDEEMABLE'` (sole value) narrows to exactly the rows whose
749
+ * `redeemable` flag is set. Every row carries its legs enriched with market
750
+ * metadata and exact entry economics. `updatedAfter`/`updatedBefore` bound
751
+ * the rows' change watermark for incremental sync. `pageSize` defaults to
752
+ * 100 (max 1000). Transient rate limits are retried automatically.
786
753
  *
787
754
  * @remarks
788
755
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
@@ -807,15 +774,6 @@ declare const ListComboPositionsError: {
807
774
  * ```
808
775
  *
809
776
  * @example
810
- * Filter to open combo positions:
811
- * ```ts
812
- * const result = listComboPositions(client, {
813
- * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
814
- * status: ComboPositionStatus.Open,
815
- * });
816
- * ```
817
- *
818
- * @example
819
777
  * Filter to any of several resolved statuses. Pass multiple statuses as an
820
778
  * array rather than a comma-separated string:
821
779
  * ```ts
@@ -830,29 +788,42 @@ declare const ListComboPositionsError: {
830
788
  * ```
831
789
  *
832
790
  * @example
833
- * Incrementally sync changed combo positions:
791
+ * List redeemable Combo positions, largest claims first:
792
+ * ```ts
793
+ * const result = listComboPositions(client, {
794
+ * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
795
+ * status: 'REDEEMABLE',
796
+ * });
797
+ * ```
798
+ *
799
+ * @example
800
+ * Incrementally sync changed Combo positions:
834
801
  * ```ts
835
802
  * const result = listComboPositions(client, {
836
803
  * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
837
804
  * updatedAfter: 1_797_360_000,
838
- * sort: ComboPositionSort.UpdatedAsc,
839
- * pageSize: 1000,
805
+ * sortBy: 'UPDATED',
806
+ * sortDirection: 'ASC',
840
807
  * });
841
808
  * ```
842
809
  */
843
810
  declare function listComboPositions(client: BaseClient, request: ListComboPositionsRequest): Paginated<ComboPosition[]>;
844
811
  declare const FetchPortfolioValueRequestSchema: z.ZodObject<{
845
- user: z.ZodString;
846
- market: z.ZodOptional<z.ZodArray<z.ZodString>>;
812
+ user: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
813
+ conditionIds: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodType<_polymarket_bindings.ConditionId, string, z.core.$ZodTypeInternals<_polymarket_bindings.ConditionId, string>>>, z.ZodTransform<_polymarket_bindings.ConditionId[], _polymarket_bindings.ConditionId[]>>>;
847
814
  }, z.core.$strip>;
848
815
  type FetchPortfolioValueRequest = z.input<typeof FetchPortfolioValueRequestSchema>;
849
816
  type FetchPortfolioValueError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
850
817
  declare const FetchPortfolioValueError: {
851
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
818
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
852
819
  };
853
820
  /**
854
821
  * Fetches the total value for a wallet's positions.
855
822
  *
823
+ * When `conditionIds` is present, only those single-market positions are
824
+ * included; portfolio-level combo positions are excluded. Accepts at most 20
825
+ * distinct condition IDs.
826
+ *
856
827
  * @remarks
857
828
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
858
829
  *
@@ -863,46 +834,124 @@ declare const FetchPortfolioValueError: {
863
834
  * ```ts
864
835
  * const value = await fetchPortfolioValue(client, {
865
836
  * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
837
+ * conditionIds: ['0xe546672750517f62c45a5a00067481981e62b9c20fa8220203232c9dc8fd2093'],
866
838
  * });
867
839
  *
868
- * // value: Value[]
840
+ * // value: PortfolioValue
869
841
  * ```
870
842
  */
871
- declare function fetchPortfolioValue(client: BaseClient, request: FetchPortfolioValueRequest): Promise<Value[]>;
872
- declare const FetchTradedMarketCountRequestSchema: z.ZodObject<{
873
- user: z.ZodString;
843
+ declare function fetchPortfolioValue(client: BaseClient, request: FetchPortfolioValueRequest): Promise<PortfolioValue>;
844
+ declare const FetchUserStatsRequestSchema: z.ZodObject<{
845
+ user: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
874
846
  }, z.core.$strip>;
875
- type FetchTradedMarketCountRequest = z.input<typeof FetchTradedMarketCountRequestSchema>;
876
- type FetchTradedMarketCountError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
877
- declare const FetchTradedMarketCountError: {
878
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
847
+ type FetchUserStatsRequest = z.input<typeof FetchUserStatsRequestSchema>;
848
+ type FetchUserStatsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
849
+ declare const FetchUserStatsError: {
850
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
879
851
  };
880
852
  /**
881
- * Fetches the total number of markets a wallet has traded.
853
+ * Fetches profile and lifetime trading statistics for a wallet.
854
+ *
855
+ * `tradedMarketCount` is the exact number of distinct markets traded.
856
+ * `biggestWin` is the largest resolved position win, and `allTimePnl` is the
857
+ * latest published cumulative PnL observation. Returns `null` when the wallet
858
+ * is not a known user.
882
859
  *
883
860
  * @remarks
884
861
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
885
862
  *
886
- * @throws {@link FetchTradedMarketCountError}
863
+ * @throws {@link FetchUserStatsError}
887
864
  * Thrown on failure.
888
865
  *
889
866
  * @example
890
867
  * ```ts
891
- * const traded = await fetchTradedMarketCount(client, {
868
+ * const stats = await fetchUserStats(client, {
892
869
  * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
893
870
  * });
894
871
  *
895
- * // traded === Traded
872
+ * // stats: UserStats | null
873
+ * ```
874
+ */
875
+ declare function fetchUserStats(client: BaseClient, request: FetchUserStatsRequest): Promise<UserStats | null>;
876
+ declare const FetchUserPnlRequestSchema: z.ZodObject<{
877
+ user: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
878
+ interval: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.UserPnlInterval>>;
879
+ fidelity: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.UserPnlFidelity>>;
880
+ }, z.core.$strip>;
881
+ type FetchUserPnlRequest = z.input<typeof FetchUserPnlRequestSchema>;
882
+ type FetchUserPnlError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
883
+ declare const FetchUserPnlError: {
884
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
885
+ };
886
+ /**
887
+ * Fetches a wallet's cumulative PnL series.
888
+ *
889
+ * `interval` defaults to one day and `fidelity` defaults to one hour. Each
890
+ * point is cumulative through its timestamp; nullable amounts mean the source
891
+ * was unavailable and are never coerced to zero.
892
+ *
893
+ * @remarks
894
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
895
+ *
896
+ * @throws {@link FetchUserPnlError}
897
+ * Thrown on failure.
898
+ *
899
+ * @example
900
+ * ```ts
901
+ * const pnl = await fetchUserPnl(client, {
902
+ * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
903
+ * interval: UserPnlInterval.OneWeek,
904
+ * fidelity: UserPnlFidelity.ThreeHours,
905
+ * });
906
+ * ```
907
+ */
908
+ declare function fetchUserPnl(client: BaseClient, request: FetchUserPnlRequest): Promise<UserPnlSeries>;
909
+ declare const FetchUserVolumeRequestSchema: z.ZodObject<{
910
+ user: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
911
+ window: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<"full">, z.ZodObject<{
912
+ start: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodDate]>, z.ZodTransform<number, number | Date>>>;
913
+ end: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodDate]>, z.ZodTransform<number, number | Date>>>;
914
+ }, z.core.$strip>]>, z.ZodTransform<{
915
+ start?: number | undefined;
916
+ end?: number | undefined;
917
+ }, "full" | {
918
+ start?: number | undefined;
919
+ end?: number | undefined;
920
+ }>>>;
921
+ }, z.core.$strip>;
922
+ type FetchUserVolumeRequest = z.input<typeof FetchUserVolumeRequestSchema>;
923
+ type FetchUserVolumeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
924
+ declare const FetchUserVolumeError: {
925
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
926
+ };
927
+ /**
928
+ * Fetches a wallet's trading volume for a time window.
929
+ *
930
+ * Volume is returned in shares and USD. Window bounds accept epoch seconds or
931
+ * `Date` values and are widened to whole UTC days.
932
+ *
933
+ * @remarks
934
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
935
+ *
936
+ * @throws {@link FetchUserVolumeError}
937
+ * Thrown on failure.
938
+ *
939
+ * @example
940
+ * ```ts
941
+ * const volume = await fetchUserVolume(client, {
942
+ * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
943
+ * window: { start: new Date('2026-08-01T00:00:00Z') },
944
+ * });
896
945
  * ```
897
946
  */
898
- declare function fetchTradedMarketCount(client: BaseClient, request: FetchTradedMarketCountRequest): Promise<Traded>;
947
+ declare function fetchUserVolume(client: BaseClient, request: FetchUserVolumeRequest): Promise<UserVolume>;
899
948
  declare const DownloadAccountingSnapshotRequestSchema: z.ZodObject<{
900
949
  user: z.ZodString;
901
950
  }, z.core.$strip>;
902
951
  type DownloadAccountingSnapshotRequest = z.input<typeof DownloadAccountingSnapshotRequestSchema>;
903
952
  type DownloadAccountingSnapshotError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
904
953
  declare const DownloadAccountingSnapshotError: {
905
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
954
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
906
955
  };
907
956
  /**
908
957
  * Downloads an accounting snapshot archive for a wallet.
@@ -925,7 +974,7 @@ declare const DownloadAccountingSnapshotError: {
925
974
  declare function downloadAccountingSnapshot(client: BaseClient, request: DownloadAccountingSnapshotRequest): Promise<Blob>;
926
975
 
927
976
  type DefaultAccountWallet<TRequest extends {
928
- user: string;
977
+ user?: string;
929
978
  }> = Prettify<Omit<TRequest, 'user'> & {
930
979
  /**
931
980
  * Wallet address to use.
@@ -935,25 +984,27 @@ type DefaultAccountWallet<TRequest extends {
935
984
  user?: string;
936
985
  }>;
937
986
  type SecureListPositionsRequest = DefaultAccountWallet<ListPositionsRequest>;
938
- type SecureListClosedPositionsRequest = DefaultAccountWallet<ListClosedPositionsRequest>;
939
987
  type SecureListComboPositionsRequest = DefaultAccountWallet<ListComboPositionsRequest>;
940
988
  type SecureFetchPortfolioValueRequest = DefaultAccountWallet<FetchPortfolioValueRequest>;
941
- type SecureFetchTradedMarketCountRequest = DefaultAccountWallet<FetchTradedMarketCountRequest>;
989
+ type SecureFetchTraderLeaderboardStandingRequest = DefaultAccountWallet<FetchTraderLeaderboardStandingRequest>;
990
+ type SecureFetchUserPnlRequest = DefaultAccountWallet<FetchUserPnlRequest>;
991
+ type SecureFetchUserStatsRequest = DefaultAccountWallet<FetchUserStatsRequest>;
992
+ type SecureFetchUserVolumeRequest = DefaultAccountWallet<FetchUserVolumeRequest>;
942
993
  type SecureDownloadAccountingSnapshotRequest = DefaultAccountWallet<DownloadAccountingSnapshotRequest>;
943
994
  type SecureListActivityRequest = DefaultAccountWallet<ListActivityRequest>;
944
995
  type SecureListComboActivityRequest = DefaultAccountWallet<ListComboActivityRequest>;
945
- type CommonAccountActions = {
996
+ type PublicAccountActions = Prettify<{
946
997
  /**
947
- * Lists positions for a market.
998
+ * Lists current positions for a wallet.
948
999
  *
949
- * @throws {@link ListMarketPositionsError}
1000
+ * @throws {@link ListPositionsError}
950
1001
  * Thrown on failure.
951
1002
  *
952
1003
  * @example
953
1004
  * Fetch the first page of results:
954
1005
  * ```ts
955
- * const paginator = client.listMarketPositions({
956
- * market: '0xe546672750517f62c45a5a00067481981e62b9c20fa8220203232c9dc8fd2093',
1006
+ * const paginator = client.listPositions({
1007
+ * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
957
1008
  * pageSize: 10,
958
1009
  * });
959
1010
  *
@@ -961,157 +1012,148 @@ type CommonAccountActions = {
961
1012
  *
962
1013
  * // Optionally, fetch additional pages:
963
1014
  * for await (const page of paginator.from(firstPage.nextCursor)) {
964
- * // page.items: MetaMarketPosition[]
1015
+ * // page.items: Position[]
965
1016
  * }
966
1017
  * ```
967
1018
  *
968
1019
  * @example
969
1020
  * Loop through all pages with `for await`:
970
1021
  * ```ts
971
- * const paginator = client.listMarketPositions({
972
- * market: '0xe546672750517f62c45a5a00067481981e62b9c20fa8220203232c9dc8fd2093',
1022
+ * const paginator = client.listPositions({
1023
+ * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
973
1024
  * pageSize: 10,
974
1025
  * });
975
1026
  *
976
1027
  * for await (const page of paginator) {
977
- * // page.items: MetaMarketPosition[]
1028
+ * // page.items: Position[]
978
1029
  * }
979
1030
  * ```
980
1031
  */
981
- listMarketPositions(request: ListMarketPositionsRequest): Paginated<MetaMarketPosition[]>;
982
- };
983
- type PublicAccountActions = Prettify<CommonAccountActions & {
1032
+ listPositions(request: ListPositionsRequest): Paginated<Position[]>;
984
1033
  /**
985
- * Lists current positions for a wallet.
1034
+ * Lists combo positions for a wallet.
986
1035
  *
987
- * @throws {@link ListPositionsError}
1036
+ * @throws {@link ListComboPositionsError}
988
1037
  * Thrown on failure.
989
1038
  *
990
1039
  * @example
991
1040
  * Fetch the first page of results:
992
1041
  * ```ts
993
- * const paginator = client.listPositions({
1042
+ * const paginator = client.listComboPositions({
994
1043
  * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
995
1044
  * pageSize: 10,
996
1045
  * });
997
1046
  *
998
1047
  * const firstPage = await paginator.firstPage();
999
- *
1000
- * // Optionally, fetch additional pages:
1001
- * for await (const page of paginator.from(firstPage.nextCursor)) {
1002
- * // page.items: Position[]
1003
- * }
1004
1048
  * ```
1005
1049
  *
1006
1050
  * @example
1007
- * Loop through all pages with `for await`:
1051
+ * Filter to any of several resolved statuses:
1008
1052
  * ```ts
1009
- * const paginator = client.listPositions({
1053
+ * const paginator = client.listComboPositions({
1010
1054
  * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
1011
- * pageSize: 10,
1055
+ * status: [
1056
+ * ComboPositionStatus.ResolvedWin,
1057
+ * ComboPositionStatus.ResolvedPartial,
1058
+ * ComboPositionStatus.ResolvedLoss,
1059
+ * ],
1012
1060
  * });
1013
- *
1014
- * for await (const page of paginator) {
1015
- * // page.items: Position[]
1016
- * }
1017
1061
  * ```
1018
1062
  */
1019
- listPositions(request: ListPositionsRequest): Paginated<Position[]>;
1063
+ listComboPositions(request: ListComboPositionsRequest): Paginated<ComboPosition[]>;
1020
1064
  /**
1021
- * Lists closed positions for a wallet.
1065
+ * Fetches the total value for a wallet's positions.
1066
+ *
1067
+ * When `conditionIds` is present, only those single-market positions are
1068
+ * included; portfolio-level combo positions are excluded. Accepts at most
1069
+ * 20 distinct condition IDs.
1022
1070
  *
1023
- * @throws {@link ListClosedPositionsError}
1071
+ * @throws {@link FetchPortfolioValueError}
1024
1072
  * Thrown on failure.
1025
1073
  *
1026
1074
  * @example
1027
- * Fetch the first page of results:
1028
1075
  * ```ts
1029
- * const paginator = client.listClosedPositions({
1076
+ * const value = await client.fetchPortfolioValue({
1030
1077
  * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
1031
- * pageSize: 10,
1078
+ * conditionIds: ['0xe546672750517f62c45a5a00067481981e62b9c20fa8220203232c9dc8fd2093'],
1032
1079
  * });
1080
+ * ```
1081
+ */
1082
+ fetchPortfolioValue(request: FetchPortfolioValueRequest): Promise<PortfolioValue>;
1083
+ /**
1084
+ * Fetches one trader's standing on both the PnL and volume boards.
1033
1085
  *
1034
- * const firstPage = await paginator.firstPage();
1086
+ * `window` defaults to one day and `category` to overall. A `null` rank means
1087
+ * the trader is unranked on that board. Returns `null` for an unknown wallet.
1035
1088
  *
1036
- * // Optionally, fetch additional pages:
1037
- * for await (const page of paginator.from(firstPage.nextCursor)) {
1038
- * // page.items: ClosedPosition[]
1039
- * }
1040
- * ```
1089
+ * @throws {@link FetchTraderLeaderboardStandingError}
1090
+ * Thrown on failure.
1041
1091
  *
1042
1092
  * @example
1043
- * Loop through all pages with `for await`:
1044
1093
  * ```ts
1045
- * const paginator = client.listClosedPositions({
1046
- * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
1047
- * pageSize: 10,
1094
+ * const standing = await client.fetchTraderLeaderboardStanding({
1095
+ * user: '0xa71093cafc0c099b4ccab24c3cb8018d817923c4',
1096
+ * window: LeaderboardWindow.All,
1048
1097
  * });
1049
- *
1050
- * for await (const page of paginator) {
1051
- * // page.items: ClosedPosition[]
1052
- * }
1053
1098
  * ```
1054
1099
  */
1055
- listClosedPositions(request: ListClosedPositionsRequest): Paginated<ClosedPosition[]>;
1100
+ fetchTraderLeaderboardStanding(request: FetchTraderLeaderboardStandingRequest): Promise<TraderLeaderboardStanding | null>;
1056
1101
  /**
1057
- * Lists combo positions for a wallet.
1102
+ * Fetches profile and lifetime trading statistics for a wallet.
1058
1103
  *
1059
- * @throws {@link ListComboPositionsError}
1060
- * Thrown on failure.
1104
+ * `tradedMarketCount` is the exact number of distinct markets traded.
1061
1105
  *
1062
- * @example
1063
- * Fetch the first page of results:
1064
- * ```ts
1065
- * const paginator = client.listComboPositions({
1066
- * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
1067
- * pageSize: 10,
1068
- * });
1106
+ * Returns `null` when the wallet is not a known user.
1069
1107
  *
1070
- * const firstPage = await paginator.firstPage();
1071
- * ```
1108
+ * @throws {@link FetchUserStatsError}
1109
+ * Thrown on failure.
1072
1110
  *
1073
1111
  * @example
1074
- * Filter to any of several resolved statuses:
1075
1112
  * ```ts
1076
- * const paginator = client.listComboPositions({
1113
+ * const stats = await client.fetchUserStats({
1077
1114
  * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
1078
- * status: [
1079
- * ComboPositionStatus.ResolvedWin,
1080
- * ComboPositionStatus.ResolvedPartial,
1081
- * ComboPositionStatus.ResolvedLoss,
1082
- * ],
1083
1115
  * });
1084
1116
  * ```
1085
1117
  */
1086
- listComboPositions(request: ListComboPositionsRequest): Paginated<ComboPosition[]>;
1118
+ fetchUserStats(request: FetchUserStatsRequest): Promise<UserStats | null>;
1087
1119
  /**
1088
- * Fetches the total value for a wallet's positions.
1120
+ * Fetches a wallet's cumulative PnL series.
1089
1121
  *
1090
- * @throws {@link FetchPortfolioValueError}
1122
+ * `interval` defaults to one day and `fidelity` defaults to one hour. Each
1123
+ * point is cumulative through its timestamp; nullable amounts mean the
1124
+ * source was unavailable and are never coerced to zero.
1125
+ *
1126
+ * @throws {@link FetchUserPnlError}
1091
1127
  * Thrown on failure.
1092
1128
  *
1093
1129
  * @example
1094
1130
  * ```ts
1095
- * const value = await client.fetchPortfolioValue({
1131
+ * const pnl = await client.fetchUserPnl({
1096
1132
  * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
1133
+ * interval: UserPnlInterval.OneWeek,
1134
+ * fidelity: UserPnlFidelity.ThreeHours,
1097
1135
  * });
1098
1136
  * ```
1099
1137
  */
1100
- fetchPortfolioValue(request: FetchPortfolioValueRequest): Promise<Value[]>;
1138
+ fetchUserPnl(request: FetchUserPnlRequest): Promise<UserPnlSeries>;
1101
1139
  /**
1102
- * Fetches the total number of markets a wallet has traded.
1140
+ * Fetches a wallet's trading volume for a time window.
1141
+ *
1142
+ * Volume is returned in shares and USD. Window bounds accept epoch seconds
1143
+ * or `Date` values and are widened to whole UTC days.
1103
1144
  *
1104
- * @throws {@link FetchTradedMarketCountError}
1145
+ * @throws {@link FetchUserVolumeError}
1105
1146
  * Thrown on failure.
1106
1147
  *
1107
1148
  * @example
1108
1149
  * ```ts
1109
- * const traded = await client.fetchTradedMarketCount({
1150
+ * const volume = await client.fetchUserVolume({
1110
1151
  * user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
1152
+ * window: { start: new Date('2026-08-01T00:00:00Z') },
1111
1153
  * });
1112
1154
  * ```
1113
1155
  */
1114
- fetchTradedMarketCount(request: FetchTradedMarketCountRequest): Promise<Traded>;
1156
+ fetchUserVolume(request: FetchUserVolumeRequest): Promise<UserVolume>;
1115
1157
  /**
1116
1158
  * Downloads an accounting snapshot archive for a wallet.
1117
1159
  *
@@ -1129,7 +1171,12 @@ type PublicAccountActions = Prettify<CommonAccountActions & {
1129
1171
  /**
1130
1172
  * Lists wallet activity.
1131
1173
  *
1132
- * All activity types are returned by default, including deposits and withdrawals; use the `type` filter to narrow results.
1174
+ * Every activity type is included by default, including deposits and
1175
+ * withdrawals; use the `type` filter to narrow results. An omitted `window`
1176
+ * serves the most recent three years; `window: 'full'` requests the complete
1177
+ * history. Window bounds accept Unix epoch seconds or `Date` values. Results
1178
+ * are newest-first by default. `pageSize` defaults to 100 (max 1000), and
1179
+ * transient rate limits are retried automatically.
1133
1180
  *
1134
1181
  * @throws {@link ListActivityError}
1135
1182
  * Thrown on failure.
@@ -1183,11 +1230,13 @@ type PublicAccountActions = Prettify<CommonAccountActions & {
1183
1230
  */
1184
1231
  listComboActivity(request: ListComboActivityRequest): Paginated<ComboActivity[]>;
1185
1232
  }>;
1186
- type SecureAccountActions = Prettify<CommonAccountActions & {
1233
+ type SecureAccountActions = Prettify<{
1187
1234
  /**
1188
1235
  * Lists current positions for a wallet.
1189
1236
  *
1190
1237
  * Defaults to the authenticated account's wallet when `user` is omitted.
1238
+ * To list a market's holders (a `conditionId` anchor with no wallet), use
1239
+ * a public client's `listPositions` instead.
1191
1240
  *
1192
1241
  * @throws {@link ListPositionsError}
1193
1242
  * Thrown on failure.
@@ -1203,15 +1252,6 @@ type SecureAccountActions = Prettify<CommonAccountActions & {
1203
1252
  * ```
1204
1253
  */
1205
1254
  listPositions(request?: SecureListPositionsRequest): Paginated<Position[]>;
1206
- /**
1207
- * Lists closed positions for a wallet.
1208
- *
1209
- * Defaults to the authenticated account's wallet when `user` is omitted.
1210
- *
1211
- * @throws {@link ListClosedPositionsError}
1212
- * Thrown on failure.
1213
- */
1214
- listClosedPositions(request?: SecureListClosedPositionsRequest): Paginated<ClosedPosition[]>;
1215
1255
  /**
1216
1256
  * Lists combo positions for a wallet.
1217
1257
  *
@@ -1235,21 +1275,67 @@ type SecureAccountActions = Prettify<CommonAccountActions & {
1235
1275
  /**
1236
1276
  * Fetches the total value for a wallet's positions.
1237
1277
  *
1278
+ * When `conditionIds` is present, only those single-market positions are
1279
+ * included; portfolio-level combo positions are excluded. Accepts at most
1280
+ * 20 distinct condition IDs.
1281
+ *
1238
1282
  * Defaults to the authenticated account's wallet when `user` is omitted.
1239
1283
  *
1240
1284
  * @throws {@link FetchPortfolioValueError}
1241
1285
  * Thrown on failure.
1242
1286
  */
1243
- fetchPortfolioValue(request?: SecureFetchPortfolioValueRequest): Promise<Value[]>;
1287
+ fetchPortfolioValue(request?: SecureFetchPortfolioValueRequest): Promise<PortfolioValue>;
1244
1288
  /**
1245
- * Fetches the total number of markets a wallet has traded.
1289
+ * Fetches one trader's standing on both the PnL and volume boards.
1246
1290
  *
1247
1291
  * Defaults to the authenticated account's wallet when `user` is omitted.
1292
+ * `window` defaults to one day and `category` to overall. A `null` rank means
1293
+ * the trader is unranked on that board. Returns `null` for an unknown wallet.
1248
1294
  *
1249
- * @throws {@link FetchTradedMarketCountError}
1295
+ * @throws {@link FetchTraderLeaderboardStandingError}
1250
1296
  * Thrown on failure.
1297
+ *
1298
+ * @example
1299
+ * ```ts
1300
+ * const standing = await client.fetchTraderLeaderboardStanding({
1301
+ * window: LeaderboardWindow.All,
1302
+ * });
1303
+ * ```
1251
1304
  */
1252
- fetchTradedMarketCount(request?: SecureFetchTradedMarketCountRequest): Promise<Traded>;
1305
+ fetchTraderLeaderboardStanding(request?: SecureFetchTraderLeaderboardStandingRequest): Promise<TraderLeaderboardStanding | null>;
1306
+ /**
1307
+ * Fetches profile and lifetime trading statistics for a wallet.
1308
+ *
1309
+ * `tradedMarketCount` is the exact number of distinct markets traded.
1310
+ *
1311
+ * Defaults to the authenticated account's wallet when `user` is omitted.
1312
+ * Returns `null` when the wallet is not a known user.
1313
+ *
1314
+ * @throws {@link FetchUserStatsError}
1315
+ * Thrown on failure.
1316
+ */
1317
+ fetchUserStats(request?: SecureFetchUserStatsRequest): Promise<UserStats | null>;
1318
+ /**
1319
+ * Fetches the cumulative PnL series for a wallet.
1320
+ *
1321
+ * Defaults to the authenticated account's wallet when `user` is omitted.
1322
+ * `interval` defaults to one day and `fidelity` defaults to one hour.
1323
+ *
1324
+ * @throws {@link FetchUserPnlError}
1325
+ * Thrown on failure.
1326
+ */
1327
+ fetchUserPnl(request?: SecureFetchUserPnlRequest): Promise<UserPnlSeries>;
1328
+ /**
1329
+ * Fetches trading volume for a wallet over a time window.
1330
+ *
1331
+ * Defaults to the authenticated account's wallet when `user` is omitted.
1332
+ * Window bounds accept epoch seconds or `Date` values and are widened to
1333
+ * whole UTC days.
1334
+ *
1335
+ * @throws {@link FetchUserVolumeError}
1336
+ * Thrown on failure.
1337
+ */
1338
+ fetchUserVolume(request?: SecureFetchUserVolumeRequest): Promise<UserVolume>;
1253
1339
  /**
1254
1340
  * Downloads an accounting snapshot archive for a wallet.
1255
1341
  *
@@ -1264,7 +1350,12 @@ type SecureAccountActions = Prettify<CommonAccountActions & {
1264
1350
  *
1265
1351
  * Defaults to the authenticated account's wallet when `user` is omitted.
1266
1352
  *
1267
- * All activity types are returned by default, including deposits and withdrawals; use the `type` filter to narrow results.
1353
+ * Every activity type is included by default, including deposits and
1354
+ * withdrawals; use the `type` filter to narrow results. An omitted `window`
1355
+ * serves the most recent three years; `window: 'full'` requests the complete
1356
+ * history. Window bounds accept Unix epoch seconds or `Date` values. Results
1357
+ * are newest-first by default. `pageSize` defaults to 100 (max 1000), and
1358
+ * transient rate limits are retried automatically.
1268
1359
  *
1269
1360
  * @throws {@link ListActivityError}
1270
1361
  * Thrown on failure.
@@ -1394,6 +1485,11 @@ type AnalyticsActions = {
1394
1485
  /**
1395
1486
  * Lists builder leaderboard rankings.
1396
1487
  *
1488
+ * Builders are ranked by attributed share volume within `window`, which
1489
+ * defaults to one day. `builderCode` is the stable identifier; names and
1490
+ * profile images are display metadata. `pageSize` defaults to 100 (max 1000).
1491
+ * Transient rate limits are retried automatically.
1492
+ *
1397
1493
  * @throws {@link ListBuilderLeaderboardError}
1398
1494
  * Thrown on failure.
1399
1495
  *
@@ -1402,14 +1498,14 @@ type AnalyticsActions = {
1402
1498
  * ```ts
1403
1499
  * const paginator = client.listBuilderLeaderboard({
1404
1500
  * pageSize: 10,
1405
- * timePeriod: 'DAY',
1501
+ * window: LeaderboardWindow.Day,
1406
1502
  * });
1407
1503
  *
1408
1504
  * const firstPage = await paginator.firstPage();
1409
1505
  *
1410
1506
  * // Optionally, fetch additional pages:
1411
1507
  * for await (const page of paginator.from(firstPage.nextCursor)) {
1412
- * // page.items: LeaderboardEntry[]
1508
+ * // page.items: BuilderStanding[]
1413
1509
  * }
1414
1510
  * ```
1415
1511
  *
@@ -1418,32 +1514,44 @@ type AnalyticsActions = {
1418
1514
  * ```ts
1419
1515
  * const paginator = client.listBuilderLeaderboard({
1420
1516
  * pageSize: 10,
1421
- * timePeriod: 'DAY',
1517
+ * window: LeaderboardWindow.Day,
1422
1518
  * });
1423
1519
  *
1424
1520
  * for await (const page of paginator) {
1425
- * // page.items: LeaderboardEntry[]
1521
+ * // page.items: BuilderStanding[]
1426
1522
  * }
1427
1523
  * ```
1428
1524
  */
1429
- listBuilderLeaderboard(request?: ListBuilderLeaderboardRequest): Paginated<LeaderboardEntry[]>;
1525
+ listBuilderLeaderboard(request?: ListBuilderLeaderboardRequest): Paginated<BuilderStanding[]>;
1430
1526
  /**
1431
- * Lists daily builder volume entries.
1527
+ * Fetches the per-builder volume time series.
1528
+ *
1529
+ * `interval` controls bucket width and defaults to daily; use
1530
+ * {@link BuilderVolumeInterval.Year} for one bucket per calendar year.
1531
+ * `bucketLimit` returns that many complete recent buckets (default 30, max 90),
1532
+ * not that many builder rows. Results are newest bucket first, and volume is
1533
+ * measured in shares. Transient rate limits are retried automatically.
1432
1534
  *
1433
- * @throws {@link ListBuilderVolumeError}
1535
+ * @throws {@link FetchBuilderVolumeError}
1434
1536
  * Thrown on failure.
1435
1537
  *
1436
1538
  * @example
1437
1539
  * ```ts
1438
1540
  * const volume = await client.fetchBuilderVolume({
1439
- * timePeriod: 'DAY',
1541
+ * interval: BuilderVolumeInterval.Day,
1542
+ * bucketLimit: 7,
1440
1543
  * });
1441
1544
  * ```
1442
1545
  */
1443
- fetchBuilderVolume(request?: ListBuilderVolumeRequest): Promise<BuilderVolumeEntry[]>;
1546
+ fetchBuilderVolume(request?: FetchBuilderVolumeRequest): Promise<BuilderVolumePoint[]>;
1444
1547
  /**
1445
1548
  * Lists trader leaderboard rankings.
1446
1549
  *
1550
+ * `window` defaults to one day, `category` to overall, and `sortBy` to PnL.
1551
+ * Finite-window PnL is marked equity change net of flows, while all-time PnL
1552
+ * is realized only. Volume is measured in shares. Tied traders share a rank
1553
+ * and the next rank skips. `pageSize` defaults to 100 (max 1000).
1554
+ *
1447
1555
  * @throws {@link ListTraderLeaderboardError}
1448
1556
  * Thrown on failure.
1449
1557
  *
@@ -1451,9 +1559,9 @@ type AnalyticsActions = {
1451
1559
  * Fetch the first page of results:
1452
1560
  * ```ts
1453
1561
  * const paginator = client.listTraderLeaderboard({
1454
- * orderBy: 'PNL',
1455
1562
  * pageSize: 10,
1456
- * timePeriod: 'DAY',
1563
+ * sortBy: TraderLeaderboardSort.Pnl,
1564
+ * window: LeaderboardWindow.Week,
1457
1565
  * });
1458
1566
  *
1459
1567
  * const firstPage = await paginator.firstPage();
@@ -1468,9 +1576,9 @@ type AnalyticsActions = {
1468
1576
  * Loop through all pages with `for await`:
1469
1577
  * ```ts
1470
1578
  * const paginator = client.listTraderLeaderboard({
1471
- * orderBy: 'PNL',
1472
1579
  * pageSize: 10,
1473
- * timePeriod: 'DAY',
1580
+ * sortBy: TraderLeaderboardSort.Pnl,
1581
+ * window: LeaderboardWindow.Week,
1474
1582
  * });
1475
1583
  *
1476
1584
  * for await (const page of paginator) {
@@ -1479,23 +1587,76 @@ type AnalyticsActions = {
1479
1587
  * ```
1480
1588
  */
1481
1589
  listTraderLeaderboard(request?: ListTraderLeaderboardRequest): Paginated<TraderLeaderboardEntry[]>;
1590
+ /**
1591
+ * Lists the largest individual winning positions.
1592
+ *
1593
+ * The board has one row per position, ranked by its resolution profit.
1594
+ * `window` applies to resolution time and defaults to one day; `category`
1595
+ * defaults to overall. Equal profits retain distinct row ordinals. Combo rows
1596
+ * have no parent event, so branch on `kind` before using event metadata.
1597
+ * `pageSize` defaults to 100 (max 1000).
1598
+ *
1599
+ * @throws {@link ListBiggestWinnersError}
1600
+ * Thrown on failure.
1601
+ *
1602
+ * @example
1603
+ * ```ts
1604
+ * const paginator = client.listBiggestWinners({
1605
+ * category: 'sports',
1606
+ * pageSize: 10,
1607
+ * window: LeaderboardWindow.Week,
1608
+ * });
1609
+ *
1610
+ * for await (const page of paginator) {
1611
+ * // page.items: BiggestWinner[]
1612
+ * }
1613
+ * ```
1614
+ */
1615
+ listBiggestWinners(request?: ListBiggestWinnersRequest): Paginated<BiggestWinner[]>;
1482
1616
  };
1483
1617
  declare function analyticsActions(client: BasePublicClient): AnalyticsActions;
1484
1618
  declare function analyticsActions(client: BaseSecureClient): AnalyticsActions;
1485
1619
 
1486
1620
  type DataActions = {
1487
1621
  /**
1488
- * Fetches live volume for an event.
1622
+ * Fetches cumulative taker volume for one or more events.
1623
+ *
1624
+ * Results contain one row per market, ordered by taker volume descending, and
1625
+ * a total across all returned markets. Volume is measured in shares. Event
1626
+ * IDs must be positive 32-bit integers. Transient rate limits are retried
1627
+ * automatically.
1489
1628
  *
1490
1629
  * @throws {@link FetchEventLiveVolumeError}
1491
1630
  * Thrown on failure.
1492
1631
  *
1493
1632
  * @example
1494
1633
  * ```ts
1495
- * const volume = await client.fetchEventLiveVolume({ id: '123' });
1634
+ * const volume = await client.fetchEventLiveVolume({
1635
+ * eventIds: ['160707'],
1636
+ * });
1496
1637
  * ```
1497
1638
  */
1498
- fetchEventLiveVolume(request: FetchEventLiveVolumeRequest): Promise<LiveVolume[]>;
1639
+ fetchEventLiveVolume(request: FetchEventLiveVolumeRequest): Promise<LiveVolume>;
1640
+ /**
1641
+ * Fetches resolution lifecycle rows by question, condition, or event.
1642
+ *
1643
+ * Provide exactly one selector. Condition and event lookups accept at most
1644
+ * 20 distinct IDs and return one row per matching condition. Missing
1645
+ * resolutions return an empty array. A 31-byte protocol v2 market condition
1646
+ * ID is right-padded to its canonical 32-byte form. A 31-byte combo condition
1647
+ * ID is rejected.
1648
+ *
1649
+ * @throws {@link FetchResolutionsError}
1650
+ * Thrown on failure.
1651
+ *
1652
+ * @example
1653
+ * ```ts
1654
+ * const resolutions = await client.fetchResolutions({
1655
+ * eventIds: ['903193'],
1656
+ * });
1657
+ * ```
1658
+ */
1659
+ fetchResolutions(request: FetchResolutionsRequest): Promise<Resolution[]>;
1499
1660
  /**
1500
1661
  * Fetches the midpoint price for an exchange asset as a decimal string.
1501
1662
  *
@@ -1625,17 +1786,37 @@ type DataActions = {
1625
1786
  */
1626
1787
  fetchLastTradePrices(request: FetchLastTradePricesRequest): Promise<LastTradePriceForAsset[]>;
1627
1788
  /**
1628
- * Fetches historical price points for an exchange asset.
1789
+ * Lists historical price observations for an exchange asset.
1629
1790
  *
1630
- * @throws {@link FetchPriceHistoryError}
1791
+ * Select exactly one time form: a relative `interval`, an explicit `start`
1792
+ * with optional `end`, or the latest observation at or before an `asOf`
1793
+ * instant. Time inputs accept Unix epoch seconds or `Date` values. When
1794
+ * `bucketSeconds` is omitted, resolution is selected automatically for the
1795
+ * requested window and reported on each point as `resolutionSeconds`. An
1796
+ * explicit bucket is used exactly as requested and may produce an empty series
1797
+ * when that resolution is unavailable for the window. Prices are decimal
1798
+ * strings and returned timestamps are Unix epoch milliseconds. Series pages
1799
+ * are ordered oldest first; an `asOf` request returns at most one item. Series
1800
+ * page sizes default to and are capped at 10,000 points. Transient rate limits
1801
+ * are retried automatically.
1802
+ *
1803
+ * @throws {@link ListPriceHistoryError}
1631
1804
  * Thrown on failure.
1632
1805
  *
1633
1806
  * @example
1634
1807
  * ```ts
1635
- * const history = await client.fetchPriceHistory({ assetId: '0x0122…0000', interval: '1d' });
1808
+ * const history = client.listPriceHistory({
1809
+ * assetId: '17023124228269928849020611259015948850061676830917875073785033885105715180702',
1810
+ * interval: PriceHistoryInterval.OneDay,
1811
+ * bucketSeconds: 3600,
1812
+ * });
1813
+ *
1814
+ * for await (const page of history) {
1815
+ * // page.items: PriceHistoryPoint[]
1816
+ * }
1636
1817
  * ```
1637
1818
  */
1638
- fetchPriceHistory(request: FetchPriceHistoryRequest): Promise<PriceHistoryPoint[]>;
1819
+ listPriceHistory(request: ListPriceHistoryRequest): Paginated<PriceHistoryPoint[]>;
1639
1820
  /**
1640
1821
  * Estimates the price level a market order would cross at current book depth.
1641
1822
  *
@@ -1656,36 +1837,65 @@ type DataActions = {
1656
1837
  */
1657
1838
  estimateMarketPrice(request: EstimateMarketPriceRequest): Promise<number>;
1658
1839
  /**
1659
- * Lists open interest for one or more markets.
1840
+ * Fetches priced gross open interest for selected markets or globally.
1841
+ *
1842
+ * `conditionIds` accepts up to 20 distinct market condition IDs. Omit it for
1843
+ * the global aggregate, whose `conditionId` is `null`. A requested servable
1844
+ * market with no holdings has a zero value; an absent row means the market
1845
+ * is not servable. Values are in USDC. Transient rate limits are retried
1846
+ * automatically.
1660
1847
  *
1661
- * @throws {@link ListOpenInterestError}
1848
+ * @throws {@link FetchOpenInterestError}
1662
1849
  * Thrown on failure.
1663
1850
  *
1664
1851
  * @example
1665
1852
  * ```ts
1666
- * const openInterest = await client.listOpenInterest({
1667
- * market: ['0xe546672750517f62c45a5a00067481981e62b9c20fa8220203232c9dc8fd2093'],
1853
+ * const openInterest = await client.fetchOpenInterest({
1854
+ * conditionIds: ['0xe546672750517f62c45a5a00067481981e62b9c20fa8220203232c9dc8fd2093'],
1668
1855
  * });
1669
1856
  * ```
1670
1857
  */
1671
- listOpenInterest(request?: ListOpenInterestRequest): Promise<OpenInterest[]>;
1858
+ fetchOpenInterest(request?: FetchOpenInterestRequest): Promise<OpenInterest[]>;
1672
1859
  /**
1673
- * Lists the top holders for one or more markets.
1860
+ * Lists top holders grouped by outcome for one or more markets.
1861
+ *
1862
+ * `conditionIds` accepts up to 20 distinct market condition IDs. `pageSize`
1863
+ * defaults to 100 (max 1000) and applies separately to each outcome. Merge
1864
+ * matching `assetId` groups across pages rather than relying on array position.
1865
+ * `minBalance` uses display shares and defaults to `0`; `1` means one share,
1866
+ * equivalent to 1,000,000 base units.
1867
+ * Amounts are net holdings by default. `includePnl` switches to per-outcome
1868
+ * gross holdings and adds position economics; it requires one condition ID and
1869
+ * a page size of at most 100. Transient rate limits are retried automatically.
1674
1870
  *
1675
1871
  * @throws {@link ListMarketHoldersError}
1676
1872
  * Thrown on failure.
1677
1873
  *
1678
1874
  * @example
1679
1875
  * ```ts
1680
- * const holders = await client.listMarketHolders({
1681
- * market: ['0xe546672750517f62c45a5a00067481981e62b9c20fa8220203232c9dc8fd2093'],
1682
- * limit: 5,
1876
+ * const result = client.listMarketHolders({
1877
+ * conditionIds: ['0xe546672750517f62c45a5a00067481981e62b9c20fa8220203232c9dc8fd2093'],
1878
+ * pageSize: 5,
1683
1879
  * });
1880
+ *
1881
+ * for await (const page of result) {
1882
+ * // page.items: MetaHolder[]
1883
+ * }
1684
1884
  * ```
1685
1885
  */
1686
- listMarketHolders(request: ListMarketHoldersRequest): Promise<MetaHolder[]>;
1886
+ listMarketHolders(request: ListMarketHoldersRequest): Paginated<MetaHolder[]>;
1687
1887
  /**
1688
- * Lists trades for a wallet, market, or event.
1888
+ * Lists trades for a wallet, market, or event — or the global recent-trades
1889
+ * feed when no filter is given.
1890
+ *
1891
+ * Only the taker side of each match is returned by default
1892
+ * (`takerOnly: false` includes maker rows), and a dust filter of 0.01
1893
+ * shares applies unless `filterType`/`filterAmount` say otherwise (either
1894
+ * may be sent alone). `conditionId` accepts at most 20 distinct ids. `pageSize`
1895
+ * defaults to 100 (max 1000). `window: 'full'` requests the complete
1896
+ * history; an omitted window serves the recent feed. Window bounds accept
1897
+ * Unix epoch seconds or `Date` values. Transient rate limits are retried
1898
+ * automatically.
1689
1899
  *
1690
1900
  * @throws {@link ListTradesError}
1691
1901
  * Thrown on failure.
@@ -2725,7 +2935,7 @@ declare class RfqQuoteRejectedError extends PolymarketError {
2725
2935
  }
2726
2936
  type RfqQuoteError = ConnectionLostError | RfqQuoteRejectedError | SigningError | TimeoutError | TransportError | UserInputError;
2727
2937
  declare const RfqQuoteError: {
2728
- isError(error: unknown): error is UserInputError | TransportError | ConnectionLostError | TimeoutError | SigningError | RfqQuoteRejectedError;
2938
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | ConnectionLostError | TimeoutError | RfqQuoteRejectedError;
2729
2939
  };
2730
2940
  type RfqCancelQuoteRejectedErrorOptions = {
2731
2941
  /** RFQ error code for the rejected cancellation request. */
@@ -2874,7 +3084,7 @@ interface RfqSession extends AsyncIterable<RfqEvent> {
2874
3084
  }
2875
3085
  type OpenRfqSessionError = ConnectionLostError | TransportError | UserInputError;
2876
3086
  declare const OpenRfqSessionError: {
2877
- isError(error: unknown): error is UserInputError | TransportError | ConnectionLostError;
3087
+ isError(error: unknown): error is TransportError | UserInputError | ConnectionLostError;
2878
3088
  };
2879
3089
  /**
2880
3090
  * Opens an RFQ event session.
@@ -2993,7 +3203,7 @@ type RequestComboQuoteResult = {
2993
3203
  };
2994
3204
  type RequestComboQuoteError = RateLimitError | RfqRequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
2995
3205
  declare const RequestComboQuoteError: {
2996
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RateLimitError | RfqRequestRejectedError;
3206
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RateLimitError | RfqRequestRejectedError;
2997
3207
  };
2998
3208
  /**
2999
3209
  * Requests a quote for a combo of positions.
@@ -3095,7 +3305,7 @@ type AcceptComboQuoteResult = {
3095
3305
  };
3096
3306
  type AcceptComboQuoteError = CancelledSigningError | RateLimitError | RfqRequestRejectedError | SigningError | TimeoutError | TransportError | UnexpectedResponseError | UserInputError;
3097
3307
  declare const AcceptComboQuoteError: {
3098
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RateLimitError | TimeoutError | CancelledSigningError | SigningError | RfqRequestRejectedError;
3308
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RateLimitError | TimeoutError | RfqRequestRejectedError;
3099
3309
  };
3100
3310
  /**
3101
3311
  * Accepts a self-contained combo quote, signing the acceptance order for the
@@ -3162,7 +3372,7 @@ type WaitForComboFillResult = {
3162
3372
  };
3163
3373
  type WaitForComboFillError = RateLimitError | RfqRequestRejectedError | TimeoutError | TransportError | UnexpectedResponseError | UserInputError;
3164
3374
  declare const WaitForComboFillError: {
3165
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RateLimitError | TimeoutError | RfqRequestRejectedError;
3375
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RateLimitError | TimeoutError | RfqRequestRejectedError;
3166
3376
  };
3167
3377
  /**
3168
3378
  * Waits for an accepted RFQ to reach a terminal state.
@@ -3202,7 +3412,7 @@ type FetchRfqStatusParams = {
3202
3412
  type RfqStatusResult = BuilderRfqStatusResponse;
3203
3413
  type FetchRfqStatusError = RateLimitError | RfqRequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
3204
3414
  declare const FetchRfqStatusError: {
3205
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RateLimitError | RfqRequestRejectedError;
3415
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RateLimitError | RfqRequestRejectedError;
3206
3416
  };
3207
3417
  /**
3208
3418
  * Fetches the status of an accepted RFQ.
@@ -3565,7 +3775,7 @@ declare const CancelOrdersRequestSchema: z.ZodObject<{
3565
3775
  type CancelOrderRequest = z.input<typeof CancelOrderRequestSchema>;
3566
3776
  type CancelOrderError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3567
3777
  declare const CancelOrderError: {
3568
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3778
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3569
3779
  };
3570
3780
  /**
3571
3781
  * Cancels a single open order for the authenticated account.
@@ -3589,7 +3799,7 @@ declare function cancelOrder(client: BaseSecureClient, request: CancelOrderReque
3589
3799
  type CancelOrdersRequest = z.input<typeof CancelOrdersRequestSchema>;
3590
3800
  type CancelOrdersError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3591
3801
  declare const CancelOrdersError: {
3592
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3802
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3593
3803
  };
3594
3804
  /**
3595
3805
  * Cancels multiple open orders for the authenticated account.
@@ -3612,7 +3822,7 @@ declare const CancelOrdersError: {
3612
3822
  declare function cancelOrders(client: BaseSecureClient, request: CancelOrdersRequest): Promise<CancelOrdersResponse>;
3613
3823
  type CancelAllError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError;
3614
3824
  declare const CancelAllError: {
3615
- isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3825
+ isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3616
3826
  };
3617
3827
  /**
3618
3828
  * Cancels all open orders for the authenticated account.
@@ -3644,7 +3854,7 @@ type CancelMarketOrdersRequest = {
3644
3854
  };
3645
3855
  type CancelMarketOrdersError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3646
3856
  declare const CancelMarketOrdersError: {
3647
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3857
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3648
3858
  };
3649
3859
  /**
3650
3860
  * Cancels all open orders for the authenticated account that match the market
@@ -3728,7 +3938,7 @@ type EstimateMarketSellPriceRequest = {
3728
3938
  type EstimateMarketPriceRequest = EstimateMarketBuyPriceRequest | EstimateMarketSellPriceRequest;
3729
3939
  type EstimateMarketPriceError = InsufficientLiquidityError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
3730
3940
  declare const EstimateMarketPriceError: {
3731
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | InsufficientLiquidityError;
3941
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | InsufficientLiquidityError;
3732
3942
  };
3733
3943
  /**
3734
3944
  * Estimates the price level a market order would cross at current book depth.
@@ -3911,11 +4121,11 @@ type OrderPostingWorkflow = AsyncGenerator<OrderWorkflowRequest, OrderResponse,
3911
4121
  type PostOrdersRequest = SignedOrder[];
3912
4122
  type PostOrderError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3913
4123
  declare const PostOrderError: {
3914
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
4124
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3915
4125
  };
3916
4126
  type PostOrdersError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3917
4127
  declare const PostOrdersError: {
3918
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
4128
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3919
4129
  };
3920
4130
  /**
3921
4131
  * Posts a signed order for the authenticated account.
@@ -3964,7 +4174,7 @@ type WaitForOrderFillSettlementRequest = {
3964
4174
  };
3965
4175
  type WaitForOrderFillSettlementError = RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
3966
4176
  declare const WaitForOrderFillSettlementError: {
3967
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | SigningError;
4177
+ isError(error: unknown): error is SigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
3968
4178
  };
3969
4179
  /**
3970
4180
  * Waits until every fill listed in an order response reaches a terminal
@@ -4929,7 +5139,7 @@ type SecureClientOptions = PublicClientOptions & {
4929
5139
  declare function createPublicClient(options?: PublicClientOptions): PublicClient<PublicActions, SecureActions>;
4930
5140
  type CreateSecureClientError = CancelledSigningError | DeployDepositWalletError | IsWalletDeployedError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError | WaitForGaslessTransactionError;
4931
5141
  declare const CreateSecureClientError: {
4932
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
5142
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
4933
5143
  };
4934
5144
  type SetupGaslessWalletError = UserInputError;
4935
5145
  declare const SetupGaslessWalletError: {
@@ -4952,7 +5162,7 @@ declare function createSecureClient(options: SecureClientOptions): Promise<Secur
4952
5162
 
4953
5163
  type FetchClosedOnlyModeError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
4954
5164
  declare const FetchClosedOnlyModeError: {
4955
- isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5165
+ isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4956
5166
  };
4957
5167
  /**
4958
5168
  * Fetches whether the account is restricted to closed-only trading.
@@ -4985,7 +5195,7 @@ type ListOpenOrdersRequest = {
4985
5195
  };
4986
5196
  type ListOpenOrdersError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
4987
5197
  declare const ListOpenOrdersError: {
4988
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5198
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4989
5199
  };
4990
5200
  /**
4991
5201
  * Lists open orders for the authenticated account across all pages.
@@ -5029,7 +5239,7 @@ declare const FetchOrderRequestSchema: z.ZodObject<{
5029
5239
  type FetchOrderRequest = z.input<typeof FetchOrderRequestSchema>;
5030
5240
  type FetchOrderError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5031
5241
  declare const FetchOrderError: {
5032
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5242
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5033
5243
  };
5034
5244
  /**
5035
5245
  * Fetches a single order for the authenticated account.
@@ -5070,7 +5280,7 @@ type ListAccountTradesRequest = {
5070
5280
  };
5071
5281
  type ListAccountTradesError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5072
5282
  declare const ListAccountTradesError: {
5073
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5283
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5074
5284
  };
5075
5285
  /**
5076
5286
  * Lists trades for the authenticated account across all pages.
@@ -5110,7 +5320,7 @@ declare const ListAccountTradesError: {
5110
5320
  declare function listAccountTrades(client: BaseSecureClient, request?: ListAccountTradesRequest): Paginated<ClobTrade[]>;
5111
5321
  type FetchNotificationsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
5112
5322
  declare const FetchNotificationsError: {
5113
- isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5323
+ isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5114
5324
  };
5115
5325
  declare const DropNotificationsRequestSchema: z.ZodObject<{
5116
5326
  ids: z.ZodArray<z.ZodString>;
@@ -5133,7 +5343,7 @@ type DropNotificationsRequest = z.input<typeof DropNotificationsRequestSchema>;
5133
5343
  declare function fetchNotifications(client: BaseSecureClient): Promise<NotificationsResponse>;
5134
5344
  type DropNotificationsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5135
5345
  declare const DropNotificationsError: {
5136
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5346
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5137
5347
  };
5138
5348
  /**
5139
5349
  * Drops notifications for the authenticated account.
@@ -5165,7 +5375,7 @@ type FetchBalanceAllowanceRequest = {
5165
5375
  };
5166
5376
  type FetchBalanceAllowanceError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5167
5377
  declare const FetchBalanceAllowanceError: {
5168
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5378
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5169
5379
  };
5170
5380
  /**
5171
5381
  * Fetches balance and allowance for the authenticated account.
@@ -5197,7 +5407,7 @@ type UpdateBalanceAllowanceRequest = {
5197
5407
  };
5198
5408
  type UpdateBalanceAllowanceError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5199
5409
  declare const UpdateBalanceAllowanceError: {
5200
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5410
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5201
5411
  };
5202
5412
  /**
5203
5413
  * Refreshes balance and allowance for the authenticated account.
@@ -5222,7 +5432,7 @@ declare const FetchOrderScoringRequestSchema: z.ZodObject<{
5222
5432
  type FetchOrderScoringRequest = z.input<typeof FetchOrderScoringRequestSchema>;
5223
5433
  type FetchOrderScoringError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5224
5434
  declare const FetchOrderScoringError: {
5225
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5435
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5226
5436
  };
5227
5437
  /**
5228
5438
  * Fetches whether a single order is currently scoring.
@@ -5246,7 +5456,7 @@ declare const FetchOrdersScoringRequestSchema: z.ZodObject<{
5246
5456
  type FetchOrdersScoringRequest = z.input<typeof FetchOrdersScoringRequestSchema>;
5247
5457
  type FetchOrdersScoringError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5248
5458
  declare const FetchOrdersScoringError: {
5249
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5459
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5250
5460
  };
5251
5461
  /**
5252
5462
  * Fetches scoring state for multiple orders.
@@ -5271,7 +5481,7 @@ declare const ListUserEarningsForDayRequestSchema: z.ZodObject<{
5271
5481
  type ListUserEarningsForDayRequest = z.input<typeof ListUserEarningsForDayRequestSchema>;
5272
5482
  type ListUserEarningsForDayError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5273
5483
  declare const ListUserEarningsForDayError: {
5274
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5484
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5275
5485
  };
5276
5486
  /**
5277
5487
  * Lists per-market earnings for the authenticated account on a given day.
@@ -5312,7 +5522,7 @@ declare function listUserEarningsForDay(client: BaseSecureClient, request: ListU
5312
5522
  type FetchTotalEarningsForUserForDayRequest = z.input<typeof ListUserEarningsForDayRequestSchema>;
5313
5523
  type FetchTotalEarningsForUserForDayError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5314
5524
  declare const FetchTotalEarningsForUserForDayError: {
5315
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5525
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5316
5526
  };
5317
5527
  /**
5318
5528
  * Fetches total earnings for the authenticated account on a given day.
@@ -5341,7 +5551,7 @@ declare const ListUserEarningsAndMarketsConfigRequestSchema: z.ZodObject<{
5341
5551
  type ListUserEarningsAndMarketsConfigRequest = z.input<typeof ListUserEarningsAndMarketsConfigRequestSchema>;
5342
5552
  type ListUserEarningsAndMarketsConfigError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5343
5553
  declare const ListUserEarningsAndMarketsConfigError: {
5344
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5554
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5345
5555
  };
5346
5556
  /**
5347
5557
  * Lists market reward configuration and earnings for the authenticated account on a given day.
@@ -5381,7 +5591,7 @@ declare const ListUserEarningsAndMarketsConfigError: {
5381
5591
  declare function listUserEarningsAndMarketsConfig(client: BaseSecureClient, request: ListUserEarningsAndMarketsConfigRequest): Paginated<UserRewardsEarning[]>;
5382
5592
  type FetchRewardPercentagesError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
5383
5593
  declare const FetchRewardPercentagesError: {
5384
- isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5594
+ isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5385
5595
  };
5386
5596
  /**
5387
5597
  * Fetches reward percentages for the authenticated account.
@@ -5432,7 +5642,7 @@ declare const PrepareErc20ApprovalError: {
5432
5642
  declare function prepareErc20Approval(client: BaseSecureClient, request: PrepareErc20ApprovalRequest): Promise<Erc20ApprovalWorkflow>;
5433
5643
  type ApproveErc20Error = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
5434
5644
  declare const ApproveErc20Error: {
5435
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
5645
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5436
5646
  };
5437
5647
  /**
5438
5648
  * Approves ERC-20 token spending for the authenticated account.
@@ -5477,7 +5687,7 @@ declare const PrepareErc1155ApprovalForAllError: {
5477
5687
  declare function prepareErc1155ApprovalForAll(client: BaseSecureClient, request: PrepareErc1155ApprovalForAllRequest): Promise<Erc1155ApprovalForAllWorkflow>;
5478
5688
  type ApproveErc1155ForAllError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
5479
5689
  declare const ApproveErc1155ForAllError: {
5480
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
5690
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5481
5691
  };
5482
5692
  /**
5483
5693
  * Approves or revokes ERC-1155 operator access for the authenticated account.
@@ -5493,7 +5703,7 @@ type TradingApprovalsWorkflowRequest = GaslessWorkflowRequest | SendErc20Approva
5493
5703
  type TradingApprovalsWorkflow = AsyncGenerator<TradingApprovalsWorkflowRequest, void, EvmAddress$1 | EvmSignature | TransactionHandle>;
5494
5704
  type PrepareTradingApprovalsError = RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5495
5705
  declare const PrepareTradingApprovalsError: {
5496
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError;
5706
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError;
5497
5707
  };
5498
5708
  /** An ERC-20 allowance required for supported trading workflows. */
5499
5709
  type Erc20TradingApproval = {
@@ -5532,7 +5742,7 @@ type TradingApprovalsState = {
5532
5742
  };
5533
5743
  type FetchTradingApprovalsStateError = RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5534
5744
  declare const FetchTradingApprovalsStateError: {
5535
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError;
5745
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError;
5536
5746
  };
5537
5747
  /**
5538
5748
  * Reads the approvals a wallet is missing for supported trading workflows.
@@ -5572,7 +5782,7 @@ declare function fetchTradingApprovalsState(client: BaseClient, request: FetchTr
5572
5782
  declare function prepareTradingApprovals(client: BaseSecureClient): Promise<TradingApprovalsWorkflow>;
5573
5783
  type SetupTradingApprovalsError = PrepareTradingApprovalsError | CancelledSigningError | SigningError | WaitForGaslessTransactionError;
5574
5784
  declare const SetupTradingApprovalsError: {
5575
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
5785
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
5576
5786
  };
5577
5787
  /**
5578
5788
  * Sets up the approvals required for trading.
@@ -5608,7 +5818,7 @@ type ListBuilderTradesRequest = {
5608
5818
  };
5609
5819
  type ListBuilderTradesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5610
5820
  declare const ListBuilderTradesError: {
5611
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5821
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5612
5822
  };
5613
5823
  /**
5614
5824
  * Lists builder-attributed trades.
@@ -5655,7 +5865,7 @@ type FetchMidpointRequest = {
5655
5865
  };
5656
5866
  type FetchMidpointError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5657
5867
  declare const FetchMidpointError: {
5658
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5868
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5659
5869
  };
5660
5870
  /**
5661
5871
  * Fetches the midpoint price for an exchange asset as a decimal string.
@@ -5688,7 +5898,7 @@ type FetchMidpointsRequest = Array<{
5688
5898
  }>;
5689
5899
  type FetchMidpointsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5690
5900
  declare const FetchMidpointsError: {
5691
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5901
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5692
5902
  };
5693
5903
  /**
5694
5904
  * Fetches midpoint prices for multiple exchange assets as an asset ID keyed lookup.
@@ -5723,7 +5933,7 @@ type FetchTickSizeRequest = {
5723
5933
  };
5724
5934
  type FetchTickSizeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5725
5935
  declare const FetchTickSizeError: {
5726
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5936
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5727
5937
  };
5728
5938
  /**
5729
5939
  * Fetches the minimum price tick size for an exchange asset's order book.
@@ -5755,7 +5965,7 @@ type FetchNegRiskRequest = {
5755
5965
  };
5756
5966
  type FetchNegRiskError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5757
5967
  declare const FetchNegRiskError: {
5758
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5968
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5759
5969
  };
5760
5970
  /**
5761
5971
  * Fetches whether an exchange asset is in a negative-risk market.
@@ -5787,7 +5997,7 @@ type ResolveConditionByTokenRequest = {
5787
5997
  };
5788
5998
  type ResolveConditionByTokenError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5789
5999
  declare const ResolveConditionByTokenError: {
5790
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6000
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5791
6001
  };
5792
6002
  /**
5793
6003
  * Resolves the condition ID for an exchange asset.
@@ -5805,7 +6015,7 @@ declare const FetchMarketInfoRequestSchema: z.ZodObject<{
5805
6015
  type FetchMarketInfoRequest = z.input<typeof FetchMarketInfoRequestSchema>;
5806
6016
  type FetchMarketInfoError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5807
6017
  declare const FetchMarketInfoError: {
5808
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6018
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5809
6019
  };
5810
6020
  /**
5811
6021
  * Fetches market-level metadata for a condition.
@@ -5823,7 +6033,7 @@ declare const FetchBuilderFeeRatesRequestSchema: z.ZodObject<{
5823
6033
  type FetchBuilderFeeRatesRequest = z.input<typeof FetchBuilderFeeRatesRequestSchema>;
5824
6034
  type FetchBuilderFeeRatesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5825
6035
  declare const FetchBuilderFeeRatesError: {
5826
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6036
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5827
6037
  };
5828
6038
  /**
5829
6039
  * Fetches builder maker and taker fee rates.
@@ -5848,7 +6058,7 @@ type FetchPriceRequest = {
5848
6058
  };
5849
6059
  type FetchPriceError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5850
6060
  declare const FetchPriceError: {
5851
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6061
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5852
6062
  };
5853
6063
  /**
5854
6064
  * Fetches the current quoted price for an exchange asset and side as a decimal string.
@@ -5884,7 +6094,7 @@ type FetchPricesRequest = Array<{
5884
6094
  }>;
5885
6095
  type FetchPricesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5886
6096
  declare const FetchPricesError: {
5887
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6097
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5888
6098
  };
5889
6099
  /**
5890
6100
  * Fetches quoted prices for multiple exchange assets as an asset ID keyed lookup.
@@ -5920,7 +6130,7 @@ type FetchOrderBookRequest = {
5920
6130
  };
5921
6131
  type FetchOrderBookError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5922
6132
  declare const FetchOrderBookError: {
5923
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6133
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5924
6134
  };
5925
6135
  /**
5926
6136
  * Fetches the current order book for an exchange asset.
@@ -5952,7 +6162,7 @@ type FetchOrderBooksRequest = Array<{
5952
6162
  }>;
5953
6163
  type FetchOrderBooksError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5954
6164
  declare const FetchOrderBooksError: {
5955
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6165
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5956
6166
  };
5957
6167
  /**
5958
6168
  * Fetches order books for multiple exchange assets.
@@ -5986,7 +6196,7 @@ type FetchSpreadRequest = {
5986
6196
  };
5987
6197
  type FetchSpreadError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5988
6198
  declare const FetchSpreadError: {
5989
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6199
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5990
6200
  };
5991
6201
  /**
5992
6202
  * Fetches the spread for an exchange asset as a decimal string.
@@ -6019,7 +6229,7 @@ type FetchSpreadsRequest = Array<{
6019
6229
  }>;
6020
6230
  type FetchSpreadsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6021
6231
  declare const FetchSpreadsError: {
6022
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6232
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6023
6233
  };
6024
6234
  /**
6025
6235
  * Fetches spreads for multiple exchange assets as an asset ID keyed lookup.
@@ -6054,7 +6264,7 @@ type FetchLastTradePriceRequest = {
6054
6264
  };
6055
6265
  type FetchLastTradePriceError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6056
6266
  declare const FetchLastTradePriceError: {
6057
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6267
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6058
6268
  };
6059
6269
  /**
6060
6270
  * Fetches the last traded price for an exchange asset.
@@ -6089,7 +6299,7 @@ type FetchLastTradePricesRequest = Array<{
6089
6299
  }>;
6090
6300
  type FetchLastTradePricesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6091
6301
  declare const FetchLastTradePricesError: {
6092
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6302
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6093
6303
  };
6094
6304
  /**
6095
6305
  * Fetches last traded prices for multiple exchange assets.
@@ -6112,49 +6322,6 @@ declare const FetchLastTradePricesError: {
6112
6322
  *
6113
6323
  */
6114
6324
  declare function fetchLastTradePrices(client: BaseClient, request: FetchLastTradePricesRequest): Promise<LastTradePriceForAsset[]>;
6115
- type FetchPriceHistoryRequest = {
6116
- /** Identifier for a CTF token or Polymarket V2 position. */
6117
- assetId: string;
6118
- tokenId?: never;
6119
- startTs?: number;
6120
- endTs?: number;
6121
- fidelity?: number;
6122
- interval?: PriceHistoryInterval;
6123
- } | {
6124
- assetId?: never;
6125
- /** @deprecated Use `assetId`. */
6126
- tokenId: string;
6127
- startTs?: number;
6128
- endTs?: number;
6129
- fidelity?: number;
6130
- interval?: PriceHistoryInterval;
6131
- };
6132
- type FetchPriceHistoryError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6133
- declare const FetchPriceHistoryError: {
6134
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6135
- };
6136
- /**
6137
- * Fetches historical price points for an exchange asset.
6138
- *
6139
- * @remarks
6140
- * This is a low-level function. Most SDK consumers should prefer the client instance API.
6141
- *
6142
- * @throws {@link FetchPriceHistoryError}
6143
- * Thrown on failure.
6144
- *
6145
- * @example
6146
- * ```ts
6147
- * const history = await fetchPriceHistory(client, {
6148
- * assetId: '0x0122…0000',
6149
- * interval: PriceHistoryInterval.ONE_DAY,
6150
- * fidelity: 60,
6151
- * });
6152
- *
6153
- * // history === PriceHistoryPoint[]
6154
- * ```
6155
- *
6156
- */
6157
- declare function fetchPriceHistory(client: BaseClient, request: FetchPriceHistoryRequest): Promise<PriceHistoryPoint[]>;
6158
6325
  declare const ListCurrentRewardsRequestSchema: z.ZodDefault<z.ZodObject<{
6159
6326
  cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
6160
6327
  sponsored: z.ZodOptional<z.ZodBoolean>;
@@ -6162,7 +6329,7 @@ declare const ListCurrentRewardsRequestSchema: z.ZodDefault<z.ZodObject<{
6162
6329
  type ListCurrentRewardsRequest = z.input<typeof ListCurrentRewardsRequestSchema>;
6163
6330
  type ListCurrentRewardsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6164
6331
  declare const ListCurrentRewardsError: {
6165
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6332
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6166
6333
  };
6167
6334
  /**
6168
6335
  * Lists current active market rewards.
@@ -6205,7 +6372,7 @@ declare const ListMarketRewardsRequestSchema: z.ZodObject<{
6205
6372
  type ListMarketRewardsRequest = z.input<typeof ListMarketRewardsRequestSchema>;
6206
6373
  type ListMarketRewardsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6207
6374
  declare const ListMarketRewardsError: {
6208
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6375
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6209
6376
  };
6210
6377
  /**
6211
6378
  * Lists reward configurations for a market.
@@ -6249,7 +6416,7 @@ declare function listMarketRewards(client: BaseClient, request: ListMarketReward
6249
6416
 
6250
6417
  type PlanCollateralReturnError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError;
6251
6418
  declare const PlanCollateralReturnError: {
6252
- isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6419
+ isError(error: unknown): error is TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6253
6420
  };
6254
6421
  /**
6255
6422
  * Plans a collateral return for the authenticated account.
@@ -6279,7 +6446,7 @@ type ExecuteCollateralReturnPlanRequest = z.infer<typeof ExecuteCollateralReturn
6279
6446
  type CollateralReturnExecutionWorkflow = AsyncGenerator<GaslessWorkflowRequest, TransactionHandle, EvmAddress$1 | EvmSignature | TransactionHandle>;
6280
6447
  type PrepareCollateralReturnExecutionError = RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6281
6448
  declare const PrepareCollateralReturnExecutionError: {
6282
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError;
6449
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError;
6283
6450
  };
6284
6451
  /**
6285
6452
  * Starts a collateral return execution workflow for a previously requested
@@ -6296,7 +6463,7 @@ declare const PrepareCollateralReturnExecutionError: {
6296
6463
  declare function prepareCollateralReturnExecution(client: BaseSecureClient, request: ExecuteCollateralReturnPlanRequest): Promise<CollateralReturnExecutionWorkflow>;
6297
6464
  type ExecuteCollateralReturnPlanError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
6298
6465
  declare const ExecuteCollateralReturnPlanError: {
6299
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
6466
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6300
6467
  };
6301
6468
  /**
6302
6469
  * Executes a collateral return plan for the authenticated account.
@@ -6335,7 +6502,7 @@ type FetchCommentsByIdRequest = z.input<typeof FetchCommentsByIdRequestSchema>;
6335
6502
  type ListCommentsByUserAddressRequest = z.input<typeof ListCommentsByUserAddressRequestSchema>;
6336
6503
  type ListCommentsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6337
6504
  declare const ListCommentsError: {
6338
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6505
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6339
6506
  };
6340
6507
  /**
6341
6508
  * Lists comments for an event or series.
@@ -6380,7 +6547,7 @@ declare const ListCommentsError: {
6380
6547
  declare function listComments(client: BaseClient, request: ListCommentsRequest): Paginated<Comment[]>;
6381
6548
  type FetchCommentsByIdError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6382
6549
  declare const FetchCommentsByIdError: {
6383
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6550
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6384
6551
  };
6385
6552
  /**
6386
6553
  * Fetches a comment thread by comment id.
@@ -6404,7 +6571,7 @@ declare const FetchCommentsByIdError: {
6404
6571
  declare function fetchCommentsById(client: BaseClient, request: FetchCommentsByIdRequest): Promise<Comment[]>;
6405
6572
  type ListCommentsByUserAddressError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6406
6573
  declare const ListCommentsByUserAddressError: {
6407
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6574
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6408
6575
  };
6409
6576
  /**
6410
6577
  * Lists comments written by a wallet address.
@@ -6522,13 +6689,9 @@ declare const FetchEventTagsRequestSchema: z.ZodObject<{
6522
6689
  id: z.ZodString;
6523
6690
  }, z.core.$strip>;
6524
6691
  type FetchEventTagsRequest = z.input<typeof FetchEventTagsRequestSchema>;
6525
- declare const FetchEventLiveVolumeRequestSchema: z.ZodObject<{
6526
- id: z.ZodString;
6527
- }, z.core.$strip>;
6528
- type FetchEventLiveVolumeRequest = z.input<typeof FetchEventLiveVolumeRequestSchema>;
6529
6692
  type ListEventsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6530
6693
  declare const ListEventsError: {
6531
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6694
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6532
6695
  };
6533
6696
  /**
6534
6697
  * Lists events.
@@ -6573,7 +6736,7 @@ declare const ListEventsError: {
6573
6736
  declare function listEvents(client: BaseClient, request?: ListEventsRequest): Paginated<Event[]>;
6574
6737
  type FetchEventError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6575
6738
  declare const FetchEventError: {
6576
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6739
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6577
6740
  };
6578
6741
  /**
6579
6742
  * Fetches an event.
@@ -6604,7 +6767,7 @@ declare const FetchEventError: {
6604
6767
  declare function fetchEvent(client: BaseClient, request: FetchEventRequest): Promise<Event>;
6605
6768
  type FetchEventTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6606
6769
  declare const FetchEventTagsError: {
6607
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6770
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6608
6771
  };
6609
6772
  /**
6610
6773
  * Fetches an event's tags.
@@ -6625,12 +6788,66 @@ declare const FetchEventTagsError: {
6625
6788
  * ```
6626
6789
  */
6627
6790
  declare function fetchEventTags(client: BaseClient, request: FetchEventTagsRequest): Promise<TagReference[]>;
6791
+ type FetchResolutionsByQuestionRequest = {
6792
+ questionId: string;
6793
+ conditionIds?: never;
6794
+ eventIds?: never;
6795
+ };
6796
+ type FetchResolutionsByConditionRequest = {
6797
+ questionId?: never;
6798
+ conditionIds: string[];
6799
+ eventIds?: never;
6800
+ };
6801
+ type FetchResolutionsByEventRequest = {
6802
+ questionId?: never;
6803
+ conditionIds?: never;
6804
+ eventIds: Array<number | string>;
6805
+ };
6806
+ type FetchResolutionsRequest = FetchResolutionsByQuestionRequest | FetchResolutionsByConditionRequest | FetchResolutionsByEventRequest;
6807
+ type FetchResolutionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6808
+ declare const FetchResolutionsError: {
6809
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6810
+ };
6811
+ /**
6812
+ * Fetches resolution lifecycle rows by question, condition, or event.
6813
+ *
6814
+ * Provide exactly one selector. Condition and event lookups accept at most 20
6815
+ * distinct IDs and return one row per matching condition. Missing resolutions
6816
+ * return an empty array. A 31-byte protocol v2 market condition ID is
6817
+ * right-padded to its canonical 32-byte form. A 31-byte combo condition ID is
6818
+ * rejected.
6819
+ *
6820
+ * @remarks
6821
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
6822
+ *
6823
+ * @throws {@link FetchResolutionsError}
6824
+ * Thrown on failure.
6825
+ *
6826
+ * @example
6827
+ * ```ts
6828
+ * const resolutions = await fetchResolutions(client, {
6829
+ * eventIds: ['903193'],
6830
+ * });
6831
+ *
6832
+ * // resolutions: Resolution[]
6833
+ * ```
6834
+ */
6835
+ declare function fetchResolutions(client: BaseClient, request: FetchResolutionsRequest): Promise<Resolution[]>;
6836
+ declare const FetchEventLiveVolumeRequestSchema: z.ZodObject<{
6837
+ eventIds: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>, z.ZodTransform<_polymarket_bindings.EventId, string>>>, z.ZodTransform<_polymarket_bindings.EventId[], _polymarket_bindings.EventId[]>>;
6838
+ }, z.core.$strip>;
6839
+ type FetchEventLiveVolumeRequest = z.input<typeof FetchEventLiveVolumeRequestSchema>;
6628
6840
  type FetchEventLiveVolumeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6629
6841
  declare const FetchEventLiveVolumeError: {
6630
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6842
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6631
6843
  };
6632
6844
  /**
6633
- * Fetches live volume for an event.
6845
+ * Fetches cumulative taker volume for one or more events.
6846
+ *
6847
+ * Results contain one row per market, ordered by taker volume descending, and
6848
+ * a total across all returned markets. Volume is measured in shares. Event IDs
6849
+ * must be positive 32-bit integers. Transient rate limits are retried
6850
+ * automatically.
6634
6851
  *
6635
6852
  * @remarks
6636
6853
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
@@ -6641,70 +6858,32 @@ declare const FetchEventLiveVolumeError: {
6641
6858
  * @example
6642
6859
  * ```ts
6643
6860
  * const volume = await fetchEventLiveVolume(client, {
6644
- * id: '160707',
6861
+ * eventIds: ['160707'],
6645
6862
  * });
6646
6863
  *
6647
- * // volume: LiveVolume[]
6864
+ * // volume: LiveVolume
6648
6865
  * ```
6649
6866
  */
6650
- declare function fetchEventLiveVolume(client: BaseClient, request: FetchEventLiveVolumeRequest): Promise<LiveVolume[]>;
6867
+ declare function fetchEventLiveVolume(client: BaseClient, request: FetchEventLiveVolumeRequest): Promise<LiveVolume>;
6651
6868
 
6652
6869
  declare const ListBuilderLeaderboardRequestSchema: z.ZodObject<{
6653
6870
  cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
6654
6871
  pageSize: z.ZodDefault<z.ZodNumber>;
6655
- timePeriod: z.ZodOptional<z.ZodEnum<{
6656
- ALL: "ALL";
6657
- DAY: "DAY";
6658
- WEEK: "WEEK";
6659
- MONTH: "MONTH";
6660
- }>>;
6661
- }, z.core.$strip>;
6662
- declare const ListBuilderVolumeRequestSchema: z.ZodObject<{
6663
- timePeriod: z.ZodOptional<z.ZodEnum<{
6664
- ALL: "ALL";
6665
- DAY: "DAY";
6666
- WEEK: "WEEK";
6667
- MONTH: "MONTH";
6668
- }>>;
6669
- }, z.core.$strip>;
6670
- declare const ListTraderLeaderboardRequestSchema: z.ZodObject<{
6671
- category: z.ZodOptional<z.ZodEnum<{
6672
- OVERALL: "OVERALL";
6673
- POLITICS: "POLITICS";
6674
- SPORTS: "SPORTS";
6675
- CRYPTO: "CRYPTO";
6676
- CULTURE: "CULTURE";
6677
- MENTIONS: "MENTIONS";
6678
- WEATHER: "WEATHER";
6679
- ECONOMICS: "ECONOMICS";
6680
- TECH: "TECH";
6681
- FINANCE: "FINANCE";
6682
- }>>;
6683
- cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
6684
- pageSize: z.ZodDefault<z.ZodNumber>;
6685
- timePeriod: z.ZodOptional<z.ZodEnum<{
6686
- ALL: "ALL";
6687
- DAY: "DAY";
6688
- WEEK: "WEEK";
6689
- MONTH: "MONTH";
6690
- }>>;
6691
- orderBy: z.ZodOptional<z.ZodEnum<{
6692
- PNL: "PNL";
6693
- VOL: "VOL";
6694
- }>>;
6695
- user: z.ZodOptional<z.ZodString>;
6696
- userName: z.ZodOptional<z.ZodString>;
6872
+ window: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.LeaderboardWindow>>;
6697
6873
  }, z.core.$strip>;
6698
6874
  type ListBuilderLeaderboardRequest = z.input<typeof ListBuilderLeaderboardRequestSchema>;
6699
- type ListBuilderVolumeRequest = z.input<typeof ListBuilderVolumeRequestSchema>;
6700
- type ListTraderLeaderboardRequest = z.input<typeof ListTraderLeaderboardRequestSchema>;
6701
6875
  type ListBuilderLeaderboardError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6702
6876
  declare const ListBuilderLeaderboardError: {
6703
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6877
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6704
6878
  };
6705
6879
  /**
6706
6880
  * Lists builder leaderboard rankings.
6707
6881
  *
6882
+ * Builders are ranked by attributed share volume within `window`, which
6883
+ * defaults to one day. `builderCode` is the stable identifier; names and
6884
+ * profile images are display metadata. `pageSize` defaults to 100 (max 1000).
6885
+ * Transient rate limits are retried automatically.
6886
+ *
6708
6887
  * @remarks
6709
6888
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
6710
6889
  *
@@ -6716,14 +6895,14 @@ declare const ListBuilderLeaderboardError: {
6716
6895
  * ```ts
6717
6896
  * const result = listBuilderLeaderboard(client, {
6718
6897
  * pageSize: 10,
6719
- * timePeriod: 'DAY',
6898
+ * window: LeaderboardWindow.Day,
6720
6899
  * });
6721
6900
  *
6722
6901
  * const firstPage = await result.firstPage();
6723
6902
  *
6724
6903
  * // Optionally, fetch additional pages:
6725
6904
  * for await (const page of result.from(firstPage.nextCursor)) {
6726
- * // page.items: LeaderboardEntry[]
6905
+ * // page.items: BuilderStanding[]
6727
6906
  * }
6728
6907
  * ```
6729
6908
  *
@@ -6732,45 +6911,70 @@ declare const ListBuilderLeaderboardError: {
6732
6911
  * ```ts
6733
6912
  * const result = listBuilderLeaderboard(client, {
6734
6913
  * pageSize: 10,
6735
- * timePeriod: 'DAY',
6914
+ * window: LeaderboardWindow.Day,
6736
6915
  * });
6737
6916
  *
6738
6917
  * for await (const page of result) {
6739
- * // page.items: LeaderboardEntry[]
6918
+ * // page.items: BuilderStanding[]
6740
6919
  * }
6741
6920
  * ```
6742
6921
  */
6743
- declare function listBuilderLeaderboard(client: BaseClient, request?: ListBuilderLeaderboardRequest): Paginated<LeaderboardEntry[]>;
6744
- type ListBuilderVolumeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6745
- declare const ListBuilderVolumeError: {
6746
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6922
+ declare function listBuilderLeaderboard(client: BaseClient, request?: ListBuilderLeaderboardRequest): Paginated<BuilderStanding[]>;
6923
+ declare const FetchBuilderVolumeRequestSchema: z.ZodObject<{
6924
+ interval: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.BuilderVolumeInterval>>;
6925
+ bucketLimit: z.ZodOptional<z.ZodNumber>;
6926
+ }, z.core.$strip>;
6927
+ type FetchBuilderVolumeRequest = z.input<typeof FetchBuilderVolumeRequestSchema>;
6928
+ type FetchBuilderVolumeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6929
+ declare const FetchBuilderVolumeError: {
6930
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6747
6931
  };
6748
6932
  /**
6749
- * Lists daily builder volume entries.
6933
+ * Fetches the per-builder volume time series.
6934
+ *
6935
+ * `interval` controls bucket width and defaults to daily; use
6936
+ * {@link BuilderVolumeInterval.Year} for one bucket per calendar year.
6937
+ * `bucketLimit` returns that many complete recent buckets (default 30, max 90),
6938
+ * not that many builder rows. Results are newest bucket first, and volume is
6939
+ * measured in shares. Transient rate limits are retried automatically.
6750
6940
  *
6751
6941
  * @remarks
6752
6942
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
6753
6943
  *
6754
- * @throws {@link ListBuilderVolumeError}
6944
+ * @throws {@link FetchBuilderVolumeError}
6755
6945
  * Thrown on failure.
6756
6946
  *
6757
6947
  * @example
6758
6948
  * ```ts
6759
6949
  * const volume = await fetchBuilderVolume(client, {
6760
- * timePeriod: 'DAY',
6950
+ * interval: BuilderVolumeInterval.Day,
6951
+ * bucketLimit: 7,
6761
6952
  * });
6762
6953
  *
6763
- * // volume: BuilderVolumeEntry[]
6954
+ * // volume: BuilderVolumePoint[]
6764
6955
  * ```
6765
6956
  */
6766
- declare function fetchBuilderVolume(client: BaseClient, request?: ListBuilderVolumeRequest): Promise<BuilderVolumeEntry[]>;
6957
+ declare function fetchBuilderVolume(client: BaseClient, request?: FetchBuilderVolumeRequest): Promise<BuilderVolumePoint[]>;
6958
+ declare const ListTraderLeaderboardRequestSchema: z.ZodObject<{
6959
+ category: z.ZodOptional<z.ZodString>;
6960
+ cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
6961
+ pageSize: z.ZodDefault<z.ZodNumber>;
6962
+ sortBy: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.TraderLeaderboardSort>>;
6963
+ window: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.LeaderboardWindow>>;
6964
+ }, z.core.$strip>;
6965
+ type ListTraderLeaderboardRequest = z.input<typeof ListTraderLeaderboardRequestSchema>;
6767
6966
  type ListTraderLeaderboardError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6768
6967
  declare const ListTraderLeaderboardError: {
6769
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6968
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6770
6969
  };
6771
6970
  /**
6772
6971
  * Lists trader leaderboard rankings.
6773
6972
  *
6973
+ * `window` defaults to one day, `category` to overall, and `sortBy` to PnL.
6974
+ * Finite-window PnL is marked equity change net of flows, while all-time PnL
6975
+ * is realized only. Volume is measured in shares. Tied traders share a rank
6976
+ * and the next rank skips. `pageSize` defaults to 100 (max 1000).
6977
+ *
6774
6978
  * @remarks
6775
6979
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
6776
6980
  *
@@ -6781,9 +6985,9 @@ declare const ListTraderLeaderboardError: {
6781
6985
  * Fetch the first page of results:
6782
6986
  * ```ts
6783
6987
  * const result = listTraderLeaderboard(client, {
6784
- * orderBy: 'PNL',
6785
6988
  * pageSize: 10,
6786
- * timePeriod: 'DAY',
6989
+ * sortBy: TraderLeaderboardSort.Pnl,
6990
+ * window: LeaderboardWindow.Week,
6787
6991
  * });
6788
6992
  *
6789
6993
  * const firstPage = await result.firstPage();
@@ -6798,9 +7002,9 @@ declare const ListTraderLeaderboardError: {
6798
7002
  * Loop through all pages with `for await`:
6799
7003
  * ```ts
6800
7004
  * const result = listTraderLeaderboard(client, {
6801
- * orderBy: 'PNL',
6802
7005
  * pageSize: 10,
6803
- * timePeriod: 'DAY',
7006
+ * sortBy: TraderLeaderboardSort.Pnl,
7007
+ * window: LeaderboardWindow.Week,
6804
7008
  * });
6805
7009
  *
6806
7010
  * for await (const page of result) {
@@ -6809,6 +7013,79 @@ declare const ListTraderLeaderboardError: {
6809
7013
  * ```
6810
7014
  */
6811
7015
  declare function listTraderLeaderboard(client: BaseClient, request?: ListTraderLeaderboardRequest): Paginated<TraderLeaderboardEntry[]>;
7016
+ declare const FetchTraderLeaderboardStandingRequestSchema: z.ZodObject<{
7017
+ category: z.ZodOptional<z.ZodString>;
7018
+ user: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
7019
+ window: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.LeaderboardWindow>>;
7020
+ }, z.core.$strip>;
7021
+ type FetchTraderLeaderboardStandingRequest = z.input<typeof FetchTraderLeaderboardStandingRequestSchema>;
7022
+ type FetchTraderLeaderboardStandingError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7023
+ declare const FetchTraderLeaderboardStandingError: {
7024
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7025
+ };
7026
+ /**
7027
+ * Fetches one trader's standing on both the PnL and volume boards.
7028
+ *
7029
+ * `window` defaults to one day and `category` to overall. A `null` rank means
7030
+ * the trader is unranked on that board. Returns `null` for an unknown wallet.
7031
+ *
7032
+ * @remarks
7033
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
7034
+ *
7035
+ * @throws {@link FetchTraderLeaderboardStandingError}
7036
+ * Thrown on failure.
7037
+ *
7038
+ * @example
7039
+ * ```ts
7040
+ * const standing = await fetchTraderLeaderboardStanding(client, {
7041
+ * user: '0xa71093cafc0c099b4ccab24c3cb8018d817923c4',
7042
+ * window: LeaderboardWindow.All,
7043
+ * });
7044
+ *
7045
+ * // standing: TraderLeaderboardStanding | null
7046
+ * ```
7047
+ */
7048
+ declare function fetchTraderLeaderboardStanding(client: BaseClient, request: FetchTraderLeaderboardStandingRequest): Promise<TraderLeaderboardStanding | null>;
7049
+ declare const ListBiggestWinnersRequestSchema: z.ZodObject<{
7050
+ category: z.ZodOptional<z.ZodString>;
7051
+ cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
7052
+ pageSize: z.ZodDefault<z.ZodNumber>;
7053
+ window: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.LeaderboardWindow>>;
7054
+ }, z.core.$strip>;
7055
+ type ListBiggestWinnersRequest = z.input<typeof ListBiggestWinnersRequestSchema>;
7056
+ type ListBiggestWinnersError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7057
+ declare const ListBiggestWinnersError: {
7058
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7059
+ };
7060
+ /**
7061
+ * Lists the largest individual winning positions.
7062
+ *
7063
+ * The board has one row per position, ranked by its resolution profit.
7064
+ * `window` applies to resolution time and defaults to one day; `category`
7065
+ * defaults to overall. Equal profits retain distinct row ordinals. Combo rows
7066
+ * have no parent event, so branch on `kind` before using event metadata.
7067
+ * `pageSize` defaults to 100 (max 1000).
7068
+ *
7069
+ * @remarks
7070
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
7071
+ *
7072
+ * @throws {@link ListBiggestWinnersError}
7073
+ * Thrown on failure.
7074
+ *
7075
+ * @example
7076
+ * ```ts
7077
+ * const result = listBiggestWinners(client, {
7078
+ * category: 'sports',
7079
+ * pageSize: 10,
7080
+ * window: LeaderboardWindow.Week,
7081
+ * });
7082
+ *
7083
+ * for await (const page of result) {
7084
+ * // page.items: BiggestWinner[]
7085
+ * }
7086
+ * ```
7087
+ */
7088
+ declare function listBiggestWinners(client: BaseClient, request?: ListBiggestWinnersRequest): Paginated<BiggestWinner[]>;
6812
7089
 
6813
7090
  declare const ListMarketClarificationsRequestSchema: z.ZodObject<{
6814
7091
  marketId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
@@ -6825,7 +7102,7 @@ declare const ListMarketClarificationsRequestSchema: z.ZodObject<{
6825
7102
  type ListMarketClarificationsRequest = z.input<typeof ListMarketClarificationsRequestSchema>;
6826
7103
  type ListMarketClarificationsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6827
7104
  declare const ListMarketClarificationsError: {
6828
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7105
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6829
7106
  };
6830
7107
  /**
6831
7108
  * Lists market clarifications — official notes that resolve ambiguity in how a
@@ -6871,7 +7148,7 @@ declare const ListMarketsRequestSchema: z.ZodObject<{
6871
7148
  ascending: z.ZodOptional<z.ZodBoolean>;
6872
7149
  closed: z.ZodOptional<z.ZodBoolean>;
6873
7150
  clobTokenIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
6874
- cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
7151
+ cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
6875
7152
  pageSize: z.ZodOptional<z.ZodNumber>;
6876
7153
  conditionIds: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.ConditionId, string>>>>;
6877
7154
  cyom: z.ZodOptional<z.ZodBoolean>;
@@ -6922,41 +7199,9 @@ declare const FetchMarketTagsRequestSchema: z.ZodObject<{
6922
7199
  id: z.ZodString;
6923
7200
  }, z.core.$strip>;
6924
7201
  type FetchMarketTagsRequest = z.input<typeof FetchMarketTagsRequestSchema>;
6925
- declare const ListMarketHoldersRequestSchema: z.ZodObject<{
6926
- limit: z.ZodOptional<z.ZodNumber>;
6927
- market: z.ZodArray<z.ZodString>;
6928
- minBalance: z.ZodOptional<z.ZodNumber>;
6929
- }, z.core.$strip>;
6930
- declare const ListOpenInterestRequestSchema: z.ZodObject<{
6931
- market: z.ZodOptional<z.ZodArray<z.ZodString>>;
6932
- }, z.core.$strip>;
6933
- declare const ListMarketPositionsRequestSchema: z.ZodObject<{
6934
- cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
6935
- market: z.ZodString;
6936
- pageSize: z.ZodDefault<z.ZodNumber>;
6937
- user: z.ZodOptional<z.ZodString>;
6938
- status: z.ZodOptional<z.ZodEnum<{
6939
- OPEN: "OPEN";
6940
- CLOSED: "CLOSED";
6941
- ALL: "ALL";
6942
- }>>;
6943
- sortBy: z.ZodOptional<z.ZodEnum<{
6944
- TOKENS: "TOKENS";
6945
- CASH_PNL: "CASH_PNL";
6946
- REALIZED_PNL: "REALIZED_PNL";
6947
- TOTAL_PNL: "TOTAL_PNL";
6948
- }>>;
6949
- sortDirection: z.ZodOptional<z.ZodEnum<{
6950
- ASC: "ASC";
6951
- DESC: "DESC";
6952
- }>>;
6953
- }, z.core.$strip>;
6954
- type ListMarketHoldersRequest = z.input<typeof ListMarketHoldersRequestSchema>;
6955
- type ListOpenInterestRequest = z.input<typeof ListOpenInterestRequestSchema>;
6956
- type ListMarketPositionsRequest = z.input<typeof ListMarketPositionsRequestSchema>;
6957
7202
  type ListMarketsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6958
7203
  declare const ListMarketsError: {
6959
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7204
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6960
7205
  };
6961
7206
  /**
6962
7207
  * Lists markets.
@@ -7001,14 +7246,14 @@ declare const ListMarketsError: {
7001
7246
  */
7002
7247
  declare function listMarkets(client: BaseClient, request?: ListMarketsRequest): Paginated<Market[]>;
7003
7248
  declare const ListComboMarketsRequestSchema: z.ZodObject<{
7004
- cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
7249
+ cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
7005
7250
  pageSize: z.ZodOptional<z.ZodNumber>;
7006
7251
  exclude: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.ConditionId, string>>>>;
7007
7252
  }, z.core.$strip>;
7008
7253
  type ListComboMarketsRequest = z.input<typeof ListComboMarketsRequestSchema>;
7009
7254
  type ListComboMarketsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7010
7255
  declare const ListComboMarketsError: {
7011
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7256
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7012
7257
  };
7013
7258
  /**
7014
7259
  * Lists markets available for Combos.
@@ -7046,7 +7291,7 @@ declare const ListComboMarketsError: {
7046
7291
  declare function listComboMarkets(client: BaseClient, request?: ListComboMarketsRequest): Paginated<ComboMarket[]>;
7047
7292
  type FetchMarketError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7048
7293
  declare const FetchMarketError: {
7049
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7294
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7050
7295
  };
7051
7296
  /**
7052
7297
  * Fetches a market.
@@ -7081,7 +7326,7 @@ declare const FetchMarketError: {
7081
7326
  declare function fetchMarket(client: BaseClient, request: FetchMarketRequest): Promise<Market>;
7082
7327
  type FetchMarketTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7083
7328
  declare const FetchMarketTagsError: {
7084
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7329
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7085
7330
  };
7086
7331
  /**
7087
7332
  * Fetches a market's tags.
@@ -7102,12 +7347,29 @@ declare const FetchMarketTagsError: {
7102
7347
  * ```
7103
7348
  */
7104
7349
  declare function fetchMarketTags(client: BaseClient, request: FetchMarketTagsRequest): Promise<TagReference[]>;
7350
+ declare const ListMarketHoldersRequestSchema: z.ZodObject<{
7351
+ conditionIds: z.ZodPipe<z.ZodArray<z.ZodType<_polymarket_bindings.ConditionId, string, z.core.$ZodTypeInternals<_polymarket_bindings.ConditionId, string>>>, z.ZodTransform<_polymarket_bindings.ConditionId[], _polymarket_bindings.ConditionId[]>>;
7352
+ cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
7353
+ includePnl: z.ZodOptional<z.ZodBoolean>;
7354
+ minBalance: z.ZodOptional<z.ZodNumber>;
7355
+ pageSize: z.ZodDefault<z.ZodNumber>;
7356
+ }, z.core.$strip>;
7357
+ type ListMarketHoldersRequest = z.input<typeof ListMarketHoldersRequestSchema>;
7105
7358
  type ListMarketHoldersError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7106
7359
  declare const ListMarketHoldersError: {
7107
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7360
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7108
7361
  };
7109
7362
  /**
7110
- * Lists the top holders for one or more markets.
7363
+ * Lists top holders grouped by outcome for one or more markets.
7364
+ *
7365
+ * `conditionIds` accepts up to 20 distinct market condition IDs. `pageSize`
7366
+ * defaults to 100 (max 1000) and applies separately to each outcome. Merge
7367
+ * matching `assetId` groups across pages rather than relying on array position.
7368
+ * `minBalance` uses display shares and defaults to `0`; `1` means one share,
7369
+ * equivalent to 1,000,000 base units.
7370
+ * Amounts are net holdings by default. `includePnl` switches to per-outcome
7371
+ * gross holdings and adds position economics; it requires one condition ID and
7372
+ * a page size of at most 100. Transient rate limits are retried automatically.
7111
7373
  *
7112
7374
  * @remarks
7113
7375
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
@@ -7117,81 +7379,117 @@ declare const ListMarketHoldersError: {
7117
7379
  *
7118
7380
  * @example
7119
7381
  * ```ts
7120
- * const holders = await listMarketHolders(client, {
7121
- * market: ['0xe546672750517f62c45a5a00067481981e62b9c20fa8220203232c9dc8fd2093'],
7122
- * limit: 5,
7382
+ * const result = listMarketHolders(client, {
7383
+ * conditionIds: ['0xe546672750517f62c45a5a00067481981e62b9c20fa8220203232c9dc8fd2093'],
7384
+ * pageSize: 5,
7123
7385
  * });
7124
7386
  *
7125
- * // holders: MetaHolder[]
7387
+ * for await (const page of result) {
7388
+ * // page.items: MetaHolder[]
7389
+ * }
7126
7390
  * ```
7127
7391
  */
7128
- declare function listMarketHolders(client: BaseClient, request: ListMarketHoldersRequest): Promise<MetaHolder[]>;
7129
- type ListOpenInterestError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7130
- declare const ListOpenInterestError: {
7131
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7132
- };
7133
- /**
7134
- * Lists open interest for one or more markets.
7392
+ declare function listMarketHolders(client: BaseClient, request: ListMarketHoldersRequest): Paginated<MetaHolder[]>;
7393
+ type ListPriceHistoryRequest = {
7394
+ assetId: string;
7395
+ interval: PriceHistoryInterval;
7396
+ bucketSeconds?: number;
7397
+ cursor?: PaginationCursor;
7398
+ pageSize?: number;
7399
+ start?: never;
7400
+ end?: never;
7401
+ asOf?: never;
7402
+ } | {
7403
+ assetId: string;
7404
+ start: number | Date;
7405
+ end?: number | Date;
7406
+ bucketSeconds?: number;
7407
+ cursor?: PaginationCursor;
7408
+ pageSize?: number;
7409
+ interval?: never;
7410
+ asOf?: never;
7411
+ } | {
7412
+ assetId: string;
7413
+ asOf: number | Date;
7414
+ interval?: never;
7415
+ start?: never;
7416
+ end?: never;
7417
+ bucketSeconds?: never;
7418
+ cursor?: never;
7419
+ pageSize?: never;
7420
+ };
7421
+ type ListPriceHistoryError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7422
+ declare const ListPriceHistoryError: {
7423
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7424
+ };
7425
+ /**
7426
+ * Lists historical price observations for an exchange asset.
7427
+ *
7428
+ * Select exactly one time form: a relative `interval`, an explicit `start`
7429
+ * with optional `end`, or the latest observation at or before an `asOf`
7430
+ * instant. Time inputs accept Unix epoch seconds or `Date` values. When
7431
+ * `bucketSeconds` is omitted, resolution is selected automatically for the
7432
+ * requested window and reported on each point as `resolutionSeconds`. An
7433
+ * explicit bucket is used exactly as requested and may produce an empty series
7434
+ * when that resolution is unavailable for the window. Prices are decimal
7435
+ * strings and returned timestamps are Unix epoch milliseconds. Series pages
7436
+ * are ordered oldest first; an `asOf` request returns at most one item. Series
7437
+ * page sizes default to and are capped at 10,000 points. Transient rate limits
7438
+ * are retried automatically.
7135
7439
  *
7136
7440
  * @remarks
7137
7441
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
7138
7442
  *
7139
- * @throws {@link ListOpenInterestError}
7443
+ * @throws {@link ListPriceHistoryError}
7140
7444
  * Thrown on failure.
7141
7445
  *
7142
7446
  * @example
7143
7447
  * ```ts
7144
- * const openInterest = await listOpenInterest(client, {
7145
- * market: ['0xe546672750517f62c45a5a00067481981e62b9c20fa8220203232c9dc8fd2093'],
7448
+ * const history = listPriceHistory(client, {
7449
+ * assetId: '17023124228269928849020611259015948850061676830917875073785033885105715180702',
7450
+ * interval: PriceHistoryInterval.OneDay,
7451
+ * bucketSeconds: 3600,
7146
7452
  * });
7147
7453
  *
7148
- * // openInterest: OpenInterest[]
7454
+ * for await (const page of history) {
7455
+ * // page.items: PriceHistoryPoint[]
7456
+ * }
7149
7457
  * ```
7150
7458
  */
7151
- declare function listOpenInterest(client: BaseClient, request?: ListOpenInterestRequest): Promise<OpenInterest[]>;
7152
- type ListMarketPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7153
- declare const ListMarketPositionsError: {
7154
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7459
+ declare function listPriceHistory(client: BaseClient, request: ListPriceHistoryRequest): Paginated<PriceHistoryPoint[]>;
7460
+ declare const FetchOpenInterestRequestSchema: z.ZodObject<{
7461
+ conditionIds: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodType<_polymarket_bindings.ConditionId, string, z.core.$ZodTypeInternals<_polymarket_bindings.ConditionId, string>>>, z.ZodTransform<_polymarket_bindings.ConditionId[], _polymarket_bindings.ConditionId[]>>>;
7462
+ }, z.core.$strip>;
7463
+ type FetchOpenInterestRequest = z.input<typeof FetchOpenInterestRequestSchema>;
7464
+ type FetchOpenInterestError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7465
+ declare const FetchOpenInterestError: {
7466
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7155
7467
  };
7156
7468
  /**
7157
- * Lists positions for a market.
7469
+ * Fetches priced gross open interest for selected markets or globally.
7470
+ *
7471
+ * `conditionIds` accepts up to 20 distinct market condition IDs. Omit it for
7472
+ * the global aggregate, whose `conditionId` is `null`. A requested servable
7473
+ * market with no holdings has a zero value; an absent row means the market is
7474
+ * not servable. Values are in USDC. Transient rate limits are retried
7475
+ * automatically.
7158
7476
  *
7159
7477
  * @remarks
7160
7478
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
7161
7479
  *
7162
- * @throws {@link ListMarketPositionsError}
7480
+ * @throws {@link FetchOpenInterestError}
7163
7481
  * Thrown on failure.
7164
7482
  *
7165
7483
  * @example
7166
- * Fetch the first page of results:
7167
- * ```ts
7168
- * const result = listMarketPositions(client, {
7169
- * market: '0xe546672750517f62c45a5a00067481981e62b9c20fa8220203232c9dc8fd2093',
7170
- * pageSize: 10,
7171
- * });
7172
- *
7173
- * const firstPage = await result.firstPage();
7174
- *
7175
- * // Optionally, fetch additional pages:
7176
- * for await (const page of result.from(firstPage.nextCursor)) {
7177
- * // page.items: MetaMarketPosition[]
7178
- * }
7179
- * ```
7180
- *
7181
- * @example
7182
- * Loop through all pages with `for await`:
7183
7484
  * ```ts
7184
- * const result = listMarketPositions(client, {
7185
- * market: '0xe546672750517f62c45a5a00067481981e62b9c20fa8220203232c9dc8fd2093',
7186
- * pageSize: 10,
7485
+ * const openInterest = await fetchOpenInterest(client, {
7486
+ * conditionIds: ['0xe546672750517f62c45a5a00067481981e62b9c20fa8220203232c9dc8fd2093'],
7187
7487
  * });
7188
7488
  *
7189
- * for await (const page of result) {
7190
- * // page.items: MetaMarketPosition[]
7191
- * }
7489
+ * // openInterest: OpenInterest[]
7192
7490
  * ```
7193
7491
  */
7194
- declare function listMarketPositions(client: BaseClient, request: ListMarketPositionsRequest): Paginated<MetaMarketPosition[]>;
7492
+ declare function fetchOpenInterest(client: BaseClient, request?: FetchOpenInterestRequest): Promise<OpenInterest[]>;
7195
7493
 
7196
7494
  /**
7197
7495
  * @experimental This API may change in a breaking way in any release, including patch releases.
@@ -7772,7 +8070,7 @@ type ArmPerpsAutoCancelError = AutoCancelDailyLimitError | RateLimitError | Requ
7772
8070
  * @experimental This API may change in a breaking way in any release, including patch releases.
7773
8071
  */
7774
8072
  declare const ArmPerpsAutoCancelError: {
7775
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | AutoCancelDailyLimitError | SigningError;
8073
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | AutoCancelDailyLimitError;
7776
8074
  };
7777
8075
  /**
7778
8076
  * @experimental This API may change in a breaking way in any release, including patch releases.
@@ -7800,7 +8098,7 @@ type UpdatePerpsLeverageError = RequestRejectedError | SigningError | TransportE
7800
8098
  * @experimental This API may change in a breaking way in any release, including patch releases.
7801
8099
  */
7802
8100
  declare const UpdatePerpsLeverageError: {
7803
- isError(error: unknown): error is UserInputError | TransportError | RequestRejectedError | SigningError;
8101
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | RequestRejectedError;
7804
8102
  };
7805
8103
  /**
7806
8104
  * Request parameters for adjusting isolated margin on a Perps position.
@@ -7821,7 +8119,7 @@ type UpdatePerpsMarginError = RequestRejectedError | SigningError | TransportErr
7821
8119
  * @experimental This API may change in a breaking way in any release, including patch releases.
7822
8120
  */
7823
8121
  declare const UpdatePerpsMarginError: {
7824
- isError(error: unknown): error is UserInputError | TransportError | RequestRejectedError | SigningError;
8122
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | RequestRejectedError;
7825
8123
  };
7826
8124
 
7827
8125
  /**
@@ -8280,7 +8578,7 @@ declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
8280
8578
 
8281
8579
  type PerpsPublicReadError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
8282
8580
  declare const PerpsPublicReadError: {
8283
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8581
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8284
8582
  };
8285
8583
  /**
8286
8584
  * @experimental This API may change in a breaking way in any release, including patch releases.
@@ -8299,7 +8597,7 @@ type FetchPerpsInstrumentsError = PerpsPublicReadError;
8299
8597
  * @experimental This API may change in a breaking way in any release, including patch releases.
8300
8598
  */
8301
8599
  declare const FetchPerpsInstrumentsError: {
8302
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8600
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8303
8601
  };
8304
8602
  /**
8305
8603
  * Fetches Perps instruments.
@@ -8328,7 +8626,7 @@ type FetchPerpsTickerError = PerpsPublicReadError;
8328
8626
  * @experimental This API may change in a breaking way in any release, including patch releases.
8329
8627
  */
8330
8628
  declare const FetchPerpsTickerError: {
8331
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8629
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8332
8630
  };
8333
8631
  /**
8334
8632
  * Fetches the current Perps ticker for an instrument.
@@ -8357,7 +8655,7 @@ type FetchPerpsTickersError = PerpsPublicReadError;
8357
8655
  * @experimental This API may change in a breaking way in any release, including patch releases.
8358
8656
  */
8359
8657
  declare const FetchPerpsTickersError: {
8360
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8658
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8361
8659
  };
8362
8660
  /**
8363
8661
  * Fetches current Perps tickers.
@@ -8392,7 +8690,7 @@ type FetchPerpsBookError = PerpsPublicReadError;
8392
8690
  * @experimental This API may change in a breaking way in any release, including patch releases.
8393
8691
  */
8394
8692
  declare const FetchPerpsBookError: {
8395
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8693
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8396
8694
  };
8397
8695
  /**
8398
8696
  * Fetches a Perps order book.
@@ -8432,7 +8730,7 @@ type ListPerpsCandlesError = PerpsPublicReadError;
8432
8730
  * @experimental This API may change in a breaking way in any release, including patch releases.
8433
8731
  */
8434
8732
  declare const ListPerpsCandlesError: {
8435
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8733
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8436
8734
  };
8437
8735
  /**
8438
8736
  * Lists Perps candles for an instrument with SDK-owned pagination.
@@ -8470,7 +8768,7 @@ type ListPerpsFundingHistoryError = PerpsPublicReadError;
8470
8768
  * @experimental This API may change in a breaking way in any release, including patch releases.
8471
8769
  */
8472
8770
  declare const ListPerpsFundingHistoryError: {
8473
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8771
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8474
8772
  };
8475
8773
  /**
8476
8774
  * Lists Perps funding-rate history for an instrument with SDK-owned pagination.
@@ -8508,7 +8806,7 @@ type ListPerpsTradesError = PerpsPublicReadError;
8508
8806
  * @experimental This API may change in a breaking way in any release, including patch releases.
8509
8807
  */
8510
8808
  declare const ListPerpsTradesError: {
8511
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8809
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8512
8810
  };
8513
8811
  /**
8514
8812
  * Lists recent Perps trades for an instrument with SDK-owned pagination.
@@ -8530,7 +8828,7 @@ type FetchPerpsFeesError = RateLimitError | RequestRejectedError | TransportErro
8530
8828
  * @experimental This API may change in a breaking way in any release, including patch releases.
8531
8829
  */
8532
8830
  declare const FetchPerpsFeesError: {
8533
- isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8831
+ isError(error: unknown): error is TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8534
8832
  };
8535
8833
  /**
8536
8834
  * Fetches the Perps fee schedule.
@@ -8603,7 +8901,7 @@ type OpenPerpsSessionError = RateLimitError | RequestRejectedError | SigningErro
8603
8901
  * @experimental This API may change in a breaking way in any release, including patch releases.
8604
8902
  */
8605
8903
  declare const OpenPerpsSessionError: {
8606
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
8904
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8607
8905
  };
8608
8906
  /**
8609
8907
  * @experimental This API may change in a breaking way in any release, including patch releases.
@@ -8613,7 +8911,7 @@ type RevokePerpsCredentialsError = RateLimitError | RequestRejectedError | Signi
8613
8911
  * @experimental This API may change in a breaking way in any release, including patch releases.
8614
8912
  */
8615
8913
  declare const RevokePerpsCredentialsError: {
8616
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
8914
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8617
8915
  };
8618
8916
  /**
8619
8917
  * @experimental This API may change in a breaking way in any release, including patch releases.
@@ -8633,7 +8931,7 @@ type DepositToPerpsError = RateLimitError | RequestRejectedError | CancelledSign
8633
8931
  * @experimental This API may change in a breaking way in any release, including patch releases.
8634
8932
  */
8635
8933
  declare const DepositToPerpsError: {
8636
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
8934
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8637
8935
  };
8638
8936
  /**
8639
8937
  * @experimental This API may change in a breaking way in any release, including patch releases.
@@ -8643,7 +8941,7 @@ type WithdrawFromPerpsError = RateLimitError | RequestRejectedError | SigningErr
8643
8941
  * @experimental This API may change in a breaking way in any release, including patch releases.
8644
8942
  */
8645
8943
  declare const WithdrawFromPerpsError: {
8646
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
8944
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8647
8945
  };
8648
8946
  /**
8649
8947
  * Opens a Perps account session.
@@ -8714,7 +9012,7 @@ type SplitPositionWorkflowRequest = GaslessWorkflowRequest | SendSplitPositionTr
8714
9012
  type SplitPositionWorkflow = AsyncGenerator<SplitPositionWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
8715
9013
  type PrepareSplitPositionError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
8716
9014
  declare const PrepareSplitPositionError: {
8717
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9015
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8718
9016
  };
8719
9017
  /**
8720
9018
  * Parameters for preparing a market position split.
@@ -8735,7 +9033,7 @@ type PrepareSplitMarketPositionRequest = {
8735
9033
  type PrepareSplitMarketPositionError = PrepareSplitPositionError;
8736
9034
  /** @deprecated Use {@link PrepareSplitPositionError}. */
8737
9035
  declare const PrepareSplitMarketPositionError: {
8738
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9036
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8739
9037
  };
8740
9038
  /**
8741
9039
  * Starts a split workflow for a market condition.
@@ -8771,7 +9069,7 @@ type PrepareSplitComboPositionRequest = {
8771
9069
  type PrepareSplitComboPositionError = PrepareSplitPositionError;
8772
9070
  /** @deprecated Use {@link PrepareSplitPositionError}. */
8773
9071
  declare const PrepareSplitComboPositionError: {
8774
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9072
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8775
9073
  };
8776
9074
  /**
8777
9075
  * Starts a split workflow for a combo position from leg position IDs.
@@ -8808,13 +9106,13 @@ type PrepareSplitPositionRequest = PrepareSplitMarketPositionRequest | PrepareSp
8808
9106
  declare function prepareSplitPosition(client: BaseSecureClient, request: PrepareSplitPositionRequest): Promise<SplitPositionWorkflow>;
8809
9107
  type SplitPositionError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
8810
9108
  declare const SplitPositionError: {
8811
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
9109
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
8812
9110
  };
8813
9111
  /** @deprecated Use {@link SplitPositionError}. */
8814
9112
  type SplitMarketPositionError = SplitPositionError;
8815
9113
  /** @deprecated Use {@link SplitPositionError}. */
8816
9114
  declare const SplitMarketPositionError: {
8817
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
9115
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
8818
9116
  };
8819
9117
  /**
8820
9118
  * Splits collateral into market positions.
@@ -8830,7 +9128,7 @@ declare function splitMarketPosition(client: BaseSecureClient, request: PrepareS
8830
9128
  type SplitComboPositionError = SplitPositionError;
8831
9129
  /** @deprecated Use {@link SplitPositionError}. */
8832
9130
  declare const SplitComboPositionError: {
8833
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
9131
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
8834
9132
  };
8835
9133
  /**
8836
9134
  * Splits collateral into combo positions from leg position IDs.
@@ -8853,7 +9151,7 @@ type MergePositionsWorkflowRequest = GaslessWorkflowRequest | SendMergePositions
8853
9151
  type MergePositionsWorkflow = AsyncGenerator<MergePositionsWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
8854
9152
  type PrepareMergePositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
8855
9153
  declare const PrepareMergePositionsError: {
8856
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9154
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8857
9155
  };
8858
9156
  /**
8859
9157
  * Parameters for preparing a market position merge.
@@ -8874,7 +9172,7 @@ type PrepareMergeMarketPositionRequest = {
8874
9172
  type PrepareMergeMarketPositionError = PrepareMergePositionsError;
8875
9173
  /** @deprecated Use {@link PrepareMergePositionsError}. */
8876
9174
  declare const PrepareMergeMarketPositionError: {
8877
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9175
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8878
9176
  };
8879
9177
  /**
8880
9178
  * Starts a workflow to merge complementary positions in a market back into collateral.
@@ -8910,7 +9208,7 @@ type PrepareMergeComboPositionRequest = {
8910
9208
  type PrepareMergeComboPositionError = PrepareMergePositionsError;
8911
9209
  /** @deprecated Use {@link PrepareMergePositionsError}. */
8912
9210
  declare const PrepareMergeComboPositionError: {
8913
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9211
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8914
9212
  };
8915
9213
  /**
8916
9214
  * Starts a workflow to merge complementary combo positions back into collateral.
@@ -8947,13 +9245,13 @@ type PrepareMergePositionsRequest = PrepareMergeMarketPositionRequest | PrepareM
8947
9245
  declare function prepareMergePositions(client: BaseSecureClient, request: PrepareMergePositionsRequest): Promise<MergePositionsWorkflow>;
8948
9246
  type MergePositionsError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
8949
9247
  declare const MergePositionsError: {
8950
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
9248
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
8951
9249
  };
8952
9250
  /** @deprecated Use {@link MergePositionsError}. */
8953
9251
  type MergeMarketPositionError = MergePositionsError;
8954
9252
  /** @deprecated Use {@link MergePositionsError}. */
8955
9253
  declare const MergeMarketPositionError: {
8956
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
9254
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
8957
9255
  };
8958
9256
  /**
8959
9257
  * Merges complementary market positions back into collateral.
@@ -8969,7 +9267,7 @@ declare function mergeMarketPosition(client: BaseSecureClient, request: PrepareM
8969
9267
  type MergeComboPositionError = MergePositionsError;
8970
9268
  /** @deprecated Use {@link MergePositionsError}. */
8971
9269
  declare const MergeComboPositionError: {
8972
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
9270
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
8973
9271
  };
8974
9272
  /**
8975
9273
  * Merges complementary combo positions back into collateral.
@@ -8992,7 +9290,7 @@ type RedeemPositionsWorkflowRequest = GaslessWorkflowRequest | SendRedeemPositio
8992
9290
  type RedeemPositionsWorkflow = AsyncGenerator<RedeemPositionsWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
8993
9291
  type PrepareRedeemPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
8994
9292
  declare const PrepareRedeemPositionsError: {
8995
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9293
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8996
9294
  };
8997
9295
  /**
8998
9296
  * Parameters for preparing a market position redemption by condition ID.
@@ -9027,7 +9325,7 @@ type PrepareRedeemMarketPositionsRequest = PrepareRedeemMarketPositionsByConditi
9027
9325
  type PrepareRedeemMarketPositionsError = PrepareRedeemPositionsError;
9028
9326
  /** @deprecated Use {@link PrepareRedeemPositionsError}. */
9029
9327
  declare const PrepareRedeemMarketPositionsError: {
9030
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9328
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9031
9329
  };
9032
9330
  /**
9033
9331
  * Starts a redemption workflow for resolved market positions.
@@ -9088,7 +9386,7 @@ type PrepareRedeemComboPositionRequest = PrepareRedeemPositionRequest;
9088
9386
  type PrepareRedeemComboPositionError = PrepareRedeemPositionsError;
9089
9387
  /** @deprecated Use {@link PrepareRedeemPositionsError}. */
9090
9388
  declare const PrepareRedeemComboPositionError: {
9091
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9389
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9092
9390
  };
9093
9391
  /**
9094
9392
  * Starts a redemption workflow for a resolved Polymarket V2 position.
@@ -9121,7 +9419,7 @@ type PrepareRedeemPositionsRequest = PrepareRedeemMarketPositionsByConditionIdRe
9121
9419
  declare function prepareRedeemPositions(client: BaseSecureClient, request: PrepareRedeemPositionsRequest): Promise<RedeemPositionsWorkflow>;
9122
9420
  type RedeemPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError | TimeoutError | TransactionFailedError;
9123
9421
  declare const RedeemPositionsError: {
9124
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
9422
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
9125
9423
  };
9126
9424
  /**
9127
9425
  * Redeems held positions for a market or a specific position by ID.
@@ -9140,7 +9438,7 @@ declare const FetchPublicProfileRequestSchema: z.ZodObject<{
9140
9438
  type FetchPublicProfileRequest = z.input<typeof FetchPublicProfileRequestSchema>;
9141
9439
  type FetchPublicProfileError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9142
9440
  declare const FetchPublicProfileError: {
9143
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9441
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9144
9442
  };
9145
9443
  /**
9146
9444
  * Fetches a public profile by wallet address.
@@ -9200,7 +9498,7 @@ type SearchResults = {
9200
9498
  };
9201
9499
  type SearchError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9202
9500
  declare const SearchError: {
9203
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9501
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9204
9502
  };
9205
9503
  /**
9206
9504
  * Runs a public full-text search.
@@ -9256,7 +9554,7 @@ type ListSeriesRequest = z.input<typeof ListSeriesRequestSchema>;
9256
9554
  type FetchSeriesRequest = z.input<typeof FetchSeriesRequestSchema>;
9257
9555
  type ListSeriesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9258
9556
  declare const ListSeriesError: {
9259
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9557
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9260
9558
  };
9261
9559
  /**
9262
9560
  * Lists series.
@@ -9299,7 +9597,7 @@ declare const ListSeriesError: {
9299
9597
  declare function listSeries(client: BaseClient, request?: ListSeriesRequest): Paginated<Series[]>;
9300
9598
  type FetchSeriesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9301
9599
  declare const FetchSeriesError: {
9302
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9600
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9303
9601
  };
9304
9602
  /**
9305
9603
  * Fetches a series.
@@ -9335,7 +9633,7 @@ type SessionKey = {
9335
9633
  };
9336
9634
  type FetchSessionKeysError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
9337
9635
  declare const FetchSessionKeysError: {
9338
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
9636
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9339
9637
  };
9340
9638
  /**
9341
9639
  * Fetches the active session keys authorized for the Deposit Wallet.
@@ -9370,7 +9668,7 @@ type AuthorizeSessionKeyResult = {
9370
9668
  };
9371
9669
  type AuthorizeSessionKeyError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
9372
9670
  declare const AuthorizeSessionKeyError: {
9373
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
9671
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
9374
9672
  };
9375
9673
  /**
9376
9674
  * Authorizes an externally managed signer for selected venues.
@@ -9407,7 +9705,7 @@ type RevokeSessionKeyRequest = {
9407
9705
  };
9408
9706
  type RevokeSessionKeyError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
9409
9707
  declare const RevokeSessionKeyError: {
9410
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
9708
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
9411
9709
  };
9412
9710
  /**
9413
9711
  * Revokes a session key authorized for the Deposit Wallet.
@@ -9584,7 +9882,7 @@ type SubscriptionHandle<TEvent> = {
9584
9882
  } & AsyncIterable<TEvent>;
9585
9883
  type SubscribeError = TransportError | UserInputError;
9586
9884
  declare const SubscribeError: {
9587
- isError(error: unknown): error is UserInputError | TransportError;
9885
+ isError(error: unknown): error is TransportError | UserInputError;
9588
9886
  };
9589
9887
  /**
9590
9888
  * Starts one or more realtime subscriptions on this client.
@@ -9664,7 +9962,7 @@ type FetchRelatedTagsRequest = z.input<typeof RelatedTagsByIdRequestSchema> | z.
9664
9962
  type FetchRelatedTagResourcesRequest = z.input<typeof RelatedTagResourcesByIdRequestSchema> | z.input<typeof RelatedTagResourcesBySlugRequestSchema>;
9665
9963
  type ListTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9666
9964
  declare const ListTagsError: {
9667
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9965
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9668
9966
  };
9669
9967
  /**
9670
9968
  * Lists tags.
@@ -9707,7 +10005,7 @@ declare const ListTagsError: {
9707
10005
  declare function listTags(client: BaseClient, request?: ListTagsRequest): Paginated<Tag[]>;
9708
10006
  type FetchTagError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9709
10007
  declare const FetchTagError: {
9710
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
10008
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9711
10009
  };
9712
10010
  /**
9713
10011
  * Fetches a tag by id or slug.
@@ -9731,7 +10029,7 @@ declare const FetchTagError: {
9731
10029
  declare function fetchTag(client: BaseClient, request: FetchTagRequest): Promise<Tag>;
9732
10030
  type FetchRelatedTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9733
10031
  declare const FetchRelatedTagsError: {
9734
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
10032
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9735
10033
  };
9736
10034
  /**
9737
10035
  * Fetches related tag relationships by id or slug.
@@ -9756,7 +10054,7 @@ declare const FetchRelatedTagsError: {
9756
10054
  declare function fetchRelatedTags(client: BaseClient, request: FetchRelatedTagsRequest): Promise<RelatedTag[]>;
9757
10055
  type FetchRelatedTagResourcesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9758
10056
  declare const FetchRelatedTagResourcesError: {
9759
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
10057
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9760
10058
  };
9761
10059
  /**
9762
10060
  * Fetches resources linked from related tag relationships by id or slug.
@@ -9793,7 +10091,7 @@ declare const ListTeamsRequestSchema: z.ZodObject<{
9793
10091
  type ListTeamsRequest = z.input<typeof ListTeamsRequestSchema>;
9794
10092
  type ListTeamsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9795
10093
  declare const ListTeamsError: {
9796
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
10094
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9797
10095
  };
9798
10096
  /**
9799
10097
  * Lists teams.
@@ -9869,7 +10167,7 @@ declare const PrepareErc20TransferError: {
9869
10167
  declare function prepareErc20Transfer(client: BaseSecureClient, request: PrepareErc20TransferRequest): Promise<Erc20TransferWorkflow>;
9870
10168
  type TransferErc20Error = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
9871
10169
  declare const TransferErc20Error: {
9872
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
10170
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9873
10171
  };
9874
10172
  /**
9875
10173
  * Transfers ERC-20 tokens from the authenticated account.
@@ -9926,7 +10224,7 @@ type TransactionOutcome = {
9926
10224
  };
9927
10225
  type WaitForTransactionError = WaitForGaslessTransactionError;
9928
10226
  declare const WaitForTransactionError: {
9929
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError;
10227
+ isError(error: unknown): error is TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
9930
10228
  };
9931
10229
  interface TransactionHandle {
9932
10230
  /**
@@ -9953,4 +10251,4 @@ type Signer = {
9953
10251
  sendTransaction(request: SignerTransactionRequest): Promise<TransactionHandle>;
9954
10252
  };
9955
10253
 
9956
- export { type EnvironmentContracts as $, type ApiKeyAuthorization as A, type BaseClient as B, CancelAllError as C, type ClientActions as D, type ClientDecorator as E, type ClobEndpoints as F, ComboPositionSort as G, type ComboPositionStatusFilter as H, type ComboQuote as I, type CombosEndpoints as J, ConnectionLostError as K, type ConnectionLostErrorOptions as L, type CreatePerpsSessionRequest as M, CreateSecureClientError as N, type CryptoPricesChainlinkTwapSubscription as O, type DataActions as P, DepositToPerpsError as Q, type DepositToPerpsRequest as R, type Signer as S, type TypedDataPayload as T, UserInputError as U, type DisarmPerpsAutoCancelRequest as V, type DiscoveryActions as W, DownloadAccountingSnapshotError as X, DropNotificationsError as Y, type EnvironmentConfig as Z, type EnvironmentConfigFork as _, type TypedData as a, ListCommentsByUserAddressError as a$, type Erc1155TradingApproval as a0, type Erc20TradingApproval as a1, EstimateMarketPriceError as a2, ExecuteCollateralReturnPlanError as a3, type ExecuteCollateralReturnPlanRequest as a4, FetchClosedOnlyModeError as a5, FetchCommentsByIdError as a6, FetchEventError as a7, FetchEventLiveVolumeError as a8, FetchEventTagsError as a9, FetchPriceHistoryError as aA, FetchPricesError as aB, FetchPublicProfileError as aC, FetchRelatedTagResourcesError as aD, FetchRelatedTagsError as aE, FetchRewardPercentagesError as aF, FetchRfqStatusError as aG, type FetchRfqStatusParams as aH, FetchSeriesError as aI, FetchSessionKeysError as aJ, FetchSpreadError as aK, FetchSpreadsError as aL, FetchTagError as aM, FetchTotalEarningsForUserForDayError as aN, FetchTradedMarketCountError as aO, FetchTradingApprovalsStateError as aP, type FetchTradingApprovalsStateRequest as aQ, InsufficientLiquidityError as aR, ListAccountTradesError as aS, ListActivityError as aT, ListBuilderLeaderboardError as aU, ListBuilderTradesError as aV, ListBuilderVolumeError as aW, ListClosedPositionsError as aX, ListComboActivityError as aY, ListComboMarketsError as aZ, ListComboPositionsError as a_, FetchLastTradePriceError as aa, FetchLastTradePricesError as ab, FetchMarketError as ac, FetchMarketTagsError as ad, FetchMidpointError as ae, FetchMidpointsError as af, FetchNotificationsError as ag, FetchOrderBookError as ah, FetchOrderBooksError as ai, FetchOrderError as aj, FetchOrderScoringError as ak, FetchOrdersScoringError as al, type FetchPerpsAccountConfigRequest as am, FetchPerpsBookError as an, type FetchPerpsBookRequest as ao, FetchPerpsFeesError as ap, FetchPerpsInstrumentsError as aq, type FetchPerpsInstrumentsRequest as ar, type FetchPerpsOpenOrdersRequest as as, type FetchPerpsOrdersRequest as at, FetchPerpsTickerError as au, type FetchPerpsTickerRequest as av, FetchPerpsTickersError as aw, type FetchPerpsTickersRequest as ax, FetchPortfolioValueError as ay, FetchPriceError as az, type TransactionCall as b, type PostPerpsOrdersRequest as b$, ListCommentsError as b0, ListCurrentRewardsError as b1, ListEventsError as b2, ListMarketHoldersError as b3, ListMarketPositionsError as b4, ListMarketRewardsError as b5, ListMarketsError as b6, ListOpenInterestError as b7, ListOpenOrdersError as b8, ListPerpsCandlesError as b9, type Page as bA, PageSizeSchema as bB, type Paginated as bC, type PerpsActions as bD, type PerpsBookDepth as bE, type PerpsEndpoints as bF, type PerpsOrderRequest as bG, type PerpsPlaceFokOrderRequest as bH, type PerpsPlaceGtcOrderRequest as bI, type PerpsPlaceIocOrderRequest as bJ, type PerpsPlacedTpSlOrder as bK, type PerpsPlacedTpSlOrders as bL, type PerpsPositionTpSlTrigger as bM, PerpsSession as bN, type PerpsSessionAccountError as bO, type PerpsSessionLifecycleError as bP, type PerpsSessionTradingError as bQ, type PerpsTpSlTrigger as bR, type PlacePerpsOrderRequest as bS, type PlacePerpsOrderResult as bT, type PlacePerpsOrderWithTpSlRequest as bU, type PlacePerpsOrderWithTpSlResult as bV, type PlacePerpsPositionTpSlRequest as bW, type PlacePerpsPositionTpSlResult as bX, PlanCollateralReturnError as bY, PostOrderError as bZ, PostOrdersError as b_, type ListPerpsCandlesRequest as ba, type ListPerpsDepositsRequest as bb, type ListPerpsEquityHistoryRequest as bc, type ListPerpsFillsRequest as bd, ListPerpsFundingHistoryError as be, type ListPerpsFundingHistoryRequest as bf, type ListPerpsFundingPaymentsRequest as bg, type ListPerpsNotificationsRequest as bh, type ListPerpsPnlHistoryRequest as bi, ListPerpsTradesError as bj, type ListPerpsTradesRequest as bk, type ListPerpsWithdrawalsRequest as bl, ListPositionsError as bm, ListSeriesError as bn, ListTagsError as bo, ListTeamsError as bp, ListTraderLeaderboardError as bq, ListTradesError as br, ListUserEarningsAndMarketsConfigError as bs, ListUserEarningsForDayError as bt, type MarkPerpsNotificationsReadRequest as bu, MergePositionsError as bv, OpenPerpsSessionError as bw, type OpenPerpsSessionRequest as bx, OpenRfqSessionError as by, type OrderSignature as bz, AcceptComboQuoteError as c, type SecureSubscriptionsActions as c$, type PublicAccountActions as c0, type PublicActions as c1, type PublicClient as c2, type PublicClientOptions as c3, type PublicPerpsActions as c4, type PublicRewardsActions as c5, type PublicSubscriptionsActions as c6, type PublicWalletActions as c7, type RateLimitBucket as c8, RateLimitError as c9, RfqQuoteRejectedError as cA, type RfqQuoteRejectedErrorOptions as cB, type RfqQuoteRequestEvent as cC, type RfqQuoteResponse as cD, type RfqQuoteSource as cE, RfqRequestRejectedError as cF, type RfqRequestRejectedErrorOptions as cG, type RfqSession as cH, type RfqStatusResult as cI, type RfqTradeEvent as cJ, SearchError as cK, SearchSort as cL, type SecureAccountActions as cM, type SecureActions as cN, type SecureClient as cO, type SecureClientOptions as cP, type SecureDownloadAccountingSnapshotRequest as cQ, type SecureFetchPortfolioValueRequest as cR, type SecureFetchTradedMarketCountRequest as cS, type SecureListActivityRequest as cT, type SecureListClosedPositionsRequest as cU, type SecureListComboActivityRequest as cV, type SecureListComboPositionsRequest as cW, type SecureListPositionsRequest as cX, type SecurePerpsActions as cY, type SecureRewardsActions as cZ, type SecureRfqActions as c_, type RateLimitErrorOptions as ca, type RateLimitUpdate as cb, type RateLimitUpdateListener as cc, RedeemPositionsError as cd, RequestComboQuoteError as ce, type RequestComboQuoteParams as cf, type RequestComboQuoteResult as cg, RequestRejectedError as ch, type RequestRejectedErrorOptions as ci, type RestEndpoint as cj, type ResumePerpsSessionRequest as ck, RevokePerpsCredentialsError as cl, type RevokePerpsCredentialsRequest as cm, RevokeSessionKeyError as cn, type RevokeSessionKeyRequest as co, type RfqCancelQuoteAck as cp, RfqCancelQuoteError as cq, RfqCancelQuoteRejectedError as cr, type RfqCancelQuoteRejectedErrorOptions as cs, type RfqConfirmationAck as ct, RfqConfirmationError as cu, RfqConfirmationRejectedError as cv, type RfqConfirmationRequestEvent as cw, type RfqEvent as cx, RfqQuoteError as cy, type RfqQuoteReference as cz, type AcceptComboQuoteParams as d, type CryptoPricesEventType as d$, type SecureTradingActions as d0, type SecureWalletActions as d1, type SessionKey as d2, type SessionKeyActions as d3, SetupGaslessWalletError as d4, SetupTradingApprovalsError as d5, type SignedOrder as d6, type SignerTransactionRequest as d7, SignerType as d8, SigningError as d9, type WebSocketEndpoint as dA, WebSocketKnownCloseCode as dB, WithdrawFromPerpsError as dC, type WithdrawFromPerpsRequest as dD, accountActions as dE, allActions as dF, analyticsActions as dG, createPublicClient as dH, createSecureClient as dI, dataActions as dJ, discoveryActions as dK, forkEnvironmentConfig as dL, makeErrorGuard as dM, perpsActions as dN, production as dO, rewardsActions as dP, rfqActions as dQ, sessionKeyActions as dR, subscriptionsActions as dS, tradingActions as dT, walletActions as dU, type CancelMarketOrdersRequest as dV, type CancelOrderRequest as dW, type CancelOrdersRequest as dX, type CollateralReturnExecutionWorkflow as dY, type CommentsEventType as dZ, type CommentsSubscription as d_, SplitPositionError as da, SubscribeError as db, TimeoutError as dc, type TradingApprovalRequirements as dd, type TradingApprovalsState as de, TradingRestriction as df, TransactionFailedError as dg, type TransactionHandle as dh, type TransactionOutcome as di, TransferErc20Error as dj, TransportError as dk, type TypedDataDomain as dl, type TypedDataField as dm, UnexpectedResponseError as dn, UpdatePerpsLeverageError as dp, type UpdatePerpsLeverageRequest as dq, UpdatePerpsMarginError as dr, type UpdatePerpsMarginRequest as ds, WaitForComboFillError as dt, type WaitForComboFillParams as du, type WaitForComboFillResult as dv, WaitForOrderFillSettlementError as dw, WaitForTransactionError as dx, type WalletDerivationConfig as dy, type WebSocketCloseCode as dz, type AcceptComboQuoteResult as e, type ListAccountTradesRequest as e$, type CryptoPricesSubscription as e0, DeployDepositWalletError as e1, type DownloadAccountingSnapshotRequest as e2, type DropNotificationsRequest as e3, type EquityPricesEventType as e4, type EquityPricesSubscription as e5, type Erc1155ApprovalForAllWorkflow as e6, type Erc1155ApprovalForAllWorkflowRequest as e7, type Erc20ApprovalWorkflow as e8, type Erc20ApprovalWorkflowRequest as e9, FetchNegRiskError as eA, type FetchNegRiskRequest as eB, type FetchOrderBookRequest as eC, type FetchOrderBooksRequest as eD, type FetchOrderRequest as eE, type FetchOrderScoringRequest as eF, type FetchOrdersScoringRequest as eG, type FetchPortfolioValueRequest as eH, type FetchPriceHistoryRequest as eI, type FetchPriceRequest as eJ, type FetchPricesRequest as eK, type FetchPublicProfileRequest as eL, type FetchRelatedTagResourcesRequest as eM, type FetchRelatedTagsRequest as eN, type FetchSeriesRequest as eO, type FetchSpreadRequest as eP, type FetchSpreadsRequest as eQ, type FetchTagRequest as eR, FetchTickSizeError as eS, type FetchTickSizeRequest as eT, type FetchTotalEarningsForUserForDayRequest as eU, type FetchTradedMarketCountRequest as eV, GaslessTransactionMetadataSchema as eW, type GaslessWorkflow as eX, type GaslessWorkflowRequest as eY, IsWalletDeployedError as eZ, type IsWalletDeployedRequest as e_, type Erc20TransferWorkflow as ea, type Erc20TransferWorkflowRequest as eb, type EstimateMarketBuyPriceRequest as ec, type EstimateMarketPriceRequest as ed, type EstimateMarketSellPriceRequest as ee, type EventForSubscriptionSpec as ef, type EventForSubscriptionSpecs as eg, FetchBalanceAllowanceError as eh, type FetchBalanceAllowanceRequest as ei, FetchBuilderFeeRatesError as ej, type FetchBuilderFeeRatesRequest as ek, type FetchCommentsByIdRequest as el, type FetchEventLiveVolumeRequest as em, type FetchEventRequest as en, type FetchEventTagsRequest as eo, FetchExecuteParamsError as ep, type FetchExecuteParamsRequest as eq, type FetchGaslessTransactionRequest as er, type FetchLastTradePriceRequest as es, type FetchLastTradePricesRequest as et, FetchMarketInfoError as eu, type FetchMarketInfoRequest as ev, type FetchMarketRequest as ew, type FetchMarketTagsRequest as ex, type FetchMidpointRequest as ey, type FetchMidpointsRequest as ez, type AccountIdentity as f, type PrepareMergeComboPositionRequest as f$, type ListActivityRequest as f0, type ListBuilderLeaderboardRequest as f1, type ListBuilderTradesRequest as f2, type ListBuilderVolumeRequest as f3, type ListClosedPositionsRequest as f4, type ListComboActivityRequest as f5, type ListComboMarketsRequest as f6, type ListComboPositionsRequest as f7, type ListCommentsByUserAddressRequest as f8, type ListCommentsRequest as f9, type OrderWorkflowRequest as fA, type PerpsBboSubscription as fB, type PerpsBookSubscription as fC, type PerpsCandlesSubscription as fD, type PerpsDepositWorkflow as fE, type PerpsDepositWorkflowRequest as fF, type PerpsMarketDataEventType as fG, type PerpsMarketDataSubscription as fH, type PerpsStatisticsSubscription as fI, type PerpsStreamingCandleInterval as fJ, type PerpsTickersSubscription as fK, type PerpsTradesSubscription as fL, type PostOrdersRequest as fM, PrepareCollateralReturnExecutionError as fN, PrepareErc1155ApprovalForAllError as fO, type PrepareErc1155ApprovalForAllRequest as fP, PrepareErc20ApprovalError as fQ, type PrepareErc20ApprovalRequest as fR, PrepareErc20TransferError as fS, type PrepareErc20TransferRequest as fT, PrepareGaslessTransactionError as fU, type PrepareGaslessTransactionRequest as fV, type PrepareLimitOrderRequest as fW, type PrepareMarketBuyOrderRequest as fX, type PrepareMarketOrderRequest as fY, type PrepareMarketSellOrderRequest as fZ, PrepareMergeComboPositionError as f_, type ListCurrentRewardsRequest as fa, type ListEventsRequest as fb, ListMarketClarificationsError as fc, type ListMarketClarificationsRequest as fd, type ListMarketHoldersRequest as fe, type ListMarketPositionsRequest as ff, type ListMarketRewardsRequest as fg, type ListMarketsRequest as fh, type ListOpenInterestRequest as fi, type ListOpenOrdersRequest as fj, type ListPositionsRequest as fk, type ListSeriesRequest as fl, type ListTagsRequest as fm, type ListTeamsRequest as fn, type ListTraderLeaderboardRequest as fo, type ListTradesRequest as fp, type ListUserEarningsAndMarketsConfigRequest as fq, type ListUserEarningsForDayRequest as fr, type MarketEventType as fs, type MarketSubscription as ft, MergeComboPositionError as fu, MergeMarketPositionError as fv, type MergePositionsWorkflow as fw, type MergePositionsWorkflowRequest as fx, type OrderPostingWorkflow as fy, type OrderWorkflow as fz, type AnalyticsActions as g, executeCollateralReturnPlan as g$, PrepareMergeMarketPositionError as g0, type PrepareMergeMarketPositionRequest as g1, PrepareMergePositionsError as g2, type PrepareMergePositionsRequest as g3, PreparePerpsDepositError as g4, PrepareRedeemComboPositionError as g5, type PrepareRedeemComboPositionRequest as g6, type PrepareRedeemMarketPositionsByConditionIdRequest as g7, type PrepareRedeemMarketPositionsByMarketIdRequest as g8, PrepareRedeemMarketPositionsError as g9, SplitMarketPositionError as gA, type SplitPositionWorkflow as gB, type SplitPositionWorkflowRequest as gC, type SportsEventType as gD, type SportsSubscription as gE, type SubscriptionHandle as gF, type TradingApprovalsWorkflow as gG, type TradingApprovalsWorkflowRequest as gH, UpdateBalanceAllowanceError as gI, type UpdateBalanceAllowanceRequest as gJ, type UserEventType as gK, type UserSubscription as gL, WaitForGaslessTransactionError as gM, type WaitForOrderFillSettlementRequest as gN, acceptComboQuote as gO, approveErc1155ForAll as gP, approveErc20 as gQ, authorizeSessionKey as gR, cancelAll as gS, cancelMarketOrders as gT, cancelOrder as gU, cancelOrders as gV, deployDepositWallet as gW, depositToPerps as gX, downloadAccountingSnapshot as gY, dropNotifications as gZ, estimateMarketPrice as g_, type PrepareRedeemMarketPositionsRequest as ga, type PrepareRedeemPositionRequest as gb, PrepareRedeemPositionsError as gc, type PrepareRedeemPositionsRequest as gd, PrepareSplitComboPositionError as ge, type PrepareSplitComboPositionRequest as gf, PrepareSplitMarketPositionError as gg, type PrepareSplitMarketPositionRequest as gh, PrepareSplitPositionError as gi, type PrepareSplitPositionRequest as gj, PrepareTradingApprovalsError as gk, type PublicRealtimeEvent as gl, type PublicRealtimeTopic as gm, type PublicSubscriptionSpec as gn, type RedeemPositionsWorkflow as go, type RedeemPositionsWorkflowRequest as gp, ResolveConditionByTokenError as gq, type ResolveConditionByTokenRequest as gr, type RfqConfirmationRejectedErrorOptions as gs, type RfqExecutionUpdateEvent as gt, type SearchRequest as gu, type SearchResults as gv, type SecureRealtimeEvent as gw, type SecureRealtimeTopic as gx, type SecureSubscriptionSpec as gy, SplitComboPositionError as gz, ApproveErc1155ForAllError as h, listMarketRewards as h$, fetchBalanceAllowance as h0, fetchBuilderFeeRates as h1, fetchBuilderVolume as h2, fetchClosedOnlyMode as h3, fetchCommentsById as h4, fetchEvent as h5, fetchEventLiveVolume as h6, fetchEventTags as h7, fetchExecuteParams as h8, fetchLastTradePrice as h9, fetchRfqStatus as hA, fetchSeries as hB, fetchSessionKeys as hC, fetchSpread as hD, fetchSpreads as hE, fetchTag as hF, fetchTickSize as hG, fetchTotalEarningsForUserForDay as hH, fetchTradedMarketCount as hI, fetchTradingApprovalsState as hJ, fetchTransaction as hK, isWalletDeployed as hL, listAccountTrades as hM, listActivity as hN, listBuilderLeaderboard as hO, listBuilderTrades as hP, listClosedPositions as hQ, listComboActivity as hR, listComboMarkets as hS, listComboPositions as hT, listComments as hU, listCommentsByUserAddress as hV, listCurrentRewards as hW, listEvents as hX, listMarketClarifications as hY, listMarketHolders as hZ, listMarketPositions as h_, fetchLastTradePrices as ha, fetchMarket as hb, fetchMarketInfo as hc, fetchMarketTags as hd, fetchMidpoint as he, fetchMidpoints as hf, fetchNegRisk as hg, fetchNotifications as hh, fetchOrder as hi, fetchOrderBook as hj, fetchOrderBooks as hk, fetchOrderScoring as hl, fetchOrdersScoring as hm, fetchPerpsBook as hn, fetchPerpsFees as ho, fetchPerpsInstruments as hp, fetchPerpsTicker as hq, fetchPerpsTickers as hr, fetchPortfolioValue as hs, fetchPrice as ht, fetchPriceHistory as hu, fetchPrices as hv, fetchPublicProfile as hw, fetchRelatedTagResources as hx, fetchRelatedTags as hy, fetchRewardPercentages as hz, ApproveErc20Error as i, listMarkets as i0, listOpenInterest as i1, listOpenOrders as i2, listPerpsCandles as i3, listPerpsFundingHistory as i4, listPerpsTrades as i5, listPositions as i6, listSeries as i7, listTags as i8, listTeams as i9, prepareRedeemPositions as iA, prepareSplitComboPosition as iB, prepareSplitMarketPosition as iC, prepareSplitPosition as iD, prepareTradingApprovals as iE, redeemPositions as iF, requestComboQuote as iG, resolveConditionByToken as iH, revokePerpsCredentials as iI, revokeSessionKey as iJ, search as iK, setupTradingApprovals as iL, splitComboPosition as iM, splitMarketPosition as iN, splitPosition as iO, subscribe as iP, transferErc20 as iQ, updateBalanceAllowance as iR, waitForComboFill as iS, waitForOrderFillSettlement as iT, withdrawFromPerps as iU, listTraderLeaderboard as ia, listTrades as ib, listUserEarningsAndMarketsConfig as ic, listUserEarningsForDay as id, mergeComboPosition as ie, mergeMarketPosition as ig, mergePositions as ih, openPerpsSession as ii, openRfqSession as ij, planCollateralReturn as ik, postOrder as il, postOrders as im, prepareCollateralReturnExecution as io, prepareErc1155ApprovalForAll as ip, prepareErc20Approval as iq, prepareErc20Transfer as ir, prepareGaslessTransaction as is, prepareMergeComboPosition as it, prepareMergeMarketPosition as iu, prepareMergePositions as iv, preparePerpsDeposit as iw, prepareRedeemComboPosition as ix, prepareRedeemMarketPositions as iy, prepareRedeemPosition as iz, ArmPerpsAutoCancelError as j, type ArmPerpsAutoCancelRequest as k, AuthorizeSessionKeyError as l, type AuthorizeSessionKeyRequest as m, type AuthorizeSessionKeyResult as n, AutoCancelDailyLimitError as o, BasePublicClient as p, BaseSecureClient as q, type BeginAuthenticationRequest as r, type CancelAllPerpsOrdersRequest as s, CancelMarketOrdersError as t, CancelOrderError as u, CancelOrdersError as v, type CancelPerpsOrderRequest as w, type CancelPerpsOrdersRequest as x, CancelledSigningError as y, type Client as z };
10254
+ export { type Erc1155TradingApproval as $, type ApiKeyAuthorization as A, type BaseClient as B, CancelAllError as C, type ClientActions as D, type ClientDecorator as E, type ClobEndpoints as F, type ComboPositionStatusFilter as G, type ComboQuote as H, type CombosEndpoints as I, ConnectionLostError as J, type ConnectionLostErrorOptions as K, type CreatePerpsSessionRequest as L, CreateSecureClientError as M, type CryptoPricesChainlinkTwapSubscription as N, type DataActions as O, DepositToPerpsError as P, type DepositToPerpsRequest as Q, type DisarmPerpsAutoCancelRequest as R, type Signer as S, type TypedDataPayload as T, UserInputError as U, type DiscoveryActions as V, DownloadAccountingSnapshotError as W, DropNotificationsError as X, type EnvironmentConfig as Y, type EnvironmentConfigFork as Z, type EnvironmentContracts as _, type TypedData as a, ListComboActivityError as a$, type Erc20TradingApproval as a0, EstimateMarketPriceError as a1, ExecuteCollateralReturnPlanError as a2, type ExecuteCollateralReturnPlanRequest as a3, FetchBuilderVolumeError as a4, FetchClosedOnlyModeError as a5, FetchCommentsByIdError as a6, FetchEventError as a7, FetchEventLiveVolumeError as a8, FetchEventTagsError as a9, FetchPriceError as aA, FetchPricesError as aB, FetchPublicProfileError as aC, FetchRelatedTagResourcesError as aD, FetchRelatedTagsError as aE, FetchResolutionsError as aF, FetchRewardPercentagesError as aG, FetchRfqStatusError as aH, type FetchRfqStatusParams as aI, FetchSeriesError as aJ, FetchSessionKeysError as aK, FetchSpreadError as aL, FetchSpreadsError as aM, FetchTagError as aN, FetchTotalEarningsForUserForDayError as aO, FetchTraderLeaderboardStandingError as aP, FetchTradingApprovalsStateError as aQ, type FetchTradingApprovalsStateRequest as aR, FetchUserPnlError as aS, FetchUserStatsError as aT, FetchUserVolumeError as aU, InsufficientLiquidityError as aV, ListAccountTradesError as aW, ListActivityError as aX, ListBiggestWinnersError as aY, ListBuilderLeaderboardError as aZ, ListBuilderTradesError as a_, FetchLastTradePriceError as aa, FetchLastTradePricesError as ab, FetchMarketError as ac, FetchMarketTagsError as ad, FetchMidpointError as ae, FetchMidpointsError as af, FetchNotificationsError as ag, FetchOpenInterestError as ah, FetchOrderBookError as ai, FetchOrderBooksError as aj, FetchOrderError as ak, FetchOrderScoringError as al, FetchOrdersScoringError as am, type FetchPerpsAccountConfigRequest as an, FetchPerpsBookError as ao, type FetchPerpsBookRequest as ap, FetchPerpsFeesError as aq, FetchPerpsInstrumentsError as ar, type FetchPerpsInstrumentsRequest as as, type FetchPerpsOpenOrdersRequest as at, type FetchPerpsOrdersRequest as au, FetchPerpsTickerError as av, type FetchPerpsTickerRequest as aw, FetchPerpsTickersError as ax, type FetchPerpsTickersRequest as ay, FetchPortfolioValueError as az, type TransactionCall as b, PostOrderError as b$, ListComboMarketsError as b0, ListComboPositionsError as b1, ListCommentsByUserAddressError as b2, ListCommentsError as b3, ListCurrentRewardsError as b4, ListEventsError as b5, ListMarketHoldersError as b6, ListMarketRewardsError as b7, ListMarketsError as b8, ListOpenOrdersError as b9, OpenRfqSessionError as bA, type OrderSignature as bB, type Page as bC, PageSizeSchema as bD, type Paginated as bE, type PerpsActions as bF, type PerpsBookDepth as bG, type PerpsEndpoints as bH, type PerpsOrderRequest as bI, type PerpsPlaceFokOrderRequest as bJ, type PerpsPlaceGtcOrderRequest as bK, type PerpsPlaceIocOrderRequest as bL, type PerpsPlacedTpSlOrder as bM, type PerpsPlacedTpSlOrders as bN, type PerpsPositionTpSlTrigger as bO, PerpsSession as bP, type PerpsSessionAccountError as bQ, type PerpsSessionLifecycleError as bR, type PerpsSessionTradingError as bS, type PerpsTpSlTrigger as bT, type PlacePerpsOrderRequest as bU, type PlacePerpsOrderResult as bV, type PlacePerpsOrderWithTpSlRequest as bW, type PlacePerpsOrderWithTpSlResult as bX, type PlacePerpsPositionTpSlRequest as bY, type PlacePerpsPositionTpSlResult as bZ, PlanCollateralReturnError as b_, ListPerpsCandlesError as ba, type ListPerpsCandlesRequest as bb, type ListPerpsDepositsRequest as bc, type ListPerpsEquityHistoryRequest as bd, type ListPerpsFillsRequest as be, ListPerpsFundingHistoryError as bf, type ListPerpsFundingHistoryRequest as bg, type ListPerpsFundingPaymentsRequest as bh, type ListPerpsNotificationsRequest as bi, type ListPerpsPnlHistoryRequest as bj, ListPerpsTradesError as bk, type ListPerpsTradesRequest as bl, type ListPerpsWithdrawalsRequest as bm, ListPositionsError as bn, ListPriceHistoryError as bo, ListSeriesError as bp, ListTagsError as bq, ListTeamsError as br, ListTraderLeaderboardError as bs, ListTradesError as bt, ListUserEarningsAndMarketsConfigError as bu, ListUserEarningsForDayError as bv, type MarkPerpsNotificationsReadRequest as bw, MergePositionsError as bx, OpenPerpsSessionError as by, type OpenPerpsSessionRequest as bz, AcceptComboQuoteError as c, type SecureListPositionsRequest as c$, PostOrdersError as c0, type PostPerpsOrdersRequest as c1, type PublicAccountActions as c2, type PublicActions as c3, type PublicClient as c4, type PublicClientOptions as c5, type PublicPerpsActions as c6, type PublicRewardsActions as c7, type PublicSubscriptionsActions as c8, type PublicWalletActions as c9, RfqQuoteError as cA, type RfqQuoteReference as cB, RfqQuoteRejectedError as cC, type RfqQuoteRejectedErrorOptions as cD, type RfqQuoteRequestEvent as cE, type RfqQuoteResponse as cF, type RfqQuoteSource as cG, RfqRequestRejectedError as cH, type RfqRequestRejectedErrorOptions as cI, type RfqSession as cJ, type RfqStatusResult as cK, type RfqTradeEvent as cL, SearchError as cM, SearchSort as cN, type SecureAccountActions as cO, type SecureActions as cP, type SecureClient as cQ, type SecureClientOptions as cR, type SecureDownloadAccountingSnapshotRequest as cS, type SecureFetchPortfolioValueRequest as cT, type SecureFetchTraderLeaderboardStandingRequest as cU, type SecureFetchUserPnlRequest as cV, type SecureFetchUserStatsRequest as cW, type SecureFetchUserVolumeRequest as cX, type SecureListActivityRequest as cY, type SecureListComboActivityRequest as cZ, type SecureListComboPositionsRequest as c_, type RateLimitBucket as ca, RateLimitError as cb, type RateLimitErrorOptions as cc, type RateLimitUpdate as cd, type RateLimitUpdateListener as ce, RedeemPositionsError as cf, RequestComboQuoteError as cg, type RequestComboQuoteParams as ch, type RequestComboQuoteResult as ci, RequestRejectedError as cj, type RequestRejectedErrorOptions as ck, type RestEndpoint as cl, type ResumePerpsSessionRequest as cm, RevokePerpsCredentialsError as cn, type RevokePerpsCredentialsRequest as co, RevokeSessionKeyError as cp, type RevokeSessionKeyRequest as cq, type RfqCancelQuoteAck as cr, RfqCancelQuoteError as cs, RfqCancelQuoteRejectedError as ct, type RfqCancelQuoteRejectedErrorOptions as cu, type RfqConfirmationAck as cv, RfqConfirmationError as cw, RfqConfirmationRejectedError as cx, type RfqConfirmationRequestEvent as cy, type RfqEvent as cz, type AcceptComboQuoteParams as d, type CancelOrdersRequest as d$, type SecurePerpsActions as d0, type SecureRewardsActions as d1, type SecureRfqActions as d2, type SecureSubscriptionsActions as d3, type SecureTradingActions as d4, type SecureWalletActions as d5, type SessionKey as d6, type SessionKeyActions as d7, SetupGaslessWalletError as d8, SetupTradingApprovalsError as d9, WaitForOrderFillSettlementError as dA, WaitForTransactionError as dB, type WalletDerivationConfig as dC, type WebSocketCloseCode as dD, type WebSocketEndpoint as dE, WebSocketKnownCloseCode as dF, WithdrawFromPerpsError as dG, type WithdrawFromPerpsRequest as dH, accountActions as dI, allActions as dJ, analyticsActions as dK, createPublicClient as dL, createSecureClient as dM, dataActions as dN, discoveryActions as dO, forkEnvironmentConfig as dP, makeErrorGuard as dQ, perpsActions as dR, production as dS, rewardsActions as dT, rfqActions as dU, sessionKeyActions as dV, subscriptionsActions as dW, tradingActions as dX, walletActions as dY, type CancelMarketOrdersRequest as dZ, type CancelOrderRequest as d_, type SignedOrder as da, type SignerTransactionRequest as db, SignerType as dc, SigningError as dd, SplitPositionError as de, SubscribeError as df, TimeoutError as dg, type TradingApprovalRequirements as dh, type TradingApprovalsState as di, TradingRestriction as dj, TransactionFailedError as dk, type TransactionHandle as dl, type TransactionOutcome as dm, TransferErc20Error as dn, TransportError as dp, type TypedDataDomain as dq, type TypedDataField as dr, UnexpectedResponseError as ds, UpdatePerpsLeverageError as dt, type UpdatePerpsLeverageRequest as du, UpdatePerpsMarginError as dv, type UpdatePerpsMarginRequest as dw, WaitForComboFillError as dx, type WaitForComboFillParams as dy, type WaitForComboFillResult as dz, type AcceptComboQuoteResult as e, FetchTickSizeError as e$, type CollateralReturnExecutionWorkflow as e0, type CommentsEventType as e1, type CommentsSubscription as e2, type CryptoPricesEventType as e3, type CryptoPricesSubscription as e4, DeployDepositWalletError as e5, type DownloadAccountingSnapshotRequest as e6, type DropNotificationsRequest as e7, type EquityPricesEventType as e8, type EquityPricesSubscription as e9, type FetchMarketInfoRequest as eA, type FetchMarketRequest as eB, type FetchMarketTagsRequest as eC, type FetchMidpointRequest as eD, type FetchMidpointsRequest as eE, FetchNegRiskError as eF, type FetchNegRiskRequest as eG, type FetchOpenInterestRequest as eH, type FetchOrderBookRequest as eI, type FetchOrderBooksRequest as eJ, type FetchOrderRequest as eK, type FetchOrderScoringRequest as eL, type FetchOrdersScoringRequest as eM, type FetchPortfolioValueRequest as eN, type FetchPriceRequest as eO, type FetchPricesRequest as eP, type FetchPublicProfileRequest as eQ, type FetchRelatedTagResourcesRequest as eR, type FetchRelatedTagsRequest as eS, type FetchResolutionsByConditionRequest as eT, type FetchResolutionsByEventRequest as eU, type FetchResolutionsByQuestionRequest as eV, type FetchResolutionsRequest as eW, type FetchSeriesRequest as eX, type FetchSpreadRequest as eY, type FetchSpreadsRequest as eZ, type FetchTagRequest as e_, type Erc1155ApprovalForAllWorkflow as ea, type Erc1155ApprovalForAllWorkflowRequest as eb, type Erc20ApprovalWorkflow as ec, type Erc20ApprovalWorkflowRequest as ed, type Erc20TransferWorkflow as ee, type Erc20TransferWorkflowRequest as ef, type EstimateMarketBuyPriceRequest as eg, type EstimateMarketPriceRequest as eh, type EstimateMarketSellPriceRequest as ei, type EventForSubscriptionSpec as ej, type EventForSubscriptionSpecs as ek, FetchBalanceAllowanceError as el, type FetchBalanceAllowanceRequest as em, FetchBuilderFeeRatesError as en, type FetchBuilderFeeRatesRequest as eo, type FetchBuilderVolumeRequest as ep, type FetchCommentsByIdRequest as eq, type FetchEventLiveVolumeRequest as er, type FetchEventRequest as es, type FetchEventTagsRequest as et, FetchExecuteParamsError as eu, type FetchExecuteParamsRequest as ev, type FetchGaslessTransactionRequest as ew, type FetchLastTradePriceRequest as ex, type FetchLastTradePricesRequest as ey, FetchMarketInfoError as ez, type AccountIdentity as f, type PrepareErc20ApprovalRequest as f$, type FetchTickSizeRequest as f0, type FetchTotalEarningsForUserForDayRequest as f1, type FetchTraderLeaderboardStandingRequest as f2, type FetchUserPnlRequest as f3, type FetchUserStatsRequest as f4, type FetchUserVolumeRequest as f5, GaslessTransactionMetadataSchema as f6, type GaslessWorkflow as f7, type GaslessWorkflowRequest as f8, IsWalletDeployedError as f9, type ListUserEarningsAndMarketsConfigRequest as fA, type ListUserEarningsForDayRequest as fB, type MarketEventType as fC, type MarketSubscription as fD, MergeComboPositionError as fE, MergeMarketPositionError as fF, type MergePositionsWorkflow as fG, type MergePositionsWorkflowRequest as fH, type OrderPostingWorkflow as fI, type OrderWorkflow as fJ, type OrderWorkflowRequest as fK, type PerpsBboSubscription as fL, type PerpsBookSubscription as fM, type PerpsCandlesSubscription as fN, type PerpsDepositWorkflow as fO, type PerpsDepositWorkflowRequest as fP, type PerpsMarketDataEventType as fQ, type PerpsMarketDataSubscription as fR, type PerpsStatisticsSubscription as fS, type PerpsStreamingCandleInterval as fT, type PerpsTickersSubscription as fU, type PerpsTradesSubscription as fV, type PostOrdersRequest as fW, PrepareCollateralReturnExecutionError as fX, PrepareErc1155ApprovalForAllError as fY, type PrepareErc1155ApprovalForAllRequest as fZ, PrepareErc20ApprovalError as f_, type IsWalletDeployedRequest as fa, type ListAccountTradesRequest as fb, type ListActivityRequest as fc, type ListBiggestWinnersRequest as fd, type ListBuilderLeaderboardRequest as fe, type ListBuilderTradesRequest as ff, type ListComboActivityRequest as fg, type ListComboMarketsRequest as fh, type ListComboPositionsRequest as fi, type ListCommentsByUserAddressRequest as fj, type ListCommentsRequest as fk, type ListCurrentRewardsRequest as fl, type ListEventsRequest as fm, ListMarketClarificationsError as fn, type ListMarketClarificationsRequest as fo, type ListMarketHoldersRequest as fp, type ListMarketRewardsRequest as fq, type ListMarketsRequest as fr, type ListOpenOrdersRequest as fs, type ListPositionsRequest as ft, type ListPriceHistoryRequest as fu, type ListSeriesRequest as fv, type ListTagsRequest as fw, type ListTeamsRequest as fx, type ListTraderLeaderboardRequest as fy, type ListTradesRequest as fz, type AnalyticsActions as g, authorizeSessionKey as g$, PrepareErc20TransferError as g0, type PrepareErc20TransferRequest as g1, PrepareGaslessTransactionError as g2, type PrepareGaslessTransactionRequest as g3, type PrepareLimitOrderRequest as g4, type PrepareMarketBuyOrderRequest as g5, type PrepareMarketOrderRequest as g6, type PrepareMarketSellOrderRequest as g7, PrepareMergeComboPositionError as g8, type PrepareMergeComboPositionRequest as g9, ResolveConditionByTokenError as gA, type ResolveConditionByTokenRequest as gB, type RfqConfirmationRejectedErrorOptions as gC, type RfqExecutionUpdateEvent as gD, type SearchRequest as gE, type SearchResults as gF, type SecureRealtimeEvent as gG, type SecureRealtimeTopic as gH, type SecureSubscriptionSpec as gI, SplitComboPositionError as gJ, SplitMarketPositionError as gK, type SplitPositionWorkflow as gL, type SplitPositionWorkflowRequest as gM, type SportsEventType as gN, type SportsSubscription as gO, type SubscriptionHandle as gP, type TradingApprovalsWorkflow as gQ, type TradingApprovalsWorkflowRequest as gR, UpdateBalanceAllowanceError as gS, type UpdateBalanceAllowanceRequest as gT, type UserEventType as gU, type UserSubscription as gV, WaitForGaslessTransactionError as gW, type WaitForOrderFillSettlementRequest as gX, acceptComboQuote as gY, approveErc1155ForAll as gZ, approveErc20 as g_, PrepareMergeMarketPositionError as ga, type PrepareMergeMarketPositionRequest as gb, PrepareMergePositionsError as gc, type PrepareMergePositionsRequest as gd, PreparePerpsDepositError as ge, PrepareRedeemComboPositionError as gf, type PrepareRedeemComboPositionRequest as gg, type PrepareRedeemMarketPositionsByConditionIdRequest as gh, type PrepareRedeemMarketPositionsByMarketIdRequest as gi, PrepareRedeemMarketPositionsError as gj, type PrepareRedeemMarketPositionsRequest as gk, type PrepareRedeemPositionRequest as gl, PrepareRedeemPositionsError as gm, type PrepareRedeemPositionsRequest as gn, PrepareSplitComboPositionError as go, type PrepareSplitComboPositionRequest as gp, PrepareSplitMarketPositionError as gq, type PrepareSplitMarketPositionRequest as gr, PrepareSplitPositionError as gs, type PrepareSplitPositionRequest as gt, PrepareTradingApprovalsError as gu, type PublicRealtimeEvent as gv, type PublicRealtimeTopic as gw, type PublicSubscriptionSpec as gx, type RedeemPositionsWorkflow as gy, type RedeemPositionsWorkflowRequest as gz, ApproveErc1155ForAllError as h, listActivity as h$, cancelAll as h0, cancelMarketOrders as h1, cancelOrder as h2, cancelOrders as h3, deployDepositWallet as h4, depositToPerps as h5, downloadAccountingSnapshot as h6, dropNotifications as h7, estimateMarketPrice as h8, executeCollateralReturnPlan as h9, fetchPerpsInstruments as hA, fetchPerpsTicker as hB, fetchPerpsTickers as hC, fetchPortfolioValue as hD, fetchPrice as hE, fetchPrices as hF, fetchPublicProfile as hG, fetchRelatedTagResources as hH, fetchRelatedTags as hI, fetchResolutions as hJ, fetchRewardPercentages as hK, fetchRfqStatus as hL, fetchSeries as hM, fetchSessionKeys as hN, fetchSpread as hO, fetchSpreads as hP, fetchTag as hQ, fetchTickSize as hR, fetchTotalEarningsForUserForDay as hS, fetchTraderLeaderboardStanding as hT, fetchTradingApprovalsState as hU, fetchTransaction as hV, fetchUserPnl as hW, fetchUserStats as hX, fetchUserVolume as hY, isWalletDeployed as hZ, listAccountTrades as h_, fetchBalanceAllowance as ha, fetchBuilderFeeRates as hb, fetchBuilderVolume as hc, fetchClosedOnlyMode as hd, fetchCommentsById as he, fetchEvent as hf, fetchEventLiveVolume as hg, fetchEventTags as hh, fetchExecuteParams as hi, fetchLastTradePrice as hj, fetchLastTradePrices as hk, fetchMarket as hl, fetchMarketInfo as hm, fetchMarketTags as hn, fetchMidpoint as ho, fetchMidpoints as hp, fetchNegRisk as hq, fetchNotifications as hr, fetchOpenInterest as hs, fetchOrder as ht, fetchOrderBook as hu, fetchOrderBooks as hv, fetchOrderScoring as hw, fetchOrdersScoring as hx, fetchPerpsBook as hy, fetchPerpsFees as hz, ApproveErc20Error as i, splitPosition as i$, listBiggestWinners as i0, listBuilderLeaderboard as i1, listBuilderTrades as i2, listComboActivity as i3, listComboMarkets as i4, listComboPositions as i5, listComments as i6, listCommentsByUserAddress as i7, listCurrentRewards as i8, listEvents as i9, postOrders as iA, prepareCollateralReturnExecution as iB, prepareErc1155ApprovalForAll as iC, prepareErc20Approval as iD, prepareErc20Transfer as iE, prepareGaslessTransaction as iF, prepareMergeComboPosition as iG, prepareMergeMarketPosition as iH, prepareMergePositions as iI, preparePerpsDeposit as iJ, prepareRedeemComboPosition as iK, prepareRedeemMarketPositions as iL, prepareRedeemPosition as iM, prepareRedeemPositions as iN, prepareSplitComboPosition as iO, prepareSplitMarketPosition as iP, prepareSplitPosition as iQ, prepareTradingApprovals as iR, redeemPositions as iS, requestComboQuote as iT, resolveConditionByToken as iU, revokePerpsCredentials as iV, revokeSessionKey as iW, search as iX, setupTradingApprovals as iY, splitComboPosition as iZ, splitMarketPosition as i_, listMarketClarifications as ia, listMarketHolders as ib, listMarketRewards as ic, listMarkets as id, listOpenOrders as ie, listPerpsCandles as ig, listPerpsFundingHistory as ih, listPerpsTrades as ii, listPositions as ij, listPriceHistory as ik, listSeries as il, listTags as im, listTeams as io, listTraderLeaderboard as ip, listTrades as iq, listUserEarningsAndMarketsConfig as ir, listUserEarningsForDay as is, mergeComboPosition as it, mergeMarketPosition as iu, mergePositions as iv, openPerpsSession as iw, openRfqSession as ix, planCollateralReturn as iy, postOrder as iz, ArmPerpsAutoCancelError as j, subscribe as j0, transferErc20 as j1, updateBalanceAllowance as j2, waitForComboFill as j3, waitForOrderFillSettlement as j4, withdrawFromPerps as j5, type ArmPerpsAutoCancelRequest as k, AuthorizeSessionKeyError as l, type AuthorizeSessionKeyRequest as m, type AuthorizeSessionKeyResult as n, AutoCancelDailyLimitError as o, BasePublicClient as p, BaseSecureClient as q, type BeginAuthenticationRequest as r, type CancelAllPerpsOrdersRequest as s, CancelMarketOrdersError as t, CancelOrderError as u, CancelOrdersError as v, type CancelPerpsOrderRequest as w, type CancelPerpsOrdersRequest as x, CancelledSigningError as y, type Client as z };