@polymarket/client 0.1.0-beta.11 → 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 +11 -11
- 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 +3 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{sports-uAc0WNNs.d.ts → sports-BHPoQjk0.d.ts} +13 -13
- package/dist/{types-CnxVkr1p.d.ts → types-BiMOyijM.d.ts} +186 -126
- package/dist/viem.d.ts +1 -1
- package/package.json +2 -2
- package/dist/chunk-YMXQJO42.js +0 -2
- package/dist/chunk-YMXQJO42.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, PerpsUpdateLeverageResult, 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;
|
|
@@ -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.
|
|
@@ -3660,7 +3660,7 @@ declare const ListOpenOrdersRequestSchema: z.ZodDefault<z.ZodObject<{
|
|
|
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.
|
|
@@ -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.
|
|
@@ -3922,7 +3922,7 @@ declare const ListUserEarningsForDayRequestSchema: z.ZodObject<{
|
|
|
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.
|
|
@@ -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.
|
|
@@ -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
|
/**
|
|
@@ -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.
|
|
@@ -4814,7 +4814,7 @@ declare const ListCurrentRewardsRequestSchema: z.ZodDefault<z.ZodObject<{
|
|
|
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.
|
|
@@ -4857,7 +4857,7 @@ declare const ListMarketRewardsRequestSchema: z.ZodObject<{
|
|
|
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.
|
|
@@ -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.
|
|
@@ -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.
|
|
@@ -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.
|
|
@@ -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.
|
|
@@ -5542,7 +5542,7 @@ declare const ListComboMarketsRequestSchema: z.ZodObject<{
|
|
|
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.
|
|
@@ -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,7 +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
|
|
6053
|
+
isError(error: unknown): error is UserInputError | TransportError | RequestRejectedError | SigningError;
|
|
6013
6054
|
};
|
|
6014
6055
|
|
|
6015
6056
|
type PerpsSessionOptions = {
|
|
@@ -6020,6 +6061,22 @@ type PerpsSessionOptions = {
|
|
|
6020
6061
|
restUrl: string;
|
|
6021
6062
|
wsUrl: string;
|
|
6022
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
|
+
};
|
|
6023
6080
|
declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
|
|
6024
6081
|
#private;
|
|
6025
6082
|
readonly credentials: PerpsCredentials;
|
|
@@ -6030,6 +6087,7 @@ declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
|
|
|
6030
6087
|
[Symbol.asyncIterator](): AsyncIterator<PerpsSessionEvent>;
|
|
6031
6088
|
fetchBalances(): Promise<PerpsBalance[]>;
|
|
6032
6089
|
fetchPortfolio(): Promise<PerpsPortfolio>;
|
|
6090
|
+
fetchStats(): Promise<PerpsAccountStats>;
|
|
6033
6091
|
fetchAccountConfig(request?: FetchPerpsAccountConfigRequest): Promise<PerpsAccountConfig[]>;
|
|
6034
6092
|
fetchOpenOrders(request?: FetchPerpsOpenOrdersRequest): Promise<PerpsOrder[]>;
|
|
6035
6093
|
fetchOrders(request?: FetchPerpsOrdersRequest): Promise<PerpsOrder[]>;
|
|
@@ -6044,7 +6102,8 @@ declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
|
|
|
6044
6102
|
*
|
|
6045
6103
|
* @throws Thrown on failure.
|
|
6046
6104
|
*/
|
|
6047
|
-
placeOrder(request:
|
|
6105
|
+
placeOrder(request: PlacePerpsOrderWithTpSlRequest): Promise<PlacePerpsOrderWithTpSlResult>;
|
|
6106
|
+
placeOrder(request: PlacePerpsOrderRequest): Promise<PlacePerpsOrderResult>;
|
|
6048
6107
|
/**
|
|
6049
6108
|
* Posts one or more Perps orders and returns queue-entry acknowledgements.
|
|
6050
6109
|
*
|
|
@@ -6052,6 +6111,7 @@ declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
|
|
|
6052
6111
|
* This is a low-level method. Most SDK consumers should prefer `placeOrder`.
|
|
6053
6112
|
*/
|
|
6054
6113
|
postOrders(request: PostPerpsOrdersRequest): Promise<PerpsPostOrderAck[]>;
|
|
6114
|
+
placePositionTpSl(request: PlacePerpsPositionTpSlRequest): Promise<PlacePerpsPositionTpSlResult>;
|
|
6055
6115
|
/**
|
|
6056
6116
|
* Cancels one Perps order and returns the cancel result.
|
|
6057
6117
|
*
|
|
@@ -6071,7 +6131,7 @@ declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
|
|
|
6071
6131
|
|
|
6072
6132
|
type PerpsPublicReadError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6073
6133
|
declare const PerpsPublicReadError: {
|
|
6074
|
-
isError(error: unknown): error is
|
|
6134
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6075
6135
|
};
|
|
6076
6136
|
type PerpsCandlesParams = {
|
|
6077
6137
|
instrumentId: z.output<typeof PerpsInstrumentIdSchema>;
|
|
@@ -6092,7 +6152,7 @@ declare const FetchPerpsInstrumentsRequestSchema: z.ZodDefault<z.ZodObject<{
|
|
|
6092
6152
|
type FetchPerpsInstrumentsRequest = z.input<typeof FetchPerpsInstrumentsRequestSchema>;
|
|
6093
6153
|
type FetchPerpsInstrumentsError = PerpsPublicReadError;
|
|
6094
6154
|
declare const FetchPerpsInstrumentsError: {
|
|
6095
|
-
isError(error: unknown): error is
|
|
6155
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6096
6156
|
};
|
|
6097
6157
|
/**
|
|
6098
6158
|
* Fetches Perps instruments.
|
|
@@ -6110,7 +6170,7 @@ declare const FetchPerpsTickerRequestSchema: z.ZodObject<{
|
|
|
6110
6170
|
type FetchPerpsTickerRequest = z.input<typeof FetchPerpsTickerRequestSchema>;
|
|
6111
6171
|
type FetchPerpsTickerError = PerpsPublicReadError;
|
|
6112
6172
|
declare const FetchPerpsTickerError: {
|
|
6113
|
-
isError(error: unknown): error is
|
|
6173
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6114
6174
|
};
|
|
6115
6175
|
/**
|
|
6116
6176
|
* Fetches the current Perps ticker for an instrument.
|
|
@@ -6128,7 +6188,7 @@ declare const FetchPerpsTickersRequestSchema: z.ZodDefault<z.ZodObject<{
|
|
|
6128
6188
|
type FetchPerpsTickersRequest = z.input<typeof FetchPerpsTickersRequestSchema>;
|
|
6129
6189
|
type FetchPerpsTickersError = PerpsPublicReadError;
|
|
6130
6190
|
declare const FetchPerpsTickersError: {
|
|
6131
|
-
isError(error: unknown): error is
|
|
6191
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6132
6192
|
};
|
|
6133
6193
|
/**
|
|
6134
6194
|
* Fetches current Perps tickers.
|
|
@@ -6148,7 +6208,7 @@ declare const FetchPerpsBookRequestSchema: z.ZodObject<{
|
|
|
6148
6208
|
type FetchPerpsBookRequest = z.input<typeof FetchPerpsBookRequestSchema>;
|
|
6149
6209
|
type FetchPerpsBookError = PerpsPublicReadError;
|
|
6150
6210
|
declare const FetchPerpsBookError: {
|
|
6151
|
-
isError(error: unknown): error is
|
|
6211
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6152
6212
|
};
|
|
6153
6213
|
/**
|
|
6154
6214
|
* Fetches a Perps order book.
|
|
@@ -6186,7 +6246,7 @@ declare const ListPerpsCandlesRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
|
|
|
6186
6246
|
type ListPerpsCandlesRequest = z.input<typeof ListPerpsCandlesRequestSchema>;
|
|
6187
6247
|
type ListPerpsCandlesError = PerpsPublicReadError;
|
|
6188
6248
|
declare const ListPerpsCandlesError: {
|
|
6189
|
-
isError(error: unknown): error is
|
|
6249
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6190
6250
|
};
|
|
6191
6251
|
/**
|
|
6192
6252
|
* Lists Perps candles for an instrument with SDK-owned pagination.
|
|
@@ -6222,7 +6282,7 @@ declare const ListPerpsFundingHistoryRequestSchema: z.ZodUnion<readonly [z.ZodPi
|
|
|
6222
6282
|
type ListPerpsFundingHistoryRequest = z.input<typeof ListPerpsFundingHistoryRequestSchema>;
|
|
6223
6283
|
type ListPerpsFundingHistoryError = PerpsPublicReadError;
|
|
6224
6284
|
declare const ListPerpsFundingHistoryError: {
|
|
6225
|
-
isError(error: unknown): error is
|
|
6285
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6226
6286
|
};
|
|
6227
6287
|
/**
|
|
6228
6288
|
* Lists Perps funding-rate history for an instrument with SDK-owned pagination.
|
|
@@ -6258,7 +6318,7 @@ declare const ListPerpsTradesRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zod
|
|
|
6258
6318
|
type ListPerpsTradesRequest = z.input<typeof ListPerpsTradesRequestSchema>;
|
|
6259
6319
|
type ListPerpsTradesError = PerpsPublicReadError;
|
|
6260
6320
|
declare const ListPerpsTradesError: {
|
|
6261
|
-
isError(error: unknown): error is
|
|
6321
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6262
6322
|
};
|
|
6263
6323
|
/**
|
|
6264
6324
|
* Lists recent Perps trades for an instrument with SDK-owned pagination.
|
|
@@ -6272,7 +6332,7 @@ declare const ListPerpsTradesError: {
|
|
|
6272
6332
|
declare function listPerpsTrades(client: BaseClient, request: ListPerpsTradesRequest): Paginated<PerpsPublicTrade[]>;
|
|
6273
6333
|
type FetchPerpsFeesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError;
|
|
6274
6334
|
declare const FetchPerpsFeesError: {
|
|
6275
|
-
isError(error: unknown): error is
|
|
6335
|
+
isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6276
6336
|
};
|
|
6277
6337
|
/**
|
|
6278
6338
|
* Fetches the Perps fee schedule.
|
|
@@ -6316,11 +6376,11 @@ type DepositToPerpsRequest = z.input<typeof DepositToPerpsRequestSchema>;
|
|
|
6316
6376
|
type WithdrawFromPerpsRequest = z.input<typeof WithdrawFromPerpsRequestSchema>;
|
|
6317
6377
|
type OpenPerpsSessionError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6318
6378
|
declare const OpenPerpsSessionError: {
|
|
6319
|
-
isError(error: unknown): error is
|
|
6379
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
6320
6380
|
};
|
|
6321
6381
|
type RevokePerpsCredentialsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6322
6382
|
declare const RevokePerpsCredentialsError: {
|
|
6323
|
-
isError(error: unknown): error is
|
|
6383
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
6324
6384
|
};
|
|
6325
6385
|
type PreparePerpsDepositError = UserInputError;
|
|
6326
6386
|
declare const PreparePerpsDepositError: {
|
|
@@ -6328,11 +6388,11 @@ declare const PreparePerpsDepositError: {
|
|
|
6328
6388
|
};
|
|
6329
6389
|
type DepositToPerpsError = RateLimitError | RequestRejectedError | CancelledSigningError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6330
6390
|
declare const DepositToPerpsError: {
|
|
6331
|
-
isError(error: unknown): error is
|
|
6391
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
|
|
6332
6392
|
};
|
|
6333
6393
|
type WithdrawFromPerpsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6334
6394
|
declare const WithdrawFromPerpsError: {
|
|
6335
|
-
isError(error: unknown): error is
|
|
6395
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
6336
6396
|
};
|
|
6337
6397
|
/**
|
|
6338
6398
|
* Opens a Perps account session.
|
|
@@ -6426,39 +6486,39 @@ type MergePositionsWorkflow = AsyncGenerator<MergePositionsWorkflowRequest, Tran
|
|
|
6426
6486
|
type RedeemPositionsWorkflow = AsyncGenerator<RedeemPositionsWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
|
|
6427
6487
|
type PrepareSplitPositionError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6428
6488
|
declare const PrepareSplitPositionError: {
|
|
6429
|
-
isError(error: unknown): error is
|
|
6489
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6430
6490
|
};
|
|
6431
6491
|
type PrepareSplitMarketPositionError = PrepareSplitPositionError;
|
|
6432
6492
|
declare const PrepareSplitMarketPositionError: {
|
|
6433
|
-
isError(error: unknown): error is
|
|
6493
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6434
6494
|
};
|
|
6435
6495
|
type PrepareSplitComboPositionError = PrepareSplitPositionError;
|
|
6436
6496
|
declare const PrepareSplitComboPositionError: {
|
|
6437
|
-
isError(error: unknown): error is
|
|
6497
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6438
6498
|
};
|
|
6439
6499
|
type PrepareMergePositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6440
6500
|
declare const PrepareMergePositionsError: {
|
|
6441
|
-
isError(error: unknown): error is
|
|
6501
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6442
6502
|
};
|
|
6443
6503
|
type PrepareMergeMarketPositionError = PrepareMergePositionsError;
|
|
6444
6504
|
declare const PrepareMergeMarketPositionError: {
|
|
6445
|
-
isError(error: unknown): error is
|
|
6505
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6446
6506
|
};
|
|
6447
6507
|
type PrepareMergeComboPositionError = PrepareMergePositionsError;
|
|
6448
6508
|
declare const PrepareMergeComboPositionError: {
|
|
6449
|
-
isError(error: unknown): error is
|
|
6509
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6450
6510
|
};
|
|
6451
6511
|
type PrepareRedeemPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6452
6512
|
declare const PrepareRedeemPositionsError: {
|
|
6453
|
-
isError(error: unknown): error is
|
|
6513
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6454
6514
|
};
|
|
6455
6515
|
type PrepareRedeemMarketPositionsError = PrepareRedeemPositionsError;
|
|
6456
6516
|
declare const PrepareRedeemMarketPositionsError: {
|
|
6457
|
-
isError(error: unknown): error is
|
|
6517
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6458
6518
|
};
|
|
6459
6519
|
type PrepareRedeemComboPositionError = PrepareRedeemPositionsError;
|
|
6460
6520
|
declare const PrepareRedeemComboPositionError: {
|
|
6461
|
-
isError(error: unknown): error is
|
|
6521
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6462
6522
|
};
|
|
6463
6523
|
/**
|
|
6464
6524
|
* Starts a split workflow for a market condition.
|
|
@@ -6506,15 +6566,15 @@ declare function prepareSplitComboPosition(client: BaseSecureClient, request: Pr
|
|
|
6506
6566
|
declare function prepareSplitPosition(client: BaseSecureClient, request: PrepareSplitPositionRequest): Promise<SplitPositionWorkflow>;
|
|
6507
6567
|
type SplitPositionError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6508
6568
|
declare const SplitPositionError: {
|
|
6509
|
-
isError(error: unknown): error is
|
|
6569
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
6510
6570
|
};
|
|
6511
6571
|
type SplitMarketPositionError = SplitPositionError;
|
|
6512
6572
|
declare const SplitMarketPositionError: {
|
|
6513
|
-
isError(error: unknown): error is
|
|
6573
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
6514
6574
|
};
|
|
6515
6575
|
type SplitComboPositionError = SplitPositionError;
|
|
6516
6576
|
declare const SplitComboPositionError: {
|
|
6517
|
-
isError(error: unknown): error is
|
|
6577
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
6518
6578
|
};
|
|
6519
6579
|
/**
|
|
6520
6580
|
* Splits collateral into market positions.
|
|
@@ -6618,15 +6678,15 @@ declare function prepareMergeComboPosition(client: BaseSecureClient, request: Pr
|
|
|
6618
6678
|
declare function prepareMergePositions(client: BaseSecureClient, request: PrepareMergePositionsRequest): Promise<MergePositionsWorkflow>;
|
|
6619
6679
|
type MergePositionsError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6620
6680
|
declare const MergePositionsError: {
|
|
6621
|
-
isError(error: unknown): error is
|
|
6681
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
6622
6682
|
};
|
|
6623
6683
|
type MergeMarketPositionError = MergePositionsError;
|
|
6624
6684
|
declare const MergeMarketPositionError: {
|
|
6625
|
-
isError(error: unknown): error is
|
|
6685
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
6626
6686
|
};
|
|
6627
6687
|
type MergeComboPositionError = MergePositionsError;
|
|
6628
6688
|
declare const MergeComboPositionError: {
|
|
6629
|
-
isError(error: unknown): error is
|
|
6689
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
6630
6690
|
};
|
|
6631
6691
|
/**
|
|
6632
6692
|
* Merges complementary market positions back into collateral.
|
|
@@ -6752,7 +6812,7 @@ declare function prepareRedeemComboPosition(client: BaseSecureClient, request: P
|
|
|
6752
6812
|
declare function prepareRedeemPositions(client: BaseSecureClient, request: PrepareRedeemPositionsRequest): Promise<RedeemPositionsWorkflow>;
|
|
6753
6813
|
type RedeemPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
|
|
6754
6814
|
declare const RedeemPositionsError: {
|
|
6755
|
-
isError(error: unknown): error is
|
|
6815
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
|
|
6756
6816
|
};
|
|
6757
6817
|
/**
|
|
6758
6818
|
* Redeems resolved market or combo positions.
|
|
@@ -6771,7 +6831,7 @@ declare const FetchPublicProfileRequestSchema: z.ZodObject<{
|
|
|
6771
6831
|
type FetchPublicProfileRequest = z.input<typeof FetchPublicProfileRequestSchema>;
|
|
6772
6832
|
type FetchPublicProfileError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6773
6833
|
declare const FetchPublicProfileError: {
|
|
6774
|
-
isError(error: unknown): error is
|
|
6834
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6775
6835
|
};
|
|
6776
6836
|
/**
|
|
6777
6837
|
* Fetches a public profile by wallet address.
|
|
@@ -6831,7 +6891,7 @@ type SearchResults = {
|
|
|
6831
6891
|
};
|
|
6832
6892
|
type SearchError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6833
6893
|
declare const SearchError: {
|
|
6834
|
-
isError(error: unknown): error is
|
|
6894
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6835
6895
|
};
|
|
6836
6896
|
/**
|
|
6837
6897
|
* Runs a public full-text search.
|
|
@@ -6887,7 +6947,7 @@ type ListSeriesRequest = z.input<typeof ListSeriesRequestSchema>;
|
|
|
6887
6947
|
type FetchSeriesRequest = z.input<typeof FetchSeriesRequestSchema>;
|
|
6888
6948
|
type ListSeriesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6889
6949
|
declare const ListSeriesError: {
|
|
6890
|
-
isError(error: unknown): error is
|
|
6950
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6891
6951
|
};
|
|
6892
6952
|
/**
|
|
6893
6953
|
* Lists series.
|
|
@@ -6930,7 +6990,7 @@ declare const ListSeriesError: {
|
|
|
6930
6990
|
declare function listSeries(client: BaseClient, request?: ListSeriesRequest): Paginated<Series[]>;
|
|
6931
6991
|
type FetchSeriesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6932
6992
|
declare const FetchSeriesError: {
|
|
6933
|
-
isError(error: unknown): error is
|
|
6993
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6934
6994
|
};
|
|
6935
6995
|
/**
|
|
6936
6996
|
* Fetches a series.
|
|
@@ -7132,7 +7192,7 @@ type FetchRelatedTagsRequest = z.input<typeof RelatedTagsByIdRequestSchema> | z.
|
|
|
7132
7192
|
type FetchRelatedTagResourcesRequest = z.input<typeof RelatedTagResourcesByIdRequestSchema> | z.input<typeof RelatedTagResourcesBySlugRequestSchema>;
|
|
7133
7193
|
type ListTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7134
7194
|
declare const ListTagsError: {
|
|
7135
|
-
isError(error: unknown): error is
|
|
7195
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
7136
7196
|
};
|
|
7137
7197
|
/**
|
|
7138
7198
|
* Lists tags.
|
|
@@ -7175,7 +7235,7 @@ declare const ListTagsError: {
|
|
|
7175
7235
|
declare function listTags(client: BaseClient, request?: ListTagsRequest): Paginated<Tag[]>;
|
|
7176
7236
|
type FetchTagError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7177
7237
|
declare const FetchTagError: {
|
|
7178
|
-
isError(error: unknown): error is
|
|
7238
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
7179
7239
|
};
|
|
7180
7240
|
/**
|
|
7181
7241
|
* Fetches a tag by id or slug.
|
|
@@ -7199,7 +7259,7 @@ declare const FetchTagError: {
|
|
|
7199
7259
|
declare function fetchTag(client: BaseClient, request: FetchTagRequest): Promise<Tag>;
|
|
7200
7260
|
type FetchRelatedTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7201
7261
|
declare const FetchRelatedTagsError: {
|
|
7202
|
-
isError(error: unknown): error is
|
|
7262
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
7203
7263
|
};
|
|
7204
7264
|
/**
|
|
7205
7265
|
* Fetches related tag relationships by id or slug.
|
|
@@ -7224,7 +7284,7 @@ declare const FetchRelatedTagsError: {
|
|
|
7224
7284
|
declare function fetchRelatedTags(client: BaseClient, request: FetchRelatedTagsRequest): Promise<RelatedTag[]>;
|
|
7225
7285
|
type FetchRelatedTagResourcesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7226
7286
|
declare const FetchRelatedTagResourcesError: {
|
|
7227
|
-
isError(error: unknown): error is
|
|
7287
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
7228
7288
|
};
|
|
7229
7289
|
/**
|
|
7230
7290
|
* Fetches resources linked from related tag relationships by id or slug.
|
|
@@ -7261,7 +7321,7 @@ declare const ListTeamsRequestSchema: z.ZodObject<{
|
|
|
7261
7321
|
type ListTeamsRequest = z.input<typeof ListTeamsRequestSchema>;
|
|
7262
7322
|
type ListTeamsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7263
7323
|
declare const ListTeamsError: {
|
|
7264
|
-
isError(error: unknown): error is
|
|
7324
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
7265
7325
|
};
|
|
7266
7326
|
/**
|
|
7267
7327
|
* Lists teams.
|
|
@@ -7337,7 +7397,7 @@ declare const PrepareErc20TransferError: {
|
|
|
7337
7397
|
declare function prepareErc20Transfer(client: BaseSecureClient, request: PrepareErc20TransferRequest): Promise<Erc20TransferWorkflow>;
|
|
7338
7398
|
type TransferErc20Error = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
|
|
7339
7399
|
declare const TransferErc20Error: {
|
|
7340
|
-
isError(error: unknown): error is
|
|
7400
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
|
|
7341
7401
|
};
|
|
7342
7402
|
/**
|
|
7343
7403
|
* Transfers ERC-20 tokens from the authenticated account.
|
|
@@ -7394,7 +7454,7 @@ type TransactionOutcome = {
|
|
|
7394
7454
|
};
|
|
7395
7455
|
type WaitForTransactionError = WaitForGaslessTransactionError;
|
|
7396
7456
|
declare const WaitForTransactionError: {
|
|
7397
|
-
isError(error: unknown): error is
|
|
7457
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError;
|
|
7398
7458
|
};
|
|
7399
7459
|
interface TransactionHandle {
|
|
7400
7460
|
/**
|
|
@@ -7421,4 +7481,4 @@ type Signer = {
|
|
|
7421
7481
|
sendTransaction(request: SignerTransactionRequest): Promise<TransactionHandle>;
|
|
7422
7482
|
};
|
|
7423
7483
|
|
|
7424
|
-
export { FetchPublicProfileError as $, type ApiKeyAuthorization as A, type BaseClient as B, CancelAllError as C, type DataActions as D, type EnvironmentConfig as E, FetchClosedOnlyModeError as F, FetchEventLiveVolumeError as G, FetchEventTagsError as H, FetchLastTradePriceError as I, FetchLastTradePricesError as J, FetchMarketError as K, FetchMarketTagsError as L, FetchMidpointError as M, FetchMidpointsError as N, FetchNotificationsError as O, FetchOrderBookError as P, FetchOrderBooksError as Q, FetchOrderError as R, type Signer as S, type TypedDataPayload as T, UserInputError as U, FetchOrderScoringError as V, FetchOrdersScoringError as W, FetchPortfolioValueError as X, FetchPriceError as Y, FetchPriceHistoryError as Z, FetchPricesError as _, type TypedData as a, RfqConfirmationError as a$, FetchRelatedTagResourcesError as a0, FetchRelatedTagsError as a1, FetchRewardPercentagesError as a2, FetchSeriesError as a3, FetchSpreadError as a4, FetchSpreadsError as a5, FetchTagError as a6, FetchTotalEarningsForUserForDayError as a7, FetchTradedMarketCountError as a8, InsufficientLiquidityError as a9, MergePositionsError as aA, OpenRfqSessionError as aB, type Page as aC, PageSizeSchema as aD, type Paginated as aE, type PerpsActions as aF, type PerpsEndpoints as aG, PerpsSession as aH, PostOrderError as aI, PostOrdersError as aJ, type PublicAccountActions as aK, type PublicActions as aL, type PublicClient as aM, type PublicClientOptions as aN, type PublicPerpsActions as aO, type PublicRewardsActions as aP, type PublicSubscriptionsActions as aQ, RateLimitError as aR, RedeemPositionsError as aS, RequestRejectedError as aT, type RequestRejectedErrorOptions as aU, type RestEndpoint as aV, type RfqCancelQuoteAck as aW, RfqCancelQuoteError as aX, RfqCancelQuoteRejectedError as aY, type RfqCancelQuoteRejectedErrorOptions as aZ, type RfqConfirmationAck as a_, ListAccountTradesError as aa, ListActivityError as ab, ListBuilderLeaderboardError as ac, ListBuilderTradesError as ad, ListBuilderVolumeError as ae, ListClosedPositionsError as af, ListComboMarketsError as ag, ListComboPositionsError as ah, ListCommentsByUserAddressError as ai, ListCommentsError as aj, ListCurrentRewardsError as ak, ListEventsError as al, ListMarketHoldersError as am, ListMarketPositionsError as an, ListMarketRewardsError as ao, ListMarketsError as ap, ListOpenInterestError as aq, ListOpenOrdersError as ar, ListPositionsError as as, ListSeriesError as at, ListTagsError as au, ListTeamsError as av, ListTraderLeaderboardError as aw, ListTradesError as ax, ListUserEarningsAndMarketsConfigError as ay, ListUserEarningsForDayError as az, type TransactionCall as b, subscriptionsActions as b$, RfqConfirmationRejectedError as b0, type RfqConfirmationRequestEvent as b1, type RfqEndpoints as b2, type RfqEvent as b3, RfqQuoteError as b4, type RfqQuoteReference as b5, RfqQuoteRejectedError as b6, type RfqQuoteRejectedErrorOptions as b7, type RfqQuoteRequestEvent as b8, type RfqQuoteResponse as b9, SplitPositionError as bA, TimeoutError as bB, TransactionFailedError as bC, type TransactionHandle as bD, type TransactionOutcome as bE, TransferErc20Error as bF, TransportError as bG, type TypedDataDomain as bH, type TypedDataField as bI, UnexpectedResponseError as bJ, UpdatePerpsLeverageError as bK, WaitForTransactionError as bL, type WalletDerivationConfig as bM, type WebSocketEndpoint as bN, accountActions as bO, allActions as bP, analyticsActions as bQ, createPublicClient as bR, createSecureClient as bS, dataActions as bT, discoveryActions as bU, forkEnvironmentConfig as bV, makeErrorGuard as bW, perpsActions as bX, production as bY, rewardsActions as bZ, rfqActions as b_, type RfqQuoteSource as ba, type RfqSession as bb, type RfqTradeEvent as bc, SearchError as bd, SearchSort as be, type SecureAccountActions as bf, type SecureActions as bg, type SecureClient as bh, type SecureClientOptions as bi, type SecureDownloadAccountingSnapshotRequest as bj, type SecureFetchPortfolioValueRequest as bk, type SecureFetchTradedMarketCountRequest as bl, type SecureListActivityRequest as bm, type SecureListClosedPositionsRequest as bn, type SecureListComboPositionsRequest as bo, type SecureListPositionsRequest as bp, type SecurePerpsActions as bq, type SecureRewardsActions as br, type SecureRfqActions as bs, type SecureSubscriptionsActions as bt, type SecureTradingActions as bu, type SecureWalletActions as bv, SetupGaslessWalletError as bw, SetupTradingApprovalsError as bx, type SignerTransactionRequest as by, SigningError as bz, type AccountIdentity as c, type FetchPerpsOpenOrdersRequest as c$, tradingActions as c0, walletActions as c1, type CancelMarketOrdersRequest as c2, type CancelOrderRequest as c3, type CancelOrdersRequest as c4, type CancelPerpsOrderRequest as c5, type CancelPerpsOrdersRequest as c6, type CommentsEventType as c7, type CommentsSubscription as c8, type CreatePerpsSessionRequest as c9, type FetchEventLiveVolumeRequest as cA, type FetchEventRequest as cB, type FetchEventTagsRequest as cC, FetchExecuteParamsError as cD, type FetchExecuteParamsRequest as cE, type FetchGaslessTransactionRequest as cF, type FetchLastTradePriceRequest as cG, type FetchLastTradePricesRequest as cH, FetchMarketInfoError as cI, type FetchMarketInfoRequest as cJ, type FetchMarketRequest as cK, type FetchMarketTagsRequest as cL, type FetchMidpointRequest as cM, type FetchMidpointsRequest as cN, FetchNegRiskError as cO, type FetchNegRiskRequest as cP, type FetchOrderBookRequest as cQ, type FetchOrderBooksRequest as cR, type FetchOrderRequest as cS, type FetchOrderScoringRequest as cT, type FetchOrdersScoringRequest as cU, type FetchPerpsAccountConfigRequest as cV, FetchPerpsBookError as cW, type FetchPerpsBookRequest as cX, FetchPerpsFeesError as cY, FetchPerpsInstrumentsError as cZ, type FetchPerpsInstrumentsRequest as c_, type CryptoPricesEventType as ca, type CryptoPricesSubscription as cb, DeployDepositWalletError as cc, DepositToPerpsError as cd, type DepositToPerpsRequest as ce, type DeprecatedTransactionHandle as cf, type DownloadAccountingSnapshotRequest as cg, type DropNotificationsRequest as ch, type EquityPricesEventType as ci, type EquityPricesSubscription as cj, type Erc1155ApprovalForAllWorkflow as ck, type Erc1155ApprovalForAllWorkflowRequest as cl, type Erc20ApprovalWorkflow as cm, type Erc20ApprovalWorkflowRequest as cn, type Erc20TransferWorkflow as co, type Erc20TransferWorkflowRequest as cp, type EstimateMarketBuyPriceRequest as cq, type EstimateMarketPriceRequest as cr, type EstimateMarketSellPriceRequest as cs, type EventForSubscriptionSpec as ct, type EventForSubscriptionSpecs as cu, FetchBalanceAllowanceError as cv, type FetchBalanceAllowanceRequest as cw, FetchBuilderFeeRatesError as cx, type FetchBuilderFeeRatesRequest as cy, type FetchCommentsByIdRequest as cz, type AnalyticsActions as d, type ListUserEarningsForDayRequest as d$, type FetchPerpsOrdersRequest as d0, FetchPerpsTickerError as d1, type FetchPerpsTickerRequest as d2, FetchPerpsTickersError as d3, type FetchPerpsTickersRequest as d4, type FetchPortfolioValueRequest as d5, type FetchPriceHistoryRequest as d6, type FetchPriceRequest as d7, type FetchPricesRequest as d8, type FetchPublicProfileRequest as d9, type ListCurrentRewardsRequest as dA, type ListEventsRequest as dB, type ListMarketHoldersRequest as dC, type ListMarketPositionsRequest as dD, type ListMarketRewardsRequest as dE, type ListMarketsRequest as dF, type ListOpenInterestRequest as dG, type ListOpenOrdersRequest as dH, ListPerpsCandlesError as dI, type ListPerpsCandlesRequest as dJ, type ListPerpsDepositsRequest as dK, type ListPerpsEquityHistoryRequest as dL, type ListPerpsFillsRequest as dM, ListPerpsFundingHistoryError as dN, type ListPerpsFundingHistoryRequest as dO, type ListPerpsFundingPaymentsRequest as dP, type ListPerpsPnlHistoryRequest as dQ, ListPerpsTradesError as dR, type ListPerpsTradesRequest as dS, type ListPerpsWithdrawalsRequest as dT, type ListPositionsRequest as dU, type ListSeriesRequest as dV, type ListTagsRequest as dW, type ListTeamsRequest as dX, type ListTraderLeaderboardRequest as dY, type ListTradesRequest as dZ, type ListUserEarningsAndMarketsConfigRequest as d_, type FetchRelatedTagResourcesRequest as da, type FetchRelatedTagsRequest as db, type FetchSeriesRequest as dc, type FetchSpreadRequest as dd, type FetchSpreadsRequest as de, type FetchTagRequest as df, FetchTickSizeError as dg, type FetchTickSizeRequest as dh, type FetchTotalEarningsForUserForDayRequest as di, type FetchTradedMarketCountRequest as dj, GaslessTransactionMetadataSchema as dk, type GaslessWorkflow as dl, type GaslessWorkflowRequest as dm, IsWalletDeployedError as dn, type IsWalletDeployedRequest as dp, type ListAccountTradesRequest as dq, type ListActivityRequest as dr, type ListBuilderLeaderboardRequest as ds, type ListBuilderTradesRequest as dt, type ListBuilderVolumeRequest as du, type ListClosedPositionsRequest as dv, type ListComboMarketsRequest as dw, type ListComboPositionsRequest as dx, type ListCommentsByUserAddressRequest as dy, type ListCommentsRequest as dz, ApproveErc1155ForAllError as e, PrepareTradingApprovalsError as e$, type MarketEventType as e0, type MarketSubscription as e1, MergeComboPositionError as e2, MergeMarketPositionError as e3, type MergePositionsWorkflow as e4, type MergePositionsWorkflowRequest as e5, OpenPerpsSessionError as e6, type OpenPerpsSessionRequest as e7, type OrderDraft as e8, type OrderPostingWorkflow as e9, PrepareGaslessTransactionError as eA, type PrepareGaslessTransactionRequest as eB, type PrepareLimitOrderRequest as eC, type PrepareMarketBuyOrderRequest as eD, type PrepareMarketOrderRequest as eE, type PrepareMarketSellOrderRequest as eF, PrepareMergeComboPositionError as eG, type PrepareMergeComboPositionRequest as eH, PrepareMergeMarketPositionError as eI, type PrepareMergeMarketPositionRequest as eJ, PrepareMergePositionsError as eK, type PrepareMergePositionsRequest as eL, PreparePerpsDepositError as eM, PrepareRedeemComboPositionError as eN, type PrepareRedeemComboPositionRequest as eO, type PrepareRedeemMarketPositionsByConditionIdRequest as eP, type PrepareRedeemMarketPositionsByMarketIdRequest as eQ, PrepareRedeemMarketPositionsError as eR, type PrepareRedeemMarketPositionsRequest as eS, PrepareRedeemPositionsError as eT, type PrepareRedeemPositionsRequest as eU, PrepareSplitComboPositionError as eV, type PrepareSplitComboPositionRequest as eW, PrepareSplitMarketPositionError as eX, type PrepareSplitMarketPositionRequest as eY, PrepareSplitPositionError as eZ, type PrepareSplitPositionRequest as e_, type OrderWorkflow as ea, type OrderWorkflowRequest as eb, type PerpsBboSubscription as ec, type PerpsBookDepth as ed, type PerpsBookSubscription as ee, type PerpsCandlesSubscription as ef, type PerpsDepositWorkflow as eg, type PerpsDepositWorkflowRequest as eh, type PerpsMarketDataEventType as ei, type PerpsMarketDataSubscription as ej, type PerpsPlaceFokOrderRequest as ek, type PerpsPlaceGtcOrderRequest as el, type PerpsPlaceIocOrderRequest as em, type PerpsStatisticsSubscription as en, type PerpsStreamingCandleInterval as eo, type PerpsTickersSubscription as ep, type PerpsTradesSubscription as eq, type PlacePerpsOrderRequest as er, type PostOrdersRequest as es, type PostPerpsOrdersRequest as et, PrepareErc1155ApprovalForAllError as eu, type PrepareErc1155ApprovalForAllRequest as ev, PrepareErc20ApprovalError as ew, type PrepareErc20ApprovalRequest as ex, PrepareErc20TransferError as ey, type PrepareErc20TransferRequest as ez, ApproveErc20Error as f, fetchNegRisk as f$, type PublicRealtimeEvent as f0, type PublicRealtimeTopic as f1, type PublicSubscriptionSpec as f2, type RedeemPositionsWorkflow as f3, type RedeemPositionsWorkflowRequest as f4, ResolveConditionByTokenError as f5, type ResolveConditionByTokenRequest as f6, type ResumePerpsSessionRequest as f7, RevokePerpsCredentialsError as f8, type RevokePerpsCredentialsRequest as f9, approveErc1155ForAll as fA, approveErc20 as fB, cancelAll as fC, cancelMarketOrders as fD, cancelOrder as fE, cancelOrders as fF, deployDepositWallet as fG, depositToPerps as fH, downloadAccountingSnapshot as fI, dropNotifications as fJ, estimateMarketPrice as fK, fetchBalanceAllowance as fL, fetchBuilderFeeRates as fM, fetchBuilderVolume as fN, fetchClosedOnlyMode as fO, fetchCommentsById as fP, fetchEvent as fQ, fetchEventLiveVolume as fR, fetchEventTags as fS, fetchExecuteParams as fT, fetchLastTradePrice as fU, fetchLastTradePrices as fV, fetchMarket as fW, fetchMarketInfo as fX, fetchMarketTags as fY, fetchMidpoint as fZ, fetchMidpoints as f_, type RfqConfirmationRejectedErrorOptions as fa, type RfqExecutionUpdateEvent as fb, type SearchRequest as fc, type SearchResults as fd, type SecureRealtimeEvent as fe, type SecureRealtimeTopic as ff, type SecureSubscriptionSpec as fg, type SignedOrder as fh, SplitComboPositionError as fi, SplitMarketPositionError as fj, type SplitPositionWorkflow as fk, type SplitPositionWorkflowRequest as fl, type SportsEventType as fm, type SportsSubscription as fn, type SubscribeError as fo, type SubscriptionHandle as fp, type TradingApprovalsWorkflow as fq, type TradingApprovalsWorkflowRequest as fr, UpdateBalanceAllowanceError as fs, type UpdateBalanceAllowanceRequest as ft, type UpdatePerpsLeverageRequest as fu, type UserEventType as fv, type UserSubscription as fw, WaitForGaslessTransactionError as fx, WithdrawFromPerpsError as fy, type WithdrawFromPerpsRequest as fz, BasePublicClient as g, prepareErc1155ApprovalForAll as g$, fetchNotifications as g0, fetchOrder as g1, fetchOrderBook as g2, fetchOrderBooks as g3, fetchOrderScoring as g4, fetchOrdersScoring as g5, fetchPerpsBook as g6, fetchPerpsFees as g7, fetchPerpsInstruments as g8, fetchPerpsTicker as g9, listCommentsByUserAddress as gA, listCurrentRewards as gB, listEvents as gC, listMarketHolders as gD, listMarketPositions as gE, listMarketRewards as gF, listMarkets as gG, listOpenInterest as gH, listOpenOrders as gI, listPerpsCandles as gJ, listPerpsFundingHistory as gK, listPerpsTrades as gL, listPositions as gM, listSeries as gN, listTags as gO, listTeams as gP, listTraderLeaderboard as gQ, listTrades as gR, listUserEarningsAndMarketsConfig as gS, listUserEarningsForDay as gT, mergeComboPosition as gU, mergeMarketPosition as gV, mergePositions as gW, openPerpsSession as gX, openRfqSession as gY, postOrder as gZ, postOrders as g_, fetchPerpsTickers as ga, fetchPortfolioValue as gb, fetchPrice as gc, fetchPriceHistory as gd, fetchPrices as ge, fetchPublicProfile as gf, fetchRelatedTagResources as gg, fetchRelatedTags as gh, fetchRewardPercentages as gi, fetchSeries as gj, fetchSpread as gk, fetchSpreads as gl, fetchTag as gm, fetchTickSize as gn, fetchTotalEarningsForUserForDay as go, fetchTradedMarketCount as gp, fetchTransaction as gq, isWalletDeployed as gr, listAccountTrades as gs, listActivity as gt, listBuilderLeaderboard as gu, listBuilderTrades as gv, listClosedPositions as gw, listComboMarkets as gx, listComboPositions as gy, listComments as gz, BaseSecureClient as h, prepareErc20Approval as h0, prepareErc20Transfer as h1, prepareGaslessTransaction as h2, prepareMergeComboPosition as h3, prepareMergeMarketPosition as h4, prepareMergePositions as h5, preparePerpsDeposit as h6, prepareRedeemComboPosition as h7, prepareRedeemMarketPositions as h8, prepareRedeemPositions as h9, prepareSplitComboPosition as ha, prepareSplitMarketPosition as hb, prepareSplitPosition as hc, prepareTradingApprovals as hd, redeemPositions as he, resolveConditionByToken as hf, revokePerpsCredentials as hg, search as hh, setupTradingApprovals as hi, splitComboPosition as hj, splitMarketPosition as hk, splitPosition as hl, subscribe as hm, transferErc20 as hn, updateBalanceAllowance as ho, withdrawFromPerps as hp, type BeginAuthenticationRequest as i, CancelMarketOrdersError as j, CancelOrderError as k, CancelOrdersError as l, CancelledSigningError as m, type Client as n, type ClientActions as o, type ClientDecorator as p, type ClobEndpoints as q, CreateSecureClientError as r, type DiscoveryActions as s, DownloadAccountingSnapshotError as t, DropNotificationsError as u, type EnvironmentConfigFork as v, type EnvironmentContracts as w, EstimateMarketPriceError as x, FetchCommentsByIdError as y, FetchEventError as z };
|
|
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 };
|