@polymarket/client 0.9.0 → 0.11.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,16 +1,17 @@
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';
13
- import { PerpsSessionEvent, CommentsEvent, CryptoPricesTopic, CryptoPricesChainlinkTwapTopic, CryptoPricesChainlinkTwapWindowSeconds, EquityPricesTopic, EquityPricesEvent, MarketEvent, StandardMarketEvent, CryptoPricesChainlinkTwapThirtyEvent, CryptoPricesChainlinkTwapSixtyEvent, CryptoPricesChainlinkTwapEvent, UserEvent, SportsEvent, CryptoPricesBinanceEvent, CryptoPricesChainlinkEvent, PerpsTradeEvent, PerpsBboEvent, PerpsBookEvent, PerpsCandleEvent, PerpsTickerEvent, PerpsStatisticEvent, CryptoPricesEvent, PerpsMarketDataEvent } from '@polymarket/bindings/subscriptions';
14
+ import { PerpsSessionEvent, CommentsEvent, CryptoPricesTopic, CryptoPricesChainlinkTwapTopic, CryptoPricesChainlinkTwapWindowSeconds, EquityPricesTopic, EquityPricesEvent, MarketEvent, StandardMarketEvent, CryptoPricesChainlinkTwapThirtyEvent, CryptoPricesChainlinkTwapSixtyEvent, CryptoPricesChainlinkTwapEvent, CryptoPriceEvent, CryptoTwapPriceEvent, EquityPriceEvent, CryptoPricesBinanceEvent, CryptoPricesChainlinkEvent, UserEvent, SportsEvent, PerpsTradeEvent, PerpsBboEvent, PerpsBookEvent, PerpsCandleEvent, PerpsTickerEvent, PerpsStatisticEvent, CryptoPricesEvent, PerpsMarketDataEvent } from '@polymarket/bindings/subscriptions';
14
15
  import { Hex } from 'ox';
15
16
 
16
17
  /** Independent rate-limit bucket affected by an order or cancellation. */
@@ -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
896
873
  * ```
897
874
  */
898
- declare function fetchTradedMarketCount(client: BaseClient, request: FetchTradedMarketCountRequest): Promise<Traded>;
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
+ * });
945
+ * ```
946
+ */
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>;
1288
+ /**
1289
+ * Fetches one trader's standing on both the PnL and volume boards.
1290
+ *
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.
1294
+ *
1295
+ * @throws {@link FetchTraderLeaderboardStandingError}
1296
+ * Thrown on failure.
1297
+ *
1298
+ * @example
1299
+ * ```ts
1300
+ * const standing = await client.fetchTraderLeaderboardStanding({
1301
+ * window: LeaderboardWindow.All,
1302
+ * });
1303
+ * ```
1304
+ */
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>;
1244
1328
  /**
1245
- * Fetches the total number of markets a wallet has traded.
1329
+ * Fetches trading volume for a wallet over a time window.
1246
1330
  *
1247
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.
1248
1334
  *
1249
- * @throws {@link FetchTradedMarketCountError}
1335
+ * @throws {@link FetchUserVolumeError}
1250
1336
  * Thrown on failure.
1251
1337
  */
1252
- fetchTradedMarketCount(request?: SecureFetchTradedMarketCountRequest): Promise<Traded>;
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
+ * });
1637
+ * ```
1638
+ */
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
+ * });
1496
1657
  * ```
1497
1658
  */
1498
- fetchEventLiveVolume(request: FetchEventLiveVolumeRequest): Promise<LiveVolume[]>;
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.
1660
1841
  *
1661
- * @throws {@link ListOpenInterestError}
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.
1847
+ *
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.
@@ -3536,6 +3746,13 @@ type SecureSubscriptionsActions = {
3536
3746
  /**
3537
3747
  * Starts one or more realtime subscriptions on this client.
3538
3748
  *
3749
+ * The new `prices.crypto`, `prices.crypto.twap`, and `prices.equity` topics
3750
+ * require explicit filters and include history snapshots and live updates.
3751
+ * Legacy source-named topics retain their existing filter and event behavior.
3752
+ * Event `seq` values are scoped to one channel on one WebSocket connection
3753
+ * and reset after reconnecting. Subscriptions with more than 64 filters use
3754
+ * multiple connections, so their sequence values may interleave.
3755
+ *
3539
3756
  * @throws {@link SubscribeError}
3540
3757
  * Thrown when subscription input is invalid or a realtime subscription fails.
3541
3758
  *
@@ -3565,7 +3782,7 @@ declare const CancelOrdersRequestSchema: z.ZodObject<{
3565
3782
  type CancelOrderRequest = z.input<typeof CancelOrderRequestSchema>;
3566
3783
  type CancelOrderError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3567
3784
  declare const CancelOrderError: {
3568
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3785
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3569
3786
  };
3570
3787
  /**
3571
3788
  * Cancels a single open order for the authenticated account.
@@ -3589,7 +3806,7 @@ declare function cancelOrder(client: BaseSecureClient, request: CancelOrderReque
3589
3806
  type CancelOrdersRequest = z.input<typeof CancelOrdersRequestSchema>;
3590
3807
  type CancelOrdersError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3591
3808
  declare const CancelOrdersError: {
3592
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3809
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3593
3810
  };
3594
3811
  /**
3595
3812
  * Cancels multiple open orders for the authenticated account.
@@ -3612,7 +3829,7 @@ declare const CancelOrdersError: {
3612
3829
  declare function cancelOrders(client: BaseSecureClient, request: CancelOrdersRequest): Promise<CancelOrdersResponse>;
3613
3830
  type CancelAllError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError;
3614
3831
  declare const CancelAllError: {
3615
- isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3832
+ isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3616
3833
  };
3617
3834
  /**
3618
3835
  * Cancels all open orders for the authenticated account.
@@ -3644,7 +3861,7 @@ type CancelMarketOrdersRequest = {
3644
3861
  };
3645
3862
  type CancelMarketOrdersError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3646
3863
  declare const CancelMarketOrdersError: {
3647
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3864
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3648
3865
  };
3649
3866
  /**
3650
3867
  * Cancels all open orders for the authenticated account that match the market
@@ -3728,7 +3945,7 @@ type EstimateMarketSellPriceRequest = {
3728
3945
  type EstimateMarketPriceRequest = EstimateMarketBuyPriceRequest | EstimateMarketSellPriceRequest;
3729
3946
  type EstimateMarketPriceError = InsufficientLiquidityError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
3730
3947
  declare const EstimateMarketPriceError: {
3731
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | InsufficientLiquidityError;
3948
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | InsufficientLiquidityError;
3732
3949
  };
3733
3950
  /**
3734
3951
  * Estimates the price level a market order would cross at current book depth.
@@ -3911,11 +4128,11 @@ type OrderPostingWorkflow = AsyncGenerator<OrderWorkflowRequest, OrderResponse,
3911
4128
  type PostOrdersRequest = SignedOrder[];
3912
4129
  type PostOrderError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3913
4130
  declare const PostOrderError: {
3914
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
4131
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3915
4132
  };
3916
4133
  type PostOrdersError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3917
4134
  declare const PostOrdersError: {
3918
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
4135
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3919
4136
  };
3920
4137
  /**
3921
4138
  * Posts a signed order for the authenticated account.
@@ -3964,7 +4181,7 @@ type WaitForOrderFillSettlementRequest = {
3964
4181
  };
3965
4182
  type WaitForOrderFillSettlementError = RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
3966
4183
  declare const WaitForOrderFillSettlementError: {
3967
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | SigningError;
4184
+ isError(error: unknown): error is SigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
3968
4185
  };
3969
4186
  /**
3970
4187
  * Waits until every fill listed in an order response reaches a terminal
@@ -4647,6 +4864,8 @@ type EnvironmentConfigFork = {
4647
4864
  collateralReturn?: Partial<RestEndpoint>;
4648
4865
  };
4649
4866
  perps?: EnvironmentConfigForkEndpoint;
4867
+ realtime?: Partial<WebSocketEndpoint>;
4868
+ /** @deprecated Retained temporarily for legacy RTDS streams. */
4650
4869
  rtds?: Partial<WebSocketEndpoint>;
4651
4870
  sports?: Partial<WebSocketEndpoint>;
4652
4871
  relayerMaxPolls?: number;
@@ -4929,7 +5148,7 @@ type SecureClientOptions = PublicClientOptions & {
4929
5148
  declare function createPublicClient(options?: PublicClientOptions): PublicClient<PublicActions, SecureActions>;
4930
5149
  type CreateSecureClientError = CancelledSigningError | DeployDepositWalletError | IsWalletDeployedError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError | WaitForGaslessTransactionError;
4931
5150
  declare const CreateSecureClientError: {
4932
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
5151
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
4933
5152
  };
4934
5153
  type SetupGaslessWalletError = UserInputError;
4935
5154
  declare const SetupGaslessWalletError: {
@@ -4952,7 +5171,7 @@ declare function createSecureClient(options: SecureClientOptions): Promise<Secur
4952
5171
 
4953
5172
  type FetchClosedOnlyModeError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
4954
5173
  declare const FetchClosedOnlyModeError: {
4955
- isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5174
+ isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4956
5175
  };
4957
5176
  /**
4958
5177
  * Fetches whether the account is restricted to closed-only trading.
@@ -4985,7 +5204,7 @@ type ListOpenOrdersRequest = {
4985
5204
  };
4986
5205
  type ListOpenOrdersError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
4987
5206
  declare const ListOpenOrdersError: {
4988
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5207
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4989
5208
  };
4990
5209
  /**
4991
5210
  * Lists open orders for the authenticated account across all pages.
@@ -5029,7 +5248,7 @@ declare const FetchOrderRequestSchema: z.ZodObject<{
5029
5248
  type FetchOrderRequest = z.input<typeof FetchOrderRequestSchema>;
5030
5249
  type FetchOrderError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5031
5250
  declare const FetchOrderError: {
5032
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5251
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5033
5252
  };
5034
5253
  /**
5035
5254
  * Fetches a single order for the authenticated account.
@@ -5070,7 +5289,7 @@ type ListAccountTradesRequest = {
5070
5289
  };
5071
5290
  type ListAccountTradesError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5072
5291
  declare const ListAccountTradesError: {
5073
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5292
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5074
5293
  };
5075
5294
  /**
5076
5295
  * Lists trades for the authenticated account across all pages.
@@ -5110,7 +5329,7 @@ declare const ListAccountTradesError: {
5110
5329
  declare function listAccountTrades(client: BaseSecureClient, request?: ListAccountTradesRequest): Paginated<ClobTrade[]>;
5111
5330
  type FetchNotificationsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
5112
5331
  declare const FetchNotificationsError: {
5113
- isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5332
+ isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5114
5333
  };
5115
5334
  declare const DropNotificationsRequestSchema: z.ZodObject<{
5116
5335
  ids: z.ZodArray<z.ZodString>;
@@ -5133,7 +5352,7 @@ type DropNotificationsRequest = z.input<typeof DropNotificationsRequestSchema>;
5133
5352
  declare function fetchNotifications(client: BaseSecureClient): Promise<NotificationsResponse>;
5134
5353
  type DropNotificationsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5135
5354
  declare const DropNotificationsError: {
5136
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5355
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5137
5356
  };
5138
5357
  /**
5139
5358
  * Drops notifications for the authenticated account.
@@ -5165,7 +5384,7 @@ type FetchBalanceAllowanceRequest = {
5165
5384
  };
5166
5385
  type FetchBalanceAllowanceError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5167
5386
  declare const FetchBalanceAllowanceError: {
5168
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5387
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5169
5388
  };
5170
5389
  /**
5171
5390
  * Fetches balance and allowance for the authenticated account.
@@ -5197,7 +5416,7 @@ type UpdateBalanceAllowanceRequest = {
5197
5416
  };
5198
5417
  type UpdateBalanceAllowanceError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5199
5418
  declare const UpdateBalanceAllowanceError: {
5200
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5419
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5201
5420
  };
5202
5421
  /**
5203
5422
  * Refreshes balance and allowance for the authenticated account.
@@ -5222,7 +5441,7 @@ declare const FetchOrderScoringRequestSchema: z.ZodObject<{
5222
5441
  type FetchOrderScoringRequest = z.input<typeof FetchOrderScoringRequestSchema>;
5223
5442
  type FetchOrderScoringError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5224
5443
  declare const FetchOrderScoringError: {
5225
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5444
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5226
5445
  };
5227
5446
  /**
5228
5447
  * Fetches whether a single order is currently scoring.
@@ -5246,7 +5465,7 @@ declare const FetchOrdersScoringRequestSchema: z.ZodObject<{
5246
5465
  type FetchOrdersScoringRequest = z.input<typeof FetchOrdersScoringRequestSchema>;
5247
5466
  type FetchOrdersScoringError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5248
5467
  declare const FetchOrdersScoringError: {
5249
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5468
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5250
5469
  };
5251
5470
  /**
5252
5471
  * Fetches scoring state for multiple orders.
@@ -5271,7 +5490,7 @@ declare const ListUserEarningsForDayRequestSchema: z.ZodObject<{
5271
5490
  type ListUserEarningsForDayRequest = z.input<typeof ListUserEarningsForDayRequestSchema>;
5272
5491
  type ListUserEarningsForDayError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5273
5492
  declare const ListUserEarningsForDayError: {
5274
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5493
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5275
5494
  };
5276
5495
  /**
5277
5496
  * Lists per-market earnings for the authenticated account on a given day.
@@ -5312,7 +5531,7 @@ declare function listUserEarningsForDay(client: BaseSecureClient, request: ListU
5312
5531
  type FetchTotalEarningsForUserForDayRequest = z.input<typeof ListUserEarningsForDayRequestSchema>;
5313
5532
  type FetchTotalEarningsForUserForDayError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5314
5533
  declare const FetchTotalEarningsForUserForDayError: {
5315
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5534
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5316
5535
  };
5317
5536
  /**
5318
5537
  * Fetches total earnings for the authenticated account on a given day.
@@ -5341,7 +5560,7 @@ declare const ListUserEarningsAndMarketsConfigRequestSchema: z.ZodObject<{
5341
5560
  type ListUserEarningsAndMarketsConfigRequest = z.input<typeof ListUserEarningsAndMarketsConfigRequestSchema>;
5342
5561
  type ListUserEarningsAndMarketsConfigError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5343
5562
  declare const ListUserEarningsAndMarketsConfigError: {
5344
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5563
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5345
5564
  };
5346
5565
  /**
5347
5566
  * Lists market reward configuration and earnings for the authenticated account on a given day.
@@ -5381,7 +5600,7 @@ declare const ListUserEarningsAndMarketsConfigError: {
5381
5600
  declare function listUserEarningsAndMarketsConfig(client: BaseSecureClient, request: ListUserEarningsAndMarketsConfigRequest): Paginated<UserRewardsEarning[]>;
5382
5601
  type FetchRewardPercentagesError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
5383
5602
  declare const FetchRewardPercentagesError: {
5384
- isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5603
+ isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5385
5604
  };
5386
5605
  /**
5387
5606
  * Fetches reward percentages for the authenticated account.
@@ -5432,7 +5651,7 @@ declare const PrepareErc20ApprovalError: {
5432
5651
  declare function prepareErc20Approval(client: BaseSecureClient, request: PrepareErc20ApprovalRequest): Promise<Erc20ApprovalWorkflow>;
5433
5652
  type ApproveErc20Error = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
5434
5653
  declare const ApproveErc20Error: {
5435
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
5654
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5436
5655
  };
5437
5656
  /**
5438
5657
  * Approves ERC-20 token spending for the authenticated account.
@@ -5477,7 +5696,7 @@ declare const PrepareErc1155ApprovalForAllError: {
5477
5696
  declare function prepareErc1155ApprovalForAll(client: BaseSecureClient, request: PrepareErc1155ApprovalForAllRequest): Promise<Erc1155ApprovalForAllWorkflow>;
5478
5697
  type ApproveErc1155ForAllError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
5479
5698
  declare const ApproveErc1155ForAllError: {
5480
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
5699
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5481
5700
  };
5482
5701
  /**
5483
5702
  * Approves or revokes ERC-1155 operator access for the authenticated account.
@@ -5493,7 +5712,7 @@ type TradingApprovalsWorkflowRequest = GaslessWorkflowRequest | SendErc20Approva
5493
5712
  type TradingApprovalsWorkflow = AsyncGenerator<TradingApprovalsWorkflowRequest, void, EvmAddress$1 | EvmSignature | TransactionHandle>;
5494
5713
  type PrepareTradingApprovalsError = RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5495
5714
  declare const PrepareTradingApprovalsError: {
5496
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError;
5715
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError;
5497
5716
  };
5498
5717
  /** An ERC-20 allowance required for supported trading workflows. */
5499
5718
  type Erc20TradingApproval = {
@@ -5532,7 +5751,7 @@ type TradingApprovalsState = {
5532
5751
  };
5533
5752
  type FetchTradingApprovalsStateError = RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5534
5753
  declare const FetchTradingApprovalsStateError: {
5535
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError;
5754
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError;
5536
5755
  };
5537
5756
  /**
5538
5757
  * Reads the approvals a wallet is missing for supported trading workflows.
@@ -5572,7 +5791,7 @@ declare function fetchTradingApprovalsState(client: BaseClient, request: FetchTr
5572
5791
  declare function prepareTradingApprovals(client: BaseSecureClient): Promise<TradingApprovalsWorkflow>;
5573
5792
  type SetupTradingApprovalsError = PrepareTradingApprovalsError | CancelledSigningError | SigningError | WaitForGaslessTransactionError;
5574
5793
  declare const SetupTradingApprovalsError: {
5575
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
5794
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
5576
5795
  };
5577
5796
  /**
5578
5797
  * Sets up the approvals required for trading.
@@ -5608,7 +5827,7 @@ type ListBuilderTradesRequest = {
5608
5827
  };
5609
5828
  type ListBuilderTradesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5610
5829
  declare const ListBuilderTradesError: {
5611
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5830
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5612
5831
  };
5613
5832
  /**
5614
5833
  * Lists builder-attributed trades.
@@ -5655,7 +5874,7 @@ type FetchMidpointRequest = {
5655
5874
  };
5656
5875
  type FetchMidpointError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5657
5876
  declare const FetchMidpointError: {
5658
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5877
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5659
5878
  };
5660
5879
  /**
5661
5880
  * Fetches the midpoint price for an exchange asset as a decimal string.
@@ -5688,7 +5907,7 @@ type FetchMidpointsRequest = Array<{
5688
5907
  }>;
5689
5908
  type FetchMidpointsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5690
5909
  declare const FetchMidpointsError: {
5691
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5910
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5692
5911
  };
5693
5912
  /**
5694
5913
  * Fetches midpoint prices for multiple exchange assets as an asset ID keyed lookup.
@@ -5723,7 +5942,7 @@ type FetchTickSizeRequest = {
5723
5942
  };
5724
5943
  type FetchTickSizeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5725
5944
  declare const FetchTickSizeError: {
5726
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5945
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5727
5946
  };
5728
5947
  /**
5729
5948
  * Fetches the minimum price tick size for an exchange asset's order book.
@@ -5755,7 +5974,7 @@ type FetchNegRiskRequest = {
5755
5974
  };
5756
5975
  type FetchNegRiskError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5757
5976
  declare const FetchNegRiskError: {
5758
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5977
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5759
5978
  };
5760
5979
  /**
5761
5980
  * Fetches whether an exchange asset is in a negative-risk market.
@@ -5787,7 +6006,7 @@ type ResolveConditionByTokenRequest = {
5787
6006
  };
5788
6007
  type ResolveConditionByTokenError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5789
6008
  declare const ResolveConditionByTokenError: {
5790
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6009
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5791
6010
  };
5792
6011
  /**
5793
6012
  * Resolves the condition ID for an exchange asset.
@@ -5805,7 +6024,7 @@ declare const FetchMarketInfoRequestSchema: z.ZodObject<{
5805
6024
  type FetchMarketInfoRequest = z.input<typeof FetchMarketInfoRequestSchema>;
5806
6025
  type FetchMarketInfoError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5807
6026
  declare const FetchMarketInfoError: {
5808
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6027
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5809
6028
  };
5810
6029
  /**
5811
6030
  * Fetches market-level metadata for a condition.
@@ -5823,7 +6042,7 @@ declare const FetchBuilderFeeRatesRequestSchema: z.ZodObject<{
5823
6042
  type FetchBuilderFeeRatesRequest = z.input<typeof FetchBuilderFeeRatesRequestSchema>;
5824
6043
  type FetchBuilderFeeRatesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5825
6044
  declare const FetchBuilderFeeRatesError: {
5826
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6045
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5827
6046
  };
5828
6047
  /**
5829
6048
  * Fetches builder maker and taker fee rates.
@@ -5848,7 +6067,7 @@ type FetchPriceRequest = {
5848
6067
  };
5849
6068
  type FetchPriceError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5850
6069
  declare const FetchPriceError: {
5851
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6070
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5852
6071
  };
5853
6072
  /**
5854
6073
  * Fetches the current quoted price for an exchange asset and side as a decimal string.
@@ -5884,7 +6103,7 @@ type FetchPricesRequest = Array<{
5884
6103
  }>;
5885
6104
  type FetchPricesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5886
6105
  declare const FetchPricesError: {
5887
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6106
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5888
6107
  };
5889
6108
  /**
5890
6109
  * Fetches quoted prices for multiple exchange assets as an asset ID keyed lookup.
@@ -5920,7 +6139,7 @@ type FetchOrderBookRequest = {
5920
6139
  };
5921
6140
  type FetchOrderBookError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5922
6141
  declare const FetchOrderBookError: {
5923
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6142
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5924
6143
  };
5925
6144
  /**
5926
6145
  * Fetches the current order book for an exchange asset.
@@ -5952,7 +6171,7 @@ type FetchOrderBooksRequest = Array<{
5952
6171
  }>;
5953
6172
  type FetchOrderBooksError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5954
6173
  declare const FetchOrderBooksError: {
5955
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6174
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5956
6175
  };
5957
6176
  /**
5958
6177
  * Fetches order books for multiple exchange assets.
@@ -5986,7 +6205,7 @@ type FetchSpreadRequest = {
5986
6205
  };
5987
6206
  type FetchSpreadError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5988
6207
  declare const FetchSpreadError: {
5989
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6208
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5990
6209
  };
5991
6210
  /**
5992
6211
  * Fetches the spread for an exchange asset as a decimal string.
@@ -6019,7 +6238,7 @@ type FetchSpreadsRequest = Array<{
6019
6238
  }>;
6020
6239
  type FetchSpreadsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6021
6240
  declare const FetchSpreadsError: {
6022
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6241
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6023
6242
  };
6024
6243
  /**
6025
6244
  * Fetches spreads for multiple exchange assets as an asset ID keyed lookup.
@@ -6054,7 +6273,7 @@ type FetchLastTradePriceRequest = {
6054
6273
  };
6055
6274
  type FetchLastTradePriceError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6056
6275
  declare const FetchLastTradePriceError: {
6057
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6276
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6058
6277
  };
6059
6278
  /**
6060
6279
  * Fetches the last traded price for an exchange asset.
@@ -6089,7 +6308,7 @@ type FetchLastTradePricesRequest = Array<{
6089
6308
  }>;
6090
6309
  type FetchLastTradePricesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6091
6310
  declare const FetchLastTradePricesError: {
6092
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6311
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6093
6312
  };
6094
6313
  /**
6095
6314
  * Fetches last traded prices for multiple exchange assets.
@@ -6112,49 +6331,6 @@ declare const FetchLastTradePricesError: {
6112
6331
  *
6113
6332
  */
6114
6333
  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
6334
  declare const ListCurrentRewardsRequestSchema: z.ZodDefault<z.ZodObject<{
6159
6335
  cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
6160
6336
  sponsored: z.ZodOptional<z.ZodBoolean>;
@@ -6162,7 +6338,7 @@ declare const ListCurrentRewardsRequestSchema: z.ZodDefault<z.ZodObject<{
6162
6338
  type ListCurrentRewardsRequest = z.input<typeof ListCurrentRewardsRequestSchema>;
6163
6339
  type ListCurrentRewardsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6164
6340
  declare const ListCurrentRewardsError: {
6165
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6341
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6166
6342
  };
6167
6343
  /**
6168
6344
  * Lists current active market rewards.
@@ -6205,7 +6381,7 @@ declare const ListMarketRewardsRequestSchema: z.ZodObject<{
6205
6381
  type ListMarketRewardsRequest = z.input<typeof ListMarketRewardsRequestSchema>;
6206
6382
  type ListMarketRewardsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6207
6383
  declare const ListMarketRewardsError: {
6208
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6384
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6209
6385
  };
6210
6386
  /**
6211
6387
  * Lists reward configurations for a market.
@@ -6249,7 +6425,7 @@ declare function listMarketRewards(client: BaseClient, request: ListMarketReward
6249
6425
 
6250
6426
  type PlanCollateralReturnError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError;
6251
6427
  declare const PlanCollateralReturnError: {
6252
- isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6428
+ isError(error: unknown): error is TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6253
6429
  };
6254
6430
  /**
6255
6431
  * Plans a collateral return for the authenticated account.
@@ -6279,7 +6455,7 @@ type ExecuteCollateralReturnPlanRequest = z.infer<typeof ExecuteCollateralReturn
6279
6455
  type CollateralReturnExecutionWorkflow = AsyncGenerator<GaslessWorkflowRequest, TransactionHandle, EvmAddress$1 | EvmSignature | TransactionHandle>;
6280
6456
  type PrepareCollateralReturnExecutionError = RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6281
6457
  declare const PrepareCollateralReturnExecutionError: {
6282
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError;
6458
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError;
6283
6459
  };
6284
6460
  /**
6285
6461
  * Starts a collateral return execution workflow for a previously requested
@@ -6296,7 +6472,7 @@ declare const PrepareCollateralReturnExecutionError: {
6296
6472
  declare function prepareCollateralReturnExecution(client: BaseSecureClient, request: ExecuteCollateralReturnPlanRequest): Promise<CollateralReturnExecutionWorkflow>;
6297
6473
  type ExecuteCollateralReturnPlanError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
6298
6474
  declare const ExecuteCollateralReturnPlanError: {
6299
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
6475
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6300
6476
  };
6301
6477
  /**
6302
6478
  * Executes a collateral return plan for the authenticated account.
@@ -6335,7 +6511,7 @@ type FetchCommentsByIdRequest = z.input<typeof FetchCommentsByIdRequestSchema>;
6335
6511
  type ListCommentsByUserAddressRequest = z.input<typeof ListCommentsByUserAddressRequestSchema>;
6336
6512
  type ListCommentsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6337
6513
  declare const ListCommentsError: {
6338
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6514
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6339
6515
  };
6340
6516
  /**
6341
6517
  * Lists comments for an event or series.
@@ -6380,7 +6556,7 @@ declare const ListCommentsError: {
6380
6556
  declare function listComments(client: BaseClient, request: ListCommentsRequest): Paginated<Comment[]>;
6381
6557
  type FetchCommentsByIdError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6382
6558
  declare const FetchCommentsByIdError: {
6383
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6559
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6384
6560
  };
6385
6561
  /**
6386
6562
  * Fetches a comment thread by comment id.
@@ -6404,7 +6580,7 @@ declare const FetchCommentsByIdError: {
6404
6580
  declare function fetchCommentsById(client: BaseClient, request: FetchCommentsByIdRequest): Promise<Comment[]>;
6405
6581
  type ListCommentsByUserAddressError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6406
6582
  declare const ListCommentsByUserAddressError: {
6407
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6583
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6408
6584
  };
6409
6585
  /**
6410
6586
  * Lists comments written by a wallet address.
@@ -6522,13 +6698,9 @@ declare const FetchEventTagsRequestSchema: z.ZodObject<{
6522
6698
  id: z.ZodString;
6523
6699
  }, z.core.$strip>;
6524
6700
  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
6701
  type ListEventsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6530
6702
  declare const ListEventsError: {
6531
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6703
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6532
6704
  };
6533
6705
  /**
6534
6706
  * Lists events.
@@ -6573,7 +6745,7 @@ declare const ListEventsError: {
6573
6745
  declare function listEvents(client: BaseClient, request?: ListEventsRequest): Paginated<Event[]>;
6574
6746
  type FetchEventError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6575
6747
  declare const FetchEventError: {
6576
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6748
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6577
6749
  };
6578
6750
  /**
6579
6751
  * Fetches an event.
@@ -6604,7 +6776,7 @@ declare const FetchEventError: {
6604
6776
  declare function fetchEvent(client: BaseClient, request: FetchEventRequest): Promise<Event>;
6605
6777
  type FetchEventTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6606
6778
  declare const FetchEventTagsError: {
6607
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6779
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6608
6780
  };
6609
6781
  /**
6610
6782
  * Fetches an event's tags.
@@ -6625,12 +6797,66 @@ declare const FetchEventTagsError: {
6625
6797
  * ```
6626
6798
  */
6627
6799
  declare function fetchEventTags(client: BaseClient, request: FetchEventTagsRequest): Promise<TagReference[]>;
6800
+ type FetchResolutionsByQuestionRequest = {
6801
+ questionId: string;
6802
+ conditionIds?: never;
6803
+ eventIds?: never;
6804
+ };
6805
+ type FetchResolutionsByConditionRequest = {
6806
+ questionId?: never;
6807
+ conditionIds: string[];
6808
+ eventIds?: never;
6809
+ };
6810
+ type FetchResolutionsByEventRequest = {
6811
+ questionId?: never;
6812
+ conditionIds?: never;
6813
+ eventIds: Array<number | string>;
6814
+ };
6815
+ type FetchResolutionsRequest = FetchResolutionsByQuestionRequest | FetchResolutionsByConditionRequest | FetchResolutionsByEventRequest;
6816
+ type FetchResolutionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6817
+ declare const FetchResolutionsError: {
6818
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6819
+ };
6820
+ /**
6821
+ * Fetches resolution lifecycle rows by question, condition, or event.
6822
+ *
6823
+ * Provide exactly one selector. Condition and event lookups accept at most 20
6824
+ * distinct IDs and return one row per matching condition. Missing resolutions
6825
+ * return an empty array. A 31-byte protocol v2 market condition ID is
6826
+ * right-padded to its canonical 32-byte form. A 31-byte combo condition ID is
6827
+ * rejected.
6828
+ *
6829
+ * @remarks
6830
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
6831
+ *
6832
+ * @throws {@link FetchResolutionsError}
6833
+ * Thrown on failure.
6834
+ *
6835
+ * @example
6836
+ * ```ts
6837
+ * const resolutions = await fetchResolutions(client, {
6838
+ * eventIds: ['903193'],
6839
+ * });
6840
+ *
6841
+ * // resolutions: Resolution[]
6842
+ * ```
6843
+ */
6844
+ declare function fetchResolutions(client: BaseClient, request: FetchResolutionsRequest): Promise<Resolution[]>;
6845
+ declare const FetchEventLiveVolumeRequestSchema: z.ZodObject<{
6846
+ 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[]>>;
6847
+ }, z.core.$strip>;
6848
+ type FetchEventLiveVolumeRequest = z.input<typeof FetchEventLiveVolumeRequestSchema>;
6628
6849
  type FetchEventLiveVolumeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6629
6850
  declare const FetchEventLiveVolumeError: {
6630
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6851
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6631
6852
  };
6632
6853
  /**
6633
- * Fetches live volume for an event.
6854
+ * Fetches cumulative taker volume for one or more events.
6855
+ *
6856
+ * Results contain one row per market, ordered by taker volume descending, and
6857
+ * a total across all returned markets. Volume is measured in shares. Event IDs
6858
+ * must be positive 32-bit integers. Transient rate limits are retried
6859
+ * automatically.
6634
6860
  *
6635
6861
  * @remarks
6636
6862
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
@@ -6641,70 +6867,32 @@ declare const FetchEventLiveVolumeError: {
6641
6867
  * @example
6642
6868
  * ```ts
6643
6869
  * const volume = await fetchEventLiveVolume(client, {
6644
- * id: '160707',
6870
+ * eventIds: ['160707'],
6645
6871
  * });
6646
6872
  *
6647
- * // volume: LiveVolume[]
6873
+ * // volume: LiveVolume
6648
6874
  * ```
6649
6875
  */
6650
- declare function fetchEventLiveVolume(client: BaseClient, request: FetchEventLiveVolumeRequest): Promise<LiveVolume[]>;
6876
+ declare function fetchEventLiveVolume(client: BaseClient, request: FetchEventLiveVolumeRequest): Promise<LiveVolume>;
6651
6877
 
6652
6878
  declare const ListBuilderLeaderboardRequestSchema: z.ZodObject<{
6653
6879
  cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
6654
6880
  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>;
6881
+ window: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.LeaderboardWindow>>;
6697
6882
  }, z.core.$strip>;
6698
6883
  type ListBuilderLeaderboardRequest = z.input<typeof ListBuilderLeaderboardRequestSchema>;
6699
- type ListBuilderVolumeRequest = z.input<typeof ListBuilderVolumeRequestSchema>;
6700
- type ListTraderLeaderboardRequest = z.input<typeof ListTraderLeaderboardRequestSchema>;
6701
6884
  type ListBuilderLeaderboardError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6702
6885
  declare const ListBuilderLeaderboardError: {
6703
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6886
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6704
6887
  };
6705
6888
  /**
6706
6889
  * Lists builder leaderboard rankings.
6707
6890
  *
6891
+ * Builders are ranked by attributed share volume within `window`, which
6892
+ * defaults to one day. `builderCode` is the stable identifier; names and
6893
+ * profile images are display metadata. `pageSize` defaults to 100 (max 1000).
6894
+ * Transient rate limits are retried automatically.
6895
+ *
6708
6896
  * @remarks
6709
6897
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
6710
6898
  *
@@ -6716,14 +6904,14 @@ declare const ListBuilderLeaderboardError: {
6716
6904
  * ```ts
6717
6905
  * const result = listBuilderLeaderboard(client, {
6718
6906
  * pageSize: 10,
6719
- * timePeriod: 'DAY',
6907
+ * window: LeaderboardWindow.Day,
6720
6908
  * });
6721
6909
  *
6722
6910
  * const firstPage = await result.firstPage();
6723
6911
  *
6724
6912
  * // Optionally, fetch additional pages:
6725
6913
  * for await (const page of result.from(firstPage.nextCursor)) {
6726
- * // page.items: LeaderboardEntry[]
6914
+ * // page.items: BuilderStanding[]
6727
6915
  * }
6728
6916
  * ```
6729
6917
  *
@@ -6732,45 +6920,70 @@ declare const ListBuilderLeaderboardError: {
6732
6920
  * ```ts
6733
6921
  * const result = listBuilderLeaderboard(client, {
6734
6922
  * pageSize: 10,
6735
- * timePeriod: 'DAY',
6923
+ * window: LeaderboardWindow.Day,
6736
6924
  * });
6737
6925
  *
6738
6926
  * for await (const page of result) {
6739
- * // page.items: LeaderboardEntry[]
6927
+ * // page.items: BuilderStanding[]
6740
6928
  * }
6741
6929
  * ```
6742
6930
  */
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;
6931
+ declare function listBuilderLeaderboard(client: BaseClient, request?: ListBuilderLeaderboardRequest): Paginated<BuilderStanding[]>;
6932
+ declare const FetchBuilderVolumeRequestSchema: z.ZodObject<{
6933
+ interval: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.BuilderVolumeInterval>>;
6934
+ bucketLimit: z.ZodOptional<z.ZodNumber>;
6935
+ }, z.core.$strip>;
6936
+ type FetchBuilderVolumeRequest = z.input<typeof FetchBuilderVolumeRequestSchema>;
6937
+ type FetchBuilderVolumeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6938
+ declare const FetchBuilderVolumeError: {
6939
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6747
6940
  };
6748
6941
  /**
6749
- * Lists daily builder volume entries.
6942
+ * Fetches the per-builder volume time series.
6943
+ *
6944
+ * `interval` controls bucket width and defaults to daily; use
6945
+ * {@link BuilderVolumeInterval.Year} for one bucket per calendar year.
6946
+ * `bucketLimit` returns that many complete recent buckets (default 30, max 90),
6947
+ * not that many builder rows. Results are newest bucket first, and volume is
6948
+ * measured in shares. Transient rate limits are retried automatically.
6750
6949
  *
6751
6950
  * @remarks
6752
6951
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
6753
6952
  *
6754
- * @throws {@link ListBuilderVolumeError}
6953
+ * @throws {@link FetchBuilderVolumeError}
6755
6954
  * Thrown on failure.
6756
6955
  *
6757
6956
  * @example
6758
6957
  * ```ts
6759
6958
  * const volume = await fetchBuilderVolume(client, {
6760
- * timePeriod: 'DAY',
6959
+ * interval: BuilderVolumeInterval.Day,
6960
+ * bucketLimit: 7,
6761
6961
  * });
6762
6962
  *
6763
- * // volume: BuilderVolumeEntry[]
6963
+ * // volume: BuilderVolumePoint[]
6764
6964
  * ```
6765
6965
  */
6766
- declare function fetchBuilderVolume(client: BaseClient, request?: ListBuilderVolumeRequest): Promise<BuilderVolumeEntry[]>;
6966
+ declare function fetchBuilderVolume(client: BaseClient, request?: FetchBuilderVolumeRequest): Promise<BuilderVolumePoint[]>;
6967
+ declare const ListTraderLeaderboardRequestSchema: z.ZodObject<{
6968
+ category: z.ZodOptional<z.ZodString>;
6969
+ cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
6970
+ pageSize: z.ZodDefault<z.ZodNumber>;
6971
+ sortBy: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.TraderLeaderboardSort>>;
6972
+ window: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.LeaderboardWindow>>;
6973
+ }, z.core.$strip>;
6974
+ type ListTraderLeaderboardRequest = z.input<typeof ListTraderLeaderboardRequestSchema>;
6767
6975
  type ListTraderLeaderboardError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6768
6976
  declare const ListTraderLeaderboardError: {
6769
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6977
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6770
6978
  };
6771
6979
  /**
6772
6980
  * Lists trader leaderboard rankings.
6773
6981
  *
6982
+ * `window` defaults to one day, `category` to overall, and `sortBy` to PnL.
6983
+ * Finite-window PnL is marked equity change net of flows, while all-time PnL
6984
+ * is realized only. Volume is measured in shares. Tied traders share a rank
6985
+ * and the next rank skips. `pageSize` defaults to 100 (max 1000).
6986
+ *
6774
6987
  * @remarks
6775
6988
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
6776
6989
  *
@@ -6781,9 +6994,9 @@ declare const ListTraderLeaderboardError: {
6781
6994
  * Fetch the first page of results:
6782
6995
  * ```ts
6783
6996
  * const result = listTraderLeaderboard(client, {
6784
- * orderBy: 'PNL',
6785
6997
  * pageSize: 10,
6786
- * timePeriod: 'DAY',
6998
+ * sortBy: TraderLeaderboardSort.Pnl,
6999
+ * window: LeaderboardWindow.Week,
6787
7000
  * });
6788
7001
  *
6789
7002
  * const firstPage = await result.firstPage();
@@ -6798,9 +7011,9 @@ declare const ListTraderLeaderboardError: {
6798
7011
  * Loop through all pages with `for await`:
6799
7012
  * ```ts
6800
7013
  * const result = listTraderLeaderboard(client, {
6801
- * orderBy: 'PNL',
6802
7014
  * pageSize: 10,
6803
- * timePeriod: 'DAY',
7015
+ * sortBy: TraderLeaderboardSort.Pnl,
7016
+ * window: LeaderboardWindow.Week,
6804
7017
  * });
6805
7018
  *
6806
7019
  * for await (const page of result) {
@@ -6809,6 +7022,79 @@ declare const ListTraderLeaderboardError: {
6809
7022
  * ```
6810
7023
  */
6811
7024
  declare function listTraderLeaderboard(client: BaseClient, request?: ListTraderLeaderboardRequest): Paginated<TraderLeaderboardEntry[]>;
7025
+ declare const FetchTraderLeaderboardStandingRequestSchema: z.ZodObject<{
7026
+ category: z.ZodOptional<z.ZodString>;
7027
+ user: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
7028
+ window: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.LeaderboardWindow>>;
7029
+ }, z.core.$strip>;
7030
+ type FetchTraderLeaderboardStandingRequest = z.input<typeof FetchTraderLeaderboardStandingRequestSchema>;
7031
+ type FetchTraderLeaderboardStandingError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7032
+ declare const FetchTraderLeaderboardStandingError: {
7033
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7034
+ };
7035
+ /**
7036
+ * Fetches one trader's standing on both the PnL and volume boards.
7037
+ *
7038
+ * `window` defaults to one day and `category` to overall. A `null` rank means
7039
+ * the trader is unranked on that board. Returns `null` for an unknown wallet.
7040
+ *
7041
+ * @remarks
7042
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
7043
+ *
7044
+ * @throws {@link FetchTraderLeaderboardStandingError}
7045
+ * Thrown on failure.
7046
+ *
7047
+ * @example
7048
+ * ```ts
7049
+ * const standing = await fetchTraderLeaderboardStanding(client, {
7050
+ * user: '0xa71093cafc0c099b4ccab24c3cb8018d817923c4',
7051
+ * window: LeaderboardWindow.All,
7052
+ * });
7053
+ *
7054
+ * // standing: TraderLeaderboardStanding | null
7055
+ * ```
7056
+ */
7057
+ declare function fetchTraderLeaderboardStanding(client: BaseClient, request: FetchTraderLeaderboardStandingRequest): Promise<TraderLeaderboardStanding | null>;
7058
+ declare const ListBiggestWinnersRequestSchema: z.ZodObject<{
7059
+ category: z.ZodOptional<z.ZodString>;
7060
+ cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
7061
+ pageSize: z.ZodDefault<z.ZodNumber>;
7062
+ window: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.LeaderboardWindow>>;
7063
+ }, z.core.$strip>;
7064
+ type ListBiggestWinnersRequest = z.input<typeof ListBiggestWinnersRequestSchema>;
7065
+ type ListBiggestWinnersError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7066
+ declare const ListBiggestWinnersError: {
7067
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7068
+ };
7069
+ /**
7070
+ * Lists the largest individual winning positions.
7071
+ *
7072
+ * The board has one row per position, ranked by its resolution profit.
7073
+ * `window` applies to resolution time and defaults to one day; `category`
7074
+ * defaults to overall. Equal profits retain distinct row ordinals. Combo rows
7075
+ * have no parent event, so branch on `kind` before using event metadata.
7076
+ * `pageSize` defaults to 100 (max 1000).
7077
+ *
7078
+ * @remarks
7079
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
7080
+ *
7081
+ * @throws {@link ListBiggestWinnersError}
7082
+ * Thrown on failure.
7083
+ *
7084
+ * @example
7085
+ * ```ts
7086
+ * const result = listBiggestWinners(client, {
7087
+ * category: 'sports',
7088
+ * pageSize: 10,
7089
+ * window: LeaderboardWindow.Week,
7090
+ * });
7091
+ *
7092
+ * for await (const page of result) {
7093
+ * // page.items: BiggestWinner[]
7094
+ * }
7095
+ * ```
7096
+ */
7097
+ declare function listBiggestWinners(client: BaseClient, request?: ListBiggestWinnersRequest): Paginated<BiggestWinner[]>;
6812
7098
 
6813
7099
  declare const ListMarketClarificationsRequestSchema: z.ZodObject<{
6814
7100
  marketId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
@@ -6825,7 +7111,7 @@ declare const ListMarketClarificationsRequestSchema: z.ZodObject<{
6825
7111
  type ListMarketClarificationsRequest = z.input<typeof ListMarketClarificationsRequestSchema>;
6826
7112
  type ListMarketClarificationsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6827
7113
  declare const ListMarketClarificationsError: {
6828
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7114
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6829
7115
  };
6830
7116
  /**
6831
7117
  * Lists market clarifications — official notes that resolve ambiguity in how a
@@ -6871,7 +7157,7 @@ declare const ListMarketsRequestSchema: z.ZodObject<{
6871
7157
  ascending: z.ZodOptional<z.ZodBoolean>;
6872
7158
  closed: z.ZodOptional<z.ZodBoolean>;
6873
7159
  clobTokenIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
6874
- cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
7160
+ cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
6875
7161
  pageSize: z.ZodOptional<z.ZodNumber>;
6876
7162
  conditionIds: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.ConditionId, string>>>>;
6877
7163
  cyom: z.ZodOptional<z.ZodBoolean>;
@@ -6922,41 +7208,9 @@ declare const FetchMarketTagsRequestSchema: z.ZodObject<{
6922
7208
  id: z.ZodString;
6923
7209
  }, z.core.$strip>;
6924
7210
  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
7211
  type ListMarketsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6958
7212
  declare const ListMarketsError: {
6959
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7213
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6960
7214
  };
6961
7215
  /**
6962
7216
  * Lists markets.
@@ -7001,14 +7255,14 @@ declare const ListMarketsError: {
7001
7255
  */
7002
7256
  declare function listMarkets(client: BaseClient, request?: ListMarketsRequest): Paginated<Market[]>;
7003
7257
  declare const ListComboMarketsRequestSchema: z.ZodObject<{
7004
- cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
7258
+ cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
7005
7259
  pageSize: z.ZodOptional<z.ZodNumber>;
7006
7260
  exclude: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.ConditionId, string>>>>;
7007
7261
  }, z.core.$strip>;
7008
7262
  type ListComboMarketsRequest = z.input<typeof ListComboMarketsRequestSchema>;
7009
7263
  type ListComboMarketsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7010
7264
  declare const ListComboMarketsError: {
7011
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7265
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7012
7266
  };
7013
7267
  /**
7014
7268
  * Lists markets available for Combos.
@@ -7046,7 +7300,7 @@ declare const ListComboMarketsError: {
7046
7300
  declare function listComboMarkets(client: BaseClient, request?: ListComboMarketsRequest): Paginated<ComboMarket[]>;
7047
7301
  type FetchMarketError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7048
7302
  declare const FetchMarketError: {
7049
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7303
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7050
7304
  };
7051
7305
  /**
7052
7306
  * Fetches a market.
@@ -7081,7 +7335,7 @@ declare const FetchMarketError: {
7081
7335
  declare function fetchMarket(client: BaseClient, request: FetchMarketRequest): Promise<Market>;
7082
7336
  type FetchMarketTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7083
7337
  declare const FetchMarketTagsError: {
7084
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7338
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7085
7339
  };
7086
7340
  /**
7087
7341
  * Fetches a market's tags.
@@ -7102,12 +7356,29 @@ declare const FetchMarketTagsError: {
7102
7356
  * ```
7103
7357
  */
7104
7358
  declare function fetchMarketTags(client: BaseClient, request: FetchMarketTagsRequest): Promise<TagReference[]>;
7359
+ declare const ListMarketHoldersRequestSchema: z.ZodObject<{
7360
+ 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[]>>;
7361
+ cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
7362
+ includePnl: z.ZodOptional<z.ZodBoolean>;
7363
+ minBalance: z.ZodOptional<z.ZodNumber>;
7364
+ pageSize: z.ZodDefault<z.ZodNumber>;
7365
+ }, z.core.$strip>;
7366
+ type ListMarketHoldersRequest = z.input<typeof ListMarketHoldersRequestSchema>;
7105
7367
  type ListMarketHoldersError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7106
7368
  declare const ListMarketHoldersError: {
7107
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7369
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7108
7370
  };
7109
7371
  /**
7110
- * Lists the top holders for one or more markets.
7372
+ * Lists top holders grouped by outcome for one or more markets.
7373
+ *
7374
+ * `conditionIds` accepts up to 20 distinct market condition IDs. `pageSize`
7375
+ * defaults to 100 (max 1000) and applies separately to each outcome. Merge
7376
+ * matching `assetId` groups across pages rather than relying on array position.
7377
+ * `minBalance` uses display shares and defaults to `0`; `1` means one share,
7378
+ * equivalent to 1,000,000 base units.
7379
+ * Amounts are net holdings by default. `includePnl` switches to per-outcome
7380
+ * gross holdings and adds position economics; it requires one condition ID and
7381
+ * a page size of at most 100. Transient rate limits are retried automatically.
7111
7382
  *
7112
7383
  * @remarks
7113
7384
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
@@ -7117,81 +7388,117 @@ declare const ListMarketHoldersError: {
7117
7388
  *
7118
7389
  * @example
7119
7390
  * ```ts
7120
- * const holders = await listMarketHolders(client, {
7121
- * market: ['0xe546672750517f62c45a5a00067481981e62b9c20fa8220203232c9dc8fd2093'],
7122
- * limit: 5,
7391
+ * const result = listMarketHolders(client, {
7392
+ * conditionIds: ['0xe546672750517f62c45a5a00067481981e62b9c20fa8220203232c9dc8fd2093'],
7393
+ * pageSize: 5,
7123
7394
  * });
7124
7395
  *
7125
- * // holders: MetaHolder[]
7396
+ * for await (const page of result) {
7397
+ * // page.items: MetaHolder[]
7398
+ * }
7126
7399
  * ```
7127
7400
  */
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.
7401
+ declare function listMarketHolders(client: BaseClient, request: ListMarketHoldersRequest): Paginated<MetaHolder[]>;
7402
+ type ListPriceHistoryRequest = {
7403
+ assetId: string;
7404
+ interval: PriceHistoryInterval;
7405
+ bucketSeconds?: number;
7406
+ cursor?: PaginationCursor;
7407
+ pageSize?: number;
7408
+ start?: never;
7409
+ end?: never;
7410
+ asOf?: never;
7411
+ } | {
7412
+ assetId: string;
7413
+ start: number | Date;
7414
+ end?: number | Date;
7415
+ bucketSeconds?: number;
7416
+ cursor?: PaginationCursor;
7417
+ pageSize?: number;
7418
+ interval?: never;
7419
+ asOf?: never;
7420
+ } | {
7421
+ assetId: string;
7422
+ asOf: number | Date;
7423
+ interval?: never;
7424
+ start?: never;
7425
+ end?: never;
7426
+ bucketSeconds?: never;
7427
+ cursor?: never;
7428
+ pageSize?: never;
7429
+ };
7430
+ type ListPriceHistoryError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7431
+ declare const ListPriceHistoryError: {
7432
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7433
+ };
7434
+ /**
7435
+ * Lists historical price observations for an exchange asset.
7436
+ *
7437
+ * Select exactly one time form: a relative `interval`, an explicit `start`
7438
+ * with optional `end`, or the latest observation at or before an `asOf`
7439
+ * instant. Time inputs accept Unix epoch seconds or `Date` values. When
7440
+ * `bucketSeconds` is omitted, resolution is selected automatically for the
7441
+ * requested window and reported on each point as `resolutionSeconds`. An
7442
+ * explicit bucket is used exactly as requested and may produce an empty series
7443
+ * when that resolution is unavailable for the window. Prices are decimal
7444
+ * strings and returned timestamps are Unix epoch milliseconds. Series pages
7445
+ * are ordered oldest first; an `asOf` request returns at most one item. Series
7446
+ * page sizes default to and are capped at 10,000 points. Transient rate limits
7447
+ * are retried automatically.
7135
7448
  *
7136
7449
  * @remarks
7137
7450
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
7138
7451
  *
7139
- * @throws {@link ListOpenInterestError}
7452
+ * @throws {@link ListPriceHistoryError}
7140
7453
  * Thrown on failure.
7141
7454
  *
7142
7455
  * @example
7143
7456
  * ```ts
7144
- * const openInterest = await listOpenInterest(client, {
7145
- * market: ['0xe546672750517f62c45a5a00067481981e62b9c20fa8220203232c9dc8fd2093'],
7457
+ * const history = listPriceHistory(client, {
7458
+ * assetId: '17023124228269928849020611259015948850061676830917875073785033885105715180702',
7459
+ * interval: PriceHistoryInterval.OneDay,
7460
+ * bucketSeconds: 3600,
7146
7461
  * });
7147
7462
  *
7148
- * // openInterest: OpenInterest[]
7463
+ * for await (const page of history) {
7464
+ * // page.items: PriceHistoryPoint[]
7465
+ * }
7149
7466
  * ```
7150
7467
  */
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;
7468
+ declare function listPriceHistory(client: BaseClient, request: ListPriceHistoryRequest): Paginated<PriceHistoryPoint[]>;
7469
+ declare const FetchOpenInterestRequestSchema: z.ZodObject<{
7470
+ 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[]>>>;
7471
+ }, z.core.$strip>;
7472
+ type FetchOpenInterestRequest = z.input<typeof FetchOpenInterestRequestSchema>;
7473
+ type FetchOpenInterestError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7474
+ declare const FetchOpenInterestError: {
7475
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7155
7476
  };
7156
7477
  /**
7157
- * Lists positions for a market.
7478
+ * Fetches priced gross open interest for selected markets or globally.
7479
+ *
7480
+ * `conditionIds` accepts up to 20 distinct market condition IDs. Omit it for
7481
+ * the global aggregate, whose `conditionId` is `null`. A requested servable
7482
+ * market with no holdings has a zero value; an absent row means the market is
7483
+ * not servable. Values are in USDC. Transient rate limits are retried
7484
+ * automatically.
7158
7485
  *
7159
7486
  * @remarks
7160
7487
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
7161
7488
  *
7162
- * @throws {@link ListMarketPositionsError}
7489
+ * @throws {@link FetchOpenInterestError}
7163
7490
  * Thrown on failure.
7164
7491
  *
7165
7492
  * @example
7166
- * Fetch the first page of results:
7167
7493
  * ```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
- * ```ts
7184
- * const result = listMarketPositions(client, {
7185
- * market: '0xe546672750517f62c45a5a00067481981e62b9c20fa8220203232c9dc8fd2093',
7186
- * pageSize: 10,
7494
+ * const openInterest = await fetchOpenInterest(client, {
7495
+ * conditionIds: ['0xe546672750517f62c45a5a00067481981e62b9c20fa8220203232c9dc8fd2093'],
7187
7496
  * });
7188
7497
  *
7189
- * for await (const page of result) {
7190
- * // page.items: MetaMarketPosition[]
7191
- * }
7498
+ * // openInterest: OpenInterest[]
7192
7499
  * ```
7193
7500
  */
7194
- declare function listMarketPositions(client: BaseClient, request: ListMarketPositionsRequest): Paginated<MetaMarketPosition[]>;
7501
+ declare function fetchOpenInterest(client: BaseClient, request?: FetchOpenInterestRequest): Promise<OpenInterest[]>;
7195
7502
 
7196
7503
  /**
7197
7504
  * @experimental This API may change in a breaking way in any release, including patch releases.
@@ -7772,7 +8079,7 @@ type ArmPerpsAutoCancelError = AutoCancelDailyLimitError | RateLimitError | Requ
7772
8079
  * @experimental This API may change in a breaking way in any release, including patch releases.
7773
8080
  */
7774
8081
  declare const ArmPerpsAutoCancelError: {
7775
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | AutoCancelDailyLimitError | SigningError;
8082
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | AutoCancelDailyLimitError;
7776
8083
  };
7777
8084
  /**
7778
8085
  * @experimental This API may change in a breaking way in any release, including patch releases.
@@ -7800,7 +8107,7 @@ type UpdatePerpsLeverageError = RequestRejectedError | SigningError | TransportE
7800
8107
  * @experimental This API may change in a breaking way in any release, including patch releases.
7801
8108
  */
7802
8109
  declare const UpdatePerpsLeverageError: {
7803
- isError(error: unknown): error is UserInputError | TransportError | RequestRejectedError | SigningError;
8110
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | RequestRejectedError;
7804
8111
  };
7805
8112
  /**
7806
8113
  * Request parameters for adjusting isolated margin on a Perps position.
@@ -7821,7 +8128,7 @@ type UpdatePerpsMarginError = RequestRejectedError | SigningError | TransportErr
7821
8128
  * @experimental This API may change in a breaking way in any release, including patch releases.
7822
8129
  */
7823
8130
  declare const UpdatePerpsMarginError: {
7824
- isError(error: unknown): error is UserInputError | TransportError | RequestRejectedError | SigningError;
8131
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | RequestRejectedError;
7825
8132
  };
7826
8133
 
7827
8134
  /**
@@ -8280,7 +8587,7 @@ declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
8280
8587
 
8281
8588
  type PerpsPublicReadError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
8282
8589
  declare const PerpsPublicReadError: {
8283
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8590
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8284
8591
  };
8285
8592
  /**
8286
8593
  * @experimental This API may change in a breaking way in any release, including patch releases.
@@ -8299,7 +8606,7 @@ type FetchPerpsInstrumentsError = PerpsPublicReadError;
8299
8606
  * @experimental This API may change in a breaking way in any release, including patch releases.
8300
8607
  */
8301
8608
  declare const FetchPerpsInstrumentsError: {
8302
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8609
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8303
8610
  };
8304
8611
  /**
8305
8612
  * Fetches Perps instruments.
@@ -8328,7 +8635,7 @@ type FetchPerpsTickerError = PerpsPublicReadError;
8328
8635
  * @experimental This API may change in a breaking way in any release, including patch releases.
8329
8636
  */
8330
8637
  declare const FetchPerpsTickerError: {
8331
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8638
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8332
8639
  };
8333
8640
  /**
8334
8641
  * Fetches the current Perps ticker for an instrument.
@@ -8357,7 +8664,7 @@ type FetchPerpsTickersError = PerpsPublicReadError;
8357
8664
  * @experimental This API may change in a breaking way in any release, including patch releases.
8358
8665
  */
8359
8666
  declare const FetchPerpsTickersError: {
8360
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8667
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8361
8668
  };
8362
8669
  /**
8363
8670
  * Fetches current Perps tickers.
@@ -8392,7 +8699,7 @@ type FetchPerpsBookError = PerpsPublicReadError;
8392
8699
  * @experimental This API may change in a breaking way in any release, including patch releases.
8393
8700
  */
8394
8701
  declare const FetchPerpsBookError: {
8395
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8702
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8396
8703
  };
8397
8704
  /**
8398
8705
  * Fetches a Perps order book.
@@ -8432,7 +8739,7 @@ type ListPerpsCandlesError = PerpsPublicReadError;
8432
8739
  * @experimental This API may change in a breaking way in any release, including patch releases.
8433
8740
  */
8434
8741
  declare const ListPerpsCandlesError: {
8435
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8742
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8436
8743
  };
8437
8744
  /**
8438
8745
  * Lists Perps candles for an instrument with SDK-owned pagination.
@@ -8470,7 +8777,7 @@ type ListPerpsFundingHistoryError = PerpsPublicReadError;
8470
8777
  * @experimental This API may change in a breaking way in any release, including patch releases.
8471
8778
  */
8472
8779
  declare const ListPerpsFundingHistoryError: {
8473
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8780
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8474
8781
  };
8475
8782
  /**
8476
8783
  * Lists Perps funding-rate history for an instrument with SDK-owned pagination.
@@ -8508,7 +8815,7 @@ type ListPerpsTradesError = PerpsPublicReadError;
8508
8815
  * @experimental This API may change in a breaking way in any release, including patch releases.
8509
8816
  */
8510
8817
  declare const ListPerpsTradesError: {
8511
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8818
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8512
8819
  };
8513
8820
  /**
8514
8821
  * Lists recent Perps trades for an instrument with SDK-owned pagination.
@@ -8530,7 +8837,7 @@ type FetchPerpsFeesError = RateLimitError | RequestRejectedError | TransportErro
8530
8837
  * @experimental This API may change in a breaking way in any release, including patch releases.
8531
8838
  */
8532
8839
  declare const FetchPerpsFeesError: {
8533
- isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8840
+ isError(error: unknown): error is TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8534
8841
  };
8535
8842
  /**
8536
8843
  * Fetches the Perps fee schedule.
@@ -8603,7 +8910,7 @@ type OpenPerpsSessionError = RateLimitError | RequestRejectedError | SigningErro
8603
8910
  * @experimental This API may change in a breaking way in any release, including patch releases.
8604
8911
  */
8605
8912
  declare const OpenPerpsSessionError: {
8606
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
8913
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8607
8914
  };
8608
8915
  /**
8609
8916
  * @experimental This API may change in a breaking way in any release, including patch releases.
@@ -8613,7 +8920,7 @@ type RevokePerpsCredentialsError = RateLimitError | RequestRejectedError | Signi
8613
8920
  * @experimental This API may change in a breaking way in any release, including patch releases.
8614
8921
  */
8615
8922
  declare const RevokePerpsCredentialsError: {
8616
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
8923
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8617
8924
  };
8618
8925
  /**
8619
8926
  * @experimental This API may change in a breaking way in any release, including patch releases.
@@ -8633,7 +8940,7 @@ type DepositToPerpsError = RateLimitError | RequestRejectedError | CancelledSign
8633
8940
  * @experimental This API may change in a breaking way in any release, including patch releases.
8634
8941
  */
8635
8942
  declare const DepositToPerpsError: {
8636
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
8943
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8637
8944
  };
8638
8945
  /**
8639
8946
  * @experimental This API may change in a breaking way in any release, including patch releases.
@@ -8643,7 +8950,7 @@ type WithdrawFromPerpsError = RateLimitError | RequestRejectedError | SigningErr
8643
8950
  * @experimental This API may change in a breaking way in any release, including patch releases.
8644
8951
  */
8645
8952
  declare const WithdrawFromPerpsError: {
8646
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
8953
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8647
8954
  };
8648
8955
  /**
8649
8956
  * Opens a Perps account session.
@@ -8714,7 +9021,7 @@ type SplitPositionWorkflowRequest = GaslessWorkflowRequest | SendSplitPositionTr
8714
9021
  type SplitPositionWorkflow = AsyncGenerator<SplitPositionWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
8715
9022
  type PrepareSplitPositionError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
8716
9023
  declare const PrepareSplitPositionError: {
8717
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9024
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8718
9025
  };
8719
9026
  /**
8720
9027
  * Parameters for preparing a market position split.
@@ -8735,7 +9042,7 @@ type PrepareSplitMarketPositionRequest = {
8735
9042
  type PrepareSplitMarketPositionError = PrepareSplitPositionError;
8736
9043
  /** @deprecated Use {@link PrepareSplitPositionError}. */
8737
9044
  declare const PrepareSplitMarketPositionError: {
8738
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9045
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8739
9046
  };
8740
9047
  /**
8741
9048
  * Starts a split workflow for a market condition.
@@ -8771,7 +9078,7 @@ type PrepareSplitComboPositionRequest = {
8771
9078
  type PrepareSplitComboPositionError = PrepareSplitPositionError;
8772
9079
  /** @deprecated Use {@link PrepareSplitPositionError}. */
8773
9080
  declare const PrepareSplitComboPositionError: {
8774
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9081
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8775
9082
  };
8776
9083
  /**
8777
9084
  * Starts a split workflow for a combo position from leg position IDs.
@@ -8808,13 +9115,13 @@ type PrepareSplitPositionRequest = PrepareSplitMarketPositionRequest | PrepareSp
8808
9115
  declare function prepareSplitPosition(client: BaseSecureClient, request: PrepareSplitPositionRequest): Promise<SplitPositionWorkflow>;
8809
9116
  type SplitPositionError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
8810
9117
  declare const SplitPositionError: {
8811
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
9118
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
8812
9119
  };
8813
9120
  /** @deprecated Use {@link SplitPositionError}. */
8814
9121
  type SplitMarketPositionError = SplitPositionError;
8815
9122
  /** @deprecated Use {@link SplitPositionError}. */
8816
9123
  declare const SplitMarketPositionError: {
8817
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
9124
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
8818
9125
  };
8819
9126
  /**
8820
9127
  * Splits collateral into market positions.
@@ -8830,7 +9137,7 @@ declare function splitMarketPosition(client: BaseSecureClient, request: PrepareS
8830
9137
  type SplitComboPositionError = SplitPositionError;
8831
9138
  /** @deprecated Use {@link SplitPositionError}. */
8832
9139
  declare const SplitComboPositionError: {
8833
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
9140
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
8834
9141
  };
8835
9142
  /**
8836
9143
  * Splits collateral into combo positions from leg position IDs.
@@ -8853,7 +9160,7 @@ type MergePositionsWorkflowRequest = GaslessWorkflowRequest | SendMergePositions
8853
9160
  type MergePositionsWorkflow = AsyncGenerator<MergePositionsWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
8854
9161
  type PrepareMergePositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
8855
9162
  declare const PrepareMergePositionsError: {
8856
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9163
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8857
9164
  };
8858
9165
  /**
8859
9166
  * Parameters for preparing a market position merge.
@@ -8874,7 +9181,7 @@ type PrepareMergeMarketPositionRequest = {
8874
9181
  type PrepareMergeMarketPositionError = PrepareMergePositionsError;
8875
9182
  /** @deprecated Use {@link PrepareMergePositionsError}. */
8876
9183
  declare const PrepareMergeMarketPositionError: {
8877
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9184
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8878
9185
  };
8879
9186
  /**
8880
9187
  * Starts a workflow to merge complementary positions in a market back into collateral.
@@ -8910,7 +9217,7 @@ type PrepareMergeComboPositionRequest = {
8910
9217
  type PrepareMergeComboPositionError = PrepareMergePositionsError;
8911
9218
  /** @deprecated Use {@link PrepareMergePositionsError}. */
8912
9219
  declare const PrepareMergeComboPositionError: {
8913
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9220
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8914
9221
  };
8915
9222
  /**
8916
9223
  * Starts a workflow to merge complementary combo positions back into collateral.
@@ -8947,13 +9254,13 @@ type PrepareMergePositionsRequest = PrepareMergeMarketPositionRequest | PrepareM
8947
9254
  declare function prepareMergePositions(client: BaseSecureClient, request: PrepareMergePositionsRequest): Promise<MergePositionsWorkflow>;
8948
9255
  type MergePositionsError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
8949
9256
  declare const MergePositionsError: {
8950
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
9257
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
8951
9258
  };
8952
9259
  /** @deprecated Use {@link MergePositionsError}. */
8953
9260
  type MergeMarketPositionError = MergePositionsError;
8954
9261
  /** @deprecated Use {@link MergePositionsError}. */
8955
9262
  declare const MergeMarketPositionError: {
8956
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
9263
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
8957
9264
  };
8958
9265
  /**
8959
9266
  * Merges complementary market positions back into collateral.
@@ -8969,7 +9276,7 @@ declare function mergeMarketPosition(client: BaseSecureClient, request: PrepareM
8969
9276
  type MergeComboPositionError = MergePositionsError;
8970
9277
  /** @deprecated Use {@link MergePositionsError}. */
8971
9278
  declare const MergeComboPositionError: {
8972
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
9279
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
8973
9280
  };
8974
9281
  /**
8975
9282
  * Merges complementary combo positions back into collateral.
@@ -8992,7 +9299,7 @@ type RedeemPositionsWorkflowRequest = GaslessWorkflowRequest | SendRedeemPositio
8992
9299
  type RedeemPositionsWorkflow = AsyncGenerator<RedeemPositionsWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
8993
9300
  type PrepareRedeemPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
8994
9301
  declare const PrepareRedeemPositionsError: {
8995
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9302
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8996
9303
  };
8997
9304
  /**
8998
9305
  * Parameters for preparing a market position redemption by condition ID.
@@ -9027,7 +9334,7 @@ type PrepareRedeemMarketPositionsRequest = PrepareRedeemMarketPositionsByConditi
9027
9334
  type PrepareRedeemMarketPositionsError = PrepareRedeemPositionsError;
9028
9335
  /** @deprecated Use {@link PrepareRedeemPositionsError}. */
9029
9336
  declare const PrepareRedeemMarketPositionsError: {
9030
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9337
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9031
9338
  };
9032
9339
  /**
9033
9340
  * Starts a redemption workflow for resolved market positions.
@@ -9088,7 +9395,7 @@ type PrepareRedeemComboPositionRequest = PrepareRedeemPositionRequest;
9088
9395
  type PrepareRedeemComboPositionError = PrepareRedeemPositionsError;
9089
9396
  /** @deprecated Use {@link PrepareRedeemPositionsError}. */
9090
9397
  declare const PrepareRedeemComboPositionError: {
9091
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9398
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9092
9399
  };
9093
9400
  /**
9094
9401
  * Starts a redemption workflow for a resolved Polymarket V2 position.
@@ -9121,7 +9428,7 @@ type PrepareRedeemPositionsRequest = PrepareRedeemMarketPositionsByConditionIdRe
9121
9428
  declare function prepareRedeemPositions(client: BaseSecureClient, request: PrepareRedeemPositionsRequest): Promise<RedeemPositionsWorkflow>;
9122
9429
  type RedeemPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError | TimeoutError | TransactionFailedError;
9123
9430
  declare const RedeemPositionsError: {
9124
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
9431
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
9125
9432
  };
9126
9433
  /**
9127
9434
  * Redeems held positions for a market or a specific position by ID.
@@ -9140,7 +9447,7 @@ declare const FetchPublicProfileRequestSchema: z.ZodObject<{
9140
9447
  type FetchPublicProfileRequest = z.input<typeof FetchPublicProfileRequestSchema>;
9141
9448
  type FetchPublicProfileError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9142
9449
  declare const FetchPublicProfileError: {
9143
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9450
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9144
9451
  };
9145
9452
  /**
9146
9453
  * Fetches a public profile by wallet address.
@@ -9200,7 +9507,7 @@ type SearchResults = {
9200
9507
  };
9201
9508
  type SearchError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9202
9509
  declare const SearchError: {
9203
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9510
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9204
9511
  };
9205
9512
  /**
9206
9513
  * Runs a public full-text search.
@@ -9256,7 +9563,7 @@ type ListSeriesRequest = z.input<typeof ListSeriesRequestSchema>;
9256
9563
  type FetchSeriesRequest = z.input<typeof FetchSeriesRequestSchema>;
9257
9564
  type ListSeriesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9258
9565
  declare const ListSeriesError: {
9259
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9566
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9260
9567
  };
9261
9568
  /**
9262
9569
  * Lists series.
@@ -9299,7 +9606,7 @@ declare const ListSeriesError: {
9299
9606
  declare function listSeries(client: BaseClient, request?: ListSeriesRequest): Paginated<Series[]>;
9300
9607
  type FetchSeriesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9301
9608
  declare const FetchSeriesError: {
9302
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9609
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9303
9610
  };
9304
9611
  /**
9305
9612
  * Fetches a series.
@@ -9335,7 +9642,7 @@ type SessionKey = {
9335
9642
  };
9336
9643
  type FetchSessionKeysError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
9337
9644
  declare const FetchSessionKeysError: {
9338
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
9645
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9339
9646
  };
9340
9647
  /**
9341
9648
  * Fetches the active session keys authorized for the Deposit Wallet.
@@ -9370,7 +9677,7 @@ type AuthorizeSessionKeyResult = {
9370
9677
  };
9371
9678
  type AuthorizeSessionKeyError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
9372
9679
  declare const AuthorizeSessionKeyError: {
9373
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
9680
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
9374
9681
  };
9375
9682
  /**
9376
9683
  * Authorizes an externally managed signer for selected venues.
@@ -9407,7 +9714,7 @@ type RevokeSessionKeyRequest = {
9407
9714
  };
9408
9715
  type RevokeSessionKeyError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
9409
9716
  declare const RevokeSessionKeyError: {
9410
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
9717
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
9411
9718
  };
9412
9719
  /**
9413
9720
  * Revokes a session key authorized for the Deposit Wallet.
@@ -9474,23 +9781,112 @@ type UserSubscription = {
9474
9781
  type SportsSubscription = {
9475
9782
  topic: 'sports';
9476
9783
  };
9784
+ /**
9785
+ * @deprecated The comments stream is being discontinued.
9786
+ * Use `client.listComments()` to retrieve comments. This method does not
9787
+ * provide live comment or reaction events.
9788
+ *
9789
+ * @example
9790
+ * ```ts
9791
+ * const pages = client.listComments({
9792
+ * parentEntityId: '123',
9793
+ * parentEntityType: CommentParentEntityType.Event,
9794
+ * pageSize: 20,
9795
+ * });
9796
+ * const page = await pages.firstPage();
9797
+ *
9798
+ * for (const comment of page.items) {
9799
+ * console.log(comment);
9800
+ * }
9801
+ * ```
9802
+ */
9477
9803
  type CommentsSubscription = {
9478
9804
  topic: 'comments';
9479
9805
  types?: readonly CommentsEventType[];
9480
9806
  parentEntityId?: number;
9481
9807
  parentEntityType?: 'Event' | 'Market';
9482
9808
  };
9809
+ /**
9810
+ * @deprecated Use `prices.crypto` with a secure client and explicit canonical
9811
+ * USD symbols. Events include history snapshots. Removal is planned one month
9812
+ * after the 0.11.0 release.
9813
+ *
9814
+ * Binance USDT prices and PolyBolt USD prices have different quote currencies
9815
+ * and feed sources; this is not a like-for-like replacement. Chainlink spot
9816
+ * consumers must also assess the change in feed source.
9817
+ *
9818
+ * @example
9819
+ * ```ts
9820
+ * // Before: Chainlink USD or Binance USDT prices.
9821
+ * const legacyPrices = await publicClient.subscribe([
9822
+ * { topic: 'prices.crypto.chainlink', symbols: ['btc/usd'] },
9823
+ * { topic: 'prices.crypto.binance', symbols: ['btcusdt'] },
9824
+ * ]);
9825
+ *
9826
+ * // After: secureClient is already authenticated; choose USD prices explicitly.
9827
+ * const prices = await secureClient.subscribe([
9828
+ * { topic: 'prices.crypto', symbols: ['btcusd'] },
9829
+ * ]);
9830
+ * for await (const event of prices) {
9831
+ * if (event.type !== 'update') continue;
9832
+ * console.log(event.payload.symbol, event.payload.value);
9833
+ * }
9834
+ * ```
9835
+ */
9483
9836
  type CryptoPricesSubscription = {
9484
9837
  topic: CryptoPricesTopic;
9485
9838
  symbols?: readonly string[];
9486
9839
  };
9840
+ /**
9841
+ * @deprecated Use `prices.crypto.twap` with a secure client and explicit
9842
+ * canonical USD symbols. The replacement provides 60-second TWAP prices and
9843
+ * history snapshots. There is no replacement for the 30-second window.
9844
+ * Removal is planned one month after the 0.11.0 release.
9845
+ *
9846
+ * @example
9847
+ * ```ts
9848
+ * // Before
9849
+ * const legacyPrices = await publicClient.subscribe([
9850
+ * {
9851
+ * topic: 'prices.crypto.chainlink.twap',
9852
+ * symbols: ['btc/usd'],
9853
+ * windowSeconds: 60,
9854
+ * },
9855
+ * ]);
9856
+ *
9857
+ * // After: secureClient is already authenticated.
9858
+ * const prices = await secureClient.subscribe([
9859
+ * { topic: 'prices.crypto.twap', symbols: ['btcusd'] },
9860
+ * ]);
9861
+ * for await (const event of prices) {
9862
+ * if (event.type !== 'update') continue;
9863
+ * console.log(event.payload.symbol, event.payload.value);
9864
+ * }
9865
+ * ```
9866
+ */
9487
9867
  type CryptoPricesChainlinkTwapSubscription = {
9488
9868
  topic: CryptoPricesChainlinkTwapTopic;
9489
- /** Averaging window used to calculate each TWAP price. */
9490
9869
  windowSeconds: CryptoPricesChainlinkTwapWindowSeconds;
9491
- /** Lowercase slash-delimited symbols, such as `btc/usd`. */
9492
9870
  symbols?: readonly string[];
9493
9871
  };
9872
+ /**
9873
+ * @deprecated Use `prices.equity` with a secure client. The existing symbol
9874
+ * and event-type filters remain available. Removal is planned one month after
9875
+ * the 0.11.0 release.
9876
+ *
9877
+ * @example
9878
+ * ```ts
9879
+ * // Before
9880
+ * const legacyPrices = await publicClient.subscribe([
9881
+ * { topic: 'prices.equity.pyth', symbol: 'aapl', types: ['update'] },
9882
+ * ]);
9883
+ *
9884
+ * // After: secureClient is already authenticated.
9885
+ * const prices = await secureClient.subscribe([
9886
+ * { topic: 'prices.equity', symbol: 'aapl', types: ['update'] },
9887
+ * ]);
9888
+ * ```
9889
+ */
9494
9890
  type EquityPricesSubscription = {
9495
9891
  topic: EquityPricesTopic;
9496
9892
  symbol: string;
@@ -9544,19 +9940,47 @@ type PerpsStatisticsSubscription = {
9544
9940
  */
9545
9941
  type PerpsMarketDataSubscription = PerpsTradesSubscription | PerpsBboSubscription | PerpsBookSubscription | PerpsCandlesSubscription | PerpsTickersSubscription | PerpsStatisticsSubscription;
9546
9942
  type PublicSubscriptionSpec = MarketSubscription | SportsSubscription | CommentsSubscription | CryptoPricesSubscription | CryptoPricesChainlinkTwapSubscription | EquityPricesSubscription | PerpsMarketDataSubscription;
9547
- type SecureSubscriptionSpec = PublicSubscriptionSpec | UserSubscription;
9943
+ /**
9944
+ * Symbol-filtered cryptocurrency updates and recent history. Requires a secure
9945
+ * client and canonical lowercase USD pairs such as `btcusd`.
9946
+ * Slash-separated symbols and USDT pairs are rejected.
9947
+ */
9948
+ type CryptoPriceSubscription = {
9949
+ topic: 'prices.crypto';
9950
+ symbols: readonly string[];
9951
+ };
9952
+ /**
9953
+ * 60-second time-weighted prices and recent history. Requires a secure client
9954
+ * and canonical lowercase USD pairs such as `btcusd`. The window is fixed;
9955
+ * returned events include `windowSeconds: 60` as metadata.
9956
+ */
9957
+ type CryptoTwapPriceSubscription = {
9958
+ topic: 'prices.crypto.twap';
9959
+ symbols: readonly string[];
9960
+ };
9961
+ /** Equity updates and recent history. Requires a secure client. */
9962
+ type EquityPriceSubscription = {
9963
+ topic: 'prices.equity';
9964
+ symbol: string;
9965
+ types?: readonly ('subscribe' | 'update')[];
9966
+ };
9967
+ type PriceSubscription = CryptoPriceSubscription | CryptoTwapPriceSubscription | EquityPriceSubscription;
9968
+ type SecureSubscriptionSpec = PublicSubscriptionSpec | UserSubscription | PriceSubscription;
9548
9969
  type PublicRealtimeEvent = MarketEvent | SportsEvent | CommentsEvent | CryptoPricesEvent | EquityPricesEvent | PerpsMarketDataEvent;
9549
- type SecureRealtimeEvent = PublicRealtimeEvent | UserEvent;
9970
+ type SecureRealtimeEvent = PublicRealtimeEvent | UserEvent | CryptoPriceEvent | CryptoTwapPriceEvent | EquityPriceEvent;
9550
9971
  type PublicRealtimeTopic = Prettify<PublicRealtimeEvent['topic']>;
9551
9972
  type SecureRealtimeTopic = Prettify<SecureRealtimeEvent['topic']>;
9552
9973
  type EventByTopic = {
9553
- user: UserEvent;
9554
- sports: SportsEvent;
9974
+ 'prices.crypto': CryptoPriceEvent;
9975
+ 'prices.crypto.twap': CryptoTwapPriceEvent;
9976
+ 'prices.equity': EquityPriceEvent;
9555
9977
  comments: CommentsEvent;
9556
9978
  'prices.crypto.binance': CryptoPricesBinanceEvent;
9557
9979
  'prices.crypto.chainlink': CryptoPricesChainlinkEvent;
9558
9980
  'prices.crypto.chainlink.twap': CryptoPricesChainlinkTwapEvent;
9559
9981
  'prices.equity.pyth': EquityPricesEvent;
9982
+ user: UserEvent;
9983
+ sports: SportsEvent;
9560
9984
  'perps.trades': PerpsTradeEvent;
9561
9985
  'perps.bbo': PerpsBboEvent;
9562
9986
  'perps.book': PerpsBookEvent;
@@ -9582,13 +10006,20 @@ type SubscriptionHandle<TEvent> = {
9582
10006
  */
9583
10007
  close(): Promise<void>;
9584
10008
  } & AsyncIterable<TEvent>;
9585
- type SubscribeError = TransportError | UserInputError;
10009
+ type SubscribeError = TransportError | UserInputError | RequestRejectedError | ConnectionLostError;
9586
10010
  declare const SubscribeError: {
9587
- isError(error: unknown): error is UserInputError | TransportError;
10011
+ isError(error: unknown): error is TransportError | UserInputError | ConnectionLostError | RequestRejectedError;
9588
10012
  };
9589
10013
  /**
9590
10014
  * Starts one or more realtime subscriptions on this client.
9591
10015
  *
10016
+ * The new `prices.crypto`, `prices.crypto.twap`, and `prices.equity` topics
10017
+ * require a secure client and explicit filters, and include history snapshots
10018
+ * and live updates. Legacy source-named topics retain their existing behavior.
10019
+ * Event `seq` values are scoped to one channel on one WebSocket connection and
10020
+ * reset after reconnecting. Subscriptions with more than 64 filters use
10021
+ * multiple connections, so their sequence values may interleave.
10022
+ *
9592
10023
  * @remarks
9593
10024
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
9594
10025
  *
@@ -9664,7 +10095,7 @@ type FetchRelatedTagsRequest = z.input<typeof RelatedTagsByIdRequestSchema> | z.
9664
10095
  type FetchRelatedTagResourcesRequest = z.input<typeof RelatedTagResourcesByIdRequestSchema> | z.input<typeof RelatedTagResourcesBySlugRequestSchema>;
9665
10096
  type ListTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9666
10097
  declare const ListTagsError: {
9667
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
10098
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9668
10099
  };
9669
10100
  /**
9670
10101
  * Lists tags.
@@ -9707,7 +10138,7 @@ declare const ListTagsError: {
9707
10138
  declare function listTags(client: BaseClient, request?: ListTagsRequest): Paginated<Tag[]>;
9708
10139
  type FetchTagError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9709
10140
  declare const FetchTagError: {
9710
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
10141
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9711
10142
  };
9712
10143
  /**
9713
10144
  * Fetches a tag by id or slug.
@@ -9731,7 +10162,7 @@ declare const FetchTagError: {
9731
10162
  declare function fetchTag(client: BaseClient, request: FetchTagRequest): Promise<Tag>;
9732
10163
  type FetchRelatedTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9733
10164
  declare const FetchRelatedTagsError: {
9734
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
10165
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9735
10166
  };
9736
10167
  /**
9737
10168
  * Fetches related tag relationships by id or slug.
@@ -9756,7 +10187,7 @@ declare const FetchRelatedTagsError: {
9756
10187
  declare function fetchRelatedTags(client: BaseClient, request: FetchRelatedTagsRequest): Promise<RelatedTag[]>;
9757
10188
  type FetchRelatedTagResourcesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9758
10189
  declare const FetchRelatedTagResourcesError: {
9759
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
10190
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9760
10191
  };
9761
10192
  /**
9762
10193
  * Fetches resources linked from related tag relationships by id or slug.
@@ -9793,7 +10224,7 @@ declare const ListTeamsRequestSchema: z.ZodObject<{
9793
10224
  type ListTeamsRequest = z.input<typeof ListTeamsRequestSchema>;
9794
10225
  type ListTeamsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9795
10226
  declare const ListTeamsError: {
9796
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
10227
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9797
10228
  };
9798
10229
  /**
9799
10230
  * Lists teams.
@@ -9869,7 +10300,7 @@ declare const PrepareErc20TransferError: {
9869
10300
  declare function prepareErc20Transfer(client: BaseSecureClient, request: PrepareErc20TransferRequest): Promise<Erc20TransferWorkflow>;
9870
10301
  type TransferErc20Error = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
9871
10302
  declare const TransferErc20Error: {
9872
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
10303
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9873
10304
  };
9874
10305
  /**
9875
10306
  * Transfers ERC-20 tokens from the authenticated account.
@@ -9926,7 +10357,7 @@ type TransactionOutcome = {
9926
10357
  };
9927
10358
  type WaitForTransactionError = WaitForGaslessTransactionError;
9928
10359
  declare const WaitForTransactionError: {
9929
- isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError;
10360
+ isError(error: unknown): error is TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
9930
10361
  };
9931
10362
  interface TransactionHandle {
9932
10363
  /**
@@ -9953,4 +10384,4 @@ type Signer = {
9953
10384
  sendTransaction(request: SignerTransactionRequest): Promise<TransactionHandle>;
9954
10385
  };
9955
10386
 
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 };
10387
+ export { DropNotificationsError 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, type CommentsSubscription as J, ConnectionLostError as K, type ConnectionLostErrorOptions as L, type CreatePerpsSessionRequest as M, CreateSecureClientError as N, type CryptoPriceSubscription as O, type CryptoPricesChainlinkTwapSubscription as P, type CryptoPricesSubscription as Q, type CryptoTwapPriceSubscription as R, type Signer as S, type TypedDataPayload as T, UserInputError as U, type DataActions as V, DepositToPerpsError as W, type DepositToPerpsRequest as X, type DisarmPerpsAutoCancelRequest as Y, type DiscoveryActions as Z, DownloadAccountingSnapshotError as _, type TypedData as a, InsufficientLiquidityError as a$, type EnvironmentConfig as a0, type EnvironmentConfigFork as a1, type EnvironmentContracts as a2, type EquityPriceSubscription as a3, type EquityPricesSubscription as a4, type Erc1155TradingApproval as a5, type Erc20TradingApproval as a6, EstimateMarketPriceError as a7, ExecuteCollateralReturnPlanError as a8, type ExecuteCollateralReturnPlanRequest as a9, type FetchPerpsOrdersRequest as aA, FetchPerpsTickerError as aB, type FetchPerpsTickerRequest as aC, FetchPerpsTickersError as aD, type FetchPerpsTickersRequest as aE, FetchPortfolioValueError as aF, FetchPriceError as aG, FetchPricesError as aH, FetchPublicProfileError as aI, FetchRelatedTagResourcesError as aJ, FetchRelatedTagsError as aK, FetchResolutionsError as aL, FetchRewardPercentagesError as aM, FetchRfqStatusError as aN, type FetchRfqStatusParams as aO, FetchSeriesError as aP, FetchSessionKeysError as aQ, FetchSpreadError as aR, FetchSpreadsError as aS, FetchTagError as aT, FetchTotalEarningsForUserForDayError as aU, FetchTraderLeaderboardStandingError as aV, FetchTradingApprovalsStateError as aW, type FetchTradingApprovalsStateRequest as aX, FetchUserPnlError as aY, FetchUserStatsError as aZ, FetchUserVolumeError as a_, FetchBuilderVolumeError as aa, FetchClosedOnlyModeError as ab, FetchCommentsByIdError as ac, FetchEventError as ad, FetchEventLiveVolumeError as ae, FetchEventTagsError as af, FetchLastTradePriceError as ag, FetchLastTradePricesError as ah, FetchMarketError as ai, FetchMarketTagsError as aj, FetchMidpointError as ak, FetchMidpointsError as al, FetchNotificationsError as am, FetchOpenInterestError as an, FetchOrderBookError as ao, FetchOrderBooksError as ap, FetchOrderError as aq, FetchOrderScoringError as ar, FetchOrdersScoringError as as, type FetchPerpsAccountConfigRequest as at, FetchPerpsBookError as au, type FetchPerpsBookRequest as av, FetchPerpsFeesError as aw, FetchPerpsInstrumentsError as ax, type FetchPerpsInstrumentsRequest as ay, type FetchPerpsOpenOrdersRequest as az, type TransactionCall as b, type PlacePerpsOrderResult as b$, ListAccountTradesError as b0, ListActivityError as b1, ListBiggestWinnersError as b2, ListBuilderLeaderboardError as b3, ListBuilderTradesError as b4, ListComboActivityError as b5, ListComboMarketsError as b6, ListComboPositionsError as b7, ListCommentsByUserAddressError as b8, ListCommentsError as b9, ListUserEarningsAndMarketsConfigError as bA, ListUserEarningsForDayError as bB, type MarkPerpsNotificationsReadRequest as bC, MergePositionsError as bD, OpenPerpsSessionError as bE, type OpenPerpsSessionRequest as bF, OpenRfqSessionError as bG, type OrderSignature as bH, type Page as bI, PageSizeSchema as bJ, type Paginated as bK, type PerpsActions as bL, type PerpsBookDepth as bM, type PerpsEndpoints as bN, type PerpsOrderRequest as bO, type PerpsPlaceFokOrderRequest as bP, type PerpsPlaceGtcOrderRequest as bQ, type PerpsPlaceIocOrderRequest as bR, type PerpsPlacedTpSlOrder as bS, type PerpsPlacedTpSlOrders as bT, type PerpsPositionTpSlTrigger as bU, PerpsSession as bV, type PerpsSessionAccountError as bW, type PerpsSessionLifecycleError as bX, type PerpsSessionTradingError as bY, type PerpsTpSlTrigger as bZ, type PlacePerpsOrderRequest as b_, ListCurrentRewardsError as ba, ListEventsError as bb, ListMarketHoldersError as bc, ListMarketRewardsError as bd, ListMarketsError as be, ListOpenOrdersError as bf, ListPerpsCandlesError as bg, type ListPerpsCandlesRequest as bh, type ListPerpsDepositsRequest as bi, type ListPerpsEquityHistoryRequest as bj, type ListPerpsFillsRequest as bk, ListPerpsFundingHistoryError as bl, type ListPerpsFundingHistoryRequest as bm, type ListPerpsFundingPaymentsRequest as bn, type ListPerpsNotificationsRequest as bo, type ListPerpsPnlHistoryRequest as bp, ListPerpsTradesError as bq, type ListPerpsTradesRequest as br, type ListPerpsWithdrawalsRequest as bs, ListPositionsError as bt, ListPriceHistoryError as bu, ListSeriesError as bv, ListTagsError as bw, ListTeamsError as bx, ListTraderLeaderboardError as by, ListTradesError as bz, AcceptComboQuoteError as c, type SecureFetchTraderLeaderboardStandingRequest as c$, type PlacePerpsOrderWithTpSlRequest as c0, type PlacePerpsOrderWithTpSlResult as c1, type PlacePerpsPositionTpSlRequest as c2, type PlacePerpsPositionTpSlResult as c3, PlanCollateralReturnError as c4, PostOrderError as c5, PostOrdersError as c6, type PostPerpsOrdersRequest as c7, type PriceSubscription as c8, type PublicAccountActions as c9, RfqCancelQuoteRejectedError as cA, type RfqCancelQuoteRejectedErrorOptions as cB, type RfqConfirmationAck as cC, RfqConfirmationError as cD, RfqConfirmationRejectedError as cE, type RfqConfirmationRequestEvent as cF, type RfqEvent as cG, RfqQuoteError as cH, type RfqQuoteReference as cI, RfqQuoteRejectedError as cJ, type RfqQuoteRejectedErrorOptions as cK, type RfqQuoteRequestEvent as cL, type RfqQuoteResponse as cM, type RfqQuoteSource as cN, RfqRequestRejectedError as cO, type RfqRequestRejectedErrorOptions as cP, type RfqSession as cQ, type RfqStatusResult as cR, type RfqTradeEvent as cS, SearchError as cT, SearchSort as cU, type SecureAccountActions as cV, type SecureActions as cW, type SecureClient as cX, type SecureClientOptions as cY, type SecureDownloadAccountingSnapshotRequest as cZ, type SecureFetchPortfolioValueRequest as c_, type PublicActions as ca, type PublicClient as cb, type PublicClientOptions as cc, type PublicPerpsActions as cd, type PublicRewardsActions as ce, type PublicSubscriptionsActions as cf, type PublicWalletActions as cg, type RateLimitBucket as ch, RateLimitError as ci, type RateLimitErrorOptions as cj, type RateLimitUpdate as ck, type RateLimitUpdateListener as cl, RedeemPositionsError as cm, RequestComboQuoteError as cn, type RequestComboQuoteParams as co, type RequestComboQuoteResult as cp, RequestRejectedError as cq, type RequestRejectedErrorOptions as cr, type RestEndpoint as cs, type ResumePerpsSessionRequest as ct, RevokePerpsCredentialsError as cu, type RevokePerpsCredentialsRequest as cv, RevokeSessionKeyError as cw, type RevokeSessionKeyRequest as cx, type RfqCancelQuoteAck as cy, RfqCancelQuoteError as cz, type AcceptComboQuoteParams as d, rfqActions as d$, type SecureFetchUserPnlRequest as d0, type SecureFetchUserStatsRequest as d1, type SecureFetchUserVolumeRequest as d2, type SecureListActivityRequest as d3, type SecureListComboActivityRequest as d4, type SecureListComboPositionsRequest as d5, type SecureListPositionsRequest as d6, type SecurePerpsActions as d7, type SecureRewardsActions as d8, type SecureRfqActions as d9, UpdatePerpsLeverageError as dA, type UpdatePerpsLeverageRequest as dB, UpdatePerpsMarginError as dC, type UpdatePerpsMarginRequest as dD, WaitForComboFillError as dE, type WaitForComboFillParams as dF, type WaitForComboFillResult as dG, WaitForOrderFillSettlementError as dH, WaitForTransactionError as dI, type WalletDerivationConfig as dJ, type WebSocketCloseCode as dK, type WebSocketEndpoint as dL, WebSocketKnownCloseCode as dM, WithdrawFromPerpsError as dN, type WithdrawFromPerpsRequest as dO, accountActions as dP, allActions as dQ, analyticsActions as dR, createPublicClient as dS, createSecureClient as dT, dataActions as dU, discoveryActions as dV, forkEnvironmentConfig as dW, makeErrorGuard as dX, perpsActions as dY, production as dZ, rewardsActions as d_, type SecureSubscriptionsActions as da, type SecureTradingActions as db, type SecureWalletActions as dc, type SessionKey as dd, type SessionKeyActions as de, SetupGaslessWalletError as df, SetupTradingApprovalsError as dg, type SignedOrder as dh, type SignerTransactionRequest as di, SignerType as dj, SigningError as dk, SplitPositionError as dl, SubscribeError as dm, TimeoutError as dn, type TradingApprovalRequirements as dp, type TradingApprovalsState as dq, TradingRestriction as dr, TransactionFailedError as ds, type TransactionHandle as dt, type TransactionOutcome as du, TransferErc20Error as dv, TransportError as dw, type TypedDataDomain as dx, type TypedDataField as dy, UnexpectedResponseError as dz, type AcceptComboQuoteResult as e, type FetchSeriesRequest as e$, sessionKeyActions as e0, subscriptionsActions as e1, tradingActions as e2, walletActions as e3, type CancelMarketOrdersRequest as e4, type CancelOrderRequest as e5, type CancelOrdersRequest as e6, type CollateralReturnExecutionWorkflow as e7, type CommentsEventType as e8, type CryptoPricesEventType as e9, type FetchGaslessTransactionRequest as eA, type FetchLastTradePriceRequest as eB, type FetchLastTradePricesRequest as eC, FetchMarketInfoError as eD, type FetchMarketInfoRequest as eE, type FetchMarketRequest as eF, type FetchMarketTagsRequest as eG, type FetchMidpointRequest as eH, type FetchMidpointsRequest as eI, FetchNegRiskError as eJ, type FetchNegRiskRequest as eK, type FetchOpenInterestRequest as eL, type FetchOrderBookRequest as eM, type FetchOrderBooksRequest as eN, type FetchOrderRequest as eO, type FetchOrderScoringRequest as eP, type FetchOrdersScoringRequest as eQ, type FetchPortfolioValueRequest as eR, type FetchPriceRequest as eS, type FetchPricesRequest as eT, type FetchPublicProfileRequest as eU, type FetchRelatedTagResourcesRequest as eV, type FetchRelatedTagsRequest as eW, type FetchResolutionsByConditionRequest as eX, type FetchResolutionsByEventRequest as eY, type FetchResolutionsByQuestionRequest as eZ, type FetchResolutionsRequest as e_, DeployDepositWalletError as ea, type DownloadAccountingSnapshotRequest as eb, type DropNotificationsRequest as ec, type EquityPricesEventType as ed, type Erc1155ApprovalForAllWorkflow as ee, type Erc1155ApprovalForAllWorkflowRequest as ef, type Erc20ApprovalWorkflow as eg, type Erc20ApprovalWorkflowRequest as eh, type Erc20TransferWorkflow as ei, type Erc20TransferWorkflowRequest as ej, type EstimateMarketBuyPriceRequest as ek, type EstimateMarketPriceRequest as el, type EstimateMarketSellPriceRequest as em, type EventForSubscriptionSpec as en, type EventForSubscriptionSpecs as eo, FetchBalanceAllowanceError as ep, type FetchBalanceAllowanceRequest as eq, FetchBuilderFeeRatesError as er, type FetchBuilderFeeRatesRequest as es, type FetchBuilderVolumeRequest as et, type FetchCommentsByIdRequest as eu, type FetchEventLiveVolumeRequest as ev, type FetchEventRequest as ew, type FetchEventTagsRequest as ex, FetchExecuteParamsError as ey, type FetchExecuteParamsRequest as ez, type AccountIdentity as f, PrepareCollateralReturnExecutionError as f$, type FetchSpreadRequest as f0, type FetchSpreadsRequest as f1, type FetchTagRequest as f2, FetchTickSizeError as f3, type FetchTickSizeRequest as f4, type FetchTotalEarningsForUserForDayRequest as f5, type FetchTraderLeaderboardStandingRequest as f6, type FetchUserPnlRequest as f7, type FetchUserStatsRequest as f8, type FetchUserVolumeRequest as f9, type ListTagsRequest as fA, type ListTeamsRequest as fB, type ListTraderLeaderboardRequest as fC, type ListTradesRequest as fD, type ListUserEarningsAndMarketsConfigRequest as fE, type ListUserEarningsForDayRequest as fF, type MarketEventType as fG, type MarketSubscription as fH, MergeComboPositionError as fI, MergeMarketPositionError as fJ, type MergePositionsWorkflow as fK, type MergePositionsWorkflowRequest as fL, type OrderPostingWorkflow as fM, type OrderWorkflow as fN, type OrderWorkflowRequest as fO, type PerpsBboSubscription as fP, type PerpsBookSubscription as fQ, type PerpsCandlesSubscription as fR, type PerpsDepositWorkflow as fS, type PerpsDepositWorkflowRequest as fT, type PerpsMarketDataEventType as fU, type PerpsMarketDataSubscription as fV, type PerpsStatisticsSubscription as fW, type PerpsStreamingCandleInterval as fX, type PerpsTickersSubscription as fY, type PerpsTradesSubscription as fZ, type PostOrdersRequest as f_, GaslessTransactionMetadataSchema as fa, type GaslessWorkflow as fb, type GaslessWorkflowRequest as fc, IsWalletDeployedError as fd, type IsWalletDeployedRequest as fe, type ListAccountTradesRequest as ff, type ListActivityRequest as fg, type ListBiggestWinnersRequest as fh, type ListBuilderLeaderboardRequest as fi, type ListBuilderTradesRequest as fj, type ListComboActivityRequest as fk, type ListComboMarketsRequest as fl, type ListComboPositionsRequest as fm, type ListCommentsByUserAddressRequest as fn, type ListCommentsRequest as fo, type ListCurrentRewardsRequest as fp, type ListEventsRequest as fq, ListMarketClarificationsError as fr, type ListMarketClarificationsRequest as fs, type ListMarketHoldersRequest as ft, type ListMarketRewardsRequest as fu, type ListMarketsRequest as fv, type ListOpenOrdersRequest as fw, type ListPositionsRequest as fx, type ListPriceHistoryRequest as fy, type ListSeriesRequest as fz, type AnalyticsActions as g, type WaitForOrderFillSettlementRequest as g$, PrepareErc1155ApprovalForAllError as g0, type PrepareErc1155ApprovalForAllRequest as g1, PrepareErc20ApprovalError as g2, type PrepareErc20ApprovalRequest as g3, PrepareErc20TransferError as g4, type PrepareErc20TransferRequest as g5, PrepareGaslessTransactionError as g6, type PrepareGaslessTransactionRequest as g7, type PrepareLimitOrderRequest as g8, type PrepareMarketBuyOrderRequest as g9, type PublicRealtimeTopic as gA, type PublicSubscriptionSpec as gB, type RedeemPositionsWorkflow as gC, type RedeemPositionsWorkflowRequest as gD, ResolveConditionByTokenError as gE, type ResolveConditionByTokenRequest as gF, type RfqConfirmationRejectedErrorOptions as gG, type RfqExecutionUpdateEvent as gH, type SearchRequest as gI, type SearchResults as gJ, type SecureRealtimeEvent as gK, type SecureRealtimeTopic as gL, type SecureSubscriptionSpec as gM, SplitComboPositionError as gN, SplitMarketPositionError as gO, type SplitPositionWorkflow as gP, type SplitPositionWorkflowRequest as gQ, type SportsEventType as gR, type SportsSubscription as gS, type SubscriptionHandle as gT, type TradingApprovalsWorkflow as gU, type TradingApprovalsWorkflowRequest as gV, UpdateBalanceAllowanceError as gW, type UpdateBalanceAllowanceRequest as gX, type UserEventType as gY, type UserSubscription as gZ, WaitForGaslessTransactionError as g_, type PrepareMarketOrderRequest as ga, type PrepareMarketSellOrderRequest as gb, PrepareMergeComboPositionError as gc, type PrepareMergeComboPositionRequest as gd, PrepareMergeMarketPositionError as ge, type PrepareMergeMarketPositionRequest as gf, PrepareMergePositionsError as gg, type PrepareMergePositionsRequest as gh, PreparePerpsDepositError as gi, PrepareRedeemComboPositionError as gj, type PrepareRedeemComboPositionRequest as gk, type PrepareRedeemMarketPositionsByConditionIdRequest as gl, type PrepareRedeemMarketPositionsByMarketIdRequest as gm, PrepareRedeemMarketPositionsError as gn, type PrepareRedeemMarketPositionsRequest as go, type PrepareRedeemPositionRequest as gp, PrepareRedeemPositionsError as gq, type PrepareRedeemPositionsRequest as gr, PrepareSplitComboPositionError as gs, type PrepareSplitComboPositionRequest as gt, PrepareSplitMarketPositionError as gu, type PrepareSplitMarketPositionRequest as gv, PrepareSplitPositionError as gw, type PrepareSplitPositionRequest as gx, PrepareTradingApprovalsError as gy, type PublicRealtimeEvent as gz, ApproveErc1155ForAllError as h, fetchUserStats as h$, acceptComboQuote as h0, approveErc1155ForAll as h1, approveErc20 as h2, authorizeSessionKey as h3, cancelAll as h4, cancelMarketOrders as h5, cancelOrder as h6, cancelOrders as h7, deployDepositWallet as h8, depositToPerps as h9, fetchOrderScoring as hA, fetchOrdersScoring as hB, fetchPerpsBook as hC, fetchPerpsFees as hD, fetchPerpsInstruments as hE, fetchPerpsTicker as hF, fetchPerpsTickers as hG, fetchPortfolioValue as hH, fetchPrice as hI, fetchPrices as hJ, fetchPublicProfile as hK, fetchRelatedTagResources as hL, fetchRelatedTags as hM, fetchResolutions as hN, fetchRewardPercentages as hO, fetchRfqStatus as hP, fetchSeries as hQ, fetchSessionKeys as hR, fetchSpread as hS, fetchSpreads as hT, fetchTag as hU, fetchTickSize as hV, fetchTotalEarningsForUserForDay as hW, fetchTraderLeaderboardStanding as hX, fetchTradingApprovalsState as hY, fetchTransaction as hZ, fetchUserPnl as h_, downloadAccountingSnapshot as ha, dropNotifications as hb, estimateMarketPrice as hc, executeCollateralReturnPlan as hd, fetchBalanceAllowance as he, fetchBuilderFeeRates as hf, fetchBuilderVolume as hg, fetchClosedOnlyMode as hh, fetchCommentsById as hi, fetchEvent as hj, fetchEventLiveVolume as hk, fetchEventTags as hl, fetchExecuteParams as hm, fetchLastTradePrice as hn, fetchLastTradePrices as ho, fetchMarket as hp, fetchMarketInfo as hq, fetchMarketTags as hr, fetchMidpoint as hs, fetchMidpoints as ht, fetchNegRisk as hu, fetchNotifications as hv, fetchOpenInterest as hw, fetchOrder as hx, fetchOrderBook as hy, fetchOrderBooks as hz, ApproveErc20Error as i, search as i$, fetchUserVolume as i0, isWalletDeployed as i1, listAccountTrades as i2, listActivity as i3, listBiggestWinners as i4, listBuilderLeaderboard as i5, listBuilderTrades as i6, listComboActivity as i7, listComboMarkets as i8, listComboPositions as i9, openPerpsSession as iA, openRfqSession as iB, planCollateralReturn as iC, postOrder as iD, postOrders as iE, prepareCollateralReturnExecution as iF, prepareErc1155ApprovalForAll as iG, prepareErc20Approval as iH, prepareErc20Transfer as iI, prepareGaslessTransaction as iJ, prepareMergeComboPosition as iK, prepareMergeMarketPosition as iL, prepareMergePositions as iM, preparePerpsDeposit as iN, prepareRedeemComboPosition as iO, prepareRedeemMarketPositions as iP, prepareRedeemPosition as iQ, prepareRedeemPositions as iR, prepareSplitComboPosition as iS, prepareSplitMarketPosition as iT, prepareSplitPosition as iU, prepareTradingApprovals as iV, redeemPositions as iW, requestComboQuote as iX, resolveConditionByToken as iY, revokePerpsCredentials as iZ, revokeSessionKey as i_, listComments as ia, listCommentsByUserAddress as ib, listCurrentRewards as ic, listEvents as id, listMarketClarifications as ie, listMarketHolders as ig, listMarketRewards as ih, listMarkets as ii, listOpenOrders as ij, listPerpsCandles as ik, listPerpsFundingHistory as il, listPerpsTrades as im, listPositions as io, listPriceHistory as ip, listSeries as iq, listTags as ir, listTeams as is, listTraderLeaderboard as it, listTrades as iu, listUserEarningsAndMarketsConfig as iv, listUserEarningsForDay as iw, mergeComboPosition as ix, mergeMarketPosition as iy, mergePositions as iz, ArmPerpsAutoCancelError as j, setupTradingApprovals as j0, splitComboPosition as j1, splitMarketPosition as j2, splitPosition as j3, subscribe as j4, transferErc20 as j5, updateBalanceAllowance as j6, waitForComboFill as j7, waitForOrderFillSettlement as j8, withdrawFromPerps as j9, 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 };