@polymarket/client 0.1.0-beta.7 → 0.1.0-beta.8
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 +14 -13
- package/dist/actions/index.js +1 -1
- package/dist/chunk-GZWA532J.js +2 -0
- package/dist/chunk-GZWA532J.js.map +1 -0
- package/dist/ethers-v5.d.ts +2 -1
- package/dist/index.d.ts +23 -7
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{sports-DNQLB2c4.d.ts → sports-_kLx9-gD.d.ts} +11 -11
- package/dist/{types-C9xs0MNQ.d.ts → types-5uGoLhNm.d.ts} +957 -116
- package/dist/viem.d.ts +2 -1
- package/package.json +3 -2
- package/dist/chunk-UBQO5URS.js +0 -2
- package/dist/chunk-UBQO5URS.js.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _polymarket_bindings from '@polymarket/bindings';
|
|
2
|
-
import { PaginationCursor, OrderSide, OrderType, TokenId, BuilderCode, EvmAddress as EvmAddress$1, CtfConditionId, TickSizeValue, PositionId, TransactionId } from '@polymarket/bindings';
|
|
3
|
-
import
|
|
2
|
+
import { PaginationCursor, OrderSide, OrderType, TokenId, BuilderCode, EvmAddress as EvmAddress$1, CtfConditionId, TickSizeValue, TxHashSchema, PositionId, TransactionId } from '@polymarket/bindings';
|
|
3
|
+
import * as _polymarket_types from '@polymarket/types';
|
|
4
|
+
import { PolymarketError, HexString, EvmAddress, EvmSignature, NonEmptyArray, Prettify, Erc1271Signature, PrivateKey, TxHash } from '@polymarket/types';
|
|
4
5
|
import { WalletType, Event, TagReference, Market, Series, Tag, RelatedTag, SportsMetadata, SportsMarketTypesResponse, Team, PublicProfile, Comment, Profile, SearchTag } from '@polymarket/bindings/gamma';
|
|
5
6
|
import { RelayerTransactionType, RelayerExecuteParams, GaslessTransaction } from '@polymarket/bindings/relayer';
|
|
6
7
|
import { ZodError, z } from 'zod';
|
|
@@ -8,8 +9,10 @@ import * as _polymarket_bindings_clob from '@polymarket/bindings/clob';
|
|
|
8
9
|
import { ClobTrade, NotificationsResponse, BuilderTrade, Prices, OrderBook, LastTradePrice, LastTradePriceForToken, PriceHistoryPoint, CurrentReward, MarketReward, OrdersScoringResponse, UserEarning, TotalUserEarning, UserRewardsEarning, RewardsPercentages, CancelOrdersResponse, SignatureType, OrderResponse, OrderResponses, OpenOrder, ApiKeyCreds, BalanceAllowanceResponse, BuilderFeeRates, MarketInfo } from '@polymarket/bindings/clob';
|
|
9
10
|
import * as _polymarket_bindings_data from '@polymarket/bindings/data';
|
|
10
11
|
import { Value, Traded, ClosedPosition, ComboPosition, Position, MetaMarketPosition, Activity, LeaderboardEntry, BuilderVolumeEntry, TraderLeaderboardEntry, LiveVolume, OpenInterest, MetaHolder, Trade } from '@polymarket/bindings/data';
|
|
11
|
-
import { ComboMarket, RfqQuoteRequest, RfqRequestedSize, RfqSide, RfqQuoteAck, RfqConfirmationRequest, RfqConfirmationAck as RfqConfirmationAck$1, RfqExecutionUpdate, RfqQuoteCancelAck, RfqErrorCode, RfqId, RfqQuoteId } from '@polymarket/bindings/rfq';
|
|
12
|
-
import
|
|
12
|
+
import { ComboMarket, RfqQuoteRequest, RfqRequestedSize, RfqSide, RfqQuoteAck, RfqConfirmationRequest, RfqConfirmationAck as RfqConfirmationAck$1, RfqExecutionUpdate, RfqTrade, RfqQuoteCancelAck, RfqErrorCode, RfqId, RfqQuoteId } from '@polymarket/bindings/rfq';
|
|
13
|
+
import * as _polymarket_bindings_perps from '@polymarket/bindings/perps';
|
|
14
|
+
import { PerpsInstrument, PerpsTicker, PerpsBook, PerpsCandle, PerpsFundingRate, PerpsPublicTrade, PerpsFeeScheduleEntry, PerpsWithdrawalId, PerpsInstrumentId, PerpsDepositStatusSchema, PerpsWithdrawalStatusSchema, PerpsPnlIntervalSchema, PerpsTimeInForce, PerpsOrderId, PerpsCredentials, PerpsBalance, PerpsPortfolio, PerpsAccountConfig, PerpsOrder, PerpsAccountFill, PerpsAccountFundingPayment, PerpsDeposit, PerpsWithdrawal, PerpsEquityPoint, PerpsPnlPoint, PerpsOrderCommandAck, PerpsCommandAck, PerpsKlineInterval, PerpsInstrumentIdSchema } from '@polymarket/bindings/perps';
|
|
15
|
+
import { PerpsSessionEvent, CommentsEvent, CryptoPricesTopic, EquityPricesTopic, EquityPricesEvent, MarketEvent, StandardMarketEvent, UserEvent, SportsEvent, CryptoPricesBinanceEvent, CryptoPricesChainlinkEvent, PerpsTradeEvent, PerpsBboEvent, PerpsBookEvent, PerpsCandleEvent, PerpsTickerEvent, PerpsStatisticEvent, CryptoPricesEvent, PerpsMarketDataEvent } from '@polymarket/bindings/subscriptions';
|
|
13
16
|
import { Hex } from 'ox';
|
|
14
17
|
|
|
15
18
|
type ResponseValidationContext = {
|
|
@@ -120,6 +123,10 @@ type SendErc20TransferTransactionRequest = {
|
|
|
120
123
|
kind: 'sendErc20TransferTransaction';
|
|
121
124
|
request: SignerTransactionRequest;
|
|
122
125
|
};
|
|
126
|
+
type SendPerpsDepositTransactionRequest = {
|
|
127
|
+
kind: 'sendPerpsDepositTransaction';
|
|
128
|
+
request: SignerTransactionRequest;
|
|
129
|
+
};
|
|
123
130
|
type SignGaslessTypedDataRequest = {
|
|
124
131
|
kind: 'signGaslessTypedData';
|
|
125
132
|
payload: TypedDataPayload;
|
|
@@ -152,7 +159,7 @@ declare const FetchExecuteParamsRequestSchema: z.ZodObject<{
|
|
|
152
159
|
type FetchExecuteParamsRequest = z.input<typeof FetchExecuteParamsRequestSchema>;
|
|
153
160
|
type FetchExecuteParamsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
154
161
|
declare const FetchExecuteParamsError: {
|
|
155
|
-
isError(error: unknown): error is
|
|
162
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
156
163
|
};
|
|
157
164
|
/**
|
|
158
165
|
* Fetches the parameters needed to prepare a low-level transaction submission.
|
|
@@ -175,7 +182,7 @@ declare const IsWalletDeployedRequestSchema: z.ZodObject<{
|
|
|
175
182
|
type IsWalletDeployedRequest = z.input<typeof IsWalletDeployedRequestSchema>;
|
|
176
183
|
type IsWalletDeployedError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
177
184
|
declare const IsWalletDeployedError: {
|
|
178
|
-
isError(error: unknown): error is
|
|
185
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
179
186
|
};
|
|
180
187
|
/**
|
|
181
188
|
* Checks whether a wallet is deployed for relayer-backed transactions.
|
|
@@ -200,7 +207,7 @@ declare function isWalletDeployed(client: BaseClient, request?: IsWalletDeployed
|
|
|
200
207
|
declare const GaslessTransactionMetadataSchema: z.ZodString;
|
|
201
208
|
type DeployDepositWalletError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
202
209
|
declare const DeployDepositWalletError: {
|
|
203
|
-
isError(error: unknown): error is
|
|
210
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
204
211
|
};
|
|
205
212
|
/**
|
|
206
213
|
* Deploys a Deposit Wallet for the authenticated signer.
|
|
@@ -243,7 +250,7 @@ type GaslessWorkflowRequest = RequestAddressRequest | SignGaslessMessageRequest
|
|
|
243
250
|
type GaslessWorkflow = AsyncGenerator<GaslessWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
|
|
244
251
|
type PrepareGaslessTransactionError = ExecuteGaslessError | FetchExecuteParamsError | UserInputError;
|
|
245
252
|
declare const PrepareGaslessTransactionError: {
|
|
246
|
-
isError(error: unknown): error is
|
|
253
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
247
254
|
};
|
|
248
255
|
/**
|
|
249
256
|
* Starts preparing a low-level transaction workflow from one or more calls.
|
|
@@ -258,7 +265,7 @@ declare function prepareGaslessTransaction(client: BaseSecureClient, request: Pr
|
|
|
258
265
|
type ExecuteGaslessError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
259
266
|
type WaitForGaslessTransactionError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | TimeoutError | TransactionFailedError;
|
|
260
267
|
declare const WaitForGaslessTransactionError: {
|
|
261
|
-
isError(error: unknown): error is
|
|
268
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError;
|
|
262
269
|
};
|
|
263
270
|
|
|
264
271
|
declare const PageSizeSchema: z.ZodNumber;
|
|
@@ -344,7 +351,7 @@ type FetchTradedMarketCountRequest = z.input<typeof FetchTradedMarketCountReques
|
|
|
344
351
|
type DownloadAccountingSnapshotRequest = z.input<typeof DownloadAccountingSnapshotRequestSchema>;
|
|
345
352
|
type ListPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
346
353
|
declare const ListPositionsError: {
|
|
347
|
-
isError(error: unknown): error is
|
|
354
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
348
355
|
};
|
|
349
356
|
/**
|
|
350
357
|
* Lists current positions for a wallet.
|
|
@@ -387,11 +394,11 @@ declare const ListPositionsError: {
|
|
|
387
394
|
declare function listPositions(client: BaseClient, request: ListPositionsRequest): Paginated<Position[]>;
|
|
388
395
|
type ListClosedPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
389
396
|
declare const ListClosedPositionsError: {
|
|
390
|
-
isError(error: unknown): error is
|
|
397
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
391
398
|
};
|
|
392
399
|
type ListComboPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
393
400
|
declare const ListComboPositionsError: {
|
|
394
|
-
isError(error: unknown): error is
|
|
401
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
395
402
|
};
|
|
396
403
|
/**
|
|
397
404
|
* Lists closed positions for a wallet.
|
|
@@ -469,7 +476,7 @@ declare function listClosedPositions(client: BaseClient, request: ListClosedPosi
|
|
|
469
476
|
declare function listComboPositions(client: BaseClient, request: ListComboPositionsRequest): Paginated<ComboPosition[]>;
|
|
470
477
|
type FetchPortfolioValueError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
471
478
|
declare const FetchPortfolioValueError: {
|
|
472
|
-
isError(error: unknown): error is
|
|
479
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
473
480
|
};
|
|
474
481
|
/**
|
|
475
482
|
* Fetches the total value for a wallet's positions.
|
|
@@ -492,7 +499,7 @@ declare const FetchPortfolioValueError: {
|
|
|
492
499
|
declare function fetchPortfolioValue(client: BaseClient, request: FetchPortfolioValueRequest): Promise<Value[]>;
|
|
493
500
|
type FetchTradedMarketCountError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
494
501
|
declare const FetchTradedMarketCountError: {
|
|
495
|
-
isError(error: unknown): error is
|
|
502
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
496
503
|
};
|
|
497
504
|
/**
|
|
498
505
|
* Fetches the total number of markets a wallet has traded.
|
|
@@ -515,7 +522,7 @@ declare const FetchTradedMarketCountError: {
|
|
|
515
522
|
declare function fetchTradedMarketCount(client: BaseClient, request: FetchTradedMarketCountRequest): Promise<Traded>;
|
|
516
523
|
type DownloadAccountingSnapshotError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
517
524
|
declare const DownloadAccountingSnapshotError: {
|
|
518
|
-
isError(error: unknown): error is
|
|
525
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
519
526
|
};
|
|
520
527
|
/**
|
|
521
528
|
* Downloads an accounting snapshot archive for a wallet.
|
|
@@ -1785,6 +1792,105 @@ type DiscoveryActions = {
|
|
|
1785
1792
|
declare function discoveryActions(client: BasePublicClient): DiscoveryActions;
|
|
1786
1793
|
declare function discoveryActions(client: BaseSecureClient): DiscoveryActions;
|
|
1787
1794
|
|
|
1795
|
+
type PublicPerpsActions = {
|
|
1796
|
+
/**
|
|
1797
|
+
* Fetches Perps instruments.
|
|
1798
|
+
*
|
|
1799
|
+
* @throws {@link FetchPerpsInstrumentsError}
|
|
1800
|
+
* Thrown on failure.
|
|
1801
|
+
*/
|
|
1802
|
+
fetchPerpsInstruments(request?: FetchPerpsInstrumentsRequest): Promise<PerpsInstrument[]>;
|
|
1803
|
+
/**
|
|
1804
|
+
* Fetches the current Perps ticker for an instrument.
|
|
1805
|
+
*
|
|
1806
|
+
* @throws {@link FetchPerpsTickerError}
|
|
1807
|
+
* Thrown on failure.
|
|
1808
|
+
*/
|
|
1809
|
+
fetchPerpsTicker(request: FetchPerpsTickerRequest): Promise<PerpsTicker>;
|
|
1810
|
+
/**
|
|
1811
|
+
* Fetches current Perps tickers.
|
|
1812
|
+
*
|
|
1813
|
+
* @throws {@link FetchPerpsTickersError}
|
|
1814
|
+
* Thrown on failure.
|
|
1815
|
+
*/
|
|
1816
|
+
fetchPerpsTickers(request?: FetchPerpsTickersRequest): Promise<PerpsTicker[]>;
|
|
1817
|
+
/**
|
|
1818
|
+
* Fetches a Perps order book.
|
|
1819
|
+
*
|
|
1820
|
+
* @throws {@link FetchPerpsBookError}
|
|
1821
|
+
* Thrown on failure.
|
|
1822
|
+
*/
|
|
1823
|
+
fetchPerpsBook(request: FetchPerpsBookRequest): Promise<PerpsBook>;
|
|
1824
|
+
/**
|
|
1825
|
+
* Lists Perps candles for an instrument with SDK-owned pagination.
|
|
1826
|
+
*
|
|
1827
|
+
* @throws {@link ListPerpsCandlesError}
|
|
1828
|
+
* Thrown on failure.
|
|
1829
|
+
*/
|
|
1830
|
+
listPerpsCandles(request: ListPerpsCandlesRequest): Paginated<PerpsCandle[]>;
|
|
1831
|
+
/**
|
|
1832
|
+
* Lists Perps funding-rate history for an instrument with SDK-owned pagination.
|
|
1833
|
+
*
|
|
1834
|
+
* @throws {@link ListPerpsFundingHistoryError}
|
|
1835
|
+
* Thrown on failure.
|
|
1836
|
+
*/
|
|
1837
|
+
listPerpsFundingHistory(request: ListPerpsFundingHistoryRequest): Paginated<PerpsFundingRate[]>;
|
|
1838
|
+
/**
|
|
1839
|
+
* Lists recent Perps trades for an instrument with SDK-owned pagination.
|
|
1840
|
+
*
|
|
1841
|
+
* @throws {@link ListPerpsTradesError}
|
|
1842
|
+
* Thrown on failure.
|
|
1843
|
+
*/
|
|
1844
|
+
listPerpsTrades(request: ListPerpsTradesRequest): Paginated<PerpsPublicTrade[]>;
|
|
1845
|
+
/**
|
|
1846
|
+
* Fetches the Perps fee schedule.
|
|
1847
|
+
*
|
|
1848
|
+
* @throws {@link FetchPerpsFeesError}
|
|
1849
|
+
* Thrown on failure.
|
|
1850
|
+
*/
|
|
1851
|
+
fetchPerpsFees(): Promise<PerpsFeeScheduleEntry[]>;
|
|
1852
|
+
};
|
|
1853
|
+
type SecurePerpsActions = PublicPerpsActions & {
|
|
1854
|
+
/**
|
|
1855
|
+
* Deposits collateral into Perps for the authenticated signer account.
|
|
1856
|
+
*
|
|
1857
|
+
* @throws {@link DepositToPerpsError}
|
|
1858
|
+
* Thrown on failure.
|
|
1859
|
+
*/
|
|
1860
|
+
depositToPerps(request: DepositToPerpsRequest): Promise<TransactionHandle>;
|
|
1861
|
+
/**
|
|
1862
|
+
* Opens a Perps account session.
|
|
1863
|
+
*
|
|
1864
|
+
* @remarks
|
|
1865
|
+
* Pass `expiresIn` to create new delegated Perps credentials, or pass existing
|
|
1866
|
+
* credentials to validate and resume a previous session.
|
|
1867
|
+
*
|
|
1868
|
+
* @throws {@link OpenPerpsSessionError}
|
|
1869
|
+
* Thrown on failure.
|
|
1870
|
+
*/
|
|
1871
|
+
openPerpsSession(request: OpenPerpsSessionRequest): Promise<PerpsSession>;
|
|
1872
|
+
/**
|
|
1873
|
+
* Revokes delegated Perps credentials by proxy address.
|
|
1874
|
+
*
|
|
1875
|
+
* @remarks
|
|
1876
|
+
* This can revoke credentials outside the currently open Perps session.
|
|
1877
|
+
*
|
|
1878
|
+
* @throws {@link RevokePerpsCredentialsError}
|
|
1879
|
+
* Thrown on failure.
|
|
1880
|
+
*/
|
|
1881
|
+
revokePerpsCredentials(request: RevokePerpsCredentialsRequest): Promise<void>;
|
|
1882
|
+
/**
|
|
1883
|
+
* Requests a Perps withdrawal to the authenticated wallet.
|
|
1884
|
+
*
|
|
1885
|
+
* @throws {@link WithdrawFromPerpsError}
|
|
1886
|
+
* Thrown on failure.
|
|
1887
|
+
*/
|
|
1888
|
+
withdrawFromPerps(request: WithdrawFromPerpsRequest): Promise<PerpsWithdrawalId>;
|
|
1889
|
+
};
|
|
1890
|
+
type PerpsActions = PublicPerpsActions;
|
|
1891
|
+
declare function perpsActions(client: BasePublicClient): PublicPerpsActions;
|
|
1892
|
+
declare function perpsActions(client: BaseSecureClient): SecurePerpsActions;
|
|
1893
|
+
|
|
1788
1894
|
type PublicRewardsActions = {
|
|
1789
1895
|
/**
|
|
1790
1896
|
* Lists current active market rewards.
|
|
@@ -2023,6 +2129,8 @@ type RfqQuoteResponse = {
|
|
|
2023
2129
|
type RfqQuoteRejectedErrorOptions = {
|
|
2024
2130
|
/** RFQ error code for the rejected quote. */
|
|
2025
2131
|
code?: RfqErrorCode;
|
|
2132
|
+
/** Error identifier for the rejected quote. */
|
|
2133
|
+
errorId?: string;
|
|
2026
2134
|
/** RFQ identifier for the rejected quote. */
|
|
2027
2135
|
rfqId: RfqId;
|
|
2028
2136
|
};
|
|
@@ -2032,16 +2140,19 @@ type RfqQuoteRejectedErrorOptions = {
|
|
|
2032
2140
|
declare class RfqQuoteRejectedError extends PolymarketError {
|
|
2033
2141
|
name: "RfqQuoteRejectedError";
|
|
2034
2142
|
readonly code: RfqErrorCode | undefined;
|
|
2143
|
+
readonly errorId: string | undefined;
|
|
2035
2144
|
readonly rfqId: RfqId;
|
|
2036
2145
|
constructor(message: string, options: ErrorOptions & RfqQuoteRejectedErrorOptions);
|
|
2037
2146
|
}
|
|
2038
2147
|
type RfqQuoteError = RfqQuoteRejectedError | SigningError | TimeoutError | TransportError | UserInputError;
|
|
2039
2148
|
declare const RfqQuoteError: {
|
|
2040
|
-
isError(error: unknown): error is
|
|
2149
|
+
isError(error: unknown): error is UserInputError | TransportError | TimeoutError | SigningError | RfqQuoteRejectedError;
|
|
2041
2150
|
};
|
|
2042
2151
|
type RfqCancelQuoteRejectedErrorOptions = {
|
|
2043
2152
|
/** RFQ error code for the rejected cancellation request. */
|
|
2044
2153
|
code?: RfqErrorCode;
|
|
2154
|
+
/** Error identifier for the rejected cancellation request. */
|
|
2155
|
+
errorId?: string;
|
|
2045
2156
|
/** RFQ identifier for the cancellation request. */
|
|
2046
2157
|
rfqId: RfqId;
|
|
2047
2158
|
/** Quote identifier for the cancellation request. */
|
|
@@ -2053,6 +2164,7 @@ type RfqCancelQuoteRejectedErrorOptions = {
|
|
|
2053
2164
|
declare class RfqCancelQuoteRejectedError extends PolymarketError {
|
|
2054
2165
|
name: "RfqCancelQuoteRejectedError";
|
|
2055
2166
|
readonly code: RfqErrorCode | undefined;
|
|
2167
|
+
readonly errorId: string | undefined;
|
|
2056
2168
|
readonly rfqId: RfqId;
|
|
2057
2169
|
readonly quoteId: RfqQuoteId;
|
|
2058
2170
|
constructor(message: string, options: ErrorOptions & RfqCancelQuoteRejectedErrorOptions);
|
|
@@ -2064,6 +2176,8 @@ declare const RfqCancelQuoteError: {
|
|
|
2064
2176
|
type RfqConfirmationRejectedErrorOptions = {
|
|
2065
2177
|
/** RFQ error code for the rejected confirmation decision. */
|
|
2066
2178
|
code?: RfqErrorCode;
|
|
2179
|
+
/** Error identifier for the rejected confirmation decision. */
|
|
2180
|
+
errorId?: string;
|
|
2067
2181
|
/** RFQ identifier for the rejected confirmation decision. */
|
|
2068
2182
|
rfqId: RfqId;
|
|
2069
2183
|
/** Quote identifier for the rejected confirmation decision. */
|
|
@@ -2075,6 +2189,7 @@ type RfqConfirmationRejectedErrorOptions = {
|
|
|
2075
2189
|
declare class RfqConfirmationRejectedError extends PolymarketError {
|
|
2076
2190
|
name: "RfqConfirmationRejectedError";
|
|
2077
2191
|
readonly code: RfqErrorCode | undefined;
|
|
2192
|
+
readonly errorId: string | undefined;
|
|
2078
2193
|
readonly rfqId: RfqId;
|
|
2079
2194
|
readonly quoteId: RfqQuoteId;
|
|
2080
2195
|
constructor(message: string, options: ErrorOptions & RfqConfirmationRejectedErrorOptions);
|
|
@@ -2151,10 +2266,15 @@ interface RfqConfirmationRequestEvent extends RfqConfirmationRequest {
|
|
|
2151
2266
|
*/
|
|
2152
2267
|
interface RfqExecutionUpdateEvent extends RfqExecutionUpdate {
|
|
2153
2268
|
}
|
|
2269
|
+
/**
|
|
2270
|
+
* Confirmed combo trade broadcast visible to all authenticated quoters.
|
|
2271
|
+
*/
|
|
2272
|
+
interface RfqTradeEvent extends RfqTrade {
|
|
2273
|
+
}
|
|
2154
2274
|
/**
|
|
2155
2275
|
* Event emitted by an RFQ session.
|
|
2156
2276
|
*/
|
|
2157
|
-
type RfqEvent = RfqQuoteRequestEvent | RfqConfirmationRequestEvent | RfqExecutionUpdateEvent;
|
|
2277
|
+
type RfqEvent = RfqQuoteRequestEvent | RfqConfirmationRequestEvent | RfqExecutionUpdateEvent | RfqTradeEvent;
|
|
2158
2278
|
interface RfqSession extends AsyncIterable<RfqEvent> {
|
|
2159
2279
|
/**
|
|
2160
2280
|
* Requests cancellation of a submitted RFQ quote.
|
|
@@ -2384,7 +2504,7 @@ declare const CancelMarketOrdersRequestSchema: z.ZodObject<{
|
|
|
2384
2504
|
type CancelOrderRequest = z.input<typeof CancelOrderRequestSchema>;
|
|
2385
2505
|
type CancelOrderError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2386
2506
|
declare const CancelOrderError: {
|
|
2387
|
-
isError(error: unknown): error is
|
|
2507
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
2388
2508
|
};
|
|
2389
2509
|
/**
|
|
2390
2510
|
* Cancels a single open order for the authenticated account.
|
|
@@ -2408,7 +2528,7 @@ declare function cancelOrder(client: BaseSecureClient, request: CancelOrderReque
|
|
|
2408
2528
|
type CancelOrdersRequest = z.input<typeof CancelOrdersRequestSchema>;
|
|
2409
2529
|
type CancelOrdersError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2410
2530
|
declare const CancelOrdersError: {
|
|
2411
|
-
isError(error: unknown): error is
|
|
2531
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
2412
2532
|
};
|
|
2413
2533
|
/**
|
|
2414
2534
|
* Cancels multiple open orders for the authenticated account.
|
|
@@ -2431,7 +2551,7 @@ declare const CancelOrdersError: {
|
|
|
2431
2551
|
declare function cancelOrders(client: BaseSecureClient, request: CancelOrdersRequest): Promise<CancelOrdersResponse>;
|
|
2432
2552
|
type CancelAllError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError;
|
|
2433
2553
|
declare const CancelAllError: {
|
|
2434
|
-
isError(error: unknown): error is
|
|
2554
|
+
isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
2435
2555
|
};
|
|
2436
2556
|
/**
|
|
2437
2557
|
* Cancels all open orders for the authenticated account.
|
|
@@ -2453,7 +2573,7 @@ declare function cancelAll(client: BaseSecureClient): Promise<CancelOrdersRespon
|
|
|
2453
2573
|
type CancelMarketOrdersRequest = z.input<typeof CancelMarketOrdersRequestSchema>;
|
|
2454
2574
|
type CancelMarketOrdersError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2455
2575
|
declare const CancelMarketOrdersError: {
|
|
2456
|
-
isError(error: unknown): error is
|
|
2576
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
2457
2577
|
};
|
|
2458
2578
|
/**
|
|
2459
2579
|
* Cancels all open orders for the authenticated account that match the market
|
|
@@ -2507,7 +2627,7 @@ type EstimateMarketSellPriceRequest = {
|
|
|
2507
2627
|
type EstimateMarketPriceRequest = EstimateMarketBuyPriceRequest | EstimateMarketSellPriceRequest;
|
|
2508
2628
|
type EstimateMarketPriceError = InsufficientLiquidityError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2509
2629
|
declare const EstimateMarketPriceError: {
|
|
2510
|
-
isError(error: unknown): error is
|
|
2630
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | InsufficientLiquidityError;
|
|
2511
2631
|
};
|
|
2512
2632
|
/**
|
|
2513
2633
|
* Estimates the price level a market order would cross at current book depth.
|
|
@@ -2685,11 +2805,11 @@ declare const PostOrdersRequestSchema: z.ZodArray<z.ZodCustom<SignedOrder, Signe
|
|
|
2685
2805
|
type PostOrdersRequest = z.input<typeof PostOrdersRequestSchema>;
|
|
2686
2806
|
type PostOrderError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
|
|
2687
2807
|
declare const PostOrderError: {
|
|
2688
|
-
isError(error: unknown): error is
|
|
2808
|
+
isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
2689
2809
|
};
|
|
2690
2810
|
type PostOrdersError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2691
2811
|
declare const PostOrdersError: {
|
|
2692
|
-
isError(error: unknown): error is
|
|
2812
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
2693
2813
|
};
|
|
2694
2814
|
/**
|
|
2695
2815
|
* Posts a signed order for the authenticated account.
|
|
@@ -3037,7 +3157,7 @@ type SecureWalletActions = {
|
|
|
3037
3157
|
* const handle = await client.transferErc20({
|
|
3038
3158
|
* amount: 1n,
|
|
3039
3159
|
* recipientAddress: client.account.signer,
|
|
3040
|
-
* tokenAddress: client.environment.collateralToken,
|
|
3160
|
+
* tokenAddress: client.environment.contracts.collateralToken,
|
|
3041
3161
|
* });
|
|
3042
3162
|
*
|
|
3043
3163
|
* const outcome = await handle.wait();
|
|
@@ -3155,8 +3275,8 @@ type SecureWalletActions = {
|
|
|
3155
3275
|
};
|
|
3156
3276
|
declare function walletActions(client: BaseSecureClient): SecureWalletActions;
|
|
3157
3277
|
|
|
3158
|
-
type PublicActions = Prettify<DiscoveryActions & DataActions & AnalyticsActions & PublicAccountActions & PublicRewardsActions & PublicSubscriptionsActions>;
|
|
3159
|
-
type SecureActions = Prettify<DiscoveryActions & DataActions & AnalyticsActions & SecureAccountActions & SecureRewardsActions & SecureRfqActions & SecureSubscriptionsActions & SecureWalletActions & SecureTradingActions>;
|
|
3278
|
+
type PublicActions = Prettify<DiscoveryActions & DataActions & AnalyticsActions & PublicPerpsActions & PublicAccountActions & PublicRewardsActions & PublicSubscriptionsActions>;
|
|
3279
|
+
type SecureActions = Prettify<DiscoveryActions & DataActions & AnalyticsActions & SecurePerpsActions & SecureAccountActions & SecureRewardsActions & SecureRfqActions & SecureSubscriptionsActions & SecureWalletActions & SecureTradingActions>;
|
|
3160
3280
|
declare function allActions(client: BasePublicClient): PublicActions;
|
|
3161
3281
|
declare function allActions(client: BaseSecureClient): SecureActions;
|
|
3162
3282
|
|
|
@@ -3169,17 +3289,76 @@ type WalletDerivationConfig = {
|
|
|
3169
3289
|
safeFactory: EvmAddress;
|
|
3170
3290
|
safeInitCodeHash: Hex.Hex;
|
|
3171
3291
|
};
|
|
3292
|
+
type RestEndpoint = {
|
|
3293
|
+
rest: string;
|
|
3294
|
+
headers?: Record<string, string>;
|
|
3295
|
+
};
|
|
3296
|
+
type WebSocketEndpoint = {
|
|
3297
|
+
ws: string;
|
|
3298
|
+
headers?: Record<string, string>;
|
|
3299
|
+
};
|
|
3300
|
+
type ClobEndpoints = RestEndpoint & {
|
|
3301
|
+
market: WebSocketEndpoint;
|
|
3302
|
+
user: WebSocketEndpoint;
|
|
3303
|
+
};
|
|
3304
|
+
type RfqEndpoints = RestEndpoint & WebSocketEndpoint;
|
|
3305
|
+
type PerpsEndpoints = RestEndpoint & WebSocketEndpoint;
|
|
3306
|
+
type EnvironmentContracts = {
|
|
3307
|
+
collateralToken: EvmAddress;
|
|
3308
|
+
conditionalTokens: EvmAddress;
|
|
3309
|
+
negRiskAdapter: EvmAddress;
|
|
3310
|
+
collateralAdapter: EvmAddress;
|
|
3311
|
+
negRiskCollateralAdapter: EvmAddress;
|
|
3312
|
+
standardExchange: EvmAddress;
|
|
3313
|
+
negRiskExchange: EvmAddress;
|
|
3314
|
+
exchangeV3: EvmAddress;
|
|
3315
|
+
protocolV2Router: EvmAddress;
|
|
3316
|
+
combinatorialModule: EvmAddress;
|
|
3317
|
+
positionManager: EvmAddress;
|
|
3318
|
+
autoRedeemOperator: EvmAddress;
|
|
3319
|
+
safeMultisend: EvmAddress;
|
|
3320
|
+
relayHub: EvmAddress;
|
|
3321
|
+
perpsDepositContract: EvmAddress;
|
|
3322
|
+
};
|
|
3172
3323
|
type EnvironmentConfig = {
|
|
3173
3324
|
name: string;
|
|
3174
3325
|
chainId: number;
|
|
3175
3326
|
};
|
|
3327
|
+
type EnvironmentConfigForkEndpoint = Partial<RestEndpoint & WebSocketEndpoint>;
|
|
3328
|
+
type EnvironmentConfigFork = {
|
|
3329
|
+
name: string;
|
|
3330
|
+
chainId?: number;
|
|
3331
|
+
rpc?: string;
|
|
3332
|
+
walletDerivation?: Partial<WalletDerivationConfig>;
|
|
3333
|
+
contracts?: Partial<EnvironmentContracts>;
|
|
3334
|
+
clob?: Partial<RestEndpoint> & {
|
|
3335
|
+
market?: Partial<WebSocketEndpoint>;
|
|
3336
|
+
user?: Partial<WebSocketEndpoint>;
|
|
3337
|
+
};
|
|
3338
|
+
relayer?: Partial<RestEndpoint>;
|
|
3339
|
+
gamma?: Partial<RestEndpoint>;
|
|
3340
|
+
data?: Partial<RestEndpoint>;
|
|
3341
|
+
rfq?: EnvironmentConfigForkEndpoint;
|
|
3342
|
+
perps?: EnvironmentConfigForkEndpoint;
|
|
3343
|
+
rtds?: Partial<WebSocketEndpoint>;
|
|
3344
|
+
sports?: Partial<WebSocketEndpoint>;
|
|
3345
|
+
relayerMaxPolls?: number;
|
|
3346
|
+
relayerPollFrequencyMs?: number;
|
|
3347
|
+
};
|
|
3176
3348
|
/**
|
|
3177
3349
|
* The production environment configuration.
|
|
3178
3350
|
*/
|
|
3179
3351
|
declare const production: EnvironmentConfig;
|
|
3352
|
+
/**
|
|
3353
|
+
* Forks an environment config from production unless a different base is passed.
|
|
3354
|
+
*
|
|
3355
|
+
* @experimental This helper is intended for advanced custom environment use,
|
|
3356
|
+
* not general SDK usage. Its signature may change without notice.
|
|
3357
|
+
*/
|
|
3358
|
+
declare function forkEnvironmentConfig(fork: EnvironmentConfigFork, base?: EnvironmentConfig): EnvironmentConfig;
|
|
3180
3359
|
|
|
3181
3360
|
type ServiceRequest = {
|
|
3182
|
-
method: 'DELETE' | 'GET' | 'POST';
|
|
3361
|
+
method: 'DELETE' | 'GET' | 'PATCH' | 'POST';
|
|
3183
3362
|
path: string;
|
|
3184
3363
|
body?: string;
|
|
3185
3364
|
headers?: HeadersInit;
|
|
@@ -3428,7 +3607,7 @@ type SecureClientOptions = PublicClientOptions & {
|
|
|
3428
3607
|
declare function createPublicClient(options?: PublicClientOptions): PublicClient<PublicActions, SecureActions>;
|
|
3429
3608
|
type CreateSecureClientError = CancelledSigningError | DeployDepositWalletError | IsWalletDeployedError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError | WaitForGaslessTransactionError;
|
|
3430
3609
|
declare const CreateSecureClientError: {
|
|
3431
|
-
isError(error: unknown): error is
|
|
3610
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
3432
3611
|
};
|
|
3433
3612
|
type SetupGaslessWalletError = UserInputError;
|
|
3434
3613
|
declare const SetupGaslessWalletError: {
|
|
@@ -3451,7 +3630,7 @@ declare function createSecureClient(options: SecureClientOptions): Promise<Secur
|
|
|
3451
3630
|
|
|
3452
3631
|
type FetchClosedOnlyModeError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
|
|
3453
3632
|
declare const FetchClosedOnlyModeError: {
|
|
3454
|
-
isError(error: unknown): error is
|
|
3633
|
+
isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3455
3634
|
};
|
|
3456
3635
|
/**
|
|
3457
3636
|
* Fetches whether the account is restricted to closed-only trading.
|
|
@@ -3476,7 +3655,7 @@ declare const ListOpenOrdersRequestSchema: z.ZodDefault<z.ZodObject<{
|
|
|
3476
3655
|
type ListOpenOrdersRequest = z.input<typeof ListOpenOrdersRequestSchema>;
|
|
3477
3656
|
type ListOpenOrdersError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3478
3657
|
declare const ListOpenOrdersError: {
|
|
3479
|
-
isError(error: unknown): error is
|
|
3658
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3480
3659
|
};
|
|
3481
3660
|
/**
|
|
3482
3661
|
* Lists open orders for the authenticated account across all pages.
|
|
@@ -3520,7 +3699,7 @@ declare const FetchOrderRequestSchema: z.ZodObject<{
|
|
|
3520
3699
|
type FetchOrderRequest = z.input<typeof FetchOrderRequestSchema>;
|
|
3521
3700
|
type FetchOrderError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3522
3701
|
declare const FetchOrderError: {
|
|
3523
|
-
isError(error: unknown): error is
|
|
3702
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3524
3703
|
};
|
|
3525
3704
|
/**
|
|
3526
3705
|
* Fetches a single order for the authenticated account.
|
|
@@ -3550,7 +3729,7 @@ declare const ListAccountTradesRequestSchema: z.ZodDefault<z.ZodObject<{
|
|
|
3550
3729
|
type ListAccountTradesRequest = z.input<typeof ListAccountTradesRequestSchema>;
|
|
3551
3730
|
type ListAccountTradesError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3552
3731
|
declare const ListAccountTradesError: {
|
|
3553
|
-
isError(error: unknown): error is
|
|
3732
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3554
3733
|
};
|
|
3555
3734
|
/**
|
|
3556
3735
|
* Lists trades for the authenticated account across all pages.
|
|
@@ -3590,7 +3769,7 @@ declare const ListAccountTradesError: {
|
|
|
3590
3769
|
declare function listAccountTrades(client: BaseSecureClient, request?: ListAccountTradesRequest): Paginated<ClobTrade[]>;
|
|
3591
3770
|
type FetchNotificationsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
|
|
3592
3771
|
declare const FetchNotificationsError: {
|
|
3593
|
-
isError(error: unknown): error is
|
|
3772
|
+
isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3594
3773
|
};
|
|
3595
3774
|
declare const DropNotificationsRequestSchema: z.ZodObject<{
|
|
3596
3775
|
ids: z.ZodArray<z.ZodString>;
|
|
@@ -3612,7 +3791,7 @@ type DropNotificationsRequest = z.input<typeof DropNotificationsRequestSchema>;
|
|
|
3612
3791
|
declare function fetchNotifications(client: BaseSecureClient): Promise<NotificationsResponse>;
|
|
3613
3792
|
type DropNotificationsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3614
3793
|
declare const DropNotificationsError: {
|
|
3615
|
-
isError(error: unknown): error is
|
|
3794
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3616
3795
|
};
|
|
3617
3796
|
/**
|
|
3618
3797
|
* Drops notifications for the authenticated account.
|
|
@@ -3638,7 +3817,7 @@ declare const FetchBalanceAllowanceRequestSchema: z.ZodObject<{
|
|
|
3638
3817
|
type FetchBalanceAllowanceRequest = z.input<typeof FetchBalanceAllowanceRequestSchema>;
|
|
3639
3818
|
type FetchBalanceAllowanceError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3640
3819
|
declare const FetchBalanceAllowanceError: {
|
|
3641
|
-
isError(error: unknown): error is
|
|
3820
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3642
3821
|
};
|
|
3643
3822
|
/**
|
|
3644
3823
|
* Fetches balance and allowance for the authenticated account.
|
|
@@ -3664,7 +3843,7 @@ declare const UpdateBalanceAllowanceRequestSchema: z.ZodObject<{
|
|
|
3664
3843
|
type UpdateBalanceAllowanceRequest = z.input<typeof UpdateBalanceAllowanceRequestSchema>;
|
|
3665
3844
|
type UpdateBalanceAllowanceError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3666
3845
|
declare const UpdateBalanceAllowanceError: {
|
|
3667
|
-
isError(error: unknown): error is
|
|
3846
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3668
3847
|
};
|
|
3669
3848
|
/**
|
|
3670
3849
|
* Refreshes balance and allowance for the authenticated account.
|
|
@@ -3689,7 +3868,7 @@ declare const FetchOrderScoringRequestSchema: z.ZodObject<{
|
|
|
3689
3868
|
type FetchOrderScoringRequest = z.input<typeof FetchOrderScoringRequestSchema>;
|
|
3690
3869
|
type FetchOrderScoringError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3691
3870
|
declare const FetchOrderScoringError: {
|
|
3692
|
-
isError(error: unknown): error is
|
|
3871
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3693
3872
|
};
|
|
3694
3873
|
/**
|
|
3695
3874
|
* Fetches whether a single order is currently scoring.
|
|
@@ -3713,7 +3892,7 @@ declare const FetchOrdersScoringRequestSchema: z.ZodObject<{
|
|
|
3713
3892
|
type FetchOrdersScoringRequest = z.input<typeof FetchOrdersScoringRequestSchema>;
|
|
3714
3893
|
type FetchOrdersScoringError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3715
3894
|
declare const FetchOrdersScoringError: {
|
|
3716
|
-
isError(error: unknown): error is
|
|
3895
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3717
3896
|
};
|
|
3718
3897
|
/**
|
|
3719
3898
|
* Fetches scoring state for multiple orders.
|
|
@@ -3738,7 +3917,7 @@ declare const ListUserEarningsForDayRequestSchema: z.ZodObject<{
|
|
|
3738
3917
|
type ListUserEarningsForDayRequest = z.input<typeof ListUserEarningsForDayRequestSchema>;
|
|
3739
3918
|
type ListUserEarningsForDayError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3740
3919
|
declare const ListUserEarningsForDayError: {
|
|
3741
|
-
isError(error: unknown): error is
|
|
3920
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3742
3921
|
};
|
|
3743
3922
|
/**
|
|
3744
3923
|
* Lists per-market earnings for the authenticated account on a given day.
|
|
@@ -3779,7 +3958,7 @@ declare function listUserEarningsForDay(client: BaseSecureClient, request: ListU
|
|
|
3779
3958
|
type FetchTotalEarningsForUserForDayRequest = z.input<typeof ListUserEarningsForDayRequestSchema>;
|
|
3780
3959
|
type FetchTotalEarningsForUserForDayError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3781
3960
|
declare const FetchTotalEarningsForUserForDayError: {
|
|
3782
|
-
isError(error: unknown): error is
|
|
3961
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3783
3962
|
};
|
|
3784
3963
|
/**
|
|
3785
3964
|
* Fetches total earnings for the authenticated account on a given day.
|
|
@@ -3808,7 +3987,7 @@ declare const ListUserEarningsAndMarketsConfigRequestSchema: z.ZodObject<{
|
|
|
3808
3987
|
type ListUserEarningsAndMarketsConfigRequest = z.input<typeof ListUserEarningsAndMarketsConfigRequestSchema>;
|
|
3809
3988
|
type ListUserEarningsAndMarketsConfigError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3810
3989
|
declare const ListUserEarningsAndMarketsConfigError: {
|
|
3811
|
-
isError(error: unknown): error is
|
|
3990
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3812
3991
|
};
|
|
3813
3992
|
/**
|
|
3814
3993
|
* Lists market reward configuration and earnings for the authenticated account on a given day.
|
|
@@ -3848,7 +4027,7 @@ declare const ListUserEarningsAndMarketsConfigError: {
|
|
|
3848
4027
|
declare function listUserEarningsAndMarketsConfig(client: BaseSecureClient, request: ListUserEarningsAndMarketsConfigRequest): Paginated<UserRewardsEarning[]>;
|
|
3849
4028
|
type FetchRewardPercentagesError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
|
|
3850
4029
|
declare const FetchRewardPercentagesError: {
|
|
3851
|
-
isError(error: unknown): error is
|
|
4030
|
+
isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3852
4031
|
};
|
|
3853
4032
|
/**
|
|
3854
4033
|
* Fetches reward percentages for the authenticated account.
|
|
@@ -3909,7 +4088,7 @@ type ListTradesRequest = z.input<typeof ListTradesRequestSchema>;
|
|
|
3909
4088
|
type ListActivityRequest = z.input<typeof ListActivityRequestSchema>;
|
|
3910
4089
|
type ListTradesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3911
4090
|
declare const ListTradesError: {
|
|
3912
|
-
isError(error: unknown): error is
|
|
4091
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
3913
4092
|
};
|
|
3914
4093
|
/**
|
|
3915
4094
|
* Lists trades for a wallet, market, or event.
|
|
@@ -3952,7 +4131,7 @@ declare const ListTradesError: {
|
|
|
3952
4131
|
declare function listTrades(client: BaseClient, request?: ListTradesRequest): Paginated<Trade[]>;
|
|
3953
4132
|
type ListActivityError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3954
4133
|
declare const ListActivityError: {
|
|
3955
|
-
isError(error: unknown): error is
|
|
4134
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
3956
4135
|
};
|
|
3957
4136
|
/**
|
|
3958
4137
|
* Lists wallet activity.
|
|
@@ -4028,7 +4207,7 @@ declare const PrepareErc20ApprovalError: {
|
|
|
4028
4207
|
declare function prepareErc20Approval(client: BaseSecureClient, request: PrepareErc20ApprovalRequest): Promise<Erc20ApprovalWorkflow>;
|
|
4029
4208
|
type ApproveErc20Error = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
|
|
4030
4209
|
declare const ApproveErc20Error: {
|
|
4031
|
-
isError(error: unknown): error is
|
|
4210
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
|
|
4032
4211
|
};
|
|
4033
4212
|
/**
|
|
4034
4213
|
* Approves ERC-20 token spending for the authenticated account.
|
|
@@ -4073,7 +4252,7 @@ declare const PrepareErc1155ApprovalForAllError: {
|
|
|
4073
4252
|
declare function prepareErc1155ApprovalForAll(client: BaseSecureClient, request: PrepareErc1155ApprovalForAllRequest): Promise<Erc1155ApprovalForAllWorkflow>;
|
|
4074
4253
|
type ApproveErc1155ForAllError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
|
|
4075
4254
|
declare const ApproveErc1155ForAllError: {
|
|
4076
|
-
isError(error: unknown): error is
|
|
4255
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
|
|
4077
4256
|
};
|
|
4078
4257
|
/**
|
|
4079
4258
|
* Approves or revokes ERC-1155 operator access for the authenticated account.
|
|
@@ -4089,7 +4268,7 @@ type TradingApprovalsWorkflowRequest = GaslessWorkflowRequest | SendErc20Approva
|
|
|
4089
4268
|
type TradingApprovalsWorkflow = AsyncGenerator<TradingApprovalsWorkflowRequest, void, EvmAddress$1 | EvmSignature | TransactionHandle>;
|
|
4090
4269
|
type PrepareTradingApprovalsError = RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4091
4270
|
declare const PrepareTradingApprovalsError: {
|
|
4092
|
-
isError(error: unknown): error is
|
|
4271
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError;
|
|
4093
4272
|
};
|
|
4094
4273
|
/**
|
|
4095
4274
|
* Starts a trading-setup approval workflow.
|
|
@@ -4108,7 +4287,7 @@ declare const PrepareTradingApprovalsError: {
|
|
|
4108
4287
|
declare function prepareTradingApprovals(client: BaseSecureClient): Promise<TradingApprovalsWorkflow>;
|
|
4109
4288
|
type SetupTradingApprovalsError = PrepareTradingApprovalsError | CancelledSigningError | SigningError | WaitForGaslessTransactionError;
|
|
4110
4289
|
declare const SetupTradingApprovalsError: {
|
|
4111
|
-
isError(error: unknown): error is
|
|
4290
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
4112
4291
|
};
|
|
4113
4292
|
type DeprecatedTransactionHandle = Omit<TransactionHandle, 'wait'> & {
|
|
4114
4293
|
/**
|
|
@@ -4140,7 +4319,7 @@ declare const ListBuilderTradesRequestSchema: z.ZodObject<{
|
|
|
4140
4319
|
type ListBuilderTradesRequest = z.input<typeof ListBuilderTradesRequestSchema>;
|
|
4141
4320
|
type ListBuilderTradesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4142
4321
|
declare const ListBuilderTradesError: {
|
|
4143
|
-
isError(error: unknown): error is
|
|
4322
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4144
4323
|
};
|
|
4145
4324
|
/**
|
|
4146
4325
|
* Lists builder-attributed trades.
|
|
@@ -4182,7 +4361,7 @@ declare const FetchMidpointRequestSchema: z.ZodObject<{
|
|
|
4182
4361
|
type FetchMidpointRequest = z.input<typeof FetchMidpointRequestSchema>;
|
|
4183
4362
|
type FetchMidpointError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4184
4363
|
declare const FetchMidpointError: {
|
|
4185
|
-
isError(error: unknown): error is
|
|
4364
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4186
4365
|
};
|
|
4187
4366
|
/**
|
|
4188
4367
|
* Fetches the midpoint price for a token.
|
|
@@ -4211,7 +4390,7 @@ declare const FetchMidpointsRequestSchema: z.ZodArray<z.ZodObject<{
|
|
|
4211
4390
|
type FetchMidpointsRequest = z.input<typeof FetchMidpointsRequestSchema>;
|
|
4212
4391
|
type FetchMidpointsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4213
4392
|
declare const FetchMidpointsError: {
|
|
4214
|
-
isError(error: unknown): error is
|
|
4393
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4215
4394
|
};
|
|
4216
4395
|
/**
|
|
4217
4396
|
* Fetches midpoint prices for multiple tokens.
|
|
@@ -4242,7 +4421,7 @@ declare const FetchTickSizeRequestSchema: z.ZodObject<{
|
|
|
4242
4421
|
type FetchTickSizeRequest = z.input<typeof FetchTickSizeRequestSchema>;
|
|
4243
4422
|
type FetchTickSizeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4244
4423
|
declare const FetchTickSizeError: {
|
|
4245
|
-
isError(error: unknown): error is
|
|
4424
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4246
4425
|
};
|
|
4247
4426
|
/**
|
|
4248
4427
|
* Fetches the minimum price tick size for a token's order book.
|
|
@@ -4270,7 +4449,7 @@ declare const FetchNegRiskRequestSchema: z.ZodObject<{
|
|
|
4270
4449
|
type FetchNegRiskRequest = z.input<typeof FetchNegRiskRequestSchema>;
|
|
4271
4450
|
type FetchNegRiskError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4272
4451
|
declare const FetchNegRiskError: {
|
|
4273
|
-
isError(error: unknown): error is
|
|
4452
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4274
4453
|
};
|
|
4275
4454
|
/**
|
|
4276
4455
|
* Fetches whether a token is in a negative-risk market.
|
|
@@ -4298,7 +4477,7 @@ declare const ResolveConditionByTokenRequestSchema: z.ZodObject<{
|
|
|
4298
4477
|
type ResolveConditionByTokenRequest = z.input<typeof ResolveConditionByTokenRequestSchema>;
|
|
4299
4478
|
type ResolveConditionByTokenError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4300
4479
|
declare const ResolveConditionByTokenError: {
|
|
4301
|
-
isError(error: unknown): error is
|
|
4480
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4302
4481
|
};
|
|
4303
4482
|
/**
|
|
4304
4483
|
* Resolves the condition ID for a token.
|
|
@@ -4316,7 +4495,7 @@ declare const FetchMarketInfoRequestSchema: z.ZodObject<{
|
|
|
4316
4495
|
type FetchMarketInfoRequest = z.input<typeof FetchMarketInfoRequestSchema>;
|
|
4317
4496
|
type FetchMarketInfoError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4318
4497
|
declare const FetchMarketInfoError: {
|
|
4319
|
-
isError(error: unknown): error is
|
|
4498
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4320
4499
|
};
|
|
4321
4500
|
/**
|
|
4322
4501
|
* Fetches market-level metadata for a condition.
|
|
@@ -4334,7 +4513,7 @@ declare const FetchBuilderFeeRatesRequestSchema: z.ZodObject<{
|
|
|
4334
4513
|
type FetchBuilderFeeRatesRequest = z.input<typeof FetchBuilderFeeRatesRequestSchema>;
|
|
4335
4514
|
type FetchBuilderFeeRatesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4336
4515
|
declare const FetchBuilderFeeRatesError: {
|
|
4337
|
-
isError(error: unknown): error is
|
|
4516
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4338
4517
|
};
|
|
4339
4518
|
/**
|
|
4340
4519
|
* Fetches builder maker and taker fee rates.
|
|
@@ -4353,7 +4532,7 @@ declare const FetchPriceRequestSchema: z.ZodObject<{
|
|
|
4353
4532
|
type FetchPriceRequest = z.input<typeof FetchPriceRequestSchema>;
|
|
4354
4533
|
type FetchPriceError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4355
4534
|
declare const FetchPriceError: {
|
|
4356
|
-
isError(error: unknown): error is
|
|
4535
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4357
4536
|
};
|
|
4358
4537
|
/**
|
|
4359
4538
|
* Fetches the current quoted price for a token and side.
|
|
@@ -4384,7 +4563,7 @@ declare const FetchPricesRequestSchema: z.ZodArray<z.ZodObject<{
|
|
|
4384
4563
|
type FetchPricesRequest = z.input<typeof FetchPricesRequestSchema>;
|
|
4385
4564
|
type FetchPricesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4386
4565
|
declare const FetchPricesError: {
|
|
4387
|
-
isError(error: unknown): error is
|
|
4566
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4388
4567
|
};
|
|
4389
4568
|
/**
|
|
4390
4569
|
* Fetches quoted prices for multiple tokens.
|
|
@@ -4416,7 +4595,7 @@ declare const FetchOrderBookRequestSchema: z.ZodObject<{
|
|
|
4416
4595
|
type FetchOrderBookRequest = z.input<typeof FetchOrderBookRequestSchema>;
|
|
4417
4596
|
type FetchOrderBookError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4418
4597
|
declare const FetchOrderBookError: {
|
|
4419
|
-
isError(error: unknown): error is
|
|
4598
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4420
4599
|
};
|
|
4421
4600
|
/**
|
|
4422
4601
|
* Fetches the current order book for a token.
|
|
@@ -4444,7 +4623,7 @@ declare const FetchOrderBooksRequestSchema: z.ZodArray<z.ZodObject<{
|
|
|
4444
4623
|
type FetchOrderBooksRequest = z.input<typeof FetchOrderBooksRequestSchema>;
|
|
4445
4624
|
type FetchOrderBooksError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4446
4625
|
declare const FetchOrderBooksError: {
|
|
4447
|
-
isError(error: unknown): error is
|
|
4626
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4448
4627
|
};
|
|
4449
4628
|
/**
|
|
4450
4629
|
* Fetches order books for multiple tokens.
|
|
@@ -4474,7 +4653,7 @@ declare const FetchSpreadRequestSchema: z.ZodObject<{
|
|
|
4474
4653
|
type FetchSpreadRequest = z.input<typeof FetchSpreadRequestSchema>;
|
|
4475
4654
|
type FetchSpreadError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4476
4655
|
declare const FetchSpreadError: {
|
|
4477
|
-
isError(error: unknown): error is
|
|
4656
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4478
4657
|
};
|
|
4479
4658
|
/**
|
|
4480
4659
|
* Fetches the spread for a token.
|
|
@@ -4503,7 +4682,7 @@ declare const FetchSpreadsRequestSchema: z.ZodArray<z.ZodObject<{
|
|
|
4503
4682
|
type FetchSpreadsRequest = z.input<typeof FetchSpreadsRequestSchema>;
|
|
4504
4683
|
type FetchSpreadsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4505
4684
|
declare const FetchSpreadsError: {
|
|
4506
|
-
isError(error: unknown): error is
|
|
4685
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4507
4686
|
};
|
|
4508
4687
|
/**
|
|
4509
4688
|
* Fetches spreads for multiple tokens.
|
|
@@ -4534,7 +4713,7 @@ declare const FetchLastTradePriceRequestSchema: z.ZodObject<{
|
|
|
4534
4713
|
type FetchLastTradePriceRequest = z.input<typeof FetchLastTradePriceRequestSchema>;
|
|
4535
4714
|
type FetchLastTradePriceError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4536
4715
|
declare const FetchLastTradePriceError: {
|
|
4537
|
-
isError(error: unknown): error is
|
|
4716
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4538
4717
|
};
|
|
4539
4718
|
/**
|
|
4540
4719
|
* Fetches the last traded price for a token.
|
|
@@ -4563,7 +4742,7 @@ declare const FetchLastTradePricesRequestSchema: z.ZodArray<z.ZodObject<{
|
|
|
4563
4742
|
type FetchLastTradePricesRequest = z.input<typeof FetchLastTradePricesRequestSchema>;
|
|
4564
4743
|
type FetchLastTradePricesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4565
4744
|
declare const FetchLastTradePricesError: {
|
|
4566
|
-
isError(error: unknown): error is
|
|
4745
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4567
4746
|
};
|
|
4568
4747
|
/**
|
|
4569
4748
|
* Fetches last traded prices for multiple tokens.
|
|
@@ -4598,7 +4777,7 @@ declare const ListPriceHistoryRequestSchema: z.ZodObject<{
|
|
|
4598
4777
|
type FetchPriceHistoryRequest = z.input<typeof ListPriceHistoryRequestSchema>;
|
|
4599
4778
|
type FetchPriceHistoryError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4600
4779
|
declare const FetchPriceHistoryError: {
|
|
4601
|
-
isError(error: unknown): error is
|
|
4780
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4602
4781
|
};
|
|
4603
4782
|
/**
|
|
4604
4783
|
* Fetches historical price points for a token.
|
|
@@ -4630,7 +4809,7 @@ declare const ListCurrentRewardsRequestSchema: z.ZodDefault<z.ZodObject<{
|
|
|
4630
4809
|
type ListCurrentRewardsRequest = z.input<typeof ListCurrentRewardsRequestSchema>;
|
|
4631
4810
|
type ListCurrentRewardsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4632
4811
|
declare const ListCurrentRewardsError: {
|
|
4633
|
-
isError(error: unknown): error is
|
|
4812
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4634
4813
|
};
|
|
4635
4814
|
/**
|
|
4636
4815
|
* Lists current active market rewards.
|
|
@@ -4673,7 +4852,7 @@ declare const ListMarketRewardsRequestSchema: z.ZodObject<{
|
|
|
4673
4852
|
type ListMarketRewardsRequest = z.input<typeof ListMarketRewardsRequestSchema>;
|
|
4674
4853
|
type ListMarketRewardsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4675
4854
|
declare const ListMarketRewardsError: {
|
|
4676
|
-
isError(error: unknown): error is
|
|
4855
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4677
4856
|
};
|
|
4678
4857
|
/**
|
|
4679
4858
|
* Lists reward configurations for a market.
|
|
@@ -4741,7 +4920,7 @@ type FetchCommentsByIdRequest = z.input<typeof FetchCommentsByIdRequestSchema>;
|
|
|
4741
4920
|
type ListCommentsByUserAddressRequest = z.input<typeof ListCommentsByUserAddressRequestSchema>;
|
|
4742
4921
|
type ListCommentsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4743
4922
|
declare const ListCommentsError: {
|
|
4744
|
-
isError(error: unknown): error is
|
|
4923
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4745
4924
|
};
|
|
4746
4925
|
/**
|
|
4747
4926
|
* Lists comments for an event or series.
|
|
@@ -4786,7 +4965,7 @@ declare const ListCommentsError: {
|
|
|
4786
4965
|
declare function listComments(client: BaseClient, request: ListCommentsRequest): Paginated<Comment[]>;
|
|
4787
4966
|
type FetchCommentsByIdError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4788
4967
|
declare const FetchCommentsByIdError: {
|
|
4789
|
-
isError(error: unknown): error is
|
|
4968
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4790
4969
|
};
|
|
4791
4970
|
/**
|
|
4792
4971
|
* Fetches a comment thread by comment id.
|
|
@@ -4810,7 +4989,7 @@ declare const FetchCommentsByIdError: {
|
|
|
4810
4989
|
declare function fetchCommentsById(client: BaseClient, request: FetchCommentsByIdRequest): Promise<Comment[]>;
|
|
4811
4990
|
type ListCommentsByUserAddressError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4812
4991
|
declare const ListCommentsByUserAddressError: {
|
|
4813
|
-
isError(error: unknown): error is
|
|
4992
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4814
4993
|
};
|
|
4815
4994
|
/**
|
|
4816
4995
|
* Lists comments written by a wallet address.
|
|
@@ -4934,7 +5113,7 @@ declare const FetchEventLiveVolumeRequestSchema: z.ZodObject<{
|
|
|
4934
5113
|
type FetchEventLiveVolumeRequest = z.input<typeof FetchEventLiveVolumeRequestSchema>;
|
|
4935
5114
|
type ListEventsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4936
5115
|
declare const ListEventsError: {
|
|
4937
|
-
isError(error: unknown): error is
|
|
5116
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4938
5117
|
};
|
|
4939
5118
|
/**
|
|
4940
5119
|
* Lists events.
|
|
@@ -4979,7 +5158,7 @@ declare const ListEventsError: {
|
|
|
4979
5158
|
declare function listEvents(client: BaseClient, request?: ListEventsRequest): Paginated<Event[]>;
|
|
4980
5159
|
type FetchEventError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4981
5160
|
declare const FetchEventError: {
|
|
4982
|
-
isError(error: unknown): error is
|
|
5161
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4983
5162
|
};
|
|
4984
5163
|
/**
|
|
4985
5164
|
* Fetches an event.
|
|
@@ -5010,7 +5189,7 @@ declare const FetchEventError: {
|
|
|
5010
5189
|
declare function fetchEvent(client: BaseClient, request: FetchEventRequest): Promise<Event>;
|
|
5011
5190
|
type FetchEventTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5012
5191
|
declare const FetchEventTagsError: {
|
|
5013
|
-
isError(error: unknown): error is
|
|
5192
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5014
5193
|
};
|
|
5015
5194
|
/**
|
|
5016
5195
|
* Fetches an event's tags.
|
|
@@ -5033,7 +5212,7 @@ declare const FetchEventTagsError: {
|
|
|
5033
5212
|
declare function fetchEventTags(client: BaseClient, request: FetchEventTagsRequest): Promise<TagReference[]>;
|
|
5034
5213
|
type FetchEventLiveVolumeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5035
5214
|
declare const FetchEventLiveVolumeError: {
|
|
5036
|
-
isError(error: unknown): error is
|
|
5215
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5037
5216
|
};
|
|
5038
5217
|
/**
|
|
5039
5218
|
* Fetches live volume for an event.
|
|
@@ -5106,7 +5285,7 @@ type ListBuilderVolumeRequest = z.input<typeof ListBuilderVolumeRequestSchema>;
|
|
|
5106
5285
|
type ListTraderLeaderboardRequest = z.input<typeof ListTraderLeaderboardRequestSchema>;
|
|
5107
5286
|
type ListBuilderLeaderboardError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5108
5287
|
declare const ListBuilderLeaderboardError: {
|
|
5109
|
-
isError(error: unknown): error is
|
|
5288
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5110
5289
|
};
|
|
5111
5290
|
/**
|
|
5112
5291
|
* Lists builder leaderboard rankings.
|
|
@@ -5149,7 +5328,7 @@ declare const ListBuilderLeaderboardError: {
|
|
|
5149
5328
|
declare function listBuilderLeaderboard(client: BaseClient, request?: ListBuilderLeaderboardRequest): Paginated<LeaderboardEntry[]>;
|
|
5150
5329
|
type ListBuilderVolumeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5151
5330
|
declare const ListBuilderVolumeError: {
|
|
5152
|
-
isError(error: unknown): error is
|
|
5331
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5153
5332
|
};
|
|
5154
5333
|
/**
|
|
5155
5334
|
* Lists daily builder volume entries.
|
|
@@ -5172,7 +5351,7 @@ declare const ListBuilderVolumeError: {
|
|
|
5172
5351
|
declare function fetchBuilderVolume(client: BaseClient, request?: ListBuilderVolumeRequest): Promise<BuilderVolumeEntry[]>;
|
|
5173
5352
|
type ListTraderLeaderboardError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5174
5353
|
declare const ListTraderLeaderboardError: {
|
|
5175
|
-
isError(error: unknown): error is
|
|
5354
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5176
5355
|
};
|
|
5177
5356
|
/**
|
|
5178
5357
|
* Lists trader leaderboard rankings.
|
|
@@ -5306,7 +5485,7 @@ type ListOpenInterestRequest = z.input<typeof ListOpenInterestRequestSchema>;
|
|
|
5306
5485
|
type ListMarketPositionsRequest = z.input<typeof ListMarketPositionsRequestSchema>;
|
|
5307
5486
|
type ListMarketsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5308
5487
|
declare const ListMarketsError: {
|
|
5309
|
-
isError(error: unknown): error is
|
|
5488
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5310
5489
|
};
|
|
5311
5490
|
/**
|
|
5312
5491
|
* Lists markets.
|
|
@@ -5358,7 +5537,7 @@ declare const ListComboMarketsRequestSchema: z.ZodObject<{
|
|
|
5358
5537
|
type ListComboMarketsRequest = z.input<typeof ListComboMarketsRequestSchema>;
|
|
5359
5538
|
type ListComboMarketsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5360
5539
|
declare const ListComboMarketsError: {
|
|
5361
|
-
isError(error: unknown): error is
|
|
5540
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5362
5541
|
};
|
|
5363
5542
|
/**
|
|
5364
5543
|
* Lists markets available for Combos.
|
|
@@ -5396,7 +5575,7 @@ declare const ListComboMarketsError: {
|
|
|
5396
5575
|
declare function listComboMarkets(client: BaseClient, request?: ListComboMarketsRequest): Paginated<ComboMarket[]>;
|
|
5397
5576
|
type FetchMarketError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5398
5577
|
declare const FetchMarketError: {
|
|
5399
|
-
isError(error: unknown): error is
|
|
5578
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5400
5579
|
};
|
|
5401
5580
|
/**
|
|
5402
5581
|
* Fetches a market.
|
|
@@ -5431,7 +5610,7 @@ declare const FetchMarketError: {
|
|
|
5431
5610
|
declare function fetchMarket(client: BaseClient, request: FetchMarketRequest): Promise<Market>;
|
|
5432
5611
|
type FetchMarketTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5433
5612
|
declare const FetchMarketTagsError: {
|
|
5434
|
-
isError(error: unknown): error is
|
|
5613
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5435
5614
|
};
|
|
5436
5615
|
/**
|
|
5437
5616
|
* Fetches a market's tags.
|
|
@@ -5454,7 +5633,7 @@ declare const FetchMarketTagsError: {
|
|
|
5454
5633
|
declare function fetchMarketTags(client: BaseClient, request: FetchMarketTagsRequest): Promise<TagReference[]>;
|
|
5455
5634
|
type ListMarketHoldersError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5456
5635
|
declare const ListMarketHoldersError: {
|
|
5457
|
-
isError(error: unknown): error is
|
|
5636
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5458
5637
|
};
|
|
5459
5638
|
/**
|
|
5460
5639
|
* Lists the top holders for one or more markets.
|
|
@@ -5478,7 +5657,7 @@ declare const ListMarketHoldersError: {
|
|
|
5478
5657
|
declare function listMarketHolders(client: BaseClient, request: ListMarketHoldersRequest): Promise<MetaHolder[]>;
|
|
5479
5658
|
type ListOpenInterestError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5480
5659
|
declare const ListOpenInterestError: {
|
|
5481
|
-
isError(error: unknown): error is
|
|
5660
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5482
5661
|
};
|
|
5483
5662
|
/**
|
|
5484
5663
|
* Lists open interest for one or more markets.
|
|
@@ -5501,7 +5680,7 @@ declare const ListOpenInterestError: {
|
|
|
5501
5680
|
declare function listOpenInterest(client: BaseClient, request?: ListOpenInterestRequest): Promise<OpenInterest[]>;
|
|
5502
5681
|
type ListMarketPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5503
5682
|
declare const ListMarketPositionsError: {
|
|
5504
|
-
isError(error: unknown): error is
|
|
5683
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5505
5684
|
};
|
|
5506
5685
|
/**
|
|
5507
5686
|
* Lists positions for a market.
|
|
@@ -5543,6 +5722,633 @@ declare const ListMarketPositionsError: {
|
|
|
5543
5722
|
*/
|
|
5544
5723
|
declare function listMarketPositions(client: BaseClient, request: ListMarketPositionsRequest): Paginated<MetaMarketPosition[]>;
|
|
5545
5724
|
|
|
5725
|
+
type PerpsHistoryParams = {
|
|
5726
|
+
startTimestamp: number;
|
|
5727
|
+
endTimestamp: number;
|
|
5728
|
+
instrumentId?: PerpsInstrumentId;
|
|
5729
|
+
depositStatus?: z.output<typeof PerpsDepositStatusSchema>;
|
|
5730
|
+
withdrawalStatus?: z.output<typeof PerpsWithdrawalStatusSchema>;
|
|
5731
|
+
hash?: z.output<typeof TxHashSchema>;
|
|
5732
|
+
};
|
|
5733
|
+
type PerpsIntervalHistoryParams = PerpsHistoryParams & {
|
|
5734
|
+
interval: z.output<typeof PerpsPnlIntervalSchema>;
|
|
5735
|
+
};
|
|
5736
|
+
declare const FetchPerpsAccountConfigRequestSchema: z.ZodDefault<z.ZodObject<{
|
|
5737
|
+
instrumentId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>>;
|
|
5738
|
+
}, z.core.$strip>>;
|
|
5739
|
+
type FetchPerpsAccountConfigRequest = z.input<typeof FetchPerpsAccountConfigRequestSchema>;
|
|
5740
|
+
declare const FetchPerpsOpenOrdersRequestSchema: z.ZodDefault<z.ZodObject<{
|
|
5741
|
+
instrumentId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>>;
|
|
5742
|
+
}, z.core.$strip>>;
|
|
5743
|
+
type FetchPerpsOpenOrdersRequest = z.input<typeof FetchPerpsOpenOrdersRequestSchema>;
|
|
5744
|
+
declare const FetchPerpsOrdersRequestSchema: z.ZodPipe<z.ZodDefault<z.ZodObject<{
|
|
5745
|
+
orderId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsOrderId, number>>>;
|
|
5746
|
+
clientOrderId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings_perps.PerpsClientOrderId, string>>>;
|
|
5747
|
+
instrumentId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>>;
|
|
5748
|
+
start: z.ZodOptional<z.ZodNumber>;
|
|
5749
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
5750
|
+
}, z.core.$strip>>, z.ZodTransform<{
|
|
5751
|
+
endTimestamp: number | undefined;
|
|
5752
|
+
startTimestamp: number | undefined;
|
|
5753
|
+
orderId?: _polymarket_bindings_perps.PerpsOrderId | undefined;
|
|
5754
|
+
clientOrderId?: _polymarket_bindings_perps.PerpsClientOrderId | undefined;
|
|
5755
|
+
instrumentId?: PerpsInstrumentId | undefined;
|
|
5756
|
+
}, {
|
|
5757
|
+
orderId?: _polymarket_bindings_perps.PerpsOrderId | undefined;
|
|
5758
|
+
clientOrderId?: _polymarket_bindings_perps.PerpsClientOrderId | undefined;
|
|
5759
|
+
instrumentId?: PerpsInstrumentId | undefined;
|
|
5760
|
+
start?: number | undefined;
|
|
5761
|
+
end?: number | undefined;
|
|
5762
|
+
}>>;
|
|
5763
|
+
type FetchPerpsOrdersRequest = z.input<typeof FetchPerpsOrdersRequestSchema>;
|
|
5764
|
+
declare const ListPerpsFillsRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
5765
|
+
start: z.ZodOptional<z.ZodNumber>;
|
|
5766
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
5767
|
+
cursor: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>>;
|
|
5768
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
5769
|
+
cursor: PaginationCursor | undefined;
|
|
5770
|
+
params: Omit<Record<string, unknown>, "start" | "end"> & PerpsHistoryParams;
|
|
5771
|
+
}, {
|
|
5772
|
+
start?: number | undefined;
|
|
5773
|
+
end?: number | undefined;
|
|
5774
|
+
cursor?: PaginationCursor | undefined;
|
|
5775
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
5776
|
+
cursor: z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>;
|
|
5777
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
5778
|
+
cursor: PaginationCursor;
|
|
5779
|
+
params: undefined;
|
|
5780
|
+
}, {
|
|
5781
|
+
cursor: PaginationCursor;
|
|
5782
|
+
}>>]>;
|
|
5783
|
+
type ListPerpsFillsRequest = z.input<typeof ListPerpsFillsRequestSchema>;
|
|
5784
|
+
declare const ListPerpsFundingPaymentsRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
5785
|
+
start: z.ZodOptional<z.ZodNumber>;
|
|
5786
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
5787
|
+
cursor: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>>;
|
|
5788
|
+
instrumentId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>>;
|
|
5789
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
5790
|
+
cursor: PaginationCursor | undefined;
|
|
5791
|
+
params: Omit<{
|
|
5792
|
+
start?: number | undefined;
|
|
5793
|
+
end?: number | undefined;
|
|
5794
|
+
instrumentId?: PerpsInstrumentId | undefined;
|
|
5795
|
+
}, "start" | "end"> & PerpsHistoryParams;
|
|
5796
|
+
}, {
|
|
5797
|
+
start?: number | undefined;
|
|
5798
|
+
end?: number | undefined;
|
|
5799
|
+
cursor?: PaginationCursor | undefined;
|
|
5800
|
+
instrumentId?: PerpsInstrumentId | undefined;
|
|
5801
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
5802
|
+
cursor: z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>;
|
|
5803
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
5804
|
+
cursor: PaginationCursor;
|
|
5805
|
+
params: undefined;
|
|
5806
|
+
}, {
|
|
5807
|
+
cursor: PaginationCursor;
|
|
5808
|
+
}>>]>;
|
|
5809
|
+
type ListPerpsFundingPaymentsRequest = z.input<typeof ListPerpsFundingPaymentsRequestSchema>;
|
|
5810
|
+
declare const ListPerpsDepositsRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
5811
|
+
start: z.ZodOptional<z.ZodNumber>;
|
|
5812
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
5813
|
+
cursor: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>>;
|
|
5814
|
+
depositStatus: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_perps.PerpsDepositStatus>>;
|
|
5815
|
+
hash: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>;
|
|
5816
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
5817
|
+
cursor: PaginationCursor | undefined;
|
|
5818
|
+
params: Omit<{
|
|
5819
|
+
start?: number | undefined;
|
|
5820
|
+
end?: number | undefined;
|
|
5821
|
+
depositStatus?: _polymarket_bindings_perps.PerpsDepositStatus | undefined;
|
|
5822
|
+
hash?: _polymarket_types.TxHash | undefined;
|
|
5823
|
+
}, "start" | "end"> & PerpsHistoryParams;
|
|
5824
|
+
}, {
|
|
5825
|
+
start?: number | undefined;
|
|
5826
|
+
end?: number | undefined;
|
|
5827
|
+
cursor?: PaginationCursor | undefined;
|
|
5828
|
+
depositStatus?: _polymarket_bindings_perps.PerpsDepositStatus | undefined;
|
|
5829
|
+
hash?: _polymarket_types.TxHash | undefined;
|
|
5830
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
5831
|
+
cursor: z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>;
|
|
5832
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
5833
|
+
cursor: PaginationCursor;
|
|
5834
|
+
params: undefined;
|
|
5835
|
+
}, {
|
|
5836
|
+
cursor: PaginationCursor;
|
|
5837
|
+
}>>]>;
|
|
5838
|
+
type ListPerpsDepositsRequest = z.input<typeof ListPerpsDepositsRequestSchema>;
|
|
5839
|
+
declare const ListPerpsWithdrawalsRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
5840
|
+
start: z.ZodOptional<z.ZodNumber>;
|
|
5841
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
5842
|
+
cursor: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>>;
|
|
5843
|
+
withdrawalStatus: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_perps.PerpsWithdrawalStatus>>;
|
|
5844
|
+
hash: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>;
|
|
5845
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
5846
|
+
cursor: PaginationCursor | undefined;
|
|
5847
|
+
params: Omit<{
|
|
5848
|
+
start?: number | undefined;
|
|
5849
|
+
end?: number | undefined;
|
|
5850
|
+
withdrawalStatus?: _polymarket_bindings_perps.PerpsWithdrawalStatus | undefined;
|
|
5851
|
+
hash?: _polymarket_types.TxHash | undefined;
|
|
5852
|
+
}, "start" | "end"> & PerpsHistoryParams;
|
|
5853
|
+
}, {
|
|
5854
|
+
start?: number | undefined;
|
|
5855
|
+
end?: number | undefined;
|
|
5856
|
+
cursor?: PaginationCursor | undefined;
|
|
5857
|
+
withdrawalStatus?: _polymarket_bindings_perps.PerpsWithdrawalStatus | undefined;
|
|
5858
|
+
hash?: _polymarket_types.TxHash | undefined;
|
|
5859
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
5860
|
+
cursor: z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>;
|
|
5861
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
5862
|
+
cursor: PaginationCursor;
|
|
5863
|
+
params: undefined;
|
|
5864
|
+
}, {
|
|
5865
|
+
cursor: PaginationCursor;
|
|
5866
|
+
}>>]>;
|
|
5867
|
+
type ListPerpsWithdrawalsRequest = z.input<typeof ListPerpsWithdrawalsRequestSchema>;
|
|
5868
|
+
declare const ListPerpsEquityHistoryRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
5869
|
+
interval: z.ZodEnum<typeof _polymarket_bindings_perps.PerpsPnlInterval>;
|
|
5870
|
+
start: z.ZodNumber;
|
|
5871
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
5872
|
+
cursor: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>>;
|
|
5873
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
5874
|
+
cursor: PaginationCursor | undefined;
|
|
5875
|
+
params: PerpsIntervalHistoryParams;
|
|
5876
|
+
}, {
|
|
5877
|
+
interval: _polymarket_bindings_perps.PerpsPnlInterval;
|
|
5878
|
+
start: number;
|
|
5879
|
+
end?: number | undefined;
|
|
5880
|
+
cursor?: PaginationCursor | undefined;
|
|
5881
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
5882
|
+
cursor: z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>;
|
|
5883
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
5884
|
+
cursor: PaginationCursor;
|
|
5885
|
+
params: undefined;
|
|
5886
|
+
}, {
|
|
5887
|
+
cursor: PaginationCursor;
|
|
5888
|
+
}>>]>;
|
|
5889
|
+
type ListPerpsEquityHistoryRequest = z.input<typeof ListPerpsEquityHistoryRequestSchema>;
|
|
5890
|
+
declare const ListPerpsPnlHistoryRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
5891
|
+
interval: z.ZodEnum<typeof _polymarket_bindings_perps.PerpsPnlInterval>;
|
|
5892
|
+
start: z.ZodNumber;
|
|
5893
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
5894
|
+
cursor: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>>;
|
|
5895
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
5896
|
+
cursor: PaginationCursor | undefined;
|
|
5897
|
+
params: PerpsIntervalHistoryParams;
|
|
5898
|
+
}, {
|
|
5899
|
+
interval: _polymarket_bindings_perps.PerpsPnlInterval;
|
|
5900
|
+
start: number;
|
|
5901
|
+
end?: number | undefined;
|
|
5902
|
+
cursor?: PaginationCursor | undefined;
|
|
5903
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
5904
|
+
cursor: z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>;
|
|
5905
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
5906
|
+
cursor: PaginationCursor;
|
|
5907
|
+
params: undefined;
|
|
5908
|
+
}, {
|
|
5909
|
+
cursor: PaginationCursor;
|
|
5910
|
+
}>>]>;
|
|
5911
|
+
type ListPerpsPnlHistoryRequest = z.input<typeof ListPerpsPnlHistoryRequestSchema>;
|
|
5912
|
+
|
|
5913
|
+
declare const PlacePerpsOrderRequestSchema: z.ZodObject<{
|
|
5914
|
+
instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
5915
|
+
buy: z.ZodBoolean;
|
|
5916
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings.DecimalString, number>>]>>;
|
|
5917
|
+
quantity: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings.DecimalString, number>>]>;
|
|
5918
|
+
timeInForce: z.ZodEnum<typeof PerpsTimeInForce>;
|
|
5919
|
+
postOnly: z.ZodOptional<z.ZodBoolean>;
|
|
5920
|
+
clientOrderId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings_perps.PerpsClientOrderId, string>>>;
|
|
5921
|
+
}, z.core.$strip>;
|
|
5922
|
+
type PlacePerpsOrderRequest = z.input<typeof PlacePerpsOrderRequestSchema>;
|
|
5923
|
+
declare const PlacePerpsOrdersRequestSchema: z.ZodObject<{
|
|
5924
|
+
orders: z.ZodArray<z.ZodObject<{
|
|
5925
|
+
instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
5926
|
+
buy: z.ZodBoolean;
|
|
5927
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings.DecimalString, number>>]>>;
|
|
5928
|
+
quantity: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings.DecimalString, number>>]>;
|
|
5929
|
+
timeInForce: z.ZodEnum<typeof PerpsTimeInForce>;
|
|
5930
|
+
postOnly: z.ZodOptional<z.ZodBoolean>;
|
|
5931
|
+
clientOrderId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings_perps.PerpsClientOrderId, string>>>;
|
|
5932
|
+
}, z.core.$strip>>;
|
|
5933
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
5934
|
+
}, z.core.$strip>;
|
|
5935
|
+
type PlacePerpsOrdersRequest = z.input<typeof PlacePerpsOrdersRequestSchema>;
|
|
5936
|
+
declare const ModifyPerpsOrderRequestSchema: z.ZodObject<{
|
|
5937
|
+
orderId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
|
|
5938
|
+
order: z.ZodObject<{
|
|
5939
|
+
instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
5940
|
+
buy: z.ZodBoolean;
|
|
5941
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings.DecimalString, number>>]>>;
|
|
5942
|
+
quantity: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings.DecimalString, number>>]>;
|
|
5943
|
+
timeInForce: z.ZodEnum<typeof PerpsTimeInForce>;
|
|
5944
|
+
postOnly: z.ZodOptional<z.ZodBoolean>;
|
|
5945
|
+
clientOrderId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings_perps.PerpsClientOrderId, string>>>;
|
|
5946
|
+
}, z.core.$strip>;
|
|
5947
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
5948
|
+
}, z.core.$strip>;
|
|
5949
|
+
type ModifyPerpsOrderRequest = z.input<typeof ModifyPerpsOrderRequestSchema>;
|
|
5950
|
+
declare const ModifyPerpsOrdersRequestSchema: z.ZodObject<{
|
|
5951
|
+
orders: z.ZodArray<z.ZodObject<{
|
|
5952
|
+
orderId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
|
|
5953
|
+
order: z.ZodObject<{
|
|
5954
|
+
instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
5955
|
+
buy: z.ZodBoolean;
|
|
5956
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings.DecimalString, number>>]>>;
|
|
5957
|
+
quantity: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings.DecimalString, number>>]>;
|
|
5958
|
+
timeInForce: z.ZodEnum<typeof PerpsTimeInForce>;
|
|
5959
|
+
postOnly: z.ZodOptional<z.ZodBoolean>;
|
|
5960
|
+
clientOrderId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings_perps.PerpsClientOrderId, string>>>;
|
|
5961
|
+
}, z.core.$strip>;
|
|
5962
|
+
}, z.core.$strip>>;
|
|
5963
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
5964
|
+
}, z.core.$strip>;
|
|
5965
|
+
type ModifyPerpsOrdersRequest = z.input<typeof ModifyPerpsOrdersRequestSchema>;
|
|
5966
|
+
declare const CancelPerpsOrderRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
5967
|
+
orderId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
|
|
5968
|
+
clientOrderId: z.ZodOptional<z.ZodUndefined>;
|
|
5969
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
5970
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5971
|
+
clientOrderId: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings_perps.PerpsClientOrderId, string>>;
|
|
5972
|
+
orderId: z.ZodOptional<z.ZodUndefined>;
|
|
5973
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
5974
|
+
}, z.core.$strip>]>;
|
|
5975
|
+
type CancelPerpsOrderRequest = z.input<typeof CancelPerpsOrderRequestSchema>;
|
|
5976
|
+
declare const CancelPerpsOrdersRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
5977
|
+
orderIds: z.ZodArray<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>>;
|
|
5978
|
+
clientOrderIds: z.ZodOptional<z.ZodUndefined>;
|
|
5979
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
5980
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5981
|
+
clientOrderIds: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings_perps.PerpsClientOrderId, string>>>;
|
|
5982
|
+
orderIds: z.ZodOptional<z.ZodUndefined>;
|
|
5983
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
5984
|
+
}, z.core.$strip>]>;
|
|
5985
|
+
type CancelPerpsOrdersRequest = z.input<typeof CancelPerpsOrdersRequestSchema>;
|
|
5986
|
+
declare const UpdatePerpsLeverageRequestSchema: z.ZodObject<{
|
|
5987
|
+
instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
5988
|
+
leverage: z.ZodNumber;
|
|
5989
|
+
crossMargin: z.ZodBoolean;
|
|
5990
|
+
}, z.core.$strip>;
|
|
5991
|
+
type UpdatePerpsLeverageRequest = z.input<typeof UpdatePerpsLeverageRequestSchema>;
|
|
5992
|
+
declare const UpdatePerpsMarginRequestSchema: z.ZodObject<{
|
|
5993
|
+
instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
5994
|
+
amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings.DecimalString, number>>]>;
|
|
5995
|
+
}, z.core.$strip>;
|
|
5996
|
+
type UpdatePerpsMarginRequest = z.input<typeof UpdatePerpsMarginRequestSchema>;
|
|
5997
|
+
|
|
5998
|
+
type PerpsSessionOptions = {
|
|
5999
|
+
chainId: number;
|
|
6000
|
+
credentials: PerpsCredentials;
|
|
6001
|
+
headers?: Record<string, string>;
|
|
6002
|
+
onClose: (session: PerpsSession) => void;
|
|
6003
|
+
restUrl: string;
|
|
6004
|
+
wsUrl: string;
|
|
6005
|
+
};
|
|
6006
|
+
declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
|
|
6007
|
+
#private;
|
|
6008
|
+
readonly credentials: PerpsCredentials;
|
|
6009
|
+
constructor(options: PerpsSessionOptions);
|
|
6010
|
+
get closed(): boolean;
|
|
6011
|
+
connect(): Promise<void>;
|
|
6012
|
+
close(): Promise<void>;
|
|
6013
|
+
[Symbol.asyncIterator](): AsyncIterator<PerpsSessionEvent>;
|
|
6014
|
+
fetchBalances(): Promise<PerpsBalance[]>;
|
|
6015
|
+
fetchPortfolio(): Promise<PerpsPortfolio>;
|
|
6016
|
+
fetchAccountConfig(request?: FetchPerpsAccountConfigRequest): Promise<PerpsAccountConfig[]>;
|
|
6017
|
+
fetchOpenOrders(request?: FetchPerpsOpenOrdersRequest): Promise<PerpsOrder[]>;
|
|
6018
|
+
fetchOrders(request?: FetchPerpsOrdersRequest): Promise<PerpsOrder[]>;
|
|
6019
|
+
listFills(request?: ListPerpsFillsRequest): Paginated<PerpsAccountFill[]>;
|
|
6020
|
+
listFundingPayments(request?: ListPerpsFundingPaymentsRequest): Paginated<PerpsAccountFundingPayment[]>;
|
|
6021
|
+
listDeposits(request?: ListPerpsDepositsRequest): Paginated<PerpsDeposit[]>;
|
|
6022
|
+
listWithdrawals(request?: ListPerpsWithdrawalsRequest): Paginated<PerpsWithdrawal[]>;
|
|
6023
|
+
listEquityHistory(request: ListPerpsEquityHistoryRequest): Paginated<PerpsEquityPoint[]>;
|
|
6024
|
+
listPnlHistory(request: ListPerpsPnlHistoryRequest): Paginated<PerpsPnlPoint[]>;
|
|
6025
|
+
placeOrder(request: PlacePerpsOrderRequest): Promise<PerpsOrderCommandAck>;
|
|
6026
|
+
placeOrders(request: PlacePerpsOrdersRequest): Promise<PerpsOrderCommandAck[]>;
|
|
6027
|
+
modifyOrder(request: ModifyPerpsOrderRequest): Promise<PerpsOrderCommandAck>;
|
|
6028
|
+
modifyOrders(request: ModifyPerpsOrdersRequest): Promise<PerpsOrderCommandAck[]>;
|
|
6029
|
+
cancelOrder(request: CancelPerpsOrderRequest): Promise<PerpsCommandAck>;
|
|
6030
|
+
cancelOrders(request: CancelPerpsOrdersRequest): Promise<PerpsCommandAck[]>;
|
|
6031
|
+
updateLeverage(request: UpdatePerpsLeverageRequest): Promise<PerpsCommandAck>;
|
|
6032
|
+
updateMargin(request: UpdatePerpsMarginRequest): Promise<PerpsCommandAck>;
|
|
6033
|
+
}
|
|
6034
|
+
|
|
6035
|
+
type PerpsPublicReadError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6036
|
+
declare const PerpsPublicReadError: {
|
|
6037
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6038
|
+
};
|
|
6039
|
+
type PerpsCandlesParams = {
|
|
6040
|
+
instrumentId: z.output<typeof PerpsInstrumentIdSchema>;
|
|
6041
|
+
interval: PerpsKlineInterval;
|
|
6042
|
+
startTimestamp: number;
|
|
6043
|
+
endTimestamp: number;
|
|
6044
|
+
};
|
|
6045
|
+
type PerpsTimeRangeParams = {
|
|
6046
|
+
instrumentId: z.output<typeof PerpsInstrumentIdSchema>;
|
|
6047
|
+
startTimestamp: number;
|
|
6048
|
+
endTimestamp: number;
|
|
6049
|
+
};
|
|
6050
|
+
declare const FetchPerpsInstrumentsRequestSchema: z.ZodDefault<z.ZodObject<{
|
|
6051
|
+
instrumentId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>>;
|
|
6052
|
+
instrumentType: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_perps.PerpsInstrumentType>>;
|
|
6053
|
+
category: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_perps.PerpsInstrumentCategory>>;
|
|
6054
|
+
}, z.core.$strip>>;
|
|
6055
|
+
type FetchPerpsInstrumentsRequest = z.input<typeof FetchPerpsInstrumentsRequestSchema>;
|
|
6056
|
+
type FetchPerpsInstrumentsError = PerpsPublicReadError;
|
|
6057
|
+
declare const FetchPerpsInstrumentsError: {
|
|
6058
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6059
|
+
};
|
|
6060
|
+
/**
|
|
6061
|
+
* Fetches Perps instruments.
|
|
6062
|
+
*
|
|
6063
|
+
* @remarks
|
|
6064
|
+
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
6065
|
+
*
|
|
6066
|
+
* @throws {@link FetchPerpsInstrumentsError}
|
|
6067
|
+
* Thrown on failure.
|
|
6068
|
+
*/
|
|
6069
|
+
declare function fetchPerpsInstruments(client: BaseClient, request?: FetchPerpsInstrumentsRequest): Promise<PerpsInstrument[]>;
|
|
6070
|
+
declare const FetchPerpsTickerRequestSchema: z.ZodObject<{
|
|
6071
|
+
instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>;
|
|
6072
|
+
}, z.core.$strip>;
|
|
6073
|
+
type FetchPerpsTickerRequest = z.input<typeof FetchPerpsTickerRequestSchema>;
|
|
6074
|
+
type FetchPerpsTickerError = PerpsPublicReadError;
|
|
6075
|
+
declare const FetchPerpsTickerError: {
|
|
6076
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6077
|
+
};
|
|
6078
|
+
/**
|
|
6079
|
+
* Fetches the current Perps ticker for an instrument.
|
|
6080
|
+
*
|
|
6081
|
+
* @remarks
|
|
6082
|
+
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
6083
|
+
*
|
|
6084
|
+
* @throws {@link FetchPerpsTickerError}
|
|
6085
|
+
* Thrown on failure.
|
|
6086
|
+
*/
|
|
6087
|
+
declare function fetchPerpsTicker(client: BaseClient, request: FetchPerpsTickerRequest): Promise<PerpsTicker>;
|
|
6088
|
+
declare const FetchPerpsTickersRequestSchema: z.ZodDefault<z.ZodObject<{
|
|
6089
|
+
instrumentId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>>;
|
|
6090
|
+
}, z.core.$strip>>;
|
|
6091
|
+
type FetchPerpsTickersRequest = z.input<typeof FetchPerpsTickersRequestSchema>;
|
|
6092
|
+
type FetchPerpsTickersError = PerpsPublicReadError;
|
|
6093
|
+
declare const FetchPerpsTickersError: {
|
|
6094
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6095
|
+
};
|
|
6096
|
+
/**
|
|
6097
|
+
* Fetches current Perps tickers.
|
|
6098
|
+
*
|
|
6099
|
+
* @remarks
|
|
6100
|
+
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
6101
|
+
*
|
|
6102
|
+
* @throws {@link FetchPerpsTickersError}
|
|
6103
|
+
* Thrown on failure.
|
|
6104
|
+
*/
|
|
6105
|
+
declare function fetchPerpsTickers(client: BaseClient, request?: FetchPerpsTickersRequest): Promise<PerpsTicker[]>;
|
|
6106
|
+
declare const FetchPerpsBookRequestSchema: z.ZodObject<{
|
|
6107
|
+
instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>;
|
|
6108
|
+
depth: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<10>, z.ZodLiteral<100>, z.ZodLiteral<500>, z.ZodLiteral<1000>]>>;
|
|
6109
|
+
}, z.core.$strip>;
|
|
6110
|
+
type FetchPerpsBookRequest = z.input<typeof FetchPerpsBookRequestSchema>;
|
|
6111
|
+
type FetchPerpsBookError = PerpsPublicReadError;
|
|
6112
|
+
declare const FetchPerpsBookError: {
|
|
6113
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6114
|
+
};
|
|
6115
|
+
/**
|
|
6116
|
+
* Fetches a Perps order book.
|
|
6117
|
+
*
|
|
6118
|
+
* @remarks
|
|
6119
|
+
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
6120
|
+
*
|
|
6121
|
+
* @throws {@link FetchPerpsBookError}
|
|
6122
|
+
* Thrown on failure.
|
|
6123
|
+
*/
|
|
6124
|
+
declare function fetchPerpsBook(client: BaseClient, request: FetchPerpsBookRequest): Promise<PerpsBook>;
|
|
6125
|
+
declare const ListPerpsCandlesRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
6126
|
+
instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>;
|
|
6127
|
+
interval: z.ZodEnum<typeof PerpsKlineInterval>;
|
|
6128
|
+
start: z.ZodOptional<z.ZodNumber>;
|
|
6129
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
6130
|
+
cursor: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>>;
|
|
6131
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
6132
|
+
cursor: PaginationCursor | undefined;
|
|
6133
|
+
params: PerpsCandlesParams;
|
|
6134
|
+
}, {
|
|
6135
|
+
instrumentId: _polymarket_bindings_perps.PerpsInstrumentId;
|
|
6136
|
+
interval: PerpsKlineInterval;
|
|
6137
|
+
start?: number | undefined;
|
|
6138
|
+
end?: number | undefined;
|
|
6139
|
+
cursor?: PaginationCursor | undefined;
|
|
6140
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
6141
|
+
cursor: z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>;
|
|
6142
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
6143
|
+
cursor: PaginationCursor;
|
|
6144
|
+
params: undefined;
|
|
6145
|
+
}, {
|
|
6146
|
+
cursor: PaginationCursor;
|
|
6147
|
+
}>>]>;
|
|
6148
|
+
type ListPerpsCandlesRequest = z.input<typeof ListPerpsCandlesRequestSchema>;
|
|
6149
|
+
type ListPerpsCandlesError = PerpsPublicReadError;
|
|
6150
|
+
declare const ListPerpsCandlesError: {
|
|
6151
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6152
|
+
};
|
|
6153
|
+
/**
|
|
6154
|
+
* Lists Perps candles for an instrument with SDK-owned pagination.
|
|
6155
|
+
*
|
|
6156
|
+
* @remarks
|
|
6157
|
+
* Defaults to the past 24 hours when `start` is omitted.
|
|
6158
|
+
*
|
|
6159
|
+
* @throws {@link ListPerpsCandlesError}
|
|
6160
|
+
* Thrown on failure.
|
|
6161
|
+
*/
|
|
6162
|
+
declare function listPerpsCandles(client: BaseClient, request: ListPerpsCandlesRequest): Paginated<PerpsCandle[]>;
|
|
6163
|
+
declare const ListPerpsFundingHistoryRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
6164
|
+
instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>;
|
|
6165
|
+
start: z.ZodOptional<z.ZodNumber>;
|
|
6166
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
6167
|
+
cursor: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>>;
|
|
6168
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
6169
|
+
cursor: PaginationCursor | undefined;
|
|
6170
|
+
params: PerpsTimeRangeParams;
|
|
6171
|
+
}, {
|
|
6172
|
+
instrumentId: _polymarket_bindings_perps.PerpsInstrumentId;
|
|
6173
|
+
start?: number | undefined;
|
|
6174
|
+
end?: number | undefined;
|
|
6175
|
+
cursor?: PaginationCursor | undefined;
|
|
6176
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
6177
|
+
cursor: z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>;
|
|
6178
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
6179
|
+
cursor: PaginationCursor;
|
|
6180
|
+
params: undefined;
|
|
6181
|
+
}, {
|
|
6182
|
+
cursor: PaginationCursor;
|
|
6183
|
+
}>>]>;
|
|
6184
|
+
type ListPerpsFundingHistoryRequest = z.input<typeof ListPerpsFundingHistoryRequestSchema>;
|
|
6185
|
+
type ListPerpsFundingHistoryError = PerpsPublicReadError;
|
|
6186
|
+
declare const ListPerpsFundingHistoryError: {
|
|
6187
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6188
|
+
};
|
|
6189
|
+
/**
|
|
6190
|
+
* Lists Perps funding-rate history for an instrument with SDK-owned pagination.
|
|
6191
|
+
*
|
|
6192
|
+
* @remarks
|
|
6193
|
+
* Defaults to the past 24 hours when `start` is omitted.
|
|
6194
|
+
*
|
|
6195
|
+
* @throws {@link ListPerpsFundingHistoryError}
|
|
6196
|
+
* Thrown on failure.
|
|
6197
|
+
*/
|
|
6198
|
+
declare function listPerpsFundingHistory(client: BaseClient, request: ListPerpsFundingHistoryRequest): Paginated<PerpsFundingRate[]>;
|
|
6199
|
+
declare const ListPerpsTradesRequestSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
6200
|
+
instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<_polymarket_bindings_perps.PerpsInstrumentId, number>>;
|
|
6201
|
+
start: z.ZodOptional<z.ZodNumber>;
|
|
6202
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
6203
|
+
cursor: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>>;
|
|
6204
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
6205
|
+
cursor: PaginationCursor | undefined;
|
|
6206
|
+
params: PerpsTimeRangeParams;
|
|
6207
|
+
}, {
|
|
6208
|
+
instrumentId: _polymarket_bindings_perps.PerpsInstrumentId;
|
|
6209
|
+
start?: number | undefined;
|
|
6210
|
+
end?: number | undefined;
|
|
6211
|
+
cursor?: PaginationCursor | undefined;
|
|
6212
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
6213
|
+
cursor: z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>;
|
|
6214
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
6215
|
+
cursor: PaginationCursor;
|
|
6216
|
+
params: undefined;
|
|
6217
|
+
}, {
|
|
6218
|
+
cursor: PaginationCursor;
|
|
6219
|
+
}>>]>;
|
|
6220
|
+
type ListPerpsTradesRequest = z.input<typeof ListPerpsTradesRequestSchema>;
|
|
6221
|
+
type ListPerpsTradesError = PerpsPublicReadError;
|
|
6222
|
+
declare const ListPerpsTradesError: {
|
|
6223
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6224
|
+
};
|
|
6225
|
+
/**
|
|
6226
|
+
* Lists recent Perps trades for an instrument with SDK-owned pagination.
|
|
6227
|
+
*
|
|
6228
|
+
* @remarks
|
|
6229
|
+
* Defaults to the past 24 hours when `start` is omitted.
|
|
6230
|
+
*
|
|
6231
|
+
* @throws {@link ListPerpsTradesError}
|
|
6232
|
+
* Thrown on failure.
|
|
6233
|
+
*/
|
|
6234
|
+
declare function listPerpsTrades(client: BaseClient, request: ListPerpsTradesRequest): Paginated<PerpsPublicTrade[]>;
|
|
6235
|
+
type FetchPerpsFeesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError;
|
|
6236
|
+
declare const FetchPerpsFeesError: {
|
|
6237
|
+
isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6238
|
+
};
|
|
6239
|
+
/**
|
|
6240
|
+
* Fetches the Perps fee schedule.
|
|
6241
|
+
*
|
|
6242
|
+
* @remarks
|
|
6243
|
+
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
6244
|
+
*
|
|
6245
|
+
* @throws {@link FetchPerpsFeesError}
|
|
6246
|
+
* Thrown on failure.
|
|
6247
|
+
*/
|
|
6248
|
+
declare function fetchPerpsFees(client: BaseClient): Promise<PerpsFeeScheduleEntry[]>;
|
|
6249
|
+
declare const CreatePerpsSessionRequestSchema: z.ZodObject<{
|
|
6250
|
+
expiresIn: z.ZodNumber;
|
|
6251
|
+
label: z.ZodOptional<z.ZodString>;
|
|
6252
|
+
}, z.core.$strip>;
|
|
6253
|
+
declare const ResumePerpsSessionRequestSchema: z.ZodObject<{
|
|
6254
|
+
credentials: z.ZodObject<{
|
|
6255
|
+
proxy: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>;
|
|
6256
|
+
privateKey: z.ZodCustom<PrivateKey, PrivateKey>;
|
|
6257
|
+
secret: z.ZodString;
|
|
6258
|
+
expiresAt: z.ZodNumber;
|
|
6259
|
+
}, z.core.$strip>;
|
|
6260
|
+
}, z.core.$strip>;
|
|
6261
|
+
declare const RevokePerpsCredentialsRequestSchema: z.ZodObject<{
|
|
6262
|
+
proxy: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>;
|
|
6263
|
+
}, z.core.$strip>;
|
|
6264
|
+
type CreatePerpsSessionRequest = z.input<typeof CreatePerpsSessionRequestSchema>;
|
|
6265
|
+
type ResumePerpsSessionRequest = z.input<typeof ResumePerpsSessionRequestSchema>;
|
|
6266
|
+
type OpenPerpsSessionRequest = CreatePerpsSessionRequest | ResumePerpsSessionRequest;
|
|
6267
|
+
type RevokePerpsCredentialsRequest = z.input<typeof RevokePerpsCredentialsRequestSchema>;
|
|
6268
|
+
type PerpsDepositWorkflowRequest = GaslessWorkflowRequest | SendPerpsDepositTransactionRequest;
|
|
6269
|
+
type PerpsDepositWorkflow = AsyncGenerator<PerpsDepositWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
|
|
6270
|
+
declare const DepositToPerpsRequestSchema: z.ZodObject<{
|
|
6271
|
+
amount: z.ZodBigInt;
|
|
6272
|
+
metadata: z.ZodOptional<z.ZodString>;
|
|
6273
|
+
}, z.core.$strip>;
|
|
6274
|
+
declare const WithdrawFromPerpsRequestSchema: z.ZodObject<{
|
|
6275
|
+
amount: z.ZodBigInt;
|
|
6276
|
+
}, z.core.$strip>;
|
|
6277
|
+
type DepositToPerpsRequest = z.input<typeof DepositToPerpsRequestSchema>;
|
|
6278
|
+
type WithdrawFromPerpsRequest = z.input<typeof WithdrawFromPerpsRequestSchema>;
|
|
6279
|
+
type OpenPerpsSessionError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6280
|
+
declare const OpenPerpsSessionError: {
|
|
6281
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
6282
|
+
};
|
|
6283
|
+
type RevokePerpsCredentialsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6284
|
+
declare const RevokePerpsCredentialsError: {
|
|
6285
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
6286
|
+
};
|
|
6287
|
+
type PreparePerpsDepositError = UserInputError;
|
|
6288
|
+
declare const PreparePerpsDepositError: {
|
|
6289
|
+
isError(error: unknown): error is UserInputError;
|
|
6290
|
+
};
|
|
6291
|
+
type DepositToPerpsError = RateLimitError | RequestRejectedError | CancelledSigningError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6292
|
+
declare const DepositToPerpsError: {
|
|
6293
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
|
|
6294
|
+
};
|
|
6295
|
+
type WithdrawFromPerpsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6296
|
+
declare const WithdrawFromPerpsError: {
|
|
6297
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
6298
|
+
};
|
|
6299
|
+
/**
|
|
6300
|
+
* Opens a Perps account session.
|
|
6301
|
+
*
|
|
6302
|
+
* @remarks
|
|
6303
|
+
* Pass `expiresIn` to create new delegated Perps credentials, or pass existing
|
|
6304
|
+
* credentials to validate and resume a previous session.
|
|
6305
|
+
*
|
|
6306
|
+
* @throws {@link OpenPerpsSessionError}
|
|
6307
|
+
* Thrown on failure.
|
|
6308
|
+
*/
|
|
6309
|
+
declare function openPerpsSession(client: BaseSecureClient, request: OpenPerpsSessionRequest): Promise<PerpsSession>;
|
|
6310
|
+
/**
|
|
6311
|
+
* Revokes delegated Perps credentials by proxy address.
|
|
6312
|
+
*
|
|
6313
|
+
* @remarks
|
|
6314
|
+
* This signs the revocation with the owner account. It can revoke credentials
|
|
6315
|
+
* outside the currently open Perps session.
|
|
6316
|
+
*
|
|
6317
|
+
* @throws {@link RevokePerpsCredentialsError}
|
|
6318
|
+
* Thrown on failure.
|
|
6319
|
+
*/
|
|
6320
|
+
declare function revokePerpsCredentials(client: BaseSecureClient, request: RevokePerpsCredentialsRequest): Promise<void>;
|
|
6321
|
+
/**
|
|
6322
|
+
* Starts a Perps deposit workflow.
|
|
6323
|
+
*
|
|
6324
|
+
* @remarks
|
|
6325
|
+
* The deposit sends approved collateral into the Perps deposit contract and
|
|
6326
|
+
* credits the authenticated signer account. It does not approve collateral
|
|
6327
|
+
* spending; call `setupTradingApprovals` first when allowance is missing.
|
|
6328
|
+
*
|
|
6329
|
+
* @throws {@link PreparePerpsDepositError}
|
|
6330
|
+
* Thrown on failure.
|
|
6331
|
+
*/
|
|
6332
|
+
declare function preparePerpsDeposit(client: BaseSecureClient, request: DepositToPerpsRequest): Promise<PerpsDepositWorkflow>;
|
|
6333
|
+
/**
|
|
6334
|
+
* Deposits collateral into Perps for the authenticated signer account.
|
|
6335
|
+
*
|
|
6336
|
+
* @throws {@link DepositToPerpsError}
|
|
6337
|
+
* Thrown on failure.
|
|
6338
|
+
*/
|
|
6339
|
+
declare function depositToPerps(client: BaseSecureClient, request: DepositToPerpsRequest): Promise<TransactionHandle>;
|
|
6340
|
+
/**
|
|
6341
|
+
* Requests a Perps withdrawal to the authenticated wallet.
|
|
6342
|
+
*
|
|
6343
|
+
* @remarks
|
|
6344
|
+
* The withdrawal is signed by the owner account and sends funds to the SDK
|
|
6345
|
+
* wallet address associated with the authenticated account.
|
|
6346
|
+
*
|
|
6347
|
+
* @throws {@link WithdrawFromPerpsError}
|
|
6348
|
+
* Thrown on failure.
|
|
6349
|
+
*/
|
|
6350
|
+
declare function withdrawFromPerps(client: BaseSecureClient, request: WithdrawFromPerpsRequest): Promise<PerpsWithdrawalId>;
|
|
6351
|
+
|
|
5546
6352
|
/**
|
|
5547
6353
|
* Parameters for preparing a market position split.
|
|
5548
6354
|
*/
|
|
@@ -5580,39 +6386,39 @@ type MergePositionsWorkflow = AsyncGenerator<MergePositionsWorkflowRequest, Tran
|
|
|
5580
6386
|
type RedeemPositionsWorkflow = AsyncGenerator<RedeemPositionsWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
|
|
5581
6387
|
type PrepareSplitPositionError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5582
6388
|
declare const PrepareSplitPositionError: {
|
|
5583
|
-
isError(error: unknown): error is
|
|
6389
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5584
6390
|
};
|
|
5585
6391
|
type PrepareSplitMarketPositionError = PrepareSplitPositionError;
|
|
5586
6392
|
declare const PrepareSplitMarketPositionError: {
|
|
5587
|
-
isError(error: unknown): error is
|
|
6393
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5588
6394
|
};
|
|
5589
6395
|
type PrepareSplitComboPositionError = PrepareSplitPositionError;
|
|
5590
6396
|
declare const PrepareSplitComboPositionError: {
|
|
5591
|
-
isError(error: unknown): error is
|
|
6397
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5592
6398
|
};
|
|
5593
6399
|
type PrepareMergePositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5594
6400
|
declare const PrepareMergePositionsError: {
|
|
5595
|
-
isError(error: unknown): error is
|
|
6401
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5596
6402
|
};
|
|
5597
6403
|
type PrepareMergeMarketPositionError = PrepareMergePositionsError;
|
|
5598
6404
|
declare const PrepareMergeMarketPositionError: {
|
|
5599
|
-
isError(error: unknown): error is
|
|
6405
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5600
6406
|
};
|
|
5601
6407
|
type PrepareMergeComboPositionError = PrepareMergePositionsError;
|
|
5602
6408
|
declare const PrepareMergeComboPositionError: {
|
|
5603
|
-
isError(error: unknown): error is
|
|
6409
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5604
6410
|
};
|
|
5605
6411
|
type PrepareRedeemPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5606
6412
|
declare const PrepareRedeemPositionsError: {
|
|
5607
|
-
isError(error: unknown): error is
|
|
6413
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5608
6414
|
};
|
|
5609
6415
|
type PrepareRedeemMarketPositionsError = PrepareRedeemPositionsError;
|
|
5610
6416
|
declare const PrepareRedeemMarketPositionsError: {
|
|
5611
|
-
isError(error: unknown): error is
|
|
6417
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5612
6418
|
};
|
|
5613
6419
|
type PrepareRedeemComboPositionError = PrepareRedeemPositionsError;
|
|
5614
6420
|
declare const PrepareRedeemComboPositionError: {
|
|
5615
|
-
isError(error: unknown): error is
|
|
6421
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5616
6422
|
};
|
|
5617
6423
|
/**
|
|
5618
6424
|
* Starts a split workflow for a market condition.
|
|
@@ -5660,15 +6466,15 @@ declare function prepareSplitComboPosition(client: BaseSecureClient, request: Pr
|
|
|
5660
6466
|
declare function prepareSplitPosition(client: BaseSecureClient, request: PrepareSplitPositionRequest): Promise<SplitPositionWorkflow>;
|
|
5661
6467
|
type SplitPositionError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5662
6468
|
declare const SplitPositionError: {
|
|
5663
|
-
isError(error: unknown): error is
|
|
6469
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
5664
6470
|
};
|
|
5665
6471
|
type SplitMarketPositionError = SplitPositionError;
|
|
5666
6472
|
declare const SplitMarketPositionError: {
|
|
5667
|
-
isError(error: unknown): error is
|
|
6473
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
5668
6474
|
};
|
|
5669
6475
|
type SplitComboPositionError = SplitPositionError;
|
|
5670
6476
|
declare const SplitComboPositionError: {
|
|
5671
|
-
isError(error: unknown): error is
|
|
6477
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
5672
6478
|
};
|
|
5673
6479
|
/**
|
|
5674
6480
|
* Splits collateral into market positions.
|
|
@@ -5772,15 +6578,15 @@ declare function prepareMergeComboPosition(client: BaseSecureClient, request: Pr
|
|
|
5772
6578
|
declare function prepareMergePositions(client: BaseSecureClient, request: PrepareMergePositionsRequest): Promise<MergePositionsWorkflow>;
|
|
5773
6579
|
type MergePositionsError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5774
6580
|
declare const MergePositionsError: {
|
|
5775
|
-
isError(error: unknown): error is
|
|
6581
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
5776
6582
|
};
|
|
5777
6583
|
type MergeMarketPositionError = MergePositionsError;
|
|
5778
6584
|
declare const MergeMarketPositionError: {
|
|
5779
|
-
isError(error: unknown): error is
|
|
6585
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
5780
6586
|
};
|
|
5781
6587
|
type MergeComboPositionError = MergePositionsError;
|
|
5782
6588
|
declare const MergeComboPositionError: {
|
|
5783
|
-
isError(error: unknown): error is
|
|
6589
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
5784
6590
|
};
|
|
5785
6591
|
/**
|
|
5786
6592
|
* Merges complementary market positions back into collateral.
|
|
@@ -5906,7 +6712,7 @@ declare function prepareRedeemComboPosition(client: BaseSecureClient, request: P
|
|
|
5906
6712
|
declare function prepareRedeemPositions(client: BaseSecureClient, request: PrepareRedeemPositionsRequest): Promise<RedeemPositionsWorkflow>;
|
|
5907
6713
|
type RedeemPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
|
|
5908
6714
|
declare const RedeemPositionsError: {
|
|
5909
|
-
isError(error: unknown): error is
|
|
6715
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
|
|
5910
6716
|
};
|
|
5911
6717
|
/**
|
|
5912
6718
|
* Redeems resolved market or combo positions.
|
|
@@ -5925,7 +6731,7 @@ declare const FetchPublicProfileRequestSchema: z.ZodObject<{
|
|
|
5925
6731
|
type FetchPublicProfileRequest = z.input<typeof FetchPublicProfileRequestSchema>;
|
|
5926
6732
|
type FetchPublicProfileError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5927
6733
|
declare const FetchPublicProfileError: {
|
|
5928
|
-
isError(error: unknown): error is
|
|
6734
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5929
6735
|
};
|
|
5930
6736
|
/**
|
|
5931
6737
|
* Fetches a public profile by wallet address.
|
|
@@ -5976,7 +6782,7 @@ type SearchResults = {
|
|
|
5976
6782
|
};
|
|
5977
6783
|
type SearchError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5978
6784
|
declare const SearchError: {
|
|
5979
|
-
isError(error: unknown): error is
|
|
6785
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5980
6786
|
};
|
|
5981
6787
|
/**
|
|
5982
6788
|
* Runs a public full-text search.
|
|
@@ -6030,7 +6836,7 @@ type ListSeriesRequest = z.input<typeof ListSeriesRequestSchema>;
|
|
|
6030
6836
|
type FetchSeriesRequest = z.input<typeof FetchSeriesRequestSchema>;
|
|
6031
6837
|
type ListSeriesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6032
6838
|
declare const ListSeriesError: {
|
|
6033
|
-
isError(error: unknown): error is
|
|
6839
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6034
6840
|
};
|
|
6035
6841
|
/**
|
|
6036
6842
|
* Lists series.
|
|
@@ -6073,7 +6879,7 @@ declare const ListSeriesError: {
|
|
|
6073
6879
|
declare function listSeries(client: BaseClient, request?: ListSeriesRequest): Paginated<Series[]>;
|
|
6074
6880
|
type FetchSeriesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6075
6881
|
declare const FetchSeriesError: {
|
|
6076
|
-
isError(error: unknown): error is
|
|
6882
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6077
6883
|
};
|
|
6078
6884
|
/**
|
|
6079
6885
|
* Fetches a series.
|
|
@@ -6102,6 +6908,9 @@ type SportsEventType = SportsEvent['type'];
|
|
|
6102
6908
|
type CommentsEventType = CommentsEvent['type'];
|
|
6103
6909
|
type CryptoPricesEventType = CryptoPricesEvent['type'];
|
|
6104
6910
|
type EquityPricesEventType = EquityPricesEvent['type'];
|
|
6911
|
+
type PerpsMarketDataEventType = PerpsMarketDataEvent['type'];
|
|
6912
|
+
type PerpsStreamingCandleInterval = Exclude<PerpsKlineInterval, PerpsKlineInterval.OneSecond>;
|
|
6913
|
+
type PerpsInstrumentIdInput = number;
|
|
6105
6914
|
type MarketSubscription = {
|
|
6106
6915
|
topic: 'market';
|
|
6107
6916
|
/** Token IDs whose market events should be delivered. */
|
|
@@ -6134,9 +6943,35 @@ type EquityPricesSubscription = {
|
|
|
6134
6943
|
symbol: string;
|
|
6135
6944
|
types?: readonly EquityPricesEventType[];
|
|
6136
6945
|
};
|
|
6137
|
-
type
|
|
6946
|
+
type PerpsTradesSubscription = {
|
|
6947
|
+
topic: 'perps.trades';
|
|
6948
|
+
instrumentId: PerpsInstrumentIdInput;
|
|
6949
|
+
};
|
|
6950
|
+
type PerpsBboSubscription = {
|
|
6951
|
+
topic: 'perps.bbo';
|
|
6952
|
+
instrumentId: PerpsInstrumentIdInput;
|
|
6953
|
+
};
|
|
6954
|
+
type PerpsBookSubscription = {
|
|
6955
|
+
topic: 'perps.book';
|
|
6956
|
+
instrumentId: PerpsInstrumentIdInput;
|
|
6957
|
+
};
|
|
6958
|
+
type PerpsCandlesSubscription = {
|
|
6959
|
+
topic: 'perps.candles';
|
|
6960
|
+
instrumentId: PerpsInstrumentIdInput;
|
|
6961
|
+
interval: PerpsStreamingCandleInterval;
|
|
6962
|
+
};
|
|
6963
|
+
type PerpsTickersSubscription = {
|
|
6964
|
+
topic: 'perps.tickers';
|
|
6965
|
+
instrumentId?: PerpsInstrumentIdInput;
|
|
6966
|
+
};
|
|
6967
|
+
type PerpsStatisticsSubscription = {
|
|
6968
|
+
topic: 'perps.statistics';
|
|
6969
|
+
instrumentId?: PerpsInstrumentIdInput;
|
|
6970
|
+
};
|
|
6971
|
+
type PerpsMarketDataSubscription = PerpsTradesSubscription | PerpsBboSubscription | PerpsBookSubscription | PerpsCandlesSubscription | PerpsTickersSubscription | PerpsStatisticsSubscription;
|
|
6972
|
+
type PublicSubscriptionSpec = MarketSubscription | SportsSubscription | CommentsSubscription | CryptoPricesSubscription | EquityPricesSubscription | PerpsMarketDataSubscription;
|
|
6138
6973
|
type SecureSubscriptionSpec = PublicSubscriptionSpec | UserSubscription;
|
|
6139
|
-
type PublicRealtimeEvent = MarketEvent | SportsEvent | CommentsEvent | CryptoPricesEvent | EquityPricesEvent;
|
|
6974
|
+
type PublicRealtimeEvent = MarketEvent | SportsEvent | CommentsEvent | CryptoPricesEvent | EquityPricesEvent | PerpsMarketDataEvent;
|
|
6140
6975
|
type SecureRealtimeEvent = PublicRealtimeEvent | UserEvent;
|
|
6141
6976
|
type PublicRealtimeTopic = Prettify<PublicRealtimeEvent['topic']>;
|
|
6142
6977
|
type SecureRealtimeTopic = Prettify<SecureRealtimeEvent['topic']>;
|
|
@@ -6147,6 +6982,12 @@ type EventByTopic = {
|
|
|
6147
6982
|
'prices.crypto.binance': CryptoPricesBinanceEvent;
|
|
6148
6983
|
'prices.crypto.chainlink': CryptoPricesChainlinkEvent;
|
|
6149
6984
|
'prices.equity.pyth': EquityPricesEvent;
|
|
6985
|
+
'perps.trades': PerpsTradeEvent;
|
|
6986
|
+
'perps.bbo': PerpsBboEvent;
|
|
6987
|
+
'perps.book': PerpsBookEvent;
|
|
6988
|
+
'perps.candles': PerpsCandleEvent;
|
|
6989
|
+
'perps.tickers': PerpsTickerEvent;
|
|
6990
|
+
'perps.statistics': PerpsStatisticEvent;
|
|
6150
6991
|
};
|
|
6151
6992
|
type EventForMarketSubscription<TSpec extends MarketSubscription> = 'customFeatureEnabled' extends keyof TSpec ? true extends TSpec['customFeatureEnabled'] ? MarketEvent : StandardMarketEvent : StandardMarketEvent;
|
|
6152
6993
|
type EventForSubscriptionSpec<TSpec extends SecureSubscriptionSpec> = TSpec extends MarketSubscription ? EventForMarketSubscription<TSpec> : TSpec extends {
|
|
@@ -6240,7 +7081,7 @@ type FetchRelatedTagsRequest = z.input<typeof RelatedTagsByIdRequestSchema> | z.
|
|
|
6240
7081
|
type FetchRelatedTagResourcesRequest = z.input<typeof RelatedTagResourcesByIdRequestSchema> | z.input<typeof RelatedTagResourcesBySlugRequestSchema>;
|
|
6241
7082
|
type ListTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6242
7083
|
declare const ListTagsError: {
|
|
6243
|
-
isError(error: unknown): error is
|
|
7084
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6244
7085
|
};
|
|
6245
7086
|
/**
|
|
6246
7087
|
* Lists tags.
|
|
@@ -6283,7 +7124,7 @@ declare const ListTagsError: {
|
|
|
6283
7124
|
declare function listTags(client: BaseClient, request?: ListTagsRequest): Paginated<Tag[]>;
|
|
6284
7125
|
type FetchTagError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6285
7126
|
declare const FetchTagError: {
|
|
6286
|
-
isError(error: unknown): error is
|
|
7127
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6287
7128
|
};
|
|
6288
7129
|
/**
|
|
6289
7130
|
* Fetches a tag by id or slug.
|
|
@@ -6307,7 +7148,7 @@ declare const FetchTagError: {
|
|
|
6307
7148
|
declare function fetchTag(client: BaseClient, request: FetchTagRequest): Promise<Tag>;
|
|
6308
7149
|
type FetchRelatedTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6309
7150
|
declare const FetchRelatedTagsError: {
|
|
6310
|
-
isError(error: unknown): error is
|
|
7151
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6311
7152
|
};
|
|
6312
7153
|
/**
|
|
6313
7154
|
* Fetches related tag relationships by id or slug.
|
|
@@ -6332,7 +7173,7 @@ declare const FetchRelatedTagsError: {
|
|
|
6332
7173
|
declare function fetchRelatedTags(client: BaseClient, request: FetchRelatedTagsRequest): Promise<RelatedTag[]>;
|
|
6333
7174
|
type FetchRelatedTagResourcesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6334
7175
|
declare const FetchRelatedTagResourcesError: {
|
|
6335
|
-
isError(error: unknown): error is
|
|
7176
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6336
7177
|
};
|
|
6337
7178
|
/**
|
|
6338
7179
|
* Fetches resources linked from related tag relationships by id or slug.
|
|
@@ -6369,7 +7210,7 @@ declare const ListTeamsRequestSchema: z.ZodObject<{
|
|
|
6369
7210
|
type ListTeamsRequest = z.input<typeof ListTeamsRequestSchema>;
|
|
6370
7211
|
type ListTeamsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6371
7212
|
declare const ListTeamsError: {
|
|
6372
|
-
isError(error: unknown): error is
|
|
7213
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6373
7214
|
};
|
|
6374
7215
|
/**
|
|
6375
7216
|
* Lists teams.
|
|
@@ -6435,7 +7276,7 @@ declare const PrepareErc20TransferError: {
|
|
|
6435
7276
|
* const workflow = await prepareErc20Transfer(client, {
|
|
6436
7277
|
* amount: 1n,
|
|
6437
7278
|
* recipientAddress: client.account.signer,
|
|
6438
|
-
* tokenAddress: client.environment.collateralToken,
|
|
7279
|
+
* tokenAddress: client.environment.contracts.collateralToken,
|
|
6439
7280
|
* });
|
|
6440
7281
|
* ```
|
|
6441
7282
|
*
|
|
@@ -6445,7 +7286,7 @@ declare const PrepareErc20TransferError: {
|
|
|
6445
7286
|
declare function prepareErc20Transfer(client: BaseSecureClient, request: PrepareErc20TransferRequest): Promise<Erc20TransferWorkflow>;
|
|
6446
7287
|
type TransferErc20Error = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
|
|
6447
7288
|
declare const TransferErc20Error: {
|
|
6448
|
-
isError(error: unknown): error is
|
|
7289
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
|
|
6449
7290
|
};
|
|
6450
7291
|
/**
|
|
6451
7292
|
* Transfers ERC-20 tokens from the authenticated account.
|
|
@@ -6502,7 +7343,7 @@ type TransactionOutcome = {
|
|
|
6502
7343
|
};
|
|
6503
7344
|
type WaitForTransactionError = WaitForGaslessTransactionError;
|
|
6504
7345
|
declare const WaitForTransactionError: {
|
|
6505
|
-
isError(error: unknown): error is
|
|
7346
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError;
|
|
6506
7347
|
};
|
|
6507
7348
|
interface TransactionHandle {
|
|
6508
7349
|
/**
|
|
@@ -6529,4 +7370,4 @@ type Signer = {
|
|
|
6529
7370
|
sendTransaction(request: SignerTransactionRequest): Promise<TransactionHandle>;
|
|
6530
7371
|
};
|
|
6531
7372
|
|
|
6532
|
-
export { FetchRewardPercentagesError as $, type ApiKeyAuthorization as A, type BaseClient as B, CancelAllError as C, type DataActions as D, type EnvironmentConfig as E, FetchClosedOnlyModeError as F, FetchLastTradePricesError as G, FetchMarketError as H, FetchMarketTagsError as I, FetchMidpointError as J, FetchMidpointsError as K, FetchNotificationsError as L, FetchOrderBookError as M, FetchOrderBooksError as N, FetchOrderError as O, FetchOrderScoringError as P, FetchOrdersScoringError as Q, FetchPortfolioValueError as R, type Signer as S, type TypedDataPayload as T, UserInputError as U, FetchPriceError as V, FetchPriceHistoryError as W, FetchPricesError as X, FetchPublicProfileError as Y, FetchRelatedTagResourcesError as Z, FetchRelatedTagsError as _, type TypedData as a, type RfqQuoteRequestEvent as a$, FetchSeriesError as a0, FetchSpreadError as a1, FetchSpreadsError as a2, FetchTagError as a3, FetchTotalEarningsForUserForDayError as a4, FetchTradedMarketCountError as a5, InsufficientLiquidityError as a6, ListAccountTradesError as a7, ListActivityError as a8, ListBuilderLeaderboardError as a9, PageSizeSchema as aA, type Paginated as aB, PostOrderError as aC, PostOrdersError as aD, type PublicAccountActions as aE, type PublicActions as aF, type PublicClient as aG, type PublicClientOptions as aH, type PublicRewardsActions as aI, type PublicSubscriptionsActions as aJ, RateLimitError as aK, RedeemPositionsError as aL, RequestRejectedError as aM, type RequestRejectedErrorOptions as aN, type RfqCancelQuoteAck as aO, RfqCancelQuoteError as aP, RfqCancelQuoteRejectedError as aQ, type RfqCancelQuoteRejectedErrorOptions as aR, type RfqConfirmationAck as aS, RfqConfirmationError as aT, RfqConfirmationRejectedError as aU, type RfqConfirmationRequestEvent as aV, type RfqEvent as aW, RfqQuoteError as aX, type RfqQuoteReference as aY, RfqQuoteRejectedError as aZ, type RfqQuoteRejectedErrorOptions as a_, ListBuilderTradesError as aa, ListBuilderVolumeError as ab, ListClosedPositionsError as ac, ListComboMarketsError as ad, ListComboPositionsError as ae, ListCommentsByUserAddressError as af, ListCommentsError as ag, ListCurrentRewardsError as ah, ListEventsError as ai, ListMarketHoldersError as aj, ListMarketPositionsError as ak, ListMarketRewardsError as al, ListMarketsError as am, ListOpenInterestError as an, ListOpenOrdersError as ao, ListPositionsError as ap, ListSeriesError as aq, ListTagsError as ar, ListTeamsError as as, ListTraderLeaderboardError as at, ListTradesError as au, ListUserEarningsAndMarketsConfigError as av, ListUserEarningsForDayError as aw, MergePositionsError as ax, OpenRfqSessionError as ay, type Page as az, type TransactionCall as b, type Erc1155ApprovalForAllWorkflow as b$, type RfqQuoteResponse as b0, type RfqQuoteSource as b1, type RfqSession as b2, SearchError as b3, type SecureAccountActions as b4, type SecureActions as b5, type SecureClient as b6, type SecureClientOptions as b7, type SecureDownloadAccountingSnapshotRequest as b8, type SecureFetchPortfolioValueRequest as b9, accountActions as bA, allActions as bB, analyticsActions as bC, createPublicClient as bD, createSecureClient as bE, dataActions as bF, discoveryActions as bG, makeErrorGuard as bH, production as bI, rewardsActions as bJ, rfqActions as bK, subscriptionsActions as bL, tradingActions as bM, walletActions as bN, type CancelMarketOrdersRequest as bO, type CancelOrderRequest as bP, type CancelOrdersRequest as bQ, type CommentsEventType as bR, type CommentsSubscription as bS, type CryptoPricesEventType as bT, type CryptoPricesSubscription as bU, DeployDepositWalletError as bV, type DeprecatedTransactionHandle as bW, type DownloadAccountingSnapshotRequest as bX, type DropNotificationsRequest as bY, type EquityPricesEventType as bZ, type EquityPricesSubscription as b_, type SecureFetchTradedMarketCountRequest as ba, type SecureListActivityRequest as bb, type SecureListClosedPositionsRequest as bc, type SecureListComboPositionsRequest as bd, type SecureListPositionsRequest as be, type SecureRewardsActions as bf, type SecureRfqActions as bg, type SecureSubscriptionsActions as bh, type SecureTradingActions as bi, type SecureWalletActions as bj, SetupGaslessWalletError as bk, SetupTradingApprovalsError as bl, type SignerTransactionRequest as bm, SigningError as bn, SplitPositionError as bo, TimeoutError as bp, TransactionFailedError as bq, type TransactionHandle as br, type TransactionOutcome as bs, TransferErc20Error as bt, TransportError as bu, type TypedDataDomain as bv, type TypedDataField as bw, UnexpectedResponseError as bx, WaitForTransactionError as by, type WalletDerivationConfig as bz, type AccountIdentity as c, type ListComboPositionsRequest as c$, type Erc1155ApprovalForAllWorkflowRequest as c0, type Erc20ApprovalWorkflow as c1, type Erc20ApprovalWorkflowRequest as c2, type Erc20TransferWorkflow as c3, type Erc20TransferWorkflowRequest as c4, type EstimateMarketBuyPriceRequest as c5, type EstimateMarketPriceRequest as c6, type EstimateMarketSellPriceRequest as c7, type EventForSubscriptionSpec as c8, type EventForSubscriptionSpecs as c9, type FetchPortfolioValueRequest as cA, type FetchPriceHistoryRequest as cB, type FetchPriceRequest as cC, type FetchPricesRequest as cD, type FetchPublicProfileRequest as cE, type FetchRelatedTagResourcesRequest as cF, type FetchRelatedTagsRequest as cG, type FetchSeriesRequest as cH, type FetchSpreadRequest as cI, type FetchSpreadsRequest as cJ, type FetchTagRequest as cK, FetchTickSizeError as cL, type FetchTickSizeRequest as cM, type FetchTotalEarningsForUserForDayRequest as cN, type FetchTradedMarketCountRequest as cO, GaslessTransactionMetadataSchema as cP, type GaslessWorkflow as cQ, type GaslessWorkflowRequest as cR, IsWalletDeployedError as cS, type IsWalletDeployedRequest as cT, type ListAccountTradesRequest as cU, type ListActivityRequest as cV, type ListBuilderLeaderboardRequest as cW, type ListBuilderTradesRequest as cX, type ListBuilderVolumeRequest as cY, type ListClosedPositionsRequest as cZ, type ListComboMarketsRequest as c_, FetchBalanceAllowanceError as ca, type FetchBalanceAllowanceRequest as cb, FetchBuilderFeeRatesError as cc, type FetchBuilderFeeRatesRequest as cd, type FetchCommentsByIdRequest as ce, type FetchEventLiveVolumeRequest as cf, type FetchEventRequest as cg, type FetchEventTagsRequest as ch, FetchExecuteParamsError as ci, type FetchExecuteParamsRequest as cj, type FetchGaslessTransactionRequest as ck, type FetchLastTradePriceRequest as cl, type FetchLastTradePricesRequest as cm, FetchMarketInfoError as cn, type FetchMarketInfoRequest as co, type FetchMarketRequest as cp, type FetchMarketTagsRequest as cq, type FetchMidpointRequest as cr, type FetchMidpointsRequest as cs, FetchNegRiskError as ct, type FetchNegRiskRequest as cu, type FetchOrderBookRequest as cv, type FetchOrderBooksRequest as cw, type FetchOrderRequest as cx, type FetchOrderScoringRequest as cy, type FetchOrdersScoringRequest as cz, type AnalyticsActions as d, type PublicRealtimeEvent as d$, type ListCommentsByUserAddressRequest as d0, type ListCommentsRequest as d1, type ListCurrentRewardsRequest as d2, type ListEventsRequest as d3, type ListMarketHoldersRequest as d4, type ListMarketPositionsRequest as d5, type ListMarketRewardsRequest as d6, type ListMarketsRequest as d7, type ListOpenInterestRequest as d8, type ListOpenOrdersRequest as d9, PrepareGaslessTransactionError as dA, type PrepareGaslessTransactionRequest as dB, type PrepareLimitOrderRequest as dC, type PrepareMarketBuyOrderRequest as dD, type PrepareMarketOrderRequest as dE, type PrepareMarketSellOrderRequest as dF, PrepareMergeComboPositionError as dG, type PrepareMergeComboPositionRequest as dH, PrepareMergeMarketPositionError as dI, type PrepareMergeMarketPositionRequest as dJ, PrepareMergePositionsError as dK, type PrepareMergePositionsRequest as dL, PrepareRedeemComboPositionError as dM, type PrepareRedeemComboPositionRequest as dN, type PrepareRedeemMarketPositionsByConditionIdRequest as dO, type PrepareRedeemMarketPositionsByMarketIdRequest as dP, PrepareRedeemMarketPositionsError as dQ, type PrepareRedeemMarketPositionsRequest as dR, PrepareRedeemPositionsError as dS, type PrepareRedeemPositionsRequest as dT, PrepareSplitComboPositionError as dU, type PrepareSplitComboPositionRequest as dV, PrepareSplitMarketPositionError as dW, type PrepareSplitMarketPositionRequest as dX, PrepareSplitPositionError as dY, type PrepareSplitPositionRequest as dZ, PrepareTradingApprovalsError as d_, type ListPositionsRequest as da, type ListSeriesRequest as db, type ListTagsRequest as dc, type ListTeamsRequest as dd, type ListTraderLeaderboardRequest as de, type ListTradesRequest as df, type ListUserEarningsAndMarketsConfigRequest as dg, type ListUserEarningsForDayRequest as dh, type MarketEventType as di, type MarketSubscription as dj, MergeComboPositionError as dk, MergeMarketPositionError as dl, type MergePositionsWorkflow as dm, type MergePositionsWorkflowRequest as dn, type OrderDraft as dp, type OrderPostingWorkflow as dq, type OrderWorkflow as dr, type OrderWorkflowRequest as ds, type PostOrdersRequest as dt, PrepareErc1155ApprovalForAllError as du, type PrepareErc1155ApprovalForAllRequest as dv, PrepareErc20ApprovalError as dw, type PrepareErc20ApprovalRequest as dx, PrepareErc20TransferError as dy, type PrepareErc20TransferRequest as dz, ApproveErc1155ForAllError as e, fetchPrice as e$, type PublicRealtimeTopic as e0, type PublicSubscriptionSpec as e1, type RedeemPositionsWorkflow as e2, type RedeemPositionsWorkflowRequest as e3, ResolveConditionByTokenError as e4, type ResolveConditionByTokenRequest as e5, type RfqConfirmationRejectedErrorOptions as e6, type RfqExecutionUpdateEvent as e7, type SearchRequest as e8, type SearchResults as e9, downloadAccountingSnapshot as eA, dropNotifications as eB, estimateMarketPrice as eC, fetchBalanceAllowance as eD, fetchBuilderFeeRates as eE, fetchBuilderVolume as eF, fetchClosedOnlyMode as eG, fetchCommentsById as eH, fetchEvent as eI, fetchEventLiveVolume as eJ, fetchEventTags as eK, fetchExecuteParams as eL, fetchLastTradePrice as eM, fetchLastTradePrices as eN, fetchMarket as eO, fetchMarketInfo as eP, fetchMarketTags as eQ, fetchMidpoint as eR, fetchMidpoints as eS, fetchNegRisk as eT, fetchNotifications as eU, fetchOrder as eV, fetchOrderBook as eW, fetchOrderBooks as eX, fetchOrderScoring as eY, fetchOrdersScoring as eZ, fetchPortfolioValue as e_, type SecureRealtimeEvent as ea, type SecureRealtimeTopic as eb, type SecureSubscriptionSpec as ec, type SignedOrder as ed, SplitComboPositionError as ee, SplitMarketPositionError as ef, type SplitPositionWorkflow as eg, type SplitPositionWorkflowRequest as eh, type SportsEventType as ei, type SportsSubscription as ej, type SubscribeError as ek, type SubscriptionHandle as el, type TradingApprovalsWorkflow as em, type TradingApprovalsWorkflowRequest as en, UpdateBalanceAllowanceError as eo, type UpdateBalanceAllowanceRequest as ep, type UserEventType as eq, type UserSubscription as er, WaitForGaslessTransactionError as es, approveErc1155ForAll as et, approveErc20 as eu, cancelAll as ev, cancelMarketOrders as ew, cancelOrder as ex, cancelOrders as ey, deployDepositWallet as ez, ApproveErc20Error as f, setupTradingApprovals as f$, fetchPriceHistory as f0, fetchPrices as f1, fetchPublicProfile as f2, fetchRelatedTagResources as f3, fetchRelatedTags as f4, fetchRewardPercentages as f5, fetchSeries as f6, fetchSpread as f7, fetchSpreads as f8, fetchTag as f9, listTraderLeaderboard as fA, listTrades as fB, listUserEarningsAndMarketsConfig as fC, listUserEarningsForDay as fD, mergeComboPosition as fE, mergeMarketPosition as fF, mergePositions as fG, openRfqSession as fH, postOrder as fI, postOrders as fJ, prepareErc1155ApprovalForAll as fK, prepareErc20Approval as fL, prepareErc20Transfer as fM, prepareGaslessTransaction as fN, prepareMergeComboPosition as fO, prepareMergeMarketPosition as fP, prepareMergePositions as fQ, prepareRedeemComboPosition as fR, prepareRedeemMarketPositions as fS, prepareRedeemPositions as fT, prepareSplitComboPosition as fU, prepareSplitMarketPosition as fV, prepareSplitPosition as fW, prepareTradingApprovals as fX, redeemPositions as fY, resolveConditionByToken as fZ, search as f_, fetchTickSize as fa, fetchTotalEarningsForUserForDay as fb, fetchTradedMarketCount as fc, fetchTransaction as fd, isWalletDeployed as fe, listAccountTrades as ff, listActivity as fg, listBuilderLeaderboard as fh, listBuilderTrades as fi, listClosedPositions as fj, listComboMarkets as fk, listComboPositions as fl, listComments as fm, listCommentsByUserAddress as fn, listCurrentRewards as fo, listEvents as fp, listMarketHolders as fq, listMarketPositions as fr, listMarketRewards as fs, listMarkets as ft, listOpenInterest as fu, listOpenOrders as fv, listPositions as fw, listSeries as fx, listTags as fy, listTeams as fz, BasePublicClient as g, splitComboPosition as g0, splitMarketPosition as g1, splitPosition as g2, subscribe as g3, transferErc20 as g4, updateBalanceAllowance as g5, BaseSecureClient as h, type BeginAuthenticationRequest as i, CancelMarketOrdersError as j, CancelOrderError as k, CancelOrdersError as l, CancelledSigningError as m, type Client as n, type ClientActions as o, type ClientDecorator as p, CreateSecureClientError as q, type DiscoveryActions as r, DownloadAccountingSnapshotError as s, DropNotificationsError as t, EstimateMarketPriceError as u, FetchCommentsByIdError as v, FetchEventError as w, FetchEventLiveVolumeError as x, FetchEventTagsError as y, FetchLastTradePriceError as z };
|
|
7373
|
+
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, walletActions 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, TimeoutError as bA, TransactionFailedError as bB, type TransactionHandle as bC, type TransactionOutcome as bD, TransferErc20Error as bE, TransportError as bF, type TypedDataDomain as bG, type TypedDataField as bH, UnexpectedResponseError as bI, WaitForTransactionError as bJ, type WalletDerivationConfig as bK, type WebSocketEndpoint as bL, accountActions as bM, allActions as bN, analyticsActions as bO, createPublicClient as bP, createSecureClient as bQ, dataActions as bR, discoveryActions as bS, forkEnvironmentConfig as bT, makeErrorGuard as bU, perpsActions as bV, production as bW, rewardsActions as bX, rfqActions as bY, subscriptionsActions as bZ, tradingActions as b_, type RfqQuoteSource as ba, type RfqSession as bb, type RfqTradeEvent as bc, SearchError as bd, type SecureAccountActions as be, type SecureActions as bf, type SecureClient as bg, type SecureClientOptions as bh, type SecureDownloadAccountingSnapshotRequest as bi, type SecureFetchPortfolioValueRequest as bj, type SecureFetchTradedMarketCountRequest as bk, type SecureListActivityRequest as bl, type SecureListClosedPositionsRequest as bm, type SecureListComboPositionsRequest as bn, type SecureListPositionsRequest as bo, type SecurePerpsActions as bp, type SecureRewardsActions as bq, type SecureRfqActions as br, type SecureSubscriptionsActions as bs, type SecureTradingActions as bt, type SecureWalletActions as bu, SetupGaslessWalletError as bv, SetupTradingApprovalsError as bw, type SignerTransactionRequest as bx, SigningError as by, SplitPositionError as bz, type AccountIdentity as c, FetchPerpsTickerError as c$, type CancelMarketOrdersRequest as c0, type CancelOrderRequest as c1, type CancelOrdersRequest as c2, type CancelPerpsOrderRequest as c3, type CancelPerpsOrdersRequest as c4, type CommentsEventType as c5, type CommentsSubscription as c6, type CreatePerpsSessionRequest as c7, type CryptoPricesEventType as c8, type CryptoPricesSubscription as c9, type FetchEventTagsRequest as cA, FetchExecuteParamsError as cB, type FetchExecuteParamsRequest as cC, type FetchGaslessTransactionRequest as cD, type FetchLastTradePriceRequest as cE, type FetchLastTradePricesRequest as cF, FetchMarketInfoError as cG, type FetchMarketInfoRequest as cH, type FetchMarketRequest as cI, type FetchMarketTagsRequest as cJ, type FetchMidpointRequest as cK, type FetchMidpointsRequest as cL, FetchNegRiskError as cM, type FetchNegRiskRequest as cN, type FetchOrderBookRequest as cO, type FetchOrderBooksRequest as cP, type FetchOrderRequest as cQ, type FetchOrderScoringRequest as cR, type FetchOrdersScoringRequest as cS, type FetchPerpsAccountConfigRequest as cT, FetchPerpsBookError as cU, type FetchPerpsBookRequest as cV, FetchPerpsFeesError as cW, FetchPerpsInstrumentsError as cX, type FetchPerpsInstrumentsRequest as cY, type FetchPerpsOpenOrdersRequest as cZ, type FetchPerpsOrdersRequest as c_, DeployDepositWalletError as ca, DepositToPerpsError as cb, type DepositToPerpsRequest as cc, type DeprecatedTransactionHandle as cd, type DownloadAccountingSnapshotRequest as ce, type DropNotificationsRequest as cf, type EquityPricesEventType as cg, type EquityPricesSubscription as ch, type Erc1155ApprovalForAllWorkflow as ci, type Erc1155ApprovalForAllWorkflowRequest as cj, type Erc20ApprovalWorkflow as ck, type Erc20ApprovalWorkflowRequest as cl, type Erc20TransferWorkflow as cm, type Erc20TransferWorkflowRequest as cn, type EstimateMarketBuyPriceRequest as co, type EstimateMarketPriceRequest as cp, type EstimateMarketSellPriceRequest as cq, type EventForSubscriptionSpec as cr, type EventForSubscriptionSpecs as cs, FetchBalanceAllowanceError as ct, type FetchBalanceAllowanceRequest as cu, FetchBuilderFeeRatesError as cv, type FetchBuilderFeeRatesRequest as cw, type FetchCommentsByIdRequest as cx, type FetchEventLiveVolumeRequest as cy, type FetchEventRequest as cz, type AnalyticsActions as d, type MarketSubscription as d$, type FetchPerpsTickerRequest as d0, FetchPerpsTickersError as d1, type FetchPerpsTickersRequest as d2, type FetchPortfolioValueRequest as d3, type FetchPriceHistoryRequest as d4, type FetchPriceRequest as d5, type FetchPricesRequest as d6, type FetchPublicProfileRequest as d7, type FetchRelatedTagResourcesRequest as d8, type FetchRelatedTagsRequest as d9, type ListMarketHoldersRequest as dA, type ListMarketPositionsRequest as dB, type ListMarketRewardsRequest as dC, type ListMarketsRequest as dD, type ListOpenInterestRequest as dE, type ListOpenOrdersRequest as dF, ListPerpsCandlesError as dG, type ListPerpsCandlesRequest as dH, type ListPerpsDepositsRequest as dI, type ListPerpsEquityHistoryRequest as dJ, type ListPerpsFillsRequest as dK, ListPerpsFundingHistoryError as dL, type ListPerpsFundingHistoryRequest as dM, type ListPerpsFundingPaymentsRequest as dN, type ListPerpsPnlHistoryRequest as dO, ListPerpsTradesError as dP, type ListPerpsTradesRequest as dQ, type ListPerpsWithdrawalsRequest as dR, type ListPositionsRequest as dS, type ListSeriesRequest as dT, type ListTagsRequest as dU, type ListTeamsRequest as dV, type ListTraderLeaderboardRequest as dW, type ListTradesRequest as dX, type ListUserEarningsAndMarketsConfigRequest as dY, type ListUserEarningsForDayRequest as dZ, type MarketEventType as d_, type FetchSeriesRequest as da, type FetchSpreadRequest as db, type FetchSpreadsRequest as dc, type FetchTagRequest as dd, FetchTickSizeError as de, type FetchTickSizeRequest as df, type FetchTotalEarningsForUserForDayRequest as dg, type FetchTradedMarketCountRequest as dh, GaslessTransactionMetadataSchema as di, type GaslessWorkflow as dj, type GaslessWorkflowRequest as dk, IsWalletDeployedError as dl, type IsWalletDeployedRequest as dm, type ListAccountTradesRequest as dn, type ListActivityRequest as dp, type ListBuilderLeaderboardRequest as dq, type ListBuilderTradesRequest as dr, type ListBuilderVolumeRequest as ds, type ListClosedPositionsRequest as dt, type ListComboMarketsRequest as du, type ListComboPositionsRequest as dv, type ListCommentsByUserAddressRequest as dw, type ListCommentsRequest as dx, type ListCurrentRewardsRequest as dy, type ListEventsRequest as dz, ApproveErc1155ForAllError as e, type RedeemPositionsWorkflow as e$, MergeComboPositionError as e0, MergeMarketPositionError as e1, type MergePositionsWorkflow as e2, type MergePositionsWorkflowRequest as e3, type ModifyPerpsOrderRequest as e4, type ModifyPerpsOrdersRequest as e5, OpenPerpsSessionError as e6, type OpenPerpsSessionRequest as e7, type OrderDraft as e8, type OrderPostingWorkflow as e9, type PrepareMarketOrderRequest as eA, type PrepareMarketSellOrderRequest as eB, PrepareMergeComboPositionError as eC, type PrepareMergeComboPositionRequest as eD, PrepareMergeMarketPositionError as eE, type PrepareMergeMarketPositionRequest as eF, PrepareMergePositionsError as eG, type PrepareMergePositionsRequest as eH, PreparePerpsDepositError as eI, PrepareRedeemComboPositionError as eJ, type PrepareRedeemComboPositionRequest as eK, type PrepareRedeemMarketPositionsByConditionIdRequest as eL, type PrepareRedeemMarketPositionsByMarketIdRequest as eM, PrepareRedeemMarketPositionsError as eN, type PrepareRedeemMarketPositionsRequest as eO, PrepareRedeemPositionsError as eP, type PrepareRedeemPositionsRequest as eQ, PrepareSplitComboPositionError as eR, type PrepareSplitComboPositionRequest as eS, PrepareSplitMarketPositionError as eT, type PrepareSplitMarketPositionRequest as eU, PrepareSplitPositionError as eV, type PrepareSplitPositionRequest as eW, PrepareTradingApprovalsError as eX, type PublicRealtimeEvent as eY, type PublicRealtimeTopic as eZ, type PublicSubscriptionSpec as e_, type OrderWorkflow as ea, type OrderWorkflowRequest as eb, type PerpsBboSubscription as ec, type PerpsBookSubscription as ed, type PerpsCandlesSubscription as ee, type PerpsDepositWorkflow as ef, type PerpsDepositWorkflowRequest as eg, type PerpsMarketDataEventType as eh, type PerpsMarketDataSubscription as ei, type PerpsStatisticsSubscription as ej, type PerpsStreamingCandleInterval as ek, type PerpsTickersSubscription as el, type PerpsTradesSubscription as em, type PlacePerpsOrderRequest as en, type PlacePerpsOrdersRequest as eo, type PostOrdersRequest as ep, PrepareErc1155ApprovalForAllError as eq, type PrepareErc1155ApprovalForAllRequest as er, PrepareErc20ApprovalError as es, type PrepareErc20ApprovalRequest as et, PrepareErc20TransferError as eu, type PrepareErc20TransferRequest as ev, PrepareGaslessTransactionError as ew, type PrepareGaslessTransactionRequest as ex, type PrepareLimitOrderRequest as ey, type PrepareMarketBuyOrderRequest as ez, ApproveErc20Error as f, fetchOrderBook as f$, type RedeemPositionsWorkflowRequest as f0, ResolveConditionByTokenError as f1, type ResolveConditionByTokenRequest as f2, type ResumePerpsSessionRequest as f3, RevokePerpsCredentialsError as f4, type RevokePerpsCredentialsRequest as f5, type RfqConfirmationRejectedErrorOptions as f6, type RfqExecutionUpdateEvent as f7, type SearchRequest as f8, type SearchResults as f9, cancelMarketOrders as fA, cancelOrder as fB, cancelOrders as fC, deployDepositWallet as fD, depositToPerps as fE, downloadAccountingSnapshot as fF, dropNotifications as fG, estimateMarketPrice as fH, fetchBalanceAllowance as fI, fetchBuilderFeeRates as fJ, fetchBuilderVolume as fK, fetchClosedOnlyMode as fL, fetchCommentsById as fM, fetchEvent as fN, fetchEventLiveVolume as fO, fetchEventTags as fP, fetchExecuteParams as fQ, fetchLastTradePrice as fR, fetchLastTradePrices as fS, fetchMarket as fT, fetchMarketInfo as fU, fetchMarketTags as fV, fetchMidpoint as fW, fetchMidpoints as fX, fetchNegRisk as fY, fetchNotifications as fZ, fetchOrder as f_, type SecureRealtimeEvent as fa, type SecureRealtimeTopic as fb, type SecureSubscriptionSpec as fc, type SignedOrder as fd, SplitComboPositionError as fe, SplitMarketPositionError as ff, type SplitPositionWorkflow as fg, type SplitPositionWorkflowRequest as fh, type SportsEventType as fi, type SportsSubscription as fj, type SubscribeError as fk, type SubscriptionHandle as fl, type TradingApprovalsWorkflow as fm, type TradingApprovalsWorkflowRequest as fn, UpdateBalanceAllowanceError as fo, type UpdateBalanceAllowanceRequest as fp, type UpdatePerpsLeverageRequest as fq, type UpdatePerpsMarginRequest as fr, type UserEventType as fs, type UserSubscription as ft, WaitForGaslessTransactionError as fu, WithdrawFromPerpsError as fv, type WithdrawFromPerpsRequest as fw, approveErc1155ForAll as fx, approveErc20 as fy, cancelAll as fz, BasePublicClient as g, prepareGaslessTransaction as g$, fetchOrderBooks as g0, fetchOrderScoring as g1, fetchOrdersScoring as g2, fetchPerpsBook as g3, fetchPerpsFees as g4, fetchPerpsInstruments as g5, fetchPerpsTicker as g6, fetchPerpsTickers as g7, fetchPortfolioValue as g8, fetchPrice as g9, listMarketHolders as gA, listMarketPositions as gB, listMarketRewards as gC, listMarkets as gD, listOpenInterest as gE, listOpenOrders as gF, listPerpsCandles as gG, listPerpsFundingHistory as gH, listPerpsTrades as gI, listPositions as gJ, listSeries as gK, listTags as gL, listTeams as gM, listTraderLeaderboard as gN, listTrades as gO, listUserEarningsAndMarketsConfig as gP, listUserEarningsForDay as gQ, mergeComboPosition as gR, mergeMarketPosition as gS, mergePositions as gT, openPerpsSession as gU, openRfqSession as gV, postOrder as gW, postOrders as gX, prepareErc1155ApprovalForAll as gY, prepareErc20Approval as gZ, prepareErc20Transfer as g_, fetchPriceHistory as ga, fetchPrices as gb, fetchPublicProfile as gc, fetchRelatedTagResources as gd, fetchRelatedTags as ge, fetchRewardPercentages as gf, fetchSeries as gg, fetchSpread as gh, fetchSpreads as gi, fetchTag as gj, fetchTickSize as gk, fetchTotalEarningsForUserForDay as gl, fetchTradedMarketCount as gm, fetchTransaction as gn, isWalletDeployed as go, listAccountTrades as gp, listActivity as gq, listBuilderLeaderboard as gr, listBuilderTrades as gs, listClosedPositions as gt, listComboMarkets as gu, listComboPositions as gv, listComments as gw, listCommentsByUserAddress as gx, listCurrentRewards as gy, listEvents as gz, BaseSecureClient as h, prepareMergeComboPosition as h0, prepareMergeMarketPosition as h1, prepareMergePositions as h2, preparePerpsDeposit as h3, prepareRedeemComboPosition as h4, prepareRedeemMarketPositions as h5, prepareRedeemPositions as h6, prepareSplitComboPosition as h7, prepareSplitMarketPosition as h8, prepareSplitPosition as h9, prepareTradingApprovals as ha, redeemPositions as hb, resolveConditionByToken as hc, revokePerpsCredentials as hd, search as he, setupTradingApprovals as hf, splitComboPosition as hg, splitMarketPosition as hh, splitPosition as hi, subscribe as hj, transferErc20 as hk, updateBalanceAllowance as hl, withdrawFromPerps as hm, 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 };
|