@polymarket/client 0.1.0-beta.6 → 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-DNd7kOz2.d.ts → sports-_kLx9-gD.d.ts} +35 -13
- package/dist/{types-DLNcPNT6.d.ts → types-5uGoLhNm.d.ts} +1015 -118
- package/dist/viem.d.ts +2 -1
- package/package.json +3 -2
- package/dist/chunk-2ZZDFOKL.js +0 -2
- package/dist/chunk-2ZZDFOKL.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.
|
|
@@ -1348,6 +1355,10 @@ type DiscoveryActions = {
|
|
|
1348
1355
|
/**
|
|
1349
1356
|
* Lists markets.
|
|
1350
1357
|
*
|
|
1358
|
+
* @remarks
|
|
1359
|
+
* Legacy multi-outcome markets cannot be represented by the binary
|
|
1360
|
+
* {@link Market} model and are omitted from results.
|
|
1361
|
+
*
|
|
1351
1362
|
* @throws {@link ListMarketsError}
|
|
1352
1363
|
* Thrown on failure.
|
|
1353
1364
|
*
|
|
@@ -1427,6 +1438,11 @@ type DiscoveryActions = {
|
|
|
1427
1438
|
/**
|
|
1428
1439
|
* Fetches a market.
|
|
1429
1440
|
*
|
|
1441
|
+
* @remarks
|
|
1442
|
+
* Legacy multi-outcome markets cannot be represented by the binary
|
|
1443
|
+
* {@link Market} model, so fetching one fails with an
|
|
1444
|
+
* `UnexpectedResponseError`.
|
|
1445
|
+
*
|
|
1430
1446
|
* @throws {@link FetchMarketError}
|
|
1431
1447
|
* Thrown on failure.
|
|
1432
1448
|
*
|
|
@@ -1776,6 +1792,105 @@ type DiscoveryActions = {
|
|
|
1776
1792
|
declare function discoveryActions(client: BasePublicClient): DiscoveryActions;
|
|
1777
1793
|
declare function discoveryActions(client: BaseSecureClient): DiscoveryActions;
|
|
1778
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
|
+
|
|
1779
1894
|
type PublicRewardsActions = {
|
|
1780
1895
|
/**
|
|
1781
1896
|
* Lists current active market rewards.
|
|
@@ -2014,6 +2129,8 @@ type RfqQuoteResponse = {
|
|
|
2014
2129
|
type RfqQuoteRejectedErrorOptions = {
|
|
2015
2130
|
/** RFQ error code for the rejected quote. */
|
|
2016
2131
|
code?: RfqErrorCode;
|
|
2132
|
+
/** Error identifier for the rejected quote. */
|
|
2133
|
+
errorId?: string;
|
|
2017
2134
|
/** RFQ identifier for the rejected quote. */
|
|
2018
2135
|
rfqId: RfqId;
|
|
2019
2136
|
};
|
|
@@ -2023,16 +2140,19 @@ type RfqQuoteRejectedErrorOptions = {
|
|
|
2023
2140
|
declare class RfqQuoteRejectedError extends PolymarketError {
|
|
2024
2141
|
name: "RfqQuoteRejectedError";
|
|
2025
2142
|
readonly code: RfqErrorCode | undefined;
|
|
2143
|
+
readonly errorId: string | undefined;
|
|
2026
2144
|
readonly rfqId: RfqId;
|
|
2027
2145
|
constructor(message: string, options: ErrorOptions & RfqQuoteRejectedErrorOptions);
|
|
2028
2146
|
}
|
|
2029
2147
|
type RfqQuoteError = RfqQuoteRejectedError | SigningError | TimeoutError | TransportError | UserInputError;
|
|
2030
2148
|
declare const RfqQuoteError: {
|
|
2031
|
-
isError(error: unknown): error is
|
|
2149
|
+
isError(error: unknown): error is UserInputError | TransportError | TimeoutError | SigningError | RfqQuoteRejectedError;
|
|
2032
2150
|
};
|
|
2033
2151
|
type RfqCancelQuoteRejectedErrorOptions = {
|
|
2034
2152
|
/** RFQ error code for the rejected cancellation request. */
|
|
2035
2153
|
code?: RfqErrorCode;
|
|
2154
|
+
/** Error identifier for the rejected cancellation request. */
|
|
2155
|
+
errorId?: string;
|
|
2036
2156
|
/** RFQ identifier for the cancellation request. */
|
|
2037
2157
|
rfqId: RfqId;
|
|
2038
2158
|
/** Quote identifier for the cancellation request. */
|
|
@@ -2044,6 +2164,7 @@ type RfqCancelQuoteRejectedErrorOptions = {
|
|
|
2044
2164
|
declare class RfqCancelQuoteRejectedError extends PolymarketError {
|
|
2045
2165
|
name: "RfqCancelQuoteRejectedError";
|
|
2046
2166
|
readonly code: RfqErrorCode | undefined;
|
|
2167
|
+
readonly errorId: string | undefined;
|
|
2047
2168
|
readonly rfqId: RfqId;
|
|
2048
2169
|
readonly quoteId: RfqQuoteId;
|
|
2049
2170
|
constructor(message: string, options: ErrorOptions & RfqCancelQuoteRejectedErrorOptions);
|
|
@@ -2055,6 +2176,8 @@ declare const RfqCancelQuoteError: {
|
|
|
2055
2176
|
type RfqConfirmationRejectedErrorOptions = {
|
|
2056
2177
|
/** RFQ error code for the rejected confirmation decision. */
|
|
2057
2178
|
code?: RfqErrorCode;
|
|
2179
|
+
/** Error identifier for the rejected confirmation decision. */
|
|
2180
|
+
errorId?: string;
|
|
2058
2181
|
/** RFQ identifier for the rejected confirmation decision. */
|
|
2059
2182
|
rfqId: RfqId;
|
|
2060
2183
|
/** Quote identifier for the rejected confirmation decision. */
|
|
@@ -2066,6 +2189,7 @@ type RfqConfirmationRejectedErrorOptions = {
|
|
|
2066
2189
|
declare class RfqConfirmationRejectedError extends PolymarketError {
|
|
2067
2190
|
name: "RfqConfirmationRejectedError";
|
|
2068
2191
|
readonly code: RfqErrorCode | undefined;
|
|
2192
|
+
readonly errorId: string | undefined;
|
|
2069
2193
|
readonly rfqId: RfqId;
|
|
2070
2194
|
readonly quoteId: RfqQuoteId;
|
|
2071
2195
|
constructor(message: string, options: ErrorOptions & RfqConfirmationRejectedErrorOptions);
|
|
@@ -2142,10 +2266,15 @@ interface RfqConfirmationRequestEvent extends RfqConfirmationRequest {
|
|
|
2142
2266
|
*/
|
|
2143
2267
|
interface RfqExecutionUpdateEvent extends RfqExecutionUpdate {
|
|
2144
2268
|
}
|
|
2269
|
+
/**
|
|
2270
|
+
* Confirmed combo trade broadcast visible to all authenticated quoters.
|
|
2271
|
+
*/
|
|
2272
|
+
interface RfqTradeEvent extends RfqTrade {
|
|
2273
|
+
}
|
|
2145
2274
|
/**
|
|
2146
2275
|
* Event emitted by an RFQ session.
|
|
2147
2276
|
*/
|
|
2148
|
-
type RfqEvent = RfqQuoteRequestEvent | RfqConfirmationRequestEvent | RfqExecutionUpdateEvent;
|
|
2277
|
+
type RfqEvent = RfqQuoteRequestEvent | RfqConfirmationRequestEvent | RfqExecutionUpdateEvent | RfqTradeEvent;
|
|
2149
2278
|
interface RfqSession extends AsyncIterable<RfqEvent> {
|
|
2150
2279
|
/**
|
|
2151
2280
|
* Requests cancellation of a submitted RFQ quote.
|
|
@@ -2375,7 +2504,7 @@ declare const CancelMarketOrdersRequestSchema: z.ZodObject<{
|
|
|
2375
2504
|
type CancelOrderRequest = z.input<typeof CancelOrderRequestSchema>;
|
|
2376
2505
|
type CancelOrderError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2377
2506
|
declare const CancelOrderError: {
|
|
2378
|
-
isError(error: unknown): error is
|
|
2507
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
2379
2508
|
};
|
|
2380
2509
|
/**
|
|
2381
2510
|
* Cancels a single open order for the authenticated account.
|
|
@@ -2399,7 +2528,7 @@ declare function cancelOrder(client: BaseSecureClient, request: CancelOrderReque
|
|
|
2399
2528
|
type CancelOrdersRequest = z.input<typeof CancelOrdersRequestSchema>;
|
|
2400
2529
|
type CancelOrdersError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2401
2530
|
declare const CancelOrdersError: {
|
|
2402
|
-
isError(error: unknown): error is
|
|
2531
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
2403
2532
|
};
|
|
2404
2533
|
/**
|
|
2405
2534
|
* Cancels multiple open orders for the authenticated account.
|
|
@@ -2422,7 +2551,7 @@ declare const CancelOrdersError: {
|
|
|
2422
2551
|
declare function cancelOrders(client: BaseSecureClient, request: CancelOrdersRequest): Promise<CancelOrdersResponse>;
|
|
2423
2552
|
type CancelAllError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError;
|
|
2424
2553
|
declare const CancelAllError: {
|
|
2425
|
-
isError(error: unknown): error is
|
|
2554
|
+
isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
2426
2555
|
};
|
|
2427
2556
|
/**
|
|
2428
2557
|
* Cancels all open orders for the authenticated account.
|
|
@@ -2444,7 +2573,7 @@ declare function cancelAll(client: BaseSecureClient): Promise<CancelOrdersRespon
|
|
|
2444
2573
|
type CancelMarketOrdersRequest = z.input<typeof CancelMarketOrdersRequestSchema>;
|
|
2445
2574
|
type CancelMarketOrdersError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2446
2575
|
declare const CancelMarketOrdersError: {
|
|
2447
|
-
isError(error: unknown): error is
|
|
2576
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
2448
2577
|
};
|
|
2449
2578
|
/**
|
|
2450
2579
|
* Cancels all open orders for the authenticated account that match the market
|
|
@@ -2498,7 +2627,7 @@ type EstimateMarketSellPriceRequest = {
|
|
|
2498
2627
|
type EstimateMarketPriceRequest = EstimateMarketBuyPriceRequest | EstimateMarketSellPriceRequest;
|
|
2499
2628
|
type EstimateMarketPriceError = InsufficientLiquidityError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2500
2629
|
declare const EstimateMarketPriceError: {
|
|
2501
|
-
isError(error: unknown): error is
|
|
2630
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | InsufficientLiquidityError;
|
|
2502
2631
|
};
|
|
2503
2632
|
/**
|
|
2504
2633
|
* Estimates the price level a market order would cross at current book depth.
|
|
@@ -2571,6 +2700,15 @@ type PrepareMarketBuyOrderRequest = BasePrepareMarketOrderRequest & {
|
|
|
2571
2700
|
* fees. Leave it unset to pay fees on top of `amount`.
|
|
2572
2701
|
*/
|
|
2573
2702
|
maxSpend?: number | string;
|
|
2703
|
+
/**
|
|
2704
|
+
* Highest acceptable price per share for the BUY.
|
|
2705
|
+
*
|
|
2706
|
+
* The order may only fill at this price or better. For FOK, the full
|
|
2707
|
+
* `amount` must fill within this bound or the order is killed. For FAK, any
|
|
2708
|
+
* immediately available liquidity within this bound fills and the remainder
|
|
2709
|
+
* is canceled.
|
|
2710
|
+
*/
|
|
2711
|
+
maxPrice?: number | string;
|
|
2574
2712
|
};
|
|
2575
2713
|
type PrepareMarketSellOrderRequest = BasePrepareMarketOrderRequest & {
|
|
2576
2714
|
/** Sell side of the order. */
|
|
@@ -2582,6 +2720,15 @@ type PrepareMarketSellOrderRequest = BasePrepareMarketOrderRequest & {
|
|
|
2582
2720
|
* 6-decimal base unit.
|
|
2583
2721
|
*/
|
|
2584
2722
|
shares: number | string;
|
|
2723
|
+
/**
|
|
2724
|
+
* Lowest acceptable price per share for the SELL.
|
|
2725
|
+
*
|
|
2726
|
+
* The order may only fill at this price or better. For FOK, all `shares`
|
|
2727
|
+
* must fill within this bound or the order is killed. For FAK, any
|
|
2728
|
+
* immediately available liquidity within this bound fills and the remainder
|
|
2729
|
+
* is canceled.
|
|
2730
|
+
*/
|
|
2731
|
+
minPrice?: number | string;
|
|
2585
2732
|
};
|
|
2586
2733
|
type PrepareMarketOrderRequest = PrepareMarketBuyOrderRequest | PrepareMarketSellOrderRequest;
|
|
2587
2734
|
type PrepareLimitOrderRequest = {
|
|
@@ -2658,11 +2805,11 @@ declare const PostOrdersRequestSchema: z.ZodArray<z.ZodCustom<SignedOrder, Signe
|
|
|
2658
2805
|
type PostOrdersRequest = z.input<typeof PostOrdersRequestSchema>;
|
|
2659
2806
|
type PostOrderError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
|
|
2660
2807
|
declare const PostOrderError: {
|
|
2661
|
-
isError(error: unknown): error is
|
|
2808
|
+
isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
2662
2809
|
};
|
|
2663
2810
|
type PostOrdersError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2664
2811
|
declare const PostOrdersError: {
|
|
2665
|
-
isError(error: unknown): error is
|
|
2812
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
2666
2813
|
};
|
|
2667
2814
|
/**
|
|
2668
2815
|
* Posts a signed order for the authenticated account.
|
|
@@ -2709,10 +2856,20 @@ type SecureTradingActions = {
|
|
|
2709
2856
|
* @throws {@link CreateMarketOrderError}
|
|
2710
2857
|
* Thrown on failure.
|
|
2711
2858
|
*
|
|
2712
|
-
* @example
|
|
2859
|
+
* @example Basic market buy
|
|
2860
|
+
* ```ts
|
|
2861
|
+
* const order = await client.createMarketOrder({
|
|
2862
|
+
* amount: 10,
|
|
2863
|
+
* side: OrderSide.BUY,
|
|
2864
|
+
* tokenId: '123',
|
|
2865
|
+
* });
|
|
2866
|
+
* ```
|
|
2867
|
+
*
|
|
2868
|
+
* @example Protected market buy
|
|
2713
2869
|
* ```ts
|
|
2714
2870
|
* const order = await client.createMarketOrder({
|
|
2715
2871
|
* amount: 10,
|
|
2872
|
+
* maxPrice: '0.55',
|
|
2716
2873
|
* side: OrderSide.BUY,
|
|
2717
2874
|
* tokenId: '123',
|
|
2718
2875
|
* });
|
|
@@ -2725,7 +2882,7 @@ type SecureTradingActions = {
|
|
|
2725
2882
|
* @throws {@link PlaceMarketOrderError}
|
|
2726
2883
|
* Thrown on failure.
|
|
2727
2884
|
*
|
|
2728
|
-
* @example
|
|
2885
|
+
* @example Basic market buy
|
|
2729
2886
|
* ```ts
|
|
2730
2887
|
* const response = await client.placeMarketOrder({
|
|
2731
2888
|
* amount: 10,
|
|
@@ -2735,6 +2892,18 @@ type SecureTradingActions = {
|
|
|
2735
2892
|
*
|
|
2736
2893
|
* // response: OrderResponse
|
|
2737
2894
|
* ```
|
|
2895
|
+
*
|
|
2896
|
+
* @example Protected market sell
|
|
2897
|
+
* ```ts
|
|
2898
|
+
* const response = await client.placeMarketOrder({
|
|
2899
|
+
* minPrice: '0.54',
|
|
2900
|
+
* shares: 10,
|
|
2901
|
+
* side: OrderSide.SELL,
|
|
2902
|
+
* tokenId: '123',
|
|
2903
|
+
* });
|
|
2904
|
+
*
|
|
2905
|
+
* // response: OrderResponse
|
|
2906
|
+
* ```
|
|
2738
2907
|
*/
|
|
2739
2908
|
placeMarketOrder(request: PrepareMarketOrderRequest): Promise<OrderResponse>;
|
|
2740
2909
|
/**
|
|
@@ -2988,7 +3157,7 @@ type SecureWalletActions = {
|
|
|
2988
3157
|
* const handle = await client.transferErc20({
|
|
2989
3158
|
* amount: 1n,
|
|
2990
3159
|
* recipientAddress: client.account.signer,
|
|
2991
|
-
* tokenAddress: client.environment.collateralToken,
|
|
3160
|
+
* tokenAddress: client.environment.contracts.collateralToken,
|
|
2992
3161
|
* });
|
|
2993
3162
|
*
|
|
2994
3163
|
* const outcome = await handle.wait();
|
|
@@ -3106,8 +3275,8 @@ type SecureWalletActions = {
|
|
|
3106
3275
|
};
|
|
3107
3276
|
declare function walletActions(client: BaseSecureClient): SecureWalletActions;
|
|
3108
3277
|
|
|
3109
|
-
type PublicActions = Prettify<DiscoveryActions & DataActions & AnalyticsActions & PublicAccountActions & PublicRewardsActions & PublicSubscriptionsActions>;
|
|
3110
|
-
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>;
|
|
3111
3280
|
declare function allActions(client: BasePublicClient): PublicActions;
|
|
3112
3281
|
declare function allActions(client: BaseSecureClient): SecureActions;
|
|
3113
3282
|
|
|
@@ -3120,17 +3289,76 @@ type WalletDerivationConfig = {
|
|
|
3120
3289
|
safeFactory: EvmAddress;
|
|
3121
3290
|
safeInitCodeHash: Hex.Hex;
|
|
3122
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
|
+
};
|
|
3123
3323
|
type EnvironmentConfig = {
|
|
3124
3324
|
name: string;
|
|
3125
3325
|
chainId: number;
|
|
3126
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
|
+
};
|
|
3127
3348
|
/**
|
|
3128
3349
|
* The production environment configuration.
|
|
3129
3350
|
*/
|
|
3130
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;
|
|
3131
3359
|
|
|
3132
3360
|
type ServiceRequest = {
|
|
3133
|
-
method: 'DELETE' | 'GET' | 'POST';
|
|
3361
|
+
method: 'DELETE' | 'GET' | 'PATCH' | 'POST';
|
|
3134
3362
|
path: string;
|
|
3135
3363
|
body?: string;
|
|
3136
3364
|
headers?: HeadersInit;
|
|
@@ -3379,7 +3607,7 @@ type SecureClientOptions = PublicClientOptions & {
|
|
|
3379
3607
|
declare function createPublicClient(options?: PublicClientOptions): PublicClient<PublicActions, SecureActions>;
|
|
3380
3608
|
type CreateSecureClientError = CancelledSigningError | DeployDepositWalletError | IsWalletDeployedError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError | WaitForGaslessTransactionError;
|
|
3381
3609
|
declare const CreateSecureClientError: {
|
|
3382
|
-
isError(error: unknown): error is
|
|
3610
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
3383
3611
|
};
|
|
3384
3612
|
type SetupGaslessWalletError = UserInputError;
|
|
3385
3613
|
declare const SetupGaslessWalletError: {
|
|
@@ -3402,7 +3630,7 @@ declare function createSecureClient(options: SecureClientOptions): Promise<Secur
|
|
|
3402
3630
|
|
|
3403
3631
|
type FetchClosedOnlyModeError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
|
|
3404
3632
|
declare const FetchClosedOnlyModeError: {
|
|
3405
|
-
isError(error: unknown): error is
|
|
3633
|
+
isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3406
3634
|
};
|
|
3407
3635
|
/**
|
|
3408
3636
|
* Fetches whether the account is restricted to closed-only trading.
|
|
@@ -3427,7 +3655,7 @@ declare const ListOpenOrdersRequestSchema: z.ZodDefault<z.ZodObject<{
|
|
|
3427
3655
|
type ListOpenOrdersRequest = z.input<typeof ListOpenOrdersRequestSchema>;
|
|
3428
3656
|
type ListOpenOrdersError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3429
3657
|
declare const ListOpenOrdersError: {
|
|
3430
|
-
isError(error: unknown): error is
|
|
3658
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3431
3659
|
};
|
|
3432
3660
|
/**
|
|
3433
3661
|
* Lists open orders for the authenticated account across all pages.
|
|
@@ -3471,7 +3699,7 @@ declare const FetchOrderRequestSchema: z.ZodObject<{
|
|
|
3471
3699
|
type FetchOrderRequest = z.input<typeof FetchOrderRequestSchema>;
|
|
3472
3700
|
type FetchOrderError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3473
3701
|
declare const FetchOrderError: {
|
|
3474
|
-
isError(error: unknown): error is
|
|
3702
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3475
3703
|
};
|
|
3476
3704
|
/**
|
|
3477
3705
|
* Fetches a single order for the authenticated account.
|
|
@@ -3501,7 +3729,7 @@ declare const ListAccountTradesRequestSchema: z.ZodDefault<z.ZodObject<{
|
|
|
3501
3729
|
type ListAccountTradesRequest = z.input<typeof ListAccountTradesRequestSchema>;
|
|
3502
3730
|
type ListAccountTradesError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3503
3731
|
declare const ListAccountTradesError: {
|
|
3504
|
-
isError(error: unknown): error is
|
|
3732
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3505
3733
|
};
|
|
3506
3734
|
/**
|
|
3507
3735
|
* Lists trades for the authenticated account across all pages.
|
|
@@ -3541,7 +3769,7 @@ declare const ListAccountTradesError: {
|
|
|
3541
3769
|
declare function listAccountTrades(client: BaseSecureClient, request?: ListAccountTradesRequest): Paginated<ClobTrade[]>;
|
|
3542
3770
|
type FetchNotificationsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
|
|
3543
3771
|
declare const FetchNotificationsError: {
|
|
3544
|
-
isError(error: unknown): error is
|
|
3772
|
+
isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3545
3773
|
};
|
|
3546
3774
|
declare const DropNotificationsRequestSchema: z.ZodObject<{
|
|
3547
3775
|
ids: z.ZodArray<z.ZodString>;
|
|
@@ -3563,7 +3791,7 @@ type DropNotificationsRequest = z.input<typeof DropNotificationsRequestSchema>;
|
|
|
3563
3791
|
declare function fetchNotifications(client: BaseSecureClient): Promise<NotificationsResponse>;
|
|
3564
3792
|
type DropNotificationsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3565
3793
|
declare const DropNotificationsError: {
|
|
3566
|
-
isError(error: unknown): error is
|
|
3794
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3567
3795
|
};
|
|
3568
3796
|
/**
|
|
3569
3797
|
* Drops notifications for the authenticated account.
|
|
@@ -3589,7 +3817,7 @@ declare const FetchBalanceAllowanceRequestSchema: z.ZodObject<{
|
|
|
3589
3817
|
type FetchBalanceAllowanceRequest = z.input<typeof FetchBalanceAllowanceRequestSchema>;
|
|
3590
3818
|
type FetchBalanceAllowanceError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3591
3819
|
declare const FetchBalanceAllowanceError: {
|
|
3592
|
-
isError(error: unknown): error is
|
|
3820
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3593
3821
|
};
|
|
3594
3822
|
/**
|
|
3595
3823
|
* Fetches balance and allowance for the authenticated account.
|
|
@@ -3615,7 +3843,7 @@ declare const UpdateBalanceAllowanceRequestSchema: z.ZodObject<{
|
|
|
3615
3843
|
type UpdateBalanceAllowanceRequest = z.input<typeof UpdateBalanceAllowanceRequestSchema>;
|
|
3616
3844
|
type UpdateBalanceAllowanceError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3617
3845
|
declare const UpdateBalanceAllowanceError: {
|
|
3618
|
-
isError(error: unknown): error is
|
|
3846
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3619
3847
|
};
|
|
3620
3848
|
/**
|
|
3621
3849
|
* Refreshes balance and allowance for the authenticated account.
|
|
@@ -3640,7 +3868,7 @@ declare const FetchOrderScoringRequestSchema: z.ZodObject<{
|
|
|
3640
3868
|
type FetchOrderScoringRequest = z.input<typeof FetchOrderScoringRequestSchema>;
|
|
3641
3869
|
type FetchOrderScoringError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3642
3870
|
declare const FetchOrderScoringError: {
|
|
3643
|
-
isError(error: unknown): error is
|
|
3871
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3644
3872
|
};
|
|
3645
3873
|
/**
|
|
3646
3874
|
* Fetches whether a single order is currently scoring.
|
|
@@ -3664,7 +3892,7 @@ declare const FetchOrdersScoringRequestSchema: z.ZodObject<{
|
|
|
3664
3892
|
type FetchOrdersScoringRequest = z.input<typeof FetchOrdersScoringRequestSchema>;
|
|
3665
3893
|
type FetchOrdersScoringError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3666
3894
|
declare const FetchOrdersScoringError: {
|
|
3667
|
-
isError(error: unknown): error is
|
|
3895
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3668
3896
|
};
|
|
3669
3897
|
/**
|
|
3670
3898
|
* Fetches scoring state for multiple orders.
|
|
@@ -3689,7 +3917,7 @@ declare const ListUserEarningsForDayRequestSchema: z.ZodObject<{
|
|
|
3689
3917
|
type ListUserEarningsForDayRequest = z.input<typeof ListUserEarningsForDayRequestSchema>;
|
|
3690
3918
|
type ListUserEarningsForDayError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3691
3919
|
declare const ListUserEarningsForDayError: {
|
|
3692
|
-
isError(error: unknown): error is
|
|
3920
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3693
3921
|
};
|
|
3694
3922
|
/**
|
|
3695
3923
|
* Lists per-market earnings for the authenticated account on a given day.
|
|
@@ -3730,7 +3958,7 @@ declare function listUserEarningsForDay(client: BaseSecureClient, request: ListU
|
|
|
3730
3958
|
type FetchTotalEarningsForUserForDayRequest = z.input<typeof ListUserEarningsForDayRequestSchema>;
|
|
3731
3959
|
type FetchTotalEarningsForUserForDayError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3732
3960
|
declare const FetchTotalEarningsForUserForDayError: {
|
|
3733
|
-
isError(error: unknown): error is
|
|
3961
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3734
3962
|
};
|
|
3735
3963
|
/**
|
|
3736
3964
|
* Fetches total earnings for the authenticated account on a given day.
|
|
@@ -3759,7 +3987,7 @@ declare const ListUserEarningsAndMarketsConfigRequestSchema: z.ZodObject<{
|
|
|
3759
3987
|
type ListUserEarningsAndMarketsConfigRequest = z.input<typeof ListUserEarningsAndMarketsConfigRequestSchema>;
|
|
3760
3988
|
type ListUserEarningsAndMarketsConfigError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3761
3989
|
declare const ListUserEarningsAndMarketsConfigError: {
|
|
3762
|
-
isError(error: unknown): error is
|
|
3990
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3763
3991
|
};
|
|
3764
3992
|
/**
|
|
3765
3993
|
* Lists market reward configuration and earnings for the authenticated account on a given day.
|
|
@@ -3799,7 +4027,7 @@ declare const ListUserEarningsAndMarketsConfigError: {
|
|
|
3799
4027
|
declare function listUserEarningsAndMarketsConfig(client: BaseSecureClient, request: ListUserEarningsAndMarketsConfigRequest): Paginated<UserRewardsEarning[]>;
|
|
3800
4028
|
type FetchRewardPercentagesError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
|
|
3801
4029
|
declare const FetchRewardPercentagesError: {
|
|
3802
|
-
isError(error: unknown): error is
|
|
4030
|
+
isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
|
|
3803
4031
|
};
|
|
3804
4032
|
/**
|
|
3805
4033
|
* Fetches reward percentages for the authenticated account.
|
|
@@ -3860,7 +4088,7 @@ type ListTradesRequest = z.input<typeof ListTradesRequestSchema>;
|
|
|
3860
4088
|
type ListActivityRequest = z.input<typeof ListActivityRequestSchema>;
|
|
3861
4089
|
type ListTradesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3862
4090
|
declare const ListTradesError: {
|
|
3863
|
-
isError(error: unknown): error is
|
|
4091
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
3864
4092
|
};
|
|
3865
4093
|
/**
|
|
3866
4094
|
* Lists trades for a wallet, market, or event.
|
|
@@ -3903,7 +4131,7 @@ declare const ListTradesError: {
|
|
|
3903
4131
|
declare function listTrades(client: BaseClient, request?: ListTradesRequest): Paginated<Trade[]>;
|
|
3904
4132
|
type ListActivityError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3905
4133
|
declare const ListActivityError: {
|
|
3906
|
-
isError(error: unknown): error is
|
|
4134
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
3907
4135
|
};
|
|
3908
4136
|
/**
|
|
3909
4137
|
* Lists wallet activity.
|
|
@@ -3979,7 +4207,7 @@ declare const PrepareErc20ApprovalError: {
|
|
|
3979
4207
|
declare function prepareErc20Approval(client: BaseSecureClient, request: PrepareErc20ApprovalRequest): Promise<Erc20ApprovalWorkflow>;
|
|
3980
4208
|
type ApproveErc20Error = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
|
|
3981
4209
|
declare const ApproveErc20Error: {
|
|
3982
|
-
isError(error: unknown): error is
|
|
4210
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
|
|
3983
4211
|
};
|
|
3984
4212
|
/**
|
|
3985
4213
|
* Approves ERC-20 token spending for the authenticated account.
|
|
@@ -4024,7 +4252,7 @@ declare const PrepareErc1155ApprovalForAllError: {
|
|
|
4024
4252
|
declare function prepareErc1155ApprovalForAll(client: BaseSecureClient, request: PrepareErc1155ApprovalForAllRequest): Promise<Erc1155ApprovalForAllWorkflow>;
|
|
4025
4253
|
type ApproveErc1155ForAllError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
|
|
4026
4254
|
declare const ApproveErc1155ForAllError: {
|
|
4027
|
-
isError(error: unknown): error is
|
|
4255
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
|
|
4028
4256
|
};
|
|
4029
4257
|
/**
|
|
4030
4258
|
* Approves or revokes ERC-1155 operator access for the authenticated account.
|
|
@@ -4040,7 +4268,7 @@ type TradingApprovalsWorkflowRequest = GaslessWorkflowRequest | SendErc20Approva
|
|
|
4040
4268
|
type TradingApprovalsWorkflow = AsyncGenerator<TradingApprovalsWorkflowRequest, void, EvmAddress$1 | EvmSignature | TransactionHandle>;
|
|
4041
4269
|
type PrepareTradingApprovalsError = RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4042
4270
|
declare const PrepareTradingApprovalsError: {
|
|
4043
|
-
isError(error: unknown): error is
|
|
4271
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError;
|
|
4044
4272
|
};
|
|
4045
4273
|
/**
|
|
4046
4274
|
* Starts a trading-setup approval workflow.
|
|
@@ -4059,7 +4287,7 @@ declare const PrepareTradingApprovalsError: {
|
|
|
4059
4287
|
declare function prepareTradingApprovals(client: BaseSecureClient): Promise<TradingApprovalsWorkflow>;
|
|
4060
4288
|
type SetupTradingApprovalsError = PrepareTradingApprovalsError | CancelledSigningError | SigningError | WaitForGaslessTransactionError;
|
|
4061
4289
|
declare const SetupTradingApprovalsError: {
|
|
4062
|
-
isError(error: unknown): error is
|
|
4290
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
4063
4291
|
};
|
|
4064
4292
|
type DeprecatedTransactionHandle = Omit<TransactionHandle, 'wait'> & {
|
|
4065
4293
|
/**
|
|
@@ -4091,7 +4319,7 @@ declare const ListBuilderTradesRequestSchema: z.ZodObject<{
|
|
|
4091
4319
|
type ListBuilderTradesRequest = z.input<typeof ListBuilderTradesRequestSchema>;
|
|
4092
4320
|
type ListBuilderTradesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4093
4321
|
declare const ListBuilderTradesError: {
|
|
4094
|
-
isError(error: unknown): error is
|
|
4322
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4095
4323
|
};
|
|
4096
4324
|
/**
|
|
4097
4325
|
* Lists builder-attributed trades.
|
|
@@ -4133,7 +4361,7 @@ declare const FetchMidpointRequestSchema: z.ZodObject<{
|
|
|
4133
4361
|
type FetchMidpointRequest = z.input<typeof FetchMidpointRequestSchema>;
|
|
4134
4362
|
type FetchMidpointError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4135
4363
|
declare const FetchMidpointError: {
|
|
4136
|
-
isError(error: unknown): error is
|
|
4364
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4137
4365
|
};
|
|
4138
4366
|
/**
|
|
4139
4367
|
* Fetches the midpoint price for a token.
|
|
@@ -4162,7 +4390,7 @@ declare const FetchMidpointsRequestSchema: z.ZodArray<z.ZodObject<{
|
|
|
4162
4390
|
type FetchMidpointsRequest = z.input<typeof FetchMidpointsRequestSchema>;
|
|
4163
4391
|
type FetchMidpointsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4164
4392
|
declare const FetchMidpointsError: {
|
|
4165
|
-
isError(error: unknown): error is
|
|
4393
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4166
4394
|
};
|
|
4167
4395
|
/**
|
|
4168
4396
|
* Fetches midpoint prices for multiple tokens.
|
|
@@ -4193,7 +4421,7 @@ declare const FetchTickSizeRequestSchema: z.ZodObject<{
|
|
|
4193
4421
|
type FetchTickSizeRequest = z.input<typeof FetchTickSizeRequestSchema>;
|
|
4194
4422
|
type FetchTickSizeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4195
4423
|
declare const FetchTickSizeError: {
|
|
4196
|
-
isError(error: unknown): error is
|
|
4424
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4197
4425
|
};
|
|
4198
4426
|
/**
|
|
4199
4427
|
* Fetches the minimum price tick size for a token's order book.
|
|
@@ -4221,7 +4449,7 @@ declare const FetchNegRiskRequestSchema: z.ZodObject<{
|
|
|
4221
4449
|
type FetchNegRiskRequest = z.input<typeof FetchNegRiskRequestSchema>;
|
|
4222
4450
|
type FetchNegRiskError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4223
4451
|
declare const FetchNegRiskError: {
|
|
4224
|
-
isError(error: unknown): error is
|
|
4452
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4225
4453
|
};
|
|
4226
4454
|
/**
|
|
4227
4455
|
* Fetches whether a token is in a negative-risk market.
|
|
@@ -4249,7 +4477,7 @@ declare const ResolveConditionByTokenRequestSchema: z.ZodObject<{
|
|
|
4249
4477
|
type ResolveConditionByTokenRequest = z.input<typeof ResolveConditionByTokenRequestSchema>;
|
|
4250
4478
|
type ResolveConditionByTokenError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4251
4479
|
declare const ResolveConditionByTokenError: {
|
|
4252
|
-
isError(error: unknown): error is
|
|
4480
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4253
4481
|
};
|
|
4254
4482
|
/**
|
|
4255
4483
|
* Resolves the condition ID for a token.
|
|
@@ -4267,7 +4495,7 @@ declare const FetchMarketInfoRequestSchema: z.ZodObject<{
|
|
|
4267
4495
|
type FetchMarketInfoRequest = z.input<typeof FetchMarketInfoRequestSchema>;
|
|
4268
4496
|
type FetchMarketInfoError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4269
4497
|
declare const FetchMarketInfoError: {
|
|
4270
|
-
isError(error: unknown): error is
|
|
4498
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4271
4499
|
};
|
|
4272
4500
|
/**
|
|
4273
4501
|
* Fetches market-level metadata for a condition.
|
|
@@ -4285,7 +4513,7 @@ declare const FetchBuilderFeeRatesRequestSchema: z.ZodObject<{
|
|
|
4285
4513
|
type FetchBuilderFeeRatesRequest = z.input<typeof FetchBuilderFeeRatesRequestSchema>;
|
|
4286
4514
|
type FetchBuilderFeeRatesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4287
4515
|
declare const FetchBuilderFeeRatesError: {
|
|
4288
|
-
isError(error: unknown): error is
|
|
4516
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4289
4517
|
};
|
|
4290
4518
|
/**
|
|
4291
4519
|
* Fetches builder maker and taker fee rates.
|
|
@@ -4304,7 +4532,7 @@ declare const FetchPriceRequestSchema: z.ZodObject<{
|
|
|
4304
4532
|
type FetchPriceRequest = z.input<typeof FetchPriceRequestSchema>;
|
|
4305
4533
|
type FetchPriceError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4306
4534
|
declare const FetchPriceError: {
|
|
4307
|
-
isError(error: unknown): error is
|
|
4535
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4308
4536
|
};
|
|
4309
4537
|
/**
|
|
4310
4538
|
* Fetches the current quoted price for a token and side.
|
|
@@ -4335,7 +4563,7 @@ declare const FetchPricesRequestSchema: z.ZodArray<z.ZodObject<{
|
|
|
4335
4563
|
type FetchPricesRequest = z.input<typeof FetchPricesRequestSchema>;
|
|
4336
4564
|
type FetchPricesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4337
4565
|
declare const FetchPricesError: {
|
|
4338
|
-
isError(error: unknown): error is
|
|
4566
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4339
4567
|
};
|
|
4340
4568
|
/**
|
|
4341
4569
|
* Fetches quoted prices for multiple tokens.
|
|
@@ -4367,7 +4595,7 @@ declare const FetchOrderBookRequestSchema: z.ZodObject<{
|
|
|
4367
4595
|
type FetchOrderBookRequest = z.input<typeof FetchOrderBookRequestSchema>;
|
|
4368
4596
|
type FetchOrderBookError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4369
4597
|
declare const FetchOrderBookError: {
|
|
4370
|
-
isError(error: unknown): error is
|
|
4598
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4371
4599
|
};
|
|
4372
4600
|
/**
|
|
4373
4601
|
* Fetches the current order book for a token.
|
|
@@ -4395,7 +4623,7 @@ declare const FetchOrderBooksRequestSchema: z.ZodArray<z.ZodObject<{
|
|
|
4395
4623
|
type FetchOrderBooksRequest = z.input<typeof FetchOrderBooksRequestSchema>;
|
|
4396
4624
|
type FetchOrderBooksError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4397
4625
|
declare const FetchOrderBooksError: {
|
|
4398
|
-
isError(error: unknown): error is
|
|
4626
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4399
4627
|
};
|
|
4400
4628
|
/**
|
|
4401
4629
|
* Fetches order books for multiple tokens.
|
|
@@ -4425,7 +4653,7 @@ declare const FetchSpreadRequestSchema: z.ZodObject<{
|
|
|
4425
4653
|
type FetchSpreadRequest = z.input<typeof FetchSpreadRequestSchema>;
|
|
4426
4654
|
type FetchSpreadError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4427
4655
|
declare const FetchSpreadError: {
|
|
4428
|
-
isError(error: unknown): error is
|
|
4656
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4429
4657
|
};
|
|
4430
4658
|
/**
|
|
4431
4659
|
* Fetches the spread for a token.
|
|
@@ -4454,7 +4682,7 @@ declare const FetchSpreadsRequestSchema: z.ZodArray<z.ZodObject<{
|
|
|
4454
4682
|
type FetchSpreadsRequest = z.input<typeof FetchSpreadsRequestSchema>;
|
|
4455
4683
|
type FetchSpreadsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4456
4684
|
declare const FetchSpreadsError: {
|
|
4457
|
-
isError(error: unknown): error is
|
|
4685
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4458
4686
|
};
|
|
4459
4687
|
/**
|
|
4460
4688
|
* Fetches spreads for multiple tokens.
|
|
@@ -4485,7 +4713,7 @@ declare const FetchLastTradePriceRequestSchema: z.ZodObject<{
|
|
|
4485
4713
|
type FetchLastTradePriceRequest = z.input<typeof FetchLastTradePriceRequestSchema>;
|
|
4486
4714
|
type FetchLastTradePriceError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4487
4715
|
declare const FetchLastTradePriceError: {
|
|
4488
|
-
isError(error: unknown): error is
|
|
4716
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4489
4717
|
};
|
|
4490
4718
|
/**
|
|
4491
4719
|
* Fetches the last traded price for a token.
|
|
@@ -4514,7 +4742,7 @@ declare const FetchLastTradePricesRequestSchema: z.ZodArray<z.ZodObject<{
|
|
|
4514
4742
|
type FetchLastTradePricesRequest = z.input<typeof FetchLastTradePricesRequestSchema>;
|
|
4515
4743
|
type FetchLastTradePricesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4516
4744
|
declare const FetchLastTradePricesError: {
|
|
4517
|
-
isError(error: unknown): error is
|
|
4745
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4518
4746
|
};
|
|
4519
4747
|
/**
|
|
4520
4748
|
* Fetches last traded prices for multiple tokens.
|
|
@@ -4549,7 +4777,7 @@ declare const ListPriceHistoryRequestSchema: z.ZodObject<{
|
|
|
4549
4777
|
type FetchPriceHistoryRequest = z.input<typeof ListPriceHistoryRequestSchema>;
|
|
4550
4778
|
type FetchPriceHistoryError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4551
4779
|
declare const FetchPriceHistoryError: {
|
|
4552
|
-
isError(error: unknown): error is
|
|
4780
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4553
4781
|
};
|
|
4554
4782
|
/**
|
|
4555
4783
|
* Fetches historical price points for a token.
|
|
@@ -4581,7 +4809,7 @@ declare const ListCurrentRewardsRequestSchema: z.ZodDefault<z.ZodObject<{
|
|
|
4581
4809
|
type ListCurrentRewardsRequest = z.input<typeof ListCurrentRewardsRequestSchema>;
|
|
4582
4810
|
type ListCurrentRewardsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4583
4811
|
declare const ListCurrentRewardsError: {
|
|
4584
|
-
isError(error: unknown): error is
|
|
4812
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4585
4813
|
};
|
|
4586
4814
|
/**
|
|
4587
4815
|
* Lists current active market rewards.
|
|
@@ -4624,7 +4852,7 @@ declare const ListMarketRewardsRequestSchema: z.ZodObject<{
|
|
|
4624
4852
|
type ListMarketRewardsRequest = z.input<typeof ListMarketRewardsRequestSchema>;
|
|
4625
4853
|
type ListMarketRewardsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4626
4854
|
declare const ListMarketRewardsError: {
|
|
4627
|
-
isError(error: unknown): error is
|
|
4855
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4628
4856
|
};
|
|
4629
4857
|
/**
|
|
4630
4858
|
* Lists reward configurations for a market.
|
|
@@ -4692,7 +4920,7 @@ type FetchCommentsByIdRequest = z.input<typeof FetchCommentsByIdRequestSchema>;
|
|
|
4692
4920
|
type ListCommentsByUserAddressRequest = z.input<typeof ListCommentsByUserAddressRequestSchema>;
|
|
4693
4921
|
type ListCommentsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4694
4922
|
declare const ListCommentsError: {
|
|
4695
|
-
isError(error: unknown): error is
|
|
4923
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4696
4924
|
};
|
|
4697
4925
|
/**
|
|
4698
4926
|
* Lists comments for an event or series.
|
|
@@ -4737,7 +4965,7 @@ declare const ListCommentsError: {
|
|
|
4737
4965
|
declare function listComments(client: BaseClient, request: ListCommentsRequest): Paginated<Comment[]>;
|
|
4738
4966
|
type FetchCommentsByIdError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4739
4967
|
declare const FetchCommentsByIdError: {
|
|
4740
|
-
isError(error: unknown): error is
|
|
4968
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4741
4969
|
};
|
|
4742
4970
|
/**
|
|
4743
4971
|
* Fetches a comment thread by comment id.
|
|
@@ -4761,7 +4989,7 @@ declare const FetchCommentsByIdError: {
|
|
|
4761
4989
|
declare function fetchCommentsById(client: BaseClient, request: FetchCommentsByIdRequest): Promise<Comment[]>;
|
|
4762
4990
|
type ListCommentsByUserAddressError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4763
4991
|
declare const ListCommentsByUserAddressError: {
|
|
4764
|
-
isError(error: unknown): error is
|
|
4992
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4765
4993
|
};
|
|
4766
4994
|
/**
|
|
4767
4995
|
* Lists comments written by a wallet address.
|
|
@@ -4885,7 +5113,7 @@ declare const FetchEventLiveVolumeRequestSchema: z.ZodObject<{
|
|
|
4885
5113
|
type FetchEventLiveVolumeRequest = z.input<typeof FetchEventLiveVolumeRequestSchema>;
|
|
4886
5114
|
type ListEventsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4887
5115
|
declare const ListEventsError: {
|
|
4888
|
-
isError(error: unknown): error is
|
|
5116
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4889
5117
|
};
|
|
4890
5118
|
/**
|
|
4891
5119
|
* Lists events.
|
|
@@ -4930,7 +5158,7 @@ declare const ListEventsError: {
|
|
|
4930
5158
|
declare function listEvents(client: BaseClient, request?: ListEventsRequest): Paginated<Event[]>;
|
|
4931
5159
|
type FetchEventError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4932
5160
|
declare const FetchEventError: {
|
|
4933
|
-
isError(error: unknown): error is
|
|
5161
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4934
5162
|
};
|
|
4935
5163
|
/**
|
|
4936
5164
|
* Fetches an event.
|
|
@@ -4961,7 +5189,7 @@ declare const FetchEventError: {
|
|
|
4961
5189
|
declare function fetchEvent(client: BaseClient, request: FetchEventRequest): Promise<Event>;
|
|
4962
5190
|
type FetchEventTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4963
5191
|
declare const FetchEventTagsError: {
|
|
4964
|
-
isError(error: unknown): error is
|
|
5192
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4965
5193
|
};
|
|
4966
5194
|
/**
|
|
4967
5195
|
* Fetches an event's tags.
|
|
@@ -4984,7 +5212,7 @@ declare const FetchEventTagsError: {
|
|
|
4984
5212
|
declare function fetchEventTags(client: BaseClient, request: FetchEventTagsRequest): Promise<TagReference[]>;
|
|
4985
5213
|
type FetchEventLiveVolumeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4986
5214
|
declare const FetchEventLiveVolumeError: {
|
|
4987
|
-
isError(error: unknown): error is
|
|
5215
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4988
5216
|
};
|
|
4989
5217
|
/**
|
|
4990
5218
|
* Fetches live volume for an event.
|
|
@@ -5057,7 +5285,7 @@ type ListBuilderVolumeRequest = z.input<typeof ListBuilderVolumeRequestSchema>;
|
|
|
5057
5285
|
type ListTraderLeaderboardRequest = z.input<typeof ListTraderLeaderboardRequestSchema>;
|
|
5058
5286
|
type ListBuilderLeaderboardError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5059
5287
|
declare const ListBuilderLeaderboardError: {
|
|
5060
|
-
isError(error: unknown): error is
|
|
5288
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5061
5289
|
};
|
|
5062
5290
|
/**
|
|
5063
5291
|
* Lists builder leaderboard rankings.
|
|
@@ -5100,7 +5328,7 @@ declare const ListBuilderLeaderboardError: {
|
|
|
5100
5328
|
declare function listBuilderLeaderboard(client: BaseClient, request?: ListBuilderLeaderboardRequest): Paginated<LeaderboardEntry[]>;
|
|
5101
5329
|
type ListBuilderVolumeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5102
5330
|
declare const ListBuilderVolumeError: {
|
|
5103
|
-
isError(error: unknown): error is
|
|
5331
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5104
5332
|
};
|
|
5105
5333
|
/**
|
|
5106
5334
|
* Lists daily builder volume entries.
|
|
@@ -5123,7 +5351,7 @@ declare const ListBuilderVolumeError: {
|
|
|
5123
5351
|
declare function fetchBuilderVolume(client: BaseClient, request?: ListBuilderVolumeRequest): Promise<BuilderVolumeEntry[]>;
|
|
5124
5352
|
type ListTraderLeaderboardError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5125
5353
|
declare const ListTraderLeaderboardError: {
|
|
5126
|
-
isError(error: unknown): error is
|
|
5354
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5127
5355
|
};
|
|
5128
5356
|
/**
|
|
5129
5357
|
* Lists trader leaderboard rankings.
|
|
@@ -5257,7 +5485,7 @@ type ListOpenInterestRequest = z.input<typeof ListOpenInterestRequestSchema>;
|
|
|
5257
5485
|
type ListMarketPositionsRequest = z.input<typeof ListMarketPositionsRequestSchema>;
|
|
5258
5486
|
type ListMarketsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5259
5487
|
declare const ListMarketsError: {
|
|
5260
|
-
isError(error: unknown): error is
|
|
5488
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5261
5489
|
};
|
|
5262
5490
|
/**
|
|
5263
5491
|
* Lists markets.
|
|
@@ -5265,6 +5493,9 @@ declare const ListMarketsError: {
|
|
|
5265
5493
|
* @remarks
|
|
5266
5494
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
5267
5495
|
*
|
|
5496
|
+
* Legacy multi-outcome markets cannot be represented by the binary
|
|
5497
|
+
* {@link Market} model and are omitted from results.
|
|
5498
|
+
*
|
|
5268
5499
|
* @throws {@link ListMarketsError}
|
|
5269
5500
|
* Thrown on failure.
|
|
5270
5501
|
*
|
|
@@ -5306,7 +5537,7 @@ declare const ListComboMarketsRequestSchema: z.ZodObject<{
|
|
|
5306
5537
|
type ListComboMarketsRequest = z.input<typeof ListComboMarketsRequestSchema>;
|
|
5307
5538
|
type ListComboMarketsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5308
5539
|
declare const ListComboMarketsError: {
|
|
5309
|
-
isError(error: unknown): error is
|
|
5540
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5310
5541
|
};
|
|
5311
5542
|
/**
|
|
5312
5543
|
* Lists markets available for Combos.
|
|
@@ -5344,7 +5575,7 @@ declare const ListComboMarketsError: {
|
|
|
5344
5575
|
declare function listComboMarkets(client: BaseClient, request?: ListComboMarketsRequest): Paginated<ComboMarket[]>;
|
|
5345
5576
|
type FetchMarketError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5346
5577
|
declare const FetchMarketError: {
|
|
5347
|
-
isError(error: unknown): error is
|
|
5578
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5348
5579
|
};
|
|
5349
5580
|
/**
|
|
5350
5581
|
* Fetches a market.
|
|
@@ -5352,6 +5583,10 @@ declare const FetchMarketError: {
|
|
|
5352
5583
|
* @remarks
|
|
5353
5584
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
5354
5585
|
*
|
|
5586
|
+
* Legacy multi-outcome markets cannot be represented by the binary
|
|
5587
|
+
* {@link Market} model, so fetching one fails with an
|
|
5588
|
+
* {@link UnexpectedResponseError}.
|
|
5589
|
+
*
|
|
5355
5590
|
* @throws {@link FetchMarketError}
|
|
5356
5591
|
* Thrown on failure.
|
|
5357
5592
|
*
|
|
@@ -5375,7 +5610,7 @@ declare const FetchMarketError: {
|
|
|
5375
5610
|
declare function fetchMarket(client: BaseClient, request: FetchMarketRequest): Promise<Market>;
|
|
5376
5611
|
type FetchMarketTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5377
5612
|
declare const FetchMarketTagsError: {
|
|
5378
|
-
isError(error: unknown): error is
|
|
5613
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5379
5614
|
};
|
|
5380
5615
|
/**
|
|
5381
5616
|
* Fetches a market's tags.
|
|
@@ -5398,7 +5633,7 @@ declare const FetchMarketTagsError: {
|
|
|
5398
5633
|
declare function fetchMarketTags(client: BaseClient, request: FetchMarketTagsRequest): Promise<TagReference[]>;
|
|
5399
5634
|
type ListMarketHoldersError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5400
5635
|
declare const ListMarketHoldersError: {
|
|
5401
|
-
isError(error: unknown): error is
|
|
5636
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5402
5637
|
};
|
|
5403
5638
|
/**
|
|
5404
5639
|
* Lists the top holders for one or more markets.
|
|
@@ -5422,7 +5657,7 @@ declare const ListMarketHoldersError: {
|
|
|
5422
5657
|
declare function listMarketHolders(client: BaseClient, request: ListMarketHoldersRequest): Promise<MetaHolder[]>;
|
|
5423
5658
|
type ListOpenInterestError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5424
5659
|
declare const ListOpenInterestError: {
|
|
5425
|
-
isError(error: unknown): error is
|
|
5660
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5426
5661
|
};
|
|
5427
5662
|
/**
|
|
5428
5663
|
* Lists open interest for one or more markets.
|
|
@@ -5445,7 +5680,7 @@ declare const ListOpenInterestError: {
|
|
|
5445
5680
|
declare function listOpenInterest(client: BaseClient, request?: ListOpenInterestRequest): Promise<OpenInterest[]>;
|
|
5446
5681
|
type ListMarketPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5447
5682
|
declare const ListMarketPositionsError: {
|
|
5448
|
-
isError(error: unknown): error is
|
|
5683
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5449
5684
|
};
|
|
5450
5685
|
/**
|
|
5451
5686
|
* Lists positions for a market.
|
|
@@ -5487,6 +5722,633 @@ declare const ListMarketPositionsError: {
|
|
|
5487
5722
|
*/
|
|
5488
5723
|
declare function listMarketPositions(client: BaseClient, request: ListMarketPositionsRequest): Paginated<MetaMarketPosition[]>;
|
|
5489
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
|
+
|
|
5490
6352
|
/**
|
|
5491
6353
|
* Parameters for preparing a market position split.
|
|
5492
6354
|
*/
|
|
@@ -5524,39 +6386,39 @@ type MergePositionsWorkflow = AsyncGenerator<MergePositionsWorkflowRequest, Tran
|
|
|
5524
6386
|
type RedeemPositionsWorkflow = AsyncGenerator<RedeemPositionsWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
|
|
5525
6387
|
type PrepareSplitPositionError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5526
6388
|
declare const PrepareSplitPositionError: {
|
|
5527
|
-
isError(error: unknown): error is
|
|
6389
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5528
6390
|
};
|
|
5529
6391
|
type PrepareSplitMarketPositionError = PrepareSplitPositionError;
|
|
5530
6392
|
declare const PrepareSplitMarketPositionError: {
|
|
5531
|
-
isError(error: unknown): error is
|
|
6393
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5532
6394
|
};
|
|
5533
6395
|
type PrepareSplitComboPositionError = PrepareSplitPositionError;
|
|
5534
6396
|
declare const PrepareSplitComboPositionError: {
|
|
5535
|
-
isError(error: unknown): error is
|
|
6397
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5536
6398
|
};
|
|
5537
6399
|
type PrepareMergePositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5538
6400
|
declare const PrepareMergePositionsError: {
|
|
5539
|
-
isError(error: unknown): error is
|
|
6401
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5540
6402
|
};
|
|
5541
6403
|
type PrepareMergeMarketPositionError = PrepareMergePositionsError;
|
|
5542
6404
|
declare const PrepareMergeMarketPositionError: {
|
|
5543
|
-
isError(error: unknown): error is
|
|
6405
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5544
6406
|
};
|
|
5545
6407
|
type PrepareMergeComboPositionError = PrepareMergePositionsError;
|
|
5546
6408
|
declare const PrepareMergeComboPositionError: {
|
|
5547
|
-
isError(error: unknown): error is
|
|
6409
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5548
6410
|
};
|
|
5549
6411
|
type PrepareRedeemPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5550
6412
|
declare const PrepareRedeemPositionsError: {
|
|
5551
|
-
isError(error: unknown): error is
|
|
6413
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5552
6414
|
};
|
|
5553
6415
|
type PrepareRedeemMarketPositionsError = PrepareRedeemPositionsError;
|
|
5554
6416
|
declare const PrepareRedeemMarketPositionsError: {
|
|
5555
|
-
isError(error: unknown): error is
|
|
6417
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5556
6418
|
};
|
|
5557
6419
|
type PrepareRedeemComboPositionError = PrepareRedeemPositionsError;
|
|
5558
6420
|
declare const PrepareRedeemComboPositionError: {
|
|
5559
|
-
isError(error: unknown): error is
|
|
6421
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5560
6422
|
};
|
|
5561
6423
|
/**
|
|
5562
6424
|
* Starts a split workflow for a market condition.
|
|
@@ -5604,15 +6466,15 @@ declare function prepareSplitComboPosition(client: BaseSecureClient, request: Pr
|
|
|
5604
6466
|
declare function prepareSplitPosition(client: BaseSecureClient, request: PrepareSplitPositionRequest): Promise<SplitPositionWorkflow>;
|
|
5605
6467
|
type SplitPositionError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5606
6468
|
declare const SplitPositionError: {
|
|
5607
|
-
isError(error: unknown): error is
|
|
6469
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
5608
6470
|
};
|
|
5609
6471
|
type SplitMarketPositionError = SplitPositionError;
|
|
5610
6472
|
declare const SplitMarketPositionError: {
|
|
5611
|
-
isError(error: unknown): error is
|
|
6473
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
5612
6474
|
};
|
|
5613
6475
|
type SplitComboPositionError = SplitPositionError;
|
|
5614
6476
|
declare const SplitComboPositionError: {
|
|
5615
|
-
isError(error: unknown): error is
|
|
6477
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
5616
6478
|
};
|
|
5617
6479
|
/**
|
|
5618
6480
|
* Splits collateral into market positions.
|
|
@@ -5716,15 +6578,15 @@ declare function prepareMergeComboPosition(client: BaseSecureClient, request: Pr
|
|
|
5716
6578
|
declare function prepareMergePositions(client: BaseSecureClient, request: PrepareMergePositionsRequest): Promise<MergePositionsWorkflow>;
|
|
5717
6579
|
type MergePositionsError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5718
6580
|
declare const MergePositionsError: {
|
|
5719
|
-
isError(error: unknown): error is
|
|
6581
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
5720
6582
|
};
|
|
5721
6583
|
type MergeMarketPositionError = MergePositionsError;
|
|
5722
6584
|
declare const MergeMarketPositionError: {
|
|
5723
|
-
isError(error: unknown): error is
|
|
6585
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
5724
6586
|
};
|
|
5725
6587
|
type MergeComboPositionError = MergePositionsError;
|
|
5726
6588
|
declare const MergeComboPositionError: {
|
|
5727
|
-
isError(error: unknown): error is
|
|
6589
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
|
|
5728
6590
|
};
|
|
5729
6591
|
/**
|
|
5730
6592
|
* Merges complementary market positions back into collateral.
|
|
@@ -5850,7 +6712,7 @@ declare function prepareRedeemComboPosition(client: BaseSecureClient, request: P
|
|
|
5850
6712
|
declare function prepareRedeemPositions(client: BaseSecureClient, request: PrepareRedeemPositionsRequest): Promise<RedeemPositionsWorkflow>;
|
|
5851
6713
|
type RedeemPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
|
|
5852
6714
|
declare const RedeemPositionsError: {
|
|
5853
|
-
isError(error: unknown): error is
|
|
6715
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
|
|
5854
6716
|
};
|
|
5855
6717
|
/**
|
|
5856
6718
|
* Redeems resolved market or combo positions.
|
|
@@ -5869,7 +6731,7 @@ declare const FetchPublicProfileRequestSchema: z.ZodObject<{
|
|
|
5869
6731
|
type FetchPublicProfileRequest = z.input<typeof FetchPublicProfileRequestSchema>;
|
|
5870
6732
|
type FetchPublicProfileError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5871
6733
|
declare const FetchPublicProfileError: {
|
|
5872
|
-
isError(error: unknown): error is
|
|
6734
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5873
6735
|
};
|
|
5874
6736
|
/**
|
|
5875
6737
|
* Fetches a public profile by wallet address.
|
|
@@ -5920,7 +6782,7 @@ type SearchResults = {
|
|
|
5920
6782
|
};
|
|
5921
6783
|
type SearchError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5922
6784
|
declare const SearchError: {
|
|
5923
|
-
isError(error: unknown): error is
|
|
6785
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5924
6786
|
};
|
|
5925
6787
|
/**
|
|
5926
6788
|
* Runs a public full-text search.
|
|
@@ -5974,7 +6836,7 @@ type ListSeriesRequest = z.input<typeof ListSeriesRequestSchema>;
|
|
|
5974
6836
|
type FetchSeriesRequest = z.input<typeof FetchSeriesRequestSchema>;
|
|
5975
6837
|
type ListSeriesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5976
6838
|
declare const ListSeriesError: {
|
|
5977
|
-
isError(error: unknown): error is
|
|
6839
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
5978
6840
|
};
|
|
5979
6841
|
/**
|
|
5980
6842
|
* Lists series.
|
|
@@ -6017,7 +6879,7 @@ declare const ListSeriesError: {
|
|
|
6017
6879
|
declare function listSeries(client: BaseClient, request?: ListSeriesRequest): Paginated<Series[]>;
|
|
6018
6880
|
type FetchSeriesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6019
6881
|
declare const FetchSeriesError: {
|
|
6020
|
-
isError(error: unknown): error is
|
|
6882
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6021
6883
|
};
|
|
6022
6884
|
/**
|
|
6023
6885
|
* Fetches a series.
|
|
@@ -6046,6 +6908,9 @@ type SportsEventType = SportsEvent['type'];
|
|
|
6046
6908
|
type CommentsEventType = CommentsEvent['type'];
|
|
6047
6909
|
type CryptoPricesEventType = CryptoPricesEvent['type'];
|
|
6048
6910
|
type EquityPricesEventType = EquityPricesEvent['type'];
|
|
6911
|
+
type PerpsMarketDataEventType = PerpsMarketDataEvent['type'];
|
|
6912
|
+
type PerpsStreamingCandleInterval = Exclude<PerpsKlineInterval, PerpsKlineInterval.OneSecond>;
|
|
6913
|
+
type PerpsInstrumentIdInput = number;
|
|
6049
6914
|
type MarketSubscription = {
|
|
6050
6915
|
topic: 'market';
|
|
6051
6916
|
/** Token IDs whose market events should be delivered. */
|
|
@@ -6078,9 +6943,35 @@ type EquityPricesSubscription = {
|
|
|
6078
6943
|
symbol: string;
|
|
6079
6944
|
types?: readonly EquityPricesEventType[];
|
|
6080
6945
|
};
|
|
6081
|
-
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;
|
|
6082
6973
|
type SecureSubscriptionSpec = PublicSubscriptionSpec | UserSubscription;
|
|
6083
|
-
type PublicRealtimeEvent = MarketEvent | SportsEvent | CommentsEvent | CryptoPricesEvent | EquityPricesEvent;
|
|
6974
|
+
type PublicRealtimeEvent = MarketEvent | SportsEvent | CommentsEvent | CryptoPricesEvent | EquityPricesEvent | PerpsMarketDataEvent;
|
|
6084
6975
|
type SecureRealtimeEvent = PublicRealtimeEvent | UserEvent;
|
|
6085
6976
|
type PublicRealtimeTopic = Prettify<PublicRealtimeEvent['topic']>;
|
|
6086
6977
|
type SecureRealtimeTopic = Prettify<SecureRealtimeEvent['topic']>;
|
|
@@ -6091,6 +6982,12 @@ type EventByTopic = {
|
|
|
6091
6982
|
'prices.crypto.binance': CryptoPricesBinanceEvent;
|
|
6092
6983
|
'prices.crypto.chainlink': CryptoPricesChainlinkEvent;
|
|
6093
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;
|
|
6094
6991
|
};
|
|
6095
6992
|
type EventForMarketSubscription<TSpec extends MarketSubscription> = 'customFeatureEnabled' extends keyof TSpec ? true extends TSpec['customFeatureEnabled'] ? MarketEvent : StandardMarketEvent : StandardMarketEvent;
|
|
6096
6993
|
type EventForSubscriptionSpec<TSpec extends SecureSubscriptionSpec> = TSpec extends MarketSubscription ? EventForMarketSubscription<TSpec> : TSpec extends {
|
|
@@ -6184,7 +7081,7 @@ type FetchRelatedTagsRequest = z.input<typeof RelatedTagsByIdRequestSchema> | z.
|
|
|
6184
7081
|
type FetchRelatedTagResourcesRequest = z.input<typeof RelatedTagResourcesByIdRequestSchema> | z.input<typeof RelatedTagResourcesBySlugRequestSchema>;
|
|
6185
7082
|
type ListTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6186
7083
|
declare const ListTagsError: {
|
|
6187
|
-
isError(error: unknown): error is
|
|
7084
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6188
7085
|
};
|
|
6189
7086
|
/**
|
|
6190
7087
|
* Lists tags.
|
|
@@ -6227,7 +7124,7 @@ declare const ListTagsError: {
|
|
|
6227
7124
|
declare function listTags(client: BaseClient, request?: ListTagsRequest): Paginated<Tag[]>;
|
|
6228
7125
|
type FetchTagError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6229
7126
|
declare const FetchTagError: {
|
|
6230
|
-
isError(error: unknown): error is
|
|
7127
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6231
7128
|
};
|
|
6232
7129
|
/**
|
|
6233
7130
|
* Fetches a tag by id or slug.
|
|
@@ -6251,7 +7148,7 @@ declare const FetchTagError: {
|
|
|
6251
7148
|
declare function fetchTag(client: BaseClient, request: FetchTagRequest): Promise<Tag>;
|
|
6252
7149
|
type FetchRelatedTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6253
7150
|
declare const FetchRelatedTagsError: {
|
|
6254
|
-
isError(error: unknown): error is
|
|
7151
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6255
7152
|
};
|
|
6256
7153
|
/**
|
|
6257
7154
|
* Fetches related tag relationships by id or slug.
|
|
@@ -6276,7 +7173,7 @@ declare const FetchRelatedTagsError: {
|
|
|
6276
7173
|
declare function fetchRelatedTags(client: BaseClient, request: FetchRelatedTagsRequest): Promise<RelatedTag[]>;
|
|
6277
7174
|
type FetchRelatedTagResourcesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6278
7175
|
declare const FetchRelatedTagResourcesError: {
|
|
6279
|
-
isError(error: unknown): error is
|
|
7176
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6280
7177
|
};
|
|
6281
7178
|
/**
|
|
6282
7179
|
* Fetches resources linked from related tag relationships by id or slug.
|
|
@@ -6313,7 +7210,7 @@ declare const ListTeamsRequestSchema: z.ZodObject<{
|
|
|
6313
7210
|
type ListTeamsRequest = z.input<typeof ListTeamsRequestSchema>;
|
|
6314
7211
|
type ListTeamsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6315
7212
|
declare const ListTeamsError: {
|
|
6316
|
-
isError(error: unknown): error is
|
|
7213
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
6317
7214
|
};
|
|
6318
7215
|
/**
|
|
6319
7216
|
* Lists teams.
|
|
@@ -6379,7 +7276,7 @@ declare const PrepareErc20TransferError: {
|
|
|
6379
7276
|
* const workflow = await prepareErc20Transfer(client, {
|
|
6380
7277
|
* amount: 1n,
|
|
6381
7278
|
* recipientAddress: client.account.signer,
|
|
6382
|
-
* tokenAddress: client.environment.collateralToken,
|
|
7279
|
+
* tokenAddress: client.environment.contracts.collateralToken,
|
|
6383
7280
|
* });
|
|
6384
7281
|
* ```
|
|
6385
7282
|
*
|
|
@@ -6389,7 +7286,7 @@ declare const PrepareErc20TransferError: {
|
|
|
6389
7286
|
declare function prepareErc20Transfer(client: BaseSecureClient, request: PrepareErc20TransferRequest): Promise<Erc20TransferWorkflow>;
|
|
6390
7287
|
type TransferErc20Error = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
|
|
6391
7288
|
declare const TransferErc20Error: {
|
|
6392
|
-
isError(error: unknown): error is
|
|
7289
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
|
|
6393
7290
|
};
|
|
6394
7291
|
/**
|
|
6395
7292
|
* Transfers ERC-20 tokens from the authenticated account.
|
|
@@ -6446,7 +7343,7 @@ type TransactionOutcome = {
|
|
|
6446
7343
|
};
|
|
6447
7344
|
type WaitForTransactionError = WaitForGaslessTransactionError;
|
|
6448
7345
|
declare const WaitForTransactionError: {
|
|
6449
|
-
isError(error: unknown): error is
|
|
7346
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError;
|
|
6450
7347
|
};
|
|
6451
7348
|
interface TransactionHandle {
|
|
6452
7349
|
/**
|
|
@@ -6473,4 +7370,4 @@ type Signer = {
|
|
|
6473
7370
|
sendTransaction(request: SignerTransactionRequest): Promise<TransactionHandle>;
|
|
6474
7371
|
};
|
|
6475
7372
|
|
|
6476
|
-
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 };
|