@polymarket/client 0.1.0-beta.11 → 0.1.0-beta.13

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,8 +1,7 @@
1
1
  import * as _polymarket_bindings from '@polymarket/bindings';
2
- import { PaginationCursor, OrderSide, OrderType, TokenId, BuilderCode, EvmAddress as EvmAddress$1, CtfConditionId, TickSizeValue, TxHashSchema, PositionId, TransactionId } from '@polymarket/bindings';
3
- import * as _polymarket_types from '@polymarket/types';
4
- import { PolymarketError, HexString, EvmAddress, EvmSignature, NonEmptyArray, Prettify, Erc1271Signature, PrivateKey, TxHash } from '@polymarket/types';
5
- import { WalletType, Event, TagReference, Market, Series, Tag, RelatedTag, SportsMetadata, SportsMarketTypesResponse, Team, PublicProfile, Comment, Profile, SearchTag } from '@polymarket/bindings/gamma';
2
+ import { PaginationCursor, OrderSide, OrderType, TokenId, BuilderCode, EvmAddress as EvmAddress$1, CtfConditionId, TickSizeValue, PositionId, TransactionId } from '@polymarket/bindings';
3
+ import { PolymarketError, HexString, EvmAddress, EvmSignature, NonEmptyArray, Prettify, Erc1271Signature, TxHash } from '@polymarket/types';
4
+ import { WalletType, Event, TagReference, Market, Series, MarketClarification, Tag, RelatedTag, SportsMetadata, SportsMarketTypesResponse, Team, PublicProfile, Comment, MarketClarificationState, Profile, SearchTag } from '@polymarket/bindings/gamma';
6
5
  import { RelayerTransactionType, RelayerExecuteParams, GaslessTransaction } from '@polymarket/bindings/relayer';
7
6
  import { ZodError, z } from 'zod';
8
7
  import * as _polymarket_bindings_clob from '@polymarket/bindings/clob';
@@ -10,8 +9,7 @@ import { ClobTrade, NotificationsResponse, BuilderTrade, Prices, OrderBook, Last
10
9
  import * as _polymarket_bindings_data from '@polymarket/bindings/data';
11
10
  import { Value, Traded, ClosedPosition, ComboPosition, Position, MetaMarketPosition, Activity, LeaderboardEntry, BuilderVolumeEntry, TraderLeaderboardEntry, LiveVolume, OpenInterest, MetaHolder, Trade } from '@polymarket/bindings/data';
12
11
  import { ComboMarket, RfqQuoteRequest, RfqRequestedSize, RfqSide, RfqQuoteAck, RfqConfirmationRequest, RfqConfirmationAck as RfqConfirmationAck$1, RfqExecutionUpdate, RfqTrade, RfqQuoteCancelAck, RfqErrorCode, RfqId, RfqQuoteId } from '@polymarket/bindings/rfq';
13
- import * as _polymarket_bindings_perps from '@polymarket/bindings/perps';
14
- import { PerpsInstrument, PerpsTicker, PerpsBook, PerpsCandle, PerpsFundingRate, PerpsPublicTrade, PerpsFeeScheduleEntry, PerpsWithdrawalId, PerpsInstrumentId, PerpsDepositStatusSchema, PerpsWithdrawalStatusSchema, PerpsPnlIntervalSchema, PerpsDecimalInput, PerpsTimeInForce, PerpsCredentials, PerpsBalance, PerpsPortfolio, PerpsAccountConfig, PerpsOrder, PerpsAccountFill, PerpsAccountFundingPayment, PerpsDeposit, PerpsWithdrawal, PerpsEquityPoint, PerpsPnlPoint, PerpsPostOrderAck, PerpsCancelOrderResult, PerpsUpdateLeverageResult, PerpsKlineInterval, PerpsInstrumentIdSchema } from '@polymarket/bindings/perps';
12
+ import { PerpsInstrument, PerpsTicker, PerpsBook, PerpsCandle, PerpsFundingRate, PerpsPublicTrade, PerpsFeeScheduleEntry, PerpsWithdrawalId, PerpsDepositStatus, PerpsWithdrawalStatus, PerpsPnlInterval, PerpsDecimalInput, PerpsTimeInForce, PerpsCredentials, PerpsBalance, PerpsPortfolio, PerpsAccountStats, PerpsAccountConfig, PerpsOrder, PerpsAccountFill, PerpsAccountFundingPayment, PerpsDeposit, PerpsWithdrawal, PerpsEquityPoint, PerpsPnlPoint, PerpsOrderId, PerpsPostOrderAck, PerpsCancelOrderResult, PerpsUpdateLeverageResult, PerpsInstrumentCategory, PerpsKlineInterval } from '@polymarket/bindings/perps';
15
13
  import { PerpsSessionEvent, CommentsEvent, CryptoPricesTopic, EquityPricesTopic, EquityPricesEvent, MarketEvent, StandardMarketEvent, UserEvent, SportsEvent, CryptoPricesBinanceEvent, CryptoPricesChainlinkEvent, PerpsTradeEvent, PerpsBboEvent, PerpsBookEvent, PerpsCandleEvent, PerpsTickerEvent, PerpsStatisticEvent, CryptoPricesEvent, PerpsMarketDataEvent } from '@polymarket/bindings/subscriptions';
16
14
  import { Hex } from 'ox';
17
15
 
@@ -159,7 +157,7 @@ declare const FetchExecuteParamsRequestSchema: z.ZodObject<{
159
157
  type FetchExecuteParamsRequest = z.input<typeof FetchExecuteParamsRequestSchema>;
160
158
  type FetchExecuteParamsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
161
159
  declare const FetchExecuteParamsError: {
162
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
160
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
163
161
  };
164
162
  /**
165
163
  * Fetches the parameters needed to prepare a low-level transaction submission.
@@ -182,7 +180,7 @@ declare const IsWalletDeployedRequestSchema: z.ZodObject<{
182
180
  type IsWalletDeployedRequest = z.input<typeof IsWalletDeployedRequestSchema>;
183
181
  type IsWalletDeployedError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
184
182
  declare const IsWalletDeployedError: {
185
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
183
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
186
184
  };
187
185
  /**
188
186
  * Checks whether a wallet is deployed for relayer-backed transactions.
@@ -207,7 +205,7 @@ declare function isWalletDeployed(client: BaseClient, request?: IsWalletDeployed
207
205
  declare const GaslessTransactionMetadataSchema: z.ZodString;
208
206
  type DeployDepositWalletError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
209
207
  declare const DeployDepositWalletError: {
210
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
208
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
211
209
  };
212
210
  /**
213
211
  * Deploys a Deposit Wallet for the authenticated signer.
@@ -250,7 +248,7 @@ type GaslessWorkflowRequest = RequestAddressRequest | SignGaslessMessageRequest
250
248
  type GaslessWorkflow = AsyncGenerator<GaslessWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
251
249
  type PrepareGaslessTransactionError = ExecuteGaslessError | FetchExecuteParamsError | UserInputError;
252
250
  declare const PrepareGaslessTransactionError: {
253
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
251
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
254
252
  };
255
253
  /**
256
254
  * Starts preparing a low-level transaction workflow from one or more calls.
@@ -265,7 +263,7 @@ declare function prepareGaslessTransaction(client: BaseSecureClient, request: Pr
265
263
  type ExecuteGaslessError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
266
264
  type WaitForGaslessTransactionError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | TimeoutError | TransactionFailedError;
267
265
  declare const WaitForGaslessTransactionError: {
268
- isError(error: unknown): error is TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
266
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError;
269
267
  };
270
268
 
271
269
  declare const PageSizeSchema: z.ZodNumber;
@@ -351,7 +349,7 @@ type FetchTradedMarketCountRequest = z.input<typeof FetchTradedMarketCountReques
351
349
  type DownloadAccountingSnapshotRequest = z.input<typeof DownloadAccountingSnapshotRequestSchema>;
352
350
  type ListPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
353
351
  declare const ListPositionsError: {
354
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
352
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
355
353
  };
356
354
  /**
357
355
  * Lists current positions for a wallet.
@@ -394,11 +392,11 @@ declare const ListPositionsError: {
394
392
  declare function listPositions(client: BaseClient, request: ListPositionsRequest): Paginated<Position[]>;
395
393
  type ListClosedPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
396
394
  declare const ListClosedPositionsError: {
397
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
395
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
398
396
  };
399
397
  type ListComboPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
400
398
  declare const ListComboPositionsError: {
401
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
399
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
402
400
  };
403
401
  /**
404
402
  * Lists closed positions for a wallet.
@@ -476,7 +474,7 @@ declare function listClosedPositions(client: BaseClient, request: ListClosedPosi
476
474
  declare function listComboPositions(client: BaseClient, request: ListComboPositionsRequest): Paginated<ComboPosition[]>;
477
475
  type FetchPortfolioValueError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
478
476
  declare const FetchPortfolioValueError: {
479
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
477
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
480
478
  };
481
479
  /**
482
480
  * Fetches the total value for a wallet's positions.
@@ -499,7 +497,7 @@ declare const FetchPortfolioValueError: {
499
497
  declare function fetchPortfolioValue(client: BaseClient, request: FetchPortfolioValueRequest): Promise<Value[]>;
500
498
  type FetchTradedMarketCountError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
501
499
  declare const FetchTradedMarketCountError: {
502
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
500
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
503
501
  };
504
502
  /**
505
503
  * Fetches the total number of markets a wallet has traded.
@@ -522,7 +520,7 @@ declare const FetchTradedMarketCountError: {
522
520
  declare function fetchTradedMarketCount(client: BaseClient, request: FetchTradedMarketCountRequest): Promise<Traded>;
523
521
  type DownloadAccountingSnapshotError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
524
522
  declare const DownloadAccountingSnapshotError: {
525
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
523
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
526
524
  };
527
525
  /**
528
526
  * Downloads an accounting snapshot archive for a wallet.
@@ -1524,6 +1522,25 @@ type DiscoveryActions = {
1524
1522
  * ```
1525
1523
  */
1526
1524
  fetchSeries(request: FetchSeriesRequest): Promise<Series>;
1525
+ /**
1526
+ * Lists market clarifications — notes that resolve ambiguity in how a market
1527
+ * settles.
1528
+ *
1529
+ * @throws {@link ListMarketClarificationsError}
1530
+ * Thrown on failure.
1531
+ *
1532
+ * @example
1533
+ * ```ts
1534
+ * const paginator = client.listMarketClarifications({
1535
+ * marketId: '512038',
1536
+ * });
1537
+ *
1538
+ * for await (const page of paginator) {
1539
+ * // page.items: MarketClarification[]
1540
+ * }
1541
+ * ```
1542
+ */
1543
+ listMarketClarifications(request?: ListMarketClarificationsRequest): Paginated<MarketClarification[]>;
1527
1544
  /**
1528
1545
  * Lists tags.
1529
1546
  *
@@ -1799,6 +1816,11 @@ type PublicPerpsActions = {
1799
1816
  /**
1800
1817
  * Fetches Perps instruments.
1801
1818
  *
1819
+ * @example
1820
+ * ```ts
1821
+ * const instruments = await client.fetchPerpsInstruments();
1822
+ * ```
1823
+ *
1802
1824
  * @throws {@link FetchPerpsInstrumentsError}
1803
1825
  * Thrown on failure.
1804
1826
  */
@@ -1806,6 +1828,11 @@ type PublicPerpsActions = {
1806
1828
  /**
1807
1829
  * Fetches the current Perps ticker for an instrument.
1808
1830
  *
1831
+ * @example
1832
+ * ```ts
1833
+ * const ticker = await client.fetchPerpsTicker({ instrumentId: 1 });
1834
+ * ```
1835
+ *
1809
1836
  * @throws {@link FetchPerpsTickerError}
1810
1837
  * Thrown on failure.
1811
1838
  */
@@ -1813,6 +1840,11 @@ type PublicPerpsActions = {
1813
1840
  /**
1814
1841
  * Fetches current Perps tickers.
1815
1842
  *
1843
+ * @example
1844
+ * ```ts
1845
+ * const tickers = await client.fetchPerpsTickers();
1846
+ * ```
1847
+ *
1816
1848
  * @throws {@link FetchPerpsTickersError}
1817
1849
  * Thrown on failure.
1818
1850
  */
@@ -1820,6 +1852,11 @@ type PublicPerpsActions = {
1820
1852
  /**
1821
1853
  * Fetches a Perps order book.
1822
1854
  *
1855
+ * @example
1856
+ * ```ts
1857
+ * const book = await client.fetchPerpsBook({ instrumentId: 1, depth: 100 });
1858
+ * ```
1859
+ *
1823
1860
  * @throws {@link FetchPerpsBookError}
1824
1861
  * Thrown on failure.
1825
1862
  */
@@ -1827,6 +1864,16 @@ type PublicPerpsActions = {
1827
1864
  /**
1828
1865
  * Lists Perps candles for an instrument with SDK-owned pagination.
1829
1866
  *
1867
+ * @example
1868
+ * ```ts
1869
+ * for await (const candles of client.listPerpsCandles({
1870
+ * instrumentId: 1,
1871
+ * interval: PerpsKlineInterval.OneMinute,
1872
+ * })) {
1873
+ * console.log(candles);
1874
+ * }
1875
+ * ```
1876
+ *
1830
1877
  * @throws {@link ListPerpsCandlesError}
1831
1878
  * Thrown on failure.
1832
1879
  */
@@ -1834,6 +1881,15 @@ type PublicPerpsActions = {
1834
1881
  /**
1835
1882
  * Lists Perps funding-rate history for an instrument with SDK-owned pagination.
1836
1883
  *
1884
+ * @example
1885
+ * ```ts
1886
+ * for await (const rates of client.listPerpsFundingHistory({
1887
+ * instrumentId: 1,
1888
+ * })) {
1889
+ * console.log(rates);
1890
+ * }
1891
+ * ```
1892
+ *
1837
1893
  * @throws {@link ListPerpsFundingHistoryError}
1838
1894
  * Thrown on failure.
1839
1895
  */
@@ -1841,6 +1897,13 @@ type PublicPerpsActions = {
1841
1897
  /**
1842
1898
  * Lists recent Perps trades for an instrument with SDK-owned pagination.
1843
1899
  *
1900
+ * @example
1901
+ * ```ts
1902
+ * for await (const trades of client.listPerpsTrades({ instrumentId: 1 })) {
1903
+ * console.log(trades);
1904
+ * }
1905
+ * ```
1906
+ *
1844
1907
  * @throws {@link ListPerpsTradesError}
1845
1908
  * Thrown on failure.
1846
1909
  */
@@ -1848,6 +1911,11 @@ type PublicPerpsActions = {
1848
1911
  /**
1849
1912
  * Fetches the Perps fee schedule.
1850
1913
  *
1914
+ * @example
1915
+ * ```ts
1916
+ * const fees = await client.fetchPerpsFees();
1917
+ * ```
1918
+ *
1851
1919
  * @throws {@link FetchPerpsFeesError}
1852
1920
  * Thrown on failure.
1853
1921
  */
@@ -1857,6 +1925,11 @@ type SecurePerpsActions = PublicPerpsActions & {
1857
1925
  /**
1858
1926
  * Deposits collateral into Perps for the authenticated signer account.
1859
1927
  *
1928
+ * @example
1929
+ * ```ts
1930
+ * const transaction = await client.depositToPerps({ amount: 100_000_000n });
1931
+ * ```
1932
+ *
1860
1933
  * @throws {@link DepositToPerpsError}
1861
1934
  * Thrown on failure.
1862
1935
  */
@@ -1870,6 +1943,11 @@ type SecurePerpsActions = PublicPerpsActions & {
1870
1943
  * longer credential lifetime, or pass existing credentials to validate and
1871
1944
  * resume a previous session.
1872
1945
  *
1946
+ * @example
1947
+ * ```ts
1948
+ * const session = await client.openPerpsSession();
1949
+ * ```
1950
+ *
1873
1951
  * @throws {@link OpenPerpsSessionError}
1874
1952
  * Thrown on failure.
1875
1953
  */
@@ -1880,6 +1958,11 @@ type SecurePerpsActions = PublicPerpsActions & {
1880
1958
  * @remarks
1881
1959
  * This can revoke credentials outside the currently open Perps session.
1882
1960
  *
1961
+ * @example
1962
+ * ```ts
1963
+ * await client.revokePerpsCredentials({ proxy: session.credentials.proxy });
1964
+ * ```
1965
+ *
1883
1966
  * @throws {@link RevokePerpsCredentialsError}
1884
1967
  * Thrown on failure.
1885
1968
  */
@@ -1887,6 +1970,11 @@ type SecurePerpsActions = PublicPerpsActions & {
1887
1970
  /**
1888
1971
  * Requests a Perps withdrawal to the authenticated wallet.
1889
1972
  *
1973
+ * @example
1974
+ * ```ts
1975
+ * const withdrawalId = await client.withdrawFromPerps({ amount: 100_000_000n });
1976
+ * ```
1977
+ *
1890
1978
  * @throws {@link WithdrawFromPerpsError}
1891
1979
  * Thrown on failure.
1892
1980
  */
@@ -2151,7 +2239,7 @@ declare class RfqQuoteRejectedError extends PolymarketError {
2151
2239
  }
2152
2240
  type RfqQuoteError = RfqQuoteRejectedError | SigningError | TimeoutError | TransportError | UserInputError;
2153
2241
  declare const RfqQuoteError: {
2154
- isError(error: unknown): error is SigningError | TransportError | UserInputError | TimeoutError | RfqQuoteRejectedError;
2242
+ isError(error: unknown): error is UserInputError | TransportError | TimeoutError | SigningError | RfqQuoteRejectedError;
2155
2243
  };
2156
2244
  type RfqCancelQuoteRejectedErrorOptions = {
2157
2245
  /** RFQ error code for the rejected cancellation request. */
@@ -2509,7 +2597,7 @@ declare const CancelMarketOrdersRequestSchema: z.ZodObject<{
2509
2597
  type CancelOrderRequest = z.input<typeof CancelOrderRequestSchema>;
2510
2598
  type CancelOrderError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
2511
2599
  declare const CancelOrderError: {
2512
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
2600
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
2513
2601
  };
2514
2602
  /**
2515
2603
  * Cancels a single open order for the authenticated account.
@@ -2533,7 +2621,7 @@ declare function cancelOrder(client: BaseSecureClient, request: CancelOrderReque
2533
2621
  type CancelOrdersRequest = z.input<typeof CancelOrdersRequestSchema>;
2534
2622
  type CancelOrdersError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
2535
2623
  declare const CancelOrdersError: {
2536
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
2624
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
2537
2625
  };
2538
2626
  /**
2539
2627
  * Cancels multiple open orders for the authenticated account.
@@ -2556,7 +2644,7 @@ declare const CancelOrdersError: {
2556
2644
  declare function cancelOrders(client: BaseSecureClient, request: CancelOrdersRequest): Promise<CancelOrdersResponse>;
2557
2645
  type CancelAllError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError;
2558
2646
  declare const CancelAllError: {
2559
- isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
2647
+ isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
2560
2648
  };
2561
2649
  /**
2562
2650
  * Cancels all open orders for the authenticated account.
@@ -2578,7 +2666,7 @@ declare function cancelAll(client: BaseSecureClient): Promise<CancelOrdersRespon
2578
2666
  type CancelMarketOrdersRequest = z.input<typeof CancelMarketOrdersRequestSchema>;
2579
2667
  type CancelMarketOrdersError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
2580
2668
  declare const CancelMarketOrdersError: {
2581
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
2669
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
2582
2670
  };
2583
2671
  /**
2584
2672
  * Cancels all open orders for the authenticated account that match the market
@@ -2632,7 +2720,7 @@ type EstimateMarketSellPriceRequest = {
2632
2720
  type EstimateMarketPriceRequest = EstimateMarketBuyPriceRequest | EstimateMarketSellPriceRequest;
2633
2721
  type EstimateMarketPriceError = InsufficientLiquidityError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
2634
2722
  declare const EstimateMarketPriceError: {
2635
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | InsufficientLiquidityError;
2723
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | InsufficientLiquidityError;
2636
2724
  };
2637
2725
  /**
2638
2726
  * Estimates the price level a market order would cross at current book depth.
@@ -2764,7 +2852,7 @@ type PrepareLimitOrderRequest = {
2764
2852
  * When provided, the SDK prepares a Good-Til-Date (GTD) limit order that
2765
2853
  * expires at the given timestamp.
2766
2854
  *
2767
- * The timestamp must be at least 60 seconds in the future. Add your own
2855
+ * The timestamp must be at least 3 minutes in the future. Add your own
2768
2856
  * buffer for network latency and clock skew when deriving it from the
2769
2857
  * current time.
2770
2858
  *
@@ -2810,11 +2898,11 @@ declare const PostOrdersRequestSchema: z.ZodArray<z.ZodCustom<SignedOrder, Signe
2810
2898
  type PostOrdersRequest = z.input<typeof PostOrdersRequestSchema>;
2811
2899
  type PostOrderError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
2812
2900
  declare const PostOrderError: {
2813
- isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
2901
+ isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
2814
2902
  };
2815
2903
  type PostOrdersError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
2816
2904
  declare const PostOrdersError: {
2817
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
2905
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
2818
2906
  };
2819
2907
  /**
2820
2908
  * Posts a signed order for the authenticated account.
@@ -2915,7 +3003,7 @@ type SecureTradingActions = {
2915
3003
  * Creates a signed limit order for the authenticated account.
2916
3004
  *
2917
3005
  * @remarks
2918
- * GTD expirations must be at least 60 seconds in the future. Add your own
3006
+ * GTD expirations must be at least 3 minutes in the future. Add your own
2919
3007
  * buffer for network latency and clock skew when deriving an expiration from
2920
3008
  * the current time.
2921
3009
  *
@@ -2938,7 +3026,7 @@ type SecureTradingActions = {
2938
3026
  * Creates and posts a limit order for the authenticated account.
2939
3027
  *
2940
3028
  * @remarks
2941
- * GTD expirations must be at least 60 seconds in the future. Add your own
3029
+ * GTD expirations must be at least 3 minutes in the future. Add your own
2942
3030
  * buffer for network latency and clock skew when deriving an expiration from
2943
3031
  * the current time.
2944
3032
  *
@@ -3612,7 +3700,7 @@ type SecureClientOptions = PublicClientOptions & {
3612
3700
  declare function createPublicClient(options?: PublicClientOptions): PublicClient<PublicActions, SecureActions>;
3613
3701
  type CreateSecureClientError = CancelledSigningError | DeployDepositWalletError | IsWalletDeployedError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError | WaitForGaslessTransactionError;
3614
3702
  declare const CreateSecureClientError: {
3615
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
3703
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
3616
3704
  };
3617
3705
  type SetupGaslessWalletError = UserInputError;
3618
3706
  declare const SetupGaslessWalletError: {
@@ -3635,7 +3723,7 @@ declare function createSecureClient(options: SecureClientOptions): Promise<Secur
3635
3723
 
3636
3724
  type FetchClosedOnlyModeError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
3637
3725
  declare const FetchClosedOnlyModeError: {
3638
- isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3726
+ isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3639
3727
  };
3640
3728
  /**
3641
3729
  * Fetches whether the account is restricted to closed-only trading.
@@ -3660,7 +3748,7 @@ declare const ListOpenOrdersRequestSchema: z.ZodDefault<z.ZodObject<{
3660
3748
  type ListOpenOrdersRequest = z.input<typeof ListOpenOrdersRequestSchema>;
3661
3749
  type ListOpenOrdersError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3662
3750
  declare const ListOpenOrdersError: {
3663
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3751
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3664
3752
  };
3665
3753
  /**
3666
3754
  * Lists open orders for the authenticated account across all pages.
@@ -3704,7 +3792,7 @@ declare const FetchOrderRequestSchema: z.ZodObject<{
3704
3792
  type FetchOrderRequest = z.input<typeof FetchOrderRequestSchema>;
3705
3793
  type FetchOrderError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3706
3794
  declare const FetchOrderError: {
3707
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3795
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3708
3796
  };
3709
3797
  /**
3710
3798
  * Fetches a single order for the authenticated account.
@@ -3734,7 +3822,7 @@ declare const ListAccountTradesRequestSchema: z.ZodDefault<z.ZodObject<{
3734
3822
  type ListAccountTradesRequest = z.input<typeof ListAccountTradesRequestSchema>;
3735
3823
  type ListAccountTradesError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3736
3824
  declare const ListAccountTradesError: {
3737
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3825
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3738
3826
  };
3739
3827
  /**
3740
3828
  * Lists trades for the authenticated account across all pages.
@@ -3774,7 +3862,7 @@ declare const ListAccountTradesError: {
3774
3862
  declare function listAccountTrades(client: BaseSecureClient, request?: ListAccountTradesRequest): Paginated<ClobTrade[]>;
3775
3863
  type FetchNotificationsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
3776
3864
  declare const FetchNotificationsError: {
3777
- isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3865
+ isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3778
3866
  };
3779
3867
  declare const DropNotificationsRequestSchema: z.ZodObject<{
3780
3868
  ids: z.ZodArray<z.ZodString>;
@@ -3796,7 +3884,7 @@ type DropNotificationsRequest = z.input<typeof DropNotificationsRequestSchema>;
3796
3884
  declare function fetchNotifications(client: BaseSecureClient): Promise<NotificationsResponse>;
3797
3885
  type DropNotificationsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3798
3886
  declare const DropNotificationsError: {
3799
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3887
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3800
3888
  };
3801
3889
  /**
3802
3890
  * Drops notifications for the authenticated account.
@@ -3822,7 +3910,7 @@ declare const FetchBalanceAllowanceRequestSchema: z.ZodObject<{
3822
3910
  type FetchBalanceAllowanceRequest = z.input<typeof FetchBalanceAllowanceRequestSchema>;
3823
3911
  type FetchBalanceAllowanceError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3824
3912
  declare const FetchBalanceAllowanceError: {
3825
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3913
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3826
3914
  };
3827
3915
  /**
3828
3916
  * Fetches balance and allowance for the authenticated account.
@@ -3848,7 +3936,7 @@ declare const UpdateBalanceAllowanceRequestSchema: z.ZodObject<{
3848
3936
  type UpdateBalanceAllowanceRequest = z.input<typeof UpdateBalanceAllowanceRequestSchema>;
3849
3937
  type UpdateBalanceAllowanceError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3850
3938
  declare const UpdateBalanceAllowanceError: {
3851
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3939
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3852
3940
  };
3853
3941
  /**
3854
3942
  * Refreshes balance and allowance for the authenticated account.
@@ -3873,7 +3961,7 @@ declare const FetchOrderScoringRequestSchema: z.ZodObject<{
3873
3961
  type FetchOrderScoringRequest = z.input<typeof FetchOrderScoringRequestSchema>;
3874
3962
  type FetchOrderScoringError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3875
3963
  declare const FetchOrderScoringError: {
3876
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3964
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3877
3965
  };
3878
3966
  /**
3879
3967
  * Fetches whether a single order is currently scoring.
@@ -3897,7 +3985,7 @@ declare const FetchOrdersScoringRequestSchema: z.ZodObject<{
3897
3985
  type FetchOrdersScoringRequest = z.input<typeof FetchOrdersScoringRequestSchema>;
3898
3986
  type FetchOrdersScoringError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3899
3987
  declare const FetchOrdersScoringError: {
3900
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3988
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3901
3989
  };
3902
3990
  /**
3903
3991
  * Fetches scoring state for multiple orders.
@@ -3922,7 +4010,7 @@ declare const ListUserEarningsForDayRequestSchema: z.ZodObject<{
3922
4010
  type ListUserEarningsForDayRequest = z.input<typeof ListUserEarningsForDayRequestSchema>;
3923
4011
  type ListUserEarningsForDayError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3924
4012
  declare const ListUserEarningsForDayError: {
3925
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4013
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3926
4014
  };
3927
4015
  /**
3928
4016
  * Lists per-market earnings for the authenticated account on a given day.
@@ -3963,7 +4051,7 @@ declare function listUserEarningsForDay(client: BaseSecureClient, request: ListU
3963
4051
  type FetchTotalEarningsForUserForDayRequest = z.input<typeof ListUserEarningsForDayRequestSchema>;
3964
4052
  type FetchTotalEarningsForUserForDayError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3965
4053
  declare const FetchTotalEarningsForUserForDayError: {
3966
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4054
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3967
4055
  };
3968
4056
  /**
3969
4057
  * Fetches total earnings for the authenticated account on a given day.
@@ -3992,7 +4080,7 @@ declare const ListUserEarningsAndMarketsConfigRequestSchema: z.ZodObject<{
3992
4080
  type ListUserEarningsAndMarketsConfigRequest = z.input<typeof ListUserEarningsAndMarketsConfigRequestSchema>;
3993
4081
  type ListUserEarningsAndMarketsConfigError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3994
4082
  declare const ListUserEarningsAndMarketsConfigError: {
3995
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4083
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3996
4084
  };
3997
4085
  /**
3998
4086
  * Lists market reward configuration and earnings for the authenticated account on a given day.
@@ -4032,7 +4120,7 @@ declare const ListUserEarningsAndMarketsConfigError: {
4032
4120
  declare function listUserEarningsAndMarketsConfig(client: BaseSecureClient, request: ListUserEarningsAndMarketsConfigRequest): Paginated<UserRewardsEarning[]>;
4033
4121
  type FetchRewardPercentagesError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
4034
4122
  declare const FetchRewardPercentagesError: {
4035
- isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4123
+ isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
4036
4124
  };
4037
4125
  /**
4038
4126
  * Fetches reward percentages for the authenticated account.
@@ -4093,7 +4181,7 @@ type ListTradesRequest = z.input<typeof ListTradesRequestSchema>;
4093
4181
  type ListActivityRequest = z.input<typeof ListActivityRequestSchema>;
4094
4182
  type ListTradesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4095
4183
  declare const ListTradesError: {
4096
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4184
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4097
4185
  };
4098
4186
  /**
4099
4187
  * Lists trades for a wallet, market, or event.
@@ -4136,7 +4224,7 @@ declare const ListTradesError: {
4136
4224
  declare function listTrades(client: BaseClient, request?: ListTradesRequest): Paginated<Trade[]>;
4137
4225
  type ListActivityError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4138
4226
  declare const ListActivityError: {
4139
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4227
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4140
4228
  };
4141
4229
  /**
4142
4230
  * Lists wallet activity.
@@ -4212,7 +4300,7 @@ declare const PrepareErc20ApprovalError: {
4212
4300
  declare function prepareErc20Approval(client: BaseSecureClient, request: PrepareErc20ApprovalRequest): Promise<Erc20ApprovalWorkflow>;
4213
4301
  type ApproveErc20Error = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
4214
4302
  declare const ApproveErc20Error: {
4215
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4303
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
4216
4304
  };
4217
4305
  /**
4218
4306
  * Approves ERC-20 token spending for the authenticated account.
@@ -4257,7 +4345,7 @@ declare const PrepareErc1155ApprovalForAllError: {
4257
4345
  declare function prepareErc1155ApprovalForAll(client: BaseSecureClient, request: PrepareErc1155ApprovalForAllRequest): Promise<Erc1155ApprovalForAllWorkflow>;
4258
4346
  type ApproveErc1155ForAllError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
4259
4347
  declare const ApproveErc1155ForAllError: {
4260
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4348
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
4261
4349
  };
4262
4350
  /**
4263
4351
  * Approves or revokes ERC-1155 operator access for the authenticated account.
@@ -4273,7 +4361,7 @@ type TradingApprovalsWorkflowRequest = GaslessWorkflowRequest | SendErc20Approva
4273
4361
  type TradingApprovalsWorkflow = AsyncGenerator<TradingApprovalsWorkflowRequest, void, EvmAddress$1 | EvmSignature | TransactionHandle>;
4274
4362
  type PrepareTradingApprovalsError = RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4275
4363
  declare const PrepareTradingApprovalsError: {
4276
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError;
4364
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError;
4277
4365
  };
4278
4366
  /**
4279
4367
  * Starts a trading-setup approval workflow.
@@ -4292,7 +4380,7 @@ declare const PrepareTradingApprovalsError: {
4292
4380
  declare function prepareTradingApprovals(client: BaseSecureClient): Promise<TradingApprovalsWorkflow>;
4293
4381
  type SetupTradingApprovalsError = PrepareTradingApprovalsError | CancelledSigningError | SigningError | WaitForGaslessTransactionError;
4294
4382
  declare const SetupTradingApprovalsError: {
4295
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
4383
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
4296
4384
  };
4297
4385
  type DeprecatedTransactionHandle = Omit<TransactionHandle, 'wait'> & {
4298
4386
  /**
@@ -4324,7 +4412,7 @@ declare const ListBuilderTradesRequestSchema: z.ZodObject<{
4324
4412
  type ListBuilderTradesRequest = z.input<typeof ListBuilderTradesRequestSchema>;
4325
4413
  type ListBuilderTradesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4326
4414
  declare const ListBuilderTradesError: {
4327
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4415
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4328
4416
  };
4329
4417
  /**
4330
4418
  * Lists builder-attributed trades.
@@ -4366,7 +4454,7 @@ declare const FetchMidpointRequestSchema: z.ZodObject<{
4366
4454
  type FetchMidpointRequest = z.input<typeof FetchMidpointRequestSchema>;
4367
4455
  type FetchMidpointError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4368
4456
  declare const FetchMidpointError: {
4369
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4457
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4370
4458
  };
4371
4459
  /**
4372
4460
  * Fetches the midpoint price for a token.
@@ -4395,7 +4483,7 @@ declare const FetchMidpointsRequestSchema: z.ZodArray<z.ZodObject<{
4395
4483
  type FetchMidpointsRequest = z.input<typeof FetchMidpointsRequestSchema>;
4396
4484
  type FetchMidpointsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4397
4485
  declare const FetchMidpointsError: {
4398
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4486
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4399
4487
  };
4400
4488
  /**
4401
4489
  * Fetches midpoint prices for multiple tokens.
@@ -4426,7 +4514,7 @@ declare const FetchTickSizeRequestSchema: z.ZodObject<{
4426
4514
  type FetchTickSizeRequest = z.input<typeof FetchTickSizeRequestSchema>;
4427
4515
  type FetchTickSizeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4428
4516
  declare const FetchTickSizeError: {
4429
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4517
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4430
4518
  };
4431
4519
  /**
4432
4520
  * Fetches the minimum price tick size for a token's order book.
@@ -4454,7 +4542,7 @@ declare const FetchNegRiskRequestSchema: z.ZodObject<{
4454
4542
  type FetchNegRiskRequest = z.input<typeof FetchNegRiskRequestSchema>;
4455
4543
  type FetchNegRiskError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4456
4544
  declare const FetchNegRiskError: {
4457
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4545
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4458
4546
  };
4459
4547
  /**
4460
4548
  * Fetches whether a token is in a negative-risk market.
@@ -4482,7 +4570,7 @@ declare const ResolveConditionByTokenRequestSchema: z.ZodObject<{
4482
4570
  type ResolveConditionByTokenRequest = z.input<typeof ResolveConditionByTokenRequestSchema>;
4483
4571
  type ResolveConditionByTokenError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4484
4572
  declare const ResolveConditionByTokenError: {
4485
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4573
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4486
4574
  };
4487
4575
  /**
4488
4576
  * Resolves the condition ID for a token.
@@ -4500,7 +4588,7 @@ declare const FetchMarketInfoRequestSchema: z.ZodObject<{
4500
4588
  type FetchMarketInfoRequest = z.input<typeof FetchMarketInfoRequestSchema>;
4501
4589
  type FetchMarketInfoError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4502
4590
  declare const FetchMarketInfoError: {
4503
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4591
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4504
4592
  };
4505
4593
  /**
4506
4594
  * Fetches market-level metadata for a condition.
@@ -4518,7 +4606,7 @@ declare const FetchBuilderFeeRatesRequestSchema: z.ZodObject<{
4518
4606
  type FetchBuilderFeeRatesRequest = z.input<typeof FetchBuilderFeeRatesRequestSchema>;
4519
4607
  type FetchBuilderFeeRatesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4520
4608
  declare const FetchBuilderFeeRatesError: {
4521
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4609
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4522
4610
  };
4523
4611
  /**
4524
4612
  * Fetches builder maker and taker fee rates.
@@ -4537,7 +4625,7 @@ declare const FetchPriceRequestSchema: z.ZodObject<{
4537
4625
  type FetchPriceRequest = z.input<typeof FetchPriceRequestSchema>;
4538
4626
  type FetchPriceError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4539
4627
  declare const FetchPriceError: {
4540
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4628
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4541
4629
  };
4542
4630
  /**
4543
4631
  * Fetches the current quoted price for a token and side.
@@ -4568,7 +4656,7 @@ declare const FetchPricesRequestSchema: z.ZodArray<z.ZodObject<{
4568
4656
  type FetchPricesRequest = z.input<typeof FetchPricesRequestSchema>;
4569
4657
  type FetchPricesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4570
4658
  declare const FetchPricesError: {
4571
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4659
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4572
4660
  };
4573
4661
  /**
4574
4662
  * Fetches quoted prices for multiple tokens.
@@ -4600,7 +4688,7 @@ declare const FetchOrderBookRequestSchema: z.ZodObject<{
4600
4688
  type FetchOrderBookRequest = z.input<typeof FetchOrderBookRequestSchema>;
4601
4689
  type FetchOrderBookError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4602
4690
  declare const FetchOrderBookError: {
4603
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4691
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4604
4692
  };
4605
4693
  /**
4606
4694
  * Fetches the current order book for a token.
@@ -4628,7 +4716,7 @@ declare const FetchOrderBooksRequestSchema: z.ZodArray<z.ZodObject<{
4628
4716
  type FetchOrderBooksRequest = z.input<typeof FetchOrderBooksRequestSchema>;
4629
4717
  type FetchOrderBooksError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4630
4718
  declare const FetchOrderBooksError: {
4631
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4719
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4632
4720
  };
4633
4721
  /**
4634
4722
  * Fetches order books for multiple tokens.
@@ -4658,7 +4746,7 @@ declare const FetchSpreadRequestSchema: z.ZodObject<{
4658
4746
  type FetchSpreadRequest = z.input<typeof FetchSpreadRequestSchema>;
4659
4747
  type FetchSpreadError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4660
4748
  declare const FetchSpreadError: {
4661
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4749
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4662
4750
  };
4663
4751
  /**
4664
4752
  * Fetches the spread for a token.
@@ -4687,7 +4775,7 @@ declare const FetchSpreadsRequestSchema: z.ZodArray<z.ZodObject<{
4687
4775
  type FetchSpreadsRequest = z.input<typeof FetchSpreadsRequestSchema>;
4688
4776
  type FetchSpreadsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4689
4777
  declare const FetchSpreadsError: {
4690
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4778
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4691
4779
  };
4692
4780
  /**
4693
4781
  * Fetches spreads for multiple tokens.
@@ -4718,7 +4806,7 @@ declare const FetchLastTradePriceRequestSchema: z.ZodObject<{
4718
4806
  type FetchLastTradePriceRequest = z.input<typeof FetchLastTradePriceRequestSchema>;
4719
4807
  type FetchLastTradePriceError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4720
4808
  declare const FetchLastTradePriceError: {
4721
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4809
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4722
4810
  };
4723
4811
  /**
4724
4812
  * Fetches the last traded price for a token.
@@ -4747,7 +4835,7 @@ declare const FetchLastTradePricesRequestSchema: z.ZodArray<z.ZodObject<{
4747
4835
  type FetchLastTradePricesRequest = z.input<typeof FetchLastTradePricesRequestSchema>;
4748
4836
  type FetchLastTradePricesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4749
4837
  declare const FetchLastTradePricesError: {
4750
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4838
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4751
4839
  };
4752
4840
  /**
4753
4841
  * Fetches last traded prices for multiple tokens.
@@ -4782,7 +4870,7 @@ declare const ListPriceHistoryRequestSchema: z.ZodObject<{
4782
4870
  type FetchPriceHistoryRequest = z.input<typeof ListPriceHistoryRequestSchema>;
4783
4871
  type FetchPriceHistoryError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4784
4872
  declare const FetchPriceHistoryError: {
4785
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4873
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4786
4874
  };
4787
4875
  /**
4788
4876
  * Fetches historical price points for a token.
@@ -4814,7 +4902,7 @@ declare const ListCurrentRewardsRequestSchema: z.ZodDefault<z.ZodObject<{
4814
4902
  type ListCurrentRewardsRequest = z.input<typeof ListCurrentRewardsRequestSchema>;
4815
4903
  type ListCurrentRewardsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4816
4904
  declare const ListCurrentRewardsError: {
4817
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4905
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4818
4906
  };
4819
4907
  /**
4820
4908
  * Lists current active market rewards.
@@ -4857,7 +4945,7 @@ declare const ListMarketRewardsRequestSchema: z.ZodObject<{
4857
4945
  type ListMarketRewardsRequest = z.input<typeof ListMarketRewardsRequestSchema>;
4858
4946
  type ListMarketRewardsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4859
4947
  declare const ListMarketRewardsError: {
4860
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4948
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4861
4949
  };
4862
4950
  /**
4863
4951
  * Lists reward configurations for a market.
@@ -4925,7 +5013,7 @@ type FetchCommentsByIdRequest = z.input<typeof FetchCommentsByIdRequestSchema>;
4925
5013
  type ListCommentsByUserAddressRequest = z.input<typeof ListCommentsByUserAddressRequestSchema>;
4926
5014
  type ListCommentsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4927
5015
  declare const ListCommentsError: {
4928
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5016
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4929
5017
  };
4930
5018
  /**
4931
5019
  * Lists comments for an event or series.
@@ -4970,7 +5058,7 @@ declare const ListCommentsError: {
4970
5058
  declare function listComments(client: BaseClient, request: ListCommentsRequest): Paginated<Comment[]>;
4971
5059
  type FetchCommentsByIdError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4972
5060
  declare const FetchCommentsByIdError: {
4973
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5061
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4974
5062
  };
4975
5063
  /**
4976
5064
  * Fetches a comment thread by comment id.
@@ -4994,7 +5082,7 @@ declare const FetchCommentsByIdError: {
4994
5082
  declare function fetchCommentsById(client: BaseClient, request: FetchCommentsByIdRequest): Promise<Comment[]>;
4995
5083
  type ListCommentsByUserAddressError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
4996
5084
  declare const ListCommentsByUserAddressError: {
4997
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5085
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
4998
5086
  };
4999
5087
  /**
5000
5088
  * Lists comments written by a wallet address.
@@ -5118,7 +5206,7 @@ declare const FetchEventLiveVolumeRequestSchema: z.ZodObject<{
5118
5206
  type FetchEventLiveVolumeRequest = z.input<typeof FetchEventLiveVolumeRequestSchema>;
5119
5207
  type ListEventsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5120
5208
  declare const ListEventsError: {
5121
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5209
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5122
5210
  };
5123
5211
  /**
5124
5212
  * Lists events.
@@ -5163,7 +5251,7 @@ declare const ListEventsError: {
5163
5251
  declare function listEvents(client: BaseClient, request?: ListEventsRequest): Paginated<Event[]>;
5164
5252
  type FetchEventError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5165
5253
  declare const FetchEventError: {
5166
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5254
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5167
5255
  };
5168
5256
  /**
5169
5257
  * Fetches an event.
@@ -5194,7 +5282,7 @@ declare const FetchEventError: {
5194
5282
  declare function fetchEvent(client: BaseClient, request: FetchEventRequest): Promise<Event>;
5195
5283
  type FetchEventTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5196
5284
  declare const FetchEventTagsError: {
5197
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5285
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5198
5286
  };
5199
5287
  /**
5200
5288
  * Fetches an event's tags.
@@ -5217,7 +5305,7 @@ declare const FetchEventTagsError: {
5217
5305
  declare function fetchEventTags(client: BaseClient, request: FetchEventTagsRequest): Promise<TagReference[]>;
5218
5306
  type FetchEventLiveVolumeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5219
5307
  declare const FetchEventLiveVolumeError: {
5220
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5308
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5221
5309
  };
5222
5310
  /**
5223
5311
  * Fetches live volume for an event.
@@ -5290,7 +5378,7 @@ type ListBuilderVolumeRequest = z.input<typeof ListBuilderVolumeRequestSchema>;
5290
5378
  type ListTraderLeaderboardRequest = z.input<typeof ListTraderLeaderboardRequestSchema>;
5291
5379
  type ListBuilderLeaderboardError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5292
5380
  declare const ListBuilderLeaderboardError: {
5293
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5381
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5294
5382
  };
5295
5383
  /**
5296
5384
  * Lists builder leaderboard rankings.
@@ -5333,7 +5421,7 @@ declare const ListBuilderLeaderboardError: {
5333
5421
  declare function listBuilderLeaderboard(client: BaseClient, request?: ListBuilderLeaderboardRequest): Paginated<LeaderboardEntry[]>;
5334
5422
  type ListBuilderVolumeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5335
5423
  declare const ListBuilderVolumeError: {
5336
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5424
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5337
5425
  };
5338
5426
  /**
5339
5427
  * Lists daily builder volume entries.
@@ -5356,7 +5444,7 @@ declare const ListBuilderVolumeError: {
5356
5444
  declare function fetchBuilderVolume(client: BaseClient, request?: ListBuilderVolumeRequest): Promise<BuilderVolumeEntry[]>;
5357
5445
  type ListTraderLeaderboardError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5358
5446
  declare const ListTraderLeaderboardError: {
5359
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5447
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5360
5448
  };
5361
5449
  /**
5362
5450
  * Lists trader leaderboard rankings.
@@ -5400,6 +5488,63 @@ declare const ListTraderLeaderboardError: {
5400
5488
  */
5401
5489
  declare function listTraderLeaderboard(client: BaseClient, request?: ListTraderLeaderboardRequest): Paginated<TraderLeaderboardEntry[]>;
5402
5490
 
5491
+ declare const ListMarketClarificationsRequestSchema: z.ZodObject<{
5492
+ marketId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
5493
+ eventId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
5494
+ questionId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
5495
+ state: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<typeof MarketClarificationState>, z.ZodArray<z.ZodEnum<typeof MarketClarificationState>>]>>;
5496
+ showInFrontend: z.ZodOptional<z.ZodBoolean>;
5497
+ txHash: z.ZodOptional<z.ZodString>;
5498
+ order: z.ZodOptional<z.ZodString>;
5499
+ ascending: z.ZodOptional<z.ZodBoolean>;
5500
+ cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
5501
+ pageSize: z.ZodDefault<z.ZodNumber>;
5502
+ }, z.core.$strip>;
5503
+ type ListMarketClarificationsRequest = z.input<typeof ListMarketClarificationsRequestSchema>;
5504
+ type ListMarketClarificationsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5505
+ declare const ListMarketClarificationsError: {
5506
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5507
+ };
5508
+ /**
5509
+ * Lists market clarifications — official notes that resolve ambiguity in how a
5510
+ * market settles.
5511
+ *
5512
+ * @remarks
5513
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
5514
+ *
5515
+ * @throws {@link ListMarketClarificationsError}
5516
+ * Thrown on failure.
5517
+ *
5518
+ * @example
5519
+ * Fetch the first page of results:
5520
+ * ```ts
5521
+ * const result = listMarketClarifications(client, {
5522
+ * marketId: '512038',
5523
+ * pageSize: 25,
5524
+ * });
5525
+ *
5526
+ * const firstPage = await result.firstPage();
5527
+ *
5528
+ * // Optionally, fetch additional pages:
5529
+ * for await (const page of result.from(firstPage.nextCursor)) {
5530
+ * // page.items: MarketClarification[]
5531
+ * }
5532
+ * ```
5533
+ *
5534
+ * @example
5535
+ * Loop through all pages with `for await`:
5536
+ * ```ts
5537
+ * const result = listMarketClarifications(client, {
5538
+ * marketId: '512038',
5539
+ * });
5540
+ *
5541
+ * for await (const page of result) {
5542
+ * // page.items: MarketClarification[]
5543
+ * }
5544
+ * ```
5545
+ */
5546
+ declare function listMarketClarifications(client: BaseClient, request?: ListMarketClarificationsRequest): Paginated<MarketClarification[]>;
5547
+
5403
5548
  declare const ListMarketsRequestSchema: z.ZodObject<{
5404
5549
  ascending: z.ZodOptional<z.ZodBoolean>;
5405
5550
  closed: z.ZodOptional<z.ZodBoolean>;
@@ -5490,7 +5635,7 @@ type ListOpenInterestRequest = z.input<typeof ListOpenInterestRequestSchema>;
5490
5635
  type ListMarketPositionsRequest = z.input<typeof ListMarketPositionsRequestSchema>;
5491
5636
  type ListMarketsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5492
5637
  declare const ListMarketsError: {
5493
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5638
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5494
5639
  };
5495
5640
  /**
5496
5641
  * Lists markets.
@@ -5542,7 +5687,7 @@ declare const ListComboMarketsRequestSchema: z.ZodObject<{
5542
5687
  type ListComboMarketsRequest = z.input<typeof ListComboMarketsRequestSchema>;
5543
5688
  type ListComboMarketsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5544
5689
  declare const ListComboMarketsError: {
5545
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5690
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5546
5691
  };
5547
5692
  /**
5548
5693
  * Lists markets available for Combos.
@@ -5580,7 +5725,7 @@ declare const ListComboMarketsError: {
5580
5725
  declare function listComboMarkets(client: BaseClient, request?: ListComboMarketsRequest): Paginated<ComboMarket[]>;
5581
5726
  type FetchMarketError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5582
5727
  declare const FetchMarketError: {
5583
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5728
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5584
5729
  };
5585
5730
  /**
5586
5731
  * Fetches a market.
@@ -5615,7 +5760,7 @@ declare const FetchMarketError: {
5615
5760
  declare function fetchMarket(client: BaseClient, request: FetchMarketRequest): Promise<Market>;
5616
5761
  type FetchMarketTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5617
5762
  declare const FetchMarketTagsError: {
5618
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5763
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5619
5764
  };
5620
5765
  /**
5621
5766
  * Fetches a market's tags.
@@ -5638,7 +5783,7 @@ declare const FetchMarketTagsError: {
5638
5783
  declare function fetchMarketTags(client: BaseClient, request: FetchMarketTagsRequest): Promise<TagReference[]>;
5639
5784
  type ListMarketHoldersError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5640
5785
  declare const ListMarketHoldersError: {
5641
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5786
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5642
5787
  };
5643
5788
  /**
5644
5789
  * Lists the top holders for one or more markets.
@@ -5662,7 +5807,7 @@ declare const ListMarketHoldersError: {
5662
5807
  declare function listMarketHolders(client: BaseClient, request: ListMarketHoldersRequest): Promise<MetaHolder[]>;
5663
5808
  type ListOpenInterestError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5664
5809
  declare const ListOpenInterestError: {
5665
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5810
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5666
5811
  };
5667
5812
  /**
5668
5813
  * Lists open interest for one or more markets.
@@ -5685,7 +5830,7 @@ declare const ListOpenInterestError: {
5685
5830
  declare function listOpenInterest(client: BaseClient, request?: ListOpenInterestRequest): Promise<OpenInterest[]>;
5686
5831
  type ListMarketPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5687
5832
  declare const ListMarketPositionsError: {
5688
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5833
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5689
5834
  };
5690
5835
  /**
5691
5836
  * Lists positions for a market.
@@ -5727,193 +5872,106 @@ declare const ListMarketPositionsError: {
5727
5872
  */
5728
5873
  declare function listMarketPositions(client: BaseClient, request: ListMarketPositionsRequest): Paginated<MetaMarketPosition[]>;
5729
5874
 
5730
- type PerpsHistoryParams = {
5731
- startTimestamp: number;
5732
- endTimestamp: number;
5733
- instrumentId?: PerpsInstrumentId;
5734
- depositStatus?: z.output<typeof PerpsDepositStatusSchema>;
5735
- withdrawalStatus?: z.output<typeof PerpsWithdrawalStatusSchema>;
5736
- hash?: z.output<typeof TxHashSchema>;
5737
- };
5738
- type PerpsIntervalHistoryParams = PerpsHistoryParams & {
5739
- interval: z.output<typeof PerpsPnlIntervalSchema>;
5740
- };
5741
- declare const FetchPerpsAccountConfigRequestSchema: z.ZodDefault<z.ZodObject<{
5742
- instrumentId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>>;
5743
- }, z.core.$strip>>;
5744
- type FetchPerpsAccountConfigRequest = z.input<typeof FetchPerpsAccountConfigRequestSchema>;
5745
- declare const FetchPerpsOpenOrdersRequestSchema: z.ZodDefault<z.ZodObject<{
5746
- instrumentId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>>;
5747
- }, z.core.$strip>>;
5748
- type FetchPerpsOpenOrdersRequest = z.input<typeof FetchPerpsOpenOrdersRequestSchema>;
5749
- declare const FetchPerpsOrdersRequestSchema: z.ZodPipe<z.ZodDefault<z.ZodObject<{
5750
- orderId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsOrderId, number>>>;
5751
- clientOrderId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings_perps.PerpsClientOrderId, string>>>;
5752
- instrumentId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>>;
5753
- start: z.ZodOptional<z.ZodNumber>;
5754
- end: z.ZodOptional<z.ZodNumber>;
5755
- }, z.core.$strip>>, z.ZodTransform<{
5756
- endTimestamp: number | undefined;
5757
- startTimestamp: number | undefined;
5758
- orderId?: _polymarket_bindings_perps.PerpsOrderId | undefined;
5759
- clientOrderId?: _polymarket_bindings_perps.PerpsClientOrderId | undefined;
5760
- instrumentId?: PerpsInstrumentId | undefined;
5761
- }, {
5762
- orderId?: _polymarket_bindings_perps.PerpsOrderId | undefined;
5763
- clientOrderId?: _polymarket_bindings_perps.PerpsClientOrderId | undefined;
5764
- instrumentId?: PerpsInstrumentId | undefined;
5765
- start?: number | undefined;
5766
- end?: number | undefined;
5767
- }>>;
5768
- type FetchPerpsOrdersRequest = z.input<typeof FetchPerpsOrdersRequestSchema>;
5769
- declare const ListPerpsFillsRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
5770
- start: z.ZodOptional<z.ZodNumber>;
5771
- end: z.ZodOptional<z.ZodNumber>;
5772
- cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
5773
- }, z.core.$strip>, z.ZodTransform<{
5774
- cursor: PaginationCursor | undefined;
5775
- params: Omit<Record<string, unknown>, "start" | "end"> & PerpsHistoryParams;
5776
- }, {
5777
- start?: number | undefined;
5778
- end?: number | undefined;
5779
- cursor?: PaginationCursor | undefined;
5780
- }>>, z.ZodPipe<z.ZodObject<{
5781
- cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
5782
- }, z.core.$strip>, z.ZodTransform<{
5783
- cursor: PaginationCursor;
5784
- params: undefined;
5785
- }, {
5786
- cursor: PaginationCursor;
5787
- }>>]>;
5788
- type ListPerpsFillsRequest = z.input<typeof ListPerpsFillsRequestSchema>;
5789
- declare const ListPerpsFundingPaymentsRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
5790
- start: z.ZodOptional<z.ZodNumber>;
5791
- end: z.ZodOptional<z.ZodNumber>;
5792
- cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
5793
- instrumentId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>>;
5794
- }, z.core.$strip>, z.ZodTransform<{
5795
- cursor: PaginationCursor | undefined;
5796
- params: Omit<{
5797
- start?: number | undefined;
5798
- end?: number | undefined;
5799
- instrumentId?: PerpsInstrumentId | undefined;
5800
- }, "start" | "end"> & PerpsHistoryParams;
5801
- }, {
5802
- start?: number | undefined;
5803
- end?: number | undefined;
5804
- cursor?: PaginationCursor | undefined;
5805
- instrumentId?: PerpsInstrumentId | undefined;
5806
- }>>, z.ZodPipe<z.ZodObject<{
5807
- cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
5808
- }, z.core.$strip>, z.ZodTransform<{
5809
- cursor: PaginationCursor;
5810
- params: undefined;
5811
- }, {
5812
- cursor: PaginationCursor;
5813
- }>>]>;
5814
- type ListPerpsFundingPaymentsRequest = z.input<typeof ListPerpsFundingPaymentsRequestSchema>;
5815
- declare const ListPerpsDepositsRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
5816
- start: z.ZodOptional<z.ZodNumber>;
5817
- end: z.ZodOptional<z.ZodNumber>;
5818
- cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
5819
- depositStatus: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_perps.PerpsDepositStatus>>;
5820
- hash: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>;
5821
- }, z.core.$strip>, z.ZodTransform<{
5822
- cursor: PaginationCursor | undefined;
5823
- params: Omit<{
5824
- start?: number | undefined;
5825
- end?: number | undefined;
5826
- depositStatus?: _polymarket_bindings_perps.PerpsDepositStatus | undefined;
5827
- hash?: _polymarket_types.TxHash | undefined;
5828
- }, "start" | "end"> & PerpsHistoryParams;
5829
- }, {
5830
- start?: number | undefined;
5831
- end?: number | undefined;
5832
- cursor?: PaginationCursor | undefined;
5833
- depositStatus?: _polymarket_bindings_perps.PerpsDepositStatus | undefined;
5834
- hash?: _polymarket_types.TxHash | undefined;
5835
- }>>, z.ZodPipe<z.ZodObject<{
5836
- cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
5837
- }, z.core.$strip>, z.ZodTransform<{
5875
+ type FetchPerpsAccountConfigRequest = {
5876
+ /** Optional Perps instrument identifier filter. */
5877
+ instrumentId?: number;
5878
+ };
5879
+ type FetchPerpsOpenOrdersRequest = {
5880
+ /** Optional Perps instrument identifier filter. */
5881
+ instrumentId?: number;
5882
+ };
5883
+ type FetchPerpsOrdersRequest = {
5884
+ /** Optional order identifier filter. */
5885
+ orderId?: number;
5886
+ /** Optional caller-supplied idempotency identifier filter. */
5887
+ clientOrderId?: string;
5888
+ /** Optional Perps instrument identifier filter. */
5889
+ instrumentId?: number;
5890
+ /** Inclusive start timestamp in milliseconds. */
5891
+ start?: number;
5892
+ /** Inclusive end timestamp in milliseconds. */
5893
+ end?: number;
5894
+ };
5895
+ type ListPerpsFillsRequest = {
5896
+ /** Inclusive start timestamp in milliseconds. */
5897
+ start?: number;
5898
+ /** Inclusive end timestamp in milliseconds. */
5899
+ end?: number;
5900
+ /** Opaque cursor returned by a previous page. */
5901
+ cursor?: PaginationCursor;
5902
+ } | {
5903
+ /** Opaque cursor returned by a previous page. */
5838
5904
  cursor: PaginationCursor;
5839
- params: undefined;
5840
- }, {
5905
+ };
5906
+ type ListPerpsFundingPaymentsRequest = {
5907
+ /** Optional Perps instrument identifier filter. */
5908
+ instrumentId?: number;
5909
+ /** Inclusive start timestamp in milliseconds. */
5910
+ start?: number;
5911
+ /** Inclusive end timestamp in milliseconds. */
5912
+ end?: number;
5913
+ /** Opaque cursor returned by a previous page. */
5914
+ cursor?: PaginationCursor;
5915
+ } | {
5916
+ /** Opaque cursor returned by a previous page. */
5841
5917
  cursor: PaginationCursor;
5842
- }>>]>;
5843
- type ListPerpsDepositsRequest = z.input<typeof ListPerpsDepositsRequestSchema>;
5844
- declare const ListPerpsWithdrawalsRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
5845
- start: z.ZodOptional<z.ZodNumber>;
5846
- end: z.ZodOptional<z.ZodNumber>;
5847
- cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
5848
- withdrawalStatus: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_perps.PerpsWithdrawalStatus>>;
5849
- hash: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>;
5850
- }, z.core.$strip>, z.ZodTransform<{
5851
- cursor: PaginationCursor | undefined;
5852
- params: Omit<{
5853
- start?: number | undefined;
5854
- end?: number | undefined;
5855
- withdrawalStatus?: _polymarket_bindings_perps.PerpsWithdrawalStatus | undefined;
5856
- hash?: _polymarket_types.TxHash | undefined;
5857
- }, "start" | "end"> & PerpsHistoryParams;
5858
- }, {
5859
- start?: number | undefined;
5860
- end?: number | undefined;
5861
- cursor?: PaginationCursor | undefined;
5862
- withdrawalStatus?: _polymarket_bindings_perps.PerpsWithdrawalStatus | undefined;
5863
- hash?: _polymarket_types.TxHash | undefined;
5864
- }>>, z.ZodPipe<z.ZodObject<{
5865
- cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
5866
- }, z.core.$strip>, z.ZodTransform<{
5918
+ };
5919
+ type ListPerpsDepositsRequest = {
5920
+ /** Optional deposit status filter. */
5921
+ depositStatus?: PerpsDepositStatus;
5922
+ /** Optional transaction hash filter. */
5923
+ hash?: string;
5924
+ /** Inclusive start timestamp in milliseconds. */
5925
+ start?: number;
5926
+ /** Inclusive end timestamp in milliseconds. */
5927
+ end?: number;
5928
+ /** Opaque cursor returned by a previous page. */
5929
+ cursor?: PaginationCursor;
5930
+ } | {
5931
+ /** Opaque cursor returned by a previous page. */
5867
5932
  cursor: PaginationCursor;
5868
- params: undefined;
5869
- }, {
5933
+ };
5934
+ type ListPerpsWithdrawalsRequest = {
5935
+ /** Optional withdrawal status filter. */
5936
+ withdrawalStatus?: PerpsWithdrawalStatus;
5937
+ /** Optional transaction hash filter. */
5938
+ hash?: string;
5939
+ /** Inclusive start timestamp in milliseconds. */
5940
+ start?: number;
5941
+ /** Inclusive end timestamp in milliseconds. */
5942
+ end?: number;
5943
+ /** Opaque cursor returned by a previous page. */
5944
+ cursor?: PaginationCursor;
5945
+ } | {
5946
+ /** Opaque cursor returned by a previous page. */
5870
5947
  cursor: PaginationCursor;
5871
- }>>]>;
5872
- type ListPerpsWithdrawalsRequest = z.input<typeof ListPerpsWithdrawalsRequestSchema>;
5873
- declare const ListPerpsEquityHistoryRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
5874
- interval: z.ZodEnum<typeof _polymarket_bindings_perps.PerpsPnlInterval>;
5875
- start: z.ZodNumber;
5876
- end: z.ZodOptional<z.ZodNumber>;
5877
- cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
5878
- }, z.core.$strip>, z.ZodTransform<{
5879
- cursor: PaginationCursor | undefined;
5880
- params: PerpsIntervalHistoryParams;
5881
- }, {
5882
- interval: _polymarket_bindings_perps.PerpsPnlInterval;
5948
+ };
5949
+ type ListPerpsEquityHistoryRequest = {
5950
+ /** History interval. */
5951
+ interval: PerpsPnlInterval;
5952
+ /** Inclusive start timestamp in milliseconds. */
5883
5953
  start: number;
5884
- end?: number | undefined;
5885
- cursor?: PaginationCursor | undefined;
5886
- }>>, z.ZodPipe<z.ZodObject<{
5887
- cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
5888
- }, z.core.$strip>, z.ZodTransform<{
5889
- cursor: PaginationCursor;
5890
- params: undefined;
5891
- }, {
5954
+ /** Inclusive end timestamp in milliseconds. */
5955
+ end?: number;
5956
+ /** Opaque cursor returned by a previous page. */
5957
+ cursor?: PaginationCursor;
5958
+ } | {
5959
+ /** Opaque cursor returned by a previous page. */
5892
5960
  cursor: PaginationCursor;
5893
- }>>]>;
5894
- type ListPerpsEquityHistoryRequest = z.input<typeof ListPerpsEquityHistoryRequestSchema>;
5895
- declare const ListPerpsPnlHistoryRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
5896
- interval: z.ZodEnum<typeof _polymarket_bindings_perps.PerpsPnlInterval>;
5897
- start: z.ZodNumber;
5898
- end: z.ZodOptional<z.ZodNumber>;
5899
- cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
5900
- }, z.core.$strip>, z.ZodTransform<{
5901
- cursor: PaginationCursor | undefined;
5902
- params: PerpsIntervalHistoryParams;
5903
- }, {
5904
- interval: _polymarket_bindings_perps.PerpsPnlInterval;
5961
+ };
5962
+ type ListPerpsPnlHistoryRequest = {
5963
+ /** History interval. */
5964
+ interval: PerpsPnlInterval;
5965
+ /** Inclusive start timestamp in milliseconds. */
5905
5966
  start: number;
5906
- end?: number | undefined;
5907
- cursor?: PaginationCursor | undefined;
5908
- }>>, z.ZodPipe<z.ZodObject<{
5909
- cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
5910
- }, z.core.$strip>, z.ZodTransform<{
5911
- cursor: PaginationCursor;
5912
- params: undefined;
5913
- }, {
5967
+ /** Inclusive end timestamp in milliseconds. */
5968
+ end?: number;
5969
+ /** Opaque cursor returned by a previous page. */
5970
+ cursor?: PaginationCursor;
5971
+ } | {
5972
+ /** Opaque cursor returned by a previous page. */
5914
5973
  cursor: PaginationCursor;
5915
- }>>]>;
5916
- type ListPerpsPnlHistoryRequest = z.input<typeof ListPerpsPnlHistoryRequestSchema>;
5974
+ };
5917
5975
 
5918
5976
  /**
5919
5977
  * Good-til-cancelled Perps order.
@@ -5931,6 +5989,8 @@ type PerpsPlaceGtcOrderRequest = {
5931
5989
  timeInForce: PerpsTimeInForce.GTC;
5932
5990
  /** Whether the order must rest instead of taking liquidity. */
5933
5991
  postOnly?: boolean;
5992
+ /** Whether the order may only reduce or close an existing position. */
5993
+ reduceOnly?: boolean;
5934
5994
  /** Optional caller-supplied idempotency identifier. */
5935
5995
  clientOrderId?: string;
5936
5996
  };
@@ -5948,7 +6008,9 @@ type PerpsPlaceIocOrderRequest = {
5948
6008
  quantity: PerpsDecimalInput;
5949
6009
  /** Immediate-or-cancel execution. */
5950
6010
  timeInForce: PerpsTimeInForce.IOC;
5951
- postOnly?: undefined;
6011
+ postOnly?: never;
6012
+ /** Whether the order may only reduce or close an existing position. */
6013
+ reduceOnly?: boolean;
5952
6014
  /** Optional caller-supplied idempotency identifier. */
5953
6015
  clientOrderId?: string;
5954
6016
  };
@@ -5966,50 +6028,289 @@ type PerpsPlaceFokOrderRequest = {
5966
6028
  quantity: PerpsDecimalInput;
5967
6029
  /** Fill-or-kill execution. */
5968
6030
  timeInForce: PerpsTimeInForce.FOK;
5969
- postOnly?: undefined;
6031
+ postOnly?: never;
6032
+ /** Whether the order may only reduce or close an existing position. */
6033
+ reduceOnly?: boolean;
5970
6034
  /** Optional caller-supplied idempotency identifier. */
5971
6035
  clientOrderId?: string;
5972
6036
  };
5973
6037
  /**
5974
- * Request parameters for placing one Perps order.
6038
+ * Request parameters for one Perps order.
5975
6039
  */
5976
- type PlacePerpsOrderRequest = PerpsPlaceGtcOrderRequest | PerpsPlaceIocOrderRequest | PerpsPlaceFokOrderRequest;
6040
+ type PerpsOrderRequest = PerpsPlaceGtcOrderRequest | PerpsPlaceIocOrderRequest | PerpsPlaceFokOrderRequest;
6041
+ type PerpsTpSlTrigger = {
6042
+ triggerPrice: PerpsDecimalInput;
6043
+ limitPrice?: PerpsDecimalInput;
6044
+ };
6045
+ type PerpsPositionTpSlTrigger = {
6046
+ triggerPrice: PerpsDecimalInput;
6047
+ };
5977
6048
  /** Request parameters for posting one or more Perps orders. */
5978
6049
  type PostPerpsOrdersRequest = {
5979
6050
  /** Orders to post as one command. */
5980
- orders: PlacePerpsOrderRequest[];
6051
+ orders: PerpsOrderRequest[];
5981
6052
  /** Optional command expiration timestamp in milliseconds. */
5982
6053
  expiresAt?: number;
5983
6054
  };
5984
- declare const CancelPerpsOrderRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
5985
- orderId: z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsOrderId, number>>;
5986
- clientOrderId: z.ZodOptional<z.ZodUndefined>;
5987
- expiresAt: z.ZodOptional<z.ZodNumber>;
5988
- }, z.core.$strip>, z.ZodObject<{
5989
- clientOrderId: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings_perps.PerpsClientOrderId, string>>;
5990
- orderId: z.ZodOptional<z.ZodUndefined>;
5991
- expiresAt: z.ZodOptional<z.ZodNumber>;
5992
- }, z.core.$strip>]>;
5993
- type CancelPerpsOrderRequest = z.input<typeof CancelPerpsOrderRequestSchema>;
5994
- declare const CancelPerpsOrdersRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
5995
- orderIds: z.ZodArray<z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsOrderId, number>>>;
5996
- clientOrderIds: z.ZodOptional<z.ZodUndefined>;
5997
- expiresAt: z.ZodOptional<z.ZodNumber>;
5998
- }, z.core.$strip>, z.ZodObject<{
5999
- clientOrderIds: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings_perps.PerpsClientOrderId, string>>>;
6000
- orderIds: z.ZodOptional<z.ZodUndefined>;
6001
- expiresAt: z.ZodOptional<z.ZodNumber>;
6002
- }, z.core.$strip>]>;
6003
- type CancelPerpsOrdersRequest = z.input<typeof CancelPerpsOrdersRequestSchema>;
6004
- declare const UpdatePerpsLeverageRequestSchema: z.ZodObject<{
6005
- instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
6006
- leverage: z.ZodNumber;
6007
- crossMargin: z.ZodBoolean;
6008
- }, z.core.$strip>;
6009
- type UpdatePerpsLeverageRequest = z.input<typeof UpdatePerpsLeverageRequestSchema>;
6055
+ type PlacePerpsOrderRequest = {
6056
+ /** Perps instrument identifier to trade. */
6057
+ instrumentId: number;
6058
+ /** Trade direction. */
6059
+ side: OrderSide;
6060
+ /** Limit price. */
6061
+ price: PerpsDecimalInput;
6062
+ /** Order quantity. */
6063
+ quantity: PerpsDecimalInput;
6064
+ /** Good-til-cancelled execution. */
6065
+ timeInForce: PerpsTimeInForce.GTC;
6066
+ /** Whether the order must rest instead of taking liquidity. */
6067
+ postOnly?: boolean;
6068
+ /** Whether the order may only reduce or close an existing position. */
6069
+ reduceOnly?: boolean;
6070
+ /** Optional caller-supplied idempotency identifier. */
6071
+ clientOrderId?: string;
6072
+ /** Optional command expiration timestamp in milliseconds. */
6073
+ expiresAt?: number;
6074
+ takeProfit?: never;
6075
+ stopLoss?: never;
6076
+ } | {
6077
+ /** Perps instrument identifier to trade. */
6078
+ instrumentId: number;
6079
+ /** Trade direction. */
6080
+ side: OrderSide;
6081
+ /** Optional limit price. Omit for market-style execution. */
6082
+ price?: PerpsDecimalInput;
6083
+ /** Order quantity. */
6084
+ quantity: PerpsDecimalInput;
6085
+ /** Immediate-or-cancel execution. */
6086
+ timeInForce: PerpsTimeInForce.IOC;
6087
+ postOnly?: never;
6088
+ /** Whether the order may only reduce or close an existing position. */
6089
+ reduceOnly?: boolean;
6090
+ /** Optional caller-supplied idempotency identifier. */
6091
+ clientOrderId?: string;
6092
+ /** Optional command expiration timestamp in milliseconds. */
6093
+ expiresAt?: number;
6094
+ takeProfit?: never;
6095
+ stopLoss?: never;
6096
+ } | {
6097
+ /** Perps instrument identifier to trade. */
6098
+ instrumentId: number;
6099
+ /** Trade direction. */
6100
+ side: OrderSide;
6101
+ /** Optional limit price. Omit for market-style execution. */
6102
+ price?: PerpsDecimalInput;
6103
+ /** Order quantity. */
6104
+ quantity: PerpsDecimalInput;
6105
+ /** Fill-or-kill execution. */
6106
+ timeInForce: PerpsTimeInForce.FOK;
6107
+ postOnly?: never;
6108
+ /** Whether the order may only reduce or close an existing position. */
6109
+ reduceOnly?: boolean;
6110
+ /** Optional caller-supplied idempotency identifier. */
6111
+ clientOrderId?: string;
6112
+ /** Optional command expiration timestamp in milliseconds. */
6113
+ expiresAt?: number;
6114
+ takeProfit?: never;
6115
+ stopLoss?: never;
6116
+ };
6117
+ type PlacePerpsOrderWithTpSlRequest = {
6118
+ /** Perps instrument identifier to trade. */
6119
+ instrumentId: number;
6120
+ /** Trade direction. */
6121
+ side: OrderSide;
6122
+ /** Limit price. */
6123
+ price: PerpsDecimalInput;
6124
+ /** Order quantity. */
6125
+ quantity: PerpsDecimalInput;
6126
+ /** Good-til-cancelled execution. */
6127
+ timeInForce: PerpsTimeInForce.GTC;
6128
+ /** Whether the order must rest instead of taking liquidity. */
6129
+ postOnly?: boolean;
6130
+ /** Whether the order may only reduce or close an existing position. */
6131
+ reduceOnly?: boolean;
6132
+ /** Optional caller-supplied idempotency identifier. */
6133
+ clientOrderId?: string;
6134
+ /** Optional command expiration timestamp in milliseconds. */
6135
+ expiresAt?: number;
6136
+ /** Take-profit trigger to place with the entry order. */
6137
+ takeProfit: PerpsTpSlTrigger;
6138
+ /** Optional stop-loss trigger to place with the entry order. */
6139
+ stopLoss?: PerpsTpSlTrigger;
6140
+ } | {
6141
+ /** Perps instrument identifier to trade. */
6142
+ instrumentId: number;
6143
+ /** Trade direction. */
6144
+ side: OrderSide;
6145
+ /** Limit price. */
6146
+ price: PerpsDecimalInput;
6147
+ /** Order quantity. */
6148
+ quantity: PerpsDecimalInput;
6149
+ /** Good-til-cancelled execution. */
6150
+ timeInForce: PerpsTimeInForce.GTC;
6151
+ /** Whether the order must rest instead of taking liquidity. */
6152
+ postOnly?: boolean;
6153
+ /** Whether the order may only reduce or close an existing position. */
6154
+ reduceOnly?: boolean;
6155
+ /** Optional caller-supplied idempotency identifier. */
6156
+ clientOrderId?: string;
6157
+ /** Optional command expiration timestamp in milliseconds. */
6158
+ expiresAt?: number;
6159
+ /** Optional take-profit trigger to place with the entry order. */
6160
+ takeProfit?: PerpsTpSlTrigger;
6161
+ /** Stop-loss trigger to place with the entry order. */
6162
+ stopLoss: PerpsTpSlTrigger;
6163
+ } | {
6164
+ /** Perps instrument identifier to trade. */
6165
+ instrumentId: number;
6166
+ /** Trade direction. */
6167
+ side: OrderSide;
6168
+ /** Optional limit price. Omit for market-style execution. */
6169
+ price?: PerpsDecimalInput;
6170
+ /** Order quantity. */
6171
+ quantity: PerpsDecimalInput;
6172
+ /** Immediate-or-cancel execution. */
6173
+ timeInForce: PerpsTimeInForce.IOC;
6174
+ postOnly?: never;
6175
+ /** Whether the order may only reduce or close an existing position. */
6176
+ reduceOnly?: boolean;
6177
+ /** Optional caller-supplied idempotency identifier. */
6178
+ clientOrderId?: string;
6179
+ /** Optional command expiration timestamp in milliseconds. */
6180
+ expiresAt?: number;
6181
+ /** Take-profit trigger to place with the entry order. */
6182
+ takeProfit: PerpsTpSlTrigger;
6183
+ /** Optional stop-loss trigger to place with the entry order. */
6184
+ stopLoss?: PerpsTpSlTrigger;
6185
+ } | {
6186
+ /** Perps instrument identifier to trade. */
6187
+ instrumentId: number;
6188
+ /** Trade direction. */
6189
+ side: OrderSide;
6190
+ /** Optional limit price. Omit for market-style execution. */
6191
+ price?: PerpsDecimalInput;
6192
+ /** Order quantity. */
6193
+ quantity: PerpsDecimalInput;
6194
+ /** Immediate-or-cancel execution. */
6195
+ timeInForce: PerpsTimeInForce.IOC;
6196
+ postOnly?: never;
6197
+ /** Whether the order may only reduce or close an existing position. */
6198
+ reduceOnly?: boolean;
6199
+ /** Optional caller-supplied idempotency identifier. */
6200
+ clientOrderId?: string;
6201
+ /** Optional command expiration timestamp in milliseconds. */
6202
+ expiresAt?: number;
6203
+ /** Optional take-profit trigger to place with the entry order. */
6204
+ takeProfit?: PerpsTpSlTrigger;
6205
+ /** Stop-loss trigger to place with the entry order. */
6206
+ stopLoss: PerpsTpSlTrigger;
6207
+ } | {
6208
+ /** Perps instrument identifier to trade. */
6209
+ instrumentId: number;
6210
+ /** Trade direction. */
6211
+ side: OrderSide;
6212
+ /** Optional limit price. Omit for market-style execution. */
6213
+ price?: PerpsDecimalInput;
6214
+ /** Order quantity. */
6215
+ quantity: PerpsDecimalInput;
6216
+ /** Fill-or-kill execution. */
6217
+ timeInForce: PerpsTimeInForce.FOK;
6218
+ postOnly?: never;
6219
+ /** Whether the order may only reduce or close an existing position. */
6220
+ reduceOnly?: boolean;
6221
+ /** Optional caller-supplied idempotency identifier. */
6222
+ clientOrderId?: string;
6223
+ /** Optional command expiration timestamp in milliseconds. */
6224
+ expiresAt?: number;
6225
+ /** Take-profit trigger to place with the entry order. */
6226
+ takeProfit: PerpsTpSlTrigger;
6227
+ /** Optional stop-loss trigger to place with the entry order. */
6228
+ stopLoss?: PerpsTpSlTrigger;
6229
+ } | {
6230
+ /** Perps instrument identifier to trade. */
6231
+ instrumentId: number;
6232
+ /** Trade direction. */
6233
+ side: OrderSide;
6234
+ /** Optional limit price. Omit for market-style execution. */
6235
+ price?: PerpsDecimalInput;
6236
+ /** Order quantity. */
6237
+ quantity: PerpsDecimalInput;
6238
+ /** Fill-or-kill execution. */
6239
+ timeInForce: PerpsTimeInForce.FOK;
6240
+ postOnly?: never;
6241
+ /** Whether the order may only reduce or close an existing position. */
6242
+ reduceOnly?: boolean;
6243
+ /** Optional caller-supplied idempotency identifier. */
6244
+ clientOrderId?: string;
6245
+ /** Optional command expiration timestamp in milliseconds. */
6246
+ expiresAt?: number;
6247
+ /** Optional take-profit trigger to place with the entry order. */
6248
+ takeProfit?: PerpsTpSlTrigger;
6249
+ /** Stop-loss trigger to place with the entry order. */
6250
+ stopLoss: PerpsTpSlTrigger;
6251
+ };
6252
+ type PlacePerpsPositionTpSlRequest = {
6253
+ /** Perps instrument identifier whose current position should receive TP/SL protection. */
6254
+ instrumentId: number;
6255
+ /** Take-profit trigger to place for the current position. */
6256
+ takeProfit: PerpsPositionTpSlTrigger;
6257
+ /** Optional stop-loss trigger to place alongside the take-profit. */
6258
+ stopLoss?: PerpsPositionTpSlTrigger;
6259
+ /** Optional command expiration timestamp in milliseconds. */
6260
+ expiresAt?: number;
6261
+ } | {
6262
+ /** Perps instrument identifier whose current position should receive TP/SL protection. */
6263
+ instrumentId: number;
6264
+ /** Optional take-profit trigger to place alongside the stop-loss. */
6265
+ takeProfit?: PerpsPositionTpSlTrigger;
6266
+ /** Stop-loss trigger to place for the current position. */
6267
+ stopLoss: PerpsPositionTpSlTrigger;
6268
+ /** Optional command expiration timestamp in milliseconds. */
6269
+ expiresAt?: number;
6270
+ };
6271
+ type CancelPerpsOrderRequest = {
6272
+ /** Order identifier to cancel. */
6273
+ orderId: number;
6274
+ clientOrderId?: never;
6275
+ /** Optional command expiration timestamp in milliseconds. */
6276
+ expiresAt?: number;
6277
+ } | {
6278
+ /** Caller-supplied idempotency identifier to cancel. */
6279
+ clientOrderId: string;
6280
+ orderId?: never;
6281
+ /** Optional command expiration timestamp in milliseconds. */
6282
+ expiresAt?: number;
6283
+ };
6284
+ type CancelPerpsOrdersRequest = {
6285
+ /** Order identifiers to cancel. */
6286
+ orderIds: number[];
6287
+ clientOrderIds?: never;
6288
+ /** Optional command expiration timestamp in milliseconds. */
6289
+ expiresAt?: number;
6290
+ } | {
6291
+ /** Caller-supplied idempotency identifiers to cancel. */
6292
+ clientOrderIds: string[];
6293
+ orderIds?: never;
6294
+ /** Optional command expiration timestamp in milliseconds. */
6295
+ expiresAt?: number;
6296
+ };
6297
+ type CancelAllPerpsOrdersRequest = {
6298
+ /** Optional Perps instrument identifier to scope cancellation. */
6299
+ instrumentId?: number;
6300
+ /** Optional command expiration timestamp in milliseconds. */
6301
+ expiresAt?: number;
6302
+ };
6303
+ type UpdatePerpsLeverageRequest = {
6304
+ /** Perps instrument identifier whose leverage should be updated. */
6305
+ instrumentId: number;
6306
+ /** Target leverage multiplier. */
6307
+ leverage: number;
6308
+ /** Whether the instrument should use cross margin. */
6309
+ crossMargin: boolean;
6310
+ };
6010
6311
  type UpdatePerpsLeverageError = RequestRejectedError | SigningError | TransportError | UserInputError;
6011
6312
  declare const UpdatePerpsLeverageError: {
6012
- isError(error: unknown): error is SigningError | TransportError | UserInputError | RequestRejectedError;
6313
+ isError(error: unknown): error is UserInputError | TransportError | RequestRejectedError | SigningError;
6013
6314
  };
6014
6315
 
6015
6316
  type PerpsSessionOptions = {
@@ -6020,43 +6321,212 @@ type PerpsSessionOptions = {
6020
6321
  restUrl: string;
6021
6322
  wsUrl: string;
6022
6323
  };
6324
+ type PerpsSessionLifecycleError = RequestRejectedError | TransportError;
6325
+ type PerpsSessionAccountError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6326
+ type PerpsSessionTradingError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
6327
+ type PerpsPlacedTpSlOrder = {
6328
+ orderId: PerpsOrderId;
6329
+ };
6330
+ type PerpsPlacedTpSlOrders = {
6331
+ takeProfit?: PerpsPlacedTpSlOrder;
6332
+ stopLoss?: PerpsPlacedTpSlOrder;
6333
+ };
6334
+ type PlacePerpsOrderResult = {
6335
+ order: PerpsOrder;
6336
+ };
6337
+ type PlacePerpsOrderWithTpSlResult = PlacePerpsOrderResult & {
6338
+ tpSl: PerpsPlacedTpSlOrders;
6339
+ };
6340
+ type PlacePerpsPositionTpSlResult = {
6341
+ tpSl: PerpsPlacedTpSlOrders;
6342
+ };
6023
6343
  declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
6024
6344
  #private;
6025
6345
  readonly credentials: PerpsCredentials;
6026
6346
  constructor(options: PerpsSessionOptions);
6027
6347
  get closed(): boolean;
6348
+ /**
6349
+ * Connects and authenticates the session WebSocket.
6350
+ *
6351
+ * @throws {@link PerpsSessionLifecycleError}
6352
+ * Thrown on failure.
6353
+ */
6028
6354
  connect(): Promise<void>;
6355
+ /**
6356
+ * Closes the session and releases pending requests.
6357
+ *
6358
+ * @throws {@link PerpsSessionLifecycleError}
6359
+ * Thrown on failure.
6360
+ */
6029
6361
  close(): Promise<void>;
6362
+ /**
6363
+ * Iterates authenticated Perps account events emitted by this session.
6364
+ *
6365
+ * @example
6366
+ * ```ts
6367
+ * for await (const event of session) {
6368
+ * if (event.type === 'order') {
6369
+ * console.log(event.payload.id);
6370
+ * }
6371
+ * }
6372
+ * ```
6373
+ */
6030
6374
  [Symbol.asyncIterator](): AsyncIterator<PerpsSessionEvent>;
6375
+ /**
6376
+ * Fetches current Perps balances for the authenticated account.
6377
+ *
6378
+ * @throws {@link PerpsSessionAccountError}
6379
+ * Thrown on failure.
6380
+ */
6031
6381
  fetchBalances(): Promise<PerpsBalance[]>;
6382
+ /**
6383
+ * Fetches the current Perps portfolio for the authenticated account.
6384
+ *
6385
+ * @throws {@link PerpsSessionAccountError}
6386
+ * Thrown on failure.
6387
+ */
6032
6388
  fetchPortfolio(): Promise<PerpsPortfolio>;
6389
+ /**
6390
+ * Fetches account-level Perps statistics for the authenticated account.
6391
+ *
6392
+ * @throws {@link PerpsSessionAccountError}
6393
+ * Thrown on failure.
6394
+ */
6395
+ fetchStats(): Promise<PerpsAccountStats>;
6396
+ /**
6397
+ * Fetches Perps account configuration, optionally filtered by instrument.
6398
+ *
6399
+ * @throws {@link PerpsSessionAccountError}
6400
+ * Thrown on failure.
6401
+ */
6033
6402
  fetchAccountConfig(request?: FetchPerpsAccountConfigRequest): Promise<PerpsAccountConfig[]>;
6403
+ /**
6404
+ * Fetches currently open Perps orders, optionally filtered by instrument.
6405
+ *
6406
+ * @throws {@link PerpsSessionAccountError}
6407
+ * Thrown on failure.
6408
+ */
6034
6409
  fetchOpenOrders(request?: FetchPerpsOpenOrdersRequest): Promise<PerpsOrder[]>;
6410
+ /**
6411
+ * Fetches Perps orders for the authenticated account.
6412
+ *
6413
+ * @throws {@link PerpsSessionAccountError}
6414
+ * Thrown on failure.
6415
+ */
6035
6416
  fetchOrders(request?: FetchPerpsOrdersRequest): Promise<PerpsOrder[]>;
6417
+ /**
6418
+ * Lists Perps fills with SDK-owned pagination.
6419
+ *
6420
+ * @throws {@link PerpsSessionAccountError}
6421
+ * Thrown on failure.
6422
+ */
6036
6423
  listFills(request?: ListPerpsFillsRequest): Paginated<PerpsAccountFill[]>;
6424
+ /**
6425
+ * Lists Perps funding payments with SDK-owned pagination.
6426
+ *
6427
+ * @throws {@link PerpsSessionAccountError}
6428
+ * Thrown on failure.
6429
+ */
6037
6430
  listFundingPayments(request?: ListPerpsFundingPaymentsRequest): Paginated<PerpsAccountFundingPayment[]>;
6431
+ /**
6432
+ * Lists Perps deposits with SDK-owned pagination.
6433
+ *
6434
+ * @throws {@link PerpsSessionAccountError}
6435
+ * Thrown on failure.
6436
+ */
6038
6437
  listDeposits(request?: ListPerpsDepositsRequest): Paginated<PerpsDeposit[]>;
6438
+ /**
6439
+ * Lists Perps withdrawals with SDK-owned pagination.
6440
+ *
6441
+ * @throws {@link PerpsSessionAccountError}
6442
+ * Thrown on failure.
6443
+ */
6039
6444
  listWithdrawals(request?: ListPerpsWithdrawalsRequest): Paginated<PerpsWithdrawal[]>;
6445
+ /**
6446
+ * Lists Perps equity history with SDK-owned pagination.
6447
+ *
6448
+ * @throws {@link PerpsSessionAccountError}
6449
+ * Thrown on failure.
6450
+ */
6040
6451
  listEquityHistory(request: ListPerpsEquityHistoryRequest): Paginated<PerpsEquityPoint[]>;
6452
+ /**
6453
+ * Lists Perps PnL history with SDK-owned pagination.
6454
+ *
6455
+ * @throws {@link PerpsSessionAccountError}
6456
+ * Thrown on failure.
6457
+ */
6041
6458
  listPnlHistory(request: ListPerpsPnlHistoryRequest): Paginated<PerpsPnlPoint[]>;
6042
6459
  /**
6043
6460
  * Places one Perps order and resolves with the first matching orders update.
6044
6461
  *
6045
- * @throws Thrown on failure.
6462
+ * @example
6463
+ * ```ts
6464
+ * const { order } = await session.placeOrder({
6465
+ * instrumentId: 1,
6466
+ * price: '100',
6467
+ * quantity: '1',
6468
+ * side: OrderSide.BUY,
6469
+ * timeInForce: PerpsTimeInForce.GTC,
6470
+ * });
6471
+ * ```
6472
+ *
6473
+ * @example
6474
+ * ```ts
6475
+ * const { order, tpSl } = await session.placeOrder({
6476
+ * instrumentId: 1,
6477
+ * price: '100',
6478
+ * quantity: '1',
6479
+ * side: OrderSide.BUY,
6480
+ * stopLoss: { triggerPrice: '90' },
6481
+ * timeInForce: PerpsTimeInForce.GTC,
6482
+ * });
6483
+ * ```
6484
+ *
6485
+ * @throws {@link PerpsSessionTradingError}
6486
+ * Thrown on failure.
6046
6487
  */
6047
- placeOrder(request: PlacePerpsOrderRequest): Promise<PerpsOrder>;
6488
+ placeOrder(request: PlacePerpsOrderWithTpSlRequest): Promise<PlacePerpsOrderWithTpSlResult>;
6489
+ placeOrder(request: PlacePerpsOrderRequest): Promise<PlacePerpsOrderResult>;
6048
6490
  /**
6049
6491
  * Posts one or more Perps orders and returns queue-entry acknowledgements.
6050
6492
  *
6051
6493
  * @remarks
6052
6494
  * This is a low-level method. Most SDK consumers should prefer `placeOrder`.
6495
+ *
6496
+ * @throws {@link PerpsSessionTradingError}
6497
+ * Thrown on failure.
6053
6498
  */
6054
6499
  postOrders(request: PostPerpsOrdersRequest): Promise<PerpsPostOrderAck[]>;
6500
+ /**
6501
+ * Places take-profit and/or stop-loss protection for the current position.
6502
+ *
6503
+ * @remarks
6504
+ * The exit side is inferred from the current position for the requested
6505
+ * instrument.
6506
+ *
6507
+ * @example
6508
+ * ```ts
6509
+ * const { tpSl } = await session.placePositionTpSl({
6510
+ * instrumentId: 1,
6511
+ * stopLoss: { triggerPrice: '90' },
6512
+ * });
6513
+ * ```
6514
+ *
6515
+ * @throws {@link PerpsSessionAccountError}
6516
+ * Thrown when the current position cannot be read.
6517
+ *
6518
+ * @throws {@link PerpsSessionTradingError}
6519
+ * Thrown when the TP/SL command fails.
6520
+ */
6521
+ placePositionTpSl(request: PlacePerpsPositionTpSlRequest): Promise<PlacePerpsPositionTpSlResult>;
6055
6522
  /**
6056
6523
  * Cancels one Perps order and returns the cancel result.
6057
6524
  *
6058
6525
  * @remarks
6059
6526
  * The returned status reflects whether the cancel happened.
6527
+ *
6528
+ * @throws {@link PerpsSessionTradingError}
6529
+ * Thrown on failure.
6060
6530
  */
6061
6531
  cancelOrder(request: CancelPerpsOrderRequest): Promise<PerpsCancelOrderResult>;
6062
6532
  /**
@@ -6064,35 +6534,54 @@ declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
6064
6534
  *
6065
6535
  * @remarks
6066
6536
  * Each returned status reflects whether that cancel happened.
6537
+ *
6538
+ * @throws {@link PerpsSessionTradingError}
6539
+ * Thrown on failure.
6067
6540
  */
6068
6541
  cancelOrders(request: CancelPerpsOrdersRequest): Promise<PerpsCancelOrderResult[]>;
6542
+ /**
6543
+ * Cancels all open Perps orders for the authenticated account.
6544
+ *
6545
+ * @remarks
6546
+ * Omit `instrumentId` to cancel open orders across all instruments. The
6547
+ * endpoint returns once the cancel-all request is accepted; individual orders
6548
+ * can still race with fills or other cancels.
6549
+ *
6550
+ * @throws {@link PerpsSessionTradingError}
6551
+ * Thrown on failure.
6552
+ */
6553
+ cancelAllOrders(request?: CancelAllPerpsOrdersRequest): Promise<void>;
6554
+ /**
6555
+ * Updates Perps leverage and margin mode for an instrument.
6556
+ *
6557
+ * @example
6558
+ * ```ts
6559
+ * await session.updateLeverage({
6560
+ * crossMargin: true,
6561
+ * instrumentId: 1,
6562
+ * leverage: 2,
6563
+ * });
6564
+ * ```
6565
+ *
6566
+ * @throws {@link UpdatePerpsLeverageError}
6567
+ * Thrown on failure.
6568
+ */
6069
6569
  updateLeverage(request: UpdatePerpsLeverageRequest): Promise<PerpsUpdateLeverageResult>;
6070
6570
  }
6071
6571
 
6072
6572
  type PerpsPublicReadError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6073
6573
  declare const PerpsPublicReadError: {
6074
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6574
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6575
+ };
6576
+ type FetchPerpsInstrumentsRequest = {
6577
+ /** Perps instrument identifier to fetch. */
6578
+ instrumentId?: number;
6579
+ /** Optional instrument category filter. */
6580
+ category?: PerpsInstrumentCategory;
6075
6581
  };
6076
- type PerpsCandlesParams = {
6077
- instrumentId: z.output<typeof PerpsInstrumentIdSchema>;
6078
- interval: PerpsKlineInterval;
6079
- startTimestamp: number;
6080
- endTimestamp: number;
6081
- };
6082
- type PerpsTimeRangeParams = {
6083
- instrumentId: z.output<typeof PerpsInstrumentIdSchema>;
6084
- startTimestamp: number;
6085
- endTimestamp: number;
6086
- };
6087
- declare const FetchPerpsInstrumentsRequestSchema: z.ZodDefault<z.ZodObject<{
6088
- instrumentId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>>;
6089
- instrumentType: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_perps.PerpsInstrumentType>>;
6090
- category: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_perps.PerpsInstrumentCategory>>;
6091
- }, z.core.$strip>>;
6092
- type FetchPerpsInstrumentsRequest = z.input<typeof FetchPerpsInstrumentsRequestSchema>;
6093
6582
  type FetchPerpsInstrumentsError = PerpsPublicReadError;
6094
6583
  declare const FetchPerpsInstrumentsError: {
6095
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6584
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6096
6585
  };
6097
6586
  /**
6098
6587
  * Fetches Perps instruments.
@@ -6104,13 +6593,13 @@ declare const FetchPerpsInstrumentsError: {
6104
6593
  * Thrown on failure.
6105
6594
  */
6106
6595
  declare function fetchPerpsInstruments(client: BaseClient, request?: FetchPerpsInstrumentsRequest): Promise<PerpsInstrument[]>;
6107
- declare const FetchPerpsTickerRequestSchema: z.ZodObject<{
6108
- instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>;
6109
- }, z.core.$strip>;
6110
- type FetchPerpsTickerRequest = z.input<typeof FetchPerpsTickerRequestSchema>;
6596
+ type FetchPerpsTickerRequest = {
6597
+ /** Perps instrument identifier whose ticker should be fetched. */
6598
+ instrumentId: number;
6599
+ };
6111
6600
  type FetchPerpsTickerError = PerpsPublicReadError;
6112
6601
  declare const FetchPerpsTickerError: {
6113
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6602
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6114
6603
  };
6115
6604
  /**
6116
6605
  * Fetches the current Perps ticker for an instrument.
@@ -6122,13 +6611,13 @@ declare const FetchPerpsTickerError: {
6122
6611
  * Thrown on failure.
6123
6612
  */
6124
6613
  declare function fetchPerpsTicker(client: BaseClient, request: FetchPerpsTickerRequest): Promise<PerpsTicker>;
6125
- declare const FetchPerpsTickersRequestSchema: z.ZodDefault<z.ZodObject<{
6126
- instrumentId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>>;
6127
- }, z.core.$strip>>;
6128
- type FetchPerpsTickersRequest = z.input<typeof FetchPerpsTickersRequestSchema>;
6614
+ type FetchPerpsTickersRequest = {
6615
+ /** Optional Perps instrument identifier filter. */
6616
+ instrumentId?: number;
6617
+ };
6129
6618
  type FetchPerpsTickersError = PerpsPublicReadError;
6130
6619
  declare const FetchPerpsTickersError: {
6131
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6620
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6132
6621
  };
6133
6622
  /**
6134
6623
  * Fetches current Perps tickers.
@@ -6141,14 +6630,15 @@ declare const FetchPerpsTickersError: {
6141
6630
  */
6142
6631
  declare function fetchPerpsTickers(client: BaseClient, request?: FetchPerpsTickersRequest): Promise<PerpsTicker[]>;
6143
6632
  type PerpsBookDepth = 10 | 100 | 500 | 1000;
6144
- declare const FetchPerpsBookRequestSchema: z.ZodObject<{
6145
- instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>;
6146
- depth: z.ZodDefault<z.ZodType<PerpsBookDepth, unknown, z.core.$ZodTypeInternals<PerpsBookDepth, unknown>>>;
6147
- }, z.core.$strip>;
6148
- type FetchPerpsBookRequest = z.input<typeof FetchPerpsBookRequestSchema>;
6633
+ type FetchPerpsBookRequest = {
6634
+ /** Perps instrument identifier whose order book should be fetched. */
6635
+ instrumentId: number;
6636
+ /** Number of price levels to return on each side. */
6637
+ depth?: PerpsBookDepth;
6638
+ };
6149
6639
  type FetchPerpsBookError = PerpsPublicReadError;
6150
6640
  declare const FetchPerpsBookError: {
6151
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6641
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6152
6642
  };
6153
6643
  /**
6154
6644
  * Fetches a Perps order book.
@@ -6160,33 +6650,24 @@ declare const FetchPerpsBookError: {
6160
6650
  * Thrown on failure.
6161
6651
  */
6162
6652
  declare function fetchPerpsBook(client: BaseClient, request: FetchPerpsBookRequest): Promise<PerpsBook>;
6163
- declare const ListPerpsCandlesRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
6164
- instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>;
6165
- interval: z.ZodEnum<typeof PerpsKlineInterval>;
6166
- start: z.ZodOptional<z.ZodNumber>;
6167
- end: z.ZodOptional<z.ZodNumber>;
6168
- cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
6169
- }, z.core.$strip>, z.ZodTransform<{
6170
- cursor: PaginationCursor | undefined;
6171
- params: PerpsCandlesParams;
6172
- }, {
6173
- instrumentId: _polymarket_bindings_perps.PerpsInstrumentId;
6653
+ type ListPerpsCandlesRequest = {
6654
+ /** Perps instrument identifier whose candles should be listed. */
6655
+ instrumentId: number;
6656
+ /** Candle interval. */
6174
6657
  interval: PerpsKlineInterval;
6175
- start?: number | undefined;
6176
- end?: number | undefined;
6177
- cursor?: PaginationCursor | undefined;
6178
- }>>, z.ZodPipe<z.ZodObject<{
6179
- cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
6180
- }, z.core.$strip>, z.ZodTransform<{
6181
- cursor: PaginationCursor;
6182
- params: undefined;
6183
- }, {
6658
+ /** Inclusive start timestamp in milliseconds. */
6659
+ start?: number;
6660
+ /** Inclusive end timestamp in milliseconds. */
6661
+ end?: number;
6662
+ /** Opaque cursor returned by a previous page. */
6663
+ cursor?: PaginationCursor;
6664
+ } | {
6665
+ /** Opaque cursor returned by a previous page. */
6184
6666
  cursor: PaginationCursor;
6185
- }>>]>;
6186
- type ListPerpsCandlesRequest = z.input<typeof ListPerpsCandlesRequestSchema>;
6667
+ };
6187
6668
  type ListPerpsCandlesError = PerpsPublicReadError;
6188
6669
  declare const ListPerpsCandlesError: {
6189
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6670
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6190
6671
  };
6191
6672
  /**
6192
6673
  * Lists Perps candles for an instrument with SDK-owned pagination.
@@ -6198,31 +6679,22 @@ declare const ListPerpsCandlesError: {
6198
6679
  * Thrown on failure.
6199
6680
  */
6200
6681
  declare function listPerpsCandles(client: BaseClient, request: ListPerpsCandlesRequest): Paginated<PerpsCandle[]>;
6201
- declare const ListPerpsFundingHistoryRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
6202
- instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>;
6203
- start: z.ZodOptional<z.ZodNumber>;
6204
- end: z.ZodOptional<z.ZodNumber>;
6205
- cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
6206
- }, z.core.$strip>, z.ZodTransform<{
6207
- cursor: PaginationCursor | undefined;
6208
- params: PerpsTimeRangeParams;
6209
- }, {
6210
- instrumentId: _polymarket_bindings_perps.PerpsInstrumentId;
6211
- start?: number | undefined;
6212
- end?: number | undefined;
6213
- cursor?: PaginationCursor | undefined;
6214
- }>>, z.ZodPipe<z.ZodObject<{
6215
- cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
6216
- }, z.core.$strip>, z.ZodTransform<{
6217
- cursor: PaginationCursor;
6218
- params: undefined;
6219
- }, {
6682
+ type ListPerpsFundingHistoryRequest = {
6683
+ /** Perps instrument identifier whose funding history should be listed. */
6684
+ instrumentId: number;
6685
+ /** Inclusive start timestamp in milliseconds. */
6686
+ start?: number;
6687
+ /** Inclusive end timestamp in milliseconds. */
6688
+ end?: number;
6689
+ /** Opaque cursor returned by a previous page. */
6690
+ cursor?: PaginationCursor;
6691
+ } | {
6692
+ /** Opaque cursor returned by a previous page. */
6220
6693
  cursor: PaginationCursor;
6221
- }>>]>;
6222
- type ListPerpsFundingHistoryRequest = z.input<typeof ListPerpsFundingHistoryRequestSchema>;
6694
+ };
6223
6695
  type ListPerpsFundingHistoryError = PerpsPublicReadError;
6224
6696
  declare const ListPerpsFundingHistoryError: {
6225
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6697
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6226
6698
  };
6227
6699
  /**
6228
6700
  * Lists Perps funding-rate history for an instrument with SDK-owned pagination.
@@ -6234,31 +6706,22 @@ declare const ListPerpsFundingHistoryError: {
6234
6706
  * Thrown on failure.
6235
6707
  */
6236
6708
  declare function listPerpsFundingHistory(client: BaseClient, request: ListPerpsFundingHistoryRequest): Paginated<PerpsFundingRate[]>;
6237
- declare const ListPerpsTradesRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
6238
- instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>;
6239
- start: z.ZodOptional<z.ZodNumber>;
6240
- end: z.ZodOptional<z.ZodNumber>;
6241
- cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
6242
- }, z.core.$strip>, z.ZodTransform<{
6243
- cursor: PaginationCursor | undefined;
6244
- params: PerpsTimeRangeParams;
6245
- }, {
6246
- instrumentId: _polymarket_bindings_perps.PerpsInstrumentId;
6247
- start?: number | undefined;
6248
- end?: number | undefined;
6249
- cursor?: PaginationCursor | undefined;
6250
- }>>, z.ZodPipe<z.ZodObject<{
6251
- cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
6252
- }, z.core.$strip>, z.ZodTransform<{
6253
- cursor: PaginationCursor;
6254
- params: undefined;
6255
- }, {
6709
+ type ListPerpsTradesRequest = {
6710
+ /** Perps instrument identifier whose recent trades should be listed. */
6711
+ instrumentId: number;
6712
+ /** Inclusive start timestamp in milliseconds. */
6713
+ start?: number;
6714
+ /** Inclusive end timestamp in milliseconds. */
6715
+ end?: number;
6716
+ /** Opaque cursor returned by a previous page. */
6717
+ cursor?: PaginationCursor;
6718
+ } | {
6719
+ /** Opaque cursor returned by a previous page. */
6256
6720
  cursor: PaginationCursor;
6257
- }>>]>;
6258
- type ListPerpsTradesRequest = z.input<typeof ListPerpsTradesRequestSchema>;
6721
+ };
6259
6722
  type ListPerpsTradesError = PerpsPublicReadError;
6260
6723
  declare const ListPerpsTradesError: {
6261
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6724
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6262
6725
  };
6263
6726
  /**
6264
6727
  * Lists recent Perps trades for an instrument with SDK-owned pagination.
@@ -6272,7 +6735,7 @@ declare const ListPerpsTradesError: {
6272
6735
  declare function listPerpsTrades(client: BaseClient, request: ListPerpsTradesRequest): Paginated<PerpsPublicTrade[]>;
6273
6736
  type FetchPerpsFeesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError;
6274
6737
  declare const FetchPerpsFeesError: {
6275
- isError(error: unknown): error is TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6738
+ isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6276
6739
  };
6277
6740
  /**
6278
6741
  * Fetches the Perps fee schedule.
@@ -6284,43 +6747,40 @@ declare const FetchPerpsFeesError: {
6284
6747
  * Thrown on failure.
6285
6748
  */
6286
6749
  declare function fetchPerpsFees(client: BaseClient): Promise<PerpsFeeScheduleEntry[]>;
6287
- declare const CreatePerpsSessionRequestSchema: z.ZodObject<{
6288
- expiresIn: z.ZodDefault<z.ZodNumber>;
6289
- label: z.ZodOptional<z.ZodString>;
6290
- }, z.core.$strict>;
6291
- declare const ResumePerpsSessionRequestSchema: z.ZodObject<{
6292
- credentials: z.ZodObject<{
6293
- proxy: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>;
6294
- privateKey: z.ZodCustom<PrivateKey, PrivateKey>;
6295
- secret: z.ZodString;
6296
- expiresAt: z.ZodNumber;
6297
- }, z.core.$strip>;
6298
- }, z.core.$strict>;
6299
- declare const RevokePerpsCredentialsRequestSchema: z.ZodObject<{
6300
- proxy: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>;
6301
- }, z.core.$strip>;
6302
- type CreatePerpsSessionRequest = z.input<typeof CreatePerpsSessionRequestSchema>;
6303
- type ResumePerpsSessionRequest = z.input<typeof ResumePerpsSessionRequestSchema>;
6750
+ type CreatePerpsSessionRequest = {
6751
+ /** Delegated credential lifetime in milliseconds. */
6752
+ expiresIn?: number;
6753
+ /** Optional label for the delegated credentials. */
6754
+ label?: string;
6755
+ };
6756
+ type ResumePerpsSessionRequest = {
6757
+ /** Existing delegated Perps credentials to validate and resume. */
6758
+ credentials: PerpsCredentials;
6759
+ };
6304
6760
  type OpenPerpsSessionRequest = CreatePerpsSessionRequest | ResumePerpsSessionRequest;
6305
- type RevokePerpsCredentialsRequest = z.input<typeof RevokePerpsCredentialsRequestSchema>;
6761
+ type RevokePerpsCredentialsRequest = {
6762
+ /** Proxy address whose delegated credentials should be revoked. */
6763
+ proxy: string;
6764
+ };
6306
6765
  type PerpsDepositWorkflowRequest = GaslessWorkflowRequest | SendPerpsDepositTransactionRequest;
6307
6766
  type PerpsDepositWorkflow = AsyncGenerator<PerpsDepositWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
6308
- declare const DepositToPerpsRequestSchema: z.ZodObject<{
6309
- amount: z.ZodBigInt;
6310
- metadata: z.ZodOptional<z.ZodString>;
6311
- }, z.core.$strip>;
6312
- declare const WithdrawFromPerpsRequestSchema: z.ZodObject<{
6313
- amount: z.ZodBigInt;
6314
- }, z.core.$strip>;
6315
- type DepositToPerpsRequest = z.input<typeof DepositToPerpsRequestSchema>;
6316
- type WithdrawFromPerpsRequest = z.input<typeof WithdrawFromPerpsRequestSchema>;
6767
+ type DepositToPerpsRequest = {
6768
+ /** Collateral amount in base units. */
6769
+ amount: bigint;
6770
+ /** Optional wallet-visible metadata for gasless deposit workflows. */
6771
+ metadata?: string;
6772
+ };
6773
+ type WithdrawFromPerpsRequest = {
6774
+ /** Collateral amount in base units. */
6775
+ amount: bigint;
6776
+ };
6317
6777
  type OpenPerpsSessionError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
6318
6778
  declare const OpenPerpsSessionError: {
6319
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6779
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
6320
6780
  };
6321
6781
  type RevokePerpsCredentialsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
6322
6782
  declare const RevokePerpsCredentialsError: {
6323
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6783
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
6324
6784
  };
6325
6785
  type PreparePerpsDepositError = UserInputError;
6326
6786
  declare const PreparePerpsDepositError: {
@@ -6328,11 +6788,11 @@ declare const PreparePerpsDepositError: {
6328
6788
  };
6329
6789
  type DepositToPerpsError = RateLimitError | RequestRejectedError | CancelledSigningError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
6330
6790
  declare const DepositToPerpsError: {
6331
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6791
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
6332
6792
  };
6333
6793
  type WithdrawFromPerpsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
6334
6794
  declare const WithdrawFromPerpsError: {
6335
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6795
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
6336
6796
  };
6337
6797
  /**
6338
6798
  * Opens a Perps account session.
@@ -6426,39 +6886,39 @@ type MergePositionsWorkflow = AsyncGenerator<MergePositionsWorkflowRequest, Tran
6426
6886
  type RedeemPositionsWorkflow = AsyncGenerator<RedeemPositionsWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
6427
6887
  type PrepareSplitPositionError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6428
6888
  declare const PrepareSplitPositionError: {
6429
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6889
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6430
6890
  };
6431
6891
  type PrepareSplitMarketPositionError = PrepareSplitPositionError;
6432
6892
  declare const PrepareSplitMarketPositionError: {
6433
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6893
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6434
6894
  };
6435
6895
  type PrepareSplitComboPositionError = PrepareSplitPositionError;
6436
6896
  declare const PrepareSplitComboPositionError: {
6437
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6897
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6438
6898
  };
6439
6899
  type PrepareMergePositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6440
6900
  declare const PrepareMergePositionsError: {
6441
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6901
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6442
6902
  };
6443
6903
  type PrepareMergeMarketPositionError = PrepareMergePositionsError;
6444
6904
  declare const PrepareMergeMarketPositionError: {
6445
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6905
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6446
6906
  };
6447
6907
  type PrepareMergeComboPositionError = PrepareMergePositionsError;
6448
6908
  declare const PrepareMergeComboPositionError: {
6449
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6909
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6450
6910
  };
6451
6911
  type PrepareRedeemPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6452
6912
  declare const PrepareRedeemPositionsError: {
6453
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6913
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6454
6914
  };
6455
6915
  type PrepareRedeemMarketPositionsError = PrepareRedeemPositionsError;
6456
6916
  declare const PrepareRedeemMarketPositionsError: {
6457
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6917
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6458
6918
  };
6459
6919
  type PrepareRedeemComboPositionError = PrepareRedeemPositionsError;
6460
6920
  declare const PrepareRedeemComboPositionError: {
6461
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6921
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6462
6922
  };
6463
6923
  /**
6464
6924
  * Starts a split workflow for a market condition.
@@ -6506,15 +6966,15 @@ declare function prepareSplitComboPosition(client: BaseSecureClient, request: Pr
6506
6966
  declare function prepareSplitPosition(client: BaseSecureClient, request: PrepareSplitPositionRequest): Promise<SplitPositionWorkflow>;
6507
6967
  type SplitPositionError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
6508
6968
  declare const SplitPositionError: {
6509
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
6969
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
6510
6970
  };
6511
6971
  type SplitMarketPositionError = SplitPositionError;
6512
6972
  declare const SplitMarketPositionError: {
6513
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
6973
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
6514
6974
  };
6515
6975
  type SplitComboPositionError = SplitPositionError;
6516
6976
  declare const SplitComboPositionError: {
6517
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
6977
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
6518
6978
  };
6519
6979
  /**
6520
6980
  * Splits collateral into market positions.
@@ -6618,15 +7078,15 @@ declare function prepareMergeComboPosition(client: BaseSecureClient, request: Pr
6618
7078
  declare function prepareMergePositions(client: BaseSecureClient, request: PrepareMergePositionsRequest): Promise<MergePositionsWorkflow>;
6619
7079
  type MergePositionsError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
6620
7080
  declare const MergePositionsError: {
6621
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
7081
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
6622
7082
  };
6623
7083
  type MergeMarketPositionError = MergePositionsError;
6624
7084
  declare const MergeMarketPositionError: {
6625
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
7085
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
6626
7086
  };
6627
7087
  type MergeComboPositionError = MergePositionsError;
6628
7088
  declare const MergeComboPositionError: {
6629
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
7089
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
6630
7090
  };
6631
7091
  /**
6632
7092
  * Merges complementary market positions back into collateral.
@@ -6752,7 +7212,7 @@ declare function prepareRedeemComboPosition(client: BaseSecureClient, request: P
6752
7212
  declare function prepareRedeemPositions(client: BaseSecureClient, request: PrepareRedeemPositionsRequest): Promise<RedeemPositionsWorkflow>;
6753
7213
  type RedeemPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
6754
7214
  declare const RedeemPositionsError: {
6755
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7215
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
6756
7216
  };
6757
7217
  /**
6758
7218
  * Redeems resolved market or combo positions.
@@ -6771,7 +7231,7 @@ declare const FetchPublicProfileRequestSchema: z.ZodObject<{
6771
7231
  type FetchPublicProfileRequest = z.input<typeof FetchPublicProfileRequestSchema>;
6772
7232
  type FetchPublicProfileError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6773
7233
  declare const FetchPublicProfileError: {
6774
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7234
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6775
7235
  };
6776
7236
  /**
6777
7237
  * Fetches a public profile by wallet address.
@@ -6831,7 +7291,7 @@ type SearchResults = {
6831
7291
  };
6832
7292
  type SearchError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6833
7293
  declare const SearchError: {
6834
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7294
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6835
7295
  };
6836
7296
  /**
6837
7297
  * Runs a public full-text search.
@@ -6887,7 +7347,7 @@ type ListSeriesRequest = z.input<typeof ListSeriesRequestSchema>;
6887
7347
  type FetchSeriesRequest = z.input<typeof FetchSeriesRequestSchema>;
6888
7348
  type ListSeriesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6889
7349
  declare const ListSeriesError: {
6890
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7350
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6891
7351
  };
6892
7352
  /**
6893
7353
  * Lists series.
@@ -6930,7 +7390,7 @@ declare const ListSeriesError: {
6930
7390
  declare function listSeries(client: BaseClient, request?: ListSeriesRequest): Paginated<Series[]>;
6931
7391
  type FetchSeriesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6932
7392
  declare const FetchSeriesError: {
6933
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7393
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6934
7394
  };
6935
7395
  /**
6936
7396
  * Fetches a series.
@@ -7132,7 +7592,7 @@ type FetchRelatedTagsRequest = z.input<typeof RelatedTagsByIdRequestSchema> | z.
7132
7592
  type FetchRelatedTagResourcesRequest = z.input<typeof RelatedTagResourcesByIdRequestSchema> | z.input<typeof RelatedTagResourcesBySlugRequestSchema>;
7133
7593
  type ListTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7134
7594
  declare const ListTagsError: {
7135
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7595
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7136
7596
  };
7137
7597
  /**
7138
7598
  * Lists tags.
@@ -7175,7 +7635,7 @@ declare const ListTagsError: {
7175
7635
  declare function listTags(client: BaseClient, request?: ListTagsRequest): Paginated<Tag[]>;
7176
7636
  type FetchTagError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7177
7637
  declare const FetchTagError: {
7178
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7638
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7179
7639
  };
7180
7640
  /**
7181
7641
  * Fetches a tag by id or slug.
@@ -7199,7 +7659,7 @@ declare const FetchTagError: {
7199
7659
  declare function fetchTag(client: BaseClient, request: FetchTagRequest): Promise<Tag>;
7200
7660
  type FetchRelatedTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7201
7661
  declare const FetchRelatedTagsError: {
7202
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7662
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7203
7663
  };
7204
7664
  /**
7205
7665
  * Fetches related tag relationships by id or slug.
@@ -7224,7 +7684,7 @@ declare const FetchRelatedTagsError: {
7224
7684
  declare function fetchRelatedTags(client: BaseClient, request: FetchRelatedTagsRequest): Promise<RelatedTag[]>;
7225
7685
  type FetchRelatedTagResourcesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7226
7686
  declare const FetchRelatedTagResourcesError: {
7227
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7687
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7228
7688
  };
7229
7689
  /**
7230
7690
  * Fetches resources linked from related tag relationships by id or slug.
@@ -7261,7 +7721,7 @@ declare const ListTeamsRequestSchema: z.ZodObject<{
7261
7721
  type ListTeamsRequest = z.input<typeof ListTeamsRequestSchema>;
7262
7722
  type ListTeamsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7263
7723
  declare const ListTeamsError: {
7264
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7724
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7265
7725
  };
7266
7726
  /**
7267
7727
  * Lists teams.
@@ -7337,7 +7797,7 @@ declare const PrepareErc20TransferError: {
7337
7797
  declare function prepareErc20Transfer(client: BaseSecureClient, request: PrepareErc20TransferRequest): Promise<Erc20TransferWorkflow>;
7338
7798
  type TransferErc20Error = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
7339
7799
  declare const TransferErc20Error: {
7340
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7800
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
7341
7801
  };
7342
7802
  /**
7343
7803
  * Transfers ERC-20 tokens from the authenticated account.
@@ -7394,7 +7854,7 @@ type TransactionOutcome = {
7394
7854
  };
7395
7855
  type WaitForTransactionError = WaitForGaslessTransactionError;
7396
7856
  declare const WaitForTransactionError: {
7397
- isError(error: unknown): error is TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
7857
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError;
7398
7858
  };
7399
7859
  interface TransactionHandle {
7400
7860
  /**
@@ -7421,4 +7881,4 @@ type Signer = {
7421
7881
  sendTransaction(request: SignerTransactionRequest): Promise<TransactionHandle>;
7422
7882
  };
7423
7883
 
7424
- export { FetchPublicProfileError as $, type ApiKeyAuthorization as A, type BaseClient as B, CancelAllError as C, type DataActions as D, type EnvironmentConfig as E, FetchClosedOnlyModeError as F, FetchEventLiveVolumeError as G, FetchEventTagsError as H, FetchLastTradePriceError as I, FetchLastTradePricesError as J, FetchMarketError as K, FetchMarketTagsError as L, FetchMidpointError as M, FetchMidpointsError as N, FetchNotificationsError as O, FetchOrderBookError as P, FetchOrderBooksError as Q, FetchOrderError as R, type Signer as S, type TypedDataPayload as T, UserInputError as U, FetchOrderScoringError as V, FetchOrdersScoringError as W, FetchPortfolioValueError as X, FetchPriceError as Y, FetchPriceHistoryError as Z, FetchPricesError as _, type TypedData as a, RfqConfirmationError as a$, FetchRelatedTagResourcesError as a0, FetchRelatedTagsError as a1, FetchRewardPercentagesError as a2, FetchSeriesError as a3, FetchSpreadError as a4, FetchSpreadsError as a5, FetchTagError as a6, FetchTotalEarningsForUserForDayError as a7, FetchTradedMarketCountError as a8, InsufficientLiquidityError as a9, MergePositionsError as aA, OpenRfqSessionError as aB, type Page as aC, PageSizeSchema as aD, type Paginated as aE, type PerpsActions as aF, type PerpsEndpoints as aG, PerpsSession as aH, PostOrderError as aI, PostOrdersError as aJ, type PublicAccountActions as aK, type PublicActions as aL, type PublicClient as aM, type PublicClientOptions as aN, type PublicPerpsActions as aO, type PublicRewardsActions as aP, type PublicSubscriptionsActions as aQ, RateLimitError as aR, RedeemPositionsError as aS, RequestRejectedError as aT, type RequestRejectedErrorOptions as aU, type RestEndpoint as aV, type RfqCancelQuoteAck as aW, RfqCancelQuoteError as aX, RfqCancelQuoteRejectedError as aY, type RfqCancelQuoteRejectedErrorOptions as aZ, type RfqConfirmationAck as a_, ListAccountTradesError as aa, ListActivityError as ab, ListBuilderLeaderboardError as ac, ListBuilderTradesError as ad, ListBuilderVolumeError as ae, ListClosedPositionsError as af, ListComboMarketsError as ag, ListComboPositionsError as ah, ListCommentsByUserAddressError as ai, ListCommentsError as aj, ListCurrentRewardsError as ak, ListEventsError as al, ListMarketHoldersError as am, ListMarketPositionsError as an, ListMarketRewardsError as ao, ListMarketsError as ap, ListOpenInterestError as aq, ListOpenOrdersError as ar, ListPositionsError as as, ListSeriesError as at, ListTagsError as au, ListTeamsError as av, ListTraderLeaderboardError as aw, ListTradesError as ax, ListUserEarningsAndMarketsConfigError as ay, ListUserEarningsForDayError as az, type TransactionCall as b, subscriptionsActions as b$, RfqConfirmationRejectedError as b0, type RfqConfirmationRequestEvent as b1, type RfqEndpoints as b2, type RfqEvent as b3, RfqQuoteError as b4, type RfqQuoteReference as b5, RfqQuoteRejectedError as b6, type RfqQuoteRejectedErrorOptions as b7, type RfqQuoteRequestEvent as b8, type RfqQuoteResponse as b9, SplitPositionError as bA, TimeoutError as bB, TransactionFailedError as bC, type TransactionHandle as bD, type TransactionOutcome as bE, TransferErc20Error as bF, TransportError as bG, type TypedDataDomain as bH, type TypedDataField as bI, UnexpectedResponseError as bJ, UpdatePerpsLeverageError as bK, WaitForTransactionError as bL, type WalletDerivationConfig as bM, type WebSocketEndpoint as bN, accountActions as bO, allActions as bP, analyticsActions as bQ, createPublicClient as bR, createSecureClient as bS, dataActions as bT, discoveryActions as bU, forkEnvironmentConfig as bV, makeErrorGuard as bW, perpsActions as bX, production as bY, rewardsActions as bZ, rfqActions as b_, type RfqQuoteSource as ba, type RfqSession as bb, type RfqTradeEvent as bc, SearchError as bd, SearchSort as be, type SecureAccountActions as bf, type SecureActions as bg, type SecureClient as bh, type SecureClientOptions as bi, type SecureDownloadAccountingSnapshotRequest as bj, type SecureFetchPortfolioValueRequest as bk, type SecureFetchTradedMarketCountRequest as bl, type SecureListActivityRequest as bm, type SecureListClosedPositionsRequest as bn, type SecureListComboPositionsRequest as bo, type SecureListPositionsRequest as bp, type SecurePerpsActions as bq, type SecureRewardsActions as br, type SecureRfqActions as bs, type SecureSubscriptionsActions as bt, type SecureTradingActions as bu, type SecureWalletActions as bv, SetupGaslessWalletError as bw, SetupTradingApprovalsError as bx, type SignerTransactionRequest as by, SigningError as bz, type AccountIdentity as c, type FetchPerpsOpenOrdersRequest as c$, tradingActions as c0, walletActions as c1, type CancelMarketOrdersRequest as c2, type CancelOrderRequest as c3, type CancelOrdersRequest as c4, type CancelPerpsOrderRequest as c5, type CancelPerpsOrdersRequest as c6, type CommentsEventType as c7, type CommentsSubscription as c8, type CreatePerpsSessionRequest as c9, type FetchEventLiveVolumeRequest as cA, type FetchEventRequest as cB, type FetchEventTagsRequest as cC, FetchExecuteParamsError as cD, type FetchExecuteParamsRequest as cE, type FetchGaslessTransactionRequest as cF, type FetchLastTradePriceRequest as cG, type FetchLastTradePricesRequest as cH, FetchMarketInfoError as cI, type FetchMarketInfoRequest as cJ, type FetchMarketRequest as cK, type FetchMarketTagsRequest as cL, type FetchMidpointRequest as cM, type FetchMidpointsRequest as cN, FetchNegRiskError as cO, type FetchNegRiskRequest as cP, type FetchOrderBookRequest as cQ, type FetchOrderBooksRequest as cR, type FetchOrderRequest as cS, type FetchOrderScoringRequest as cT, type FetchOrdersScoringRequest as cU, type FetchPerpsAccountConfigRequest as cV, FetchPerpsBookError as cW, type FetchPerpsBookRequest as cX, FetchPerpsFeesError as cY, FetchPerpsInstrumentsError as cZ, type FetchPerpsInstrumentsRequest as c_, type CryptoPricesEventType as ca, type CryptoPricesSubscription as cb, DeployDepositWalletError as cc, DepositToPerpsError as cd, type DepositToPerpsRequest as ce, type DeprecatedTransactionHandle as cf, type DownloadAccountingSnapshotRequest as cg, type DropNotificationsRequest as ch, type EquityPricesEventType as ci, type EquityPricesSubscription as cj, type Erc1155ApprovalForAllWorkflow as ck, type Erc1155ApprovalForAllWorkflowRequest as cl, type Erc20ApprovalWorkflow as cm, type Erc20ApprovalWorkflowRequest as cn, type Erc20TransferWorkflow as co, type Erc20TransferWorkflowRequest as cp, type EstimateMarketBuyPriceRequest as cq, type EstimateMarketPriceRequest as cr, type EstimateMarketSellPriceRequest as cs, type EventForSubscriptionSpec as ct, type EventForSubscriptionSpecs as cu, FetchBalanceAllowanceError as cv, type FetchBalanceAllowanceRequest as cw, FetchBuilderFeeRatesError as cx, type FetchBuilderFeeRatesRequest as cy, type FetchCommentsByIdRequest as cz, type AnalyticsActions as d, type ListUserEarningsForDayRequest as d$, type FetchPerpsOrdersRequest as d0, FetchPerpsTickerError as d1, type FetchPerpsTickerRequest as d2, FetchPerpsTickersError as d3, type FetchPerpsTickersRequest as d4, type FetchPortfolioValueRequest as d5, type FetchPriceHistoryRequest as d6, type FetchPriceRequest as d7, type FetchPricesRequest as d8, type FetchPublicProfileRequest as d9, type ListCurrentRewardsRequest as dA, type ListEventsRequest as dB, type ListMarketHoldersRequest as dC, type ListMarketPositionsRequest as dD, type ListMarketRewardsRequest as dE, type ListMarketsRequest as dF, type ListOpenInterestRequest as dG, type ListOpenOrdersRequest as dH, ListPerpsCandlesError as dI, type ListPerpsCandlesRequest as dJ, type ListPerpsDepositsRequest as dK, type ListPerpsEquityHistoryRequest as dL, type ListPerpsFillsRequest as dM, ListPerpsFundingHistoryError as dN, type ListPerpsFundingHistoryRequest as dO, type ListPerpsFundingPaymentsRequest as dP, type ListPerpsPnlHistoryRequest as dQ, ListPerpsTradesError as dR, type ListPerpsTradesRequest as dS, type ListPerpsWithdrawalsRequest as dT, type ListPositionsRequest as dU, type ListSeriesRequest as dV, type ListTagsRequest as dW, type ListTeamsRequest as dX, type ListTraderLeaderboardRequest as dY, type ListTradesRequest as dZ, type ListUserEarningsAndMarketsConfigRequest as d_, type FetchRelatedTagResourcesRequest as da, type FetchRelatedTagsRequest as db, type FetchSeriesRequest as dc, type FetchSpreadRequest as dd, type FetchSpreadsRequest as de, type FetchTagRequest as df, FetchTickSizeError as dg, type FetchTickSizeRequest as dh, type FetchTotalEarningsForUserForDayRequest as di, type FetchTradedMarketCountRequest as dj, GaslessTransactionMetadataSchema as dk, type GaslessWorkflow as dl, type GaslessWorkflowRequest as dm, IsWalletDeployedError as dn, type IsWalletDeployedRequest as dp, type ListAccountTradesRequest as dq, type ListActivityRequest as dr, type ListBuilderLeaderboardRequest as ds, type ListBuilderTradesRequest as dt, type ListBuilderVolumeRequest as du, type ListClosedPositionsRequest as dv, type ListComboMarketsRequest as dw, type ListComboPositionsRequest as dx, type ListCommentsByUserAddressRequest as dy, type ListCommentsRequest as dz, ApproveErc1155ForAllError as e, PrepareTradingApprovalsError as e$, type MarketEventType as e0, type MarketSubscription as e1, MergeComboPositionError as e2, MergeMarketPositionError as e3, type MergePositionsWorkflow as e4, type MergePositionsWorkflowRequest as e5, OpenPerpsSessionError as e6, type OpenPerpsSessionRequest as e7, type OrderDraft as e8, type OrderPostingWorkflow as e9, PrepareGaslessTransactionError as eA, type PrepareGaslessTransactionRequest as eB, type PrepareLimitOrderRequest as eC, type PrepareMarketBuyOrderRequest as eD, type PrepareMarketOrderRequest as eE, type PrepareMarketSellOrderRequest as eF, PrepareMergeComboPositionError as eG, type PrepareMergeComboPositionRequest as eH, PrepareMergeMarketPositionError as eI, type PrepareMergeMarketPositionRequest as eJ, PrepareMergePositionsError as eK, type PrepareMergePositionsRequest as eL, PreparePerpsDepositError as eM, PrepareRedeemComboPositionError as eN, type PrepareRedeemComboPositionRequest as eO, type PrepareRedeemMarketPositionsByConditionIdRequest as eP, type PrepareRedeemMarketPositionsByMarketIdRequest as eQ, PrepareRedeemMarketPositionsError as eR, type PrepareRedeemMarketPositionsRequest as eS, PrepareRedeemPositionsError as eT, type PrepareRedeemPositionsRequest as eU, PrepareSplitComboPositionError as eV, type PrepareSplitComboPositionRequest as eW, PrepareSplitMarketPositionError as eX, type PrepareSplitMarketPositionRequest as eY, PrepareSplitPositionError as eZ, type PrepareSplitPositionRequest as e_, type OrderWorkflow as ea, type OrderWorkflowRequest as eb, type PerpsBboSubscription as ec, type PerpsBookDepth as ed, type PerpsBookSubscription as ee, type PerpsCandlesSubscription as ef, type PerpsDepositWorkflow as eg, type PerpsDepositWorkflowRequest as eh, type PerpsMarketDataEventType as ei, type PerpsMarketDataSubscription as ej, type PerpsPlaceFokOrderRequest as ek, type PerpsPlaceGtcOrderRequest as el, type PerpsPlaceIocOrderRequest as em, type PerpsStatisticsSubscription as en, type PerpsStreamingCandleInterval as eo, type PerpsTickersSubscription as ep, type PerpsTradesSubscription as eq, type PlacePerpsOrderRequest as er, type PostOrdersRequest as es, type PostPerpsOrdersRequest as et, PrepareErc1155ApprovalForAllError as eu, type PrepareErc1155ApprovalForAllRequest as ev, PrepareErc20ApprovalError as ew, type PrepareErc20ApprovalRequest as ex, PrepareErc20TransferError as ey, type PrepareErc20TransferRequest as ez, ApproveErc20Error as f, fetchNegRisk as f$, type PublicRealtimeEvent as f0, type PublicRealtimeTopic as f1, type PublicSubscriptionSpec as f2, type RedeemPositionsWorkflow as f3, type RedeemPositionsWorkflowRequest as f4, ResolveConditionByTokenError as f5, type ResolveConditionByTokenRequest as f6, type ResumePerpsSessionRequest as f7, RevokePerpsCredentialsError as f8, type RevokePerpsCredentialsRequest as f9, approveErc1155ForAll as fA, approveErc20 as fB, cancelAll as fC, cancelMarketOrders as fD, cancelOrder as fE, cancelOrders as fF, deployDepositWallet as fG, depositToPerps as fH, downloadAccountingSnapshot as fI, dropNotifications as fJ, estimateMarketPrice as fK, fetchBalanceAllowance as fL, fetchBuilderFeeRates as fM, fetchBuilderVolume as fN, fetchClosedOnlyMode as fO, fetchCommentsById as fP, fetchEvent as fQ, fetchEventLiveVolume as fR, fetchEventTags as fS, fetchExecuteParams as fT, fetchLastTradePrice as fU, fetchLastTradePrices as fV, fetchMarket as fW, fetchMarketInfo as fX, fetchMarketTags as fY, fetchMidpoint as fZ, fetchMidpoints as f_, type RfqConfirmationRejectedErrorOptions as fa, type RfqExecutionUpdateEvent as fb, type SearchRequest as fc, type SearchResults as fd, type SecureRealtimeEvent as fe, type SecureRealtimeTopic as ff, type SecureSubscriptionSpec as fg, type SignedOrder as fh, SplitComboPositionError as fi, SplitMarketPositionError as fj, type SplitPositionWorkflow as fk, type SplitPositionWorkflowRequest as fl, type SportsEventType as fm, type SportsSubscription as fn, type SubscribeError as fo, type SubscriptionHandle as fp, type TradingApprovalsWorkflow as fq, type TradingApprovalsWorkflowRequest as fr, UpdateBalanceAllowanceError as fs, type UpdateBalanceAllowanceRequest as ft, type UpdatePerpsLeverageRequest as fu, type UserEventType as fv, type UserSubscription as fw, WaitForGaslessTransactionError as fx, WithdrawFromPerpsError as fy, type WithdrawFromPerpsRequest as fz, BasePublicClient as g, prepareErc1155ApprovalForAll as g$, fetchNotifications as g0, fetchOrder as g1, fetchOrderBook as g2, fetchOrderBooks as g3, fetchOrderScoring as g4, fetchOrdersScoring as g5, fetchPerpsBook as g6, fetchPerpsFees as g7, fetchPerpsInstruments as g8, fetchPerpsTicker as g9, listCommentsByUserAddress as gA, listCurrentRewards as gB, listEvents as gC, listMarketHolders as gD, listMarketPositions as gE, listMarketRewards as gF, listMarkets as gG, listOpenInterest as gH, listOpenOrders as gI, listPerpsCandles as gJ, listPerpsFundingHistory as gK, listPerpsTrades as gL, listPositions as gM, listSeries as gN, listTags as gO, listTeams as gP, listTraderLeaderboard as gQ, listTrades as gR, listUserEarningsAndMarketsConfig as gS, listUserEarningsForDay as gT, mergeComboPosition as gU, mergeMarketPosition as gV, mergePositions as gW, openPerpsSession as gX, openRfqSession as gY, postOrder as gZ, postOrders as g_, fetchPerpsTickers as ga, fetchPortfolioValue as gb, fetchPrice as gc, fetchPriceHistory as gd, fetchPrices as ge, fetchPublicProfile as gf, fetchRelatedTagResources as gg, fetchRelatedTags as gh, fetchRewardPercentages as gi, fetchSeries as gj, fetchSpread as gk, fetchSpreads as gl, fetchTag as gm, fetchTickSize as gn, fetchTotalEarningsForUserForDay as go, fetchTradedMarketCount as gp, fetchTransaction as gq, isWalletDeployed as gr, listAccountTrades as gs, listActivity as gt, listBuilderLeaderboard as gu, listBuilderTrades as gv, listClosedPositions as gw, listComboMarkets as gx, listComboPositions as gy, listComments as gz, BaseSecureClient as h, prepareErc20Approval as h0, prepareErc20Transfer as h1, prepareGaslessTransaction as h2, prepareMergeComboPosition as h3, prepareMergeMarketPosition as h4, prepareMergePositions as h5, preparePerpsDeposit as h6, prepareRedeemComboPosition as h7, prepareRedeemMarketPositions as h8, prepareRedeemPositions as h9, prepareSplitComboPosition as ha, prepareSplitMarketPosition as hb, prepareSplitPosition as hc, prepareTradingApprovals as hd, redeemPositions as he, resolveConditionByToken as hf, revokePerpsCredentials as hg, search as hh, setupTradingApprovals as hi, splitComboPosition as hj, splitMarketPosition as hk, splitPosition as hl, subscribe as hm, transferErc20 as hn, updateBalanceAllowance as ho, withdrawFromPerps as hp, type BeginAuthenticationRequest as i, CancelMarketOrdersError as j, CancelOrderError as k, CancelOrdersError as l, CancelledSigningError as m, type Client as n, type ClientActions as o, type ClientDecorator as p, type ClobEndpoints as q, CreateSecureClientError as r, type DiscoveryActions as s, DownloadAccountingSnapshotError as t, DropNotificationsError as u, type EnvironmentConfigFork as v, type EnvironmentContracts as w, EstimateMarketPriceError as x, FetchCommentsByIdError as y, FetchEventError as z };
7884
+ export { FetchOrderScoringError as $, type ApiKeyAuthorization as A, type BaseClient as B, CancelAllError as C, type DataActions as D, DropNotificationsError as E, type EnvironmentConfig as F, type EnvironmentConfigFork as G, type EnvironmentContracts as H, EstimateMarketPriceError as I, FetchClosedOnlyModeError as J, FetchCommentsByIdError as K, FetchEventError as L, FetchEventLiveVolumeError as M, FetchEventTagsError as N, FetchLastTradePriceError as O, FetchLastTradePricesError as P, FetchMarketError as Q, FetchMarketTagsError as R, type Signer as S, type TypedDataPayload as T, UserInputError as U, FetchMidpointError as V, FetchMidpointsError as W, FetchNotificationsError as X, FetchOrderBookError as Y, FetchOrderBooksError as Z, FetchOrderError as _, type TypedData as a, ListTradesError as a$, FetchOrdersScoringError as a0, type FetchPerpsAccountConfigRequest as a1, FetchPerpsBookError as a2, type FetchPerpsBookRequest as a3, FetchPerpsFeesError as a4, FetchPerpsInstrumentsError as a5, type FetchPerpsInstrumentsRequest as a6, type FetchPerpsOpenOrdersRequest as a7, type FetchPerpsOrdersRequest as a8, FetchPerpsTickerError as a9, ListCommentsByUserAddressError as aA, ListCommentsError as aB, ListCurrentRewardsError as aC, ListEventsError as aD, ListMarketHoldersError as aE, ListMarketPositionsError as aF, ListMarketRewardsError as aG, ListMarketsError as aH, ListOpenInterestError as aI, ListOpenOrdersError as aJ, ListPerpsCandlesError as aK, type ListPerpsCandlesRequest as aL, type ListPerpsDepositsRequest as aM, type ListPerpsEquityHistoryRequest as aN, type ListPerpsFillsRequest as aO, ListPerpsFundingHistoryError as aP, type ListPerpsFundingHistoryRequest as aQ, type ListPerpsFundingPaymentsRequest as aR, type ListPerpsPnlHistoryRequest as aS, ListPerpsTradesError as aT, type ListPerpsTradesRequest as aU, type ListPerpsWithdrawalsRequest as aV, ListPositionsError as aW, ListSeriesError as aX, ListTagsError as aY, ListTeamsError as aZ, ListTraderLeaderboardError as a_, type FetchPerpsTickerRequest as aa, FetchPerpsTickersError as ab, type FetchPerpsTickersRequest as ac, FetchPortfolioValueError as ad, FetchPriceError as ae, FetchPriceHistoryError as af, FetchPricesError as ag, FetchPublicProfileError as ah, FetchRelatedTagResourcesError as ai, FetchRelatedTagsError as aj, FetchRewardPercentagesError as ak, FetchSeriesError as al, FetchSpreadError as am, FetchSpreadsError as an, FetchTagError as ao, FetchTotalEarningsForUserForDayError as ap, FetchTradedMarketCountError as aq, InsufficientLiquidityError as ar, ListAccountTradesError as as, ListActivityError as at, ListBuilderLeaderboardError as au, ListBuilderTradesError as av, ListBuilderVolumeError as aw, ListClosedPositionsError as ax, ListComboMarketsError as ay, ListComboPositionsError as az, type TransactionCall as b, type RfqQuoteResponse as b$, ListUserEarningsAndMarketsConfigError as b0, ListUserEarningsForDayError as b1, MergePositionsError as b2, OpenPerpsSessionError as b3, type OpenPerpsSessionRequest as b4, OpenRfqSessionError as b5, type Page as b6, PageSizeSchema as b7, type Paginated as b8, type PerpsActions as b9, type PublicClientOptions as bA, type PublicPerpsActions as bB, type PublicRewardsActions as bC, type PublicSubscriptionsActions as bD, RateLimitError as bE, RedeemPositionsError as bF, RequestRejectedError as bG, type RequestRejectedErrorOptions as bH, type RestEndpoint as bI, type ResumePerpsSessionRequest as bJ, RevokePerpsCredentialsError as bK, type RevokePerpsCredentialsRequest as bL, type RfqCancelQuoteAck as bM, RfqCancelQuoteError as bN, RfqCancelQuoteRejectedError as bO, type RfqCancelQuoteRejectedErrorOptions as bP, type RfqConfirmationAck as bQ, RfqConfirmationError as bR, RfqConfirmationRejectedError as bS, type RfqConfirmationRequestEvent as bT, type RfqEndpoints as bU, type RfqEvent as bV, RfqQuoteError as bW, type RfqQuoteReference as bX, RfqQuoteRejectedError as bY, type RfqQuoteRejectedErrorOptions as bZ, type RfqQuoteRequestEvent as b_, type PerpsBookDepth as ba, type PerpsEndpoints as bb, type PerpsOrderRequest as bc, type PerpsPlaceFokOrderRequest as bd, type PerpsPlaceGtcOrderRequest as be, type PerpsPlaceIocOrderRequest as bf, type PerpsPlacedTpSlOrder as bg, type PerpsPlacedTpSlOrders as bh, type PerpsPositionTpSlTrigger as bi, PerpsSession as bj, type PerpsSessionAccountError as bk, type PerpsSessionLifecycleError as bl, type PerpsSessionTradingError as bm, type PerpsTpSlTrigger as bn, type PlacePerpsOrderRequest as bo, type PlacePerpsOrderResult as bp, type PlacePerpsOrderWithTpSlRequest as bq, type PlacePerpsOrderWithTpSlResult as br, type PlacePerpsPositionTpSlRequest as bs, type PlacePerpsPositionTpSlResult as bt, PostOrderError as bu, PostOrdersError as bv, type PostPerpsOrdersRequest as bw, type PublicAccountActions as bx, type PublicActions as by, type PublicClient as bz, type AccountIdentity as c, type CommentsSubscription as c$, type RfqQuoteSource as c0, type RfqSession as c1, type RfqTradeEvent as c2, SearchError as c3, SearchSort as c4, type SecureAccountActions as c5, type SecureActions as c6, type SecureClient as c7, type SecureClientOptions as c8, type SecureDownloadAccountingSnapshotRequest as c9, UpdatePerpsLeverageError as cA, type UpdatePerpsLeverageRequest as cB, WaitForTransactionError as cC, type WalletDerivationConfig as cD, type WebSocketEndpoint as cE, WithdrawFromPerpsError as cF, type WithdrawFromPerpsRequest as cG, accountActions as cH, allActions as cI, analyticsActions as cJ, createPublicClient as cK, createSecureClient as cL, dataActions as cM, discoveryActions as cN, forkEnvironmentConfig as cO, makeErrorGuard as cP, perpsActions as cQ, production as cR, rewardsActions as cS, rfqActions as cT, subscriptionsActions as cU, tradingActions as cV, walletActions as cW, type CancelMarketOrdersRequest as cX, type CancelOrderRequest as cY, type CancelOrdersRequest as cZ, type CommentsEventType as c_, type SecureFetchPortfolioValueRequest as ca, type SecureFetchTradedMarketCountRequest as cb, type SecureListActivityRequest as cc, type SecureListClosedPositionsRequest as cd, type SecureListComboPositionsRequest as ce, type SecureListPositionsRequest as cf, type SecurePerpsActions as cg, type SecureRewardsActions as ch, type SecureRfqActions as ci, type SecureSubscriptionsActions as cj, type SecureTradingActions as ck, type SecureWalletActions as cl, SetupGaslessWalletError as cm, SetupTradingApprovalsError as cn, type SignerTransactionRequest as co, SigningError as cp, SplitPositionError as cq, TimeoutError as cr, TransactionFailedError as cs, type TransactionHandle as ct, type TransactionOutcome as cu, TransferErc20Error as cv, TransportError as cw, type TypedDataDomain as cx, type TypedDataField as cy, UnexpectedResponseError as cz, type AnalyticsActions as d, type GaslessWorkflowRequest as d$, type CryptoPricesEventType as d0, type CryptoPricesSubscription as d1, DeployDepositWalletError as d2, type DeprecatedTransactionHandle as d3, type DownloadAccountingSnapshotRequest as d4, type DropNotificationsRequest as d5, type EquityPricesEventType as d6, type EquityPricesSubscription as d7, type Erc1155ApprovalForAllWorkflow as d8, type Erc1155ApprovalForAllWorkflowRequest as d9, type FetchMarketTagsRequest as dA, type FetchMidpointRequest as dB, type FetchMidpointsRequest as dC, FetchNegRiskError as dD, type FetchNegRiskRequest as dE, type FetchOrderBookRequest as dF, type FetchOrderBooksRequest as dG, type FetchOrderRequest as dH, type FetchOrderScoringRequest as dI, type FetchOrdersScoringRequest as dJ, type FetchPortfolioValueRequest as dK, type FetchPriceHistoryRequest as dL, type FetchPriceRequest as dM, type FetchPricesRequest as dN, type FetchPublicProfileRequest as dO, type FetchRelatedTagResourcesRequest as dP, type FetchRelatedTagsRequest as dQ, type FetchSeriesRequest as dR, type FetchSpreadRequest as dS, type FetchSpreadsRequest as dT, type FetchTagRequest as dU, FetchTickSizeError as dV, type FetchTickSizeRequest as dW, type FetchTotalEarningsForUserForDayRequest as dX, type FetchTradedMarketCountRequest as dY, GaslessTransactionMetadataSchema as dZ, type GaslessWorkflow as d_, type Erc20ApprovalWorkflow as da, type Erc20ApprovalWorkflowRequest as db, type Erc20TransferWorkflow as dc, type Erc20TransferWorkflowRequest as dd, type EstimateMarketBuyPriceRequest as de, type EstimateMarketPriceRequest as df, type EstimateMarketSellPriceRequest as dg, type EventForSubscriptionSpec as dh, type EventForSubscriptionSpecs as di, FetchBalanceAllowanceError as dj, type FetchBalanceAllowanceRequest as dk, FetchBuilderFeeRatesError as dl, type FetchBuilderFeeRatesRequest as dm, type FetchCommentsByIdRequest as dn, type FetchEventLiveVolumeRequest as dp, type FetchEventRequest as dq, type FetchEventTagsRequest as dr, FetchExecuteParamsError as ds, type FetchExecuteParamsRequest as dt, type FetchGaslessTransactionRequest as du, type FetchLastTradePriceRequest as dv, type FetchLastTradePricesRequest as dw, FetchMarketInfoError as dx, type FetchMarketInfoRequest as dy, type FetchMarketRequest as dz, ApproveErc1155ForAllError as e, type PrepareMarketSellOrderRequest as e$, IsWalletDeployedError as e0, type IsWalletDeployedRequest as e1, type ListAccountTradesRequest as e2, type ListActivityRequest as e3, type ListBuilderLeaderboardRequest as e4, type ListBuilderTradesRequest as e5, type ListBuilderVolumeRequest as e6, type ListClosedPositionsRequest as e7, type ListComboMarketsRequest as e8, type ListComboPositionsRequest as e9, type OrderDraft as eA, type OrderPostingWorkflow as eB, type OrderWorkflow as eC, type OrderWorkflowRequest as eD, type PerpsBboSubscription as eE, type PerpsBookSubscription as eF, type PerpsCandlesSubscription as eG, type PerpsDepositWorkflow as eH, type PerpsDepositWorkflowRequest as eI, type PerpsMarketDataEventType as eJ, type PerpsMarketDataSubscription as eK, type PerpsStatisticsSubscription as eL, type PerpsStreamingCandleInterval as eM, type PerpsTickersSubscription as eN, type PerpsTradesSubscription as eO, type PostOrdersRequest as eP, PrepareErc1155ApprovalForAllError as eQ, type PrepareErc1155ApprovalForAllRequest as eR, PrepareErc20ApprovalError as eS, type PrepareErc20ApprovalRequest as eT, PrepareErc20TransferError as eU, type PrepareErc20TransferRequest as eV, PrepareGaslessTransactionError as eW, type PrepareGaslessTransactionRequest as eX, type PrepareLimitOrderRequest as eY, type PrepareMarketBuyOrderRequest as eZ, type PrepareMarketOrderRequest as e_, type ListCommentsByUserAddressRequest as ea, type ListCommentsRequest as eb, type ListCurrentRewardsRequest as ec, type ListEventsRequest as ed, ListMarketClarificationsError as ee, type ListMarketClarificationsRequest as ef, type ListMarketHoldersRequest as eg, type ListMarketPositionsRequest as eh, type ListMarketRewardsRequest as ei, type ListMarketsRequest as ej, type ListOpenInterestRequest as ek, type ListOpenOrdersRequest as el, type ListPositionsRequest as em, type ListSeriesRequest as en, type ListTagsRequest as eo, type ListTeamsRequest as ep, type ListTraderLeaderboardRequest as eq, type ListTradesRequest as er, type ListUserEarningsAndMarketsConfigRequest as es, type ListUserEarningsForDayRequest as et, type MarketEventType as eu, type MarketSubscription as ev, MergeComboPositionError as ew, MergeMarketPositionError as ex, type MergePositionsWorkflow as ey, type MergePositionsWorkflowRequest as ez, ApproveErc20Error as f, fetchBalanceAllowance as f$, PrepareMergeComboPositionError as f0, type PrepareMergeComboPositionRequest as f1, PrepareMergeMarketPositionError as f2, type PrepareMergeMarketPositionRequest as f3, PrepareMergePositionsError as f4, type PrepareMergePositionsRequest as f5, PreparePerpsDepositError as f6, PrepareRedeemComboPositionError as f7, type PrepareRedeemComboPositionRequest as f8, type PrepareRedeemMarketPositionsByConditionIdRequest as f9, type SignedOrder as fA, SplitComboPositionError as fB, SplitMarketPositionError as fC, type SplitPositionWorkflow as fD, type SplitPositionWorkflowRequest as fE, type SportsEventType as fF, type SportsSubscription as fG, type SubscribeError as fH, type SubscriptionHandle as fI, type TradingApprovalsWorkflow as fJ, type TradingApprovalsWorkflowRequest as fK, UpdateBalanceAllowanceError as fL, type UpdateBalanceAllowanceRequest as fM, type UserEventType as fN, type UserSubscription as fO, WaitForGaslessTransactionError as fP, approveErc1155ForAll as fQ, approveErc20 as fR, cancelAll as fS, cancelMarketOrders as fT, cancelOrder as fU, cancelOrders as fV, deployDepositWallet as fW, depositToPerps as fX, downloadAccountingSnapshot as fY, dropNotifications as fZ, estimateMarketPrice as f_, type PrepareRedeemMarketPositionsByMarketIdRequest as fa, PrepareRedeemMarketPositionsError as fb, type PrepareRedeemMarketPositionsRequest as fc, PrepareRedeemPositionsError as fd, type PrepareRedeemPositionsRequest as fe, PrepareSplitComboPositionError as ff, type PrepareSplitComboPositionRequest as fg, PrepareSplitMarketPositionError as fh, type PrepareSplitMarketPositionRequest as fi, PrepareSplitPositionError as fj, type PrepareSplitPositionRequest as fk, PrepareTradingApprovalsError as fl, type PublicRealtimeEvent as fm, type PublicRealtimeTopic as fn, type PublicSubscriptionSpec as fo, type RedeemPositionsWorkflow as fp, type RedeemPositionsWorkflowRequest as fq, ResolveConditionByTokenError as fr, type ResolveConditionByTokenRequest as fs, type RfqConfirmationRejectedErrorOptions as ft, type RfqExecutionUpdateEvent as fu, type SearchRequest as fv, type SearchResults as fw, type SecureRealtimeEvent as fx, type SecureRealtimeTopic as fy, type SecureSubscriptionSpec as fz, BasePublicClient as g, listPerpsFundingHistory as g$, fetchBuilderFeeRates as g0, fetchBuilderVolume as g1, fetchClosedOnlyMode as g2, fetchCommentsById as g3, fetchEvent as g4, fetchEventLiveVolume as g5, fetchEventTags as g6, fetchExecuteParams as g7, fetchLastTradePrice as g8, fetchLastTradePrices as g9, fetchSpread as gA, fetchSpreads as gB, fetchTag as gC, fetchTickSize as gD, fetchTotalEarningsForUserForDay as gE, fetchTradedMarketCount as gF, fetchTransaction as gG, isWalletDeployed as gH, listAccountTrades as gI, listActivity as gJ, listBuilderLeaderboard as gK, listBuilderTrades as gL, listClosedPositions as gM, listComboMarkets as gN, listComboPositions as gO, listComments as gP, listCommentsByUserAddress as gQ, listCurrentRewards as gR, listEvents as gS, listMarketClarifications as gT, listMarketHolders as gU, listMarketPositions as gV, listMarketRewards as gW, listMarkets as gX, listOpenInterest as gY, listOpenOrders as gZ, listPerpsCandles as g_, fetchMarket as ga, fetchMarketInfo as gb, fetchMarketTags as gc, fetchMidpoint as gd, fetchMidpoints as ge, fetchNegRisk as gf, fetchNotifications as gg, fetchOrder as gh, fetchOrderBook as gi, fetchOrderBooks as gj, fetchOrderScoring as gk, fetchOrdersScoring as gl, fetchPerpsBook as gm, fetchPerpsFees as gn, fetchPerpsInstruments as go, fetchPerpsTicker as gp, fetchPerpsTickers as gq, fetchPortfolioValue as gr, fetchPrice as gs, fetchPriceHistory as gt, fetchPrices as gu, fetchPublicProfile as gv, fetchRelatedTagResources as gw, fetchRelatedTags as gx, fetchRewardPercentages as gy, fetchSeries as gz, BaseSecureClient as h, listPerpsTrades as h0, listPositions as h1, listSeries as h2, listTags as h3, listTeams as h4, listTraderLeaderboard as h5, listTrades as h6, listUserEarningsAndMarketsConfig as h7, listUserEarningsForDay as h8, mergeComboPosition as h9, splitComboPosition as hA, splitMarketPosition as hB, splitPosition as hC, subscribe as hD, transferErc20 as hE, updateBalanceAllowance as hF, withdrawFromPerps as hG, mergeMarketPosition as ha, mergePositions as hb, openPerpsSession as hc, openRfqSession as hd, postOrder as he, postOrders as hf, prepareErc1155ApprovalForAll as hg, prepareErc20Approval as hh, prepareErc20Transfer as hi, prepareGaslessTransaction as hj, prepareMergeComboPosition as hk, prepareMergeMarketPosition as hl, prepareMergePositions as hm, preparePerpsDeposit as hn, prepareRedeemComboPosition as ho, prepareRedeemMarketPositions as hp, prepareRedeemPositions as hq, prepareSplitComboPosition as hr, prepareSplitMarketPosition as hs, prepareSplitPosition as ht, prepareTradingApprovals as hu, redeemPositions as hv, resolveConditionByToken as hw, revokePerpsCredentials as hx, search as hy, setupTradingApprovals as hz, type BeginAuthenticationRequest as i, type CancelAllPerpsOrdersRequest as j, CancelMarketOrdersError as k, CancelOrderError as l, CancelOrdersError as m, type CancelPerpsOrderRequest as n, type CancelPerpsOrdersRequest as o, CancelledSigningError as p, type Client as q, type ClientActions as r, type ClientDecorator as s, type ClobEndpoints as t, type CreatePerpsSessionRequest as u, CreateSecureClientError as v, DepositToPerpsError as w, type DepositToPerpsRequest as x, type DiscoveryActions as y, DownloadAccountingSnapshotError as z };