@polymarket/client 0.1.0-beta.10 → 0.1.0-beta.12
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.
- package/dist/actions/index.d.ts +12 -12
- package/dist/actions/index.js +1 -1
- package/dist/chunk-AYGGMWA6.js +2 -0
- package/dist/chunk-AYGGMWA6.js.map +1 -0
- package/dist/ethers-v5.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{sports-BGrBawu_.d.ts → sports-BHPoQjk0.d.ts} +13 -13
- package/dist/{types-M1U0um0G.d.ts → types-BiMOyijM.d.ts} +229 -179
- package/dist/viem.d.ts +1 -1
- package/package.json +2 -2
- package/dist/chunk-FMBJ7ZRK.js +0 -2
- package/dist/chunk-FMBJ7ZRK.js.map +0 -1
|
@@ -11,7 +11,7 @@ import * as _polymarket_bindings_data from '@polymarket/bindings/data';
|
|
|
11
11
|
import { Value, Traded, ClosedPosition, ComboPosition, Position, MetaMarketPosition, Activity, LeaderboardEntry, BuilderVolumeEntry, TraderLeaderboardEntry, LiveVolume, OpenInterest, MetaHolder, Trade } from '@polymarket/bindings/data';
|
|
12
12
|
import { ComboMarket, RfqQuoteRequest, RfqRequestedSize, RfqSide, RfqQuoteAck, RfqConfirmationRequest, RfqConfirmationAck as RfqConfirmationAck$1, RfqExecutionUpdate, RfqTrade, RfqQuoteCancelAck, RfqErrorCode, RfqId, RfqQuoteId } from '@polymarket/bindings/rfq';
|
|
13
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';
|
|
14
|
+
import { PerpsInstrument, PerpsTicker, PerpsBook, PerpsCandle, PerpsFundingRate, PerpsPublicTrade, PerpsFeeScheduleEntry, PerpsWithdrawalId, PerpsInstrumentId, PerpsDepositStatusSchema, PerpsWithdrawalStatusSchema, PerpsPnlIntervalSchema, PerpsDecimalInput, PerpsTimeInForce, PerpsCredentials, PerpsBalance, PerpsPortfolio, PerpsAccountStats, PerpsAccountConfig, PerpsOrder, PerpsAccountFill, PerpsAccountFundingPayment, PerpsDeposit, PerpsWithdrawal, PerpsEquityPoint, PerpsPnlPoint, PerpsOrderId, PerpsPostOrderAck, PerpsCancelOrderResult, PerpsUpdateLeverageResult, PerpsKlineInterval, PerpsInstrumentIdSchema } from '@polymarket/bindings/perps';
|
|
15
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';
|
|
16
16
|
import { Hex } from 'ox';
|
|
17
17
|
|
|
@@ -159,7 +159,7 @@ declare const FetchExecuteParamsRequestSchema: z.ZodObject<{
|
|
|
159
159
|
type FetchExecuteParamsRequest = z.input<typeof FetchExecuteParamsRequestSchema>;
|
|
160
160
|
type FetchExecuteParamsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
161
161
|
declare const FetchExecuteParamsError: {
|
|
162
|
-
isError(error: unknown): error is
|
|
162
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
163
163
|
};
|
|
164
164
|
/**
|
|
165
165
|
* Fetches the parameters needed to prepare a low-level transaction submission.
|
|
@@ -182,7 +182,7 @@ declare const IsWalletDeployedRequestSchema: z.ZodObject<{
|
|
|
182
182
|
type IsWalletDeployedRequest = z.input<typeof IsWalletDeployedRequestSchema>;
|
|
183
183
|
type IsWalletDeployedError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
184
184
|
declare const IsWalletDeployedError: {
|
|
185
|
-
isError(error: unknown): error is
|
|
185
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
186
186
|
};
|
|
187
187
|
/**
|
|
188
188
|
* Checks whether a wallet is deployed for relayer-backed transactions.
|
|
@@ -207,7 +207,7 @@ declare function isWalletDeployed(client: BaseClient, request?: IsWalletDeployed
|
|
|
207
207
|
declare const GaslessTransactionMetadataSchema: z.ZodString;
|
|
208
208
|
type DeployDepositWalletError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
209
209
|
declare const DeployDepositWalletError: {
|
|
210
|
-
isError(error: unknown): error is
|
|
210
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
211
211
|
};
|
|
212
212
|
/**
|
|
213
213
|
* Deploys a Deposit Wallet for the authenticated signer.
|
|
@@ -250,7 +250,7 @@ type GaslessWorkflowRequest = RequestAddressRequest | SignGaslessMessageRequest
|
|
|
250
250
|
type GaslessWorkflow = AsyncGenerator<GaslessWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
|
|
251
251
|
type PrepareGaslessTransactionError = ExecuteGaslessError | FetchExecuteParamsError | UserInputError;
|
|
252
252
|
declare const PrepareGaslessTransactionError: {
|
|
253
|
-
isError(error: unknown): error is
|
|
253
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
254
254
|
};
|
|
255
255
|
/**
|
|
256
256
|
* Starts preparing a low-level transaction workflow from one or more calls.
|
|
@@ -265,7 +265,7 @@ declare function prepareGaslessTransaction(client: BaseSecureClient, request: Pr
|
|
|
265
265
|
type ExecuteGaslessError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
266
266
|
type WaitForGaslessTransactionError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | TimeoutError | TransactionFailedError;
|
|
267
267
|
declare const WaitForGaslessTransactionError: {
|
|
268
|
-
isError(error: unknown): error is
|
|
268
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError;
|
|
269
269
|
};
|
|
270
270
|
|
|
271
271
|
declare const PageSizeSchema: z.ZodNumber;
|
|
@@ -281,7 +281,7 @@ type Paginated<T> = AsyncIterable<Page<T>> & {
|
|
|
281
281
|
};
|
|
282
282
|
|
|
283
283
|
declare const ListPositionsRequestSchema: z.ZodObject<{
|
|
284
|
-
cursor: z.ZodOptional<z.
|
|
284
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
285
285
|
user: z.ZodString;
|
|
286
286
|
market: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
287
287
|
eventId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
@@ -307,7 +307,7 @@ declare const ListPositionsRequestSchema: z.ZodObject<{
|
|
|
307
307
|
title: z.ZodOptional<z.ZodString>;
|
|
308
308
|
}, z.core.$strip>;
|
|
309
309
|
declare const ListClosedPositionsRequestSchema: z.ZodObject<{
|
|
310
|
-
cursor: z.ZodOptional<z.
|
|
310
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
311
311
|
user: z.ZodString;
|
|
312
312
|
market: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
313
313
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -326,7 +326,7 @@ declare const ListClosedPositionsRequestSchema: z.ZodObject<{
|
|
|
326
326
|
}>>;
|
|
327
327
|
}, z.core.$strip>;
|
|
328
328
|
declare const ListComboPositionsRequestSchema: z.ZodObject<{
|
|
329
|
-
cursor: z.ZodOptional<z.
|
|
329
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
330
330
|
user: z.ZodString;
|
|
331
331
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
332
332
|
status: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.ComboPositionStatus>>;
|
|
@@ -351,7 +351,7 @@ type FetchTradedMarketCountRequest = z.input<typeof FetchTradedMarketCountReques
|
|
|
351
351
|
type DownloadAccountingSnapshotRequest = z.input<typeof DownloadAccountingSnapshotRequestSchema>;
|
|
352
352
|
type ListPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
353
353
|
declare const ListPositionsError: {
|
|
354
|
-
isError(error: unknown): error is
|
|
354
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
355
355
|
};
|
|
356
356
|
/**
|
|
357
357
|
* Lists current positions for a wallet.
|
|
@@ -394,11 +394,11 @@ declare const ListPositionsError: {
|
|
|
394
394
|
declare function listPositions(client: BaseClient, request: ListPositionsRequest): Paginated<Position[]>;
|
|
395
395
|
type ListClosedPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
396
396
|
declare const ListClosedPositionsError: {
|
|
397
|
-
isError(error: unknown): error is
|
|
397
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
398
398
|
};
|
|
399
399
|
type ListComboPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
400
400
|
declare const ListComboPositionsError: {
|
|
401
|
-
isError(error: unknown): error is
|
|
401
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
402
402
|
};
|
|
403
403
|
/**
|
|
404
404
|
* Lists closed positions for a wallet.
|
|
@@ -476,7 +476,7 @@ declare function listClosedPositions(client: BaseClient, request: ListClosedPosi
|
|
|
476
476
|
declare function listComboPositions(client: BaseClient, request: ListComboPositionsRequest): Paginated<ComboPosition[]>;
|
|
477
477
|
type FetchPortfolioValueError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
478
478
|
declare const FetchPortfolioValueError: {
|
|
479
|
-
isError(error: unknown): error is
|
|
479
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
480
480
|
};
|
|
481
481
|
/**
|
|
482
482
|
* Fetches the total value for a wallet's positions.
|
|
@@ -499,7 +499,7 @@ declare const FetchPortfolioValueError: {
|
|
|
499
499
|
declare function fetchPortfolioValue(client: BaseClient, request: FetchPortfolioValueRequest): Promise<Value[]>;
|
|
500
500
|
type FetchTradedMarketCountError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
501
501
|
declare const FetchTradedMarketCountError: {
|
|
502
|
-
isError(error: unknown): error is
|
|
502
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
503
503
|
};
|
|
504
504
|
/**
|
|
505
505
|
* Fetches the total number of markets a wallet has traded.
|
|
@@ -522,7 +522,7 @@ declare const FetchTradedMarketCountError: {
|
|
|
522
522
|
declare function fetchTradedMarketCount(client: BaseClient, request: FetchTradedMarketCountRequest): Promise<Traded>;
|
|
523
523
|
type DownloadAccountingSnapshotError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
524
524
|
declare const DownloadAccountingSnapshotError: {
|
|
525
|
-
isError(error: unknown): error is
|
|
525
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
526
526
|
};
|
|
527
527
|
/**
|
|
528
528
|
* Downloads an accounting snapshot archive for a wallet.
|
|
@@ -2151,7 +2151,7 @@ declare class RfqQuoteRejectedError extends PolymarketError {
|
|
|
2151
2151
|
}
|
|
2152
2152
|
type RfqQuoteError = RfqQuoteRejectedError | SigningError | TimeoutError | TransportError | UserInputError;
|
|
2153
2153
|
declare const RfqQuoteError: {
|
|
2154
|
-
isError(error: unknown): error is
|
|
2154
|
+
isError(error: unknown): error is UserInputError | TransportError | TimeoutError | SigningError | RfqQuoteRejectedError;
|
|
2155
2155
|
};
|
|
2156
2156
|
type RfqCancelQuoteRejectedErrorOptions = {
|
|
2157
2157
|
/** RFQ error code for the rejected cancellation request. */
|
|
@@ -2509,7 +2509,7 @@ declare const CancelMarketOrdersRequestSchema: z.ZodObject<{
|
|
|
2509
2509
|
type CancelOrderRequest = z.input<typeof CancelOrderRequestSchema>;
|
|
2510
2510
|
type CancelOrderError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2511
2511
|
declare const CancelOrderError: {
|
|
2512
|
-
isError(error: unknown): error is
|
|
2512
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
2513
2513
|
};
|
|
2514
2514
|
/**
|
|
2515
2515
|
* Cancels a single open order for the authenticated account.
|
|
@@ -2533,7 +2533,7 @@ declare function cancelOrder(client: BaseSecureClient, request: CancelOrderReque
|
|
|
2533
2533
|
type CancelOrdersRequest = z.input<typeof CancelOrdersRequestSchema>;
|
|
2534
2534
|
type CancelOrdersError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2535
2535
|
declare const CancelOrdersError: {
|
|
2536
|
-
isError(error: unknown): error is
|
|
2536
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
2537
2537
|
};
|
|
2538
2538
|
/**
|
|
2539
2539
|
* Cancels multiple open orders for the authenticated account.
|
|
@@ -2556,7 +2556,7 @@ declare const CancelOrdersError: {
|
|
|
2556
2556
|
declare function cancelOrders(client: BaseSecureClient, request: CancelOrdersRequest): Promise<CancelOrdersResponse>;
|
|
2557
2557
|
type CancelAllError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError;
|
|
2558
2558
|
declare const CancelAllError: {
|
|
2559
|
-
isError(error: unknown): error is
|
|
2559
|
+
isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
2560
2560
|
};
|
|
2561
2561
|
/**
|
|
2562
2562
|
* Cancels all open orders for the authenticated account.
|
|
@@ -2578,7 +2578,7 @@ declare function cancelAll(client: BaseSecureClient): Promise<CancelOrdersRespon
|
|
|
2578
2578
|
type CancelMarketOrdersRequest = z.input<typeof CancelMarketOrdersRequestSchema>;
|
|
2579
2579
|
type CancelMarketOrdersError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2580
2580
|
declare const CancelMarketOrdersError: {
|
|
2581
|
-
isError(error: unknown): error is
|
|
2581
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
2582
2582
|
};
|
|
2583
2583
|
/**
|
|
2584
2584
|
* Cancels all open orders for the authenticated account that match the market
|
|
@@ -2632,7 +2632,7 @@ type EstimateMarketSellPriceRequest = {
|
|
|
2632
2632
|
type EstimateMarketPriceRequest = EstimateMarketBuyPriceRequest | EstimateMarketSellPriceRequest;
|
|
2633
2633
|
type EstimateMarketPriceError = InsufficientLiquidityError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2634
2634
|
declare const EstimateMarketPriceError: {
|
|
2635
|
-
isError(error: unknown): error is
|
|
2635
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | InsufficientLiquidityError;
|
|
2636
2636
|
};
|
|
2637
2637
|
/**
|
|
2638
2638
|
* Estimates the price level a market order would cross at current book depth.
|
|
@@ -2764,7 +2764,7 @@ type PrepareLimitOrderRequest = {
|
|
|
2764
2764
|
* When provided, the SDK prepares a Good-Til-Date (GTD) limit order that
|
|
2765
2765
|
* expires at the given timestamp.
|
|
2766
2766
|
*
|
|
2767
|
-
* The timestamp must be at least
|
|
2767
|
+
* The timestamp must be at least 3 minutes in the future. Add your own
|
|
2768
2768
|
* buffer for network latency and clock skew when deriving it from the
|
|
2769
2769
|
* current time.
|
|
2770
2770
|
*
|
|
@@ -2810,11 +2810,11 @@ declare const PostOrdersRequestSchema: z.ZodArray<z.ZodCustom<SignedOrder, Signe
|
|
|
2810
2810
|
type PostOrdersRequest = z.input<typeof PostOrdersRequestSchema>;
|
|
2811
2811
|
type PostOrderError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
|
|
2812
2812
|
declare const PostOrderError: {
|
|
2813
|
-
isError(error: unknown): error is
|
|
2813
|
+
isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
2814
2814
|
};
|
|
2815
2815
|
type PostOrdersError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2816
2816
|
declare const PostOrdersError: {
|
|
2817
|
-
isError(error: unknown): error is
|
|
2817
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
2818
2818
|
};
|
|
2819
2819
|
/**
|
|
2820
2820
|
* Posts a signed order for the authenticated account.
|
|
@@ -2915,7 +2915,7 @@ type SecureTradingActions = {
|
|
|
2915
2915
|
* Creates a signed limit order for the authenticated account.
|
|
2916
2916
|
*
|
|
2917
2917
|
* @remarks
|
|
2918
|
-
* GTD expirations must be at least
|
|
2918
|
+
* GTD expirations must be at least 3 minutes in the future. Add your own
|
|
2919
2919
|
* buffer for network latency and clock skew when deriving an expiration from
|
|
2920
2920
|
* the current time.
|
|
2921
2921
|
*
|
|
@@ -2938,7 +2938,7 @@ type SecureTradingActions = {
|
|
|
2938
2938
|
* Creates and posts a limit order for the authenticated account.
|
|
2939
2939
|
*
|
|
2940
2940
|
* @remarks
|
|
2941
|
-
* GTD expirations must be at least
|
|
2941
|
+
* GTD expirations must be at least 3 minutes in the future. Add your own
|
|
2942
2942
|
* buffer for network latency and clock skew when deriving an expiration from
|
|
2943
2943
|
* the current time.
|
|
2944
2944
|
*
|
|
@@ -3612,7 +3612,7 @@ type SecureClientOptions = PublicClientOptions & {
|
|
|
3612
3612
|
declare function createPublicClient(options?: PublicClientOptions): PublicClient<PublicActions, SecureActions>;
|
|
3613
3613
|
type CreateSecureClientError = CancelledSigningError | DeployDepositWalletError | IsWalletDeployedError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError | WaitForGaslessTransactionError;
|
|
3614
3614
|
declare const CreateSecureClientError: {
|
|
3615
|
-
isError(error: unknown): error is
|
|
3615
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
3616
3616
|
};
|
|
3617
3617
|
type SetupGaslessWalletError = UserInputError;
|
|
3618
3618
|
declare const SetupGaslessWalletError: {
|
|
@@ -3635,7 +3635,7 @@ declare function createSecureClient(options: SecureClientOptions): Promise<Secur
|
|
|
3635
3635
|
|
|
3636
3636
|
type FetchClosedOnlyModeError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
|
|
3637
3637
|
declare const FetchClosedOnlyModeError: {
|
|
3638
|
-
isError(error: unknown): error is
|
|
3638
|
+
isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3639
3639
|
};
|
|
3640
3640
|
/**
|
|
3641
3641
|
* Fetches whether the account is restricted to closed-only trading.
|
|
@@ -3653,14 +3653,14 @@ declare const FetchClosedOnlyModeError: {
|
|
|
3653
3653
|
declare function fetchClosedOnlyMode(client: BaseSecureClient): Promise<boolean>;
|
|
3654
3654
|
declare const ListOpenOrdersRequestSchema: z.ZodDefault<z.ZodObject<{
|
|
3655
3655
|
tokenId: z.ZodOptional<z.ZodString>;
|
|
3656
|
-
cursor: z.ZodOptional<z.
|
|
3656
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
3657
3657
|
id: z.ZodOptional<z.ZodString>;
|
|
3658
3658
|
market: z.ZodOptional<z.ZodString>;
|
|
3659
3659
|
}, z.core.$strip>>;
|
|
3660
3660
|
type ListOpenOrdersRequest = z.input<typeof ListOpenOrdersRequestSchema>;
|
|
3661
3661
|
type ListOpenOrdersError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3662
3662
|
declare const ListOpenOrdersError: {
|
|
3663
|
-
isError(error: unknown): error is
|
|
3663
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3664
3664
|
};
|
|
3665
3665
|
/**
|
|
3666
3666
|
* Lists open orders for the authenticated account across all pages.
|
|
@@ -3704,7 +3704,7 @@ declare const FetchOrderRequestSchema: z.ZodObject<{
|
|
|
3704
3704
|
type FetchOrderRequest = z.input<typeof FetchOrderRequestSchema>;
|
|
3705
3705
|
type FetchOrderError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3706
3706
|
declare const FetchOrderError: {
|
|
3707
|
-
isError(error: unknown): error is
|
|
3707
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3708
3708
|
};
|
|
3709
3709
|
/**
|
|
3710
3710
|
* Fetches a single order for the authenticated account.
|
|
@@ -3726,7 +3726,7 @@ declare const ListAccountTradesRequestSchema: z.ZodDefault<z.ZodObject<{
|
|
|
3726
3726
|
after: z.ZodOptional<z.ZodString>;
|
|
3727
3727
|
tokenId: z.ZodOptional<z.ZodString>;
|
|
3728
3728
|
before: z.ZodOptional<z.ZodString>;
|
|
3729
|
-
cursor: z.ZodOptional<z.
|
|
3729
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
3730
3730
|
id: z.ZodOptional<z.ZodString>;
|
|
3731
3731
|
makerAddress: z.ZodOptional<z.ZodString>;
|
|
3732
3732
|
market: z.ZodOptional<z.ZodString>;
|
|
@@ -3734,7 +3734,7 @@ declare const ListAccountTradesRequestSchema: z.ZodDefault<z.ZodObject<{
|
|
|
3734
3734
|
type ListAccountTradesRequest = z.input<typeof ListAccountTradesRequestSchema>;
|
|
3735
3735
|
type ListAccountTradesError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3736
3736
|
declare const ListAccountTradesError: {
|
|
3737
|
-
isError(error: unknown): error is
|
|
3737
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3738
3738
|
};
|
|
3739
3739
|
/**
|
|
3740
3740
|
* Lists trades for the authenticated account across all pages.
|
|
@@ -3774,7 +3774,7 @@ declare const ListAccountTradesError: {
|
|
|
3774
3774
|
declare function listAccountTrades(client: BaseSecureClient, request?: ListAccountTradesRequest): Paginated<ClobTrade[]>;
|
|
3775
3775
|
type FetchNotificationsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
|
|
3776
3776
|
declare const FetchNotificationsError: {
|
|
3777
|
-
isError(error: unknown): error is
|
|
3777
|
+
isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3778
3778
|
};
|
|
3779
3779
|
declare const DropNotificationsRequestSchema: z.ZodObject<{
|
|
3780
3780
|
ids: z.ZodArray<z.ZodString>;
|
|
@@ -3796,7 +3796,7 @@ type DropNotificationsRequest = z.input<typeof DropNotificationsRequestSchema>;
|
|
|
3796
3796
|
declare function fetchNotifications(client: BaseSecureClient): Promise<NotificationsResponse>;
|
|
3797
3797
|
type DropNotificationsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3798
3798
|
declare const DropNotificationsError: {
|
|
3799
|
-
isError(error: unknown): error is
|
|
3799
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3800
3800
|
};
|
|
3801
3801
|
/**
|
|
3802
3802
|
* Drops notifications for the authenticated account.
|
|
@@ -3822,7 +3822,7 @@ declare const FetchBalanceAllowanceRequestSchema: z.ZodObject<{
|
|
|
3822
3822
|
type FetchBalanceAllowanceRequest = z.input<typeof FetchBalanceAllowanceRequestSchema>;
|
|
3823
3823
|
type FetchBalanceAllowanceError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3824
3824
|
declare const FetchBalanceAllowanceError: {
|
|
3825
|
-
isError(error: unknown): error is
|
|
3825
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3826
3826
|
};
|
|
3827
3827
|
/**
|
|
3828
3828
|
* Fetches balance and allowance for the authenticated account.
|
|
@@ -3848,7 +3848,7 @@ declare const UpdateBalanceAllowanceRequestSchema: z.ZodObject<{
|
|
|
3848
3848
|
type UpdateBalanceAllowanceRequest = z.input<typeof UpdateBalanceAllowanceRequestSchema>;
|
|
3849
3849
|
type UpdateBalanceAllowanceError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3850
3850
|
declare const UpdateBalanceAllowanceError: {
|
|
3851
|
-
isError(error: unknown): error is
|
|
3851
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3852
3852
|
};
|
|
3853
3853
|
/**
|
|
3854
3854
|
* Refreshes balance and allowance for the authenticated account.
|
|
@@ -3873,7 +3873,7 @@ declare const FetchOrderScoringRequestSchema: z.ZodObject<{
|
|
|
3873
3873
|
type FetchOrderScoringRequest = z.input<typeof FetchOrderScoringRequestSchema>;
|
|
3874
3874
|
type FetchOrderScoringError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3875
3875
|
declare const FetchOrderScoringError: {
|
|
3876
|
-
isError(error: unknown): error is
|
|
3876
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3877
3877
|
};
|
|
3878
3878
|
/**
|
|
3879
3879
|
* Fetches whether a single order is currently scoring.
|
|
@@ -3897,7 +3897,7 @@ declare const FetchOrdersScoringRequestSchema: z.ZodObject<{
|
|
|
3897
3897
|
type FetchOrdersScoringRequest = z.input<typeof FetchOrdersScoringRequestSchema>;
|
|
3898
3898
|
type FetchOrdersScoringError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3899
3899
|
declare const FetchOrdersScoringError: {
|
|
3900
|
-
isError(error: unknown): error is
|
|
3900
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3901
3901
|
};
|
|
3902
3902
|
/**
|
|
3903
3903
|
* Fetches scoring state for multiple orders.
|
|
@@ -3916,13 +3916,13 @@ declare const FetchOrdersScoringError: {
|
|
|
3916
3916
|
*/
|
|
3917
3917
|
declare function fetchOrdersScoring(client: BaseSecureClient, request: FetchOrdersScoringRequest): Promise<OrdersScoringResponse>;
|
|
3918
3918
|
declare const ListUserEarningsForDayRequestSchema: z.ZodObject<{
|
|
3919
|
-
cursor: z.ZodOptional<z.
|
|
3919
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
3920
3920
|
date: z.ZodString;
|
|
3921
3921
|
}, z.core.$strip>;
|
|
3922
3922
|
type ListUserEarningsForDayRequest = z.input<typeof ListUserEarningsForDayRequestSchema>;
|
|
3923
3923
|
type ListUserEarningsForDayError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3924
3924
|
declare const ListUserEarningsForDayError: {
|
|
3925
|
-
isError(error: unknown): error is
|
|
3925
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3926
3926
|
};
|
|
3927
3927
|
/**
|
|
3928
3928
|
* Lists per-market earnings for the authenticated account on a given day.
|
|
@@ -3963,7 +3963,7 @@ declare function listUserEarningsForDay(client: BaseSecureClient, request: ListU
|
|
|
3963
3963
|
type FetchTotalEarningsForUserForDayRequest = z.input<typeof ListUserEarningsForDayRequestSchema>;
|
|
3964
3964
|
type FetchTotalEarningsForUserForDayError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3965
3965
|
declare const FetchTotalEarningsForUserForDayError: {
|
|
3966
|
-
isError(error: unknown): error is
|
|
3966
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3967
3967
|
};
|
|
3968
3968
|
/**
|
|
3969
3969
|
* Fetches total earnings for the authenticated account on a given day.
|
|
@@ -3982,7 +3982,7 @@ declare const FetchTotalEarningsForUserForDayError: {
|
|
|
3982
3982
|
*/
|
|
3983
3983
|
declare function fetchTotalEarningsForUserForDay(client: BaseSecureClient, request: FetchTotalEarningsForUserForDayRequest): Promise<TotalUserEarning[]>;
|
|
3984
3984
|
declare const ListUserEarningsAndMarketsConfigRequestSchema: z.ZodObject<{
|
|
3985
|
-
cursor: z.ZodOptional<z.
|
|
3985
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
3986
3986
|
date: z.ZodString;
|
|
3987
3987
|
noCompetition: z.ZodOptional<z.ZodBoolean>;
|
|
3988
3988
|
orderBy: z.ZodOptional<z.ZodString>;
|
|
@@ -3992,7 +3992,7 @@ declare const ListUserEarningsAndMarketsConfigRequestSchema: z.ZodObject<{
|
|
|
3992
3992
|
type ListUserEarningsAndMarketsConfigRequest = z.input<typeof ListUserEarningsAndMarketsConfigRequestSchema>;
|
|
3993
3993
|
type ListUserEarningsAndMarketsConfigError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3994
3994
|
declare const ListUserEarningsAndMarketsConfigError: {
|
|
3995
|
-
isError(error: unknown): error is
|
|
3995
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3996
3996
|
};
|
|
3997
3997
|
/**
|
|
3998
3998
|
* Lists market reward configuration and earnings for the authenticated account on a given day.
|
|
@@ -4032,7 +4032,7 @@ declare const ListUserEarningsAndMarketsConfigError: {
|
|
|
4032
4032
|
declare function listUserEarningsAndMarketsConfig(client: BaseSecureClient, request: ListUserEarningsAndMarketsConfigRequest): Paginated<UserRewardsEarning[]>;
|
|
4033
4033
|
type FetchRewardPercentagesError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
|
|
4034
4034
|
declare const FetchRewardPercentagesError: {
|
|
4035
|
-
isError(error: unknown): error is
|
|
4035
|
+
isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
4036
4036
|
};
|
|
4037
4037
|
/**
|
|
4038
4038
|
* Fetches reward percentages for the authenticated account.
|
|
@@ -4050,7 +4050,7 @@ declare const FetchRewardPercentagesError: {
|
|
|
4050
4050
|
declare function fetchRewardPercentages(client: BaseSecureClient): Promise<RewardsPercentages>;
|
|
4051
4051
|
|
|
4052
4052
|
declare const ListTradesRequestSchema: z.ZodObject<{
|
|
4053
|
-
cursor: z.ZodOptional<z.
|
|
4053
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
4054
4054
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
4055
4055
|
takerOnly: z.ZodOptional<z.ZodBoolean>;
|
|
4056
4056
|
filterType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -4067,7 +4067,7 @@ declare const ListTradesRequestSchema: z.ZodObject<{
|
|
|
4067
4067
|
}>>;
|
|
4068
4068
|
}, z.core.$strip>;
|
|
4069
4069
|
declare const ListActivityRequestSchema: z.ZodObject<{
|
|
4070
|
-
cursor: z.ZodOptional<z.
|
|
4070
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
4071
4071
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
4072
4072
|
user: z.ZodString;
|
|
4073
4073
|
market: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -4093,7 +4093,7 @@ type ListTradesRequest = z.input<typeof ListTradesRequestSchema>;
|
|
|
4093
4093
|
type ListActivityRequest = z.input<typeof ListActivityRequestSchema>;
|
|
4094
4094
|
type ListTradesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4095
4095
|
declare const ListTradesError: {
|
|
4096
|
-
isError(error: unknown): error is
|
|
4096
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4097
4097
|
};
|
|
4098
4098
|
/**
|
|
4099
4099
|
* Lists trades for a wallet, market, or event.
|
|
@@ -4136,7 +4136,7 @@ declare const ListTradesError: {
|
|
|
4136
4136
|
declare function listTrades(client: BaseClient, request?: ListTradesRequest): Paginated<Trade[]>;
|
|
4137
4137
|
type ListActivityError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4138
4138
|
declare const ListActivityError: {
|
|
4139
|
-
isError(error: unknown): error is
|
|
4139
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4140
4140
|
};
|
|
4141
4141
|
/**
|
|
4142
4142
|
* Lists wallet activity.
|
|
@@ -4212,7 +4212,7 @@ declare const PrepareErc20ApprovalError: {
|
|
|
4212
4212
|
declare function prepareErc20Approval(client: BaseSecureClient, request: PrepareErc20ApprovalRequest): Promise<Erc20ApprovalWorkflow>;
|
|
4213
4213
|
type ApproveErc20Error = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
|
|
4214
4214
|
declare const ApproveErc20Error: {
|
|
4215
|
-
isError(error: unknown): error is
|
|
4215
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
|
|
4216
4216
|
};
|
|
4217
4217
|
/**
|
|
4218
4218
|
* Approves ERC-20 token spending for the authenticated account.
|
|
@@ -4257,7 +4257,7 @@ declare const PrepareErc1155ApprovalForAllError: {
|
|
|
4257
4257
|
declare function prepareErc1155ApprovalForAll(client: BaseSecureClient, request: PrepareErc1155ApprovalForAllRequest): Promise<Erc1155ApprovalForAllWorkflow>;
|
|
4258
4258
|
type ApproveErc1155ForAllError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
|
|
4259
4259
|
declare const ApproveErc1155ForAllError: {
|
|
4260
|
-
isError(error: unknown): error is
|
|
4260
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
|
|
4261
4261
|
};
|
|
4262
4262
|
/**
|
|
4263
4263
|
* Approves or revokes ERC-1155 operator access for the authenticated account.
|
|
@@ -4273,7 +4273,7 @@ type TradingApprovalsWorkflowRequest = GaslessWorkflowRequest | SendErc20Approva
|
|
|
4273
4273
|
type TradingApprovalsWorkflow = AsyncGenerator<TradingApprovalsWorkflowRequest, void, EvmAddress$1 | EvmSignature | TransactionHandle>;
|
|
4274
4274
|
type PrepareTradingApprovalsError = RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4275
4275
|
declare const PrepareTradingApprovalsError: {
|
|
4276
|
-
isError(error: unknown): error is
|
|
4276
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError;
|
|
4277
4277
|
};
|
|
4278
4278
|
/**
|
|
4279
4279
|
* Starts a trading-setup approval workflow.
|
|
@@ -4292,7 +4292,7 @@ declare const PrepareTradingApprovalsError: {
|
|
|
4292
4292
|
declare function prepareTradingApprovals(client: BaseSecureClient): Promise<TradingApprovalsWorkflow>;
|
|
4293
4293
|
type SetupTradingApprovalsError = PrepareTradingApprovalsError | CancelledSigningError | SigningError | WaitForGaslessTransactionError;
|
|
4294
4294
|
declare const SetupTradingApprovalsError: {
|
|
4295
|
-
isError(error: unknown): error is
|
|
4295
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
4296
4296
|
};
|
|
4297
4297
|
type DeprecatedTransactionHandle = Omit<TransactionHandle, 'wait'> & {
|
|
4298
4298
|
/**
|
|
@@ -4316,7 +4316,7 @@ declare const ListBuilderTradesRequestSchema: z.ZodObject<{
|
|
|
4316
4316
|
after: z.ZodOptional<z.ZodString>;
|
|
4317
4317
|
before: z.ZodOptional<z.ZodString>;
|
|
4318
4318
|
builderCode: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.BuilderCode, string>>;
|
|
4319
|
-
cursor: z.ZodOptional<z.
|
|
4319
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
4320
4320
|
id: z.ZodOptional<z.ZodString>;
|
|
4321
4321
|
market: z.ZodOptional<z.ZodString>;
|
|
4322
4322
|
tokenId: z.ZodOptional<z.ZodString>;
|
|
@@ -4324,7 +4324,7 @@ declare const ListBuilderTradesRequestSchema: z.ZodObject<{
|
|
|
4324
4324
|
type ListBuilderTradesRequest = z.input<typeof ListBuilderTradesRequestSchema>;
|
|
4325
4325
|
type ListBuilderTradesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4326
4326
|
declare const ListBuilderTradesError: {
|
|
4327
|
-
isError(error: unknown): error is
|
|
4327
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4328
4328
|
};
|
|
4329
4329
|
/**
|
|
4330
4330
|
* Lists builder-attributed trades.
|
|
@@ -4366,7 +4366,7 @@ declare const FetchMidpointRequestSchema: z.ZodObject<{
|
|
|
4366
4366
|
type FetchMidpointRequest = z.input<typeof FetchMidpointRequestSchema>;
|
|
4367
4367
|
type FetchMidpointError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4368
4368
|
declare const FetchMidpointError: {
|
|
4369
|
-
isError(error: unknown): error is
|
|
4369
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4370
4370
|
};
|
|
4371
4371
|
/**
|
|
4372
4372
|
* Fetches the midpoint price for a token.
|
|
@@ -4395,7 +4395,7 @@ declare const FetchMidpointsRequestSchema: z.ZodArray<z.ZodObject<{
|
|
|
4395
4395
|
type FetchMidpointsRequest = z.input<typeof FetchMidpointsRequestSchema>;
|
|
4396
4396
|
type FetchMidpointsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4397
4397
|
declare const FetchMidpointsError: {
|
|
4398
|
-
isError(error: unknown): error is
|
|
4398
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4399
4399
|
};
|
|
4400
4400
|
/**
|
|
4401
4401
|
* Fetches midpoint prices for multiple tokens.
|
|
@@ -4426,7 +4426,7 @@ declare const FetchTickSizeRequestSchema: z.ZodObject<{
|
|
|
4426
4426
|
type FetchTickSizeRequest = z.input<typeof FetchTickSizeRequestSchema>;
|
|
4427
4427
|
type FetchTickSizeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4428
4428
|
declare const FetchTickSizeError: {
|
|
4429
|
-
isError(error: unknown): error is
|
|
4429
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4430
4430
|
};
|
|
4431
4431
|
/**
|
|
4432
4432
|
* Fetches the minimum price tick size for a token's order book.
|
|
@@ -4454,7 +4454,7 @@ declare const FetchNegRiskRequestSchema: z.ZodObject<{
|
|
|
4454
4454
|
type FetchNegRiskRequest = z.input<typeof FetchNegRiskRequestSchema>;
|
|
4455
4455
|
type FetchNegRiskError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4456
4456
|
declare const FetchNegRiskError: {
|
|
4457
|
-
isError(error: unknown): error is
|
|
4457
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4458
4458
|
};
|
|
4459
4459
|
/**
|
|
4460
4460
|
* Fetches whether a token is in a negative-risk market.
|
|
@@ -4482,7 +4482,7 @@ declare const ResolveConditionByTokenRequestSchema: z.ZodObject<{
|
|
|
4482
4482
|
type ResolveConditionByTokenRequest = z.input<typeof ResolveConditionByTokenRequestSchema>;
|
|
4483
4483
|
type ResolveConditionByTokenError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4484
4484
|
declare const ResolveConditionByTokenError: {
|
|
4485
|
-
isError(error: unknown): error is
|
|
4485
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4486
4486
|
};
|
|
4487
4487
|
/**
|
|
4488
4488
|
* Resolves the condition ID for a token.
|
|
@@ -4500,7 +4500,7 @@ declare const FetchMarketInfoRequestSchema: z.ZodObject<{
|
|
|
4500
4500
|
type FetchMarketInfoRequest = z.input<typeof FetchMarketInfoRequestSchema>;
|
|
4501
4501
|
type FetchMarketInfoError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4502
4502
|
declare const FetchMarketInfoError: {
|
|
4503
|
-
isError(error: unknown): error is
|
|
4503
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4504
4504
|
};
|
|
4505
4505
|
/**
|
|
4506
4506
|
* Fetches market-level metadata for a condition.
|
|
@@ -4518,7 +4518,7 @@ declare const FetchBuilderFeeRatesRequestSchema: z.ZodObject<{
|
|
|
4518
4518
|
type FetchBuilderFeeRatesRequest = z.input<typeof FetchBuilderFeeRatesRequestSchema>;
|
|
4519
4519
|
type FetchBuilderFeeRatesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4520
4520
|
declare const FetchBuilderFeeRatesError: {
|
|
4521
|
-
isError(error: unknown): error is
|
|
4521
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4522
4522
|
};
|
|
4523
4523
|
/**
|
|
4524
4524
|
* Fetches builder maker and taker fee rates.
|
|
@@ -4537,7 +4537,7 @@ declare const FetchPriceRequestSchema: z.ZodObject<{
|
|
|
4537
4537
|
type FetchPriceRequest = z.input<typeof FetchPriceRequestSchema>;
|
|
4538
4538
|
type FetchPriceError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4539
4539
|
declare const FetchPriceError: {
|
|
4540
|
-
isError(error: unknown): error is
|
|
4540
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4541
4541
|
};
|
|
4542
4542
|
/**
|
|
4543
4543
|
* Fetches the current quoted price for a token and side.
|
|
@@ -4568,7 +4568,7 @@ declare const FetchPricesRequestSchema: z.ZodArray<z.ZodObject<{
|
|
|
4568
4568
|
type FetchPricesRequest = z.input<typeof FetchPricesRequestSchema>;
|
|
4569
4569
|
type FetchPricesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4570
4570
|
declare const FetchPricesError: {
|
|
4571
|
-
isError(error: unknown): error is
|
|
4571
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4572
4572
|
};
|
|
4573
4573
|
/**
|
|
4574
4574
|
* Fetches quoted prices for multiple tokens.
|
|
@@ -4600,7 +4600,7 @@ declare const FetchOrderBookRequestSchema: z.ZodObject<{
|
|
|
4600
4600
|
type FetchOrderBookRequest = z.input<typeof FetchOrderBookRequestSchema>;
|
|
4601
4601
|
type FetchOrderBookError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4602
4602
|
declare const FetchOrderBookError: {
|
|
4603
|
-
isError(error: unknown): error is
|
|
4603
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4604
4604
|
};
|
|
4605
4605
|
/**
|
|
4606
4606
|
* Fetches the current order book for a token.
|
|
@@ -4628,7 +4628,7 @@ declare const FetchOrderBooksRequestSchema: z.ZodArray<z.ZodObject<{
|
|
|
4628
4628
|
type FetchOrderBooksRequest = z.input<typeof FetchOrderBooksRequestSchema>;
|
|
4629
4629
|
type FetchOrderBooksError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4630
4630
|
declare const FetchOrderBooksError: {
|
|
4631
|
-
isError(error: unknown): error is
|
|
4631
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4632
4632
|
};
|
|
4633
4633
|
/**
|
|
4634
4634
|
* Fetches order books for multiple tokens.
|
|
@@ -4658,7 +4658,7 @@ declare const FetchSpreadRequestSchema: z.ZodObject<{
|
|
|
4658
4658
|
type FetchSpreadRequest = z.input<typeof FetchSpreadRequestSchema>;
|
|
4659
4659
|
type FetchSpreadError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4660
4660
|
declare const FetchSpreadError: {
|
|
4661
|
-
isError(error: unknown): error is
|
|
4661
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4662
4662
|
};
|
|
4663
4663
|
/**
|
|
4664
4664
|
* Fetches the spread for a token.
|
|
@@ -4687,7 +4687,7 @@ declare const FetchSpreadsRequestSchema: z.ZodArray<z.ZodObject<{
|
|
|
4687
4687
|
type FetchSpreadsRequest = z.input<typeof FetchSpreadsRequestSchema>;
|
|
4688
4688
|
type FetchSpreadsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4689
4689
|
declare const FetchSpreadsError: {
|
|
4690
|
-
isError(error: unknown): error is
|
|
4690
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4691
4691
|
};
|
|
4692
4692
|
/**
|
|
4693
4693
|
* Fetches spreads for multiple tokens.
|
|
@@ -4718,7 +4718,7 @@ declare const FetchLastTradePriceRequestSchema: z.ZodObject<{
|
|
|
4718
4718
|
type FetchLastTradePriceRequest = z.input<typeof FetchLastTradePriceRequestSchema>;
|
|
4719
4719
|
type FetchLastTradePriceError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4720
4720
|
declare const FetchLastTradePriceError: {
|
|
4721
|
-
isError(error: unknown): error is
|
|
4721
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4722
4722
|
};
|
|
4723
4723
|
/**
|
|
4724
4724
|
* Fetches the last traded price for a token.
|
|
@@ -4747,7 +4747,7 @@ declare const FetchLastTradePricesRequestSchema: z.ZodArray<z.ZodObject<{
|
|
|
4747
4747
|
type FetchLastTradePricesRequest = z.input<typeof FetchLastTradePricesRequestSchema>;
|
|
4748
4748
|
type FetchLastTradePricesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4749
4749
|
declare const FetchLastTradePricesError: {
|
|
4750
|
-
isError(error: unknown): error is
|
|
4750
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4751
4751
|
};
|
|
4752
4752
|
/**
|
|
4753
4753
|
* Fetches last traded prices for multiple tokens.
|
|
@@ -4782,7 +4782,7 @@ declare const ListPriceHistoryRequestSchema: z.ZodObject<{
|
|
|
4782
4782
|
type FetchPriceHistoryRequest = z.input<typeof ListPriceHistoryRequestSchema>;
|
|
4783
4783
|
type FetchPriceHistoryError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4784
4784
|
declare const FetchPriceHistoryError: {
|
|
4785
|
-
isError(error: unknown): error is
|
|
4785
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4786
4786
|
};
|
|
4787
4787
|
/**
|
|
4788
4788
|
* Fetches historical price points for a token.
|
|
@@ -4808,13 +4808,13 @@ declare const FetchPriceHistoryError: {
|
|
|
4808
4808
|
*/
|
|
4809
4809
|
declare function fetchPriceHistory(client: BaseClient, request: FetchPriceHistoryRequest): Promise<PriceHistoryPoint[]>;
|
|
4810
4810
|
declare const ListCurrentRewardsRequestSchema: z.ZodDefault<z.ZodObject<{
|
|
4811
|
-
cursor: z.ZodOptional<z.
|
|
4811
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
4812
4812
|
sponsored: z.ZodOptional<z.ZodBoolean>;
|
|
4813
4813
|
}, z.core.$strip>>;
|
|
4814
4814
|
type ListCurrentRewardsRequest = z.input<typeof ListCurrentRewardsRequestSchema>;
|
|
4815
4815
|
type ListCurrentRewardsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4816
4816
|
declare const ListCurrentRewardsError: {
|
|
4817
|
-
isError(error: unknown): error is
|
|
4817
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4818
4818
|
};
|
|
4819
4819
|
/**
|
|
4820
4820
|
* Lists current active market rewards.
|
|
@@ -4851,13 +4851,13 @@ declare const ListCurrentRewardsError: {
|
|
|
4851
4851
|
declare function listCurrentRewards(client: BaseClient, request?: ListCurrentRewardsRequest): Paginated<CurrentReward[]>;
|
|
4852
4852
|
declare const ListMarketRewardsRequestSchema: z.ZodObject<{
|
|
4853
4853
|
conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
4854
|
-
cursor: z.ZodOptional<z.
|
|
4854
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
4855
4855
|
sponsored: z.ZodOptional<z.ZodBoolean>;
|
|
4856
4856
|
}, z.core.$strip>;
|
|
4857
4857
|
type ListMarketRewardsRequest = z.input<typeof ListMarketRewardsRequestSchema>;
|
|
4858
4858
|
type ListMarketRewardsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4859
4859
|
declare const ListMarketRewardsError: {
|
|
4860
|
-
isError(error: unknown): error is
|
|
4860
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4861
4861
|
};
|
|
4862
4862
|
/**
|
|
4863
4863
|
* Lists reward configurations for a market.
|
|
@@ -4901,7 +4901,7 @@ declare function listMarketRewards(client: BaseClient, request: ListMarketReward
|
|
|
4901
4901
|
|
|
4902
4902
|
declare const ListCommentsRequestSchema: z.ZodObject<{
|
|
4903
4903
|
ascending: z.ZodOptional<z.ZodBoolean>;
|
|
4904
|
-
cursor: z.ZodOptional<z.
|
|
4904
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
4905
4905
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
4906
4906
|
getPositions: z.ZodOptional<z.ZodBoolean>;
|
|
4907
4907
|
holdersOnly: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4916,7 +4916,7 @@ declare const FetchCommentsByIdRequestSchema: z.ZodObject<{
|
|
|
4916
4916
|
declare const ListCommentsByUserAddressRequestSchema: z.ZodObject<{
|
|
4917
4917
|
address: z.ZodString;
|
|
4918
4918
|
ascending: z.ZodOptional<z.ZodBoolean>;
|
|
4919
|
-
cursor: z.ZodOptional<z.
|
|
4919
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
4920
4920
|
order: z.ZodOptional<z.ZodString>;
|
|
4921
4921
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
4922
4922
|
}, z.core.$strip>;
|
|
@@ -4925,7 +4925,7 @@ type FetchCommentsByIdRequest = z.input<typeof FetchCommentsByIdRequestSchema>;
|
|
|
4925
4925
|
type ListCommentsByUserAddressRequest = z.input<typeof ListCommentsByUserAddressRequestSchema>;
|
|
4926
4926
|
type ListCommentsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4927
4927
|
declare const ListCommentsError: {
|
|
4928
|
-
isError(error: unknown): error is
|
|
4928
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4929
4929
|
};
|
|
4930
4930
|
/**
|
|
4931
4931
|
* Lists comments for an event or series.
|
|
@@ -4970,7 +4970,7 @@ declare const ListCommentsError: {
|
|
|
4970
4970
|
declare function listComments(client: BaseClient, request: ListCommentsRequest): Paginated<Comment[]>;
|
|
4971
4971
|
type FetchCommentsByIdError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4972
4972
|
declare const FetchCommentsByIdError: {
|
|
4973
|
-
isError(error: unknown): error is
|
|
4973
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4974
4974
|
};
|
|
4975
4975
|
/**
|
|
4976
4976
|
* Fetches a comment thread by comment id.
|
|
@@ -4994,7 +4994,7 @@ declare const FetchCommentsByIdError: {
|
|
|
4994
4994
|
declare function fetchCommentsById(client: BaseClient, request: FetchCommentsByIdRequest): Promise<Comment[]>;
|
|
4995
4995
|
type ListCommentsByUserAddressError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4996
4996
|
declare const ListCommentsByUserAddressError: {
|
|
4997
|
-
isError(error: unknown): error is
|
|
4997
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4998
4998
|
};
|
|
4999
4999
|
/**
|
|
5000
5000
|
* Lists comments written by a wallet address.
|
|
@@ -5041,7 +5041,7 @@ declare function listCommentsByUserAddress(client: BaseClient, request: ListComm
|
|
|
5041
5041
|
declare const ListEventsRequestSchema: z.ZodObject<{
|
|
5042
5042
|
ascending: z.ZodOptional<z.ZodBoolean>;
|
|
5043
5043
|
closed: z.ZodDefault<z.ZodBoolean>;
|
|
5044
|
-
cursor: z.ZodOptional<z.
|
|
5044
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
5045
5045
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
5046
5046
|
cyom: z.ZodOptional<z.ZodBoolean>;
|
|
5047
5047
|
endDateMax: z.ZodOptional<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<_polymarket_bindings.IsoDateTimeString, Date>>]>>;
|
|
@@ -5118,7 +5118,7 @@ declare const FetchEventLiveVolumeRequestSchema: z.ZodObject<{
|
|
|
5118
5118
|
type FetchEventLiveVolumeRequest = z.input<typeof FetchEventLiveVolumeRequestSchema>;
|
|
5119
5119
|
type ListEventsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5120
5120
|
declare const ListEventsError: {
|
|
5121
|
-
isError(error: unknown): error is
|
|
5121
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5122
5122
|
};
|
|
5123
5123
|
/**
|
|
5124
5124
|
* Lists events.
|
|
@@ -5163,7 +5163,7 @@ declare const ListEventsError: {
|
|
|
5163
5163
|
declare function listEvents(client: BaseClient, request?: ListEventsRequest): Paginated<Event[]>;
|
|
5164
5164
|
type FetchEventError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5165
5165
|
declare const FetchEventError: {
|
|
5166
|
-
isError(error: unknown): error is
|
|
5166
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5167
5167
|
};
|
|
5168
5168
|
/**
|
|
5169
5169
|
* Fetches an event.
|
|
@@ -5194,7 +5194,7 @@ declare const FetchEventError: {
|
|
|
5194
5194
|
declare function fetchEvent(client: BaseClient, request: FetchEventRequest): Promise<Event>;
|
|
5195
5195
|
type FetchEventTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5196
5196
|
declare const FetchEventTagsError: {
|
|
5197
|
-
isError(error: unknown): error is
|
|
5197
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5198
5198
|
};
|
|
5199
5199
|
/**
|
|
5200
5200
|
* Fetches an event's tags.
|
|
@@ -5217,7 +5217,7 @@ declare const FetchEventTagsError: {
|
|
|
5217
5217
|
declare function fetchEventTags(client: BaseClient, request: FetchEventTagsRequest): Promise<TagReference[]>;
|
|
5218
5218
|
type FetchEventLiveVolumeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5219
5219
|
declare const FetchEventLiveVolumeError: {
|
|
5220
|
-
isError(error: unknown): error is
|
|
5220
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5221
5221
|
};
|
|
5222
5222
|
/**
|
|
5223
5223
|
* Fetches live volume for an event.
|
|
@@ -5240,7 +5240,7 @@ declare const FetchEventLiveVolumeError: {
|
|
|
5240
5240
|
declare function fetchEventLiveVolume(client: BaseClient, request: FetchEventLiveVolumeRequest): Promise<LiveVolume[]>;
|
|
5241
5241
|
|
|
5242
5242
|
declare const ListBuilderLeaderboardRequestSchema: z.ZodObject<{
|
|
5243
|
-
cursor: z.ZodOptional<z.
|
|
5243
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
5244
5244
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
5245
5245
|
timePeriod: z.ZodOptional<z.ZodEnum<{
|
|
5246
5246
|
DAY: "DAY";
|
|
@@ -5270,7 +5270,7 @@ declare const ListTraderLeaderboardRequestSchema: z.ZodObject<{
|
|
|
5270
5270
|
TECH: "TECH";
|
|
5271
5271
|
FINANCE: "FINANCE";
|
|
5272
5272
|
}>>;
|
|
5273
|
-
cursor: z.ZodOptional<z.
|
|
5273
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
5274
5274
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
5275
5275
|
timePeriod: z.ZodOptional<z.ZodEnum<{
|
|
5276
5276
|
DAY: "DAY";
|
|
@@ -5290,7 +5290,7 @@ type ListBuilderVolumeRequest = z.input<typeof ListBuilderVolumeRequestSchema>;
|
|
|
5290
5290
|
type ListTraderLeaderboardRequest = z.input<typeof ListTraderLeaderboardRequestSchema>;
|
|
5291
5291
|
type ListBuilderLeaderboardError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5292
5292
|
declare const ListBuilderLeaderboardError: {
|
|
5293
|
-
isError(error: unknown): error is
|
|
5293
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5294
5294
|
};
|
|
5295
5295
|
/**
|
|
5296
5296
|
* Lists builder leaderboard rankings.
|
|
@@ -5333,7 +5333,7 @@ declare const ListBuilderLeaderboardError: {
|
|
|
5333
5333
|
declare function listBuilderLeaderboard(client: BaseClient, request?: ListBuilderLeaderboardRequest): Paginated<LeaderboardEntry[]>;
|
|
5334
5334
|
type ListBuilderVolumeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5335
5335
|
declare const ListBuilderVolumeError: {
|
|
5336
|
-
isError(error: unknown): error is
|
|
5336
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5337
5337
|
};
|
|
5338
5338
|
/**
|
|
5339
5339
|
* Lists daily builder volume entries.
|
|
@@ -5356,7 +5356,7 @@ declare const ListBuilderVolumeError: {
|
|
|
5356
5356
|
declare function fetchBuilderVolume(client: BaseClient, request?: ListBuilderVolumeRequest): Promise<BuilderVolumeEntry[]>;
|
|
5357
5357
|
type ListTraderLeaderboardError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5358
5358
|
declare const ListTraderLeaderboardError: {
|
|
5359
|
-
isError(error: unknown): error is
|
|
5359
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5360
5360
|
};
|
|
5361
5361
|
/**
|
|
5362
5362
|
* Lists trader leaderboard rankings.
|
|
@@ -5404,7 +5404,7 @@ declare const ListMarketsRequestSchema: z.ZodObject<{
|
|
|
5404
5404
|
ascending: z.ZodOptional<z.ZodBoolean>;
|
|
5405
5405
|
closed: z.ZodOptional<z.ZodBoolean>;
|
|
5406
5406
|
clobTokenIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5407
|
-
cursor: z.ZodOptional<z.
|
|
5407
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
5408
5408
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
5409
5409
|
conditionIds: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.CtfConditionId, string>>>>;
|
|
5410
5410
|
cyom: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5465,7 +5465,7 @@ declare const ListOpenInterestRequestSchema: z.ZodObject<{
|
|
|
5465
5465
|
market: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5466
5466
|
}, z.core.$strip>;
|
|
5467
5467
|
declare const ListMarketPositionsRequestSchema: z.ZodObject<{
|
|
5468
|
-
cursor: z.ZodOptional<z.
|
|
5468
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
5469
5469
|
market: z.ZodString;
|
|
5470
5470
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
5471
5471
|
user: z.ZodOptional<z.ZodString>;
|
|
@@ -5490,7 +5490,7 @@ type ListOpenInterestRequest = z.input<typeof ListOpenInterestRequestSchema>;
|
|
|
5490
5490
|
type ListMarketPositionsRequest = z.input<typeof ListMarketPositionsRequestSchema>;
|
|
5491
5491
|
type ListMarketsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5492
5492
|
declare const ListMarketsError: {
|
|
5493
|
-
isError(error: unknown): error is
|
|
5493
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5494
5494
|
};
|
|
5495
5495
|
/**
|
|
5496
5496
|
* Lists markets.
|
|
@@ -5535,14 +5535,14 @@ declare const ListMarketsError: {
|
|
|
5535
5535
|
*/
|
|
5536
5536
|
declare function listMarkets(client: BaseClient, request?: ListMarketsRequest): Paginated<Market[]>;
|
|
5537
5537
|
declare const ListComboMarketsRequestSchema: z.ZodObject<{
|
|
5538
|
-
cursor: z.ZodOptional<z.
|
|
5538
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
5539
5539
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
5540
5540
|
exclude: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.CtfConditionId, string>>>>;
|
|
5541
5541
|
}, z.core.$strip>;
|
|
5542
5542
|
type ListComboMarketsRequest = z.input<typeof ListComboMarketsRequestSchema>;
|
|
5543
5543
|
type ListComboMarketsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5544
5544
|
declare const ListComboMarketsError: {
|
|
5545
|
-
isError(error: unknown): error is
|
|
5545
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5546
5546
|
};
|
|
5547
5547
|
/**
|
|
5548
5548
|
* Lists markets available for Combos.
|
|
@@ -5580,7 +5580,7 @@ declare const ListComboMarketsError: {
|
|
|
5580
5580
|
declare function listComboMarkets(client: BaseClient, request?: ListComboMarketsRequest): Paginated<ComboMarket[]>;
|
|
5581
5581
|
type FetchMarketError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5582
5582
|
declare const FetchMarketError: {
|
|
5583
|
-
isError(error: unknown): error is
|
|
5583
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5584
5584
|
};
|
|
5585
5585
|
/**
|
|
5586
5586
|
* Fetches a market.
|
|
@@ -5615,7 +5615,7 @@ declare const FetchMarketError: {
|
|
|
5615
5615
|
declare function fetchMarket(client: BaseClient, request: FetchMarketRequest): Promise<Market>;
|
|
5616
5616
|
type FetchMarketTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5617
5617
|
declare const FetchMarketTagsError: {
|
|
5618
|
-
isError(error: unknown): error is
|
|
5618
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5619
5619
|
};
|
|
5620
5620
|
/**
|
|
5621
5621
|
* Fetches a market's tags.
|
|
@@ -5638,7 +5638,7 @@ declare const FetchMarketTagsError: {
|
|
|
5638
5638
|
declare function fetchMarketTags(client: BaseClient, request: FetchMarketTagsRequest): Promise<TagReference[]>;
|
|
5639
5639
|
type ListMarketHoldersError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5640
5640
|
declare const ListMarketHoldersError: {
|
|
5641
|
-
isError(error: unknown): error is
|
|
5641
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5642
5642
|
};
|
|
5643
5643
|
/**
|
|
5644
5644
|
* Lists the top holders for one or more markets.
|
|
@@ -5662,7 +5662,7 @@ declare const ListMarketHoldersError: {
|
|
|
5662
5662
|
declare function listMarketHolders(client: BaseClient, request: ListMarketHoldersRequest): Promise<MetaHolder[]>;
|
|
5663
5663
|
type ListOpenInterestError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5664
5664
|
declare const ListOpenInterestError: {
|
|
5665
|
-
isError(error: unknown): error is
|
|
5665
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5666
5666
|
};
|
|
5667
5667
|
/**
|
|
5668
5668
|
* Lists open interest for one or more markets.
|
|
@@ -5685,7 +5685,7 @@ declare const ListOpenInterestError: {
|
|
|
5685
5685
|
declare function listOpenInterest(client: BaseClient, request?: ListOpenInterestRequest): Promise<OpenInterest[]>;
|
|
5686
5686
|
type ListMarketPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5687
5687
|
declare const ListMarketPositionsError: {
|
|
5688
|
-
isError(error: unknown): error is
|
|
5688
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5689
5689
|
};
|
|
5690
5690
|
/**
|
|
5691
5691
|
* Lists positions for a market.
|
|
@@ -5769,7 +5769,7 @@ type FetchPerpsOrdersRequest = z.input<typeof FetchPerpsOrdersRequestSchema>;
|
|
|
5769
5769
|
declare const ListPerpsFillsRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
5770
5770
|
start: z.ZodOptional<z.ZodNumber>;
|
|
5771
5771
|
end: z.ZodOptional<z.ZodNumber>;
|
|
5772
|
-
cursor: z.ZodOptional<z.
|
|
5772
|
+
cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
|
|
5773
5773
|
}, z.core.$strip>, z.ZodTransform<{
|
|
5774
5774
|
cursor: PaginationCursor | undefined;
|
|
5775
5775
|
params: Omit<Record<string, unknown>, "start" | "end"> & PerpsHistoryParams;
|
|
@@ -5778,7 +5778,7 @@ declare const ListPerpsFillsRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodO
|
|
|
5778
5778
|
end?: number | undefined;
|
|
5779
5779
|
cursor?: PaginationCursor | undefined;
|
|
5780
5780
|
}>>, z.ZodPipe<z.ZodObject<{
|
|
5781
|
-
cursor: z.
|
|
5781
|
+
cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
|
|
5782
5782
|
}, z.core.$strip>, z.ZodTransform<{
|
|
5783
5783
|
cursor: PaginationCursor;
|
|
5784
5784
|
params: undefined;
|
|
@@ -5789,7 +5789,7 @@ type ListPerpsFillsRequest = z.input<typeof ListPerpsFillsRequestSchema>;
|
|
|
5789
5789
|
declare const ListPerpsFundingPaymentsRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
5790
5790
|
start: z.ZodOptional<z.ZodNumber>;
|
|
5791
5791
|
end: z.ZodOptional<z.ZodNumber>;
|
|
5792
|
-
cursor: z.ZodOptional<z.
|
|
5792
|
+
cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
|
|
5793
5793
|
instrumentId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>>;
|
|
5794
5794
|
}, z.core.$strip>, z.ZodTransform<{
|
|
5795
5795
|
cursor: PaginationCursor | undefined;
|
|
@@ -5804,7 +5804,7 @@ declare const ListPerpsFundingPaymentsRequestSchema: z.ZodUnion<readonly [z.ZodP
|
|
|
5804
5804
|
cursor?: PaginationCursor | undefined;
|
|
5805
5805
|
instrumentId?: PerpsInstrumentId | undefined;
|
|
5806
5806
|
}>>, z.ZodPipe<z.ZodObject<{
|
|
5807
|
-
cursor: z.
|
|
5807
|
+
cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
|
|
5808
5808
|
}, z.core.$strip>, z.ZodTransform<{
|
|
5809
5809
|
cursor: PaginationCursor;
|
|
5810
5810
|
params: undefined;
|
|
@@ -5815,7 +5815,7 @@ type ListPerpsFundingPaymentsRequest = z.input<typeof ListPerpsFundingPaymentsRe
|
|
|
5815
5815
|
declare const ListPerpsDepositsRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
5816
5816
|
start: z.ZodOptional<z.ZodNumber>;
|
|
5817
5817
|
end: z.ZodOptional<z.ZodNumber>;
|
|
5818
|
-
cursor: z.ZodOptional<z.
|
|
5818
|
+
cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
|
|
5819
5819
|
depositStatus: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_perps.PerpsDepositStatus>>;
|
|
5820
5820
|
hash: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>;
|
|
5821
5821
|
}, z.core.$strip>, z.ZodTransform<{
|
|
@@ -5833,7 +5833,7 @@ declare const ListPerpsDepositsRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.Z
|
|
|
5833
5833
|
depositStatus?: _polymarket_bindings_perps.PerpsDepositStatus | undefined;
|
|
5834
5834
|
hash?: _polymarket_types.TxHash | undefined;
|
|
5835
5835
|
}>>, z.ZodPipe<z.ZodObject<{
|
|
5836
|
-
cursor: z.
|
|
5836
|
+
cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
|
|
5837
5837
|
}, z.core.$strip>, z.ZodTransform<{
|
|
5838
5838
|
cursor: PaginationCursor;
|
|
5839
5839
|
params: undefined;
|
|
@@ -5844,7 +5844,7 @@ type ListPerpsDepositsRequest = z.input<typeof ListPerpsDepositsRequestSchema>;
|
|
|
5844
5844
|
declare const ListPerpsWithdrawalsRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
5845
5845
|
start: z.ZodOptional<z.ZodNumber>;
|
|
5846
5846
|
end: z.ZodOptional<z.ZodNumber>;
|
|
5847
|
-
cursor: z.ZodOptional<z.
|
|
5847
|
+
cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
|
|
5848
5848
|
withdrawalStatus: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_perps.PerpsWithdrawalStatus>>;
|
|
5849
5849
|
hash: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>;
|
|
5850
5850
|
}, z.core.$strip>, z.ZodTransform<{
|
|
@@ -5862,7 +5862,7 @@ declare const ListPerpsWithdrawalsRequestSchema: z.ZodUnion<readonly [z.ZodPipe<
|
|
|
5862
5862
|
withdrawalStatus?: _polymarket_bindings_perps.PerpsWithdrawalStatus | undefined;
|
|
5863
5863
|
hash?: _polymarket_types.TxHash | undefined;
|
|
5864
5864
|
}>>, z.ZodPipe<z.ZodObject<{
|
|
5865
|
-
cursor: z.
|
|
5865
|
+
cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
|
|
5866
5866
|
}, z.core.$strip>, z.ZodTransform<{
|
|
5867
5867
|
cursor: PaginationCursor;
|
|
5868
5868
|
params: undefined;
|
|
@@ -5874,7 +5874,7 @@ declare const ListPerpsEquityHistoryRequestSchema: z.ZodUnion<readonly [z.ZodPip
|
|
|
5874
5874
|
interval: z.ZodEnum<typeof _polymarket_bindings_perps.PerpsPnlInterval>;
|
|
5875
5875
|
start: z.ZodNumber;
|
|
5876
5876
|
end: z.ZodOptional<z.ZodNumber>;
|
|
5877
|
-
cursor: z.ZodOptional<z.
|
|
5877
|
+
cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
|
|
5878
5878
|
}, z.core.$strip>, z.ZodTransform<{
|
|
5879
5879
|
cursor: PaginationCursor | undefined;
|
|
5880
5880
|
params: PerpsIntervalHistoryParams;
|
|
@@ -5884,7 +5884,7 @@ declare const ListPerpsEquityHistoryRequestSchema: z.ZodUnion<readonly [z.ZodPip
|
|
|
5884
5884
|
end?: number | undefined;
|
|
5885
5885
|
cursor?: PaginationCursor | undefined;
|
|
5886
5886
|
}>>, z.ZodPipe<z.ZodObject<{
|
|
5887
|
-
cursor: z.
|
|
5887
|
+
cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
|
|
5888
5888
|
}, z.core.$strip>, z.ZodTransform<{
|
|
5889
5889
|
cursor: PaginationCursor;
|
|
5890
5890
|
params: undefined;
|
|
@@ -5896,7 +5896,7 @@ declare const ListPerpsPnlHistoryRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z
|
|
|
5896
5896
|
interval: z.ZodEnum<typeof _polymarket_bindings_perps.PerpsPnlInterval>;
|
|
5897
5897
|
start: z.ZodNumber;
|
|
5898
5898
|
end: z.ZodOptional<z.ZodNumber>;
|
|
5899
|
-
cursor: z.ZodOptional<z.
|
|
5899
|
+
cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
|
|
5900
5900
|
}, z.core.$strip>, z.ZodTransform<{
|
|
5901
5901
|
cursor: PaginationCursor | undefined;
|
|
5902
5902
|
params: PerpsIntervalHistoryParams;
|
|
@@ -5906,7 +5906,7 @@ declare const ListPerpsPnlHistoryRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z
|
|
|
5906
5906
|
end?: number | undefined;
|
|
5907
5907
|
cursor?: PaginationCursor | undefined;
|
|
5908
5908
|
}>>, z.ZodPipe<z.ZodObject<{
|
|
5909
|
-
cursor: z.
|
|
5909
|
+
cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
|
|
5910
5910
|
}, z.core.$strip>, z.ZodTransform<{
|
|
5911
5911
|
cursor: PaginationCursor;
|
|
5912
5912
|
params: undefined;
|
|
@@ -5971,13 +5971,54 @@ type PerpsPlaceFokOrderRequest = {
|
|
|
5971
5971
|
clientOrderId?: string;
|
|
5972
5972
|
};
|
|
5973
5973
|
/**
|
|
5974
|
-
* Request parameters for
|
|
5974
|
+
* Request parameters for one Perps order.
|
|
5975
5975
|
*/
|
|
5976
|
-
type
|
|
5976
|
+
type PerpsOrderRequest = PerpsPlaceGtcOrderRequest | PerpsPlaceIocOrderRequest | PerpsPlaceFokOrderRequest;
|
|
5977
|
+
type PerpsTpSlTrigger = {
|
|
5978
|
+
triggerPrice: PerpsDecimalInput;
|
|
5979
|
+
limitPrice?: PerpsDecimalInput;
|
|
5980
|
+
};
|
|
5981
|
+
type PerpsPositionTpSlTrigger = {
|
|
5982
|
+
triggerPrice: PerpsDecimalInput;
|
|
5983
|
+
};
|
|
5984
|
+
type PerpsTpSlPairRequest = {
|
|
5985
|
+
takeProfit: PerpsTpSlTrigger;
|
|
5986
|
+
stopLoss?: PerpsTpSlTrigger;
|
|
5987
|
+
} | {
|
|
5988
|
+
takeProfit?: PerpsTpSlTrigger;
|
|
5989
|
+
stopLoss: PerpsTpSlTrigger;
|
|
5990
|
+
};
|
|
5977
5991
|
/** Request parameters for posting one or more Perps orders. */
|
|
5978
5992
|
type PostPerpsOrdersRequest = {
|
|
5979
5993
|
/** Orders to post as one command. */
|
|
5980
|
-
orders:
|
|
5994
|
+
orders: PerpsOrderRequest[];
|
|
5995
|
+
/** Optional command expiration timestamp in milliseconds. */
|
|
5996
|
+
expiresAt?: number;
|
|
5997
|
+
};
|
|
5998
|
+
type PlacePerpsOrderRequest = PerpsOrderRequest & {
|
|
5999
|
+
expiresAt?: number;
|
|
6000
|
+
stopLoss?: undefined;
|
|
6001
|
+
takeProfit?: undefined;
|
|
6002
|
+
};
|
|
6003
|
+
type PlacePerpsOrderWithTpSlRequest = PerpsOrderRequest & PerpsTpSlPairRequest & {
|
|
6004
|
+
expiresAt?: number;
|
|
6005
|
+
};
|
|
6006
|
+
type PlacePerpsPositionTpSlRequest = {
|
|
6007
|
+
/** Perps instrument identifier whose current position should receive TP/SL protection. */
|
|
6008
|
+
instrumentId: number;
|
|
6009
|
+
/** Take-profit trigger to place for the current position. */
|
|
6010
|
+
takeProfit: PerpsPositionTpSlTrigger;
|
|
6011
|
+
/** Optional stop-loss trigger to place alongside the take-profit. */
|
|
6012
|
+
stopLoss?: PerpsPositionTpSlTrigger;
|
|
6013
|
+
/** Optional command expiration timestamp in milliseconds. */
|
|
6014
|
+
expiresAt?: number;
|
|
6015
|
+
} | {
|
|
6016
|
+
/** Perps instrument identifier whose current position should receive TP/SL protection. */
|
|
6017
|
+
instrumentId: number;
|
|
6018
|
+
/** Optional take-profit trigger to place alongside the stop-loss. */
|
|
6019
|
+
takeProfit?: PerpsPositionTpSlTrigger;
|
|
6020
|
+
/** Stop-loss trigger to place for the current position. */
|
|
6021
|
+
stopLoss: PerpsPositionTpSlTrigger;
|
|
5981
6022
|
/** Optional command expiration timestamp in milliseconds. */
|
|
5982
6023
|
expiresAt?: number;
|
|
5983
6024
|
};
|
|
@@ -6009,16 +6050,7 @@ declare const UpdatePerpsLeverageRequestSchema: z.ZodObject<{
|
|
|
6009
6050
|
type UpdatePerpsLeverageRequest = z.input<typeof UpdatePerpsLeverageRequestSchema>;
|
|
6010
6051
|
type UpdatePerpsLeverageError = RequestRejectedError | SigningError | TransportError | UserInputError;
|
|
6011
6052
|
declare const UpdatePerpsLeverageError: {
|
|
6012
|
-
isError(error: unknown): error is
|
|
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;
|
|
6053
|
+
isError(error: unknown): error is UserInputError | TransportError | RequestRejectedError | SigningError;
|
|
6022
6054
|
};
|
|
6023
6055
|
|
|
6024
6056
|
type PerpsSessionOptions = {
|
|
@@ -6029,6 +6061,22 @@ type PerpsSessionOptions = {
|
|
|
6029
6061
|
restUrl: string;
|
|
6030
6062
|
wsUrl: string;
|
|
6031
6063
|
};
|
|
6064
|
+
type PerpsPlacedTpSlOrder = {
|
|
6065
|
+
orderId: PerpsOrderId;
|
|
6066
|
+
};
|
|
6067
|
+
type PerpsPlacedTpSlOrders = {
|
|
6068
|
+
takeProfit?: PerpsPlacedTpSlOrder;
|
|
6069
|
+
stopLoss?: PerpsPlacedTpSlOrder;
|
|
6070
|
+
};
|
|
6071
|
+
type PlacePerpsOrderResult = {
|
|
6072
|
+
order: PerpsOrder;
|
|
6073
|
+
};
|
|
6074
|
+
type PlacePerpsOrderWithTpSlResult = PlacePerpsOrderResult & {
|
|
6075
|
+
tpSl: PerpsPlacedTpSlOrders;
|
|
6076
|
+
};
|
|
6077
|
+
type PlacePerpsPositionTpSlResult = {
|
|
6078
|
+
tpSl: PerpsPlacedTpSlOrders;
|
|
6079
|
+
};
|
|
6032
6080
|
declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
|
|
6033
6081
|
#private;
|
|
6034
6082
|
readonly credentials: PerpsCredentials;
|
|
@@ -6039,6 +6087,7 @@ declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
|
|
|
6039
6087
|
[Symbol.asyncIterator](): AsyncIterator<PerpsSessionEvent>;
|
|
6040
6088
|
fetchBalances(): Promise<PerpsBalance[]>;
|
|
6041
6089
|
fetchPortfolio(): Promise<PerpsPortfolio>;
|
|
6090
|
+
fetchStats(): Promise<PerpsAccountStats>;
|
|
6042
6091
|
fetchAccountConfig(request?: FetchPerpsAccountConfigRequest): Promise<PerpsAccountConfig[]>;
|
|
6043
6092
|
fetchOpenOrders(request?: FetchPerpsOpenOrdersRequest): Promise<PerpsOrder[]>;
|
|
6044
6093
|
fetchOrders(request?: FetchPerpsOrdersRequest): Promise<PerpsOrder[]>;
|
|
@@ -6053,7 +6102,8 @@ declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
|
|
|
6053
6102
|
*
|
|
6054
6103
|
* @throws Thrown on failure.
|
|
6055
6104
|
*/
|
|
6056
|
-
placeOrder(request:
|
|
6105
|
+
placeOrder(request: PlacePerpsOrderWithTpSlRequest): Promise<PlacePerpsOrderWithTpSlResult>;
|
|
6106
|
+
placeOrder(request: PlacePerpsOrderRequest): Promise<PlacePerpsOrderResult>;
|
|
6057
6107
|
/**
|
|
6058
6108
|
* Posts one or more Perps orders and returns queue-entry acknowledgements.
|
|
6059
6109
|
*
|
|
@@ -6061,6 +6111,7 @@ declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
|
|
|
6061
6111
|
* This is a low-level method. Most SDK consumers should prefer `placeOrder`.
|
|
6062
6112
|
*/
|
|
6063
6113
|
postOrders(request: PostPerpsOrdersRequest): Promise<PerpsPostOrderAck[]>;
|
|
6114
|
+
placePositionTpSl(request: PlacePerpsPositionTpSlRequest): Promise<PlacePerpsPositionTpSlResult>;
|
|
6064
6115
|
/**
|
|
6065
6116
|
* Cancels one Perps order and returns the cancel result.
|
|
6066
6117
|
*
|
|
@@ -6075,13 +6126,12 @@ declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
|
|
|
6075
6126
|
* Each returned status reflects whether that cancel happened.
|
|
6076
6127
|
*/
|
|
6077
6128
|
cancelOrders(request: CancelPerpsOrdersRequest): Promise<PerpsCancelOrderResult[]>;
|
|
6078
|
-
updateLeverage(request: UpdatePerpsLeverageRequest): Promise<
|
|
6079
|
-
updateMargin(request: UpdatePerpsMarginRequest): Promise<void>;
|
|
6129
|
+
updateLeverage(request: UpdatePerpsLeverageRequest): Promise<PerpsUpdateLeverageResult>;
|
|
6080
6130
|
}
|
|
6081
6131
|
|
|
6082
6132
|
type PerpsPublicReadError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6083
6133
|
declare const PerpsPublicReadError: {
|
|
6084
|
-
isError(error: unknown): error is
|
|
6134
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6085
6135
|
};
|
|
6086
6136
|
type PerpsCandlesParams = {
|
|
6087
6137
|
instrumentId: z.output<typeof PerpsInstrumentIdSchema>;
|
|
@@ -6102,7 +6152,7 @@ declare const FetchPerpsInstrumentsRequestSchema: z.ZodDefault<z.ZodObject<{
|
|
|
6102
6152
|
type FetchPerpsInstrumentsRequest = z.input<typeof FetchPerpsInstrumentsRequestSchema>;
|
|
6103
6153
|
type FetchPerpsInstrumentsError = PerpsPublicReadError;
|
|
6104
6154
|
declare const FetchPerpsInstrumentsError: {
|
|
6105
|
-
isError(error: unknown): error is
|
|
6155
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6106
6156
|
};
|
|
6107
6157
|
/**
|
|
6108
6158
|
* Fetches Perps instruments.
|
|
@@ -6120,7 +6170,7 @@ declare const FetchPerpsTickerRequestSchema: z.ZodObject<{
|
|
|
6120
6170
|
type FetchPerpsTickerRequest = z.input<typeof FetchPerpsTickerRequestSchema>;
|
|
6121
6171
|
type FetchPerpsTickerError = PerpsPublicReadError;
|
|
6122
6172
|
declare const FetchPerpsTickerError: {
|
|
6123
|
-
isError(error: unknown): error is
|
|
6173
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6124
6174
|
};
|
|
6125
6175
|
/**
|
|
6126
6176
|
* Fetches the current Perps ticker for an instrument.
|
|
@@ -6138,7 +6188,7 @@ declare const FetchPerpsTickersRequestSchema: z.ZodDefault<z.ZodObject<{
|
|
|
6138
6188
|
type FetchPerpsTickersRequest = z.input<typeof FetchPerpsTickersRequestSchema>;
|
|
6139
6189
|
type FetchPerpsTickersError = PerpsPublicReadError;
|
|
6140
6190
|
declare const FetchPerpsTickersError: {
|
|
6141
|
-
isError(error: unknown): error is
|
|
6191
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6142
6192
|
};
|
|
6143
6193
|
/**
|
|
6144
6194
|
* Fetches current Perps tickers.
|
|
@@ -6158,7 +6208,7 @@ declare const FetchPerpsBookRequestSchema: z.ZodObject<{
|
|
|
6158
6208
|
type FetchPerpsBookRequest = z.input<typeof FetchPerpsBookRequestSchema>;
|
|
6159
6209
|
type FetchPerpsBookError = PerpsPublicReadError;
|
|
6160
6210
|
declare const FetchPerpsBookError: {
|
|
6161
|
-
isError(error: unknown): error is
|
|
6211
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6162
6212
|
};
|
|
6163
6213
|
/**
|
|
6164
6214
|
* Fetches a Perps order book.
|
|
@@ -6175,7 +6225,7 @@ declare const ListPerpsCandlesRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
|
|
|
6175
6225
|
interval: z.ZodEnum<typeof PerpsKlineInterval>;
|
|
6176
6226
|
start: z.ZodOptional<z.ZodNumber>;
|
|
6177
6227
|
end: z.ZodOptional<z.ZodNumber>;
|
|
6178
|
-
cursor: z.ZodOptional<z.
|
|
6228
|
+
cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
|
|
6179
6229
|
}, z.core.$strip>, z.ZodTransform<{
|
|
6180
6230
|
cursor: PaginationCursor | undefined;
|
|
6181
6231
|
params: PerpsCandlesParams;
|
|
@@ -6186,7 +6236,7 @@ declare const ListPerpsCandlesRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
|
|
|
6186
6236
|
end?: number | undefined;
|
|
6187
6237
|
cursor?: PaginationCursor | undefined;
|
|
6188
6238
|
}>>, z.ZodPipe<z.ZodObject<{
|
|
6189
|
-
cursor: z.
|
|
6239
|
+
cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
|
|
6190
6240
|
}, z.core.$strip>, z.ZodTransform<{
|
|
6191
6241
|
cursor: PaginationCursor;
|
|
6192
6242
|
params: undefined;
|
|
@@ -6196,7 +6246,7 @@ declare const ListPerpsCandlesRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
|
|
|
6196
6246
|
type ListPerpsCandlesRequest = z.input<typeof ListPerpsCandlesRequestSchema>;
|
|
6197
6247
|
type ListPerpsCandlesError = PerpsPublicReadError;
|
|
6198
6248
|
declare const ListPerpsCandlesError: {
|
|
6199
|
-
isError(error: unknown): error is
|
|
6249
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6200
6250
|
};
|
|
6201
6251
|
/**
|
|
6202
6252
|
* Lists Perps candles for an instrument with SDK-owned pagination.
|
|
@@ -6212,7 +6262,7 @@ declare const ListPerpsFundingHistoryRequestSchema: z.ZodUnion<readonly [z.ZodPi
|
|
|
6212
6262
|
instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>;
|
|
6213
6263
|
start: z.ZodOptional<z.ZodNumber>;
|
|
6214
6264
|
end: z.ZodOptional<z.ZodNumber>;
|
|
6215
|
-
cursor: z.ZodOptional<z.
|
|
6265
|
+
cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
|
|
6216
6266
|
}, z.core.$strip>, z.ZodTransform<{
|
|
6217
6267
|
cursor: PaginationCursor | undefined;
|
|
6218
6268
|
params: PerpsTimeRangeParams;
|
|
@@ -6222,7 +6272,7 @@ declare const ListPerpsFundingHistoryRequestSchema: z.ZodUnion<readonly [z.ZodPi
|
|
|
6222
6272
|
end?: number | undefined;
|
|
6223
6273
|
cursor?: PaginationCursor | undefined;
|
|
6224
6274
|
}>>, z.ZodPipe<z.ZodObject<{
|
|
6225
|
-
cursor: z.
|
|
6275
|
+
cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
|
|
6226
6276
|
}, z.core.$strip>, z.ZodTransform<{
|
|
6227
6277
|
cursor: PaginationCursor;
|
|
6228
6278
|
params: undefined;
|
|
@@ -6232,7 +6282,7 @@ declare const ListPerpsFundingHistoryRequestSchema: z.ZodUnion<readonly [z.ZodPi
|
|
|
6232
6282
|
type ListPerpsFundingHistoryRequest = z.input<typeof ListPerpsFundingHistoryRequestSchema>;
|
|
6233
6283
|
type ListPerpsFundingHistoryError = PerpsPublicReadError;
|
|
6234
6284
|
declare const ListPerpsFundingHistoryError: {
|
|
6235
|
-
isError(error: unknown): error is
|
|
6285
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6236
6286
|
};
|
|
6237
6287
|
/**
|
|
6238
6288
|
* Lists Perps funding-rate history for an instrument with SDK-owned pagination.
|
|
@@ -6248,7 +6298,7 @@ declare const ListPerpsTradesRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zod
|
|
|
6248
6298
|
instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>;
|
|
6249
6299
|
start: z.ZodOptional<z.ZodNumber>;
|
|
6250
6300
|
end: z.ZodOptional<z.ZodNumber>;
|
|
6251
|
-
cursor: z.ZodOptional<z.
|
|
6301
|
+
cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
|
|
6252
6302
|
}, z.core.$strip>, z.ZodTransform<{
|
|
6253
6303
|
cursor: PaginationCursor | undefined;
|
|
6254
6304
|
params: PerpsTimeRangeParams;
|
|
@@ -6258,7 +6308,7 @@ declare const ListPerpsTradesRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zod
|
|
|
6258
6308
|
end?: number | undefined;
|
|
6259
6309
|
cursor?: PaginationCursor | undefined;
|
|
6260
6310
|
}>>, z.ZodPipe<z.ZodObject<{
|
|
6261
|
-
cursor: z.
|
|
6311
|
+
cursor: z.ZodCustom<PaginationCursor, PaginationCursor>;
|
|
6262
6312
|
}, z.core.$strip>, z.ZodTransform<{
|
|
6263
6313
|
cursor: PaginationCursor;
|
|
6264
6314
|
params: undefined;
|
|
@@ -6268,7 +6318,7 @@ declare const ListPerpsTradesRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zod
|
|
|
6268
6318
|
type ListPerpsTradesRequest = z.input<typeof ListPerpsTradesRequestSchema>;
|
|
6269
6319
|
type ListPerpsTradesError = PerpsPublicReadError;
|
|
6270
6320
|
declare const ListPerpsTradesError: {
|
|
6271
|
-
isError(error: unknown): error is
|
|
6321
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6272
6322
|
};
|
|
6273
6323
|
/**
|
|
6274
6324
|
* Lists recent Perps trades for an instrument with SDK-owned pagination.
|
|
@@ -6282,7 +6332,7 @@ declare const ListPerpsTradesError: {
|
|
|
6282
6332
|
declare function listPerpsTrades(client: BaseClient, request: ListPerpsTradesRequest): Paginated<PerpsPublicTrade[]>;
|
|
6283
6333
|
type FetchPerpsFeesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError;
|
|
6284
6334
|
declare const FetchPerpsFeesError: {
|
|
6285
|
-
isError(error: unknown): error is
|
|
6335
|
+
isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6286
6336
|
};
|
|
6287
6337
|
/**
|
|
6288
6338
|
* Fetches the Perps fee schedule.
|
|
@@ -6326,11 +6376,11 @@ type DepositToPerpsRequest = z.input<typeof DepositToPerpsRequestSchema>;
|
|
|
6326
6376
|
type WithdrawFromPerpsRequest = z.input<typeof WithdrawFromPerpsRequestSchema>;
|
|
6327
6377
|
type OpenPerpsSessionError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6328
6378
|
declare const OpenPerpsSessionError: {
|
|
6329
|
-
isError(error: unknown): error is
|
|
6379
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
6330
6380
|
};
|
|
6331
6381
|
type RevokePerpsCredentialsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6332
6382
|
declare const RevokePerpsCredentialsError: {
|
|
6333
|
-
isError(error: unknown): error is
|
|
6383
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
6334
6384
|
};
|
|
6335
6385
|
type PreparePerpsDepositError = UserInputError;
|
|
6336
6386
|
declare const PreparePerpsDepositError: {
|
|
@@ -6338,11 +6388,11 @@ declare const PreparePerpsDepositError: {
|
|
|
6338
6388
|
};
|
|
6339
6389
|
type DepositToPerpsError = RateLimitError | RequestRejectedError | CancelledSigningError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6340
6390
|
declare const DepositToPerpsError: {
|
|
6341
|
-
isError(error: unknown): error is
|
|
6391
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
|
|
6342
6392
|
};
|
|
6343
6393
|
type WithdrawFromPerpsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6344
6394
|
declare const WithdrawFromPerpsError: {
|
|
6345
|
-
isError(error: unknown): error is
|
|
6395
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
6346
6396
|
};
|
|
6347
6397
|
/**
|
|
6348
6398
|
* Opens a Perps account session.
|
|
@@ -6436,39 +6486,39 @@ type MergePositionsWorkflow = AsyncGenerator<MergePositionsWorkflowRequest, Tran
|
|
|
6436
6486
|
type RedeemPositionsWorkflow = AsyncGenerator<RedeemPositionsWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
|
|
6437
6487
|
type PrepareSplitPositionError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6438
6488
|
declare const PrepareSplitPositionError: {
|
|
6439
|
-
isError(error: unknown): error is
|
|
6489
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6440
6490
|
};
|
|
6441
6491
|
type PrepareSplitMarketPositionError = PrepareSplitPositionError;
|
|
6442
6492
|
declare const PrepareSplitMarketPositionError: {
|
|
6443
|
-
isError(error: unknown): error is
|
|
6493
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6444
6494
|
};
|
|
6445
6495
|
type PrepareSplitComboPositionError = PrepareSplitPositionError;
|
|
6446
6496
|
declare const PrepareSplitComboPositionError: {
|
|
6447
|
-
isError(error: unknown): error is
|
|
6497
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6448
6498
|
};
|
|
6449
6499
|
type PrepareMergePositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6450
6500
|
declare const PrepareMergePositionsError: {
|
|
6451
|
-
isError(error: unknown): error is
|
|
6501
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6452
6502
|
};
|
|
6453
6503
|
type PrepareMergeMarketPositionError = PrepareMergePositionsError;
|
|
6454
6504
|
declare const PrepareMergeMarketPositionError: {
|
|
6455
|
-
isError(error: unknown): error is
|
|
6505
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6456
6506
|
};
|
|
6457
6507
|
type PrepareMergeComboPositionError = PrepareMergePositionsError;
|
|
6458
6508
|
declare const PrepareMergeComboPositionError: {
|
|
6459
|
-
isError(error: unknown): error is
|
|
6509
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6460
6510
|
};
|
|
6461
6511
|
type PrepareRedeemPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6462
6512
|
declare const PrepareRedeemPositionsError: {
|
|
6463
|
-
isError(error: unknown): error is
|
|
6513
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6464
6514
|
};
|
|
6465
6515
|
type PrepareRedeemMarketPositionsError = PrepareRedeemPositionsError;
|
|
6466
6516
|
declare const PrepareRedeemMarketPositionsError: {
|
|
6467
|
-
isError(error: unknown): error is
|
|
6517
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6468
6518
|
};
|
|
6469
6519
|
type PrepareRedeemComboPositionError = PrepareRedeemPositionsError;
|
|
6470
6520
|
declare const PrepareRedeemComboPositionError: {
|
|
6471
|
-
isError(error: unknown): error is
|
|
6521
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6472
6522
|
};
|
|
6473
6523
|
/**
|
|
6474
6524
|
* Starts a split workflow for a market condition.
|
|
@@ -6516,15 +6566,15 @@ declare function prepareSplitComboPosition(client: BaseSecureClient, request: Pr
|
|
|
6516
6566
|
declare function prepareSplitPosition(client: BaseSecureClient, request: PrepareSplitPositionRequest): Promise<SplitPositionWorkflow>;
|
|
6517
6567
|
type SplitPositionError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6518
6568
|
declare const SplitPositionError: {
|
|
6519
|
-
isError(error: unknown): error is
|
|
6569
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
6520
6570
|
};
|
|
6521
6571
|
type SplitMarketPositionError = SplitPositionError;
|
|
6522
6572
|
declare const SplitMarketPositionError: {
|
|
6523
|
-
isError(error: unknown): error is
|
|
6573
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
6524
6574
|
};
|
|
6525
6575
|
type SplitComboPositionError = SplitPositionError;
|
|
6526
6576
|
declare const SplitComboPositionError: {
|
|
6527
|
-
isError(error: unknown): error is
|
|
6577
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
6528
6578
|
};
|
|
6529
6579
|
/**
|
|
6530
6580
|
* Splits collateral into market positions.
|
|
@@ -6628,15 +6678,15 @@ declare function prepareMergeComboPosition(client: BaseSecureClient, request: Pr
|
|
|
6628
6678
|
declare function prepareMergePositions(client: BaseSecureClient, request: PrepareMergePositionsRequest): Promise<MergePositionsWorkflow>;
|
|
6629
6679
|
type MergePositionsError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6630
6680
|
declare const MergePositionsError: {
|
|
6631
|
-
isError(error: unknown): error is
|
|
6681
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
6632
6682
|
};
|
|
6633
6683
|
type MergeMarketPositionError = MergePositionsError;
|
|
6634
6684
|
declare const MergeMarketPositionError: {
|
|
6635
|
-
isError(error: unknown): error is
|
|
6685
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
6636
6686
|
};
|
|
6637
6687
|
type MergeComboPositionError = MergePositionsError;
|
|
6638
6688
|
declare const MergeComboPositionError: {
|
|
6639
|
-
isError(error: unknown): error is
|
|
6689
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
6640
6690
|
};
|
|
6641
6691
|
/**
|
|
6642
6692
|
* Merges complementary market positions back into collateral.
|
|
@@ -6762,7 +6812,7 @@ declare function prepareRedeemComboPosition(client: BaseSecureClient, request: P
|
|
|
6762
6812
|
declare function prepareRedeemPositions(client: BaseSecureClient, request: PrepareRedeemPositionsRequest): Promise<RedeemPositionsWorkflow>;
|
|
6763
6813
|
type RedeemPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
|
|
6764
6814
|
declare const RedeemPositionsError: {
|
|
6765
|
-
isError(error: unknown): error is
|
|
6815
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
|
|
6766
6816
|
};
|
|
6767
6817
|
/**
|
|
6768
6818
|
* Redeems resolved market or combo positions.
|
|
@@ -6781,7 +6831,7 @@ declare const FetchPublicProfileRequestSchema: z.ZodObject<{
|
|
|
6781
6831
|
type FetchPublicProfileRequest = z.input<typeof FetchPublicProfileRequestSchema>;
|
|
6782
6832
|
type FetchPublicProfileError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6783
6833
|
declare const FetchPublicProfileError: {
|
|
6784
|
-
isError(error: unknown): error is
|
|
6834
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6785
6835
|
};
|
|
6786
6836
|
/**
|
|
6787
6837
|
* Fetches a public profile by wallet address.
|
|
@@ -6816,7 +6866,7 @@ declare const SearchRequestSchema: z.ZodObject<{
|
|
|
6816
6866
|
q: z.ZodString;
|
|
6817
6867
|
ascending: z.ZodOptional<z.ZodBoolean>;
|
|
6818
6868
|
cache: z.ZodOptional<z.ZodBoolean>;
|
|
6819
|
-
cursor: z.ZodOptional<z.
|
|
6869
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
6820
6870
|
eventsStatus: z.ZodOptional<z.ZodString>;
|
|
6821
6871
|
eventsTag: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6822
6872
|
excludeTagIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
@@ -6841,7 +6891,7 @@ type SearchResults = {
|
|
|
6841
6891
|
};
|
|
6842
6892
|
type SearchError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6843
6893
|
declare const SearchError: {
|
|
6844
|
-
isError(error: unknown): error is
|
|
6894
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6845
6895
|
};
|
|
6846
6896
|
/**
|
|
6847
6897
|
* Runs a public full-text search.
|
|
@@ -6877,7 +6927,7 @@ declare function search(client: BaseClient, request: SearchRequest): Paginated<S
|
|
|
6877
6927
|
declare const ListSeriesRequestSchema: z.ZodObject<{
|
|
6878
6928
|
ascending: z.ZodOptional<z.ZodBoolean>;
|
|
6879
6929
|
closed: z.ZodOptional<z.ZodBoolean>;
|
|
6880
|
-
cursor: z.ZodOptional<z.
|
|
6930
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
6881
6931
|
excludeEvents: z.ZodOptional<z.ZodBoolean>;
|
|
6882
6932
|
locale: z.ZodOptional<z.ZodString>;
|
|
6883
6933
|
order: z.ZodOptional<z.ZodString>;
|
|
@@ -6897,7 +6947,7 @@ type ListSeriesRequest = z.input<typeof ListSeriesRequestSchema>;
|
|
|
6897
6947
|
type FetchSeriesRequest = z.input<typeof FetchSeriesRequestSchema>;
|
|
6898
6948
|
type ListSeriesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6899
6949
|
declare const ListSeriesError: {
|
|
6900
|
-
isError(error: unknown): error is
|
|
6950
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6901
6951
|
};
|
|
6902
6952
|
/**
|
|
6903
6953
|
* Lists series.
|
|
@@ -6940,7 +6990,7 @@ declare const ListSeriesError: {
|
|
|
6940
6990
|
declare function listSeries(client: BaseClient, request?: ListSeriesRequest): Paginated<Series[]>;
|
|
6941
6991
|
type FetchSeriesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6942
6992
|
declare const FetchSeriesError: {
|
|
6943
|
-
isError(error: unknown): error is
|
|
6993
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6944
6994
|
};
|
|
6945
6995
|
/**
|
|
6946
6996
|
* Fetches a series.
|
|
@@ -7089,7 +7139,7 @@ declare function subscribe<const TSubscriptions extends readonly SecureSubscript
|
|
|
7089
7139
|
|
|
7090
7140
|
declare const ListTagsRequestSchema: z.ZodObject<{
|
|
7091
7141
|
ascending: z.ZodOptional<z.ZodBoolean>;
|
|
7092
|
-
cursor: z.ZodOptional<z.
|
|
7142
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
7093
7143
|
includeTemplate: z.ZodOptional<z.ZodBoolean>;
|
|
7094
7144
|
isCarousel: z.ZodOptional<z.ZodBoolean>;
|
|
7095
7145
|
locale: z.ZodOptional<z.ZodString>;
|
|
@@ -7142,7 +7192,7 @@ type FetchRelatedTagsRequest = z.input<typeof RelatedTagsByIdRequestSchema> | z.
|
|
|
7142
7192
|
type FetchRelatedTagResourcesRequest = z.input<typeof RelatedTagResourcesByIdRequestSchema> | z.input<typeof RelatedTagResourcesBySlugRequestSchema>;
|
|
7143
7193
|
type ListTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7144
7194
|
declare const ListTagsError: {
|
|
7145
|
-
isError(error: unknown): error is
|
|
7195
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
7146
7196
|
};
|
|
7147
7197
|
/**
|
|
7148
7198
|
* Lists tags.
|
|
@@ -7185,7 +7235,7 @@ declare const ListTagsError: {
|
|
|
7185
7235
|
declare function listTags(client: BaseClient, request?: ListTagsRequest): Paginated<Tag[]>;
|
|
7186
7236
|
type FetchTagError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7187
7237
|
declare const FetchTagError: {
|
|
7188
|
-
isError(error: unknown): error is
|
|
7238
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
7189
7239
|
};
|
|
7190
7240
|
/**
|
|
7191
7241
|
* Fetches a tag by id or slug.
|
|
@@ -7209,7 +7259,7 @@ declare const FetchTagError: {
|
|
|
7209
7259
|
declare function fetchTag(client: BaseClient, request: FetchTagRequest): Promise<Tag>;
|
|
7210
7260
|
type FetchRelatedTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7211
7261
|
declare const FetchRelatedTagsError: {
|
|
7212
|
-
isError(error: unknown): error is
|
|
7262
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
7213
7263
|
};
|
|
7214
7264
|
/**
|
|
7215
7265
|
* Fetches related tag relationships by id or slug.
|
|
@@ -7234,7 +7284,7 @@ declare const FetchRelatedTagsError: {
|
|
|
7234
7284
|
declare function fetchRelatedTags(client: BaseClient, request: FetchRelatedTagsRequest): Promise<RelatedTag[]>;
|
|
7235
7285
|
type FetchRelatedTagResourcesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7236
7286
|
declare const FetchRelatedTagResourcesError: {
|
|
7237
|
-
isError(error: unknown): error is
|
|
7287
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
7238
7288
|
};
|
|
7239
7289
|
/**
|
|
7240
7290
|
* Fetches resources linked from related tag relationships by id or slug.
|
|
@@ -7261,7 +7311,7 @@ declare function fetchRelatedTagResources(client: BaseClient, request: FetchRela
|
|
|
7261
7311
|
declare const ListTeamsRequestSchema: z.ZodObject<{
|
|
7262
7312
|
abbreviation: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7263
7313
|
ascending: z.ZodOptional<z.ZodBoolean>;
|
|
7264
|
-
cursor: z.ZodOptional<z.
|
|
7314
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
7265
7315
|
league: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7266
7316
|
name: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7267
7317
|
order: z.ZodOptional<z.ZodString>;
|
|
@@ -7271,7 +7321,7 @@ declare const ListTeamsRequestSchema: z.ZodObject<{
|
|
|
7271
7321
|
type ListTeamsRequest = z.input<typeof ListTeamsRequestSchema>;
|
|
7272
7322
|
type ListTeamsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7273
7323
|
declare const ListTeamsError: {
|
|
7274
|
-
isError(error: unknown): error is
|
|
7324
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
7275
7325
|
};
|
|
7276
7326
|
/**
|
|
7277
7327
|
* Lists teams.
|
|
@@ -7347,7 +7397,7 @@ declare const PrepareErc20TransferError: {
|
|
|
7347
7397
|
declare function prepareErc20Transfer(client: BaseSecureClient, request: PrepareErc20TransferRequest): Promise<Erc20TransferWorkflow>;
|
|
7348
7398
|
type TransferErc20Error = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
|
|
7349
7399
|
declare const TransferErc20Error: {
|
|
7350
|
-
isError(error: unknown): error is
|
|
7400
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
|
|
7351
7401
|
};
|
|
7352
7402
|
/**
|
|
7353
7403
|
* Transfers ERC-20 tokens from the authenticated account.
|
|
@@ -7404,7 +7454,7 @@ type TransactionOutcome = {
|
|
|
7404
7454
|
};
|
|
7405
7455
|
type WaitForTransactionError = WaitForGaslessTransactionError;
|
|
7406
7456
|
declare const WaitForTransactionError: {
|
|
7407
|
-
isError(error: unknown): error is
|
|
7457
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError;
|
|
7408
7458
|
};
|
|
7409
7459
|
interface TransactionHandle {
|
|
7410
7460
|
/**
|
|
@@ -7431,4 +7481,4 @@ type Signer = {
|
|
|
7431
7481
|
sendTransaction(request: SignerTransactionRequest): Promise<TransactionHandle>;
|
|
7432
7482
|
};
|
|
7433
7483
|
|
|
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 };
|
|
7484
|
+
export { FetchPublicProfileError as $, type ApiKeyAuthorization as A, type BaseClient as B, CancelAllError as C, type DataActions as D, type EnvironmentConfig as E, FetchClosedOnlyModeError as F, FetchEventLiveVolumeError as G, FetchEventTagsError as H, FetchLastTradePriceError as I, FetchLastTradePricesError as J, FetchMarketError as K, FetchMarketTagsError as L, FetchMidpointError as M, FetchMidpointsError as N, FetchNotificationsError as O, FetchOrderBookError as P, FetchOrderBooksError as Q, FetchOrderError as R, type Signer as S, type TypedDataPayload as T, UserInputError as U, FetchOrderScoringError as V, FetchOrdersScoringError as W, FetchPortfolioValueError as X, FetchPriceError as Y, FetchPriceHistoryError as Z, FetchPricesError as _, type TypedData as a, RfqConfirmationError as a$, FetchRelatedTagResourcesError as a0, FetchRelatedTagsError as a1, FetchRewardPercentagesError as a2, FetchSeriesError as a3, FetchSpreadError as a4, FetchSpreadsError as a5, FetchTagError as a6, FetchTotalEarningsForUserForDayError as a7, FetchTradedMarketCountError as a8, InsufficientLiquidityError as a9, MergePositionsError as aA, OpenRfqSessionError as aB, type Page as aC, PageSizeSchema as aD, type Paginated as aE, type PerpsActions as aF, type PerpsEndpoints as aG, PerpsSession as aH, PostOrderError as aI, PostOrdersError as aJ, type PublicAccountActions as aK, type PublicActions as aL, type PublicClient as aM, type PublicClientOptions as aN, type PublicPerpsActions as aO, type PublicRewardsActions as aP, type PublicSubscriptionsActions as aQ, RateLimitError as aR, RedeemPositionsError as aS, RequestRejectedError as aT, type RequestRejectedErrorOptions as aU, type RestEndpoint as aV, type RfqCancelQuoteAck as aW, RfqCancelQuoteError as aX, RfqCancelQuoteRejectedError as aY, type RfqCancelQuoteRejectedErrorOptions as aZ, type RfqConfirmationAck as a_, ListAccountTradesError as aa, ListActivityError as ab, ListBuilderLeaderboardError as ac, ListBuilderTradesError as ad, ListBuilderVolumeError as ae, ListClosedPositionsError as af, ListComboMarketsError as ag, ListComboPositionsError as ah, ListCommentsByUserAddressError as ai, ListCommentsError as aj, ListCurrentRewardsError as ak, ListEventsError as al, ListMarketHoldersError as am, ListMarketPositionsError as an, ListMarketRewardsError as ao, ListMarketsError as ap, ListOpenInterestError as aq, ListOpenOrdersError as ar, ListPositionsError as as, ListSeriesError as at, ListTagsError as au, ListTeamsError as av, ListTraderLeaderboardError as aw, ListTradesError as ax, ListUserEarningsAndMarketsConfigError as ay, ListUserEarningsForDayError as az, type TransactionCall as b, subscriptionsActions as b$, RfqConfirmationRejectedError as b0, type RfqConfirmationRequestEvent as b1, type RfqEndpoints as b2, type RfqEvent as b3, RfqQuoteError as b4, type RfqQuoteReference as b5, RfqQuoteRejectedError as b6, type RfqQuoteRejectedErrorOptions as b7, type RfqQuoteRequestEvent as b8, type RfqQuoteResponse as b9, SplitPositionError as bA, TimeoutError as bB, TransactionFailedError as bC, type TransactionHandle as bD, type TransactionOutcome as bE, TransferErc20Error as bF, TransportError as bG, type TypedDataDomain as bH, type TypedDataField as bI, UnexpectedResponseError as bJ, UpdatePerpsLeverageError as bK, WaitForTransactionError as bL, type WalletDerivationConfig as bM, type WebSocketEndpoint as bN, accountActions as bO, allActions as bP, analyticsActions as bQ, createPublicClient as bR, createSecureClient as bS, dataActions as bT, discoveryActions as bU, forkEnvironmentConfig as bV, makeErrorGuard as bW, perpsActions as bX, production as bY, rewardsActions as bZ, rfqActions as b_, type RfqQuoteSource as ba, type RfqSession as bb, type RfqTradeEvent as bc, SearchError as bd, SearchSort as be, type SecureAccountActions as bf, type SecureActions as bg, type SecureClient as bh, type SecureClientOptions as bi, type SecureDownloadAccountingSnapshotRequest as bj, type SecureFetchPortfolioValueRequest as bk, type SecureFetchTradedMarketCountRequest as bl, type SecureListActivityRequest as bm, type SecureListClosedPositionsRequest as bn, type SecureListComboPositionsRequest as bo, type SecureListPositionsRequest as bp, type SecurePerpsActions as bq, type SecureRewardsActions as br, type SecureRfqActions as bs, type SecureSubscriptionsActions as bt, type SecureTradingActions as bu, type SecureWalletActions as bv, SetupGaslessWalletError as bw, SetupTradingApprovalsError as bx, type SignerTransactionRequest as by, SigningError as bz, type AccountIdentity as c, type FetchPerpsOpenOrdersRequest as c$, tradingActions as c0, walletActions as c1, type CancelMarketOrdersRequest as c2, type CancelOrderRequest as c3, type CancelOrdersRequest as c4, type CancelPerpsOrderRequest as c5, type CancelPerpsOrdersRequest as c6, type CommentsEventType as c7, type CommentsSubscription as c8, type CreatePerpsSessionRequest as c9, type FetchEventLiveVolumeRequest as cA, type FetchEventRequest as cB, type FetchEventTagsRequest as cC, FetchExecuteParamsError as cD, type FetchExecuteParamsRequest as cE, type FetchGaslessTransactionRequest as cF, type FetchLastTradePriceRequest as cG, type FetchLastTradePricesRequest as cH, FetchMarketInfoError as cI, type FetchMarketInfoRequest as cJ, type FetchMarketRequest as cK, type FetchMarketTagsRequest as cL, type FetchMidpointRequest as cM, type FetchMidpointsRequest as cN, FetchNegRiskError as cO, type FetchNegRiskRequest as cP, type FetchOrderBookRequest as cQ, type FetchOrderBooksRequest as cR, type FetchOrderRequest as cS, type FetchOrderScoringRequest as cT, type FetchOrdersScoringRequest as cU, type FetchPerpsAccountConfigRequest as cV, FetchPerpsBookError as cW, type FetchPerpsBookRequest as cX, FetchPerpsFeesError as cY, FetchPerpsInstrumentsError as cZ, type FetchPerpsInstrumentsRequest as c_, type CryptoPricesEventType as ca, type CryptoPricesSubscription as cb, DeployDepositWalletError as cc, DepositToPerpsError as cd, type DepositToPerpsRequest as ce, type DeprecatedTransactionHandle as cf, type DownloadAccountingSnapshotRequest as cg, type DropNotificationsRequest as ch, type EquityPricesEventType as ci, type EquityPricesSubscription as cj, type Erc1155ApprovalForAllWorkflow as ck, type Erc1155ApprovalForAllWorkflowRequest as cl, type Erc20ApprovalWorkflow as cm, type Erc20ApprovalWorkflowRequest as cn, type Erc20TransferWorkflow as co, type Erc20TransferWorkflowRequest as cp, type EstimateMarketBuyPriceRequest as cq, type EstimateMarketPriceRequest as cr, type EstimateMarketSellPriceRequest as cs, type EventForSubscriptionSpec as ct, type EventForSubscriptionSpecs as cu, FetchBalanceAllowanceError as cv, type FetchBalanceAllowanceRequest as cw, FetchBuilderFeeRatesError as cx, type FetchBuilderFeeRatesRequest as cy, type FetchCommentsByIdRequest as cz, type AnalyticsActions as d, type ListUserEarningsForDayRequest as d$, type FetchPerpsOrdersRequest as d0, FetchPerpsTickerError as d1, type FetchPerpsTickerRequest as d2, FetchPerpsTickersError as d3, type FetchPerpsTickersRequest as d4, type FetchPortfolioValueRequest as d5, type FetchPriceHistoryRequest as d6, type FetchPriceRequest as d7, type FetchPricesRequest as d8, type FetchPublicProfileRequest as d9, type ListCurrentRewardsRequest as dA, type ListEventsRequest as dB, type ListMarketHoldersRequest as dC, type ListMarketPositionsRequest as dD, type ListMarketRewardsRequest as dE, type ListMarketsRequest as dF, type ListOpenInterestRequest as dG, type ListOpenOrdersRequest as dH, ListPerpsCandlesError as dI, type ListPerpsCandlesRequest as dJ, type ListPerpsDepositsRequest as dK, type ListPerpsEquityHistoryRequest as dL, type ListPerpsFillsRequest as dM, ListPerpsFundingHistoryError as dN, type ListPerpsFundingHistoryRequest as dO, type ListPerpsFundingPaymentsRequest as dP, type ListPerpsPnlHistoryRequest as dQ, ListPerpsTradesError as dR, type ListPerpsTradesRequest as dS, type ListPerpsWithdrawalsRequest as dT, type ListPositionsRequest as dU, type ListSeriesRequest as dV, type ListTagsRequest as dW, type ListTeamsRequest as dX, type ListTraderLeaderboardRequest as dY, type ListTradesRequest as dZ, type ListUserEarningsAndMarketsConfigRequest as d_, type FetchRelatedTagResourcesRequest as da, type FetchRelatedTagsRequest as db, type FetchSeriesRequest as dc, type FetchSpreadRequest as dd, type FetchSpreadsRequest as de, type FetchTagRequest as df, FetchTickSizeError as dg, type FetchTickSizeRequest as dh, type FetchTotalEarningsForUserForDayRequest as di, type FetchTradedMarketCountRequest as dj, GaslessTransactionMetadataSchema as dk, type GaslessWorkflow as dl, type GaslessWorkflowRequest as dm, IsWalletDeployedError as dn, type IsWalletDeployedRequest as dp, type ListAccountTradesRequest as dq, type ListActivityRequest as dr, type ListBuilderLeaderboardRequest as ds, type ListBuilderTradesRequest as dt, type ListBuilderVolumeRequest as du, type ListClosedPositionsRequest as dv, type ListComboMarketsRequest as dw, type ListComboPositionsRequest as dx, type ListCommentsByUserAddressRequest as dy, type ListCommentsRequest as dz, ApproveErc1155ForAllError as e, PrepareRedeemMarketPositionsError as e$, type MarketEventType as e0, type MarketSubscription as e1, MergeComboPositionError as e2, MergeMarketPositionError as e3, type MergePositionsWorkflow as e4, type MergePositionsWorkflowRequest as e5, OpenPerpsSessionError as e6, type OpenPerpsSessionRequest as e7, type OrderDraft as e8, type OrderPostingWorkflow as e9, type PlacePerpsPositionTpSlRequest as eA, type PlacePerpsPositionTpSlResult as eB, type PostOrdersRequest as eC, type PostPerpsOrdersRequest as eD, PrepareErc1155ApprovalForAllError as eE, type PrepareErc1155ApprovalForAllRequest as eF, PrepareErc20ApprovalError as eG, type PrepareErc20ApprovalRequest as eH, PrepareErc20TransferError as eI, type PrepareErc20TransferRequest as eJ, PrepareGaslessTransactionError as eK, type PrepareGaslessTransactionRequest as eL, type PrepareLimitOrderRequest as eM, type PrepareMarketBuyOrderRequest as eN, type PrepareMarketOrderRequest as eO, type PrepareMarketSellOrderRequest as eP, PrepareMergeComboPositionError as eQ, type PrepareMergeComboPositionRequest as eR, PrepareMergeMarketPositionError as eS, type PrepareMergeMarketPositionRequest as eT, PrepareMergePositionsError as eU, type PrepareMergePositionsRequest as eV, PreparePerpsDepositError as eW, PrepareRedeemComboPositionError as eX, type PrepareRedeemComboPositionRequest as eY, type PrepareRedeemMarketPositionsByConditionIdRequest as eZ, type PrepareRedeemMarketPositionsByMarketIdRequest as e_, type OrderWorkflow as ea, type OrderWorkflowRequest as eb, type PerpsBboSubscription as ec, type PerpsBookDepth as ed, type PerpsBookSubscription as ee, type PerpsCandlesSubscription as ef, type PerpsDepositWorkflow as eg, type PerpsDepositWorkflowRequest as eh, type PerpsMarketDataEventType as ei, type PerpsMarketDataSubscription as ej, type PerpsOrderRequest as ek, type PerpsPlaceFokOrderRequest as el, type PerpsPlaceGtcOrderRequest as em, type PerpsPlaceIocOrderRequest as en, type PerpsPlacedTpSlOrder as eo, type PerpsPlacedTpSlOrders as ep, type PerpsPositionTpSlTrigger as eq, type PerpsStatisticsSubscription as er, type PerpsStreamingCandleInterval as es, type PerpsTickersSubscription as et, type PerpsTpSlTrigger as eu, type PerpsTradesSubscription as ev, type PlacePerpsOrderRequest as ew, type PlacePerpsOrderResult as ex, type PlacePerpsOrderWithTpSlRequest as ey, type PlacePerpsOrderWithTpSlResult as ez, ApproveErc20Error as f, fetchEventLiveVolume as f$, type PrepareRedeemMarketPositionsRequest as f0, PrepareRedeemPositionsError as f1, type PrepareRedeemPositionsRequest as f2, PrepareSplitComboPositionError as f3, type PrepareSplitComboPositionRequest as f4, PrepareSplitMarketPositionError as f5, type PrepareSplitMarketPositionRequest as f6, PrepareSplitPositionError as f7, type PrepareSplitPositionRequest as f8, PrepareTradingApprovalsError as f9, type TradingApprovalsWorkflow as fA, type TradingApprovalsWorkflowRequest as fB, UpdateBalanceAllowanceError as fC, type UpdateBalanceAllowanceRequest as fD, type UpdatePerpsLeverageRequest as fE, type UserEventType as fF, type UserSubscription as fG, WaitForGaslessTransactionError as fH, WithdrawFromPerpsError as fI, type WithdrawFromPerpsRequest as fJ, approveErc1155ForAll as fK, approveErc20 as fL, cancelAll as fM, cancelMarketOrders as fN, cancelOrder as fO, cancelOrders as fP, deployDepositWallet as fQ, depositToPerps as fR, downloadAccountingSnapshot as fS, dropNotifications as fT, estimateMarketPrice as fU, fetchBalanceAllowance as fV, fetchBuilderFeeRates as fW, fetchBuilderVolume as fX, fetchClosedOnlyMode as fY, fetchCommentsById as fZ, fetchEvent as f_, type PublicRealtimeEvent as fa, type PublicRealtimeTopic as fb, type PublicSubscriptionSpec as fc, type RedeemPositionsWorkflow as fd, type RedeemPositionsWorkflowRequest as fe, ResolveConditionByTokenError as ff, type ResolveConditionByTokenRequest as fg, type ResumePerpsSessionRequest as fh, RevokePerpsCredentialsError as fi, type RevokePerpsCredentialsRequest as fj, type RfqConfirmationRejectedErrorOptions as fk, type RfqExecutionUpdateEvent as fl, type SearchRequest as fm, type SearchResults as fn, type SecureRealtimeEvent as fo, type SecureRealtimeTopic as fp, type SecureSubscriptionSpec as fq, type SignedOrder as fr, SplitComboPositionError as fs, SplitMarketPositionError as ft, type SplitPositionWorkflow as fu, type SplitPositionWorkflowRequest as fv, type SportsEventType as fw, type SportsSubscription as fx, type SubscribeError as fy, type SubscriptionHandle as fz, BasePublicClient as g, listTrades as g$, fetchEventTags as g0, fetchExecuteParams as g1, fetchLastTradePrice as g2, fetchLastTradePrices as g3, fetchMarket as g4, fetchMarketInfo as g5, fetchMarketTags as g6, fetchMidpoint as g7, fetchMidpoints as g8, fetchNegRisk as g9, fetchTransaction as gA, isWalletDeployed as gB, listAccountTrades as gC, listActivity as gD, listBuilderLeaderboard as gE, listBuilderTrades as gF, listClosedPositions as gG, listComboMarkets as gH, listComboPositions as gI, listComments as gJ, listCommentsByUserAddress as gK, listCurrentRewards as gL, listEvents as gM, listMarketHolders as gN, listMarketPositions as gO, listMarketRewards as gP, listMarkets as gQ, listOpenInterest as gR, listOpenOrders as gS, listPerpsCandles as gT, listPerpsFundingHistory as gU, listPerpsTrades as gV, listPositions as gW, listSeries as gX, listTags as gY, listTeams as gZ, listTraderLeaderboard as g_, fetchNotifications as ga, fetchOrder as gb, fetchOrderBook as gc, fetchOrderBooks as gd, fetchOrderScoring as ge, fetchOrdersScoring as gf, fetchPerpsBook as gg, fetchPerpsFees as gh, fetchPerpsInstruments as gi, fetchPerpsTicker as gj, fetchPerpsTickers as gk, fetchPortfolioValue as gl, fetchPrice as gm, fetchPriceHistory as gn, fetchPrices as go, fetchPublicProfile as gp, fetchRelatedTagResources as gq, fetchRelatedTags as gr, fetchRewardPercentages as gs, fetchSeries as gt, fetchSpread as gu, fetchSpreads as gv, fetchTag as gw, fetchTickSize as gx, fetchTotalEarningsForUserForDay as gy, fetchTradedMarketCount as gz, BaseSecureClient as h, listUserEarningsAndMarketsConfig as h0, listUserEarningsForDay as h1, mergeComboPosition as h2, mergeMarketPosition as h3, mergePositions as h4, openPerpsSession as h5, openRfqSession as h6, postOrder as h7, postOrders as h8, prepareErc1155ApprovalForAll as h9, prepareErc20Approval as ha, prepareErc20Transfer as hb, prepareGaslessTransaction as hc, prepareMergeComboPosition as hd, prepareMergeMarketPosition as he, prepareMergePositions as hf, preparePerpsDeposit as hg, prepareRedeemComboPosition as hh, prepareRedeemMarketPositions as hi, prepareRedeemPositions as hj, prepareSplitComboPosition as hk, prepareSplitMarketPosition as hl, prepareSplitPosition as hm, prepareTradingApprovals as hn, redeemPositions as ho, resolveConditionByToken as hp, revokePerpsCredentials as hq, search as hr, setupTradingApprovals as hs, splitComboPosition as ht, splitMarketPosition as hu, splitPosition as hv, subscribe as hw, transferErc20 as hx, updateBalanceAllowance as hy, withdrawFromPerps as hz, type BeginAuthenticationRequest as i, CancelMarketOrdersError as j, CancelOrderError as k, CancelOrdersError as l, CancelledSigningError as m, type Client as n, type ClientActions as o, type ClientDecorator as p, type ClobEndpoints as q, CreateSecureClientError as r, type DiscoveryActions as s, DownloadAccountingSnapshotError as t, DropNotificationsError as u, type EnvironmentConfigFork as v, type EnvironmentContracts as w, EstimateMarketPriceError as x, FetchCommentsByIdError as y, FetchEventError as z };
|