@polymarket/client 0.1.0-beta.7 → 0.1.0-beta.9

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,6 +1,7 @@
1
1
  import * as _polymarket_bindings from '@polymarket/bindings';
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';
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';
4
5
  import { WalletType, Event, TagReference, Market, Series, Tag, RelatedTag, SportsMetadata, SportsMarketTypesResponse, Team, PublicProfile, Comment, Profile, SearchTag } from '@polymarket/bindings/gamma';
5
6
  import { RelayerTransactionType, RelayerExecuteParams, GaslessTransaction } from '@polymarket/bindings/relayer';
6
7
  import { ZodError, z } from 'zod';
@@ -8,8 +9,10 @@ import * as _polymarket_bindings_clob from '@polymarket/bindings/clob';
8
9
  import { ClobTrade, NotificationsResponse, BuilderTrade, Prices, OrderBook, LastTradePrice, LastTradePriceForToken, PriceHistoryPoint, CurrentReward, MarketReward, OrdersScoringResponse, UserEarning, TotalUserEarning, UserRewardsEarning, RewardsPercentages, CancelOrdersResponse, SignatureType, OrderResponse, OrderResponses, OpenOrder, ApiKeyCreds, BalanceAllowanceResponse, BuilderFeeRates, MarketInfo } from '@polymarket/bindings/clob';
9
10
  import * as _polymarket_bindings_data from '@polymarket/bindings/data';
10
11
  import { Value, Traded, ClosedPosition, ComboPosition, Position, MetaMarketPosition, Activity, LeaderboardEntry, BuilderVolumeEntry, TraderLeaderboardEntry, LiveVolume, OpenInterest, MetaHolder, Trade } from '@polymarket/bindings/data';
11
- import { ComboMarket, RfqQuoteRequest, RfqRequestedSize, RfqSide, RfqQuoteAck, RfqConfirmationRequest, RfqConfirmationAck as RfqConfirmationAck$1, RfqExecutionUpdate, RfqQuoteCancelAck, RfqErrorCode, RfqId, RfqQuoteId } from '@polymarket/bindings/rfq';
12
- import { CommentsEvent, CryptoPricesTopic, EquityPricesTopic, EquityPricesEvent, MarketEvent, StandardMarketEvent, UserEvent, SportsEvent, CryptoPricesBinanceEvent, CryptoPricesChainlinkEvent, CryptoPricesEvent } from '@polymarket/bindings/subscriptions';
12
+ 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, PerpsKlineInterval, PerpsInstrumentIdSchema } from '@polymarket/bindings/perps';
15
+ import { PerpsSessionEvent, CommentsEvent, CryptoPricesTopic, EquityPricesTopic, EquityPricesEvent, MarketEvent, StandardMarketEvent, UserEvent, SportsEvent, CryptoPricesBinanceEvent, CryptoPricesChainlinkEvent, PerpsTradeEvent, PerpsBboEvent, PerpsBookEvent, PerpsCandleEvent, PerpsTickerEvent, PerpsStatisticEvent, CryptoPricesEvent, PerpsMarketDataEvent } from '@polymarket/bindings/subscriptions';
13
16
  import { Hex } from 'ox';
14
17
 
15
18
  type ResponseValidationContext = {
@@ -120,6 +123,10 @@ type SendErc20TransferTransactionRequest = {
120
123
  kind: 'sendErc20TransferTransaction';
121
124
  request: SignerTransactionRequest;
122
125
  };
126
+ type SendPerpsDepositTransactionRequest = {
127
+ kind: 'sendPerpsDepositTransaction';
128
+ request: SignerTransactionRequest;
129
+ };
123
130
  type SignGaslessTypedDataRequest = {
124
131
  kind: 'signGaslessTypedData';
125
132
  payload: TypedDataPayload;
@@ -1596,6 +1603,9 @@ type DiscoveryActions = {
1596
1603
  /**
1597
1604
  * Runs a public full-text search.
1598
1605
  *
1606
+ * `keepClosedMarkets` is an hour window for including recently closed markets
1607
+ * when searching active events.
1608
+ *
1599
1609
  * @throws {@link SearchError}
1600
1610
  * Thrown on failure.
1601
1611
  *
@@ -1785,6 +1795,107 @@ type DiscoveryActions = {
1785
1795
  declare function discoveryActions(client: BasePublicClient): DiscoveryActions;
1786
1796
  declare function discoveryActions(client: BaseSecureClient): DiscoveryActions;
1787
1797
 
1798
+ type PublicPerpsActions = {
1799
+ /**
1800
+ * Fetches Perps instruments.
1801
+ *
1802
+ * @throws {@link FetchPerpsInstrumentsError}
1803
+ * Thrown on failure.
1804
+ */
1805
+ fetchPerpsInstruments(request?: FetchPerpsInstrumentsRequest): Promise<PerpsInstrument[]>;
1806
+ /**
1807
+ * Fetches the current Perps ticker for an instrument.
1808
+ *
1809
+ * @throws {@link FetchPerpsTickerError}
1810
+ * Thrown on failure.
1811
+ */
1812
+ fetchPerpsTicker(request: FetchPerpsTickerRequest): Promise<PerpsTicker>;
1813
+ /**
1814
+ * Fetches current Perps tickers.
1815
+ *
1816
+ * @throws {@link FetchPerpsTickersError}
1817
+ * Thrown on failure.
1818
+ */
1819
+ fetchPerpsTickers(request?: FetchPerpsTickersRequest): Promise<PerpsTicker[]>;
1820
+ /**
1821
+ * Fetches a Perps order book.
1822
+ *
1823
+ * @throws {@link FetchPerpsBookError}
1824
+ * Thrown on failure.
1825
+ */
1826
+ fetchPerpsBook(request: FetchPerpsBookRequest): Promise<PerpsBook>;
1827
+ /**
1828
+ * Lists Perps candles for an instrument with SDK-owned pagination.
1829
+ *
1830
+ * @throws {@link ListPerpsCandlesError}
1831
+ * Thrown on failure.
1832
+ */
1833
+ listPerpsCandles(request: ListPerpsCandlesRequest): Paginated<PerpsCandle[]>;
1834
+ /**
1835
+ * Lists Perps funding-rate history for an instrument with SDK-owned pagination.
1836
+ *
1837
+ * @throws {@link ListPerpsFundingHistoryError}
1838
+ * Thrown on failure.
1839
+ */
1840
+ listPerpsFundingHistory(request: ListPerpsFundingHistoryRequest): Paginated<PerpsFundingRate[]>;
1841
+ /**
1842
+ * Lists recent Perps trades for an instrument with SDK-owned pagination.
1843
+ *
1844
+ * @throws {@link ListPerpsTradesError}
1845
+ * Thrown on failure.
1846
+ */
1847
+ listPerpsTrades(request: ListPerpsTradesRequest): Paginated<PerpsPublicTrade[]>;
1848
+ /**
1849
+ * Fetches the Perps fee schedule.
1850
+ *
1851
+ * @throws {@link FetchPerpsFeesError}
1852
+ * Thrown on failure.
1853
+ */
1854
+ fetchPerpsFees(): Promise<PerpsFeeScheduleEntry[]>;
1855
+ };
1856
+ type SecurePerpsActions = PublicPerpsActions & {
1857
+ /**
1858
+ * Deposits collateral into Perps for the authenticated signer account.
1859
+ *
1860
+ * @throws {@link DepositToPerpsError}
1861
+ * Thrown on failure.
1862
+ */
1863
+ depositToPerps(request: DepositToPerpsRequest): Promise<TransactionHandle>;
1864
+ /**
1865
+ * Opens a Perps account session.
1866
+ *
1867
+ * @remarks
1868
+ * Omit `expiresIn` to create new delegated Perps credentials that expire after
1869
+ * one week. Pass `expiresIn` as a duration in milliseconds to use a shorter or
1870
+ * longer credential lifetime, or pass existing credentials to validate and
1871
+ * resume a previous session.
1872
+ *
1873
+ * @throws {@link OpenPerpsSessionError}
1874
+ * Thrown on failure.
1875
+ */
1876
+ openPerpsSession(request?: OpenPerpsSessionRequest): Promise<PerpsSession>;
1877
+ /**
1878
+ * Revokes delegated Perps credentials by proxy address.
1879
+ *
1880
+ * @remarks
1881
+ * This can revoke credentials outside the currently open Perps session.
1882
+ *
1883
+ * @throws {@link RevokePerpsCredentialsError}
1884
+ * Thrown on failure.
1885
+ */
1886
+ revokePerpsCredentials(request: RevokePerpsCredentialsRequest): Promise<void>;
1887
+ /**
1888
+ * Requests a Perps withdrawal to the authenticated wallet.
1889
+ *
1890
+ * @throws {@link WithdrawFromPerpsError}
1891
+ * Thrown on failure.
1892
+ */
1893
+ withdrawFromPerps(request: WithdrawFromPerpsRequest): Promise<PerpsWithdrawalId>;
1894
+ };
1895
+ type PerpsActions = PublicPerpsActions;
1896
+ declare function perpsActions(client: BasePublicClient): PublicPerpsActions;
1897
+ declare function perpsActions(client: BaseSecureClient): SecurePerpsActions;
1898
+
1788
1899
  type PublicRewardsActions = {
1789
1900
  /**
1790
1901
  * Lists current active market rewards.
@@ -2023,6 +2134,8 @@ type RfqQuoteResponse = {
2023
2134
  type RfqQuoteRejectedErrorOptions = {
2024
2135
  /** RFQ error code for the rejected quote. */
2025
2136
  code?: RfqErrorCode;
2137
+ /** Error identifier for the rejected quote. */
2138
+ errorId?: string;
2026
2139
  /** RFQ identifier for the rejected quote. */
2027
2140
  rfqId: RfqId;
2028
2141
  };
@@ -2032,6 +2145,7 @@ type RfqQuoteRejectedErrorOptions = {
2032
2145
  declare class RfqQuoteRejectedError extends PolymarketError {
2033
2146
  name: "RfqQuoteRejectedError";
2034
2147
  readonly code: RfqErrorCode | undefined;
2148
+ readonly errorId: string | undefined;
2035
2149
  readonly rfqId: RfqId;
2036
2150
  constructor(message: string, options: ErrorOptions & RfqQuoteRejectedErrorOptions);
2037
2151
  }
@@ -2042,6 +2156,8 @@ declare const RfqQuoteError: {
2042
2156
  type RfqCancelQuoteRejectedErrorOptions = {
2043
2157
  /** RFQ error code for the rejected cancellation request. */
2044
2158
  code?: RfqErrorCode;
2159
+ /** Error identifier for the rejected cancellation request. */
2160
+ errorId?: string;
2045
2161
  /** RFQ identifier for the cancellation request. */
2046
2162
  rfqId: RfqId;
2047
2163
  /** Quote identifier for the cancellation request. */
@@ -2053,6 +2169,7 @@ type RfqCancelQuoteRejectedErrorOptions = {
2053
2169
  declare class RfqCancelQuoteRejectedError extends PolymarketError {
2054
2170
  name: "RfqCancelQuoteRejectedError";
2055
2171
  readonly code: RfqErrorCode | undefined;
2172
+ readonly errorId: string | undefined;
2056
2173
  readonly rfqId: RfqId;
2057
2174
  readonly quoteId: RfqQuoteId;
2058
2175
  constructor(message: string, options: ErrorOptions & RfqCancelQuoteRejectedErrorOptions);
@@ -2064,6 +2181,8 @@ declare const RfqCancelQuoteError: {
2064
2181
  type RfqConfirmationRejectedErrorOptions = {
2065
2182
  /** RFQ error code for the rejected confirmation decision. */
2066
2183
  code?: RfqErrorCode;
2184
+ /** Error identifier for the rejected confirmation decision. */
2185
+ errorId?: string;
2067
2186
  /** RFQ identifier for the rejected confirmation decision. */
2068
2187
  rfqId: RfqId;
2069
2188
  /** Quote identifier for the rejected confirmation decision. */
@@ -2075,6 +2194,7 @@ type RfqConfirmationRejectedErrorOptions = {
2075
2194
  declare class RfqConfirmationRejectedError extends PolymarketError {
2076
2195
  name: "RfqConfirmationRejectedError";
2077
2196
  readonly code: RfqErrorCode | undefined;
2197
+ readonly errorId: string | undefined;
2078
2198
  readonly rfqId: RfqId;
2079
2199
  readonly quoteId: RfqQuoteId;
2080
2200
  constructor(message: string, options: ErrorOptions & RfqConfirmationRejectedErrorOptions);
@@ -2151,10 +2271,15 @@ interface RfqConfirmationRequestEvent extends RfqConfirmationRequest {
2151
2271
  */
2152
2272
  interface RfqExecutionUpdateEvent extends RfqExecutionUpdate {
2153
2273
  }
2274
+ /**
2275
+ * Confirmed combo trade broadcast visible to all authenticated quoters.
2276
+ */
2277
+ interface RfqTradeEvent extends RfqTrade {
2278
+ }
2154
2279
  /**
2155
2280
  * Event emitted by an RFQ session.
2156
2281
  */
2157
- type RfqEvent = RfqQuoteRequestEvent | RfqConfirmationRequestEvent | RfqExecutionUpdateEvent;
2282
+ type RfqEvent = RfqQuoteRequestEvent | RfqConfirmationRequestEvent | RfqExecutionUpdateEvent | RfqTradeEvent;
2158
2283
  interface RfqSession extends AsyncIterable<RfqEvent> {
2159
2284
  /**
2160
2285
  * Requests cancellation of a submitted RFQ quote.
@@ -3037,7 +3162,7 @@ type SecureWalletActions = {
3037
3162
  * const handle = await client.transferErc20({
3038
3163
  * amount: 1n,
3039
3164
  * recipientAddress: client.account.signer,
3040
- * tokenAddress: client.environment.collateralToken,
3165
+ * tokenAddress: client.environment.contracts.collateralToken,
3041
3166
  * });
3042
3167
  *
3043
3168
  * const outcome = await handle.wait();
@@ -3155,8 +3280,8 @@ type SecureWalletActions = {
3155
3280
  };
3156
3281
  declare function walletActions(client: BaseSecureClient): SecureWalletActions;
3157
3282
 
3158
- type PublicActions = Prettify<DiscoveryActions & DataActions & AnalyticsActions & PublicAccountActions & PublicRewardsActions & PublicSubscriptionsActions>;
3159
- type SecureActions = Prettify<DiscoveryActions & DataActions & AnalyticsActions & SecureAccountActions & SecureRewardsActions & SecureRfqActions & SecureSubscriptionsActions & SecureWalletActions & SecureTradingActions>;
3283
+ type PublicActions = Prettify<DiscoveryActions & DataActions & AnalyticsActions & PublicPerpsActions & PublicAccountActions & PublicRewardsActions & PublicSubscriptionsActions>;
3284
+ type SecureActions = Prettify<DiscoveryActions & DataActions & AnalyticsActions & SecurePerpsActions & SecureAccountActions & SecureRewardsActions & SecureRfqActions & SecureSubscriptionsActions & SecureWalletActions & SecureTradingActions>;
3160
3285
  declare function allActions(client: BasePublicClient): PublicActions;
3161
3286
  declare function allActions(client: BaseSecureClient): SecureActions;
3162
3287
 
@@ -3169,17 +3294,76 @@ type WalletDerivationConfig = {
3169
3294
  safeFactory: EvmAddress;
3170
3295
  safeInitCodeHash: Hex.Hex;
3171
3296
  };
3297
+ type RestEndpoint = {
3298
+ rest: string;
3299
+ headers?: Record<string, string>;
3300
+ };
3301
+ type WebSocketEndpoint = {
3302
+ ws: string;
3303
+ headers?: Record<string, string>;
3304
+ };
3305
+ type ClobEndpoints = RestEndpoint & {
3306
+ market: WebSocketEndpoint;
3307
+ user: WebSocketEndpoint;
3308
+ };
3309
+ type RfqEndpoints = RestEndpoint & WebSocketEndpoint;
3310
+ type PerpsEndpoints = RestEndpoint & WebSocketEndpoint;
3311
+ type EnvironmentContracts = {
3312
+ collateralToken: EvmAddress;
3313
+ conditionalTokens: EvmAddress;
3314
+ negRiskAdapter: EvmAddress;
3315
+ collateralAdapter: EvmAddress;
3316
+ negRiskCollateralAdapter: EvmAddress;
3317
+ standardExchange: EvmAddress;
3318
+ negRiskExchange: EvmAddress;
3319
+ exchangeV3: EvmAddress;
3320
+ protocolV2Router: EvmAddress;
3321
+ combinatorialModule: EvmAddress;
3322
+ positionManager: EvmAddress;
3323
+ autoRedeemOperator: EvmAddress;
3324
+ safeMultisend: EvmAddress;
3325
+ relayHub: EvmAddress;
3326
+ perpsDepositContract: EvmAddress;
3327
+ };
3172
3328
  type EnvironmentConfig = {
3173
3329
  name: string;
3174
3330
  chainId: number;
3175
3331
  };
3332
+ type EnvironmentConfigForkEndpoint = Partial<RestEndpoint & WebSocketEndpoint>;
3333
+ type EnvironmentConfigFork = {
3334
+ name: string;
3335
+ chainId?: number;
3336
+ rpc?: string;
3337
+ walletDerivation?: Partial<WalletDerivationConfig>;
3338
+ contracts?: Partial<EnvironmentContracts>;
3339
+ clob?: Partial<RestEndpoint> & {
3340
+ market?: Partial<WebSocketEndpoint>;
3341
+ user?: Partial<WebSocketEndpoint>;
3342
+ };
3343
+ relayer?: Partial<RestEndpoint>;
3344
+ gamma?: Partial<RestEndpoint>;
3345
+ data?: Partial<RestEndpoint>;
3346
+ rfq?: EnvironmentConfigForkEndpoint;
3347
+ perps?: EnvironmentConfigForkEndpoint;
3348
+ rtds?: Partial<WebSocketEndpoint>;
3349
+ sports?: Partial<WebSocketEndpoint>;
3350
+ relayerMaxPolls?: number;
3351
+ relayerPollFrequencyMs?: number;
3352
+ };
3176
3353
  /**
3177
3354
  * The production environment configuration.
3178
3355
  */
3179
3356
  declare const production: EnvironmentConfig;
3357
+ /**
3358
+ * Forks an environment config from production unless a different base is passed.
3359
+ *
3360
+ * @experimental This helper is intended for advanced custom environment use,
3361
+ * not general SDK usage. Its signature may change without notice.
3362
+ */
3363
+ declare function forkEnvironmentConfig(fork: EnvironmentConfigFork, base?: EnvironmentConfig): EnvironmentConfig;
3180
3364
 
3181
3365
  type ServiceRequest = {
3182
- method: 'DELETE' | 'GET' | 'POST';
3366
+ method: 'DELETE' | 'GET' | 'PATCH' | 'POST';
3183
3367
  path: string;
3184
3368
  body?: string;
3185
3369
  headers?: HeadersInit;
@@ -5543,6 +5727,678 @@ declare const ListMarketPositionsError: {
5543
5727
  */
5544
5728
  declare function listMarketPositions(client: BaseClient, request: ListMarketPositionsRequest): Paginated<MetaMarketPosition[]>;
5545
5729
 
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.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>>;
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.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>;
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.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>>;
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.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>;
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.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>>;
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.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>;
5837
+ }, z.core.$strip>, z.ZodTransform<{
5838
+ cursor: PaginationCursor;
5839
+ params: undefined;
5840
+ }, {
5841
+ 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.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>>;
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.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>;
5866
+ }, z.core.$strip>, z.ZodTransform<{
5867
+ cursor: PaginationCursor;
5868
+ params: undefined;
5869
+ }, {
5870
+ 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.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>>;
5878
+ }, z.core.$strip>, z.ZodTransform<{
5879
+ cursor: PaginationCursor | undefined;
5880
+ params: PerpsIntervalHistoryParams;
5881
+ }, {
5882
+ interval: _polymarket_bindings_perps.PerpsPnlInterval;
5883
+ start: number;
5884
+ end?: number | undefined;
5885
+ cursor?: PaginationCursor | undefined;
5886
+ }>>, z.ZodPipe<z.ZodObject<{
5887
+ cursor: z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>;
5888
+ }, z.core.$strip>, z.ZodTransform<{
5889
+ cursor: PaginationCursor;
5890
+ params: undefined;
5891
+ }, {
5892
+ 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.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>>;
5900
+ }, z.core.$strip>, z.ZodTransform<{
5901
+ cursor: PaginationCursor | undefined;
5902
+ params: PerpsIntervalHistoryParams;
5903
+ }, {
5904
+ interval: _polymarket_bindings_perps.PerpsPnlInterval;
5905
+ start: number;
5906
+ end?: number | undefined;
5907
+ cursor?: PaginationCursor | undefined;
5908
+ }>>, z.ZodPipe<z.ZodObject<{
5909
+ cursor: z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>;
5910
+ }, z.core.$strip>, z.ZodTransform<{
5911
+ cursor: PaginationCursor;
5912
+ params: undefined;
5913
+ }, {
5914
+ cursor: PaginationCursor;
5915
+ }>>]>;
5916
+ type ListPerpsPnlHistoryRequest = z.input<typeof ListPerpsPnlHistoryRequestSchema>;
5917
+
5918
+ /**
5919
+ * Good-til-cancelled Perps order.
5920
+ */
5921
+ type PerpsPlaceGtcOrderRequest = {
5922
+ /** Perps instrument identifier to trade. */
5923
+ instrumentId: number;
5924
+ /** Trade direction. */
5925
+ side: OrderSide;
5926
+ /** Limit price. */
5927
+ price: PerpsDecimalInput;
5928
+ /** Order quantity. */
5929
+ quantity: PerpsDecimalInput;
5930
+ /** Good-til-cancelled execution. */
5931
+ timeInForce: PerpsTimeInForce.GTC;
5932
+ /** Whether the order must rest instead of taking liquidity. */
5933
+ postOnly?: boolean;
5934
+ /** Optional caller-supplied idempotency identifier. */
5935
+ clientOrderId?: string;
5936
+ };
5937
+ /**
5938
+ * Immediate-or-cancel Perps order.
5939
+ */
5940
+ type PerpsPlaceIocOrderRequest = {
5941
+ /** Perps instrument identifier to trade. */
5942
+ instrumentId: number;
5943
+ /** Trade direction. */
5944
+ side: OrderSide;
5945
+ /** Optional limit price. Omit for market-style execution. */
5946
+ price?: PerpsDecimalInput;
5947
+ /** Order quantity. */
5948
+ quantity: PerpsDecimalInput;
5949
+ /** Immediate-or-cancel execution. */
5950
+ timeInForce: PerpsTimeInForce.IOC;
5951
+ postOnly?: undefined;
5952
+ /** Optional caller-supplied idempotency identifier. */
5953
+ clientOrderId?: string;
5954
+ };
5955
+ /**
5956
+ * Fill-or-kill Perps order.
5957
+ */
5958
+ type PerpsPlaceFokOrderRequest = {
5959
+ /** Perps instrument identifier to trade. */
5960
+ instrumentId: number;
5961
+ /** Trade direction. */
5962
+ side: OrderSide;
5963
+ /** Optional limit price. Omit for market-style execution. */
5964
+ price?: PerpsDecimalInput;
5965
+ /** Order quantity. */
5966
+ quantity: PerpsDecimalInput;
5967
+ /** Fill-or-kill execution. */
5968
+ timeInForce: PerpsTimeInForce.FOK;
5969
+ postOnly?: undefined;
5970
+ /** Optional caller-supplied idempotency identifier. */
5971
+ clientOrderId?: string;
5972
+ };
5973
+ /**
5974
+ * Request parameters for placing one Perps order.
5975
+ */
5976
+ type PlacePerpsOrderRequest = PerpsPlaceGtcOrderRequest | PerpsPlaceIocOrderRequest | PerpsPlaceFokOrderRequest;
5977
+ /** Request parameters for posting one or more Perps orders. */
5978
+ type PostPerpsOrdersRequest = {
5979
+ /** Orders to post as one command. */
5980
+ orders: PlacePerpsOrderRequest[];
5981
+ /** Optional command expiration timestamp in milliseconds. */
5982
+ expiresAt?: number;
5983
+ };
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>;
6010
+ type UpdatePerpsLeverageError = RequestRejectedError | SigningError | TransportError | UserInputError;
6011
+ declare const UpdatePerpsLeverageError: {
6012
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | RequestRejectedError;
6013
+ };
6014
+ declare const UpdatePerpsMarginRequestSchema: z.ZodObject<{
6015
+ instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
6016
+ amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings.DecimalString, number>>]>;
6017
+ }, z.core.$strip>;
6018
+ type UpdatePerpsMarginRequest = z.input<typeof UpdatePerpsMarginRequestSchema>;
6019
+ type UpdatePerpsMarginError = RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
6020
+ declare const UpdatePerpsMarginError: {
6021
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError;
6022
+ };
6023
+
6024
+ type PerpsSessionOptions = {
6025
+ chainId: number;
6026
+ credentials: PerpsCredentials;
6027
+ headers?: Record<string, string>;
6028
+ onClose: (session: PerpsSession) => void;
6029
+ restUrl: string;
6030
+ wsUrl: string;
6031
+ };
6032
+ declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
6033
+ #private;
6034
+ readonly credentials: PerpsCredentials;
6035
+ constructor(options: PerpsSessionOptions);
6036
+ get closed(): boolean;
6037
+ connect(): Promise<void>;
6038
+ close(): Promise<void>;
6039
+ [Symbol.asyncIterator](): AsyncIterator<PerpsSessionEvent>;
6040
+ fetchBalances(): Promise<PerpsBalance[]>;
6041
+ fetchPortfolio(): Promise<PerpsPortfolio>;
6042
+ fetchAccountConfig(request?: FetchPerpsAccountConfigRequest): Promise<PerpsAccountConfig[]>;
6043
+ fetchOpenOrders(request?: FetchPerpsOpenOrdersRequest): Promise<PerpsOrder[]>;
6044
+ fetchOrders(request?: FetchPerpsOrdersRequest): Promise<PerpsOrder[]>;
6045
+ listFills(request?: ListPerpsFillsRequest): Paginated<PerpsAccountFill[]>;
6046
+ listFundingPayments(request?: ListPerpsFundingPaymentsRequest): Paginated<PerpsAccountFundingPayment[]>;
6047
+ listDeposits(request?: ListPerpsDepositsRequest): Paginated<PerpsDeposit[]>;
6048
+ listWithdrawals(request?: ListPerpsWithdrawalsRequest): Paginated<PerpsWithdrawal[]>;
6049
+ listEquityHistory(request: ListPerpsEquityHistoryRequest): Paginated<PerpsEquityPoint[]>;
6050
+ listPnlHistory(request: ListPerpsPnlHistoryRequest): Paginated<PerpsPnlPoint[]>;
6051
+ /**
6052
+ * Places one Perps order and resolves with the first matching orders update.
6053
+ *
6054
+ * @throws Thrown on failure.
6055
+ */
6056
+ placeOrder(request: PlacePerpsOrderRequest): Promise<PerpsOrder>;
6057
+ /**
6058
+ * Posts one or more Perps orders and returns queue-entry acknowledgements.
6059
+ *
6060
+ * @remarks
6061
+ * This is a low-level method. Most SDK consumers should prefer `placeOrder`.
6062
+ */
6063
+ postOrders(request: PostPerpsOrdersRequest): Promise<PerpsPostOrderAck[]>;
6064
+ /**
6065
+ * Cancels one Perps order and returns the cancel result.
6066
+ *
6067
+ * @remarks
6068
+ * The returned status reflects whether the cancel happened.
6069
+ */
6070
+ cancelOrder(request: CancelPerpsOrderRequest): Promise<PerpsCancelOrderResult>;
6071
+ /**
6072
+ * Cancels one or more Perps orders and returns one result per requested order.
6073
+ *
6074
+ * @remarks
6075
+ * Each returned status reflects whether that cancel happened.
6076
+ */
6077
+ cancelOrders(request: CancelPerpsOrdersRequest): Promise<PerpsCancelOrderResult[]>;
6078
+ updateLeverage(request: UpdatePerpsLeverageRequest): Promise<void>;
6079
+ updateMargin(request: UpdatePerpsMarginRequest): Promise<void>;
6080
+ }
6081
+
6082
+ type PerpsPublicReadError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6083
+ declare const PerpsPublicReadError: {
6084
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6085
+ };
6086
+ type PerpsCandlesParams = {
6087
+ instrumentId: z.output<typeof PerpsInstrumentIdSchema>;
6088
+ interval: PerpsKlineInterval;
6089
+ startTimestamp: number;
6090
+ endTimestamp: number;
6091
+ };
6092
+ type PerpsTimeRangeParams = {
6093
+ instrumentId: z.output<typeof PerpsInstrumentIdSchema>;
6094
+ startTimestamp: number;
6095
+ endTimestamp: number;
6096
+ };
6097
+ declare const FetchPerpsInstrumentsRequestSchema: z.ZodDefault<z.ZodObject<{
6098
+ instrumentId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>>;
6099
+ instrumentType: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_perps.PerpsInstrumentType>>;
6100
+ category: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_perps.PerpsInstrumentCategory>>;
6101
+ }, z.core.$strip>>;
6102
+ type FetchPerpsInstrumentsRequest = z.input<typeof FetchPerpsInstrumentsRequestSchema>;
6103
+ type FetchPerpsInstrumentsError = PerpsPublicReadError;
6104
+ declare const FetchPerpsInstrumentsError: {
6105
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6106
+ };
6107
+ /**
6108
+ * Fetches Perps instruments.
6109
+ *
6110
+ * @remarks
6111
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
6112
+ *
6113
+ * @throws {@link FetchPerpsInstrumentsError}
6114
+ * Thrown on failure.
6115
+ */
6116
+ declare function fetchPerpsInstruments(client: BaseClient, request?: FetchPerpsInstrumentsRequest): Promise<PerpsInstrument[]>;
6117
+ declare const FetchPerpsTickerRequestSchema: z.ZodObject<{
6118
+ instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>;
6119
+ }, z.core.$strip>;
6120
+ type FetchPerpsTickerRequest = z.input<typeof FetchPerpsTickerRequestSchema>;
6121
+ type FetchPerpsTickerError = PerpsPublicReadError;
6122
+ declare const FetchPerpsTickerError: {
6123
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6124
+ };
6125
+ /**
6126
+ * Fetches the current Perps ticker for an instrument.
6127
+ *
6128
+ * @remarks
6129
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
6130
+ *
6131
+ * @throws {@link FetchPerpsTickerError}
6132
+ * Thrown on failure.
6133
+ */
6134
+ declare function fetchPerpsTicker(client: BaseClient, request: FetchPerpsTickerRequest): Promise<PerpsTicker>;
6135
+ declare const FetchPerpsTickersRequestSchema: z.ZodDefault<z.ZodObject<{
6136
+ instrumentId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>>;
6137
+ }, z.core.$strip>>;
6138
+ type FetchPerpsTickersRequest = z.input<typeof FetchPerpsTickersRequestSchema>;
6139
+ type FetchPerpsTickersError = PerpsPublicReadError;
6140
+ declare const FetchPerpsTickersError: {
6141
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6142
+ };
6143
+ /**
6144
+ * Fetches current Perps tickers.
6145
+ *
6146
+ * @remarks
6147
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
6148
+ *
6149
+ * @throws {@link FetchPerpsTickersError}
6150
+ * Thrown on failure.
6151
+ */
6152
+ declare function fetchPerpsTickers(client: BaseClient, request?: FetchPerpsTickersRequest): Promise<PerpsTicker[]>;
6153
+ type PerpsBookDepth = 10 | 100 | 500 | 1000;
6154
+ declare const FetchPerpsBookRequestSchema: z.ZodObject<{
6155
+ instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>;
6156
+ depth: z.ZodDefault<z.ZodType<PerpsBookDepth, unknown, z.core.$ZodTypeInternals<PerpsBookDepth, unknown>>>;
6157
+ }, z.core.$strip>;
6158
+ type FetchPerpsBookRequest = z.input<typeof FetchPerpsBookRequestSchema>;
6159
+ type FetchPerpsBookError = PerpsPublicReadError;
6160
+ declare const FetchPerpsBookError: {
6161
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6162
+ };
6163
+ /**
6164
+ * Fetches a Perps order book.
6165
+ *
6166
+ * @remarks
6167
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
6168
+ *
6169
+ * @throws {@link FetchPerpsBookError}
6170
+ * Thrown on failure.
6171
+ */
6172
+ declare function fetchPerpsBook(client: BaseClient, request: FetchPerpsBookRequest): Promise<PerpsBook>;
6173
+ declare const ListPerpsCandlesRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
6174
+ instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>;
6175
+ interval: z.ZodEnum<typeof PerpsKlineInterval>;
6176
+ start: z.ZodOptional<z.ZodNumber>;
6177
+ end: z.ZodOptional<z.ZodNumber>;
6178
+ cursor: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>>;
6179
+ }, z.core.$strip>, z.ZodTransform<{
6180
+ cursor: PaginationCursor | undefined;
6181
+ params: PerpsCandlesParams;
6182
+ }, {
6183
+ instrumentId: _polymarket_bindings_perps.PerpsInstrumentId;
6184
+ interval: PerpsKlineInterval;
6185
+ start?: number | undefined;
6186
+ end?: number | undefined;
6187
+ cursor?: PaginationCursor | undefined;
6188
+ }>>, z.ZodPipe<z.ZodObject<{
6189
+ cursor: z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>;
6190
+ }, z.core.$strip>, z.ZodTransform<{
6191
+ cursor: PaginationCursor;
6192
+ params: undefined;
6193
+ }, {
6194
+ cursor: PaginationCursor;
6195
+ }>>]>;
6196
+ type ListPerpsCandlesRequest = z.input<typeof ListPerpsCandlesRequestSchema>;
6197
+ type ListPerpsCandlesError = PerpsPublicReadError;
6198
+ declare const ListPerpsCandlesError: {
6199
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6200
+ };
6201
+ /**
6202
+ * Lists Perps candles for an instrument with SDK-owned pagination.
6203
+ *
6204
+ * @remarks
6205
+ * Defaults to the past 24 hours when `start` is omitted.
6206
+ *
6207
+ * @throws {@link ListPerpsCandlesError}
6208
+ * Thrown on failure.
6209
+ */
6210
+ declare function listPerpsCandles(client: BaseClient, request: ListPerpsCandlesRequest): Paginated<PerpsCandle[]>;
6211
+ declare const ListPerpsFundingHistoryRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
6212
+ instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>;
6213
+ start: z.ZodOptional<z.ZodNumber>;
6214
+ end: z.ZodOptional<z.ZodNumber>;
6215
+ cursor: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>>;
6216
+ }, z.core.$strip>, z.ZodTransform<{
6217
+ cursor: PaginationCursor | undefined;
6218
+ params: PerpsTimeRangeParams;
6219
+ }, {
6220
+ instrumentId: _polymarket_bindings_perps.PerpsInstrumentId;
6221
+ start?: number | undefined;
6222
+ end?: number | undefined;
6223
+ cursor?: PaginationCursor | undefined;
6224
+ }>>, z.ZodPipe<z.ZodObject<{
6225
+ cursor: z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>;
6226
+ }, z.core.$strip>, z.ZodTransform<{
6227
+ cursor: PaginationCursor;
6228
+ params: undefined;
6229
+ }, {
6230
+ cursor: PaginationCursor;
6231
+ }>>]>;
6232
+ type ListPerpsFundingHistoryRequest = z.input<typeof ListPerpsFundingHistoryRequestSchema>;
6233
+ type ListPerpsFundingHistoryError = PerpsPublicReadError;
6234
+ declare const ListPerpsFundingHistoryError: {
6235
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6236
+ };
6237
+ /**
6238
+ * Lists Perps funding-rate history for an instrument with SDK-owned pagination.
6239
+ *
6240
+ * @remarks
6241
+ * Defaults to the past 24 hours when `start` is omitted.
6242
+ *
6243
+ * @throws {@link ListPerpsFundingHistoryError}
6244
+ * Thrown on failure.
6245
+ */
6246
+ declare function listPerpsFundingHistory(client: BaseClient, request: ListPerpsFundingHistoryRequest): Paginated<PerpsFundingRate[]>;
6247
+ declare const ListPerpsTradesRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
6248
+ instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>;
6249
+ start: z.ZodOptional<z.ZodNumber>;
6250
+ end: z.ZodOptional<z.ZodNumber>;
6251
+ cursor: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>>;
6252
+ }, z.core.$strip>, z.ZodTransform<{
6253
+ cursor: PaginationCursor | undefined;
6254
+ params: PerpsTimeRangeParams;
6255
+ }, {
6256
+ instrumentId: _polymarket_bindings_perps.PerpsInstrumentId;
6257
+ start?: number | undefined;
6258
+ end?: number | undefined;
6259
+ cursor?: PaginationCursor | undefined;
6260
+ }>>, z.ZodPipe<z.ZodObject<{
6261
+ cursor: z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>;
6262
+ }, z.core.$strip>, z.ZodTransform<{
6263
+ cursor: PaginationCursor;
6264
+ params: undefined;
6265
+ }, {
6266
+ cursor: PaginationCursor;
6267
+ }>>]>;
6268
+ type ListPerpsTradesRequest = z.input<typeof ListPerpsTradesRequestSchema>;
6269
+ type ListPerpsTradesError = PerpsPublicReadError;
6270
+ declare const ListPerpsTradesError: {
6271
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6272
+ };
6273
+ /**
6274
+ * Lists recent Perps trades for an instrument with SDK-owned pagination.
6275
+ *
6276
+ * @remarks
6277
+ * Defaults to the past 24 hours when `start` is omitted.
6278
+ *
6279
+ * @throws {@link ListPerpsTradesError}
6280
+ * Thrown on failure.
6281
+ */
6282
+ declare function listPerpsTrades(client: BaseClient, request: ListPerpsTradesRequest): Paginated<PerpsPublicTrade[]>;
6283
+ type FetchPerpsFeesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError;
6284
+ declare const FetchPerpsFeesError: {
6285
+ isError(error: unknown): error is TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6286
+ };
6287
+ /**
6288
+ * Fetches the Perps fee schedule.
6289
+ *
6290
+ * @remarks
6291
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
6292
+ *
6293
+ * @throws {@link FetchPerpsFeesError}
6294
+ * Thrown on failure.
6295
+ */
6296
+ declare function fetchPerpsFees(client: BaseClient): Promise<PerpsFeeScheduleEntry[]>;
6297
+ declare const CreatePerpsSessionRequestSchema: z.ZodObject<{
6298
+ expiresIn: z.ZodDefault<z.ZodNumber>;
6299
+ label: z.ZodOptional<z.ZodString>;
6300
+ }, z.core.$strict>;
6301
+ declare const ResumePerpsSessionRequestSchema: z.ZodObject<{
6302
+ credentials: z.ZodObject<{
6303
+ proxy: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>;
6304
+ privateKey: z.ZodCustom<PrivateKey, PrivateKey>;
6305
+ secret: z.ZodString;
6306
+ expiresAt: z.ZodNumber;
6307
+ }, z.core.$strip>;
6308
+ }, z.core.$strict>;
6309
+ declare const RevokePerpsCredentialsRequestSchema: z.ZodObject<{
6310
+ proxy: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>;
6311
+ }, z.core.$strip>;
6312
+ type CreatePerpsSessionRequest = z.input<typeof CreatePerpsSessionRequestSchema>;
6313
+ type ResumePerpsSessionRequest = z.input<typeof ResumePerpsSessionRequestSchema>;
6314
+ type OpenPerpsSessionRequest = CreatePerpsSessionRequest | ResumePerpsSessionRequest;
6315
+ type RevokePerpsCredentialsRequest = z.input<typeof RevokePerpsCredentialsRequestSchema>;
6316
+ type PerpsDepositWorkflowRequest = GaslessWorkflowRequest | SendPerpsDepositTransactionRequest;
6317
+ type PerpsDepositWorkflow = AsyncGenerator<PerpsDepositWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
6318
+ declare const DepositToPerpsRequestSchema: z.ZodObject<{
6319
+ amount: z.ZodBigInt;
6320
+ metadata: z.ZodOptional<z.ZodString>;
6321
+ }, z.core.$strip>;
6322
+ declare const WithdrawFromPerpsRequestSchema: z.ZodObject<{
6323
+ amount: z.ZodBigInt;
6324
+ }, z.core.$strip>;
6325
+ type DepositToPerpsRequest = z.input<typeof DepositToPerpsRequestSchema>;
6326
+ type WithdrawFromPerpsRequest = z.input<typeof WithdrawFromPerpsRequestSchema>;
6327
+ type OpenPerpsSessionError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
6328
+ declare const OpenPerpsSessionError: {
6329
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6330
+ };
6331
+ type RevokePerpsCredentialsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
6332
+ declare const RevokePerpsCredentialsError: {
6333
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6334
+ };
6335
+ type PreparePerpsDepositError = UserInputError;
6336
+ declare const PreparePerpsDepositError: {
6337
+ isError(error: unknown): error is UserInputError;
6338
+ };
6339
+ type DepositToPerpsError = RateLimitError | RequestRejectedError | CancelledSigningError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
6340
+ declare const DepositToPerpsError: {
6341
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6342
+ };
6343
+ type WithdrawFromPerpsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
6344
+ declare const WithdrawFromPerpsError: {
6345
+ isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6346
+ };
6347
+ /**
6348
+ * Opens a Perps account session.
6349
+ *
6350
+ * @remarks
6351
+ * Omit `expiresIn` to create new delegated Perps credentials that expire after
6352
+ * one week. Pass `expiresIn` as a duration in milliseconds to use a shorter or
6353
+ * longer credential lifetime, or pass existing credentials to validate and
6354
+ * resume a previous session.
6355
+ *
6356
+ * @throws {@link OpenPerpsSessionError}
6357
+ * Thrown on failure.
6358
+ */
6359
+ declare function openPerpsSession(client: BaseSecureClient, request?: OpenPerpsSessionRequest): Promise<PerpsSession>;
6360
+ /**
6361
+ * Revokes delegated Perps credentials by proxy address.
6362
+ *
6363
+ * @remarks
6364
+ * This signs the revocation with the owner account. It can revoke credentials
6365
+ * outside the currently open Perps session.
6366
+ *
6367
+ * @throws {@link RevokePerpsCredentialsError}
6368
+ * Thrown on failure.
6369
+ */
6370
+ declare function revokePerpsCredentials(client: BaseSecureClient, request: RevokePerpsCredentialsRequest): Promise<void>;
6371
+ /**
6372
+ * Starts a Perps deposit workflow.
6373
+ *
6374
+ * @remarks
6375
+ * The deposit sends approved collateral into the Perps deposit contract and
6376
+ * credits the authenticated signer account. It does not approve collateral
6377
+ * spending; call `setupTradingApprovals` first when allowance is missing.
6378
+ *
6379
+ * @throws {@link PreparePerpsDepositError}
6380
+ * Thrown on failure.
6381
+ */
6382
+ declare function preparePerpsDeposit(client: BaseSecureClient, request: DepositToPerpsRequest): Promise<PerpsDepositWorkflow>;
6383
+ /**
6384
+ * Deposits collateral into Perps for the authenticated signer account.
6385
+ *
6386
+ * @throws {@link DepositToPerpsError}
6387
+ * Thrown on failure.
6388
+ */
6389
+ declare function depositToPerps(client: BaseSecureClient, request: DepositToPerpsRequest): Promise<TransactionHandle>;
6390
+ /**
6391
+ * Requests a Perps withdrawal to the authenticated wallet.
6392
+ *
6393
+ * @remarks
6394
+ * The withdrawal is signed by the owner account and sends funds to the SDK
6395
+ * wallet address associated with the authenticated account.
6396
+ *
6397
+ * @throws {@link WithdrawFromPerpsError}
6398
+ * Thrown on failure.
6399
+ */
6400
+ declare function withdrawFromPerps(client: BaseSecureClient, request: WithdrawFromPerpsRequest): Promise<PerpsWithdrawalId>;
6401
+
5546
6402
  /**
5547
6403
  * Parameters for preparing a market position split.
5548
6404
  */
@@ -5947,6 +6803,15 @@ declare const FetchPublicProfileError: {
5947
6803
  */
5948
6804
  declare function fetchPublicProfile(client: BaseClient, request: FetchPublicProfileRequest): Promise<PublicProfile | null>;
5949
6805
 
6806
+ declare enum SearchSort {
6807
+ Volume = "volume",
6808
+ Volume24Hr = "volume_24hr",
6809
+ Liquidity = "liquidity",
6810
+ Competitive = "competitive",
6811
+ ClosedTime = "closed_time",
6812
+ StartDate = "start_date",
6813
+ EndDate = "end_date"
6814
+ }
5950
6815
  declare const SearchRequestSchema: z.ZodObject<{
5951
6816
  q: z.ZodString;
5952
6817
  ascending: z.ZodOptional<z.ZodBoolean>;
@@ -5966,7 +6831,7 @@ declare const SearchRequestSchema: z.ZodObject<{
5966
6831
  }>>;
5967
6832
  searchProfiles: z.ZodOptional<z.ZodBoolean>;
5968
6833
  searchTags: z.ZodOptional<z.ZodBoolean>;
5969
- sort: z.ZodOptional<z.ZodString>;
6834
+ sort: z.ZodOptional<z.ZodEnum<typeof SearchSort>>;
5970
6835
  }, z.core.$strip>;
5971
6836
  type SearchRequest = z.input<typeof SearchRequestSchema>;
5972
6837
  type SearchResults = {
@@ -5983,6 +6848,8 @@ declare const SearchError: {
5983
6848
  *
5984
6849
  * @remarks
5985
6850
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
6851
+ * `keepClosedMarkets` is an hour window for including recently closed markets
6852
+ * when searching active events.
5986
6853
  *
5987
6854
  * @throws {@link SearchError}
5988
6855
  * Thrown on failure.
@@ -6102,6 +6969,9 @@ type SportsEventType = SportsEvent['type'];
6102
6969
  type CommentsEventType = CommentsEvent['type'];
6103
6970
  type CryptoPricesEventType = CryptoPricesEvent['type'];
6104
6971
  type EquityPricesEventType = EquityPricesEvent['type'];
6972
+ type PerpsMarketDataEventType = PerpsMarketDataEvent['type'];
6973
+ type PerpsStreamingCandleInterval = Exclude<PerpsKlineInterval, PerpsKlineInterval.OneSecond>;
6974
+ type PerpsInstrumentIdInput = number;
6105
6975
  type MarketSubscription = {
6106
6976
  topic: 'market';
6107
6977
  /** Token IDs whose market events should be delivered. */
@@ -6134,9 +7004,35 @@ type EquityPricesSubscription = {
6134
7004
  symbol: string;
6135
7005
  types?: readonly EquityPricesEventType[];
6136
7006
  };
6137
- type PublicSubscriptionSpec = MarketSubscription | SportsSubscription | CommentsSubscription | CryptoPricesSubscription | EquityPricesSubscription;
7007
+ type PerpsTradesSubscription = {
7008
+ topic: 'perps.trades';
7009
+ instrumentId: PerpsInstrumentIdInput;
7010
+ };
7011
+ type PerpsBboSubscription = {
7012
+ topic: 'perps.bbo';
7013
+ instrumentId: PerpsInstrumentIdInput;
7014
+ };
7015
+ type PerpsBookSubscription = {
7016
+ topic: 'perps.book';
7017
+ instrumentId: PerpsInstrumentIdInput;
7018
+ };
7019
+ type PerpsCandlesSubscription = {
7020
+ topic: 'perps.candles';
7021
+ instrumentId: PerpsInstrumentIdInput;
7022
+ interval: PerpsStreamingCandleInterval;
7023
+ };
7024
+ type PerpsTickersSubscription = {
7025
+ topic: 'perps.tickers';
7026
+ instrumentId?: PerpsInstrumentIdInput;
7027
+ };
7028
+ type PerpsStatisticsSubscription = {
7029
+ topic: 'perps.statistics';
7030
+ instrumentId?: PerpsInstrumentIdInput;
7031
+ };
7032
+ type PerpsMarketDataSubscription = PerpsTradesSubscription | PerpsBboSubscription | PerpsBookSubscription | PerpsCandlesSubscription | PerpsTickersSubscription | PerpsStatisticsSubscription;
7033
+ type PublicSubscriptionSpec = MarketSubscription | SportsSubscription | CommentsSubscription | CryptoPricesSubscription | EquityPricesSubscription | PerpsMarketDataSubscription;
6138
7034
  type SecureSubscriptionSpec = PublicSubscriptionSpec | UserSubscription;
6139
- type PublicRealtimeEvent = MarketEvent | SportsEvent | CommentsEvent | CryptoPricesEvent | EquityPricesEvent;
7035
+ type PublicRealtimeEvent = MarketEvent | SportsEvent | CommentsEvent | CryptoPricesEvent | EquityPricesEvent | PerpsMarketDataEvent;
6140
7036
  type SecureRealtimeEvent = PublicRealtimeEvent | UserEvent;
6141
7037
  type PublicRealtimeTopic = Prettify<PublicRealtimeEvent['topic']>;
6142
7038
  type SecureRealtimeTopic = Prettify<SecureRealtimeEvent['topic']>;
@@ -6147,6 +7043,12 @@ type EventByTopic = {
6147
7043
  'prices.crypto.binance': CryptoPricesBinanceEvent;
6148
7044
  'prices.crypto.chainlink': CryptoPricesChainlinkEvent;
6149
7045
  'prices.equity.pyth': EquityPricesEvent;
7046
+ 'perps.trades': PerpsTradeEvent;
7047
+ 'perps.bbo': PerpsBboEvent;
7048
+ 'perps.book': PerpsBookEvent;
7049
+ 'perps.candles': PerpsCandleEvent;
7050
+ 'perps.tickers': PerpsTickerEvent;
7051
+ 'perps.statistics': PerpsStatisticEvent;
6150
7052
  };
6151
7053
  type EventForMarketSubscription<TSpec extends MarketSubscription> = 'customFeatureEnabled' extends keyof TSpec ? true extends TSpec['customFeatureEnabled'] ? MarketEvent : StandardMarketEvent : StandardMarketEvent;
6152
7054
  type EventForSubscriptionSpec<TSpec extends SecureSubscriptionSpec> = TSpec extends MarketSubscription ? EventForMarketSubscription<TSpec> : TSpec extends {
@@ -6435,7 +7337,7 @@ declare const PrepareErc20TransferError: {
6435
7337
  * const workflow = await prepareErc20Transfer(client, {
6436
7338
  * amount: 1n,
6437
7339
  * recipientAddress: client.account.signer,
6438
- * tokenAddress: client.environment.collateralToken,
7340
+ * tokenAddress: client.environment.contracts.collateralToken,
6439
7341
  * });
6440
7342
  * ```
6441
7343
  *
@@ -6529,4 +7431,4 @@ type Signer = {
6529
7431
  sendTransaction(request: SignerTransactionRequest): Promise<TransactionHandle>;
6530
7432
  };
6531
7433
 
6532
- export { FetchRewardPercentagesError as $, type ApiKeyAuthorization as A, type BaseClient as B, CancelAllError as C, type DataActions as D, type EnvironmentConfig as E, FetchClosedOnlyModeError as F, FetchLastTradePricesError as G, FetchMarketError as H, FetchMarketTagsError as I, FetchMidpointError as J, FetchMidpointsError as K, FetchNotificationsError as L, FetchOrderBookError as M, FetchOrderBooksError as N, FetchOrderError as O, FetchOrderScoringError as P, FetchOrdersScoringError as Q, FetchPortfolioValueError as R, type Signer as S, type TypedDataPayload as T, UserInputError as U, FetchPriceError as V, FetchPriceHistoryError as W, FetchPricesError as X, FetchPublicProfileError as Y, FetchRelatedTagResourcesError as Z, FetchRelatedTagsError as _, type TypedData as a, type RfqQuoteRequestEvent as a$, FetchSeriesError as a0, FetchSpreadError as a1, FetchSpreadsError as a2, FetchTagError as a3, FetchTotalEarningsForUserForDayError as a4, FetchTradedMarketCountError as a5, InsufficientLiquidityError as a6, ListAccountTradesError as a7, ListActivityError as a8, ListBuilderLeaderboardError as a9, PageSizeSchema as aA, type Paginated as aB, PostOrderError as aC, PostOrdersError as aD, type PublicAccountActions as aE, type PublicActions as aF, type PublicClient as aG, type PublicClientOptions as aH, type PublicRewardsActions as aI, type PublicSubscriptionsActions as aJ, RateLimitError as aK, RedeemPositionsError as aL, RequestRejectedError as aM, type RequestRejectedErrorOptions as aN, type RfqCancelQuoteAck as aO, RfqCancelQuoteError as aP, RfqCancelQuoteRejectedError as aQ, type RfqCancelQuoteRejectedErrorOptions as aR, type RfqConfirmationAck as aS, RfqConfirmationError as aT, RfqConfirmationRejectedError as aU, type RfqConfirmationRequestEvent as aV, type RfqEvent as aW, RfqQuoteError as aX, type RfqQuoteReference as aY, RfqQuoteRejectedError as aZ, type RfqQuoteRejectedErrorOptions as a_, ListBuilderTradesError as aa, ListBuilderVolumeError as ab, ListClosedPositionsError as ac, ListComboMarketsError as ad, ListComboPositionsError as ae, ListCommentsByUserAddressError as af, ListCommentsError as ag, ListCurrentRewardsError as ah, ListEventsError as ai, ListMarketHoldersError as aj, ListMarketPositionsError as ak, ListMarketRewardsError as al, ListMarketsError as am, ListOpenInterestError as an, ListOpenOrdersError as ao, ListPositionsError as ap, ListSeriesError as aq, ListTagsError as ar, ListTeamsError as as, ListTraderLeaderboardError as at, ListTradesError as au, ListUserEarningsAndMarketsConfigError as av, ListUserEarningsForDayError as aw, MergePositionsError as ax, OpenRfqSessionError as ay, type Page as az, type TransactionCall as b, type Erc1155ApprovalForAllWorkflow as b$, type RfqQuoteResponse as b0, type RfqQuoteSource as b1, type RfqSession as b2, SearchError as b3, type SecureAccountActions as b4, type SecureActions as b5, type SecureClient as b6, type SecureClientOptions as b7, type SecureDownloadAccountingSnapshotRequest as b8, type SecureFetchPortfolioValueRequest as b9, accountActions as bA, allActions as bB, analyticsActions as bC, createPublicClient as bD, createSecureClient as bE, dataActions as bF, discoveryActions as bG, makeErrorGuard as bH, production as bI, rewardsActions as bJ, rfqActions as bK, subscriptionsActions as bL, tradingActions as bM, walletActions as bN, type CancelMarketOrdersRequest as bO, type CancelOrderRequest as bP, type CancelOrdersRequest as bQ, type CommentsEventType as bR, type CommentsSubscription as bS, type CryptoPricesEventType as bT, type CryptoPricesSubscription as bU, DeployDepositWalletError as bV, type DeprecatedTransactionHandle as bW, type DownloadAccountingSnapshotRequest as bX, type DropNotificationsRequest as bY, type EquityPricesEventType as bZ, type EquityPricesSubscription as b_, type SecureFetchTradedMarketCountRequest as ba, type SecureListActivityRequest as bb, type SecureListClosedPositionsRequest as bc, type SecureListComboPositionsRequest as bd, type SecureListPositionsRequest as be, type SecureRewardsActions as bf, type SecureRfqActions as bg, type SecureSubscriptionsActions as bh, type SecureTradingActions as bi, type SecureWalletActions as bj, SetupGaslessWalletError as bk, SetupTradingApprovalsError as bl, type SignerTransactionRequest as bm, SigningError as bn, SplitPositionError as bo, TimeoutError as bp, TransactionFailedError as bq, type TransactionHandle as br, type TransactionOutcome as bs, TransferErc20Error as bt, TransportError as bu, type TypedDataDomain as bv, type TypedDataField as bw, UnexpectedResponseError as bx, WaitForTransactionError as by, type WalletDerivationConfig as bz, type AccountIdentity as c, type ListComboPositionsRequest as c$, type Erc1155ApprovalForAllWorkflowRequest as c0, type Erc20ApprovalWorkflow as c1, type Erc20ApprovalWorkflowRequest as c2, type Erc20TransferWorkflow as c3, type Erc20TransferWorkflowRequest as c4, type EstimateMarketBuyPriceRequest as c5, type EstimateMarketPriceRequest as c6, type EstimateMarketSellPriceRequest as c7, type EventForSubscriptionSpec as c8, type EventForSubscriptionSpecs as c9, type FetchPortfolioValueRequest as cA, type FetchPriceHistoryRequest as cB, type FetchPriceRequest as cC, type FetchPricesRequest as cD, type FetchPublicProfileRequest as cE, type FetchRelatedTagResourcesRequest as cF, type FetchRelatedTagsRequest as cG, type FetchSeriesRequest as cH, type FetchSpreadRequest as cI, type FetchSpreadsRequest as cJ, type FetchTagRequest as cK, FetchTickSizeError as cL, type FetchTickSizeRequest as cM, type FetchTotalEarningsForUserForDayRequest as cN, type FetchTradedMarketCountRequest as cO, GaslessTransactionMetadataSchema as cP, type GaslessWorkflow as cQ, type GaslessWorkflowRequest as cR, IsWalletDeployedError as cS, type IsWalletDeployedRequest as cT, type ListAccountTradesRequest as cU, type ListActivityRequest as cV, type ListBuilderLeaderboardRequest as cW, type ListBuilderTradesRequest as cX, type ListBuilderVolumeRequest as cY, type ListClosedPositionsRequest as cZ, type ListComboMarketsRequest as c_, FetchBalanceAllowanceError as ca, type FetchBalanceAllowanceRequest as cb, FetchBuilderFeeRatesError as cc, type FetchBuilderFeeRatesRequest as cd, type FetchCommentsByIdRequest as ce, type FetchEventLiveVolumeRequest as cf, type FetchEventRequest as cg, type FetchEventTagsRequest as ch, FetchExecuteParamsError as ci, type FetchExecuteParamsRequest as cj, type FetchGaslessTransactionRequest as ck, type FetchLastTradePriceRequest as cl, type FetchLastTradePricesRequest as cm, FetchMarketInfoError as cn, type FetchMarketInfoRequest as co, type FetchMarketRequest as cp, type FetchMarketTagsRequest as cq, type FetchMidpointRequest as cr, type FetchMidpointsRequest as cs, FetchNegRiskError as ct, type FetchNegRiskRequest as cu, type FetchOrderBookRequest as cv, type FetchOrderBooksRequest as cw, type FetchOrderRequest as cx, type FetchOrderScoringRequest as cy, type FetchOrdersScoringRequest as cz, type AnalyticsActions as d, type PublicRealtimeEvent as d$, type ListCommentsByUserAddressRequest as d0, type ListCommentsRequest as d1, type ListCurrentRewardsRequest as d2, type ListEventsRequest as d3, type ListMarketHoldersRequest as d4, type ListMarketPositionsRequest as d5, type ListMarketRewardsRequest as d6, type ListMarketsRequest as d7, type ListOpenInterestRequest as d8, type ListOpenOrdersRequest as d9, PrepareGaslessTransactionError as dA, type PrepareGaslessTransactionRequest as dB, type PrepareLimitOrderRequest as dC, type PrepareMarketBuyOrderRequest as dD, type PrepareMarketOrderRequest as dE, type PrepareMarketSellOrderRequest as dF, PrepareMergeComboPositionError as dG, type PrepareMergeComboPositionRequest as dH, PrepareMergeMarketPositionError as dI, type PrepareMergeMarketPositionRequest as dJ, PrepareMergePositionsError as dK, type PrepareMergePositionsRequest as dL, PrepareRedeemComboPositionError as dM, type PrepareRedeemComboPositionRequest as dN, type PrepareRedeemMarketPositionsByConditionIdRequest as dO, type PrepareRedeemMarketPositionsByMarketIdRequest as dP, PrepareRedeemMarketPositionsError as dQ, type PrepareRedeemMarketPositionsRequest as dR, PrepareRedeemPositionsError as dS, type PrepareRedeemPositionsRequest as dT, PrepareSplitComboPositionError as dU, type PrepareSplitComboPositionRequest as dV, PrepareSplitMarketPositionError as dW, type PrepareSplitMarketPositionRequest as dX, PrepareSplitPositionError as dY, type PrepareSplitPositionRequest as dZ, PrepareTradingApprovalsError as d_, type ListPositionsRequest as da, type ListSeriesRequest as db, type ListTagsRequest as dc, type ListTeamsRequest as dd, type ListTraderLeaderboardRequest as de, type ListTradesRequest as df, type ListUserEarningsAndMarketsConfigRequest as dg, type ListUserEarningsForDayRequest as dh, type MarketEventType as di, type MarketSubscription as dj, MergeComboPositionError as dk, MergeMarketPositionError as dl, type MergePositionsWorkflow as dm, type MergePositionsWorkflowRequest as dn, type OrderDraft as dp, type OrderPostingWorkflow as dq, type OrderWorkflow as dr, type OrderWorkflowRequest as ds, type PostOrdersRequest as dt, PrepareErc1155ApprovalForAllError as du, type PrepareErc1155ApprovalForAllRequest as dv, PrepareErc20ApprovalError as dw, type PrepareErc20ApprovalRequest as dx, PrepareErc20TransferError as dy, type PrepareErc20TransferRequest as dz, ApproveErc1155ForAllError as e, fetchPrice as e$, type PublicRealtimeTopic as e0, type PublicSubscriptionSpec as e1, type RedeemPositionsWorkflow as e2, type RedeemPositionsWorkflowRequest as e3, ResolveConditionByTokenError as e4, type ResolveConditionByTokenRequest as e5, type RfqConfirmationRejectedErrorOptions as e6, type RfqExecutionUpdateEvent as e7, type SearchRequest as e8, type SearchResults as e9, downloadAccountingSnapshot as eA, dropNotifications as eB, estimateMarketPrice as eC, fetchBalanceAllowance as eD, fetchBuilderFeeRates as eE, fetchBuilderVolume as eF, fetchClosedOnlyMode as eG, fetchCommentsById as eH, fetchEvent as eI, fetchEventLiveVolume as eJ, fetchEventTags as eK, fetchExecuteParams as eL, fetchLastTradePrice as eM, fetchLastTradePrices as eN, fetchMarket as eO, fetchMarketInfo as eP, fetchMarketTags as eQ, fetchMidpoint as eR, fetchMidpoints as eS, fetchNegRisk as eT, fetchNotifications as eU, fetchOrder as eV, fetchOrderBook as eW, fetchOrderBooks as eX, fetchOrderScoring as eY, fetchOrdersScoring as eZ, fetchPortfolioValue as e_, type SecureRealtimeEvent as ea, type SecureRealtimeTopic as eb, type SecureSubscriptionSpec as ec, type SignedOrder as ed, SplitComboPositionError as ee, SplitMarketPositionError as ef, type SplitPositionWorkflow as eg, type SplitPositionWorkflowRequest as eh, type SportsEventType as ei, type SportsSubscription as ej, type SubscribeError as ek, type SubscriptionHandle as el, type TradingApprovalsWorkflow as em, type TradingApprovalsWorkflowRequest as en, UpdateBalanceAllowanceError as eo, type UpdateBalanceAllowanceRequest as ep, type UserEventType as eq, type UserSubscription as er, WaitForGaslessTransactionError as es, approveErc1155ForAll as et, approveErc20 as eu, cancelAll as ev, cancelMarketOrders as ew, cancelOrder as ex, cancelOrders as ey, deployDepositWallet as ez, ApproveErc20Error as f, setupTradingApprovals as f$, fetchPriceHistory as f0, fetchPrices as f1, fetchPublicProfile as f2, fetchRelatedTagResources as f3, fetchRelatedTags as f4, fetchRewardPercentages as f5, fetchSeries as f6, fetchSpread as f7, fetchSpreads as f8, fetchTag as f9, listTraderLeaderboard as fA, listTrades as fB, listUserEarningsAndMarketsConfig as fC, listUserEarningsForDay as fD, mergeComboPosition as fE, mergeMarketPosition as fF, mergePositions as fG, openRfqSession as fH, postOrder as fI, postOrders as fJ, prepareErc1155ApprovalForAll as fK, prepareErc20Approval as fL, prepareErc20Transfer as fM, prepareGaslessTransaction as fN, prepareMergeComboPosition as fO, prepareMergeMarketPosition as fP, prepareMergePositions as fQ, prepareRedeemComboPosition as fR, prepareRedeemMarketPositions as fS, prepareRedeemPositions as fT, prepareSplitComboPosition as fU, prepareSplitMarketPosition as fV, prepareSplitPosition as fW, prepareTradingApprovals as fX, redeemPositions as fY, resolveConditionByToken as fZ, search as f_, fetchTickSize as fa, fetchTotalEarningsForUserForDay as fb, fetchTradedMarketCount as fc, fetchTransaction as fd, isWalletDeployed as fe, listAccountTrades as ff, listActivity as fg, listBuilderLeaderboard as fh, listBuilderTrades as fi, listClosedPositions as fj, listComboMarkets as fk, listComboPositions as fl, listComments as fm, listCommentsByUserAddress as fn, listCurrentRewards as fo, listEvents as fp, listMarketHolders as fq, listMarketPositions as fr, listMarketRewards as fs, listMarkets as ft, listOpenInterest as fu, listOpenOrders as fv, listPositions as fw, listSeries as fx, listTags as fy, listTeams as fz, BasePublicClient as g, splitComboPosition as g0, splitMarketPosition as g1, splitPosition as g2, subscribe as g3, transferErc20 as g4, updateBalanceAllowance as g5, BaseSecureClient as h, 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, CreateSecureClientError as q, type DiscoveryActions as r, DownloadAccountingSnapshotError as s, DropNotificationsError as t, EstimateMarketPriceError as u, FetchCommentsByIdError as v, FetchEventError as w, FetchEventLiveVolumeError as x, FetchEventTagsError as y, FetchLastTradePriceError as z };
7434
+ 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, rfqActions 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, UpdatePerpsMarginError as bL, WaitForTransactionError as bM, type WalletDerivationConfig as bN, type WebSocketEndpoint as bO, accountActions as bP, allActions as bQ, analyticsActions as bR, createPublicClient as bS, createSecureClient as bT, dataActions as bU, discoveryActions as bV, forkEnvironmentConfig as bW, makeErrorGuard as bX, perpsActions as bY, production as bZ, rewardsActions 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 FetchPerpsInstrumentsRequest as c$, subscriptionsActions as c0, tradingActions as c1, walletActions as c2, type CancelMarketOrdersRequest as c3, type CancelOrderRequest as c4, type CancelOrdersRequest as c5, type CancelPerpsOrderRequest as c6, type CancelPerpsOrdersRequest as c7, type CommentsEventType as c8, type CommentsSubscription as c9, type FetchCommentsByIdRequest as cA, type FetchEventLiveVolumeRequest as cB, type FetchEventRequest as cC, type FetchEventTagsRequest as cD, FetchExecuteParamsError as cE, type FetchExecuteParamsRequest as cF, type FetchGaslessTransactionRequest as cG, type FetchLastTradePriceRequest as cH, type FetchLastTradePricesRequest as cI, FetchMarketInfoError as cJ, type FetchMarketInfoRequest as cK, type FetchMarketRequest as cL, type FetchMarketTagsRequest as cM, type FetchMidpointRequest as cN, type FetchMidpointsRequest as cO, FetchNegRiskError as cP, type FetchNegRiskRequest as cQ, type FetchOrderBookRequest as cR, type FetchOrderBooksRequest as cS, type FetchOrderRequest as cT, type FetchOrderScoringRequest as cU, type FetchOrdersScoringRequest as cV, type FetchPerpsAccountConfigRequest as cW, FetchPerpsBookError as cX, type FetchPerpsBookRequest as cY, FetchPerpsFeesError as cZ, FetchPerpsInstrumentsError as c_, type CreatePerpsSessionRequest as ca, type CryptoPricesEventType as cb, type CryptoPricesSubscription as cc, DeployDepositWalletError as cd, DepositToPerpsError as ce, type DepositToPerpsRequest as cf, type DeprecatedTransactionHandle as cg, type DownloadAccountingSnapshotRequest as ch, type DropNotificationsRequest as ci, type EquityPricesEventType as cj, type EquityPricesSubscription as ck, type Erc1155ApprovalForAllWorkflow as cl, type Erc1155ApprovalForAllWorkflowRequest as cm, type Erc20ApprovalWorkflow as cn, type Erc20ApprovalWorkflowRequest as co, type Erc20TransferWorkflow as cp, type Erc20TransferWorkflowRequest as cq, type EstimateMarketBuyPriceRequest as cr, type EstimateMarketPriceRequest as cs, type EstimateMarketSellPriceRequest as ct, type EventForSubscriptionSpec as cu, type EventForSubscriptionSpecs as cv, FetchBalanceAllowanceError as cw, type FetchBalanceAllowanceRequest as cx, FetchBuilderFeeRatesError as cy, type FetchBuilderFeeRatesRequest as cz, type AnalyticsActions as d, type ListUserEarningsAndMarketsConfigRequest as d$, type FetchPerpsOpenOrdersRequest as d0, type FetchPerpsOrdersRequest as d1, FetchPerpsTickerError as d2, type FetchPerpsTickerRequest as d3, FetchPerpsTickersError as d4, type FetchPerpsTickersRequest as d5, type FetchPortfolioValueRequest as d6, type FetchPriceHistoryRequest as d7, type FetchPriceRequest as d8, type FetchPricesRequest as d9, type ListCommentsRequest as dA, type ListCurrentRewardsRequest as dB, type ListEventsRequest as dC, type ListMarketHoldersRequest as dD, type ListMarketPositionsRequest as dE, type ListMarketRewardsRequest as dF, type ListMarketsRequest as dG, type ListOpenInterestRequest as dH, type ListOpenOrdersRequest as dI, ListPerpsCandlesError as dJ, type ListPerpsCandlesRequest as dK, type ListPerpsDepositsRequest as dL, type ListPerpsEquityHistoryRequest as dM, type ListPerpsFillsRequest as dN, ListPerpsFundingHistoryError as dO, type ListPerpsFundingHistoryRequest as dP, type ListPerpsFundingPaymentsRequest as dQ, type ListPerpsPnlHistoryRequest as dR, ListPerpsTradesError as dS, type ListPerpsTradesRequest as dT, type ListPerpsWithdrawalsRequest as dU, type ListPositionsRequest as dV, type ListSeriesRequest as dW, type ListTagsRequest as dX, type ListTeamsRequest as dY, type ListTraderLeaderboardRequest as dZ, type ListTradesRequest as d_, type FetchPublicProfileRequest as da, type FetchRelatedTagResourcesRequest as db, type FetchRelatedTagsRequest as dc, type FetchSeriesRequest as dd, type FetchSpreadRequest as de, type FetchSpreadsRequest as df, type FetchTagRequest as dg, FetchTickSizeError as dh, type FetchTickSizeRequest as di, type FetchTotalEarningsForUserForDayRequest as dj, type FetchTradedMarketCountRequest as dk, GaslessTransactionMetadataSchema as dl, type GaslessWorkflow as dm, type GaslessWorkflowRequest as dn, IsWalletDeployedError as dp, type IsWalletDeployedRequest as dq, type ListAccountTradesRequest as dr, type ListActivityRequest as ds, type ListBuilderLeaderboardRequest as dt, type ListBuilderTradesRequest as du, type ListBuilderVolumeRequest as dv, type ListClosedPositionsRequest as dw, type ListComboMarketsRequest as dx, type ListComboPositionsRequest as dy, type ListCommentsByUserAddressRequest as dz, ApproveErc1155ForAllError as e, type PrepareSplitPositionRequest as e$, type ListUserEarningsForDayRequest as e0, type MarketEventType as e1, type MarketSubscription as e2, MergeComboPositionError as e3, MergeMarketPositionError as e4, type MergePositionsWorkflow as e5, type MergePositionsWorkflowRequest as e6, OpenPerpsSessionError as e7, type OpenPerpsSessionRequest as e8, type OrderDraft as e9, type PrepareErc20TransferRequest as eA, PrepareGaslessTransactionError as eB, type PrepareGaslessTransactionRequest as eC, type PrepareLimitOrderRequest as eD, type PrepareMarketBuyOrderRequest as eE, type PrepareMarketOrderRequest as eF, type PrepareMarketSellOrderRequest as eG, PrepareMergeComboPositionError as eH, type PrepareMergeComboPositionRequest as eI, PrepareMergeMarketPositionError as eJ, type PrepareMergeMarketPositionRequest as eK, PrepareMergePositionsError as eL, type PrepareMergePositionsRequest as eM, PreparePerpsDepositError as eN, PrepareRedeemComboPositionError as eO, type PrepareRedeemComboPositionRequest as eP, type PrepareRedeemMarketPositionsByConditionIdRequest as eQ, type PrepareRedeemMarketPositionsByMarketIdRequest as eR, PrepareRedeemMarketPositionsError as eS, type PrepareRedeemMarketPositionsRequest as eT, PrepareRedeemPositionsError as eU, type PrepareRedeemPositionsRequest as eV, PrepareSplitComboPositionError as eW, type PrepareSplitComboPositionRequest as eX, PrepareSplitMarketPositionError as eY, type PrepareSplitMarketPositionRequest as eZ, PrepareSplitPositionError as e_, type OrderPostingWorkflow as ea, type OrderWorkflow as eb, type OrderWorkflowRequest as ec, type PerpsBboSubscription as ed, type PerpsBookDepth 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 PerpsPlaceFokOrderRequest as el, type PerpsPlaceGtcOrderRequest as em, type PerpsPlaceIocOrderRequest as en, type PerpsStatisticsSubscription as eo, type PerpsStreamingCandleInterval as ep, type PerpsTickersSubscription as eq, type PerpsTradesSubscription as er, type PlacePerpsOrderRequest as es, type PostOrdersRequest as et, type PostPerpsOrdersRequest as eu, PrepareErc1155ApprovalForAllError as ev, type PrepareErc1155ApprovalForAllRequest as ew, PrepareErc20ApprovalError as ex, type PrepareErc20ApprovalRequest as ey, PrepareErc20TransferError as ez, ApproveErc20Error as f, fetchMidpoint as f$, PrepareTradingApprovalsError as f0, type PublicRealtimeEvent as f1, type PublicRealtimeTopic as f2, type PublicSubscriptionSpec as f3, type RedeemPositionsWorkflow as f4, type RedeemPositionsWorkflowRequest as f5, ResolveConditionByTokenError as f6, type ResolveConditionByTokenRequest as f7, type ResumePerpsSessionRequest as f8, RevokePerpsCredentialsError as f9, WithdrawFromPerpsError as fA, type WithdrawFromPerpsRequest as fB, approveErc1155ForAll as fC, approveErc20 as fD, cancelAll as fE, cancelMarketOrders as fF, cancelOrder as fG, cancelOrders as fH, deployDepositWallet as fI, depositToPerps as fJ, downloadAccountingSnapshot as fK, dropNotifications as fL, estimateMarketPrice as fM, fetchBalanceAllowance as fN, fetchBuilderFeeRates as fO, fetchBuilderVolume as fP, fetchClosedOnlyMode as fQ, fetchCommentsById as fR, fetchEvent as fS, fetchEventLiveVolume as fT, fetchEventTags as fU, fetchExecuteParams as fV, fetchLastTradePrice as fW, fetchLastTradePrices as fX, fetchMarket as fY, fetchMarketInfo as fZ, fetchMarketTags as f_, type RevokePerpsCredentialsRequest as fa, type RfqConfirmationRejectedErrorOptions as fb, type RfqExecutionUpdateEvent as fc, type SearchRequest as fd, type SearchResults as fe, type SecureRealtimeEvent as ff, type SecureRealtimeTopic as fg, type SecureSubscriptionSpec as fh, type SignedOrder as fi, SplitComboPositionError as fj, SplitMarketPositionError as fk, type SplitPositionWorkflow as fl, type SplitPositionWorkflowRequest as fm, type SportsEventType as fn, type SportsSubscription as fo, type SubscribeError as fp, type SubscriptionHandle as fq, type TradingApprovalsWorkflow as fr, type TradingApprovalsWorkflowRequest as fs, UpdateBalanceAllowanceError as ft, type UpdateBalanceAllowanceRequest as fu, type UpdatePerpsLeverageRequest as fv, type UpdatePerpsMarginRequest as fw, type UserEventType as fx, type UserSubscription as fy, WaitForGaslessTransactionError as fz, BasePublicClient as g, postOrder as g$, fetchMidpoints as g0, fetchNegRisk as g1, fetchNotifications as g2, fetchOrder as g3, fetchOrderBook as g4, fetchOrderBooks as g5, fetchOrderScoring as g6, fetchOrdersScoring as g7, fetchPerpsBook as g8, fetchPerpsFees as g9, listComboPositions as gA, listComments as gB, listCommentsByUserAddress as gC, listCurrentRewards as gD, listEvents as gE, listMarketHolders as gF, listMarketPositions as gG, listMarketRewards as gH, listMarkets as gI, listOpenInterest as gJ, listOpenOrders as gK, listPerpsCandles as gL, listPerpsFundingHistory as gM, listPerpsTrades as gN, listPositions as gO, listSeries as gP, listTags as gQ, listTeams as gR, listTraderLeaderboard as gS, listTrades as gT, listUserEarningsAndMarketsConfig as gU, listUserEarningsForDay as gV, mergeComboPosition as gW, mergeMarketPosition as gX, mergePositions as gY, openPerpsSession as gZ, openRfqSession as g_, fetchPerpsInstruments as ga, fetchPerpsTicker as gb, fetchPerpsTickers as gc, fetchPortfolioValue as gd, fetchPrice as ge, fetchPriceHistory as gf, fetchPrices as gg, fetchPublicProfile as gh, fetchRelatedTagResources as gi, fetchRelatedTags as gj, fetchRewardPercentages as gk, fetchSeries as gl, fetchSpread as gm, fetchSpreads as gn, fetchTag as go, fetchTickSize as gp, fetchTotalEarningsForUserForDay as gq, fetchTradedMarketCount as gr, fetchTransaction as gs, isWalletDeployed as gt, listAccountTrades as gu, listActivity as gv, listBuilderLeaderboard as gw, listBuilderTrades as gx, listClosedPositions as gy, listComboMarkets as gz, BaseSecureClient as h, postOrders as h0, prepareErc1155ApprovalForAll as h1, prepareErc20Approval as h2, prepareErc20Transfer as h3, prepareGaslessTransaction as h4, prepareMergeComboPosition as h5, prepareMergeMarketPosition as h6, prepareMergePositions as h7, preparePerpsDeposit as h8, prepareRedeemComboPosition as h9, prepareRedeemMarketPositions as ha, prepareRedeemPositions as hb, prepareSplitComboPosition as hc, prepareSplitMarketPosition as hd, prepareSplitPosition as he, prepareTradingApprovals as hf, redeemPositions as hg, resolveConditionByToken as hh, revokePerpsCredentials as hi, search as hj, setupTradingApprovals as hk, splitComboPosition as hl, splitMarketPosition as hm, splitPosition as hn, subscribe as ho, transferErc20 as hp, updateBalanceAllowance as hq, withdrawFromPerps as hr, 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 };