@polymarket/client 0.13.0 → 0.14.0
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/README.md +177 -0
- package/dist/actions/index.d.ts +10 -10
- package/dist/actions/index.js +1 -1
- package/dist/chunk-IRLMIGOU.js +3 -0
- package/dist/chunk-IRLMIGOU.js.map +1 -0
- package/dist/chunk-U54M5MQK.js +2 -0
- package/dist/chunk-U54M5MQK.js.map +1 -0
- package/dist/chunk-XUX2UYIW.js +6 -0
- package/dist/chunk-XUX2UYIW.js.map +1 -0
- package/dist/ethers-v5.d.ts +1 -1
- package/dist/ethers-v5.js +1 -1
- package/dist/ethers-v5.js.map +1 -1
- package/dist/index.d.ts +51 -10
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/node.js +1 -1
- package/dist/privy.js +1 -1
- package/dist/{sports-DxgyI41A.d.ts → sports-CW4y_VKL.d.ts} +7 -7
- package/dist/{types-BGxCI8uu.d.ts → types-CprSC_sB.d.ts} +1029 -383
- package/dist/viem.d.ts +1 -1
- package/dist/viem.js +1 -1
- package/dist/viem.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-6GBGW5CG.js +0 -2
- package/dist/chunk-6GBGW5CG.js.map +0 -1
- package/dist/chunk-MY66WYAN.js +0 -3
- package/dist/chunk-MY66WYAN.js.map +0 -1
- package/dist/chunk-VLNLVY4C.js +0 -6
- package/dist/chunk-VLNLVY4C.js.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as _polymarket_bindings from '@polymarket/bindings';
|
|
2
|
-
import { TransactionId, PaginationCursor, DecimalString, OrderSide, BuilderCode, PositionId, EpochMilliseconds, TxHash, OrderType, TokenId, EvmAddress as EvmAddress$1, ConditionId, TickSizeValue, EventId, SeriesId, CommentParentEntityType, SessionSignerScope } from '@polymarket/bindings';
|
|
2
|
+
import { GatewayErrorCode, TransactionId, PaginationCursor, DecimalString, OrderSide, BuilderCode, PositionId, EpochMilliseconds, TxHash, OrderType, TokenId, EvmAddress as EvmAddress$1, ConditionId, TickSizeValue, EventId, SeriesId, CommentParentEntityType, SessionSignerScope } from '@polymarket/bindings';
|
|
3
3
|
import * as _polymarket_types from '@polymarket/types';
|
|
4
4
|
import { PolymarketError, HexString, EvmAddress, EvmSignature, NonEmptyArray, Prettify, Erc1271Signature, SessionSignerSignature, TxHash as TxHash$1 } from '@polymarket/types';
|
|
5
|
-
import { WalletType, Event, TagReference, Market, Series, MarketClarification, Tag, RelatedTag, SportsMetadata, SportsMarketTypesResponse, Team, PublicProfile, Comment, MarketClarificationState, Profile, SearchTag } from '@polymarket/bindings/gamma';
|
|
5
|
+
import { WalletType, Event, TagReference, Market, Series, MarketClarification, Tag, RelatedTag, SportsMetadata, SportsMarketTypesResponse, Team, PublicProfile, Comment, ProtocolVersion, MarketClarificationState, MarketResolutionStatus, Profile, SearchTag } from '@polymarket/bindings/gamma';
|
|
6
6
|
import { RelayerTransactionType, RelayerExecuteParams, GaslessTransaction } from '@polymarket/bindings/relayer';
|
|
7
7
|
import { ZodError, z } from 'zod';
|
|
8
|
-
import { ClobTrade, NotificationsResponse, BuilderTrade, Midpoints, Prices, OrderBook, Spreads, LastTradePrice, LastTradePriceForAsset, CurrentReward, MarketReward, OrdersScoringResponse, UserEarning, TotalUserEarning, UserRewardsEarning, RewardsPercentages, CancelOrdersResponse, SignatureType, OrderResponse, OrderResponses, AcceptedOrderResponse, OpenOrder, ApiKeyCreds, AssetType, BalanceAllowanceResponse, BuilderFeeRates, MarketInfo } from '@polymarket/bindings/clob';
|
|
8
|
+
import { ClobTrade, NotificationsResponse, BuilderTrade, Midpoints, Prices, OrderBook, Spreads, LastTradePrice, LastTradePriceForAsset, RebatedFee, RewardMarket, CurrentReward, MarketReward, OrdersScoringResponse, UserEarning, TotalUserEarning, UserRewardsEarning, RewardsPercentages, CancelOrdersResponse, SignatureType, OrderResponse, OrderResponses, AcceptedOrderResponse, OrderHeartbeat, OpenOrder, ApiKeyCreds, AssetType, BalanceAllowanceResponse, RewardMarketSort, BuilderFeeRates, MarketInfo } from '@polymarket/bindings/clob';
|
|
9
9
|
import * as _polymarket_bindings_data from '@polymarket/bindings/data';
|
|
10
|
-
import { Activity, ComboActivity, Trade, PositionStatus, ComboPositionStatus, PortfolioValue, UserPnlSeries, UserStats, UserVolume, ComboPosition, Position, TraderLeaderboardStanding, BuilderStanding, BuilderVolumePoint, TraderLeaderboardEntry, BiggestWinner, LiveVolume, Resolution, PriceHistoryPoint, OpenInterest, MetaHolder, PriceHistoryInterval } from '@polymarket/bindings/data';
|
|
10
|
+
import { Activity, ComboActivity, Trade, PositionStatus, ComboPositionStatus, PortfolioValue, UserPnlSeries, UserStats, UserVolume, ComboPosition, Position, TraderLeaderboardStanding, BuilderStanding, BuilderVolumePoint, TraderLeaderboardEntry, BiggestWinner, TokenReference, LiveVolume, Resolution, PriceHistoryPoint, OpenInterest, MetaHolder, PriceHistoryInterval } from '@polymarket/bindings/data';
|
|
11
11
|
import { PerpsCancelOrderResult, PerpsBuilderStatus, PerpsPositionSnapshots, PerpsSortDirection, PerpsDepositStatus, PerpsWithdrawalStatus, PerpsPnlInterval, PerpsDecimalInput, PerpsTimeInForce, PerpsOrder, PerpsOrderId, PerpsCredentials, PerpsBuilderApproval, PerpsBuilderEarning, PerpsBuilderEarningsSummary, PerpsBalance, PerpsPortfolio, PerpsAccountStats, PerpsAccountConfig, PerpsAutoCancelStatus, PerpsAccountFill, PerpsAccountFundingPayment, PerpsDeposit, PerpsInternalTransfer, PerpsWithdrawal, PerpsEquityPoint, PerpsPnlPoint, PerpsNotificationEntry, PerpsPostOrderAck, PerpsUpdateLeverageResult, PerpsUpdateLeverageBatchResult, PerpsChaseAccepted, PerpsChase, PerpsTwapAccepted, PerpsTwap, PerpsInstrument, PerpsTicker, PerpsBook, PerpsCandle, PerpsFundingRate, PerpsPublicTrade, PerpsFeeScheduleEntry, PerpsInternalTransferId, PerpsWithdrawalId, PerpsInstrumentCategory, PerpsKlineInterval } from '@polymarket/bindings/perps';
|
|
12
12
|
import * as _polymarket_bindings_combos from '@polymarket/bindings/combos';
|
|
13
13
|
import { ComboMarket, RfqRejectionCode, RfqQuoteId, RfqId, ComboAcceptFailureReason, BuilderRfqError, RfqQuoteRequest, RfqRequestedSize, RfqSide, RfqQuoteAck, RfqConfirmationRequest, RfqConfirmationAck as RfqConfirmationAck$1, RfqExecutionUpdate, RfqTrade, RfqQuoteCancelAck, ComboQuoteUnavailableReason, RfqStatus, RfqErrorCode, BuilderRfqStatusResponse, CollateralReturnPlanResponse } from '@polymarket/bindings/combos';
|
|
@@ -101,6 +101,15 @@ declare class TransportError extends PolymarketError {
|
|
|
101
101
|
constructor(message: string, options?: ErrorOptions);
|
|
102
102
|
static fromError(error: unknown): TransportError;
|
|
103
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* Error thrown when a caller cancels a read through its AbortSignal.
|
|
106
|
+
*
|
|
107
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
108
|
+
*/
|
|
109
|
+
declare class RequestAbortedError extends PolymarketError {
|
|
110
|
+
name: "RequestAbortedError";
|
|
111
|
+
constructor(message: string, options?: ErrorOptions);
|
|
112
|
+
}
|
|
104
113
|
/**
|
|
105
114
|
* WebSocket close codes defined by RFC 6455 and the IANA WebSocket Close Code
|
|
106
115
|
* Number registry. Codes 4000-4999 are reserved for application use and are
|
|
@@ -160,7 +169,7 @@ type RequestRejectedErrorOptions = {
|
|
|
160
169
|
* Machine-readable error code from the response body, when the service
|
|
161
170
|
* provided one.
|
|
162
171
|
*/
|
|
163
|
-
code?:
|
|
172
|
+
code?: GatewayErrorCode;
|
|
164
173
|
/**
|
|
165
174
|
* Server-requested delay in seconds before retrying, when the response
|
|
166
175
|
* provided one.
|
|
@@ -177,13 +186,13 @@ type RequestRejectedErrorOptions = {
|
|
|
177
186
|
* rate limiting.
|
|
178
187
|
*/
|
|
179
188
|
declare class RequestRejectedError extends PolymarketError {
|
|
180
|
-
name:
|
|
189
|
+
name: 'RequestRejectedError' | 'OrderHeartbeatMismatchError';
|
|
181
190
|
readonly status: number;
|
|
182
191
|
/**
|
|
183
192
|
* Machine-readable error code from the response body, when the service
|
|
184
193
|
* provided one.
|
|
185
194
|
*/
|
|
186
|
-
readonly code?:
|
|
195
|
+
readonly code?: GatewayErrorCode;
|
|
187
196
|
/**
|
|
188
197
|
* Server-requested delay in seconds before retrying, when the response
|
|
189
198
|
* provided one.
|
|
@@ -196,6 +205,16 @@ declare class RequestRejectedError extends PolymarketError {
|
|
|
196
205
|
readonly restriction?: TradingRestriction;
|
|
197
206
|
constructor(message: string, options: ErrorOptions & RequestRejectedErrorOptions);
|
|
198
207
|
}
|
|
208
|
+
/**
|
|
209
|
+
* An order heartbeat used a stale ID. Retry explicitly with heartbeatId and retain
|
|
210
|
+
* the new ID from the successful response. A rejected send does not refresh the deadline.
|
|
211
|
+
*/
|
|
212
|
+
declare class OrderHeartbeatMismatchError extends RequestRejectedError {
|
|
213
|
+
name: "OrderHeartbeatMismatchError";
|
|
214
|
+
/** Currently expected ID. It can be empty after a legacy heartbeat. */
|
|
215
|
+
readonly heartbeatId: string;
|
|
216
|
+
constructor(heartbeatId: string);
|
|
217
|
+
}
|
|
199
218
|
type RateLimitErrorOptions = {
|
|
200
219
|
/**
|
|
201
220
|
* Server-requested delay in seconds before retrying, when the response
|
|
@@ -318,6 +337,50 @@ declare function makeErrorGuard<TClasses extends ReadonlyArray<new (...args: any
|
|
|
318
337
|
isError(error: unknown): error is InstanceType<TClasses[number]>;
|
|
319
338
|
};
|
|
320
339
|
|
|
340
|
+
/**
|
|
341
|
+
* A Fetch-compatible function used for SDK HTTP requests.
|
|
342
|
+
*
|
|
343
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
344
|
+
*/
|
|
345
|
+
type Fetch = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
346
|
+
/**
|
|
347
|
+
* Controls one data read operation, including subsequent pages.
|
|
348
|
+
*
|
|
349
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
350
|
+
*/
|
|
351
|
+
type RequestOptions = {
|
|
352
|
+
/**
|
|
353
|
+
* Cancels this operation's requests and retry waits.
|
|
354
|
+
*
|
|
355
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
356
|
+
*/
|
|
357
|
+
signal?: AbortSignal;
|
|
358
|
+
/**
|
|
359
|
+
* Timeout in milliseconds for each individual HTTP request attempt until
|
|
360
|
+
* response headers arrive, or `false` to disable it. Defaults to 30 seconds.
|
|
361
|
+
* This is not a total deadline for an SDK method. Each underlying request
|
|
362
|
+
* (including each page) and each permitted retry receives a fresh timeout.
|
|
363
|
+
* Multiple requests, retries, and retry backoff can make the SDK operation
|
|
364
|
+
* take longer than this value.
|
|
365
|
+
* The SDK does not retry timeout errors, even when `retries` is greater than 0.
|
|
366
|
+
* The timeout excludes header resolution, hooks, retry waits, and response
|
|
367
|
+
* body download/parsing.
|
|
368
|
+
*
|
|
369
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
370
|
+
*/
|
|
371
|
+
timeout?: number | false;
|
|
372
|
+
/**
|
|
373
|
+
* Optional retries after the first attempt. Must be an integer from 0 to 5.
|
|
374
|
+
* Transport failures and rate limits share this budget for each request;
|
|
375
|
+
* every pagination request gets a fresh budget. Set 0 when the caller owns retries.
|
|
376
|
+
* Workflow recovery is unaffected.
|
|
377
|
+
*
|
|
378
|
+
* @defaultValue 2
|
|
379
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
380
|
+
*/
|
|
381
|
+
retries?: number;
|
|
382
|
+
};
|
|
383
|
+
|
|
321
384
|
type RequestAddressRequest = {
|
|
322
385
|
kind: 'requestAddress';
|
|
323
386
|
};
|
|
@@ -348,6 +411,18 @@ type SignGaslessMessageRequest = {
|
|
|
348
411
|
kind: 'signGaslessMessage';
|
|
349
412
|
payload: HexString;
|
|
350
413
|
};
|
|
414
|
+
type SendConvertTransactionRequest = {
|
|
415
|
+
kind: 'sendConvertTransaction';
|
|
416
|
+
request: SignerTransactionRequest;
|
|
417
|
+
};
|
|
418
|
+
type SendHorizontalSplitTransactionRequest = {
|
|
419
|
+
kind: 'sendHorizontalSplitTransaction';
|
|
420
|
+
request: SignerTransactionRequest;
|
|
421
|
+
};
|
|
422
|
+
type SendHorizontalMergeTransactionRequest = {
|
|
423
|
+
kind: 'sendHorizontalMergeTransaction';
|
|
424
|
+
request: SignerTransactionRequest;
|
|
425
|
+
};
|
|
351
426
|
type SendSplitPositionTransactionRequest = {
|
|
352
427
|
kind: 'sendSplitPositionTransaction';
|
|
353
428
|
request: SignerTransactionRequest;
|
|
@@ -370,9 +445,9 @@ declare const FetchExecuteParamsRequestSchema: z.ZodObject<{
|
|
|
370
445
|
type: z.ZodEnum<typeof RelayerTransactionType>;
|
|
371
446
|
}, z.core.$strip>;
|
|
372
447
|
type FetchExecuteParamsRequest = z.input<typeof FetchExecuteParamsRequestSchema>;
|
|
373
|
-
type FetchExecuteParamsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
448
|
+
type FetchExecuteParamsError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
374
449
|
declare const FetchExecuteParamsError: {
|
|
375
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
450
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
376
451
|
};
|
|
377
452
|
/**
|
|
378
453
|
* Fetches the parameters needed to prepare a low-level transaction submission.
|
|
@@ -383,7 +458,7 @@ declare const FetchExecuteParamsError: {
|
|
|
383
458
|
* @throws {@link FetchExecuteParamsError}
|
|
384
459
|
* Thrown on failure.
|
|
385
460
|
*/
|
|
386
|
-
declare function fetchExecuteParams(client: BaseClient, request: FetchExecuteParamsRequest): Promise<RelayerExecuteParams>;
|
|
461
|
+
declare function fetchExecuteParams(client: BaseClient, request: FetchExecuteParamsRequest, options?: RequestOptions): Promise<RelayerExecuteParams>;
|
|
387
462
|
declare const FetchGaslessTransactionRequestSchema: z.ZodObject<{
|
|
388
463
|
transactionId: z.ZodPipe<z.ZodString, z.ZodTransform<TransactionId, string>>;
|
|
389
464
|
}, z.core.$strip>;
|
|
@@ -393,9 +468,9 @@ declare const IsWalletDeployedRequestSchema: z.ZodObject<{
|
|
|
393
468
|
type: z.ZodEnum<typeof WalletType>;
|
|
394
469
|
}, z.core.$strip>;
|
|
395
470
|
type IsWalletDeployedRequest = z.input<typeof IsWalletDeployedRequestSchema>;
|
|
396
|
-
type IsWalletDeployedError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
471
|
+
type IsWalletDeployedError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
397
472
|
declare const IsWalletDeployedError: {
|
|
398
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
473
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
399
474
|
};
|
|
400
475
|
/**
|
|
401
476
|
* Checks whether a wallet is deployed for relayer-backed transactions.
|
|
@@ -416,7 +491,7 @@ declare const IsWalletDeployedError: {
|
|
|
416
491
|
* });
|
|
417
492
|
* ```
|
|
418
493
|
*/
|
|
419
|
-
declare function isWalletDeployed(client: BaseClient, request?: IsWalletDeployedRequest): Promise<boolean>;
|
|
494
|
+
declare function isWalletDeployed(client: BaseClient, request?: IsWalletDeployedRequest, options?: RequestOptions): Promise<boolean>;
|
|
420
495
|
declare const GaslessTransactionMetadataSchema: z.ZodString;
|
|
421
496
|
type DeployDepositWalletError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
422
497
|
declare const DeployDepositWalletError: {
|
|
@@ -432,6 +507,10 @@ declare const DeployDepositWalletError: {
|
|
|
432
507
|
* Thrown on failure.
|
|
433
508
|
*/
|
|
434
509
|
declare function deployDepositWallet(client: BaseSecureClient): Promise<TransactionHandle>;
|
|
510
|
+
type FetchGaslessTransactionError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
511
|
+
declare const FetchGaslessTransactionError: {
|
|
512
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
513
|
+
};
|
|
435
514
|
/**
|
|
436
515
|
* Fetches a submitted transaction.
|
|
437
516
|
*
|
|
@@ -441,7 +520,7 @@ declare function deployDepositWallet(client: BaseSecureClient): Promise<Transact
|
|
|
441
520
|
* @throws {@link FetchGaslessTransactionError}
|
|
442
521
|
* Thrown on failure.
|
|
443
522
|
*/
|
|
444
|
-
declare function fetchTransaction(client: BaseClient, request: FetchGaslessTransactionRequest): Promise<GaslessTransaction>;
|
|
523
|
+
declare function fetchTransaction(client: BaseClient, request: FetchGaslessTransactionRequest, options?: RequestOptions): Promise<GaslessTransaction>;
|
|
445
524
|
declare const PrepareGaslessTransactionRequestSchema: z.ZodObject<{
|
|
446
525
|
calls: z.ZodPipe<z.ZodArray<z.ZodObject<{
|
|
447
526
|
data: z.ZodCustom<`0x${string}`, `0x${string}`>;
|
|
@@ -494,6 +573,10 @@ type Page<T> = {
|
|
|
494
573
|
* A depth-limited page can report `true` alongside `limitReached`.
|
|
495
574
|
* Automatic iteration stops there; explicitly following its cursor throws
|
|
496
575
|
* {@link PaginationLimitError} before sending a request.
|
|
576
|
+
*
|
|
577
|
+
* Automatic iteration throws {@link UnexpectedResponseError} if a continuing
|
|
578
|
+
* page carries no cursor or repeats one already requested in that walk,
|
|
579
|
+
* after yielding the pages fetched so far.
|
|
497
580
|
*/
|
|
498
581
|
hasMore: boolean;
|
|
499
582
|
/**
|
|
@@ -534,9 +617,9 @@ declare const ListTradesRequestSchema: z.ZodObject<{
|
|
|
534
617
|
}>>>;
|
|
535
618
|
}, z.core.$strip>;
|
|
536
619
|
type ListTradesRequest = z.input<typeof ListTradesRequestSchema>;
|
|
537
|
-
type ListTradesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
620
|
+
type ListTradesError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
538
621
|
declare const ListTradesError: {
|
|
539
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
622
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
540
623
|
};
|
|
541
624
|
/**
|
|
542
625
|
* Lists trades for a wallet, market, or event — or the global recent-trades
|
|
@@ -548,7 +631,7 @@ declare const ListTradesError: {
|
|
|
548
631
|
* sent alone. `conditionId` accepts at most 20 distinct ids. `pageSize`
|
|
549
632
|
* defaults to 100 (max 1000). `window: 'full'` requests the complete
|
|
550
633
|
* history; an omitted window serves the recent feed. Transient rate limits
|
|
551
|
-
* are retried
|
|
634
|
+
* are retried by default.
|
|
552
635
|
*
|
|
553
636
|
* @remarks
|
|
554
637
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -585,7 +668,7 @@ declare const ListTradesError: {
|
|
|
585
668
|
* }
|
|
586
669
|
* ```
|
|
587
670
|
*/
|
|
588
|
-
declare function listTrades(client: BaseClient, request?: ListTradesRequest): Paginated<Trade[]>;
|
|
671
|
+
declare function listTrades(client: BaseClient, request?: ListTradesRequest, options?: RequestOptions): Paginated<Trade[]>;
|
|
589
672
|
declare const ListActivityRequestSchema: z.ZodObject<{
|
|
590
673
|
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
591
674
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
@@ -607,19 +690,22 @@ declare const ListActivityRequestSchema: z.ZodObject<{
|
|
|
607
690
|
}>>>;
|
|
608
691
|
}, z.core.$strip>;
|
|
609
692
|
type ListActivityRequest = z.input<typeof ListActivityRequestSchema>;
|
|
610
|
-
type ListActivityError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
693
|
+
type ListActivityError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
611
694
|
declare const ListActivityError: {
|
|
612
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
695
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
613
696
|
};
|
|
614
697
|
/**
|
|
615
698
|
* Lists wallet activity, newest-first by default.
|
|
699
|
+
* Trades and redemptions expose available token outcomes. Narrow splits, merges and redemptions on
|
|
700
|
+
* `isCombo` before using market-only metadata; a basket's outcome names its
|
|
701
|
+
* token side, not a selected leg.
|
|
616
702
|
*
|
|
617
703
|
* Every activity type the service serves is included by default — deposits
|
|
618
704
|
* and withdrawals are not filtered out; use the `type` filter to narrow
|
|
619
705
|
* results. `window: 'full'`
|
|
620
706
|
* requests the complete history (an omitted window serves the service's
|
|
621
707
|
* default range — the most recent three years). `pageSize` defaults to 100
|
|
622
|
-
* (max 1000). Transient rate limits are retried
|
|
708
|
+
* (max 1000). Transient rate limits are retried by default.
|
|
623
709
|
*
|
|
624
710
|
* @remarks
|
|
625
711
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -656,7 +742,7 @@ declare const ListActivityError: {
|
|
|
656
742
|
* }
|
|
657
743
|
* ```
|
|
658
744
|
*/
|
|
659
|
-
declare function listActivity(client: BaseClient, request: ListActivityRequest): Paginated<Activity[]>;
|
|
745
|
+
declare function listActivity(client: BaseClient, request: ListActivityRequest, options?: RequestOptions): Paginated<Activity[]>;
|
|
660
746
|
declare const ListComboActivityRequestSchema: z.ZodObject<{
|
|
661
747
|
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
662
748
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
@@ -664,9 +750,9 @@ declare const ListComboActivityRequestSchema: z.ZodObject<{
|
|
|
664
750
|
conditionId: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.ComboConditionId, string>>, z.ZodPipe<z.ZodArray<z.ZodType<_polymarket_bindings.ComboConditionId, string, z.core.$ZodTypeInternals<_polymarket_bindings.ComboConditionId, string>>>, z.ZodTransform<_polymarket_bindings.ComboConditionId[], _polymarket_bindings.ComboConditionId[]>>]>>;
|
|
665
751
|
}, z.core.$strip>;
|
|
666
752
|
type ListComboActivityRequest = z.input<typeof ListComboActivityRequestSchema>;
|
|
667
|
-
type ListComboActivityError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
753
|
+
type ListComboActivityError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
668
754
|
declare const ListComboActivityError: {
|
|
669
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
755
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
670
756
|
};
|
|
671
757
|
/**
|
|
672
758
|
* Lists Combo lifecycle activity for a wallet, ordered by on-chain position.
|
|
@@ -674,7 +760,7 @@ declare const ListComboActivityError: {
|
|
|
674
760
|
* Every row carries the Combo position id and its legs enriched with market
|
|
675
761
|
* metadata; redeem rows additionally carry payout semantics. `pageSize`
|
|
676
762
|
* defaults to 100 (max 1000). Transient rate limits are retried
|
|
677
|
-
*
|
|
763
|
+
* by default.
|
|
678
764
|
*
|
|
679
765
|
* @remarks
|
|
680
766
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -698,7 +784,7 @@ declare const ListComboActivityError: {
|
|
|
698
784
|
* }
|
|
699
785
|
* ```
|
|
700
786
|
*/
|
|
701
|
-
declare function listComboActivity(client: BaseClient, request: ListComboActivityRequest): Paginated<ComboActivity[]>;
|
|
787
|
+
declare function listComboActivity(client: BaseClient, request: ListComboActivityRequest, options?: RequestOptions): Paginated<ComboActivity[]>;
|
|
702
788
|
|
|
703
789
|
declare const ListPositionsRequestSchema: z.ZodObject<{
|
|
704
790
|
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
@@ -725,9 +811,9 @@ declare const ListPositionsRequestSchema: z.ZodObject<{
|
|
|
725
811
|
}>>>;
|
|
726
812
|
}, z.core.$strip>;
|
|
727
813
|
type ListPositionsRequest = z.input<typeof ListPositionsRequestSchema>;
|
|
728
|
-
type ListPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
814
|
+
type ListPositionsError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
729
815
|
declare const ListPositionsError: {
|
|
730
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
816
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
731
817
|
};
|
|
732
818
|
/**
|
|
733
819
|
* Lists positions for a wallet, or a market's holders when anchored on a
|
|
@@ -744,12 +830,18 @@ declare const ListPositionsError: {
|
|
|
744
830
|
* status but CLOSED unless `filterType`/`filterAmount` say otherwise.
|
|
745
831
|
* `conditionId` accepts at most 20 distinct ids (with `user`). `pageSize`
|
|
746
832
|
* defaults to 100 (max 1000). Transient rate limits are retried
|
|
747
|
-
*
|
|
833
|
+
* by default.
|
|
748
834
|
*
|
|
749
835
|
* `REDEEMABLE_LOST` requires `user`. For `MERGEABLE`, provide `user` to
|
|
750
836
|
* filter to mergeable positions; a `conditionId`-only request falls back
|
|
751
837
|
* to the broader `OPEN` listing. `sortBy` defaults to `TOKENS` for
|
|
752
838
|
* `MERGEABLE`, `REALIZED_PNL` for `CLOSED`, and `CURRENT_VALUE` otherwise.
|
|
839
|
+
* For wallet-anchored `CLOSED` listings, `TOKENS`, `CURRENT_VALUE`, `PRICE`
|
|
840
|
+
* and `UNREALIZED_PNL` sort by realized PnL in the requested direction.
|
|
841
|
+
* Keep the original filters and requested sort when resuming a cursor. If
|
|
842
|
+
* an older cursor is rejected with HTTP 400 because the ordering changed,
|
|
843
|
+
* discard it and explicitly fetch a new first page; the paginator does not
|
|
844
|
+
* restart the listing.
|
|
753
845
|
* `title` filters by case-insensitive substring across every status and
|
|
754
846
|
* anchor; the paginator retains it when advancing or resuming.
|
|
755
847
|
*
|
|
@@ -788,7 +880,7 @@ declare const ListPositionsError: {
|
|
|
788
880
|
* }
|
|
789
881
|
* ```
|
|
790
882
|
*/
|
|
791
|
-
declare function listPositions(client: BaseClient, request: ListPositionsRequest): Paginated<Position[]>;
|
|
883
|
+
declare function listPositions(client: BaseClient, request: ListPositionsRequest, options?: RequestOptions): Paginated<Position[]>;
|
|
792
884
|
/**
|
|
793
885
|
* One status or a non-empty ordered list of statuses. Pass multiple statuses
|
|
794
886
|
* as an array rather than a comma-separated string.
|
|
@@ -811,9 +903,9 @@ declare const ListComboPositionsRequestSchema: z.ZodObject<{
|
|
|
811
903
|
type ListComboPositionsRequest = Omit<z.input<typeof ListComboPositionsRequestSchema>, 'status'> & {
|
|
812
904
|
status?: ComboPositionStatusFilter;
|
|
813
905
|
};
|
|
814
|
-
type ListComboPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
906
|
+
type ListComboPositionsError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
815
907
|
declare const ListComboPositionsError: {
|
|
816
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
908
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
817
909
|
};
|
|
818
910
|
/**
|
|
819
911
|
* Lists Combo positions for a wallet.
|
|
@@ -823,7 +915,7 @@ declare const ListComboPositionsError: {
|
|
|
823
915
|
* `redeemable` flag is set. Every row carries its legs enriched with market
|
|
824
916
|
* metadata and exact entry economics. `updatedAfter`/`updatedBefore` bound
|
|
825
917
|
* the rows' change watermark for incremental sync. `pageSize` defaults to
|
|
826
|
-
* 100 (max 1000). Transient rate limits are retried
|
|
918
|
+
* 100 (max 1000). Transient rate limits are retried by default.
|
|
827
919
|
*
|
|
828
920
|
* @remarks
|
|
829
921
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -881,15 +973,15 @@ declare const ListComboPositionsError: {
|
|
|
881
973
|
* });
|
|
882
974
|
* ```
|
|
883
975
|
*/
|
|
884
|
-
declare function listComboPositions(client: BaseClient, request: ListComboPositionsRequest): Paginated<ComboPosition[]>;
|
|
976
|
+
declare function listComboPositions(client: BaseClient, request: ListComboPositionsRequest, options?: RequestOptions): Paginated<ComboPosition[]>;
|
|
885
977
|
declare const FetchPortfolioValueRequestSchema: z.ZodObject<{
|
|
886
978
|
user: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
|
|
887
979
|
conditionIds: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodType<_polymarket_bindings.ConditionId, string, z.core.$ZodTypeInternals<_polymarket_bindings.ConditionId, string>>>, z.ZodTransform<_polymarket_bindings.ConditionId[], _polymarket_bindings.ConditionId[]>>>;
|
|
888
980
|
}, z.core.$strip>;
|
|
889
981
|
type FetchPortfolioValueRequest = z.input<typeof FetchPortfolioValueRequestSchema>;
|
|
890
|
-
type FetchPortfolioValueError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
982
|
+
type FetchPortfolioValueError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
891
983
|
declare const FetchPortfolioValueError: {
|
|
892
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
984
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
893
985
|
};
|
|
894
986
|
/**
|
|
895
987
|
* Fetches the total value for a wallet's positions.
|
|
@@ -914,14 +1006,14 @@ declare const FetchPortfolioValueError: {
|
|
|
914
1006
|
* // value: PortfolioValue
|
|
915
1007
|
* ```
|
|
916
1008
|
*/
|
|
917
|
-
declare function fetchPortfolioValue(client: BaseClient, request: FetchPortfolioValueRequest): Promise<PortfolioValue>;
|
|
1009
|
+
declare function fetchPortfolioValue(client: BaseClient, request: FetchPortfolioValueRequest, options?: RequestOptions): Promise<PortfolioValue>;
|
|
918
1010
|
declare const FetchUserStatsRequestSchema: z.ZodObject<{
|
|
919
1011
|
user: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
|
|
920
1012
|
}, z.core.$strip>;
|
|
921
1013
|
type FetchUserStatsRequest = z.input<typeof FetchUserStatsRequestSchema>;
|
|
922
|
-
type FetchUserStatsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
1014
|
+
type FetchUserStatsError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
923
1015
|
declare const FetchUserStatsError: {
|
|
924
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
1016
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
925
1017
|
};
|
|
926
1018
|
/**
|
|
927
1019
|
* Fetches profile and lifetime trading statistics for a wallet.
|
|
@@ -946,16 +1038,16 @@ declare const FetchUserStatsError: {
|
|
|
946
1038
|
* // stats: UserStats | null
|
|
947
1039
|
* ```
|
|
948
1040
|
*/
|
|
949
|
-
declare function fetchUserStats(client: BaseClient, request: FetchUserStatsRequest): Promise<UserStats | null>;
|
|
1041
|
+
declare function fetchUserStats(client: BaseClient, request: FetchUserStatsRequest, options?: RequestOptions): Promise<UserStats | null>;
|
|
950
1042
|
declare const FetchUserPnlRequestSchema: z.ZodObject<{
|
|
951
1043
|
user: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
|
|
952
1044
|
interval: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.UserPnlInterval>>;
|
|
953
1045
|
fidelity: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.UserPnlFidelity>>;
|
|
954
1046
|
}, z.core.$strip>;
|
|
955
1047
|
type FetchUserPnlRequest = z.input<typeof FetchUserPnlRequestSchema>;
|
|
956
|
-
type FetchUserPnlError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
1048
|
+
type FetchUserPnlError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
957
1049
|
declare const FetchUserPnlError: {
|
|
958
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
1050
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
959
1051
|
};
|
|
960
1052
|
/**
|
|
961
1053
|
* Fetches a wallet's cumulative PnL series.
|
|
@@ -979,7 +1071,7 @@ declare const FetchUserPnlError: {
|
|
|
979
1071
|
* });
|
|
980
1072
|
* ```
|
|
981
1073
|
*/
|
|
982
|
-
declare function fetchUserPnl(client: BaseClient, request: FetchUserPnlRequest): Promise<UserPnlSeries>;
|
|
1074
|
+
declare function fetchUserPnl(client: BaseClient, request: FetchUserPnlRequest, options?: RequestOptions): Promise<UserPnlSeries>;
|
|
983
1075
|
declare const FetchUserVolumeRequestSchema: z.ZodObject<{
|
|
984
1076
|
user: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
|
|
985
1077
|
window: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<"full">, z.ZodObject<{
|
|
@@ -994,9 +1086,9 @@ declare const FetchUserVolumeRequestSchema: z.ZodObject<{
|
|
|
994
1086
|
}>>>;
|
|
995
1087
|
}, z.core.$strip>;
|
|
996
1088
|
type FetchUserVolumeRequest = z.input<typeof FetchUserVolumeRequestSchema>;
|
|
997
|
-
type FetchUserVolumeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
1089
|
+
type FetchUserVolumeError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
998
1090
|
declare const FetchUserVolumeError: {
|
|
999
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
1091
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
1000
1092
|
};
|
|
1001
1093
|
/**
|
|
1002
1094
|
* Fetches a wallet's trading volume for a time window.
|
|
@@ -1018,14 +1110,14 @@ declare const FetchUserVolumeError: {
|
|
|
1018
1110
|
* });
|
|
1019
1111
|
* ```
|
|
1020
1112
|
*/
|
|
1021
|
-
declare function fetchUserVolume(client: BaseClient, request: FetchUserVolumeRequest): Promise<UserVolume>;
|
|
1113
|
+
declare function fetchUserVolume(client: BaseClient, request: FetchUserVolumeRequest, options?: RequestOptions): Promise<UserVolume>;
|
|
1022
1114
|
declare const DownloadAccountingSnapshotRequestSchema: z.ZodObject<{
|
|
1023
1115
|
user: z.ZodString;
|
|
1024
1116
|
}, z.core.$strip>;
|
|
1025
1117
|
type DownloadAccountingSnapshotRequest = z.input<typeof DownloadAccountingSnapshotRequestSchema>;
|
|
1026
|
-
type DownloadAccountingSnapshotError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
1118
|
+
type DownloadAccountingSnapshotError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
1027
1119
|
declare const DownloadAccountingSnapshotError: {
|
|
1028
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
1120
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
1029
1121
|
};
|
|
1030
1122
|
/**
|
|
1031
1123
|
* Downloads an accounting snapshot archive for a wallet.
|
|
@@ -1045,7 +1137,7 @@ declare const DownloadAccountingSnapshotError: {
|
|
|
1045
1137
|
* // snapshot === Blob
|
|
1046
1138
|
* ```
|
|
1047
1139
|
*/
|
|
1048
|
-
declare function downloadAccountingSnapshot(client: BaseClient, request: DownloadAccountingSnapshotRequest): Promise<Blob>;
|
|
1140
|
+
declare function downloadAccountingSnapshot(client: BaseClient, request: DownloadAccountingSnapshotRequest, options?: RequestOptions): Promise<Blob>;
|
|
1049
1141
|
|
|
1050
1142
|
type DefaultAccountWallet<TRequest extends {
|
|
1051
1143
|
user?: string;
|
|
@@ -1084,6 +1176,12 @@ type PublicAccountActions = Prettify<{
|
|
|
1084
1176
|
*
|
|
1085
1177
|
* `sortBy` defaults to `TOKENS` for `MERGEABLE`, `REALIZED_PNL` for
|
|
1086
1178
|
* `CLOSED`, and `CURRENT_VALUE` for the other statuses.
|
|
1179
|
+
* For wallet-anchored `CLOSED` listings, `TOKENS`, `CURRENT_VALUE`, `PRICE`
|
|
1180
|
+
* and `UNREALIZED_PNL` sort by realized PnL in the requested direction.
|
|
1181
|
+
* Keep the original filters and requested sort when resuming a cursor. If
|
|
1182
|
+
* an older cursor is rejected with HTTP 400 because the ordering changed,
|
|
1183
|
+
* discard it and explicitly fetch a new first page; the paginator does not
|
|
1184
|
+
* restart the listing.
|
|
1087
1185
|
* `title` filters by case-insensitive substring (max 200 Unicode characters).
|
|
1088
1186
|
* `%` and `_` are wildcards. Blank input is ignored; other patterns are
|
|
1089
1187
|
* preserved unchanged on every page, including cursor replay.
|
|
@@ -1120,7 +1218,7 @@ type PublicAccountActions = Prettify<{
|
|
|
1120
1218
|
* }
|
|
1121
1219
|
* ```
|
|
1122
1220
|
*/
|
|
1123
|
-
listPositions(request: ListPositionsRequest): Paginated<Position[]>;
|
|
1221
|
+
listPositions(request: ListPositionsRequest, options?: RequestOptions): Paginated<Position[]>;
|
|
1124
1222
|
/**
|
|
1125
1223
|
* Lists combo positions for a wallet.
|
|
1126
1224
|
*
|
|
@@ -1151,7 +1249,7 @@ type PublicAccountActions = Prettify<{
|
|
|
1151
1249
|
* });
|
|
1152
1250
|
* ```
|
|
1153
1251
|
*/
|
|
1154
|
-
listComboPositions(request: ListComboPositionsRequest): Paginated<ComboPosition[]>;
|
|
1252
|
+
listComboPositions(request: ListComboPositionsRequest, options?: RequestOptions): Paginated<ComboPosition[]>;
|
|
1155
1253
|
/**
|
|
1156
1254
|
* Fetches the total value for a wallet's positions.
|
|
1157
1255
|
*
|
|
@@ -1170,7 +1268,7 @@ type PublicAccountActions = Prettify<{
|
|
|
1170
1268
|
* });
|
|
1171
1269
|
* ```
|
|
1172
1270
|
*/
|
|
1173
|
-
fetchPortfolioValue(request: FetchPortfolioValueRequest): Promise<PortfolioValue>;
|
|
1271
|
+
fetchPortfolioValue(request: FetchPortfolioValueRequest, options?: RequestOptions): Promise<PortfolioValue>;
|
|
1174
1272
|
/**
|
|
1175
1273
|
* Fetches one trader's standing on both the PnL and volume boards.
|
|
1176
1274
|
*
|
|
@@ -1188,7 +1286,7 @@ type PublicAccountActions = Prettify<{
|
|
|
1188
1286
|
* });
|
|
1189
1287
|
* ```
|
|
1190
1288
|
*/
|
|
1191
|
-
fetchTraderLeaderboardStanding(request: FetchTraderLeaderboardStandingRequest): Promise<TraderLeaderboardStanding | null>;
|
|
1289
|
+
fetchTraderLeaderboardStanding(request: FetchTraderLeaderboardStandingRequest, options?: RequestOptions): Promise<TraderLeaderboardStanding | null>;
|
|
1192
1290
|
/**
|
|
1193
1291
|
* Fetches profile and lifetime trading statistics for a wallet.
|
|
1194
1292
|
*
|
|
@@ -1206,7 +1304,7 @@ type PublicAccountActions = Prettify<{
|
|
|
1206
1304
|
* });
|
|
1207
1305
|
* ```
|
|
1208
1306
|
*/
|
|
1209
|
-
fetchUserStats(request: FetchUserStatsRequest): Promise<UserStats | null>;
|
|
1307
|
+
fetchUserStats(request: FetchUserStatsRequest, options?: RequestOptions): Promise<UserStats | null>;
|
|
1210
1308
|
/**
|
|
1211
1309
|
* Fetches a wallet's cumulative PnL series.
|
|
1212
1310
|
*
|
|
@@ -1226,7 +1324,7 @@ type PublicAccountActions = Prettify<{
|
|
|
1226
1324
|
* });
|
|
1227
1325
|
* ```
|
|
1228
1326
|
*/
|
|
1229
|
-
fetchUserPnl(request: FetchUserPnlRequest): Promise<UserPnlSeries>;
|
|
1327
|
+
fetchUserPnl(request: FetchUserPnlRequest, options?: RequestOptions): Promise<UserPnlSeries>;
|
|
1230
1328
|
/**
|
|
1231
1329
|
* Fetches a wallet's trading volume for a time window.
|
|
1232
1330
|
*
|
|
@@ -1244,7 +1342,7 @@ type PublicAccountActions = Prettify<{
|
|
|
1244
1342
|
* });
|
|
1245
1343
|
* ```
|
|
1246
1344
|
*/
|
|
1247
|
-
fetchUserVolume(request: FetchUserVolumeRequest): Promise<UserVolume>;
|
|
1345
|
+
fetchUserVolume(request: FetchUserVolumeRequest, options?: RequestOptions): Promise<UserVolume>;
|
|
1248
1346
|
/**
|
|
1249
1347
|
* Downloads an accounting snapshot archive for a wallet.
|
|
1250
1348
|
*
|
|
@@ -1258,16 +1356,19 @@ type PublicAccountActions = Prettify<{
|
|
|
1258
1356
|
* });
|
|
1259
1357
|
* ```
|
|
1260
1358
|
*/
|
|
1261
|
-
downloadAccountingSnapshot(request: DownloadAccountingSnapshotRequest): Promise<Blob>;
|
|
1359
|
+
downloadAccountingSnapshot(request: DownloadAccountingSnapshotRequest, options?: RequestOptions): Promise<Blob>;
|
|
1262
1360
|
/**
|
|
1263
1361
|
* Lists wallet activity.
|
|
1362
|
+
* Trades and redemptions expose available token outcomes. Narrow splits, merges and redemptions on
|
|
1363
|
+
* `isCombo` before using market-only metadata; a basket's outcome names its
|
|
1364
|
+
* token side, not a selected leg.
|
|
1264
1365
|
*
|
|
1265
1366
|
* Every activity type is included by default, including deposits and
|
|
1266
1367
|
* withdrawals; use the `type` filter to narrow results. An omitted `window`
|
|
1267
1368
|
* serves the most recent three years; `window: 'full'` requests the complete
|
|
1268
1369
|
* history. Window bounds accept Unix epoch seconds or `Date` values. Results
|
|
1269
1370
|
* are newest-first by default. `pageSize` defaults to 100 (max 1000), and
|
|
1270
|
-
* transient rate limits are retried
|
|
1371
|
+
* transient rate limits are retried by default.
|
|
1271
1372
|
*
|
|
1272
1373
|
* @throws {@link ListActivityError}
|
|
1273
1374
|
* Thrown on failure.
|
|
@@ -1301,7 +1402,7 @@ type PublicAccountActions = Prettify<{
|
|
|
1301
1402
|
* }
|
|
1302
1403
|
* ```
|
|
1303
1404
|
*/
|
|
1304
|
-
listActivity(request: ListActivityRequest): Paginated<Activity[]>;
|
|
1405
|
+
listActivity(request: ListActivityRequest, options?: RequestOptions): Paginated<Activity[]>;
|
|
1305
1406
|
/**
|
|
1306
1407
|
* Lists combo lifecycle activity for a wallet.
|
|
1307
1408
|
*
|
|
@@ -1319,7 +1420,7 @@ type PublicAccountActions = Prettify<{
|
|
|
1319
1420
|
* const firstPage = await paginator.firstPage();
|
|
1320
1421
|
* ```
|
|
1321
1422
|
*/
|
|
1322
|
-
listComboActivity(request: ListComboActivityRequest): Paginated<ComboActivity[]>;
|
|
1423
|
+
listComboActivity(request: ListComboActivityRequest, options?: RequestOptions): Paginated<ComboActivity[]>;
|
|
1323
1424
|
}>;
|
|
1324
1425
|
type SecureAccountActions = Prettify<{
|
|
1325
1426
|
/**
|
|
@@ -1340,6 +1441,12 @@ type SecureAccountActions = Prettify<{
|
|
|
1340
1441
|
*
|
|
1341
1442
|
* `sortBy` defaults to `TOKENS` for `MERGEABLE`, `REALIZED_PNL` for
|
|
1342
1443
|
* `CLOSED`, and `CURRENT_VALUE` for the other statuses.
|
|
1444
|
+
* For wallet-anchored `CLOSED` listings, `TOKENS`, `CURRENT_VALUE`, `PRICE`
|
|
1445
|
+
* and `UNREALIZED_PNL` sort by realized PnL in the requested direction.
|
|
1446
|
+
* Keep the original filters and requested sort when resuming a cursor. If
|
|
1447
|
+
* an older cursor is rejected with HTTP 400 because the ordering changed,
|
|
1448
|
+
* discard it and explicitly fetch a new first page; the paginator does not
|
|
1449
|
+
* restart the listing.
|
|
1343
1450
|
* `title` filters by case-insensitive substring (max 200 Unicode characters).
|
|
1344
1451
|
* `%` and `_` are wildcards. Blank input is ignored; other patterns are
|
|
1345
1452
|
* preserved unchanged on every page, including cursor replay.
|
|
@@ -1357,7 +1464,7 @@ type SecureAccountActions = Prettify<{
|
|
|
1357
1464
|
* const firstPage = await paginator.firstPage();
|
|
1358
1465
|
* ```
|
|
1359
1466
|
*/
|
|
1360
|
-
listPositions(request?: SecureListPositionsRequest): Paginated<Position[]>;
|
|
1467
|
+
listPositions(request?: SecureListPositionsRequest, options?: RequestOptions): Paginated<Position[]>;
|
|
1361
1468
|
/**
|
|
1362
1469
|
* Lists combo positions for a wallet.
|
|
1363
1470
|
*
|
|
@@ -1377,7 +1484,7 @@ type SecureAccountActions = Prettify<{
|
|
|
1377
1484
|
* });
|
|
1378
1485
|
* ```
|
|
1379
1486
|
*/
|
|
1380
|
-
listComboPositions(request?: SecureListComboPositionsRequest): Paginated<ComboPosition[]>;
|
|
1487
|
+
listComboPositions(request?: SecureListComboPositionsRequest, options?: RequestOptions): Paginated<ComboPosition[]>;
|
|
1381
1488
|
/**
|
|
1382
1489
|
* Fetches the total value for a wallet's positions.
|
|
1383
1490
|
*
|
|
@@ -1390,7 +1497,7 @@ type SecureAccountActions = Prettify<{
|
|
|
1390
1497
|
* @throws {@link FetchPortfolioValueError}
|
|
1391
1498
|
* Thrown on failure.
|
|
1392
1499
|
*/
|
|
1393
|
-
fetchPortfolioValue(request?: SecureFetchPortfolioValueRequest): Promise<PortfolioValue>;
|
|
1500
|
+
fetchPortfolioValue(request?: SecureFetchPortfolioValueRequest, options?: RequestOptions): Promise<PortfolioValue>;
|
|
1394
1501
|
/**
|
|
1395
1502
|
* Fetches one trader's standing on both the PnL and volume boards.
|
|
1396
1503
|
*
|
|
@@ -1408,7 +1515,7 @@ type SecureAccountActions = Prettify<{
|
|
|
1408
1515
|
* });
|
|
1409
1516
|
* ```
|
|
1410
1517
|
*/
|
|
1411
|
-
fetchTraderLeaderboardStanding(request?: SecureFetchTraderLeaderboardStandingRequest): Promise<TraderLeaderboardStanding | null>;
|
|
1518
|
+
fetchTraderLeaderboardStanding(request?: SecureFetchTraderLeaderboardStandingRequest, options?: RequestOptions): Promise<TraderLeaderboardStanding | null>;
|
|
1412
1519
|
/**
|
|
1413
1520
|
* Fetches profile and lifetime trading statistics for a wallet.
|
|
1414
1521
|
*
|
|
@@ -1420,7 +1527,7 @@ type SecureAccountActions = Prettify<{
|
|
|
1420
1527
|
* @throws {@link FetchUserStatsError}
|
|
1421
1528
|
* Thrown on failure.
|
|
1422
1529
|
*/
|
|
1423
|
-
fetchUserStats(request?: SecureFetchUserStatsRequest): Promise<UserStats | null>;
|
|
1530
|
+
fetchUserStats(request?: SecureFetchUserStatsRequest, options?: RequestOptions): Promise<UserStats | null>;
|
|
1424
1531
|
/**
|
|
1425
1532
|
* Fetches the cumulative PnL series for a wallet.
|
|
1426
1533
|
*
|
|
@@ -1430,7 +1537,7 @@ type SecureAccountActions = Prettify<{
|
|
|
1430
1537
|
* @throws {@link FetchUserPnlError}
|
|
1431
1538
|
* Thrown on failure.
|
|
1432
1539
|
*/
|
|
1433
|
-
fetchUserPnl(request?: SecureFetchUserPnlRequest): Promise<UserPnlSeries>;
|
|
1540
|
+
fetchUserPnl(request?: SecureFetchUserPnlRequest, options?: RequestOptions): Promise<UserPnlSeries>;
|
|
1434
1541
|
/**
|
|
1435
1542
|
* Fetches trading volume for a wallet over a time window.
|
|
1436
1543
|
*
|
|
@@ -1441,7 +1548,7 @@ type SecureAccountActions = Prettify<{
|
|
|
1441
1548
|
* @throws {@link FetchUserVolumeError}
|
|
1442
1549
|
* Thrown on failure.
|
|
1443
1550
|
*/
|
|
1444
|
-
fetchUserVolume(request?: SecureFetchUserVolumeRequest): Promise<UserVolume>;
|
|
1551
|
+
fetchUserVolume(request?: SecureFetchUserVolumeRequest, options?: RequestOptions): Promise<UserVolume>;
|
|
1445
1552
|
/**
|
|
1446
1553
|
* Downloads an accounting snapshot archive for a wallet.
|
|
1447
1554
|
*
|
|
@@ -1450,9 +1557,12 @@ type SecureAccountActions = Prettify<{
|
|
|
1450
1557
|
* @throws {@link DownloadAccountingSnapshotError}
|
|
1451
1558
|
* Thrown on failure.
|
|
1452
1559
|
*/
|
|
1453
|
-
downloadAccountingSnapshot(request?: SecureDownloadAccountingSnapshotRequest): Promise<Blob>;
|
|
1560
|
+
downloadAccountingSnapshot(request?: SecureDownloadAccountingSnapshotRequest, options?: RequestOptions): Promise<Blob>;
|
|
1454
1561
|
/**
|
|
1455
1562
|
* Lists wallet activity.
|
|
1563
|
+
* Trades and redemptions expose available token outcomes. Narrow splits, merges and redemptions on
|
|
1564
|
+
* `isCombo` before using market-only metadata; a basket's outcome names its
|
|
1565
|
+
* token side, not a selected leg.
|
|
1456
1566
|
*
|
|
1457
1567
|
* Defaults to the authenticated account's wallet when `user` is omitted.
|
|
1458
1568
|
*
|
|
@@ -1461,12 +1571,12 @@ type SecureAccountActions = Prettify<{
|
|
|
1461
1571
|
* serves the most recent three years; `window: 'full'` requests the complete
|
|
1462
1572
|
* history. Window bounds accept Unix epoch seconds or `Date` values. Results
|
|
1463
1573
|
* are newest-first by default. `pageSize` defaults to 100 (max 1000), and
|
|
1464
|
-
* transient rate limits are retried
|
|
1574
|
+
* transient rate limits are retried by default.
|
|
1465
1575
|
*
|
|
1466
1576
|
* @throws {@link ListActivityError}
|
|
1467
1577
|
* Thrown on failure.
|
|
1468
1578
|
*/
|
|
1469
|
-
listActivity(request?: SecureListActivityRequest): Paginated<Activity[]>;
|
|
1579
|
+
listActivity(request?: SecureListActivityRequest, options?: RequestOptions): Paginated<Activity[]>;
|
|
1470
1580
|
/**
|
|
1471
1581
|
* Lists combo lifecycle activity for a wallet.
|
|
1472
1582
|
*
|
|
@@ -1475,7 +1585,7 @@ type SecureAccountActions = Prettify<{
|
|
|
1475
1585
|
* @throws {@link ListComboActivityError}
|
|
1476
1586
|
* Thrown on failure.
|
|
1477
1587
|
*/
|
|
1478
|
-
listComboActivity(request?: SecureListComboActivityRequest): Paginated<ComboActivity[]>;
|
|
1588
|
+
listComboActivity(request?: SecureListComboActivityRequest, options?: RequestOptions): Paginated<ComboActivity[]>;
|
|
1479
1589
|
/**
|
|
1480
1590
|
* Lists trades for the authenticated account across all pages.
|
|
1481
1591
|
*
|
|
@@ -1509,7 +1619,7 @@ type SecureAccountActions = Prettify<{
|
|
|
1509
1619
|
* }
|
|
1510
1620
|
* ```
|
|
1511
1621
|
*/
|
|
1512
|
-
listAccountTrades(request?: ListAccountTradesRequest): Paginated<ClobTrade[]>;
|
|
1622
|
+
listAccountTrades(request?: ListAccountTradesRequest, options?: RequestOptions): Paginated<ClobTrade[]>;
|
|
1513
1623
|
/**
|
|
1514
1624
|
* Fetches notifications for the authenticated account.
|
|
1515
1625
|
* Notifications of a kind this SDK version does not recognize are omitted.
|
|
@@ -1522,7 +1632,7 @@ type SecureAccountActions = Prettify<{
|
|
|
1522
1632
|
* const notifications = await client.fetchNotifications();
|
|
1523
1633
|
* ```
|
|
1524
1634
|
*/
|
|
1525
|
-
fetchNotifications(): Promise<NotificationsResponse>;
|
|
1635
|
+
fetchNotifications(options?: RequestOptions): Promise<NotificationsResponse>;
|
|
1526
1636
|
/**
|
|
1527
1637
|
* Drops notifications for the authenticated account.
|
|
1528
1638
|
*
|
|
@@ -1548,7 +1658,7 @@ type SecureAccountActions = Prettify<{
|
|
|
1548
1658
|
* const closedOnly = await client.fetchClosedOnlyMode();
|
|
1549
1659
|
* ```
|
|
1550
1660
|
*/
|
|
1551
|
-
fetchClosedOnlyMode(): Promise<boolean>;
|
|
1661
|
+
fetchClosedOnlyMode(options?: RequestOptions): Promise<boolean>;
|
|
1552
1662
|
}>;
|
|
1553
1663
|
declare function accountActions(client: BasePublicClient): PublicAccountActions;
|
|
1554
1664
|
declare function accountActions(client: BaseSecureClient): SecureAccountActions;
|
|
@@ -1587,14 +1697,14 @@ type AnalyticsActions = {
|
|
|
1587
1697
|
* }
|
|
1588
1698
|
* ```
|
|
1589
1699
|
*/
|
|
1590
|
-
listBuilderTrades(request: ListBuilderTradesRequest): Paginated<BuilderTrade[]>;
|
|
1700
|
+
listBuilderTrades(request: ListBuilderTradesRequest, options?: RequestOptions): Paginated<BuilderTrade[]>;
|
|
1591
1701
|
/**
|
|
1592
1702
|
* Lists builder leaderboard rankings.
|
|
1593
1703
|
*
|
|
1594
1704
|
* Builders are ranked by attributed share volume within `window`, which
|
|
1595
1705
|
* defaults to one day. `builderCode` is the stable identifier; names and
|
|
1596
1706
|
* profile images are display metadata. `pageSize` defaults to 100 (max 1000).
|
|
1597
|
-
* Transient rate limits are retried
|
|
1707
|
+
* Transient rate limits are retried by default.
|
|
1598
1708
|
*
|
|
1599
1709
|
* @throws {@link ListBuilderLeaderboardError}
|
|
1600
1710
|
* Thrown on failure.
|
|
@@ -1628,7 +1738,7 @@ type AnalyticsActions = {
|
|
|
1628
1738
|
* }
|
|
1629
1739
|
* ```
|
|
1630
1740
|
*/
|
|
1631
|
-
listBuilderLeaderboard(request?: ListBuilderLeaderboardRequest): Paginated<BuilderStanding[]>;
|
|
1741
|
+
listBuilderLeaderboard(request?: ListBuilderLeaderboardRequest, options?: RequestOptions): Paginated<BuilderStanding[]>;
|
|
1632
1742
|
/**
|
|
1633
1743
|
* Fetches the per-builder volume time series.
|
|
1634
1744
|
*
|
|
@@ -1636,7 +1746,7 @@ type AnalyticsActions = {
|
|
|
1636
1746
|
* {@link BuilderVolumeInterval.Year} for one bucket per calendar year.
|
|
1637
1747
|
* `bucketLimit` returns that many complete recent buckets (default 30, max 90),
|
|
1638
1748
|
* not that many builder rows. Results are newest bucket first, and volume is
|
|
1639
|
-
* measured in shares. Transient rate limits are retried
|
|
1749
|
+
* measured in shares. Transient rate limits are retried by default.
|
|
1640
1750
|
*
|
|
1641
1751
|
* @throws {@link FetchBuilderVolumeError}
|
|
1642
1752
|
* Thrown on failure.
|
|
@@ -1649,7 +1759,7 @@ type AnalyticsActions = {
|
|
|
1649
1759
|
* });
|
|
1650
1760
|
* ```
|
|
1651
1761
|
*/
|
|
1652
|
-
fetchBuilderVolume(request?: FetchBuilderVolumeRequest): Promise<BuilderVolumePoint[]>;
|
|
1762
|
+
fetchBuilderVolume(request?: FetchBuilderVolumeRequest, options?: RequestOptions): Promise<BuilderVolumePoint[]>;
|
|
1653
1763
|
/**
|
|
1654
1764
|
* Lists trader leaderboard rankings.
|
|
1655
1765
|
*
|
|
@@ -1692,7 +1802,7 @@ type AnalyticsActions = {
|
|
|
1692
1802
|
* }
|
|
1693
1803
|
* ```
|
|
1694
1804
|
*/
|
|
1695
|
-
listTraderLeaderboard(request?: ListTraderLeaderboardRequest): Paginated<TraderLeaderboardEntry[]>;
|
|
1805
|
+
listTraderLeaderboard(request?: ListTraderLeaderboardRequest, options?: RequestOptions): Paginated<TraderLeaderboardEntry[]>;
|
|
1696
1806
|
/**
|
|
1697
1807
|
* Lists the largest individual winning positions.
|
|
1698
1808
|
*
|
|
@@ -1718,19 +1828,42 @@ type AnalyticsActions = {
|
|
|
1718
1828
|
* }
|
|
1719
1829
|
* ```
|
|
1720
1830
|
*/
|
|
1721
|
-
listBiggestWinners(request?: ListBiggestWinnersRequest): Paginated<BiggestWinner[]>;
|
|
1831
|
+
listBiggestWinners(request?: ListBiggestWinnersRequest, options?: RequestOptions): Paginated<BiggestWinner[]>;
|
|
1722
1832
|
};
|
|
1723
1833
|
declare function analyticsActions(client: BasePublicClient): AnalyticsActions;
|
|
1724
1834
|
declare function analyticsActions(client: BaseSecureClient): AnalyticsActions;
|
|
1725
1835
|
|
|
1726
1836
|
type DataActions = {
|
|
1837
|
+
/**
|
|
1838
|
+
* Fetches reference and settlement metadata for outcome assets.
|
|
1839
|
+
*
|
|
1840
|
+
* Provide exactly one selector family: up to 50 distinct decimal `assetIds`,
|
|
1841
|
+
* or up to 10 distinct 31-byte or 32-byte hex `conditionIds`. Elements are
|
|
1842
|
+
* trimmed, blanks dropped, and duplicates removed in first-seen order.
|
|
1843
|
+
* Decimal IDs have leading zeros stripped and at most 78 remaining digits.
|
|
1844
|
+
* Conditions are lowercased without changing their width.
|
|
1845
|
+
*
|
|
1846
|
+
* Returns a direct collection. Unknown selectors contribute no rows; asset
|
|
1847
|
+
* lookups retain request order and condition groups retain server order.
|
|
1848
|
+
* Overlapping conditions can repeat assets. Settlement metadata and outcome
|
|
1849
|
+
* labels can lag by up to a minute. Transient rate limits are retried automatically.
|
|
1850
|
+
*
|
|
1851
|
+
* @throws {@link FetchTokenReferencesError}
|
|
1852
|
+
* Thrown on failure.
|
|
1853
|
+
*
|
|
1854
|
+
* @example
|
|
1855
|
+
* ```ts
|
|
1856
|
+
* const references = await client.fetchTokenReferences({ assetIds: ['123'] });
|
|
1857
|
+
* ```
|
|
1858
|
+
*/
|
|
1859
|
+
fetchTokenReferences(request: FetchTokenReferencesRequest, options?: RequestOptions): Promise<TokenReference[]>;
|
|
1727
1860
|
/**
|
|
1728
1861
|
* Fetches cumulative taker volume for one or more events.
|
|
1729
1862
|
*
|
|
1730
1863
|
* Results contain one row per market, ordered by taker volume descending, and
|
|
1731
1864
|
* a total across all returned markets. Volume is measured in shares. Event
|
|
1732
1865
|
* IDs must be positive 32-bit integers. Transient rate limits are retried
|
|
1733
|
-
*
|
|
1866
|
+
* by default.
|
|
1734
1867
|
*
|
|
1735
1868
|
* @throws {@link FetchEventLiveVolumeError}
|
|
1736
1869
|
* Thrown on failure.
|
|
@@ -1742,7 +1875,7 @@ type DataActions = {
|
|
|
1742
1875
|
* });
|
|
1743
1876
|
* ```
|
|
1744
1877
|
*/
|
|
1745
|
-
fetchEventLiveVolume(request: FetchEventLiveVolumeRequest): Promise<LiveVolume>;
|
|
1878
|
+
fetchEventLiveVolume(request: FetchEventLiveVolumeRequest, options?: RequestOptions): Promise<LiveVolume>;
|
|
1746
1879
|
/**
|
|
1747
1880
|
* Fetches resolution lifecycle rows by question, condition, or event.
|
|
1748
1881
|
*
|
|
@@ -1762,7 +1895,7 @@ type DataActions = {
|
|
|
1762
1895
|
* });
|
|
1763
1896
|
* ```
|
|
1764
1897
|
*/
|
|
1765
|
-
fetchResolutions(request: FetchResolutionsRequest): Promise<Resolution[]>;
|
|
1898
|
+
fetchResolutions(request: FetchResolutionsRequest, options?: RequestOptions): Promise<Resolution[]>;
|
|
1766
1899
|
/**
|
|
1767
1900
|
* Fetches the midpoint price for an exchange asset as a decimal string.
|
|
1768
1901
|
*
|
|
@@ -1774,7 +1907,7 @@ type DataActions = {
|
|
|
1774
1907
|
* const midpoint = await client.fetchMidpoint({ assetId: '0x0122…0000' });
|
|
1775
1908
|
* ```
|
|
1776
1909
|
*/
|
|
1777
|
-
fetchMidpoint(request: FetchMidpointRequest): Promise<DecimalString>;
|
|
1910
|
+
fetchMidpoint(request: FetchMidpointRequest, options?: RequestOptions): Promise<DecimalString>;
|
|
1778
1911
|
/**
|
|
1779
1912
|
* Fetches midpoint prices for multiple exchange assets as an asset ID keyed lookup.
|
|
1780
1913
|
*
|
|
@@ -1786,7 +1919,7 @@ type DataActions = {
|
|
|
1786
1919
|
* const midpoints = await client.fetchMidpoints([{ assetId: '0x0122…0000' }]);
|
|
1787
1920
|
* ```
|
|
1788
1921
|
*/
|
|
1789
|
-
fetchMidpoints(request: FetchMidpointsRequest): Promise<Midpoints>;
|
|
1922
|
+
fetchMidpoints(request: FetchMidpointsRequest, options?: RequestOptions): Promise<Midpoints>;
|
|
1790
1923
|
/**
|
|
1791
1924
|
* Fetches the current quoted price for an exchange asset and side as a decimal string.
|
|
1792
1925
|
*
|
|
@@ -1798,7 +1931,7 @@ type DataActions = {
|
|
|
1798
1931
|
* const price = await client.fetchPrice({ assetId: '0x0122…0000', side: OrderSide.BUY });
|
|
1799
1932
|
* ```
|
|
1800
1933
|
*/
|
|
1801
|
-
fetchPrice(request: FetchPriceRequest): Promise<DecimalString>;
|
|
1934
|
+
fetchPrice(request: FetchPriceRequest, options?: RequestOptions): Promise<DecimalString>;
|
|
1802
1935
|
/**
|
|
1803
1936
|
* Fetches quoted prices for multiple exchange assets as an asset ID keyed lookup.
|
|
1804
1937
|
*
|
|
@@ -1810,7 +1943,7 @@ type DataActions = {
|
|
|
1810
1943
|
* const prices = await client.fetchPrices([{ assetId: '0x0122…0000', side: OrderSide.BUY }]);
|
|
1811
1944
|
* ```
|
|
1812
1945
|
*/
|
|
1813
|
-
fetchPrices(request: FetchPricesRequest): Promise<Prices>;
|
|
1946
|
+
fetchPrices(request: FetchPricesRequest, options?: RequestOptions): Promise<Prices>;
|
|
1814
1947
|
/**
|
|
1815
1948
|
* Fetches the current order book for an exchange asset.
|
|
1816
1949
|
*
|
|
@@ -1822,7 +1955,7 @@ type DataActions = {
|
|
|
1822
1955
|
* const book = await client.fetchOrderBook({ assetId: '0x0122…0000' });
|
|
1823
1956
|
* ```
|
|
1824
1957
|
*/
|
|
1825
|
-
fetchOrderBook(request: FetchOrderBookRequest): Promise<OrderBook>;
|
|
1958
|
+
fetchOrderBook(request: FetchOrderBookRequest, options?: RequestOptions): Promise<OrderBook>;
|
|
1826
1959
|
/**
|
|
1827
1960
|
* Fetches order books for multiple exchange assets.
|
|
1828
1961
|
*
|
|
@@ -1834,7 +1967,7 @@ type DataActions = {
|
|
|
1834
1967
|
* const books = await client.fetchOrderBooks([{ assetId: '0x0122…0000' }]);
|
|
1835
1968
|
* ```
|
|
1836
1969
|
*/
|
|
1837
|
-
fetchOrderBooks(request: FetchOrderBooksRequest): Promise<OrderBook[]>;
|
|
1970
|
+
fetchOrderBooks(request: FetchOrderBooksRequest, options?: RequestOptions): Promise<OrderBook[]>;
|
|
1838
1971
|
/**
|
|
1839
1972
|
* Fetches the spread for an exchange asset as a decimal string.
|
|
1840
1973
|
*
|
|
@@ -1846,7 +1979,7 @@ type DataActions = {
|
|
|
1846
1979
|
* const spread = await client.fetchSpread({ assetId: '0x0122…0000' });
|
|
1847
1980
|
* ```
|
|
1848
1981
|
*/
|
|
1849
|
-
fetchSpread(request: FetchSpreadRequest): Promise<DecimalString>;
|
|
1982
|
+
fetchSpread(request: FetchSpreadRequest, options?: RequestOptions): Promise<DecimalString>;
|
|
1850
1983
|
/**
|
|
1851
1984
|
* Fetches spreads for multiple exchange assets as an asset ID keyed lookup.
|
|
1852
1985
|
*
|
|
@@ -1858,7 +1991,7 @@ type DataActions = {
|
|
|
1858
1991
|
* const spreads = await client.fetchSpreads([{ assetId: '0x0122…0000' }]);
|
|
1859
1992
|
* ```
|
|
1860
1993
|
*/
|
|
1861
|
-
fetchSpreads(request: FetchSpreadsRequest): Promise<Spreads>;
|
|
1994
|
+
fetchSpreads(request: FetchSpreadsRequest, options?: RequestOptions): Promise<Spreads>;
|
|
1862
1995
|
/**
|
|
1863
1996
|
* Fetches the last traded price for an exchange asset.
|
|
1864
1997
|
*
|
|
@@ -1874,7 +2007,7 @@ type DataActions = {
|
|
|
1874
2007
|
* // trade === LastTradePrice | null
|
|
1875
2008
|
* ```
|
|
1876
2009
|
*/
|
|
1877
|
-
fetchLastTradePrice(request: FetchLastTradePriceRequest): Promise<LastTradePrice | null>;
|
|
2010
|
+
fetchLastTradePrice(request: FetchLastTradePriceRequest, options?: RequestOptions): Promise<LastTradePrice | null>;
|
|
1878
2011
|
/**
|
|
1879
2012
|
* Fetches last traded prices for multiple exchange assets.
|
|
1880
2013
|
*
|
|
@@ -1890,7 +2023,7 @@ type DataActions = {
|
|
|
1890
2023
|
* const trade = trades.find((candidate) => candidate.assetId === '0x0122…0000');
|
|
1891
2024
|
* ```
|
|
1892
2025
|
*/
|
|
1893
|
-
fetchLastTradePrices(request: FetchLastTradePricesRequest): Promise<LastTradePriceForAsset[]>;
|
|
2026
|
+
fetchLastTradePrices(request: FetchLastTradePricesRequest, options?: RequestOptions): Promise<LastTradePriceForAsset[]>;
|
|
1894
2027
|
/**
|
|
1895
2028
|
* Lists historical price observations for an exchange asset.
|
|
1896
2029
|
*
|
|
@@ -1904,7 +2037,7 @@ type DataActions = {
|
|
|
1904
2037
|
* strings and returned timestamps are Unix epoch milliseconds. Series pages
|
|
1905
2038
|
* are ordered oldest first; an `asOf` request returns at most one item. Series
|
|
1906
2039
|
* page sizes default to and are capped at 10,000 points. Transient rate limits
|
|
1907
|
-
* are retried
|
|
2040
|
+
* are retried by default.
|
|
1908
2041
|
*
|
|
1909
2042
|
* @throws {@link ListPriceHistoryError}
|
|
1910
2043
|
* Thrown on failure.
|
|
@@ -1922,7 +2055,7 @@ type DataActions = {
|
|
|
1922
2055
|
* }
|
|
1923
2056
|
* ```
|
|
1924
2057
|
*/
|
|
1925
|
-
listPriceHistory(request: ListPriceHistoryRequest): Paginated<PriceHistoryPoint[]>;
|
|
2058
|
+
listPriceHistory(request: ListPriceHistoryRequest, options?: RequestOptions): Paginated<PriceHistoryPoint[]>;
|
|
1926
2059
|
/**
|
|
1927
2060
|
* Estimates the price level a market order would cross at current book depth.
|
|
1928
2061
|
*
|
|
@@ -1941,7 +2074,7 @@ type DataActions = {
|
|
|
1941
2074
|
* });
|
|
1942
2075
|
* ```
|
|
1943
2076
|
*/
|
|
1944
|
-
estimateMarketPrice(request: EstimateMarketPriceRequest): Promise<number>;
|
|
2077
|
+
estimateMarketPrice(request: EstimateMarketPriceRequest, options?: RequestOptions): Promise<number>;
|
|
1945
2078
|
/**
|
|
1946
2079
|
* Fetches priced gross open interest for selected markets or globally.
|
|
1947
2080
|
*
|
|
@@ -1949,7 +2082,7 @@ type DataActions = {
|
|
|
1949
2082
|
* the global aggregate, whose `conditionId` is `null`. A requested servable
|
|
1950
2083
|
* market with no holdings has a zero value; an absent row means the market
|
|
1951
2084
|
* is not servable. Values are in USDC. Transient rate limits are retried
|
|
1952
|
-
*
|
|
2085
|
+
* by default.
|
|
1953
2086
|
*
|
|
1954
2087
|
* @throws {@link FetchOpenInterestError}
|
|
1955
2088
|
* Thrown on failure.
|
|
@@ -1961,7 +2094,7 @@ type DataActions = {
|
|
|
1961
2094
|
* });
|
|
1962
2095
|
* ```
|
|
1963
2096
|
*/
|
|
1964
|
-
fetchOpenInterest(request?: FetchOpenInterestRequest): Promise<OpenInterest[]>;
|
|
2097
|
+
fetchOpenInterest(request?: FetchOpenInterestRequest, options?: RequestOptions): Promise<OpenInterest[]>;
|
|
1965
2098
|
/**
|
|
1966
2099
|
* Lists top holders grouped by outcome for one or more markets.
|
|
1967
2100
|
*
|
|
@@ -1972,7 +2105,7 @@ type DataActions = {
|
|
|
1972
2105
|
* equivalent to 1,000,000 base units.
|
|
1973
2106
|
* Amounts are net holdings by default. `includePnl` switches to per-outcome
|
|
1974
2107
|
* gross holdings and adds position economics; it requires one condition ID and
|
|
1975
|
-
* a page size of at most 100. Transient rate limits are retried
|
|
2108
|
+
* a page size of at most 100. Transient rate limits are retried by default.
|
|
1976
2109
|
*
|
|
1977
2110
|
* @throws {@link ListMarketHoldersError}
|
|
1978
2111
|
* Thrown on failure.
|
|
@@ -1989,7 +2122,7 @@ type DataActions = {
|
|
|
1989
2122
|
* }
|
|
1990
2123
|
* ```
|
|
1991
2124
|
*/
|
|
1992
|
-
listMarketHolders(request: ListMarketHoldersRequest): Paginated<MetaHolder[]>;
|
|
2125
|
+
listMarketHolders(request: ListMarketHoldersRequest, options?: RequestOptions): Paginated<MetaHolder[]>;
|
|
1993
2126
|
/**
|
|
1994
2127
|
* Lists trades for a wallet, market, or event — or the global recent-trades
|
|
1995
2128
|
* feed when no filter is given.
|
|
@@ -2001,7 +2134,7 @@ type DataActions = {
|
|
|
2001
2134
|
* defaults to 100 (max 1000). `window: 'full'` requests the complete
|
|
2002
2135
|
* history; an omitted window serves the recent feed. Window bounds accept
|
|
2003
2136
|
* Unix epoch seconds or `Date` values. Transient rate limits are retried
|
|
2004
|
-
*
|
|
2137
|
+
* by default.
|
|
2005
2138
|
*
|
|
2006
2139
|
* @throws {@link ListTradesError}
|
|
2007
2140
|
* Thrown on failure.
|
|
@@ -2035,7 +2168,7 @@ type DataActions = {
|
|
|
2035
2168
|
* }
|
|
2036
2169
|
* ```
|
|
2037
2170
|
*/
|
|
2038
|
-
listTrades(request?: ListTradesRequest): Paginated<Trade[]>;
|
|
2171
|
+
listTrades(request?: ListTradesRequest, options?: RequestOptions): Paginated<Trade[]>;
|
|
2039
2172
|
};
|
|
2040
2173
|
declare function dataActions(client: BasePublicClient): DataActions;
|
|
2041
2174
|
declare function dataActions(client: BaseSecureClient): DataActions;
|
|
@@ -2044,7 +2177,12 @@ type DiscoveryActions = {
|
|
|
2044
2177
|
/**
|
|
2045
2178
|
* Lists events.
|
|
2046
2179
|
*
|
|
2047
|
-
* Defaults to open events. Pass `closed: true`
|
|
2180
|
+
* Defaults to open events. Pass `closed: true` for closed events or
|
|
2181
|
+
* `closed: 'any'` for either state; no identifier filter is required.
|
|
2182
|
+
* Optionally filter by protocol with `version: ProtocolVersion.V1` or
|
|
2183
|
+
* `ProtocolVersion.V2`, or pass both in an array to include both protocols.
|
|
2184
|
+
* Arrays accept one or two values. Omitting `version` uses the current server
|
|
2185
|
+
* default of CTF events (v1).
|
|
2048
2186
|
*
|
|
2049
2187
|
* @remarks
|
|
2050
2188
|
* Cursors continue the exact query they were minted for and are rejected for
|
|
@@ -2081,7 +2219,7 @@ type DiscoveryActions = {
|
|
|
2081
2219
|
* }
|
|
2082
2220
|
* ```
|
|
2083
2221
|
*/
|
|
2084
|
-
listEvents(request?: ListEventsRequest): Paginated<Event[]>;
|
|
2222
|
+
listEvents(request?: ListEventsRequest, options?: RequestOptions): Paginated<Event[]>;
|
|
2085
2223
|
/**
|
|
2086
2224
|
* Fetches an event.
|
|
2087
2225
|
*
|
|
@@ -2103,7 +2241,7 @@ type DiscoveryActions = {
|
|
|
2103
2241
|
* });
|
|
2104
2242
|
* ```
|
|
2105
2243
|
*/
|
|
2106
|
-
fetchEvent(request: FetchEventRequest): Promise<Event>;
|
|
2244
|
+
fetchEvent(request: FetchEventRequest, options?: RequestOptions): Promise<Event>;
|
|
2107
2245
|
/**
|
|
2108
2246
|
* Fetches an event's tags.
|
|
2109
2247
|
*
|
|
@@ -2117,14 +2255,24 @@ type DiscoveryActions = {
|
|
|
2117
2255
|
* });
|
|
2118
2256
|
* ```
|
|
2119
2257
|
*/
|
|
2120
|
-
fetchEventTags(request: FetchEventTagsRequest): Promise<TagReference[]>;
|
|
2258
|
+
fetchEventTags(request: FetchEventTagsRequest, options?: RequestOptions): Promise<TagReference[]>;
|
|
2121
2259
|
/**
|
|
2122
2260
|
* Lists markets.
|
|
2123
2261
|
*
|
|
2262
|
+
* Defaults to open markets. Pass `closed: true` for closed markets or
|
|
2263
|
+
* `closed: 'any'` for either state. The latter requires a non-empty `ids`,
|
|
2264
|
+
* `slug`, `clobTokenIds`, `positionIds`, `conditionIds`, or `questionIds` filter.
|
|
2265
|
+
*
|
|
2124
2266
|
* @remarks
|
|
2125
2267
|
* Legacy multi-outcome markets cannot be represented by the binary
|
|
2126
2268
|
* {@link Market} model and are omitted from results.
|
|
2127
2269
|
*
|
|
2270
|
+
* Select one protocol with `version`, or pass both protocol versions in an array.
|
|
2271
|
+
* Arrays accept one or two values. Omitting `version` uses the current server
|
|
2272
|
+
* default of CTF markets (v1). Filter v2 markets by `resolutionStatus`, `requestIds`, or
|
|
2273
|
+
* `onchainEventIds`. Each ID filter accepts at most 100 values. V1 markets
|
|
2274
|
+
* use the separate `umaResolutionStatus` filter.
|
|
2275
|
+
*
|
|
2128
2276
|
* @throws {@link ListMarketsError}
|
|
2129
2277
|
* Thrown on failure.
|
|
2130
2278
|
*
|
|
@@ -2157,7 +2305,7 @@ type DiscoveryActions = {
|
|
|
2157
2305
|
* }
|
|
2158
2306
|
* ```
|
|
2159
2307
|
*/
|
|
2160
|
-
listMarkets(request?: ListMarketsRequest): Paginated<Market[]>;
|
|
2308
|
+
listMarkets(request?: ListMarketsRequest, options?: RequestOptions): Paginated<Market[]>;
|
|
2161
2309
|
/**
|
|
2162
2310
|
* Lists markets available for Combos.
|
|
2163
2311
|
*
|
|
@@ -2200,7 +2348,7 @@ type DiscoveryActions = {
|
|
|
2200
2348
|
* });
|
|
2201
2349
|
* ```
|
|
2202
2350
|
*/
|
|
2203
|
-
listComboMarkets(request?: ListComboMarketsRequest): Paginated<ComboMarket[]>;
|
|
2351
|
+
listComboMarkets(request?: ListComboMarketsRequest, options?: RequestOptions): Paginated<ComboMarket[]>;
|
|
2204
2352
|
/**
|
|
2205
2353
|
* Fetches a market.
|
|
2206
2354
|
*
|
|
@@ -2227,7 +2375,7 @@ type DiscoveryActions = {
|
|
|
2227
2375
|
* });
|
|
2228
2376
|
* ```
|
|
2229
2377
|
*/
|
|
2230
|
-
fetchMarket(request: FetchMarketRequest): Promise<Market>;
|
|
2378
|
+
fetchMarket(request: FetchMarketRequest, options?: RequestOptions): Promise<Market>;
|
|
2231
2379
|
/**
|
|
2232
2380
|
* Fetches a market's tags.
|
|
2233
2381
|
*
|
|
@@ -2241,7 +2389,7 @@ type DiscoveryActions = {
|
|
|
2241
2389
|
* });
|
|
2242
2390
|
* ```
|
|
2243
2391
|
*/
|
|
2244
|
-
fetchMarketTags(request: FetchMarketTagsRequest): Promise<TagReference[]>;
|
|
2392
|
+
fetchMarketTags(request: FetchMarketTagsRequest, options?: RequestOptions): Promise<TagReference[]>;
|
|
2245
2393
|
/**
|
|
2246
2394
|
* Lists series.
|
|
2247
2395
|
*
|
|
@@ -2275,7 +2423,7 @@ type DiscoveryActions = {
|
|
|
2275
2423
|
* }
|
|
2276
2424
|
* ```
|
|
2277
2425
|
*/
|
|
2278
|
-
listSeries(request?: ListSeriesRequest): Paginated<Series[]>;
|
|
2426
|
+
listSeries(request?: ListSeriesRequest, options?: RequestOptions): Paginated<Series[]>;
|
|
2279
2427
|
/**
|
|
2280
2428
|
* Fetches a series.
|
|
2281
2429
|
*
|
|
@@ -2289,7 +2437,7 @@ type DiscoveryActions = {
|
|
|
2289
2437
|
* });
|
|
2290
2438
|
* ```
|
|
2291
2439
|
*/
|
|
2292
|
-
fetchSeries(request: FetchSeriesRequest): Promise<Series>;
|
|
2440
|
+
fetchSeries(request: FetchSeriesRequest, options?: RequestOptions): Promise<Series>;
|
|
2293
2441
|
/**
|
|
2294
2442
|
* Lists market clarifications — notes that resolve ambiguity in how a market
|
|
2295
2443
|
* settles.
|
|
@@ -2308,7 +2456,7 @@ type DiscoveryActions = {
|
|
|
2308
2456
|
* }
|
|
2309
2457
|
* ```
|
|
2310
2458
|
*/
|
|
2311
|
-
listMarketClarifications(request?: ListMarketClarificationsRequest): Paginated<MarketClarification[]>;
|
|
2459
|
+
listMarketClarifications(request?: ListMarketClarificationsRequest, options?: RequestOptions): Paginated<MarketClarification[]>;
|
|
2312
2460
|
/**
|
|
2313
2461
|
* Lists tags.
|
|
2314
2462
|
*
|
|
@@ -2342,7 +2490,7 @@ type DiscoveryActions = {
|
|
|
2342
2490
|
* }
|
|
2343
2491
|
* ```
|
|
2344
2492
|
*/
|
|
2345
|
-
listTags(request?: ListTagsRequest): Paginated<Tag[]>;
|
|
2493
|
+
listTags(request?: ListTagsRequest, options?: RequestOptions): Paginated<Tag[]>;
|
|
2346
2494
|
/**
|
|
2347
2495
|
* Fetches a tag by id or slug.
|
|
2348
2496
|
*
|
|
@@ -2356,7 +2504,7 @@ type DiscoveryActions = {
|
|
|
2356
2504
|
* });
|
|
2357
2505
|
* ```
|
|
2358
2506
|
*/
|
|
2359
|
-
fetchTag(request: FetchTagRequest): Promise<Tag>;
|
|
2507
|
+
fetchTag(request: FetchTagRequest, options?: RequestOptions): Promise<Tag>;
|
|
2360
2508
|
/**
|
|
2361
2509
|
* Fetches related tag relationships by id or slug.
|
|
2362
2510
|
*
|
|
@@ -2370,7 +2518,7 @@ type DiscoveryActions = {
|
|
|
2370
2518
|
* });
|
|
2371
2519
|
* ```
|
|
2372
2520
|
*/
|
|
2373
|
-
fetchRelatedTags(request: FetchRelatedTagsRequest): Promise<RelatedTag[]>;
|
|
2521
|
+
fetchRelatedTags(request: FetchRelatedTagsRequest, options?: RequestOptions): Promise<RelatedTag[]>;
|
|
2374
2522
|
/**
|
|
2375
2523
|
* Fetches resources linked from related tag relationships by id or slug.
|
|
2376
2524
|
*
|
|
@@ -2384,7 +2532,7 @@ type DiscoveryActions = {
|
|
|
2384
2532
|
* });
|
|
2385
2533
|
* ```
|
|
2386
2534
|
*/
|
|
2387
|
-
fetchRelatedTagResources(request: FetchRelatedTagResourcesRequest): Promise<Tag[]>;
|
|
2535
|
+
fetchRelatedTagResources(request: FetchRelatedTagResourcesRequest, options?: RequestOptions): Promise<Tag[]>;
|
|
2388
2536
|
/**
|
|
2389
2537
|
* Runs a public full-text search.
|
|
2390
2538
|
*
|
|
@@ -2417,7 +2565,7 @@ type DiscoveryActions = {
|
|
|
2417
2565
|
* }
|
|
2418
2566
|
* ```
|
|
2419
2567
|
*/
|
|
2420
|
-
search(request: SearchRequest): Paginated<SearchResults>;
|
|
2568
|
+
search(request: SearchRequest, options?: RequestOptions): Paginated<SearchResults>;
|
|
2421
2569
|
/**
|
|
2422
2570
|
* Lists available sports metadata.
|
|
2423
2571
|
*
|
|
@@ -2429,7 +2577,7 @@ type DiscoveryActions = {
|
|
|
2429
2577
|
* const sports = await client.listSports();
|
|
2430
2578
|
* ```
|
|
2431
2579
|
*/
|
|
2432
|
-
listSports(): Promise<SportsMetadata[]>;
|
|
2580
|
+
listSports(options?: RequestOptions): Promise<SportsMetadata[]>;
|
|
2433
2581
|
/**
|
|
2434
2582
|
* Fetches the available market types grouped by sport.
|
|
2435
2583
|
*
|
|
@@ -2441,7 +2589,7 @@ type DiscoveryActions = {
|
|
|
2441
2589
|
* const marketTypes = await client.fetchSportsMarketTypes();
|
|
2442
2590
|
* ```
|
|
2443
2591
|
*/
|
|
2444
|
-
fetchSportsMarketTypes(): Promise<SportsMarketTypesResponse>;
|
|
2592
|
+
fetchSportsMarketTypes(options?: RequestOptions): Promise<SportsMarketTypesResponse>;
|
|
2445
2593
|
/**
|
|
2446
2594
|
* Lists teams.
|
|
2447
2595
|
*
|
|
@@ -2475,7 +2623,7 @@ type DiscoveryActions = {
|
|
|
2475
2623
|
* }
|
|
2476
2624
|
* ```
|
|
2477
2625
|
*/
|
|
2478
|
-
listTeams(request?: ListTeamsRequest): Paginated<Team[]>;
|
|
2626
|
+
listTeams(request?: ListTeamsRequest, options?: RequestOptions): Paginated<Team[]>;
|
|
2479
2627
|
/**
|
|
2480
2628
|
* Fetches a public profile by wallet address.
|
|
2481
2629
|
*
|
|
@@ -2489,7 +2637,7 @@ type DiscoveryActions = {
|
|
|
2489
2637
|
* });
|
|
2490
2638
|
* ```
|
|
2491
2639
|
*/
|
|
2492
|
-
fetchPublicProfile(request: FetchPublicProfileRequest): Promise<PublicProfile | null>;
|
|
2640
|
+
fetchPublicProfile(request: FetchPublicProfileRequest, options?: RequestOptions): Promise<PublicProfile | null>;
|
|
2493
2641
|
/**
|
|
2494
2642
|
* Lists comments for an event or series.
|
|
2495
2643
|
*
|
|
@@ -2546,7 +2694,7 @@ type DiscoveryActions = {
|
|
|
2546
2694
|
* }
|
|
2547
2695
|
* ```
|
|
2548
2696
|
*/
|
|
2549
|
-
listComments(request: ListCommentsRequest): Paginated<Comment[]>;
|
|
2697
|
+
listComments(request: ListCommentsRequest, options?: RequestOptions): Paginated<Comment[]>;
|
|
2550
2698
|
/**
|
|
2551
2699
|
* Fetches a comment thread by comment id.
|
|
2552
2700
|
*
|
|
@@ -2561,7 +2709,7 @@ type DiscoveryActions = {
|
|
|
2561
2709
|
* });
|
|
2562
2710
|
* ```
|
|
2563
2711
|
*/
|
|
2564
|
-
fetchCommentsById(request: FetchCommentsByIdRequest): Promise<Comment[]>;
|
|
2712
|
+
fetchCommentsById(request: FetchCommentsByIdRequest, options?: RequestOptions): Promise<Comment[]>;
|
|
2565
2713
|
/**
|
|
2566
2714
|
* Lists comments written by a wallet address.
|
|
2567
2715
|
*
|
|
@@ -2610,7 +2758,7 @@ type DiscoveryActions = {
|
|
|
2610
2758
|
* }
|
|
2611
2759
|
* ```
|
|
2612
2760
|
*/
|
|
2613
|
-
listCommentsByUserAddress(request: ListCommentsByUserAddressRequest): Paginated<Comment[]>;
|
|
2761
|
+
listCommentsByUserAddress(request: ListCommentsByUserAddressRequest, options?: RequestOptions): Paginated<Comment[]>;
|
|
2614
2762
|
};
|
|
2615
2763
|
declare function discoveryActions(client: BasePublicClient): DiscoveryActions;
|
|
2616
2764
|
declare function discoveryActions(client: BaseSecureClient): DiscoveryActions;
|
|
@@ -2625,12 +2773,12 @@ type FetchPerpsBuilderStatusRequest = {
|
|
|
2625
2773
|
/**
|
|
2626
2774
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2627
2775
|
*/
|
|
2628
|
-
type FetchPerpsBuilderStatusError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2776
|
+
type FetchPerpsBuilderStatusError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2629
2777
|
/**
|
|
2630
2778
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2631
2779
|
*/
|
|
2632
2780
|
declare const FetchPerpsBuilderStatusError: {
|
|
2633
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
2781
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
2634
2782
|
};
|
|
2635
2783
|
/**
|
|
2636
2784
|
* Fetches public builder availability and the platform fee cap.
|
|
@@ -2640,7 +2788,7 @@ declare const FetchPerpsBuilderStatusError: {
|
|
|
2640
2788
|
*
|
|
2641
2789
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2642
2790
|
*/
|
|
2643
|
-
declare function fetchPerpsBuilderStatus(client: BaseClient, request: FetchPerpsBuilderStatusRequest): Promise<PerpsBuilderStatus>;
|
|
2791
|
+
declare function fetchPerpsBuilderStatus(client: BaseClient, request: FetchPerpsBuilderStatusRequest, options?: RequestOptions): Promise<PerpsBuilderStatus>;
|
|
2644
2792
|
/**
|
|
2645
2793
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2646
2794
|
*/
|
|
@@ -2679,17 +2827,17 @@ type FetchPerpsPositionSnapshotsRequest = PerpsPositionSnapshotSelection & {
|
|
|
2679
2827
|
address: string;
|
|
2680
2828
|
};
|
|
2681
2829
|
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
2682
|
-
type FetchPerpsPositionSnapshotsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2830
|
+
type FetchPerpsPositionSnapshotsError = RateLimitError | RequestAbortedError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2683
2831
|
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
2684
2832
|
declare const FetchPerpsPositionSnapshotsError: {
|
|
2685
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
2833
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
2686
2834
|
};
|
|
2687
2835
|
/** Fetches ordered position snapshots anonymously, including on secure clients.
|
|
2688
2836
|
* Use session.fetchPositionSnapshots for owner-only leverage and PnL percentage.
|
|
2689
2837
|
* This direct batch read does not paginate or retry item statuses.
|
|
2690
2838
|
* @throws {@link FetchPerpsPositionSnapshotsError} Thrown on failure.
|
|
2691
2839
|
* @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
2692
|
-
declare function fetchPerpsPositionSnapshots(client: BaseClient, request: FetchPerpsPositionSnapshotsRequest): Promise<PerpsPositionSnapshots>;
|
|
2840
|
+
declare function fetchPerpsPositionSnapshots(client: BaseClient, request: FetchPerpsPositionSnapshotsRequest, options?: RequestOptions): Promise<PerpsPositionSnapshots>;
|
|
2693
2841
|
|
|
2694
2842
|
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
2695
2843
|
type FetchPerpsRegistrationRequest = {
|
|
@@ -2697,10 +2845,10 @@ type FetchPerpsRegistrationRequest = {
|
|
|
2697
2845
|
address: string;
|
|
2698
2846
|
};
|
|
2699
2847
|
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
2700
|
-
type FetchPerpsRegistrationError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2848
|
+
type FetchPerpsRegistrationError = RateLimitError | RequestAbortedError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2701
2849
|
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
2702
2850
|
declare const FetchPerpsRegistrationError: {
|
|
2703
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
2851
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
2704
2852
|
};
|
|
2705
2853
|
/**
|
|
2706
2854
|
* Fetches whether an address has a Perps account without authentication.
|
|
@@ -2709,16 +2857,132 @@ declare const FetchPerpsRegistrationError: {
|
|
|
2709
2857
|
* @throws {@link FetchPerpsRegistrationError} Thrown on failure.
|
|
2710
2858
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2711
2859
|
*/
|
|
2712
|
-
declare function fetchPerpsRegistration(client: BaseClient, request: FetchPerpsRegistrationRequest): Promise<boolean>;
|
|
2860
|
+
declare function fetchPerpsRegistration(client: BaseClient, request: FetchPerpsRegistrationRequest, options?: RequestOptions): Promise<boolean>;
|
|
2713
2861
|
|
|
2862
|
+
type ServiceRequestMethod = 'DELETE' | 'GET' | 'PATCH' | 'POST';
|
|
2714
2863
|
type ServiceRequest = {
|
|
2715
|
-
|
|
2864
|
+
signal?: AbortSignal;
|
|
2865
|
+
method: ServiceRequestMethod;
|
|
2716
2866
|
path: string;
|
|
2717
2867
|
body?: string;
|
|
2718
2868
|
headers?: HeadersInit;
|
|
2719
2869
|
json?: unknown;
|
|
2720
2870
|
params?: URLSearchParams;
|
|
2721
2871
|
};
|
|
2872
|
+
type RequestHeadersResolver = (request: ServiceRequest) => Promise<HeadersInit>;
|
|
2873
|
+
type ServiceClientConfig = {
|
|
2874
|
+
fetch?: Fetch;
|
|
2875
|
+
/** Omit the endpoint root to create an empty client whose requests reject with UserInputError. */
|
|
2876
|
+
root?: string;
|
|
2877
|
+
headers?: HeadersInit;
|
|
2878
|
+
resolveHeaders?: RequestHeadersResolver;
|
|
2879
|
+
onRateLimitUpdate?: RateLimitUpdateListener;
|
|
2880
|
+
};
|
|
2881
|
+
/**
|
|
2882
|
+
* Timeout in milliseconds for each individual HTTP request attempt until response
|
|
2883
|
+
* headers arrive, or `false` to disable it. Defaults to 30 seconds.
|
|
2884
|
+
* This is not a total SDK method deadline: each permitted retry receives a fresh
|
|
2885
|
+
* timeout, so multiple requests, retries, and backoff can take longer in total.
|
|
2886
|
+
* Timeout errors are not retried. Excludes header resolution, hooks, retry waits,
|
|
2887
|
+
* and response body download/parsing.
|
|
2888
|
+
*/
|
|
2889
|
+
type ServiceClientTimeout = number | false;
|
|
2890
|
+
/** @experimental See {@link ServiceClient}. */
|
|
2891
|
+
type ServiceClientResponseType = 'json' | 'blob' | 'arrayBuffer' | 'text' | 'empty' | 'raw';
|
|
2892
|
+
/** @experimental See {@link ServiceClient}. */
|
|
2893
|
+
type ServiceClientNonJsonResponseType = Exclude<ServiceClientResponseType, 'json'>;
|
|
2894
|
+
/** @experimental See {@link ServiceClient}. */
|
|
2895
|
+
type ServiceClientResponse<TResponse extends ServiceClientResponseType> = TResponse extends 'blob' ? Blob : TResponse extends 'arrayBuffer' ? ArrayBuffer : TResponse extends 'text' ? string : TResponse extends 'empty' ? void : TResponse extends 'raw' ? Response : unknown;
|
|
2896
|
+
/** @experimental See {@link ServiceClient}. */
|
|
2897
|
+
type ServiceClientJsonResponseOptions<T = unknown> = {
|
|
2898
|
+
responseType?: 'json';
|
|
2899
|
+
schema?: z.ZodType<T>;
|
|
2900
|
+
};
|
|
2901
|
+
/** @experimental See {@link ServiceClient}. */
|
|
2902
|
+
type ServiceClientNonJsonResponseOptions<TResponse extends ServiceClientNonJsonResponseType = ServiceClientNonJsonResponseType> = {
|
|
2903
|
+
responseType: TResponse;
|
|
2904
|
+
schema?: never;
|
|
2905
|
+
};
|
|
2906
|
+
/** @experimental See {@link ServiceClient}. */
|
|
2907
|
+
type ServiceClientResponseOptions<T = unknown> = ServiceClientJsonResponseOptions<T> | ServiceClientNonJsonResponseOptions;
|
|
2908
|
+
/** @experimental See {@link ServiceClient}. */
|
|
2909
|
+
type ServiceClientRequestOptions<T = unknown> = ServiceClientResponseOptions<T> & {
|
|
2910
|
+
signal?: AbortSignal;
|
|
2911
|
+
timeout?: ServiceClientTimeout;
|
|
2912
|
+
};
|
|
2913
|
+
type ServiceClientMutationOptions<T = unknown> = ServiceClientRequestOptions<T> & {
|
|
2914
|
+
/** Disable transport retries for commands whose outcome may be uncertain. */
|
|
2915
|
+
retry?: false;
|
|
2916
|
+
};
|
|
2917
|
+
/** @experimental See {@link ServiceClient}. */
|
|
2918
|
+
type ServiceClientGetOptions<T = unknown> = ServiceClientRequestOptions<T> & RequestOptions & {
|
|
2919
|
+
headers?: HeadersInit;
|
|
2920
|
+
params?: URLSearchParams;
|
|
2921
|
+
};
|
|
2922
|
+
/** @experimental See {@link ServiceClient}. */
|
|
2923
|
+
type ServiceClientPostOptions<T = unknown> = ServiceClientMutationOptions<T> & {
|
|
2924
|
+
headers?: HeadersInit;
|
|
2925
|
+
json?: unknown;
|
|
2926
|
+
};
|
|
2927
|
+
/** @experimental See {@link ServiceClient}. */
|
|
2928
|
+
type ServiceClientPatchOptions<T = unknown> = ServiceClientMutationOptions<T> & {
|
|
2929
|
+
headers?: HeadersInit;
|
|
2930
|
+
json?: unknown;
|
|
2931
|
+
};
|
|
2932
|
+
/** @experimental See {@link ServiceClient}. */
|
|
2933
|
+
type ServiceClientDeleteOptions<T = unknown> = ServiceClientMutationOptions<T> & {
|
|
2934
|
+
headers?: HeadersInit;
|
|
2935
|
+
json?: unknown;
|
|
2936
|
+
params?: URLSearchParams;
|
|
2937
|
+
};
|
|
2938
|
+
/** @experimental See {@link ServiceClient}. */
|
|
2939
|
+
type ServiceClientRequestError = RateLimitError | RequestAbortedError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2940
|
+
/** @experimental See {@link ServiceClient}. */
|
|
2941
|
+
declare const ServiceClientRequestError: {
|
|
2942
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
2943
|
+
};
|
|
2944
|
+
/**
|
|
2945
|
+
* Sends requests and consumes and validates their responses.
|
|
2946
|
+
*
|
|
2947
|
+
* Raw mode resolves at response headers for every status, including 4xx and
|
|
2948
|
+
* 5xx responses, so callers can inspect error bodies. Status checks and body
|
|
2949
|
+
* consumption belong to the caller. The operation signal remains attached to
|
|
2950
|
+
* the underlying fetch.
|
|
2951
|
+
*
|
|
2952
|
+
* @experimental For the polymarket.com UI. External consumers should not adopt this API. Breaking changes may occur in any release, including patch releases.
|
|
2953
|
+
*/
|
|
2954
|
+
declare class ServiceClient {
|
|
2955
|
+
#private;
|
|
2956
|
+
constructor(config: ServiceClientConfig);
|
|
2957
|
+
/**
|
|
2958
|
+
* Sends a GET request. JSON is parsed by default; a schema validates and transforms it.
|
|
2959
|
+
* @throws {@link ServiceClientRequestError} Thrown on request, response or cancellation failure.
|
|
2960
|
+
*/
|
|
2961
|
+
get<T = unknown>(path: string, options?: ServiceClientGetOptions<T> & ServiceClientJsonResponseOptions<T>): Promise<T>;
|
|
2962
|
+
get<TResponse extends ServiceClientNonJsonResponseType>(path: string, options: ServiceClientGetOptions & ServiceClientNonJsonResponseOptions<TResponse>): Promise<ServiceClientResponse<TResponse>>;
|
|
2963
|
+
get(path: string, options: ServiceClientGetOptions): Promise<unknown>;
|
|
2964
|
+
/**
|
|
2965
|
+
* Sends a POST request. JSON is parsed by default; a schema validates and transforms it.
|
|
2966
|
+
* @throws {@link ServiceClientRequestError} Thrown on request, response or cancellation failure.
|
|
2967
|
+
*/
|
|
2968
|
+
post<T = unknown>(path: string, options?: ServiceClientPostOptions<T> & ServiceClientJsonResponseOptions<T>): Promise<T>;
|
|
2969
|
+
post<TResponse extends ServiceClientNonJsonResponseType>(path: string, options: ServiceClientPostOptions & ServiceClientNonJsonResponseOptions<TResponse>): Promise<ServiceClientResponse<TResponse>>;
|
|
2970
|
+
post(path: string, options: ServiceClientPostOptions): Promise<unknown>;
|
|
2971
|
+
/**
|
|
2972
|
+
* Sends a PATCH request. JSON is parsed by default; a schema validates and transforms it.
|
|
2973
|
+
* @throws {@link ServiceClientRequestError} Thrown on request, response or cancellation failure.
|
|
2974
|
+
*/
|
|
2975
|
+
patch<T = unknown>(path: string, options?: ServiceClientPatchOptions<T> & ServiceClientJsonResponseOptions<T>): Promise<T>;
|
|
2976
|
+
patch<TResponse extends ServiceClientNonJsonResponseType>(path: string, options: ServiceClientPatchOptions & ServiceClientNonJsonResponseOptions<TResponse>): Promise<ServiceClientResponse<TResponse>>;
|
|
2977
|
+
patch(path: string, options: ServiceClientPatchOptions): Promise<unknown>;
|
|
2978
|
+
/**
|
|
2979
|
+
* Sends a DELETE request. JSON is parsed by default; a schema validates and transforms it.
|
|
2980
|
+
* @throws {@link ServiceClientRequestError} Thrown on request, response or cancellation failure.
|
|
2981
|
+
*/
|
|
2982
|
+
del<T = unknown>(path: string, options?: ServiceClientDeleteOptions<T> & ServiceClientJsonResponseOptions<T>): Promise<T>;
|
|
2983
|
+
del<TResponse extends ServiceClientNonJsonResponseType>(path: string, options: ServiceClientDeleteOptions & ServiceClientNonJsonResponseOptions<TResponse>): Promise<ServiceClientResponse<TResponse>>;
|
|
2984
|
+
del(path: string, options: ServiceClientDeleteOptions): Promise<unknown>;
|
|
2985
|
+
}
|
|
2722
2986
|
|
|
2723
2987
|
/**
|
|
2724
2988
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
@@ -2753,6 +3017,8 @@ type FetchPerpsOrdersRequest = {
|
|
|
2753
3017
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2754
3018
|
*/
|
|
2755
3019
|
type ListPerpsFillsRequest = {
|
|
3020
|
+
/** Only fills for this instrument; an unsigned 32-bit identifier. */
|
|
3021
|
+
instrumentId?: number;
|
|
2756
3022
|
/** Inclusive start timestamp in milliseconds. */
|
|
2757
3023
|
start?: number;
|
|
2758
3024
|
/** Inclusive end timestamp in milliseconds. */
|
|
@@ -3734,6 +4000,8 @@ type PerpsSessionOptions = {
|
|
|
3734
4000
|
builderAttribution?: string | PerpsBuilderTermsInput;
|
|
3735
4001
|
chainId: number;
|
|
3736
4002
|
credentials: PerpsCredentials;
|
|
4003
|
+
/** Fetch implementation for session HTTP requests. */
|
|
4004
|
+
fetch?: Fetch;
|
|
3737
4005
|
headers?: Record<string, string>;
|
|
3738
4006
|
/**
|
|
3739
4007
|
* Include this authenticated account's builder receipts in the session iterator.
|
|
@@ -3947,11 +4215,14 @@ declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
|
|
|
3947
4215
|
*/
|
|
3948
4216
|
fetchOrders(request?: FetchPerpsOrdersRequest): Promise<PerpsOrder[]>;
|
|
3949
4217
|
/**
|
|
3950
|
-
* Lists Perps fills
|
|
4218
|
+
* Lists Perps fills for the authenticated account, optionally by instrument.
|
|
3951
4219
|
*
|
|
3952
4220
|
* @remarks
|
|
3953
4221
|
* Fills are returned newest first by default; set `sort` to change the
|
|
3954
4222
|
* time direction. Page cursors are opaque values forwarded to the API.
|
|
4223
|
+
* An `instrumentId` filter is retained on every page, including when resuming
|
|
4224
|
+
* from a cursor. Fill `adl` marks auto-deleveraging; optional
|
|
4225
|
+
* `liquidationDetails.mark` is separate from the accounting fill price.
|
|
3955
4226
|
*
|
|
3956
4227
|
* @throws {@link PerpsSessionAccountError}
|
|
3957
4228
|
* Thrown on failure.
|
|
@@ -4381,20 +4652,20 @@ type PublicPerpsActions = {
|
|
|
4381
4652
|
* @throws {@link FetchPerpsPositionSnapshotsError} Thrown on failure.
|
|
4382
4653
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
4383
4654
|
*/
|
|
4384
|
-
fetchPerpsPositionSnapshots(request: FetchPerpsPositionSnapshotsRequest): Promise<PerpsPositionSnapshots>;
|
|
4655
|
+
fetchPerpsPositionSnapshots(request: FetchPerpsPositionSnapshotsRequest, options?: RequestOptions): Promise<PerpsPositionSnapshots>;
|
|
4385
4656
|
/**
|
|
4386
4657
|
* Fetches whether an address has a Perps account without authentication.
|
|
4387
4658
|
* Registration is permanent; a false result may be cached for up to ten seconds.
|
|
4388
4659
|
* @throws {@link FetchPerpsRegistrationError} Thrown on failure.
|
|
4389
4660
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
4390
4661
|
*/
|
|
4391
|
-
fetchPerpsRegistration(request: FetchPerpsRegistrationRequest): Promise<boolean>;
|
|
4662
|
+
fetchPerpsRegistration(request: FetchPerpsRegistrationRequest, options?: RequestOptions): Promise<boolean>;
|
|
4392
4663
|
/**
|
|
4393
4664
|
* Fetches public builder availability and the platform fee cap.
|
|
4394
4665
|
* @throws {@link FetchPerpsBuilderStatusError} Thrown on failure.
|
|
4395
4666
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
4396
4667
|
*/
|
|
4397
|
-
fetchPerpsBuilderStatus(request: FetchPerpsBuilderStatusRequest): Promise<PerpsBuilderStatus>;
|
|
4668
|
+
fetchPerpsBuilderStatus(request: FetchPerpsBuilderStatusRequest, options?: RequestOptions): Promise<PerpsBuilderStatus>;
|
|
4398
4669
|
/**
|
|
4399
4670
|
* Fetches Perps instruments.
|
|
4400
4671
|
*
|
|
@@ -4408,7 +4679,7 @@ type PublicPerpsActions = {
|
|
|
4408
4679
|
*
|
|
4409
4680
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
4410
4681
|
*/
|
|
4411
|
-
fetchPerpsInstruments(request?: FetchPerpsInstrumentsRequest): Promise<PerpsInstrument[]>;
|
|
4682
|
+
fetchPerpsInstruments(request?: FetchPerpsInstrumentsRequest, options?: RequestOptions): Promise<PerpsInstrument[]>;
|
|
4412
4683
|
/**
|
|
4413
4684
|
* Fetches the current Perps ticker for an instrument.
|
|
4414
4685
|
*
|
|
@@ -4422,7 +4693,7 @@ type PublicPerpsActions = {
|
|
|
4422
4693
|
*
|
|
4423
4694
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
4424
4695
|
*/
|
|
4425
|
-
fetchPerpsTicker(request: FetchPerpsTickerRequest): Promise<PerpsTicker>;
|
|
4696
|
+
fetchPerpsTicker(request: FetchPerpsTickerRequest, options?: RequestOptions): Promise<PerpsTicker>;
|
|
4426
4697
|
/**
|
|
4427
4698
|
* Fetches current Perps tickers.
|
|
4428
4699
|
*
|
|
@@ -4436,7 +4707,7 @@ type PublicPerpsActions = {
|
|
|
4436
4707
|
*
|
|
4437
4708
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
4438
4709
|
*/
|
|
4439
|
-
fetchPerpsTickers(request?: FetchPerpsTickersRequest): Promise<PerpsTicker[]>;
|
|
4710
|
+
fetchPerpsTickers(request?: FetchPerpsTickersRequest, options?: RequestOptions): Promise<PerpsTicker[]>;
|
|
4440
4711
|
/**
|
|
4441
4712
|
* Fetches a Perps order book.
|
|
4442
4713
|
*
|
|
@@ -4450,7 +4721,7 @@ type PublicPerpsActions = {
|
|
|
4450
4721
|
*
|
|
4451
4722
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
4452
4723
|
*/
|
|
4453
|
-
fetchPerpsBook(request: FetchPerpsBookRequest): Promise<PerpsBook>;
|
|
4724
|
+
fetchPerpsBook(request: FetchPerpsBookRequest, options?: RequestOptions): Promise<PerpsBook>;
|
|
4454
4725
|
/**
|
|
4455
4726
|
* Lists Perps candles for an instrument with SDK-owned pagination.
|
|
4456
4727
|
*
|
|
@@ -4469,7 +4740,7 @@ type PublicPerpsActions = {
|
|
|
4469
4740
|
*
|
|
4470
4741
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
4471
4742
|
*/
|
|
4472
|
-
listPerpsCandles(request: ListPerpsCandlesRequest): Paginated<PerpsCandle[]>;
|
|
4743
|
+
listPerpsCandles(request: ListPerpsCandlesRequest, options?: RequestOptions): Paginated<PerpsCandle[]>;
|
|
4473
4744
|
/**
|
|
4474
4745
|
* Lists Perps funding-rate history for an instrument with SDK-owned pagination.
|
|
4475
4746
|
*
|
|
@@ -4487,7 +4758,7 @@ type PublicPerpsActions = {
|
|
|
4487
4758
|
*
|
|
4488
4759
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
4489
4760
|
*/
|
|
4490
|
-
listPerpsFundingHistory(request: ListPerpsFundingHistoryRequest): Paginated<PerpsFundingRate[]>;
|
|
4761
|
+
listPerpsFundingHistory(request: ListPerpsFundingHistoryRequest, options?: RequestOptions): Paginated<PerpsFundingRate[]>;
|
|
4491
4762
|
/**
|
|
4492
4763
|
* Lists recent Perps trades for an instrument with SDK-owned pagination.
|
|
4493
4764
|
*
|
|
@@ -4503,7 +4774,7 @@ type PublicPerpsActions = {
|
|
|
4503
4774
|
*
|
|
4504
4775
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
4505
4776
|
*/
|
|
4506
|
-
listPerpsTrades(request: ListPerpsTradesRequest): Paginated<PerpsPublicTrade[]>;
|
|
4777
|
+
listPerpsTrades(request: ListPerpsTradesRequest, options?: RequestOptions): Paginated<PerpsPublicTrade[]>;
|
|
4507
4778
|
/**
|
|
4508
4779
|
* Fetches the Perps fee schedule.
|
|
4509
4780
|
*
|
|
@@ -4517,7 +4788,7 @@ type PublicPerpsActions = {
|
|
|
4517
4788
|
*
|
|
4518
4789
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
4519
4790
|
*/
|
|
4520
|
-
fetchPerpsFees(): Promise<PerpsFeeScheduleEntry[]>;
|
|
4791
|
+
fetchPerpsFees(options?: RequestOptions): Promise<PerpsFeeScheduleEntry[]>;
|
|
4521
4792
|
};
|
|
4522
4793
|
/**
|
|
4523
4794
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
@@ -4637,6 +4908,30 @@ declare function perpsActions(client: BasePublicClient): PublicPerpsActions;
|
|
|
4637
4908
|
declare function perpsActions(client: BaseSecureClient): SecurePerpsActions;
|
|
4638
4909
|
|
|
4639
4910
|
type PublicRewardsActions = {
|
|
4911
|
+
/**
|
|
4912
|
+
* Fetches maker fee rebates for a calendar day as a direct collection.
|
|
4913
|
+
* Amounts are decimal strings in USDC units. No authentication is required.
|
|
4914
|
+
* Returns an empty array when the maker has no rebates for the date.
|
|
4915
|
+
* @throws {@link FetchCurrentRebatesError} Thrown on failure.
|
|
4916
|
+
* @example
|
|
4917
|
+
* ```ts
|
|
4918
|
+
* const rebates = await client.fetchCurrentRebates({ date: '2026-10-06', makerAddress });
|
|
4919
|
+
* ```
|
|
4920
|
+
*/
|
|
4921
|
+
fetchCurrentRebates(request: FetchCurrentRebatesRequest, options?: RequestOptions): Promise<RebatedFee[]>;
|
|
4922
|
+
/**
|
|
4923
|
+
* Lists active markets with reward configurations and discovery metadata.
|
|
4924
|
+
* Configurations may be empty. Positive ranges are min-exclusive and max-inclusive; zero disables a bound.
|
|
4925
|
+
* Pages default to 100 items (maximum 500). With orderBy, sortDirection defaults to ASC; otherwise order is unspecified.
|
|
4926
|
+
* @throws {@link ListRewardMarketsError} Thrown on failure.
|
|
4927
|
+
* @example
|
|
4928
|
+
* ```ts
|
|
4929
|
+
* for await (const page of client.listRewardMarkets({ query: 'sports' })) {
|
|
4930
|
+
* console.log(page.items);
|
|
4931
|
+
* }
|
|
4932
|
+
* ```
|
|
4933
|
+
*/
|
|
4934
|
+
listRewardMarkets(request?: ListRewardMarketsRequest, options?: RequestOptions): Paginated<RewardMarket[]>;
|
|
4640
4935
|
/**
|
|
4641
4936
|
* Lists current active market rewards.
|
|
4642
4937
|
*
|
|
@@ -4666,7 +4961,7 @@ type PublicRewardsActions = {
|
|
|
4666
4961
|
* }
|
|
4667
4962
|
* ```
|
|
4668
4963
|
*/
|
|
4669
|
-
listCurrentRewards(request?: ListCurrentRewardsRequest): Paginated<CurrentReward[]>;
|
|
4964
|
+
listCurrentRewards(request?: ListCurrentRewardsRequest, options?: RequestOptions): Paginated<CurrentReward[]>;
|
|
4670
4965
|
/**
|
|
4671
4966
|
* Lists reward configurations for a market.
|
|
4672
4967
|
*
|
|
@@ -4702,7 +4997,7 @@ type PublicRewardsActions = {
|
|
|
4702
4997
|
* }
|
|
4703
4998
|
* ```
|
|
4704
4999
|
*/
|
|
4705
|
-
listMarketRewards(request: ListMarketRewardsRequest): Paginated<MarketReward[]>;
|
|
5000
|
+
listMarketRewards(request: ListMarketRewardsRequest, options?: RequestOptions): Paginated<MarketReward[]>;
|
|
4706
5001
|
};
|
|
4707
5002
|
type SecureRewardsActions = Prettify<PublicRewardsActions & {
|
|
4708
5003
|
/**
|
|
@@ -4718,7 +5013,7 @@ type SecureRewardsActions = Prettify<PublicRewardsActions & {
|
|
|
4718
5013
|
* });
|
|
4719
5014
|
* ```
|
|
4720
5015
|
*/
|
|
4721
|
-
fetchOrderScoring(request: FetchOrderScoringRequest): Promise<boolean>;
|
|
5016
|
+
fetchOrderScoring(request: FetchOrderScoringRequest, options?: RequestOptions): Promise<boolean>;
|
|
4722
5017
|
/**
|
|
4723
5018
|
* Fetches scoring state for multiple orders.
|
|
4724
5019
|
*
|
|
@@ -4732,7 +5027,7 @@ type SecureRewardsActions = Prettify<PublicRewardsActions & {
|
|
|
4732
5027
|
* });
|
|
4733
5028
|
* ```
|
|
4734
5029
|
*/
|
|
4735
|
-
fetchOrdersScoring(request: FetchOrdersScoringRequest): Promise<OrdersScoringResponse>;
|
|
5030
|
+
fetchOrdersScoring(request: FetchOrdersScoringRequest, options?: RequestOptions): Promise<OrdersScoringResponse>;
|
|
4736
5031
|
/**
|
|
4737
5032
|
* Lists per-market earnings for the authenticated account on a given day.
|
|
4738
5033
|
*
|
|
@@ -4766,9 +5061,12 @@ type SecureRewardsActions = Prettify<PublicRewardsActions & {
|
|
|
4766
5061
|
* }
|
|
4767
5062
|
* ```
|
|
4768
5063
|
*/
|
|
4769
|
-
listUserEarningsForDay(request: ListUserEarningsForDayRequest): Paginated<UserEarning[]>;
|
|
5064
|
+
listUserEarningsForDay(request: ListUserEarningsForDayRequest, options?: RequestOptions): Paginated<UserEarning[]>;
|
|
4770
5065
|
/**
|
|
4771
5066
|
* Fetches total earnings for the authenticated account on a given day.
|
|
5067
|
+
* Set `sponsored: true` to include sponsored rewards and the native/sponsored
|
|
5068
|
+
* breakdown. Omitted or false returns native rewards only; absent breakdown
|
|
5069
|
+
* fields remain undefined.
|
|
4772
5070
|
*
|
|
4773
5071
|
* @throws {@link FetchTotalEarningsForUserForDayError}
|
|
4774
5072
|
* Thrown on failure.
|
|
@@ -4780,7 +5078,7 @@ type SecureRewardsActions = Prettify<PublicRewardsActions & {
|
|
|
4780
5078
|
* });
|
|
4781
5079
|
* ```
|
|
4782
5080
|
*/
|
|
4783
|
-
fetchTotalEarningsForUserForDay(request: FetchTotalEarningsForUserForDayRequest): Promise<TotalUserEarning[]>;
|
|
5081
|
+
fetchTotalEarningsForUserForDay(request: FetchTotalEarningsForUserForDayRequest, options?: RequestOptions): Promise<TotalUserEarning[]>;
|
|
4784
5082
|
/**
|
|
4785
5083
|
* Lists market reward configuration and earnings for the authenticated account on a given day.
|
|
4786
5084
|
*
|
|
@@ -4814,7 +5112,7 @@ type SecureRewardsActions = Prettify<PublicRewardsActions & {
|
|
|
4814
5112
|
* }
|
|
4815
5113
|
* ```
|
|
4816
5114
|
*/
|
|
4817
|
-
listUserEarningsAndMarketsConfig(request: ListUserEarningsAndMarketsConfigRequest): Paginated<UserRewardsEarning[]>;
|
|
5115
|
+
listUserEarningsAndMarketsConfig(request: ListUserEarningsAndMarketsConfigRequest, options?: RequestOptions): Paginated<UserRewardsEarning[]>;
|
|
4818
5116
|
/**
|
|
4819
5117
|
* Fetches reward percentages for the authenticated account.
|
|
4820
5118
|
*
|
|
@@ -4826,7 +5124,7 @@ type SecureRewardsActions = Prettify<PublicRewardsActions & {
|
|
|
4826
5124
|
* const percentages = await client.fetchRewardPercentages();
|
|
4827
5125
|
* ```
|
|
4828
5126
|
*/
|
|
4829
|
-
fetchRewardPercentages(): Promise<RewardsPercentages>;
|
|
5127
|
+
fetchRewardPercentages(options?: RequestOptions): Promise<RewardsPercentages>;
|
|
4830
5128
|
}>;
|
|
4831
5129
|
declare function rewardsActions(client: BasePublicClient): PublicRewardsActions;
|
|
4832
5130
|
declare function rewardsActions(client: BaseSecureClient): SecureRewardsActions;
|
|
@@ -5366,9 +5664,9 @@ type FetchRfqStatusParams = {
|
|
|
5366
5664
|
* {@link RfqExecutionStatus} values surface alongside the RFQ lifecycle.
|
|
5367
5665
|
*/
|
|
5368
5666
|
type RfqStatusResult = BuilderRfqStatusResponse;
|
|
5369
|
-
type FetchRfqStatusError = RateLimitError | RfqRequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5667
|
+
type FetchRfqStatusError = RequestAbortedError | RateLimitError | RfqRequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5370
5668
|
declare const FetchRfqStatusError: {
|
|
5371
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RateLimitError | RfqRequestRejectedError;
|
|
5669
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RateLimitError | RfqRequestRejectedError;
|
|
5372
5670
|
};
|
|
5373
5671
|
/**
|
|
5374
5672
|
* Fetches the status of an accepted RFQ.
|
|
@@ -5385,7 +5683,7 @@ declare const FetchRfqStatusError: {
|
|
|
5385
5683
|
* const status = await fetchRfqStatus(client, { rfqId });
|
|
5386
5684
|
* ```
|
|
5387
5685
|
*/
|
|
5388
|
-
declare function fetchRfqStatus(client: BaseSecureClient, params: FetchRfqStatusParams): Promise<RfqStatusResult>;
|
|
5686
|
+
declare function fetchRfqStatus(client: BaseSecureClient, params: FetchRfqStatusParams, options?: RequestOptions): Promise<RfqStatusResult>;
|
|
5389
5687
|
|
|
5390
5688
|
type SecureRfqActions = {
|
|
5391
5689
|
/**
|
|
@@ -5656,7 +5954,7 @@ type SessionKeyActions = {
|
|
|
5656
5954
|
* @throws {@link FetchSessionKeysError}
|
|
5657
5955
|
* Thrown on failure.
|
|
5658
5956
|
*/
|
|
5659
|
-
fetchSessionKeys(): Promise<SessionKey[]>;
|
|
5957
|
+
fetchSessionKeys(options?: RequestOptions): Promise<SessionKey[]>;
|
|
5660
5958
|
/**
|
|
5661
5959
|
* Revokes a session key authorized for the Deposit Wallet.
|
|
5662
5960
|
*
|
|
@@ -5910,9 +6208,9 @@ type EstimateMarketSellPriceRequest = {
|
|
|
5910
6208
|
orderType?: OrderType.FAK | OrderType.FOK;
|
|
5911
6209
|
};
|
|
5912
6210
|
type EstimateMarketPriceRequest = EstimateMarketBuyPriceRequest | EstimateMarketSellPriceRequest;
|
|
5913
|
-
type EstimateMarketPriceError = InsufficientLiquidityError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
6211
|
+
type EstimateMarketPriceError = RequestAbortedError | InsufficientLiquidityError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5914
6212
|
declare const EstimateMarketPriceError: {
|
|
5915
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | InsufficientLiquidityError;
|
|
6213
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError | InsufficientLiquidityError;
|
|
5916
6214
|
};
|
|
5917
6215
|
/**
|
|
5918
6216
|
* Estimates the price level a market order would cross at current book depth.
|
|
@@ -5944,7 +6242,7 @@ declare const EstimateMarketPriceError: {
|
|
|
5944
6242
|
* @throws {@link EstimateMarketPriceError}
|
|
5945
6243
|
* Thrown on failure.
|
|
5946
6244
|
*/
|
|
5947
|
-
declare function estimateMarketPrice(client: BaseClient, request: EstimateMarketPriceRequest): Promise<number>;
|
|
6245
|
+
declare function estimateMarketPrice(client: BaseClient, request: EstimateMarketPriceRequest, options?: RequestOptions): Promise<number>;
|
|
5948
6246
|
|
|
5949
6247
|
type PrepareMarketBuyOrderRequest = {
|
|
5950
6248
|
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
@@ -6185,6 +6483,28 @@ declare const WaitForOrderFillSettlementError: {
|
|
|
6185
6483
|
declare function waitForOrderFillSettlement(client: BaseSecureClient, order: AcceptedOrderResponse, request?: WaitForOrderFillSettlementRequest): Promise<TxHash[]>;
|
|
6186
6484
|
|
|
6187
6485
|
type SecureTradingActions = {
|
|
6486
|
+
/**
|
|
6487
|
+
* Sends one authenticated order heartbeat and returns the next heartbeat ID.
|
|
6488
|
+
* The first accepted send enables timeout cancellation for ALL open orders owned
|
|
6489
|
+
* by this API key, across markets and processes. Only start when you can keep
|
|
6490
|
+
* sending every five seconds. After ten seconds without an accepted send, the
|
|
6491
|
+
* server attempts cancel-all; cancellation timing and success are not guaranteed.
|
|
6492
|
+
* Start with an empty ID, serialize sends per key, and retain every returned ID.
|
|
6493
|
+
* No timer or automatic retry is started. A mismatch does not refresh the deadline;
|
|
6494
|
+
* retry explicitly with OrderHeartbeatMismatchError.heartbeatId. A lost response
|
|
6495
|
+
* may follow an accepted send, so failure does not prove registration is inactive.
|
|
6496
|
+
* There is no disarm operation. Stopping sends or closing the client leaves the
|
|
6497
|
+
* deadline active. On shutdown, stop placing orders and explicitly cancel/verify
|
|
6498
|
+
* orders you intend to remove. Expiry removes the registration; a later accepted
|
|
6499
|
+
* send registers again. This is separate from WebSocket connection keepalive.
|
|
6500
|
+
* @throws {@link SendOrderHeartbeatError} Thrown on failure.
|
|
6501
|
+
* @example
|
|
6502
|
+
* ```ts
|
|
6503
|
+
* const heartbeat = await client.sendOrderHeartbeat();
|
|
6504
|
+
* const next = await client.sendOrderHeartbeat({ heartbeatId: heartbeat.heartbeatId });
|
|
6505
|
+
* ```
|
|
6506
|
+
*/
|
|
6507
|
+
sendOrderHeartbeat(request?: SendOrderHeartbeatRequest): Promise<OrderHeartbeat>;
|
|
6188
6508
|
/**
|
|
6189
6509
|
* Creates a signed market order for the authenticated account.
|
|
6190
6510
|
*
|
|
@@ -6474,7 +6794,7 @@ type SecureTradingActions = {
|
|
|
6474
6794
|
* }
|
|
6475
6795
|
* ```
|
|
6476
6796
|
*/
|
|
6477
|
-
listOpenOrders(request?: ListOpenOrdersRequest): Paginated<OpenOrder[]>;
|
|
6797
|
+
listOpenOrders(request?: ListOpenOrdersRequest, options?: RequestOptions): Paginated<OpenOrder[]>;
|
|
6478
6798
|
/**
|
|
6479
6799
|
* Fetches a single order for the authenticated account.
|
|
6480
6800
|
*
|
|
@@ -6486,7 +6806,7 @@ type SecureTradingActions = {
|
|
|
6486
6806
|
* const order = await client.fetchOrder({ orderId: '123' });
|
|
6487
6807
|
* ```
|
|
6488
6808
|
*/
|
|
6489
|
-
fetchOrder(request: FetchOrderRequest): Promise<OpenOrder>;
|
|
6809
|
+
fetchOrder(request: FetchOrderRequest, options?: RequestOptions): Promise<OpenOrder>;
|
|
6490
6810
|
};
|
|
6491
6811
|
declare function tradingActions(client: BaseSecureClient): SecureTradingActions;
|
|
6492
6812
|
|
|
@@ -6508,9 +6828,59 @@ type PublicWalletActions = {
|
|
|
6508
6828
|
* });
|
|
6509
6829
|
* ```
|
|
6510
6830
|
*/
|
|
6511
|
-
fetchTradingApprovalsState(request: FetchTradingApprovalsStateRequest): Promise<TradingApprovalsState>;
|
|
6831
|
+
fetchTradingApprovalsState(request: FetchTradingApprovalsStateRequest, options?: RequestOptions): Promise<TradingApprovalsState>;
|
|
6512
6832
|
};
|
|
6513
6833
|
type SecureWalletActions = {
|
|
6834
|
+
/**
|
|
6835
|
+
* Converts NO into YES for all other conditions.
|
|
6836
|
+
* Derives the event and NO condition index from the market's condition ID.
|
|
6837
|
+
* Includes Other unless converting NO(Other).
|
|
6838
|
+
* Requires PositionManager operator approval for the Router; approvals are not submitted automatically.
|
|
6839
|
+
* Signs and submits; call the returned handle's wait() to confirm.
|
|
6840
|
+
* @throws {@link ConvertError} Thrown on failure.
|
|
6841
|
+
*/
|
|
6842
|
+
convert(request: PrepareConvertRequest): Promise<TransactionHandle>;
|
|
6843
|
+
/**
|
|
6844
|
+
* Prepares a workflow: Converts NO into YES for all other conditions.
|
|
6845
|
+
* Derives the event and NO condition index from the market's condition ID.
|
|
6846
|
+
* Includes Other unless converting NO(Other).
|
|
6847
|
+
* Requires PositionManager operator approval for the Router; approvals are not submitted automatically.
|
|
6848
|
+
* Preparing does not sign or submit; advance the workflow to execute it.
|
|
6849
|
+
* @throws {@link PrepareConvertError} Thrown on failure.
|
|
6850
|
+
*/
|
|
6851
|
+
prepareConvert(request: PrepareConvertRequest): Promise<ConvertWorkflow>;
|
|
6852
|
+
/**
|
|
6853
|
+
* Splits pUSD into YES for every condition, including Other.
|
|
6854
|
+
* Uses the event containing the supplied market condition.
|
|
6855
|
+
* Requires pUSD spending approval for the Router; approvals are not submitted automatically.
|
|
6856
|
+
* Signs and submits; call the returned handle's wait() to confirm.
|
|
6857
|
+
* @throws {@link HorizontalSplitError} Thrown on failure.
|
|
6858
|
+
*/
|
|
6859
|
+
horizontalSplit(request: PrepareHorizontalSplitRequest): Promise<TransactionHandle>;
|
|
6860
|
+
/**
|
|
6861
|
+
* Prepares a workflow: Splits pUSD into YES for every condition, including Other.
|
|
6862
|
+
* Uses the event containing the supplied market condition.
|
|
6863
|
+
* Requires pUSD spending approval for the Router; approvals are not submitted automatically.
|
|
6864
|
+
* Preparing does not sign or submit; advance the workflow to execute it.
|
|
6865
|
+
* @throws {@link PrepareHorizontalSplitError} Thrown on failure.
|
|
6866
|
+
*/
|
|
6867
|
+
prepareHorizontalSplit(request: PrepareHorizontalSplitRequest): Promise<HorizontalSplitWorkflow>;
|
|
6868
|
+
/**
|
|
6869
|
+
* Merges equal YES amounts from every condition, including Other, into pUSD.
|
|
6870
|
+
* Uses the event containing the supplied market condition.
|
|
6871
|
+
* Requires PositionManager operator approval for the Router; approvals are not submitted automatically.
|
|
6872
|
+
* Signs and submits; call the returned handle's wait() to confirm.
|
|
6873
|
+
* @throws {@link HorizontalMergeError} Thrown on failure.
|
|
6874
|
+
*/
|
|
6875
|
+
horizontalMerge(request: PrepareHorizontalMergeRequest): Promise<TransactionHandle>;
|
|
6876
|
+
/**
|
|
6877
|
+
* Prepares a workflow: Merges equal YES amounts from every condition, including Other, into pUSD.
|
|
6878
|
+
* Uses the event containing the supplied market condition.
|
|
6879
|
+
* Requires PositionManager operator approval for the Router; approvals are not submitted automatically.
|
|
6880
|
+
* Preparing does not sign or submit; advance the workflow to execute it.
|
|
6881
|
+
* @throws {@link PrepareHorizontalMergeError} Thrown on failure.
|
|
6882
|
+
*/
|
|
6883
|
+
prepareHorizontalMerge(request: PrepareHorizontalMergeRequest): Promise<HorizontalMergeWorkflow>;
|
|
6514
6884
|
/**
|
|
6515
6885
|
* Reads the approvals a wallet is missing for supported trading workflows.
|
|
6516
6886
|
*
|
|
@@ -6526,7 +6896,7 @@ type SecureWalletActions = {
|
|
|
6526
6896
|
* const state = await client.fetchTradingApprovalsState();
|
|
6527
6897
|
* ```
|
|
6528
6898
|
*/
|
|
6529
|
-
fetchTradingApprovalsState(): Promise<TradingApprovalsState>;
|
|
6899
|
+
fetchTradingApprovalsState(options?: RequestOptions): Promise<TradingApprovalsState>;
|
|
6530
6900
|
/**
|
|
6531
6901
|
* Sets up the approvals required for trading and supported position lifecycle workflows.
|
|
6532
6902
|
*
|
|
@@ -6821,6 +7191,7 @@ type EnvironmentConfigFork = {
|
|
|
6821
7191
|
rpc?: string;
|
|
6822
7192
|
walletDerivation?: Partial<WalletDerivationConfig>;
|
|
6823
7193
|
contracts?: Partial<EnvironmentContracts>;
|
|
7194
|
+
predictions?: Partial<RestEndpoint>;
|
|
6824
7195
|
clob?: Partial<RestEndpoint> & {
|
|
6825
7196
|
market?: Partial<WebSocketEndpoint>;
|
|
6826
7197
|
user?: Partial<WebSocketEndpoint>;
|
|
@@ -6882,6 +7253,13 @@ declare abstract class AbstractClient<TContext extends PublicContext> {
|
|
|
6882
7253
|
#private;
|
|
6883
7254
|
protected get context(): TContext;
|
|
6884
7255
|
protected get decorators(): readonly ClientDecorator[];
|
|
7256
|
+
/**
|
|
7257
|
+
* Service client for prediction requests using the configured endpoint.
|
|
7258
|
+
* Requests return promises with parsed response data.
|
|
7259
|
+
*
|
|
7260
|
+
* @experimental For the polymarket.com UI. External consumers should not adopt this API. Breaking changes may occur in any release, including patch releases.
|
|
7261
|
+
*/
|
|
7262
|
+
get predictions(): ServiceClient;
|
|
6885
7263
|
constructor(context: TContext);
|
|
6886
7264
|
protected resolveClobHeaders(request: ServiceRequest): Promise<HeadersInit>;
|
|
6887
7265
|
protected resolveRelayerHeaders(request: ServiceRequest): Promise<HeadersInit>;
|
|
@@ -6911,6 +7289,7 @@ type BeginAuthenticationRequest = {
|
|
|
6911
7289
|
credentials?: ApiKeyCreds;
|
|
6912
7290
|
};
|
|
6913
7291
|
type PublicClientConfig = {
|
|
7292
|
+
fetch?: Fetch;
|
|
6914
7293
|
environment: EnvironmentConfig;
|
|
6915
7294
|
apiKey?: ApiKeyAuthorization;
|
|
6916
7295
|
onRateLimitUpdate?: RateLimitUpdateListener;
|
|
@@ -7046,6 +7425,12 @@ type SecureClient<TPublicActions extends ClientActions = PublicActions, TSecureA
|
|
|
7046
7425
|
type BaseClient<TPublicActions extends ClientActions = ClientActions, TSecureActions extends ClientActions = TPublicActions> = BasePublicClient<TPublicActions, TSecureActions> | BaseSecureClient<TPublicActions, TSecureActions>;
|
|
7047
7426
|
type Client<TPublicActions extends ClientActions = ClientActions, TSecureActions extends ClientActions = TPublicActions> = PublicClient<TPublicActions, TSecureActions> | SecureClient<TPublicActions, TSecureActions>;
|
|
7048
7427
|
type PublicClientOptions = {
|
|
7428
|
+
/**
|
|
7429
|
+
* Fetch-compatible implementation for SDK-owned HTTP requests. Defaults to native fetch.
|
|
7430
|
+
*
|
|
7431
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
7432
|
+
*/
|
|
7433
|
+
fetch?: Fetch;
|
|
7049
7434
|
/**
|
|
7050
7435
|
* The environment configuration used by the client.
|
|
7051
7436
|
*
|
|
@@ -7129,9 +7514,9 @@ declare const SetupGaslessWalletError: {
|
|
|
7129
7514
|
*/
|
|
7130
7515
|
declare function createSecureClient(options: SecureClientOptions): Promise<SecureClient<PublicActions, SecureActions>>;
|
|
7131
7516
|
|
|
7132
|
-
type FetchClosedOnlyModeError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
|
|
7517
|
+
type FetchClosedOnlyModeError = RequestAbortedError | RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7133
7518
|
declare const FetchClosedOnlyModeError: {
|
|
7134
|
-
isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
7519
|
+
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
7135
7520
|
};
|
|
7136
7521
|
/**
|
|
7137
7522
|
* Fetches whether the account is restricted to closed-only trading.
|
|
@@ -7146,7 +7531,7 @@ declare const FetchClosedOnlyModeError: {
|
|
|
7146
7531
|
* const closedOnly = await fetchClosedOnlyMode(client);
|
|
7147
7532
|
* ```
|
|
7148
7533
|
*/
|
|
7149
|
-
declare function fetchClosedOnlyMode(client: BaseSecureClient): Promise<boolean>;
|
|
7534
|
+
declare function fetchClosedOnlyMode(client: BaseSecureClient, options?: RequestOptions): Promise<boolean>;
|
|
7150
7535
|
type ListOpenOrdersRequest = {
|
|
7151
7536
|
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
7152
7537
|
assetId?: string;
|
|
@@ -7162,9 +7547,9 @@ type ListOpenOrdersRequest = {
|
|
|
7162
7547
|
id?: string;
|
|
7163
7548
|
market?: string;
|
|
7164
7549
|
};
|
|
7165
|
-
type ListOpenOrdersError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7550
|
+
type ListOpenOrdersError = RequestAbortedError | RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7166
7551
|
declare const ListOpenOrdersError: {
|
|
7167
|
-
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
7552
|
+
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
7168
7553
|
};
|
|
7169
7554
|
/**
|
|
7170
7555
|
* Lists open orders for the authenticated account across all pages.
|
|
@@ -7201,14 +7586,14 @@ declare const ListOpenOrdersError: {
|
|
|
7201
7586
|
* }
|
|
7202
7587
|
* ```
|
|
7203
7588
|
*/
|
|
7204
|
-
declare function listOpenOrders(client: BaseSecureClient, request?: ListOpenOrdersRequest): Paginated<OpenOrder[]>;
|
|
7589
|
+
declare function listOpenOrders(client: BaseSecureClient, request?: ListOpenOrdersRequest, options?: RequestOptions): Paginated<OpenOrder[]>;
|
|
7205
7590
|
declare const FetchOrderRequestSchema: z.ZodObject<{
|
|
7206
7591
|
orderId: z.ZodString;
|
|
7207
7592
|
}, z.core.$strip>;
|
|
7208
7593
|
type FetchOrderRequest = z.input<typeof FetchOrderRequestSchema>;
|
|
7209
|
-
type FetchOrderError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7594
|
+
type FetchOrderError = RequestAbortedError | RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7210
7595
|
declare const FetchOrderError: {
|
|
7211
|
-
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
7596
|
+
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
7212
7597
|
};
|
|
7213
7598
|
/**
|
|
7214
7599
|
* Fetches a single order for the authenticated account.
|
|
@@ -7225,7 +7610,7 @@ declare const FetchOrderError: {
|
|
|
7225
7610
|
* });
|
|
7226
7611
|
* ```
|
|
7227
7612
|
*/
|
|
7228
|
-
declare function fetchOrder(client: BaseSecureClient, request: FetchOrderRequest): Promise<OpenOrder>;
|
|
7613
|
+
declare function fetchOrder(client: BaseSecureClient, request: FetchOrderRequest, options?: RequestOptions): Promise<OpenOrder>;
|
|
7229
7614
|
type ListAccountTradesRequest = {
|
|
7230
7615
|
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
7231
7616
|
assetId?: string;
|
|
@@ -7247,9 +7632,9 @@ type ListAccountTradesRequest = {
|
|
|
7247
7632
|
makerAddress?: string;
|
|
7248
7633
|
market?: string;
|
|
7249
7634
|
};
|
|
7250
|
-
type ListAccountTradesError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7635
|
+
type ListAccountTradesError = RequestAbortedError | RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7251
7636
|
declare const ListAccountTradesError: {
|
|
7252
|
-
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
7637
|
+
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
7253
7638
|
};
|
|
7254
7639
|
/**
|
|
7255
7640
|
* Lists trades for the authenticated account across all pages.
|
|
@@ -7286,10 +7671,10 @@ declare const ListAccountTradesError: {
|
|
|
7286
7671
|
* }
|
|
7287
7672
|
* ```
|
|
7288
7673
|
*/
|
|
7289
|
-
declare function listAccountTrades(client: BaseSecureClient, request?: ListAccountTradesRequest): Paginated<ClobTrade[]>;
|
|
7290
|
-
type FetchNotificationsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
|
|
7674
|
+
declare function listAccountTrades(client: BaseSecureClient, request?: ListAccountTradesRequest, options?: RequestOptions): Paginated<ClobTrade[]>;
|
|
7675
|
+
type FetchNotificationsError = RequestAbortedError | RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7291
7676
|
declare const FetchNotificationsError: {
|
|
7292
|
-
isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
7677
|
+
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
7293
7678
|
};
|
|
7294
7679
|
declare const DropNotificationsRequestSchema: z.ZodObject<{
|
|
7295
7680
|
ids: z.ZodArray<z.ZodString>;
|
|
@@ -7309,7 +7694,7 @@ type DropNotificationsRequest = z.input<typeof DropNotificationsRequestSchema>;
|
|
|
7309
7694
|
* const notifications = await fetchNotifications(client);
|
|
7310
7695
|
* ```
|
|
7311
7696
|
*/
|
|
7312
|
-
declare function fetchNotifications(client: BaseSecureClient): Promise<NotificationsResponse>;
|
|
7697
|
+
declare function fetchNotifications(client: BaseSecureClient, options?: RequestOptions): Promise<NotificationsResponse>;
|
|
7313
7698
|
type DropNotificationsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7314
7699
|
declare const DropNotificationsError: {
|
|
7315
7700
|
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
@@ -7342,9 +7727,9 @@ type FetchBalanceAllowanceRequest = {
|
|
|
7342
7727
|
tokenId?: string;
|
|
7343
7728
|
assetType: AssetType;
|
|
7344
7729
|
};
|
|
7345
|
-
type FetchBalanceAllowanceError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7730
|
+
type FetchBalanceAllowanceError = RequestAbortedError | RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7346
7731
|
declare const FetchBalanceAllowanceError: {
|
|
7347
|
-
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
7732
|
+
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
7348
7733
|
};
|
|
7349
7734
|
/**
|
|
7350
7735
|
* Fetches balance and allowance for the authenticated account.
|
|
@@ -7362,7 +7747,7 @@ declare const FetchBalanceAllowanceError: {
|
|
|
7362
7747
|
* });
|
|
7363
7748
|
* ```
|
|
7364
7749
|
*/
|
|
7365
|
-
declare function fetchBalanceAllowance(client: BaseSecureClient, request: FetchBalanceAllowanceRequest): Promise<BalanceAllowanceResponse>;
|
|
7750
|
+
declare function fetchBalanceAllowance(client: BaseSecureClient, request: FetchBalanceAllowanceRequest, options?: RequestOptions): Promise<BalanceAllowanceResponse>;
|
|
7366
7751
|
type UpdateBalanceAllowanceRequest = {
|
|
7367
7752
|
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
7368
7753
|
assetId?: string;
|
|
@@ -7399,9 +7784,9 @@ declare const FetchOrderScoringRequestSchema: z.ZodObject<{
|
|
|
7399
7784
|
orderId: z.ZodString;
|
|
7400
7785
|
}, z.core.$strip>;
|
|
7401
7786
|
type FetchOrderScoringRequest = z.input<typeof FetchOrderScoringRequestSchema>;
|
|
7402
|
-
type FetchOrderScoringError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7787
|
+
type FetchOrderScoringError = RequestAbortedError | RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7403
7788
|
declare const FetchOrderScoringError: {
|
|
7404
|
-
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
7789
|
+
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
7405
7790
|
};
|
|
7406
7791
|
/**
|
|
7407
7792
|
* Fetches whether a single order is currently scoring.
|
|
@@ -7418,14 +7803,14 @@ declare const FetchOrderScoringError: {
|
|
|
7418
7803
|
* });
|
|
7419
7804
|
* ```
|
|
7420
7805
|
*/
|
|
7421
|
-
declare function fetchOrderScoring(client: BaseSecureClient, request: FetchOrderScoringRequest): Promise<boolean>;
|
|
7806
|
+
declare function fetchOrderScoring(client: BaseSecureClient, request: FetchOrderScoringRequest, options?: RequestOptions): Promise<boolean>;
|
|
7422
7807
|
declare const FetchOrdersScoringRequestSchema: z.ZodObject<{
|
|
7423
7808
|
orderIds: z.ZodArray<z.ZodString>;
|
|
7424
7809
|
}, z.core.$strip>;
|
|
7425
7810
|
type FetchOrdersScoringRequest = z.input<typeof FetchOrdersScoringRequestSchema>;
|
|
7426
|
-
type FetchOrdersScoringError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7811
|
+
type FetchOrdersScoringError = RequestAbortedError | RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7427
7812
|
declare const FetchOrdersScoringError: {
|
|
7428
|
-
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
7813
|
+
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
7429
7814
|
};
|
|
7430
7815
|
/**
|
|
7431
7816
|
* Fetches scoring state for multiple orders.
|
|
@@ -7442,15 +7827,15 @@ declare const FetchOrdersScoringError: {
|
|
|
7442
7827
|
* });
|
|
7443
7828
|
* ```
|
|
7444
7829
|
*/
|
|
7445
|
-
declare function fetchOrdersScoring(client: BaseSecureClient, request: FetchOrdersScoringRequest): Promise<OrdersScoringResponse>;
|
|
7830
|
+
declare function fetchOrdersScoring(client: BaseSecureClient, request: FetchOrdersScoringRequest, options?: RequestOptions): Promise<OrdersScoringResponse>;
|
|
7446
7831
|
declare const ListUserEarningsForDayRequestSchema: z.ZodObject<{
|
|
7447
7832
|
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
7448
7833
|
date: z.ZodString;
|
|
7449
7834
|
}, z.core.$strip>;
|
|
7450
7835
|
type ListUserEarningsForDayRequest = z.input<typeof ListUserEarningsForDayRequestSchema>;
|
|
7451
|
-
type ListUserEarningsForDayError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7836
|
+
type ListUserEarningsForDayError = RequestAbortedError | RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7452
7837
|
declare const ListUserEarningsForDayError: {
|
|
7453
|
-
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
7838
|
+
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
7454
7839
|
};
|
|
7455
7840
|
/**
|
|
7456
7841
|
* Lists per-market earnings for the authenticated account on a given day.
|
|
@@ -7487,14 +7872,22 @@ declare const ListUserEarningsForDayError: {
|
|
|
7487
7872
|
* }
|
|
7488
7873
|
* ```
|
|
7489
7874
|
*/
|
|
7490
|
-
declare function listUserEarningsForDay(client: BaseSecureClient, request: ListUserEarningsForDayRequest): Paginated<UserEarning[]>;
|
|
7491
|
-
|
|
7492
|
-
|
|
7875
|
+
declare function listUserEarningsForDay(client: BaseSecureClient, request: ListUserEarningsForDayRequest, options?: RequestOptions): Paginated<UserEarning[]>;
|
|
7876
|
+
declare const FetchTotalEarningsForUserForDayRequestSchema: z.ZodObject<{
|
|
7877
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
7878
|
+
date: z.ZodString;
|
|
7879
|
+
sponsored: z.ZodOptional<z.ZodBoolean>;
|
|
7880
|
+
}, z.core.$strip>;
|
|
7881
|
+
type FetchTotalEarningsForUserForDayRequest = z.input<typeof FetchTotalEarningsForUserForDayRequestSchema>;
|
|
7882
|
+
type FetchTotalEarningsForUserForDayError = RequestAbortedError | RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7493
7883
|
declare const FetchTotalEarningsForUserForDayError: {
|
|
7494
|
-
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
7884
|
+
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
7495
7885
|
};
|
|
7496
7886
|
/**
|
|
7497
7887
|
* Fetches total earnings for the authenticated account on a given day.
|
|
7888
|
+
* Set `sponsored: true` to include sponsored rewards and the native/sponsored
|
|
7889
|
+
* breakdown. Omitted or false returns native rewards only; absent breakdown
|
|
7890
|
+
* fields remain undefined.
|
|
7498
7891
|
*
|
|
7499
7892
|
* @remarks
|
|
7500
7893
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -7508,7 +7901,7 @@ declare const FetchTotalEarningsForUserForDayError: {
|
|
|
7508
7901
|
* });
|
|
7509
7902
|
* ```
|
|
7510
7903
|
*/
|
|
7511
|
-
declare function fetchTotalEarningsForUserForDay(client: BaseSecureClient, request: FetchTotalEarningsForUserForDayRequest): Promise<TotalUserEarning[]>;
|
|
7904
|
+
declare function fetchTotalEarningsForUserForDay(client: BaseSecureClient, request: FetchTotalEarningsForUserForDayRequest, options?: RequestOptions): Promise<TotalUserEarning[]>;
|
|
7512
7905
|
declare const ListUserEarningsAndMarketsConfigRequestSchema: z.ZodObject<{
|
|
7513
7906
|
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
7514
7907
|
date: z.ZodString;
|
|
@@ -7518,9 +7911,9 @@ declare const ListUserEarningsAndMarketsConfigRequestSchema: z.ZodObject<{
|
|
|
7518
7911
|
position: z.ZodOptional<z.ZodString>;
|
|
7519
7912
|
}, z.core.$strip>;
|
|
7520
7913
|
type ListUserEarningsAndMarketsConfigRequest = z.input<typeof ListUserEarningsAndMarketsConfigRequestSchema>;
|
|
7521
|
-
type ListUserEarningsAndMarketsConfigError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7914
|
+
type ListUserEarningsAndMarketsConfigError = RequestAbortedError | RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7522
7915
|
declare const ListUserEarningsAndMarketsConfigError: {
|
|
7523
|
-
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
7916
|
+
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
7524
7917
|
};
|
|
7525
7918
|
/**
|
|
7526
7919
|
* Lists market reward configuration and earnings for the authenticated account on a given day.
|
|
@@ -7557,10 +7950,10 @@ declare const ListUserEarningsAndMarketsConfigError: {
|
|
|
7557
7950
|
* }
|
|
7558
7951
|
* ```
|
|
7559
7952
|
*/
|
|
7560
|
-
declare function listUserEarningsAndMarketsConfig(client: BaseSecureClient, request: ListUserEarningsAndMarketsConfigRequest): Paginated<UserRewardsEarning[]>;
|
|
7561
|
-
type FetchRewardPercentagesError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
|
|
7953
|
+
declare function listUserEarningsAndMarketsConfig(client: BaseSecureClient, request: ListUserEarningsAndMarketsConfigRequest, options?: RequestOptions): Paginated<UserRewardsEarning[]>;
|
|
7954
|
+
type FetchRewardPercentagesError = RequestAbortedError | RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7562
7955
|
declare const FetchRewardPercentagesError: {
|
|
7563
|
-
isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
7956
|
+
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
7564
7957
|
};
|
|
7565
7958
|
/**
|
|
7566
7959
|
* Fetches reward percentages for the authenticated account.
|
|
@@ -7575,7 +7968,7 @@ declare const FetchRewardPercentagesError: {
|
|
|
7575
7968
|
* const percentages = await fetchRewardPercentages(client);
|
|
7576
7969
|
* ```
|
|
7577
7970
|
*/
|
|
7578
|
-
declare function fetchRewardPercentages(client: BaseSecureClient): Promise<RewardsPercentages>;
|
|
7971
|
+
declare function fetchRewardPercentages(client: BaseSecureClient, options?: RequestOptions): Promise<RewardsPercentages>;
|
|
7579
7972
|
|
|
7580
7973
|
type Erc20ApprovalWorkflowRequest = GaslessWorkflowRequest | SendErc20ApprovalTransactionRequest;
|
|
7581
7974
|
type Erc20ApprovalWorkflow = AsyncGenerator<Erc20ApprovalWorkflowRequest, TransactionHandle, EvmAddress$1 | EvmSignature | TransactionHandle>;
|
|
@@ -7709,9 +8102,9 @@ type TradingApprovalsState = {
|
|
|
7709
8102
|
/** Approvals the wallet must grant to become fully approved. */
|
|
7710
8103
|
missing: TradingApprovalRequirements;
|
|
7711
8104
|
};
|
|
7712
|
-
type FetchTradingApprovalsStateError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8105
|
+
type FetchTradingApprovalsStateError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7713
8106
|
declare const FetchTradingApprovalsStateError: {
|
|
7714
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8107
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
7715
8108
|
};
|
|
7716
8109
|
/**
|
|
7717
8110
|
* Reads the approvals a wallet is missing for supported trading workflows.
|
|
@@ -7734,7 +8127,7 @@ declare const FetchTradingApprovalsStateError: {
|
|
|
7734
8127
|
* @throws {@link FetchTradingApprovalsStateError}
|
|
7735
8128
|
* Thrown on failure.
|
|
7736
8129
|
*/
|
|
7737
|
-
declare function fetchTradingApprovalsState(client: BaseClient, request: FetchTradingApprovalsStateRequest): Promise<TradingApprovalsState>;
|
|
8130
|
+
declare function fetchTradingApprovalsState(client: BaseClient, request: FetchTradingApprovalsStateRequest, options?: RequestOptions): Promise<TradingApprovalsState>;
|
|
7738
8131
|
/**
|
|
7739
8132
|
* Starts a trading-setup approval workflow.
|
|
7740
8133
|
*
|
|
@@ -7786,9 +8179,9 @@ type ListBuilderTradesRequest = {
|
|
|
7786
8179
|
id?: string;
|
|
7787
8180
|
market?: string;
|
|
7788
8181
|
};
|
|
7789
|
-
type ListBuilderTradesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8182
|
+
type ListBuilderTradesError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7790
8183
|
declare const ListBuilderTradesError: {
|
|
7791
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8184
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
7792
8185
|
};
|
|
7793
8186
|
/**
|
|
7794
8187
|
* Lists builder-attributed trades.
|
|
@@ -7822,7 +8215,7 @@ declare const ListBuilderTradesError: {
|
|
|
7822
8215
|
* }
|
|
7823
8216
|
* ```
|
|
7824
8217
|
*/
|
|
7825
|
-
declare function listBuilderTrades(client: BaseClient, request: ListBuilderTradesRequest): Paginated<BuilderTrade[]>;
|
|
8218
|
+
declare function listBuilderTrades(client: BaseClient, request: ListBuilderTradesRequest, options?: RequestOptions): Paginated<BuilderTrade[]>;
|
|
7826
8219
|
|
|
7827
8220
|
type FetchMidpointRequest = {
|
|
7828
8221
|
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
@@ -7833,9 +8226,9 @@ type FetchMidpointRequest = {
|
|
|
7833
8226
|
/** @deprecated Use `assetId`. */
|
|
7834
8227
|
tokenId: string;
|
|
7835
8228
|
};
|
|
7836
|
-
type FetchMidpointError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8229
|
+
type FetchMidpointError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7837
8230
|
declare const FetchMidpointError: {
|
|
7838
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8231
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
7839
8232
|
};
|
|
7840
8233
|
/**
|
|
7841
8234
|
* Fetches the midpoint price for an exchange asset as a decimal string.
|
|
@@ -7856,7 +8249,7 @@ declare const FetchMidpointError: {
|
|
|
7856
8249
|
* ```
|
|
7857
8250
|
*
|
|
7858
8251
|
*/
|
|
7859
|
-
declare function fetchMidpoint(client: BaseClient, request: FetchMidpointRequest): Promise<DecimalString>;
|
|
8252
|
+
declare function fetchMidpoint(client: BaseClient, request: FetchMidpointRequest, options?: RequestOptions): Promise<DecimalString>;
|
|
7860
8253
|
type FetchMidpointsRequest = Array<{
|
|
7861
8254
|
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
7862
8255
|
assetId: string;
|
|
@@ -7866,9 +8259,9 @@ type FetchMidpointsRequest = Array<{
|
|
|
7866
8259
|
/** @deprecated Use `assetId`. */
|
|
7867
8260
|
tokenId: string;
|
|
7868
8261
|
}>;
|
|
7869
|
-
type FetchMidpointsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8262
|
+
type FetchMidpointsError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7870
8263
|
declare const FetchMidpointsError: {
|
|
7871
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8264
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
7872
8265
|
};
|
|
7873
8266
|
/**
|
|
7874
8267
|
* Fetches midpoint prices for multiple exchange assets as an asset ID keyed lookup.
|
|
@@ -7891,7 +8284,7 @@ declare const FetchMidpointsError: {
|
|
|
7891
8284
|
* ```
|
|
7892
8285
|
*
|
|
7893
8286
|
*/
|
|
7894
|
-
declare function fetchMidpoints(client: BaseClient, request: FetchMidpointsRequest): Promise<Midpoints>;
|
|
8287
|
+
declare function fetchMidpoints(client: BaseClient, request: FetchMidpointsRequest, options?: RequestOptions): Promise<Midpoints>;
|
|
7895
8288
|
type FetchTickSizeRequest = {
|
|
7896
8289
|
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
7897
8290
|
assetId: string;
|
|
@@ -7901,9 +8294,9 @@ type FetchTickSizeRequest = {
|
|
|
7901
8294
|
/** @deprecated Use `assetId`. */
|
|
7902
8295
|
tokenId: string;
|
|
7903
8296
|
};
|
|
7904
|
-
type FetchTickSizeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8297
|
+
type FetchTickSizeError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7905
8298
|
declare const FetchTickSizeError: {
|
|
7906
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8299
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
7907
8300
|
};
|
|
7908
8301
|
/**
|
|
7909
8302
|
* Fetches the minimum price tick size for an exchange asset's order book.
|
|
@@ -7923,7 +8316,7 @@ declare const FetchTickSizeError: {
|
|
|
7923
8316
|
* // tickSize === 0.01
|
|
7924
8317
|
* ```
|
|
7925
8318
|
*/
|
|
7926
|
-
declare function fetchTickSize(client: BaseClient, request: FetchTickSizeRequest): Promise<TickSizeValue>;
|
|
8319
|
+
declare function fetchTickSize(client: BaseClient, request: FetchTickSizeRequest, options?: RequestOptions): Promise<TickSizeValue>;
|
|
7927
8320
|
type FetchNegRiskRequest = {
|
|
7928
8321
|
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
7929
8322
|
assetId: string;
|
|
@@ -7933,9 +8326,9 @@ type FetchNegRiskRequest = {
|
|
|
7933
8326
|
/** @deprecated Use `assetId`. */
|
|
7934
8327
|
tokenId: string;
|
|
7935
8328
|
};
|
|
7936
|
-
type FetchNegRiskError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8329
|
+
type FetchNegRiskError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7937
8330
|
declare const FetchNegRiskError: {
|
|
7938
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8331
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
7939
8332
|
};
|
|
7940
8333
|
/**
|
|
7941
8334
|
* Fetches whether an exchange asset is in a negative-risk market.
|
|
@@ -7955,7 +8348,7 @@ declare const FetchNegRiskError: {
|
|
|
7955
8348
|
* // negRisk === false
|
|
7956
8349
|
* ```
|
|
7957
8350
|
*/
|
|
7958
|
-
declare function fetchNegRisk(client: BaseClient, request: FetchNegRiskRequest): Promise<boolean>;
|
|
8351
|
+
declare function fetchNegRisk(client: BaseClient, request: FetchNegRiskRequest, options?: RequestOptions): Promise<boolean>;
|
|
7959
8352
|
type ResolveConditionByTokenRequest = {
|
|
7960
8353
|
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
7961
8354
|
assetId: string;
|
|
@@ -7965,9 +8358,9 @@ type ResolveConditionByTokenRequest = {
|
|
|
7965
8358
|
/** @deprecated Use `assetId`. */
|
|
7966
8359
|
tokenId: string;
|
|
7967
8360
|
};
|
|
7968
|
-
type ResolveConditionByTokenError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8361
|
+
type ResolveConditionByTokenError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7969
8362
|
declare const ResolveConditionByTokenError: {
|
|
7970
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8363
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
7971
8364
|
};
|
|
7972
8365
|
/**
|
|
7973
8366
|
* Resolves the condition ID for an exchange asset.
|
|
@@ -7978,14 +8371,14 @@ declare const ResolveConditionByTokenError: {
|
|
|
7978
8371
|
* @throws {@link ResolveConditionByTokenError}
|
|
7979
8372
|
* Thrown on failure.
|
|
7980
8373
|
*/
|
|
7981
|
-
declare function resolveConditionByToken(client: BaseClient, request: ResolveConditionByTokenRequest): Promise<ConditionId>;
|
|
8374
|
+
declare function resolveConditionByToken(client: BaseClient, request: ResolveConditionByTokenRequest, options?: RequestOptions): Promise<ConditionId>;
|
|
7982
8375
|
declare const FetchMarketInfoRequestSchema: z.ZodObject<{
|
|
7983
8376
|
conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
7984
8377
|
}, z.core.$strip>;
|
|
7985
8378
|
type FetchMarketInfoRequest = z.input<typeof FetchMarketInfoRequestSchema>;
|
|
7986
|
-
type FetchMarketInfoError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8379
|
+
type FetchMarketInfoError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7987
8380
|
declare const FetchMarketInfoError: {
|
|
7988
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8381
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
7989
8382
|
};
|
|
7990
8383
|
/**
|
|
7991
8384
|
* Fetches market-level metadata for a condition.
|
|
@@ -7996,14 +8389,14 @@ declare const FetchMarketInfoError: {
|
|
|
7996
8389
|
* @throws {@link FetchMarketInfoError}
|
|
7997
8390
|
* Thrown on failure.
|
|
7998
8391
|
*/
|
|
7999
|
-
declare function fetchMarketInfo(client: BaseClient, request: FetchMarketInfoRequest): Promise<MarketInfo>;
|
|
8392
|
+
declare function fetchMarketInfo(client: BaseClient, request: FetchMarketInfoRequest, options?: RequestOptions): Promise<MarketInfo>;
|
|
8000
8393
|
declare const FetchBuilderFeeRatesRequestSchema: z.ZodObject<{
|
|
8001
8394
|
builderCode: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.BuilderCode, string>>;
|
|
8002
8395
|
}, z.core.$strip>;
|
|
8003
8396
|
type FetchBuilderFeeRatesRequest = z.input<typeof FetchBuilderFeeRatesRequestSchema>;
|
|
8004
|
-
type FetchBuilderFeeRatesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8397
|
+
type FetchBuilderFeeRatesError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8005
8398
|
declare const FetchBuilderFeeRatesError: {
|
|
8006
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8399
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
8007
8400
|
};
|
|
8008
8401
|
/**
|
|
8009
8402
|
* Fetches builder maker and taker fee rates.
|
|
@@ -8014,7 +8407,7 @@ declare const FetchBuilderFeeRatesError: {
|
|
|
8014
8407
|
* @throws {@link FetchBuilderFeeRatesError}
|
|
8015
8408
|
* Thrown on failure.
|
|
8016
8409
|
*/
|
|
8017
|
-
declare function fetchBuilderFeeRates(client: BaseClient, request: FetchBuilderFeeRatesRequest): Promise<BuilderFeeRates>;
|
|
8410
|
+
declare function fetchBuilderFeeRates(client: BaseClient, request: FetchBuilderFeeRatesRequest, options?: RequestOptions): Promise<BuilderFeeRates>;
|
|
8018
8411
|
type FetchPriceRequest = {
|
|
8019
8412
|
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
8020
8413
|
assetId: string;
|
|
@@ -8026,9 +8419,9 @@ type FetchPriceRequest = {
|
|
|
8026
8419
|
tokenId: string;
|
|
8027
8420
|
side: OrderSide;
|
|
8028
8421
|
};
|
|
8029
|
-
type FetchPriceError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8422
|
+
type FetchPriceError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8030
8423
|
declare const FetchPriceError: {
|
|
8031
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8424
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
8032
8425
|
};
|
|
8033
8426
|
/**
|
|
8034
8427
|
* Fetches the current quoted price for an exchange asset and side as a decimal string.
|
|
@@ -8050,7 +8443,7 @@ declare const FetchPriceError: {
|
|
|
8050
8443
|
* ```
|
|
8051
8444
|
*
|
|
8052
8445
|
*/
|
|
8053
|
-
declare function fetchPrice(client: BaseClient, request: FetchPriceRequest): Promise<DecimalString>;
|
|
8446
|
+
declare function fetchPrice(client: BaseClient, request: FetchPriceRequest, options?: RequestOptions): Promise<DecimalString>;
|
|
8054
8447
|
type FetchPricesRequest = Array<{
|
|
8055
8448
|
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
8056
8449
|
assetId: string;
|
|
@@ -8062,9 +8455,9 @@ type FetchPricesRequest = Array<{
|
|
|
8062
8455
|
tokenId: string;
|
|
8063
8456
|
side: OrderSide;
|
|
8064
8457
|
}>;
|
|
8065
|
-
type FetchPricesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8458
|
+
type FetchPricesError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8066
8459
|
declare const FetchPricesError: {
|
|
8067
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8460
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
8068
8461
|
};
|
|
8069
8462
|
/**
|
|
8070
8463
|
* Fetches quoted prices for multiple exchange assets as an asset ID keyed lookup.
|
|
@@ -8088,7 +8481,7 @@ declare const FetchPricesError: {
|
|
|
8088
8481
|
* ```
|
|
8089
8482
|
*
|
|
8090
8483
|
*/
|
|
8091
|
-
declare function fetchPrices(client: BaseClient, request: FetchPricesRequest): Promise<Prices>;
|
|
8484
|
+
declare function fetchPrices(client: BaseClient, request: FetchPricesRequest, options?: RequestOptions): Promise<Prices>;
|
|
8092
8485
|
type FetchOrderBookRequest = {
|
|
8093
8486
|
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
8094
8487
|
assetId: string;
|
|
@@ -8098,9 +8491,9 @@ type FetchOrderBookRequest = {
|
|
|
8098
8491
|
/** @deprecated Use `assetId`. */
|
|
8099
8492
|
tokenId: string;
|
|
8100
8493
|
};
|
|
8101
|
-
type FetchOrderBookError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8494
|
+
type FetchOrderBookError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8102
8495
|
declare const FetchOrderBookError: {
|
|
8103
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8496
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
8104
8497
|
};
|
|
8105
8498
|
/**
|
|
8106
8499
|
* Fetches the current order book for an exchange asset.
|
|
@@ -8120,7 +8513,7 @@ declare const FetchOrderBookError: {
|
|
|
8120
8513
|
* // orderBook.bids / orderBook.asks
|
|
8121
8514
|
* ```
|
|
8122
8515
|
*/
|
|
8123
|
-
declare function fetchOrderBook(client: BaseClient, request: FetchOrderBookRequest): Promise<OrderBook>;
|
|
8516
|
+
declare function fetchOrderBook(client: BaseClient, request: FetchOrderBookRequest, options?: RequestOptions): Promise<OrderBook>;
|
|
8124
8517
|
type FetchOrderBooksRequest = Array<{
|
|
8125
8518
|
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
8126
8519
|
assetId: string;
|
|
@@ -8130,9 +8523,9 @@ type FetchOrderBooksRequest = Array<{
|
|
|
8130
8523
|
/** @deprecated Use `assetId`. */
|
|
8131
8524
|
tokenId: string;
|
|
8132
8525
|
}>;
|
|
8133
|
-
type FetchOrderBooksError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8526
|
+
type FetchOrderBooksError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8134
8527
|
declare const FetchOrderBooksError: {
|
|
8135
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8528
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
8136
8529
|
};
|
|
8137
8530
|
/**
|
|
8138
8531
|
* Fetches order books for multiple exchange assets.
|
|
@@ -8154,7 +8547,7 @@ declare const FetchOrderBooksError: {
|
|
|
8154
8547
|
* // books: OrderBook[]
|
|
8155
8548
|
* ```
|
|
8156
8549
|
*/
|
|
8157
|
-
declare function fetchOrderBooks(client: BaseClient, request: FetchOrderBooksRequest): Promise<OrderBook[]>;
|
|
8550
|
+
declare function fetchOrderBooks(client: BaseClient, request: FetchOrderBooksRequest, options?: RequestOptions): Promise<OrderBook[]>;
|
|
8158
8551
|
type FetchSpreadRequest = {
|
|
8159
8552
|
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
8160
8553
|
assetId: string;
|
|
@@ -8164,9 +8557,9 @@ type FetchSpreadRequest = {
|
|
|
8164
8557
|
/** @deprecated Use `assetId`. */
|
|
8165
8558
|
tokenId: string;
|
|
8166
8559
|
};
|
|
8167
|
-
type FetchSpreadError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8560
|
+
type FetchSpreadError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8168
8561
|
declare const FetchSpreadError: {
|
|
8169
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8562
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
8170
8563
|
};
|
|
8171
8564
|
/**
|
|
8172
8565
|
* Fetches the spread for an exchange asset as a decimal string.
|
|
@@ -8187,7 +8580,7 @@ declare const FetchSpreadError: {
|
|
|
8187
8580
|
* ```
|
|
8188
8581
|
*
|
|
8189
8582
|
*/
|
|
8190
|
-
declare function fetchSpread(client: BaseClient, request: FetchSpreadRequest): Promise<DecimalString>;
|
|
8583
|
+
declare function fetchSpread(client: BaseClient, request: FetchSpreadRequest, options?: RequestOptions): Promise<DecimalString>;
|
|
8191
8584
|
type FetchSpreadsRequest = Array<{
|
|
8192
8585
|
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
8193
8586
|
assetId: string;
|
|
@@ -8197,9 +8590,9 @@ type FetchSpreadsRequest = Array<{
|
|
|
8197
8590
|
/** @deprecated Use `assetId`. */
|
|
8198
8591
|
tokenId: string;
|
|
8199
8592
|
}>;
|
|
8200
|
-
type FetchSpreadsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8593
|
+
type FetchSpreadsError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8201
8594
|
declare const FetchSpreadsError: {
|
|
8202
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8595
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
8203
8596
|
};
|
|
8204
8597
|
/**
|
|
8205
8598
|
* Fetches spreads for multiple exchange assets as an asset ID keyed lookup.
|
|
@@ -8222,7 +8615,7 @@ declare const FetchSpreadsError: {
|
|
|
8222
8615
|
* ```
|
|
8223
8616
|
*
|
|
8224
8617
|
*/
|
|
8225
|
-
declare function fetchSpreads(client: BaseClient, request: FetchSpreadsRequest): Promise<Spreads>;
|
|
8618
|
+
declare function fetchSpreads(client: BaseClient, request: FetchSpreadsRequest, options?: RequestOptions): Promise<Spreads>;
|
|
8226
8619
|
type FetchLastTradePriceRequest = {
|
|
8227
8620
|
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
8228
8621
|
assetId: string;
|
|
@@ -8232,9 +8625,9 @@ type FetchLastTradePriceRequest = {
|
|
|
8232
8625
|
/** @deprecated Use `assetId`. */
|
|
8233
8626
|
tokenId: string;
|
|
8234
8627
|
};
|
|
8235
|
-
type FetchLastTradePriceError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8628
|
+
type FetchLastTradePriceError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8236
8629
|
declare const FetchLastTradePriceError: {
|
|
8237
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8630
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
8238
8631
|
};
|
|
8239
8632
|
/**
|
|
8240
8633
|
* Fetches the last traded price for an exchange asset.
|
|
@@ -8257,7 +8650,7 @@ declare const FetchLastTradePriceError: {
|
|
|
8257
8650
|
* ```
|
|
8258
8651
|
*
|
|
8259
8652
|
*/
|
|
8260
|
-
declare function fetchLastTradePrice(client: BaseClient, request: FetchLastTradePriceRequest): Promise<LastTradePrice | null>;
|
|
8653
|
+
declare function fetchLastTradePrice(client: BaseClient, request: FetchLastTradePriceRequest, options?: RequestOptions): Promise<LastTradePrice | null>;
|
|
8261
8654
|
type FetchLastTradePricesRequest = Array<{
|
|
8262
8655
|
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
8263
8656
|
assetId: string;
|
|
@@ -8267,9 +8660,9 @@ type FetchLastTradePricesRequest = Array<{
|
|
|
8267
8660
|
/** @deprecated Use `assetId`. */
|
|
8268
8661
|
tokenId: string;
|
|
8269
8662
|
}>;
|
|
8270
|
-
type FetchLastTradePricesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8663
|
+
type FetchLastTradePricesError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8271
8664
|
declare const FetchLastTradePricesError: {
|
|
8272
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8665
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
8273
8666
|
};
|
|
8274
8667
|
/**
|
|
8275
8668
|
* Fetches last traded prices for multiple exchange assets.
|
|
@@ -8291,15 +8684,15 @@ declare const FetchLastTradePricesError: {
|
|
|
8291
8684
|
* ```
|
|
8292
8685
|
*
|
|
8293
8686
|
*/
|
|
8294
|
-
declare function fetchLastTradePrices(client: BaseClient, request: FetchLastTradePricesRequest): Promise<LastTradePriceForAsset[]>;
|
|
8687
|
+
declare function fetchLastTradePrices(client: BaseClient, request: FetchLastTradePricesRequest, options?: RequestOptions): Promise<LastTradePriceForAsset[]>;
|
|
8295
8688
|
declare const ListCurrentRewardsRequestSchema: z.ZodDefault<z.ZodObject<{
|
|
8296
8689
|
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
8297
8690
|
sponsored: z.ZodOptional<z.ZodBoolean>;
|
|
8298
8691
|
}, z.core.$strip>>;
|
|
8299
8692
|
type ListCurrentRewardsRequest = z.input<typeof ListCurrentRewardsRequestSchema>;
|
|
8300
|
-
type ListCurrentRewardsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8693
|
+
type ListCurrentRewardsError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8301
8694
|
declare const ListCurrentRewardsError: {
|
|
8302
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8695
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
8303
8696
|
};
|
|
8304
8697
|
/**
|
|
8305
8698
|
* Lists current active market rewards.
|
|
@@ -8333,16 +8726,16 @@ declare const ListCurrentRewardsError: {
|
|
|
8333
8726
|
* }
|
|
8334
8727
|
* ```
|
|
8335
8728
|
*/
|
|
8336
|
-
declare function listCurrentRewards(client: BaseClient, request?: ListCurrentRewardsRequest): Paginated<CurrentReward[]>;
|
|
8729
|
+
declare function listCurrentRewards(client: BaseClient, request?: ListCurrentRewardsRequest, options?: RequestOptions): Paginated<CurrentReward[]>;
|
|
8337
8730
|
declare const ListMarketRewardsRequestSchema: z.ZodObject<{
|
|
8338
8731
|
conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
8339
8732
|
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
8340
8733
|
sponsored: z.ZodOptional<z.ZodBoolean>;
|
|
8341
8734
|
}, z.core.$strip>;
|
|
8342
8735
|
type ListMarketRewardsRequest = z.input<typeof ListMarketRewardsRequestSchema>;
|
|
8343
|
-
type ListMarketRewardsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8736
|
+
type ListMarketRewardsError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8344
8737
|
declare const ListMarketRewardsError: {
|
|
8345
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8738
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
8346
8739
|
};
|
|
8347
8740
|
/**
|
|
8348
8741
|
* Lists reward configurations for a market.
|
|
@@ -8382,7 +8775,62 @@ declare const ListMarketRewardsError: {
|
|
|
8382
8775
|
* }
|
|
8383
8776
|
* ```
|
|
8384
8777
|
*/
|
|
8385
|
-
declare function listMarketRewards(client: BaseClient, request: ListMarketRewardsRequest): Paginated<MarketReward[]>;
|
|
8778
|
+
declare function listMarketRewards(client: BaseClient, request: ListMarketRewardsRequest, options?: RequestOptions): Paginated<MarketReward[]>;
|
|
8779
|
+
declare const ListRewardMarketsRequestSchema: z.ZodObject<{
|
|
8780
|
+
query: z.ZodOptional<z.ZodString>;
|
|
8781
|
+
tagSlugs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8782
|
+
marketId: z.ZodOptional<z.ZodNumber>;
|
|
8783
|
+
eventIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
8784
|
+
eventTitle: z.ZodOptional<z.ZodString>;
|
|
8785
|
+
orderBy: z.ZodOptional<z.ZodEnum<typeof RewardMarketSort>>;
|
|
8786
|
+
sortDirection: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.SortDirection>>;
|
|
8787
|
+
minVolume24hr: z.ZodOptional<z.ZodNumber>;
|
|
8788
|
+
maxVolume24hr: z.ZodOptional<z.ZodNumber>;
|
|
8789
|
+
minSpread: z.ZodOptional<z.ZodNumber>;
|
|
8790
|
+
maxSpread: z.ZodOptional<z.ZodNumber>;
|
|
8791
|
+
minPrice: z.ZodOptional<z.ZodNumber>;
|
|
8792
|
+
maxPrice: z.ZodOptional<z.ZodNumber>;
|
|
8793
|
+
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
8794
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
8795
|
+
}, z.core.$strip>;
|
|
8796
|
+
type ListRewardMarketsRequest = z.input<typeof ListRewardMarketsRequestSchema>;
|
|
8797
|
+
type ListRewardMarketsError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8798
|
+
declare const ListRewardMarketsError: {
|
|
8799
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
8800
|
+
};
|
|
8801
|
+
/**
|
|
8802
|
+
* Lists active markets with reward configurations and discovery metadata.
|
|
8803
|
+
* Configurations may be empty. Positive range bounds are min-exclusive and max-inclusive; zero disables a bound.
|
|
8804
|
+
* Pages default to 100 items, with a maximum of 500. Without orderBy the order is unspecified; with it sortDirection defaults to ASC.
|
|
8805
|
+
* @throws {@link ListRewardMarketsError} Thrown on failure.
|
|
8806
|
+
* @example
|
|
8807
|
+
* ```ts
|
|
8808
|
+
* for await (const page of listRewardMarkets(client, { query: 'sports' })) {
|
|
8809
|
+
* console.log(page.items);
|
|
8810
|
+
* }
|
|
8811
|
+
* ```
|
|
8812
|
+
*/
|
|
8813
|
+
declare function listRewardMarkets(client: BaseClient, request?: ListRewardMarketsRequest, options?: RequestOptions): Paginated<RewardMarket[]>;
|
|
8814
|
+
declare const FetchCurrentRebatesRequestSchema: z.ZodObject<{
|
|
8815
|
+
date: z.ZodISODate;
|
|
8816
|
+
makerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
|
|
8817
|
+
}, z.core.$strip>;
|
|
8818
|
+
type FetchCurrentRebatesRequest = z.input<typeof FetchCurrentRebatesRequestSchema>;
|
|
8819
|
+
type FetchCurrentRebatesError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8820
|
+
declare const FetchCurrentRebatesError: {
|
|
8821
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
8822
|
+
};
|
|
8823
|
+
/**
|
|
8824
|
+
* Fetches maker fee rebates for a calendar day as a direct collection.
|
|
8825
|
+
* Amounts are decimal strings in USDC units. No authentication is required.
|
|
8826
|
+
* Returns an empty array when the maker has no rebates for the date.
|
|
8827
|
+
* @throws {@link FetchCurrentRebatesError} Thrown on failure.
|
|
8828
|
+
* @example
|
|
8829
|
+
* ```ts
|
|
8830
|
+
* const rebates = await fetchCurrentRebates(client, { date: '2026-10-06', makerAddress });
|
|
8831
|
+
* ```
|
|
8832
|
+
*/
|
|
8833
|
+
declare function fetchCurrentRebates(client: BaseClient, request: FetchCurrentRebatesRequest, options?: RequestOptions): Promise<RebatedFee[]>;
|
|
8386
8834
|
|
|
8387
8835
|
type PlanCollateralReturnError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError;
|
|
8388
8836
|
declare const PlanCollateralReturnError: {
|
|
@@ -8470,9 +8918,9 @@ declare const ListCommentsByUserAddressRequestSchema: z.ZodObject<{
|
|
|
8470
8918
|
type ListCommentsRequest = z.input<typeof ListCommentsRequestSchema>;
|
|
8471
8919
|
type FetchCommentsByIdRequest = z.input<typeof FetchCommentsByIdRequestSchema>;
|
|
8472
8920
|
type ListCommentsByUserAddressRequest = z.input<typeof ListCommentsByUserAddressRequestSchema>;
|
|
8473
|
-
type ListCommentsError = PaginationLimitError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8921
|
+
type ListCommentsError = RequestAbortedError | PaginationLimitError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8474
8922
|
declare const ListCommentsError: {
|
|
8475
|
-
isError(error: unknown): error is TransportError | UserInputError | PaginationLimitError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8923
|
+
isError(error: unknown): error is TransportError | UserInputError | PaginationLimitError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
8476
8924
|
};
|
|
8477
8925
|
/**
|
|
8478
8926
|
* Lists comments for an event or series.
|
|
@@ -8532,10 +8980,10 @@ declare const ListCommentsError: {
|
|
|
8532
8980
|
* }
|
|
8533
8981
|
* ```
|
|
8534
8982
|
*/
|
|
8535
|
-
declare function listComments(client: BaseClient, request: ListCommentsRequest): Paginated<Comment[]>;
|
|
8536
|
-
type FetchCommentsByIdError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8983
|
+
declare function listComments(client: BaseClient, request: ListCommentsRequest, options?: RequestOptions): Paginated<Comment[]>;
|
|
8984
|
+
type FetchCommentsByIdError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8537
8985
|
declare const FetchCommentsByIdError: {
|
|
8538
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8986
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
8539
8987
|
};
|
|
8540
8988
|
/**
|
|
8541
8989
|
* Fetches a comment thread by comment id.
|
|
@@ -8556,10 +9004,10 @@ declare const FetchCommentsByIdError: {
|
|
|
8556
9004
|
* // thread: Comment[]
|
|
8557
9005
|
* ```
|
|
8558
9006
|
*/
|
|
8559
|
-
declare function fetchCommentsById(client: BaseClient, request: FetchCommentsByIdRequest): Promise<Comment[]>;
|
|
8560
|
-
type ListCommentsByUserAddressError = PaginationLimitError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9007
|
+
declare function fetchCommentsById(client: BaseClient, request: FetchCommentsByIdRequest, options?: RequestOptions): Promise<Comment[]>;
|
|
9008
|
+
type ListCommentsByUserAddressError = RequestAbortedError | PaginationLimitError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8561
9009
|
declare const ListCommentsByUserAddressError: {
|
|
8562
|
-
isError(error: unknown): error is TransportError | UserInputError | PaginationLimitError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
9010
|
+
isError(error: unknown): error is TransportError | UserInputError | PaginationLimitError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
8563
9011
|
};
|
|
8564
9012
|
/**
|
|
8565
9013
|
* Lists comments written by a wallet address.
|
|
@@ -8611,11 +9059,11 @@ declare const ListCommentsByUserAddressError: {
|
|
|
8611
9059
|
* }
|
|
8612
9060
|
* ```
|
|
8613
9061
|
*/
|
|
8614
|
-
declare function listCommentsByUserAddress(client: BaseClient, request: ListCommentsByUserAddressRequest): Paginated<Comment[]>;
|
|
9062
|
+
declare function listCommentsByUserAddress(client: BaseClient, request: ListCommentsByUserAddressRequest, options?: RequestOptions): Paginated<Comment[]>;
|
|
8615
9063
|
|
|
8616
9064
|
declare const ListEventsRequestSchema: z.ZodObject<{
|
|
8617
9065
|
ascending: z.ZodOptional<z.ZodBoolean>;
|
|
8618
|
-
closed: z.ZodDefault<z.ZodBoolean
|
|
9066
|
+
closed: z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"any">]>>;
|
|
8619
9067
|
cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
|
|
8620
9068
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
8621
9069
|
cyom: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -8659,6 +9107,7 @@ declare const ListEventsRequestSchema: z.ZodObject<{
|
|
|
8659
9107
|
}>>;
|
|
8660
9108
|
tagSlug: z.ZodOptional<z.ZodString>;
|
|
8661
9109
|
titleSearch: z.ZodOptional<z.ZodString>;
|
|
9110
|
+
version: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<typeof ProtocolVersion>, z.ZodArray<z.ZodEnum<typeof ProtocolVersion>>]>>;
|
|
8662
9111
|
volumeMax: z.ZodOptional<z.ZodNumber>;
|
|
8663
9112
|
volumeMin: z.ZodOptional<z.ZodNumber>;
|
|
8664
9113
|
}, z.core.$strip>;
|
|
@@ -8687,14 +9136,19 @@ declare const FetchEventTagsRequestSchema: z.ZodObject<{
|
|
|
8687
9136
|
id: z.ZodString;
|
|
8688
9137
|
}, z.core.$strip>;
|
|
8689
9138
|
type FetchEventTagsRequest = z.input<typeof FetchEventTagsRequestSchema>;
|
|
8690
|
-
type ListEventsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9139
|
+
type ListEventsError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8691
9140
|
declare const ListEventsError: {
|
|
8692
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
9141
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
8693
9142
|
};
|
|
8694
9143
|
/**
|
|
8695
9144
|
* Lists events.
|
|
8696
9145
|
*
|
|
8697
|
-
* Defaults to open events. Pass `closed: true`
|
|
9146
|
+
* Defaults to open events. Pass `closed: true` for closed events or
|
|
9147
|
+
* `closed: 'any'` for either state; no identifier filter is required.
|
|
9148
|
+
* Optionally filter by protocol with `version: ProtocolVersion.V1` or
|
|
9149
|
+
* `ProtocolVersion.V2`, or pass both in an array to include both protocols.
|
|
9150
|
+
* Arrays accept one or two values. Omitting `version` uses the current server
|
|
9151
|
+
* default of CTF events (v1).
|
|
8698
9152
|
*
|
|
8699
9153
|
* @remarks
|
|
8700
9154
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -8735,10 +9189,10 @@ declare const ListEventsError: {
|
|
|
8735
9189
|
* }
|
|
8736
9190
|
* ```
|
|
8737
9191
|
*/
|
|
8738
|
-
declare function listEvents(client: BaseClient, request?: ListEventsRequest): Paginated<Event[]>;
|
|
8739
|
-
type FetchEventError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9192
|
+
declare function listEvents(client: BaseClient, request?: ListEventsRequest, options?: RequestOptions): Paginated<Event[]>;
|
|
9193
|
+
type FetchEventError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8740
9194
|
declare const FetchEventError: {
|
|
8741
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
9195
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
8742
9196
|
};
|
|
8743
9197
|
/**
|
|
8744
9198
|
* Fetches an event.
|
|
@@ -8766,10 +9220,10 @@ declare const FetchEventError: {
|
|
|
8766
9220
|
* // event === Event
|
|
8767
9221
|
* ```
|
|
8768
9222
|
*/
|
|
8769
|
-
declare function fetchEvent(client: BaseClient, request: FetchEventRequest): Promise<Event>;
|
|
8770
|
-
type FetchEventTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9223
|
+
declare function fetchEvent(client: BaseClient, request: FetchEventRequest, options?: RequestOptions): Promise<Event>;
|
|
9224
|
+
type FetchEventTagsError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8771
9225
|
declare const FetchEventTagsError: {
|
|
8772
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
9226
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
8773
9227
|
};
|
|
8774
9228
|
/**
|
|
8775
9229
|
* Fetches an event's tags.
|
|
@@ -8789,7 +9243,7 @@ declare const FetchEventTagsError: {
|
|
|
8789
9243
|
* // tags: TagReference[]
|
|
8790
9244
|
* ```
|
|
8791
9245
|
*/
|
|
8792
|
-
declare function fetchEventTags(client: BaseClient, request: FetchEventTagsRequest): Promise<TagReference[]>;
|
|
9246
|
+
declare function fetchEventTags(client: BaseClient, request: FetchEventTagsRequest, options?: RequestOptions): Promise<TagReference[]>;
|
|
8793
9247
|
type FetchResolutionsByQuestionRequest = {
|
|
8794
9248
|
questionId: string;
|
|
8795
9249
|
conditionIds?: never;
|
|
@@ -8806,9 +9260,9 @@ type FetchResolutionsByEventRequest = {
|
|
|
8806
9260
|
eventIds: Array<number | string>;
|
|
8807
9261
|
};
|
|
8808
9262
|
type FetchResolutionsRequest = FetchResolutionsByQuestionRequest | FetchResolutionsByConditionRequest | FetchResolutionsByEventRequest;
|
|
8809
|
-
type FetchResolutionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9263
|
+
type FetchResolutionsError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8810
9264
|
declare const FetchResolutionsError: {
|
|
8811
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
9265
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
8812
9266
|
};
|
|
8813
9267
|
/**
|
|
8814
9268
|
* Fetches resolution lifecycle rows by question, condition, or event.
|
|
@@ -8834,14 +9288,14 @@ declare const FetchResolutionsError: {
|
|
|
8834
9288
|
* // resolutions: Resolution[]
|
|
8835
9289
|
* ```
|
|
8836
9290
|
*/
|
|
8837
|
-
declare function fetchResolutions(client: BaseClient, request: FetchResolutionsRequest): Promise<Resolution[]>;
|
|
9291
|
+
declare function fetchResolutions(client: BaseClient, request: FetchResolutionsRequest, options?: RequestOptions): Promise<Resolution[]>;
|
|
8838
9292
|
declare const FetchEventLiveVolumeRequestSchema: z.ZodObject<{
|
|
8839
9293
|
eventIds: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>, z.ZodTransform<_polymarket_bindings.EventId, string>>>, z.ZodTransform<_polymarket_bindings.EventId[], _polymarket_bindings.EventId[]>>;
|
|
8840
9294
|
}, z.core.$strip>;
|
|
8841
9295
|
type FetchEventLiveVolumeRequest = z.input<typeof FetchEventLiveVolumeRequestSchema>;
|
|
8842
|
-
type FetchEventLiveVolumeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9296
|
+
type FetchEventLiveVolumeError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8843
9297
|
declare const FetchEventLiveVolumeError: {
|
|
8844
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
9298
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
8845
9299
|
};
|
|
8846
9300
|
/**
|
|
8847
9301
|
* Fetches cumulative taker volume for one or more events.
|
|
@@ -8849,7 +9303,7 @@ declare const FetchEventLiveVolumeError: {
|
|
|
8849
9303
|
* Results contain one row per market, ordered by taker volume descending, and
|
|
8850
9304
|
* a total across all returned markets. Volume is measured in shares. Event IDs
|
|
8851
9305
|
* must be positive 32-bit integers. Transient rate limits are retried
|
|
8852
|
-
*
|
|
9306
|
+
* by default.
|
|
8853
9307
|
*
|
|
8854
9308
|
* @remarks
|
|
8855
9309
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -8866,7 +9320,7 @@ declare const FetchEventLiveVolumeError: {
|
|
|
8866
9320
|
* // volume: LiveVolume
|
|
8867
9321
|
* ```
|
|
8868
9322
|
*/
|
|
8869
|
-
declare function fetchEventLiveVolume(client: BaseClient, request: FetchEventLiveVolumeRequest): Promise<LiveVolume>;
|
|
9323
|
+
declare function fetchEventLiveVolume(client: BaseClient, request: FetchEventLiveVolumeRequest, options?: RequestOptions): Promise<LiveVolume>;
|
|
8870
9324
|
|
|
8871
9325
|
declare const ListBuilderLeaderboardRequestSchema: z.ZodObject<{
|
|
8872
9326
|
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
@@ -8874,9 +9328,9 @@ declare const ListBuilderLeaderboardRequestSchema: z.ZodObject<{
|
|
|
8874
9328
|
window: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.LeaderboardWindow>>;
|
|
8875
9329
|
}, z.core.$strip>;
|
|
8876
9330
|
type ListBuilderLeaderboardRequest = z.input<typeof ListBuilderLeaderboardRequestSchema>;
|
|
8877
|
-
type ListBuilderLeaderboardError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9331
|
+
type ListBuilderLeaderboardError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8878
9332
|
declare const ListBuilderLeaderboardError: {
|
|
8879
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
9333
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
8880
9334
|
};
|
|
8881
9335
|
/**
|
|
8882
9336
|
* Lists builder leaderboard rankings.
|
|
@@ -8884,7 +9338,7 @@ declare const ListBuilderLeaderboardError: {
|
|
|
8884
9338
|
* Builders are ranked by attributed share volume within `window`, which
|
|
8885
9339
|
* defaults to one day. `builderCode` is the stable identifier; names and
|
|
8886
9340
|
* profile images are display metadata. `pageSize` defaults to 100 (max 1000).
|
|
8887
|
-
* Transient rate limits are retried
|
|
9341
|
+
* Transient rate limits are retried by default.
|
|
8888
9342
|
*
|
|
8889
9343
|
* @remarks
|
|
8890
9344
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -8921,15 +9375,15 @@ declare const ListBuilderLeaderboardError: {
|
|
|
8921
9375
|
* }
|
|
8922
9376
|
* ```
|
|
8923
9377
|
*/
|
|
8924
|
-
declare function listBuilderLeaderboard(client: BaseClient, request?: ListBuilderLeaderboardRequest): Paginated<BuilderStanding[]>;
|
|
9378
|
+
declare function listBuilderLeaderboard(client: BaseClient, request?: ListBuilderLeaderboardRequest, options?: RequestOptions): Paginated<BuilderStanding[]>;
|
|
8925
9379
|
declare const FetchBuilderVolumeRequestSchema: z.ZodObject<{
|
|
8926
9380
|
interval: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.BuilderVolumeInterval>>;
|
|
8927
9381
|
bucketLimit: z.ZodOptional<z.ZodNumber>;
|
|
8928
9382
|
}, z.core.$strip>;
|
|
8929
9383
|
type FetchBuilderVolumeRequest = z.input<typeof FetchBuilderVolumeRequestSchema>;
|
|
8930
|
-
type FetchBuilderVolumeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9384
|
+
type FetchBuilderVolumeError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8931
9385
|
declare const FetchBuilderVolumeError: {
|
|
8932
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
9386
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
8933
9387
|
};
|
|
8934
9388
|
/**
|
|
8935
9389
|
* Fetches the per-builder volume time series.
|
|
@@ -8938,7 +9392,7 @@ declare const FetchBuilderVolumeError: {
|
|
|
8938
9392
|
* {@link BuilderVolumeInterval.Year} for one bucket per calendar year.
|
|
8939
9393
|
* `bucketLimit` returns that many complete recent buckets (default 30, max 90),
|
|
8940
9394
|
* not that many builder rows. Results are newest bucket first, and volume is
|
|
8941
|
-
* measured in shares. Transient rate limits are retried
|
|
9395
|
+
* measured in shares. Transient rate limits are retried by default.
|
|
8942
9396
|
*
|
|
8943
9397
|
* @remarks
|
|
8944
9398
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -8956,7 +9410,7 @@ declare const FetchBuilderVolumeError: {
|
|
|
8956
9410
|
* // volume: BuilderVolumePoint[]
|
|
8957
9411
|
* ```
|
|
8958
9412
|
*/
|
|
8959
|
-
declare function fetchBuilderVolume(client: BaseClient, request?: FetchBuilderVolumeRequest): Promise<BuilderVolumePoint[]>;
|
|
9413
|
+
declare function fetchBuilderVolume(client: BaseClient, request?: FetchBuilderVolumeRequest, options?: RequestOptions): Promise<BuilderVolumePoint[]>;
|
|
8960
9414
|
declare const ListTraderLeaderboardRequestSchema: z.ZodObject<{
|
|
8961
9415
|
category: z.ZodOptional<z.ZodString>;
|
|
8962
9416
|
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
@@ -8965,9 +9419,9 @@ declare const ListTraderLeaderboardRequestSchema: z.ZodObject<{
|
|
|
8965
9419
|
window: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.LeaderboardWindow>>;
|
|
8966
9420
|
}, z.core.$strip>;
|
|
8967
9421
|
type ListTraderLeaderboardRequest = z.input<typeof ListTraderLeaderboardRequestSchema>;
|
|
8968
|
-
type ListTraderLeaderboardError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9422
|
+
type ListTraderLeaderboardError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8969
9423
|
declare const ListTraderLeaderboardError: {
|
|
8970
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
9424
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
8971
9425
|
};
|
|
8972
9426
|
/**
|
|
8973
9427
|
* Lists trader leaderboard rankings.
|
|
@@ -9014,16 +9468,16 @@ declare const ListTraderLeaderboardError: {
|
|
|
9014
9468
|
* }
|
|
9015
9469
|
* ```
|
|
9016
9470
|
*/
|
|
9017
|
-
declare function listTraderLeaderboard(client: BaseClient, request?: ListTraderLeaderboardRequest): Paginated<TraderLeaderboardEntry[]>;
|
|
9471
|
+
declare function listTraderLeaderboard(client: BaseClient, request?: ListTraderLeaderboardRequest, options?: RequestOptions): Paginated<TraderLeaderboardEntry[]>;
|
|
9018
9472
|
declare const FetchTraderLeaderboardStandingRequestSchema: z.ZodObject<{
|
|
9019
9473
|
category: z.ZodOptional<z.ZodString>;
|
|
9020
9474
|
user: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
|
|
9021
9475
|
window: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.LeaderboardWindow>>;
|
|
9022
9476
|
}, z.core.$strip>;
|
|
9023
9477
|
type FetchTraderLeaderboardStandingRequest = z.input<typeof FetchTraderLeaderboardStandingRequestSchema>;
|
|
9024
|
-
type FetchTraderLeaderboardStandingError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9478
|
+
type FetchTraderLeaderboardStandingError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9025
9479
|
declare const FetchTraderLeaderboardStandingError: {
|
|
9026
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
9480
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
9027
9481
|
};
|
|
9028
9482
|
/**
|
|
9029
9483
|
* Fetches one trader's standing on both the PnL and volume boards.
|
|
@@ -9047,7 +9501,7 @@ declare const FetchTraderLeaderboardStandingError: {
|
|
|
9047
9501
|
* // standing: TraderLeaderboardStanding | null
|
|
9048
9502
|
* ```
|
|
9049
9503
|
*/
|
|
9050
|
-
declare function fetchTraderLeaderboardStanding(client: BaseClient, request: FetchTraderLeaderboardStandingRequest): Promise<TraderLeaderboardStanding | null>;
|
|
9504
|
+
declare function fetchTraderLeaderboardStanding(client: BaseClient, request: FetchTraderLeaderboardStandingRequest, options?: RequestOptions): Promise<TraderLeaderboardStanding | null>;
|
|
9051
9505
|
declare const ListBiggestWinnersRequestSchema: z.ZodObject<{
|
|
9052
9506
|
category: z.ZodOptional<z.ZodString>;
|
|
9053
9507
|
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
@@ -9055,9 +9509,9 @@ declare const ListBiggestWinnersRequestSchema: z.ZodObject<{
|
|
|
9055
9509
|
window: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.LeaderboardWindow>>;
|
|
9056
9510
|
}, z.core.$strip>;
|
|
9057
9511
|
type ListBiggestWinnersRequest = z.input<typeof ListBiggestWinnersRequestSchema>;
|
|
9058
|
-
type ListBiggestWinnersError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9512
|
+
type ListBiggestWinnersError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9059
9513
|
declare const ListBiggestWinnersError: {
|
|
9060
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
9514
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
9061
9515
|
};
|
|
9062
9516
|
/**
|
|
9063
9517
|
* Lists the largest individual winning positions.
|
|
@@ -9087,7 +9541,7 @@ declare const ListBiggestWinnersError: {
|
|
|
9087
9541
|
* }
|
|
9088
9542
|
* ```
|
|
9089
9543
|
*/
|
|
9090
|
-
declare function listBiggestWinners(client: BaseClient, request?: ListBiggestWinnersRequest): Paginated<BiggestWinner[]>;
|
|
9544
|
+
declare function listBiggestWinners(client: BaseClient, request?: ListBiggestWinnersRequest, options?: RequestOptions): Paginated<BiggestWinner[]>;
|
|
9091
9545
|
|
|
9092
9546
|
declare const ListMarketClarificationsRequestSchema: z.ZodObject<{
|
|
9093
9547
|
marketId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
@@ -9102,9 +9556,9 @@ declare const ListMarketClarificationsRequestSchema: z.ZodObject<{
|
|
|
9102
9556
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
9103
9557
|
}, z.core.$strip>;
|
|
9104
9558
|
type ListMarketClarificationsRequest = z.input<typeof ListMarketClarificationsRequestSchema>;
|
|
9105
|
-
type ListMarketClarificationsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9559
|
+
type ListMarketClarificationsError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9106
9560
|
declare const ListMarketClarificationsError: {
|
|
9107
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
9561
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
9108
9562
|
};
|
|
9109
9563
|
/**
|
|
9110
9564
|
* Lists market clarifications — official notes that resolve ambiguity in how a
|
|
@@ -9144,11 +9598,11 @@ declare const ListMarketClarificationsError: {
|
|
|
9144
9598
|
* }
|
|
9145
9599
|
* ```
|
|
9146
9600
|
*/
|
|
9147
|
-
declare function listMarketClarifications(client: BaseClient, request?: ListMarketClarificationsRequest): Paginated<MarketClarification[]>;
|
|
9601
|
+
declare function listMarketClarifications(client: BaseClient, request?: ListMarketClarificationsRequest, options?: RequestOptions): Paginated<MarketClarification[]>;
|
|
9148
9602
|
|
|
9149
9603
|
declare const ListMarketsRequestSchema: z.ZodObject<{
|
|
9150
9604
|
ascending: z.ZodOptional<z.ZodBoolean>;
|
|
9151
|
-
closed: z.ZodOptional<z.ZodBoolean
|
|
9605
|
+
closed: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"any">]>>;
|
|
9152
9606
|
clobTokenIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9153
9607
|
cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
|
|
9154
9608
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -9164,9 +9618,12 @@ declare const ListMarketsRequestSchema: z.ZodObject<{
|
|
|
9164
9618
|
liquidityNumMin: z.ZodOptional<z.ZodNumber>;
|
|
9165
9619
|
locale: z.ZodOptional<z.ZodString>;
|
|
9166
9620
|
order: z.ZodOptional<z.ZodString>;
|
|
9621
|
+
onchainEventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9167
9622
|
positionIds: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.PositionId, string>>>>;
|
|
9168
9623
|
questionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9169
9624
|
relatedTags: z.ZodOptional<z.ZodBoolean>;
|
|
9625
|
+
requestIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9626
|
+
resolutionStatus: z.ZodOptional<z.ZodEnum<typeof MarketResolutionStatus>>;
|
|
9170
9627
|
rfqEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
9171
9628
|
rewardsMinSize: z.ZodOptional<z.ZodNumber>;
|
|
9172
9629
|
slug: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -9179,6 +9636,7 @@ declare const ListMarketsRequestSchema: z.ZodObject<{
|
|
|
9179
9636
|
all: "all";
|
|
9180
9637
|
}>>;
|
|
9181
9638
|
umaResolutionStatus: z.ZodOptional<z.ZodString>;
|
|
9639
|
+
version: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<typeof ProtocolVersion>, z.ZodArray<z.ZodEnum<typeof ProtocolVersion>>]>>;
|
|
9182
9640
|
volumeNumMax: z.ZodOptional<z.ZodNumber>;
|
|
9183
9641
|
volumeNumMin: z.ZodOptional<z.ZodNumber>;
|
|
9184
9642
|
}, z.core.$strip>;
|
|
@@ -9201,19 +9659,29 @@ declare const FetchMarketTagsRequestSchema: z.ZodObject<{
|
|
|
9201
9659
|
id: z.ZodString;
|
|
9202
9660
|
}, z.core.$strip>;
|
|
9203
9661
|
type FetchMarketTagsRequest = z.input<typeof FetchMarketTagsRequestSchema>;
|
|
9204
|
-
type ListMarketsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9662
|
+
type ListMarketsError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9205
9663
|
declare const ListMarketsError: {
|
|
9206
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
9664
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
9207
9665
|
};
|
|
9208
9666
|
/**
|
|
9209
9667
|
* Lists markets.
|
|
9210
9668
|
*
|
|
9669
|
+
* Defaults to open markets. Pass `closed: true` for closed markets or
|
|
9670
|
+
* `closed: 'any'` for either state. The latter requires a non-empty `ids`,
|
|
9671
|
+
* `slug`, `clobTokenIds`, `positionIds`, `conditionIds`, or `questionIds` filter.
|
|
9672
|
+
*
|
|
9211
9673
|
* @remarks
|
|
9212
9674
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
9213
9675
|
*
|
|
9214
9676
|
* Legacy multi-outcome markets cannot be represented by the binary
|
|
9215
9677
|
* {@link Market} model and are omitted from results.
|
|
9216
9678
|
*
|
|
9679
|
+
* Select one protocol with `version`, or pass both protocol versions in an array.
|
|
9680
|
+
* Arrays accept one or two values. Omitting `version` uses the current server
|
|
9681
|
+
* default of CTF markets (v1). Filter v2 markets by `resolutionStatus`, `requestIds`, or
|
|
9682
|
+
* `onchainEventIds`. Each ID filter accepts at most 100 values. V1 markets
|
|
9683
|
+
* use the separate `umaResolutionStatus` filter.
|
|
9684
|
+
*
|
|
9217
9685
|
* @throws {@link ListMarketsError}
|
|
9218
9686
|
* Thrown on failure.
|
|
9219
9687
|
*
|
|
@@ -9246,16 +9714,16 @@ declare const ListMarketsError: {
|
|
|
9246
9714
|
* }
|
|
9247
9715
|
* ```
|
|
9248
9716
|
*/
|
|
9249
|
-
declare function listMarkets(client: BaseClient, request?: ListMarketsRequest): Paginated<Market[]>;
|
|
9717
|
+
declare function listMarkets(client: BaseClient, request?: ListMarketsRequest, options?: RequestOptions): Paginated<Market[]>;
|
|
9250
9718
|
declare const ListComboMarketsRequestSchema: z.ZodObject<{
|
|
9251
9719
|
cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
|
|
9252
9720
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
9253
9721
|
exclude: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.ConditionId, string>>>>;
|
|
9254
9722
|
}, z.core.$strip>;
|
|
9255
9723
|
type ListComboMarketsRequest = z.input<typeof ListComboMarketsRequestSchema>;
|
|
9256
|
-
type ListComboMarketsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9724
|
+
type ListComboMarketsError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9257
9725
|
declare const ListComboMarketsError: {
|
|
9258
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
9726
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
9259
9727
|
};
|
|
9260
9728
|
/**
|
|
9261
9729
|
* Lists markets available for Combos.
|
|
@@ -9290,10 +9758,10 @@ declare const ListComboMarketsError: {
|
|
|
9290
9758
|
* });
|
|
9291
9759
|
* ```
|
|
9292
9760
|
*/
|
|
9293
|
-
declare function listComboMarkets(client: BaseClient, request?: ListComboMarketsRequest): Paginated<ComboMarket[]>;
|
|
9294
|
-
type FetchMarketError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9761
|
+
declare function listComboMarkets(client: BaseClient, request?: ListComboMarketsRequest, options?: RequestOptions): Paginated<ComboMarket[]>;
|
|
9762
|
+
type FetchMarketError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9295
9763
|
declare const FetchMarketError: {
|
|
9296
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
9764
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
9297
9765
|
};
|
|
9298
9766
|
/**
|
|
9299
9767
|
* Fetches a market.
|
|
@@ -9325,10 +9793,10 @@ declare const FetchMarketError: {
|
|
|
9325
9793
|
* // market === Market
|
|
9326
9794
|
* ```
|
|
9327
9795
|
*/
|
|
9328
|
-
declare function fetchMarket(client: BaseClient, request: FetchMarketRequest): Promise<Market>;
|
|
9329
|
-
type FetchMarketTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9796
|
+
declare function fetchMarket(client: BaseClient, request: FetchMarketRequest, options?: RequestOptions): Promise<Market>;
|
|
9797
|
+
type FetchMarketTagsError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9330
9798
|
declare const FetchMarketTagsError: {
|
|
9331
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
9799
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
9332
9800
|
};
|
|
9333
9801
|
/**
|
|
9334
9802
|
* Fetches a market's tags.
|
|
@@ -9348,7 +9816,7 @@ declare const FetchMarketTagsError: {
|
|
|
9348
9816
|
* // tags: TagReference[]
|
|
9349
9817
|
* ```
|
|
9350
9818
|
*/
|
|
9351
|
-
declare function fetchMarketTags(client: BaseClient, request: FetchMarketTagsRequest): Promise<TagReference[]>;
|
|
9819
|
+
declare function fetchMarketTags(client: BaseClient, request: FetchMarketTagsRequest, options?: RequestOptions): Promise<TagReference[]>;
|
|
9352
9820
|
declare const ListMarketHoldersRequestSchema: z.ZodObject<{
|
|
9353
9821
|
conditionIds: z.ZodPipe<z.ZodArray<z.ZodType<_polymarket_bindings.ConditionId, string, z.core.$ZodTypeInternals<_polymarket_bindings.ConditionId, string>>>, z.ZodTransform<_polymarket_bindings.ConditionId[], _polymarket_bindings.ConditionId[]>>;
|
|
9354
9822
|
cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
|
|
@@ -9357,9 +9825,9 @@ declare const ListMarketHoldersRequestSchema: z.ZodObject<{
|
|
|
9357
9825
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
9358
9826
|
}, z.core.$strip>;
|
|
9359
9827
|
type ListMarketHoldersRequest = z.input<typeof ListMarketHoldersRequestSchema>;
|
|
9360
|
-
type ListMarketHoldersError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9828
|
+
type ListMarketHoldersError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9361
9829
|
declare const ListMarketHoldersError: {
|
|
9362
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
9830
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
9363
9831
|
};
|
|
9364
9832
|
/**
|
|
9365
9833
|
* Lists top holders grouped by outcome for one or more markets.
|
|
@@ -9371,7 +9839,7 @@ declare const ListMarketHoldersError: {
|
|
|
9371
9839
|
* equivalent to 1,000,000 base units.
|
|
9372
9840
|
* Amounts are net holdings by default. `includePnl` switches to per-outcome
|
|
9373
9841
|
* gross holdings and adds position economics; it requires one condition ID and
|
|
9374
|
-
* a page size of at most 100. Transient rate limits are retried
|
|
9842
|
+
* a page size of at most 100. Transient rate limits are retried by default.
|
|
9375
9843
|
*
|
|
9376
9844
|
* @remarks
|
|
9377
9845
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -9391,7 +9859,7 @@ declare const ListMarketHoldersError: {
|
|
|
9391
9859
|
* }
|
|
9392
9860
|
* ```
|
|
9393
9861
|
*/
|
|
9394
|
-
declare function listMarketHolders(client: BaseClient, request: ListMarketHoldersRequest): Paginated<MetaHolder[]>;
|
|
9862
|
+
declare function listMarketHolders(client: BaseClient, request: ListMarketHoldersRequest, options?: RequestOptions): Paginated<MetaHolder[]>;
|
|
9395
9863
|
type ListPriceHistoryRequest = {
|
|
9396
9864
|
assetId: string;
|
|
9397
9865
|
interval: PriceHistoryInterval;
|
|
@@ -9420,9 +9888,9 @@ type ListPriceHistoryRequest = {
|
|
|
9420
9888
|
cursor?: never;
|
|
9421
9889
|
pageSize?: never;
|
|
9422
9890
|
};
|
|
9423
|
-
type ListPriceHistoryError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9891
|
+
type ListPriceHistoryError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9424
9892
|
declare const ListPriceHistoryError: {
|
|
9425
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
9893
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
9426
9894
|
};
|
|
9427
9895
|
/**
|
|
9428
9896
|
* Lists historical price observations for an exchange asset.
|
|
@@ -9437,7 +9905,7 @@ declare const ListPriceHistoryError: {
|
|
|
9437
9905
|
* strings and returned timestamps are Unix epoch milliseconds. Series pages
|
|
9438
9906
|
* are ordered oldest first; an `asOf` request returns at most one item. Series
|
|
9439
9907
|
* page sizes default to and are capped at 10,000 points. Transient rate limits
|
|
9440
|
-
* are retried
|
|
9908
|
+
* are retried by default.
|
|
9441
9909
|
*
|
|
9442
9910
|
* @remarks
|
|
9443
9911
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -9458,14 +9926,14 @@ declare const ListPriceHistoryError: {
|
|
|
9458
9926
|
* }
|
|
9459
9927
|
* ```
|
|
9460
9928
|
*/
|
|
9461
|
-
declare function listPriceHistory(client: BaseClient, request: ListPriceHistoryRequest): Paginated<PriceHistoryPoint[]>;
|
|
9929
|
+
declare function listPriceHistory(client: BaseClient, request: ListPriceHistoryRequest, options?: RequestOptions): Paginated<PriceHistoryPoint[]>;
|
|
9462
9930
|
declare const FetchOpenInterestRequestSchema: z.ZodObject<{
|
|
9463
9931
|
conditionIds: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodType<_polymarket_bindings.ConditionId, string, z.core.$ZodTypeInternals<_polymarket_bindings.ConditionId, string>>>, z.ZodTransform<_polymarket_bindings.ConditionId[], _polymarket_bindings.ConditionId[]>>>;
|
|
9464
9932
|
}, z.core.$strip>;
|
|
9465
9933
|
type FetchOpenInterestRequest = z.input<typeof FetchOpenInterestRequestSchema>;
|
|
9466
|
-
type FetchOpenInterestError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9934
|
+
type FetchOpenInterestError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9467
9935
|
declare const FetchOpenInterestError: {
|
|
9468
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
9936
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
9469
9937
|
};
|
|
9470
9938
|
/**
|
|
9471
9939
|
* Fetches priced gross open interest for selected markets or globally.
|
|
@@ -9474,7 +9942,7 @@ declare const FetchOpenInterestError: {
|
|
|
9474
9942
|
* the global aggregate, whose `conditionId` is `null`. A requested servable
|
|
9475
9943
|
* market with no holdings has a zero value; an absent row means the market is
|
|
9476
9944
|
* not servable. Values are in USDC. Transient rate limits are retried
|
|
9477
|
-
*
|
|
9945
|
+
* by default.
|
|
9478
9946
|
*
|
|
9479
9947
|
* @remarks
|
|
9480
9948
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -9491,12 +9959,150 @@ declare const FetchOpenInterestError: {
|
|
|
9491
9959
|
* // openInterest: OpenInterest[]
|
|
9492
9960
|
* ```
|
|
9493
9961
|
*/
|
|
9494
|
-
declare function fetchOpenInterest(client: BaseClient, request?: FetchOpenInterestRequest): Promise<OpenInterest[]>;
|
|
9962
|
+
declare function fetchOpenInterest(client: BaseClient, request?: FetchOpenInterestRequest, options?: RequestOptions): Promise<OpenInterest[]>;
|
|
9495
9963
|
|
|
9496
|
-
|
|
9497
|
-
|
|
9964
|
+
/** A neg-risk operation yields an EOA transaction or the wallet's gasless signing steps. */
|
|
9965
|
+
type NegRiskWorkflow = AsyncGenerator<GaslessWorkflowRequest | SendConvertTransactionRequest | SendHorizontalSplitTransactionRequest | SendHorizontalMergeTransactionRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
|
|
9966
|
+
/** Signing steps for a neg-risk conversion. */
|
|
9967
|
+
type ConvertWorkflow = AsyncGenerator<GaslessWorkflowRequest | SendConvertTransactionRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
|
|
9968
|
+
type PrepareConvertRequest = {
|
|
9969
|
+
/** Market's protocol V2 neg-risk condition ID: bytes31 or zero-padded bytes32. */
|
|
9970
|
+
conditionId: string;
|
|
9971
|
+
/** Positive explicit amount in six-decimal base units (1_000_000n = one unit). */
|
|
9972
|
+
amount: bigint;
|
|
9973
|
+
/** Optional transaction metadata for gasless wallets. */
|
|
9974
|
+
metadata?: string;
|
|
9975
|
+
};
|
|
9976
|
+
type PrepareConvertError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9977
|
+
declare const PrepareConvertError: {
|
|
9498
9978
|
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
9499
9979
|
};
|
|
9980
|
+
/**
|
|
9981
|
+
* Prepares a workflow: Converts NO into YES for all other conditions.
|
|
9982
|
+
* Derives the event and NO condition index from the market's condition ID.
|
|
9983
|
+
* Includes Other unless converting NO(Other).
|
|
9984
|
+
* Requires PositionManager operator approval for the Router. No approvals are submitted automatically.
|
|
9985
|
+
* Preparing does not sign or submit; advance the returned workflow to execute it.
|
|
9986
|
+
* @throws {@link PrepareConvertError} Thrown on failure, including while advancing the workflow.
|
|
9987
|
+
*/
|
|
9988
|
+
declare function prepareConvert(client: BaseSecureClient, request: PrepareConvertRequest): Promise<ConvertWorkflow>;
|
|
9989
|
+
type ConvertError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9990
|
+
declare const ConvertError: {
|
|
9991
|
+
isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
9992
|
+
};
|
|
9993
|
+
/**
|
|
9994
|
+
* Converts NO into YES for all other conditions.
|
|
9995
|
+
* Derives the event and NO condition index from the market's condition ID.
|
|
9996
|
+
* Includes Other unless converting NO(Other).
|
|
9997
|
+
* Requires PositionManager operator approval for the Router. No approvals are submitted automatically.
|
|
9998
|
+
* Signs and submits using the authenticated wallet; call the returned handle's wait() to confirm.
|
|
9999
|
+
* @throws {@link ConvertError} Thrown on failure.
|
|
10000
|
+
*/
|
|
10001
|
+
declare function convert(client: BaseSecureClient, request: PrepareConvertRequest): Promise<TransactionHandle>;
|
|
10002
|
+
/** Signing steps for a horizontal split. */
|
|
10003
|
+
type HorizontalSplitWorkflow = AsyncGenerator<GaslessWorkflowRequest | SendHorizontalSplitTransactionRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
|
|
10004
|
+
type PrepareHorizontalSplitRequest = {
|
|
10005
|
+
/** Any market condition in the protocol V2 neg-risk event: bytes31 or zero-padded bytes32. */
|
|
10006
|
+
conditionId: string;
|
|
10007
|
+
/** Positive explicit amount in six-decimal base units (1_000_000n = one unit). */
|
|
10008
|
+
amount: bigint;
|
|
10009
|
+
/** Optional transaction metadata for gasless wallets. */
|
|
10010
|
+
metadata?: string;
|
|
10011
|
+
};
|
|
10012
|
+
type PrepareHorizontalSplitError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
10013
|
+
declare const PrepareHorizontalSplitError: {
|
|
10014
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
10015
|
+
};
|
|
10016
|
+
/**
|
|
10017
|
+
* Prepares a workflow: Splits pUSD into YES for every condition, including Other.
|
|
10018
|
+
* Uses the event containing the supplied market condition.
|
|
10019
|
+
* Requires pUSD spending approval for the Router. No approvals are submitted automatically.
|
|
10020
|
+
* Preparing does not sign or submit; advance the returned workflow to execute it.
|
|
10021
|
+
* @throws {@link PrepareHorizontalSplitError} Thrown on failure, including while advancing the workflow.
|
|
10022
|
+
*/
|
|
10023
|
+
declare function prepareHorizontalSplit(client: BaseSecureClient, request: PrepareHorizontalSplitRequest): Promise<HorizontalSplitWorkflow>;
|
|
10024
|
+
type HorizontalSplitError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
10025
|
+
declare const HorizontalSplitError: {
|
|
10026
|
+
isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
10027
|
+
};
|
|
10028
|
+
/**
|
|
10029
|
+
* Splits pUSD into YES for every condition, including Other.
|
|
10030
|
+
* Uses the event containing the supplied market condition.
|
|
10031
|
+
* Requires pUSD spending approval for the Router. No approvals are submitted automatically.
|
|
10032
|
+
* Signs and submits using the authenticated wallet; call the returned handle's wait() to confirm.
|
|
10033
|
+
* @throws {@link HorizontalSplitError} Thrown on failure.
|
|
10034
|
+
*/
|
|
10035
|
+
declare function horizontalSplit(client: BaseSecureClient, request: PrepareHorizontalSplitRequest): Promise<TransactionHandle>;
|
|
10036
|
+
/** Signing steps for a horizontal merge. */
|
|
10037
|
+
type HorizontalMergeWorkflow = AsyncGenerator<GaslessWorkflowRequest | SendHorizontalMergeTransactionRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
|
|
10038
|
+
type PrepareHorizontalMergeRequest = {
|
|
10039
|
+
/** Any market condition in the protocol V2 neg-risk event: bytes31 or zero-padded bytes32. */
|
|
10040
|
+
conditionId: string;
|
|
10041
|
+
/** Positive explicit amount in six-decimal base units (1_000_000n = one unit). */
|
|
10042
|
+
amount: bigint;
|
|
10043
|
+
/** Optional transaction metadata for gasless wallets. */
|
|
10044
|
+
metadata?: string;
|
|
10045
|
+
};
|
|
10046
|
+
type PrepareHorizontalMergeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
10047
|
+
declare const PrepareHorizontalMergeError: {
|
|
10048
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
10049
|
+
};
|
|
10050
|
+
/**
|
|
10051
|
+
* Prepares a workflow: Merges equal YES amounts from every condition, including Other, into pUSD.
|
|
10052
|
+
* Uses the event containing the supplied market condition.
|
|
10053
|
+
* Requires PositionManager operator approval for the Router. No approvals are submitted automatically.
|
|
10054
|
+
* Preparing does not sign or submit; advance the returned workflow to execute it.
|
|
10055
|
+
* @throws {@link PrepareHorizontalMergeError} Thrown on failure, including while advancing the workflow.
|
|
10056
|
+
*/
|
|
10057
|
+
declare function prepareHorizontalMerge(client: BaseSecureClient, request: PrepareHorizontalMergeRequest): Promise<HorizontalMergeWorkflow>;
|
|
10058
|
+
type HorizontalMergeError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
10059
|
+
declare const HorizontalMergeError: {
|
|
10060
|
+
isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
10061
|
+
};
|
|
10062
|
+
/**
|
|
10063
|
+
* Merges equal YES amounts from every condition, including Other, into pUSD.
|
|
10064
|
+
* Uses the event containing the supplied market condition.
|
|
10065
|
+
* Requires PositionManager operator approval for the Router. No approvals are submitted automatically.
|
|
10066
|
+
* Signs and submits using the authenticated wallet; call the returned handle's wait() to confirm.
|
|
10067
|
+
* @throws {@link HorizontalMergeError} Thrown on failure.
|
|
10068
|
+
*/
|
|
10069
|
+
declare function horizontalMerge(client: BaseSecureClient, request: PrepareHorizontalMergeRequest): Promise<TransactionHandle>;
|
|
10070
|
+
|
|
10071
|
+
declare const SendOrderHeartbeatRequestSchema: z.ZodObject<{
|
|
10072
|
+
heartbeatId: z.ZodDefault<z.ZodString>;
|
|
10073
|
+
}, z.core.$strip>;
|
|
10074
|
+
type SendOrderHeartbeatRequest = z.input<typeof SendOrderHeartbeatRequestSchema>;
|
|
10075
|
+
type SendOrderHeartbeatError = OrderHeartbeatMismatchError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
10076
|
+
declare const SendOrderHeartbeatError: {
|
|
10077
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | OrderHeartbeatMismatchError | RateLimitError;
|
|
10078
|
+
};
|
|
10079
|
+
/**
|
|
10080
|
+
* Sends one authenticated order heartbeat and returns the next heartbeat ID.
|
|
10081
|
+
* The first accepted send enables timeout cancellation for ALL open orders owned
|
|
10082
|
+
* by this API key, across markets and processes. Only start when you can keep
|
|
10083
|
+
* sending every five seconds. After ten seconds without an accepted send, the
|
|
10084
|
+
* server attempts cancel-all; cancellation timing and success are not guaranteed.
|
|
10085
|
+
* Start with an empty ID, serialize sends per key, and retain every returned ID.
|
|
10086
|
+
* No timer or automatic retry is started. A mismatch does not refresh the deadline;
|
|
10087
|
+
* retry explicitly with OrderHeartbeatMismatchError.heartbeatId. A lost response
|
|
10088
|
+
* may follow an accepted send, so failure does not prove registration is inactive.
|
|
10089
|
+
* There is no disarm operation. Stopping sends or closing the client leaves the
|
|
10090
|
+
* deadline active. On shutdown, stop placing orders and explicitly cancel/verify
|
|
10091
|
+
* orders you intend to remove. Expiry removes the registration; a later accepted
|
|
10092
|
+
* send registers again. This is separate from WebSocket connection keepalive.
|
|
10093
|
+
* @throws {@link SendOrderHeartbeatError} Thrown on failure.
|
|
10094
|
+
* @example
|
|
10095
|
+
* ```ts
|
|
10096
|
+
* const heartbeat = await sendOrderHeartbeat(client);
|
|
10097
|
+
* const next = await sendOrderHeartbeat(client, { heartbeatId: heartbeat.heartbeatId });
|
|
10098
|
+
* ```
|
|
10099
|
+
*/
|
|
10100
|
+
declare function sendOrderHeartbeat(client: BaseSecureClient, request?: SendOrderHeartbeatRequest): Promise<OrderHeartbeat>;
|
|
10101
|
+
|
|
10102
|
+
type PerpsPublicReadError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
10103
|
+
declare const PerpsPublicReadError: {
|
|
10104
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
10105
|
+
};
|
|
9500
10106
|
/**
|
|
9501
10107
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9502
10108
|
*/
|
|
@@ -9514,7 +10120,7 @@ type FetchPerpsInstrumentsError = PerpsPublicReadError;
|
|
|
9514
10120
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9515
10121
|
*/
|
|
9516
10122
|
declare const FetchPerpsInstrumentsError: {
|
|
9517
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
10123
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
9518
10124
|
};
|
|
9519
10125
|
/**
|
|
9520
10126
|
* Fetches Perps instruments.
|
|
@@ -9527,7 +10133,7 @@ declare const FetchPerpsInstrumentsError: {
|
|
|
9527
10133
|
*
|
|
9528
10134
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9529
10135
|
*/
|
|
9530
|
-
declare function fetchPerpsInstruments(client: BaseClient, request?: FetchPerpsInstrumentsRequest): Promise<PerpsInstrument[]>;
|
|
10136
|
+
declare function fetchPerpsInstruments(client: BaseClient, request?: FetchPerpsInstrumentsRequest, options?: RequestOptions): Promise<PerpsInstrument[]>;
|
|
9531
10137
|
/**
|
|
9532
10138
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9533
10139
|
*/
|
|
@@ -9543,7 +10149,7 @@ type FetchPerpsTickerError = PerpsPublicReadError;
|
|
|
9543
10149
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9544
10150
|
*/
|
|
9545
10151
|
declare const FetchPerpsTickerError: {
|
|
9546
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
10152
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
9547
10153
|
};
|
|
9548
10154
|
/**
|
|
9549
10155
|
* Fetches the current Perps ticker for an instrument.
|
|
@@ -9556,7 +10162,7 @@ declare const FetchPerpsTickerError: {
|
|
|
9556
10162
|
*
|
|
9557
10163
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9558
10164
|
*/
|
|
9559
|
-
declare function fetchPerpsTicker(client: BaseClient, request: FetchPerpsTickerRequest): Promise<PerpsTicker>;
|
|
10165
|
+
declare function fetchPerpsTicker(client: BaseClient, request: FetchPerpsTickerRequest, options?: RequestOptions): Promise<PerpsTicker>;
|
|
9560
10166
|
/**
|
|
9561
10167
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9562
10168
|
*/
|
|
@@ -9572,7 +10178,7 @@ type FetchPerpsTickersError = PerpsPublicReadError;
|
|
|
9572
10178
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9573
10179
|
*/
|
|
9574
10180
|
declare const FetchPerpsTickersError: {
|
|
9575
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
10181
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
9576
10182
|
};
|
|
9577
10183
|
/**
|
|
9578
10184
|
* Fetches current Perps tickers.
|
|
@@ -9585,7 +10191,7 @@ declare const FetchPerpsTickersError: {
|
|
|
9585
10191
|
*
|
|
9586
10192
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9587
10193
|
*/
|
|
9588
|
-
declare function fetchPerpsTickers(client: BaseClient, request?: FetchPerpsTickersRequest): Promise<PerpsTicker[]>;
|
|
10194
|
+
declare function fetchPerpsTickers(client: BaseClient, request?: FetchPerpsTickersRequest, options?: RequestOptions): Promise<PerpsTicker[]>;
|
|
9589
10195
|
/**
|
|
9590
10196
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9591
10197
|
*/
|
|
@@ -9607,7 +10213,7 @@ type FetchPerpsBookError = PerpsPublicReadError;
|
|
|
9607
10213
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9608
10214
|
*/
|
|
9609
10215
|
declare const FetchPerpsBookError: {
|
|
9610
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
10216
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
9611
10217
|
};
|
|
9612
10218
|
/**
|
|
9613
10219
|
* Fetches a Perps order book.
|
|
@@ -9620,7 +10226,7 @@ declare const FetchPerpsBookError: {
|
|
|
9620
10226
|
*
|
|
9621
10227
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9622
10228
|
*/
|
|
9623
|
-
declare function fetchPerpsBook(client: BaseClient, request: FetchPerpsBookRequest): Promise<PerpsBook>;
|
|
10229
|
+
declare function fetchPerpsBook(client: BaseClient, request: FetchPerpsBookRequest, options?: RequestOptions): Promise<PerpsBook>;
|
|
9624
10230
|
/**
|
|
9625
10231
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9626
10232
|
*/
|
|
@@ -9647,7 +10253,7 @@ type ListPerpsCandlesError = PerpsPublicReadError;
|
|
|
9647
10253
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9648
10254
|
*/
|
|
9649
10255
|
declare const ListPerpsCandlesError: {
|
|
9650
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
10256
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
9651
10257
|
};
|
|
9652
10258
|
/**
|
|
9653
10259
|
* Lists Perps candles for an instrument with SDK-owned pagination.
|
|
@@ -9660,7 +10266,7 @@ declare const ListPerpsCandlesError: {
|
|
|
9660
10266
|
*
|
|
9661
10267
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9662
10268
|
*/
|
|
9663
|
-
declare function listPerpsCandles(client: BaseClient, request: ListPerpsCandlesRequest): Paginated<PerpsCandle[]>;
|
|
10269
|
+
declare function listPerpsCandles(client: BaseClient, request: ListPerpsCandlesRequest, options?: RequestOptions): Paginated<PerpsCandle[]>;
|
|
9664
10270
|
/**
|
|
9665
10271
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9666
10272
|
*/
|
|
@@ -9685,7 +10291,7 @@ type ListPerpsFundingHistoryError = PerpsPublicReadError;
|
|
|
9685
10291
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9686
10292
|
*/
|
|
9687
10293
|
declare const ListPerpsFundingHistoryError: {
|
|
9688
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
10294
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
9689
10295
|
};
|
|
9690
10296
|
/**
|
|
9691
10297
|
* Lists Perps funding-rate history for an instrument with SDK-owned pagination.
|
|
@@ -9698,7 +10304,7 @@ declare const ListPerpsFundingHistoryError: {
|
|
|
9698
10304
|
*
|
|
9699
10305
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9700
10306
|
*/
|
|
9701
|
-
declare function listPerpsFundingHistory(client: BaseClient, request: ListPerpsFundingHistoryRequest): Paginated<PerpsFundingRate[]>;
|
|
10307
|
+
declare function listPerpsFundingHistory(client: BaseClient, request: ListPerpsFundingHistoryRequest, options?: RequestOptions): Paginated<PerpsFundingRate[]>;
|
|
9702
10308
|
/**
|
|
9703
10309
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9704
10310
|
*/
|
|
@@ -9723,7 +10329,7 @@ type ListPerpsTradesError = PerpsPublicReadError;
|
|
|
9723
10329
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9724
10330
|
*/
|
|
9725
10331
|
declare const ListPerpsTradesError: {
|
|
9726
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
10332
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
9727
10333
|
};
|
|
9728
10334
|
/**
|
|
9729
10335
|
* Lists recent Perps trades for an instrument with SDK-owned pagination.
|
|
@@ -9736,16 +10342,16 @@ declare const ListPerpsTradesError: {
|
|
|
9736
10342
|
*
|
|
9737
10343
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9738
10344
|
*/
|
|
9739
|
-
declare function listPerpsTrades(client: BaseClient, request: ListPerpsTradesRequest): Paginated<PerpsPublicTrade[]>;
|
|
10345
|
+
declare function listPerpsTrades(client: BaseClient, request: ListPerpsTradesRequest, options?: RequestOptions): Paginated<PerpsPublicTrade[]>;
|
|
9740
10346
|
/**
|
|
9741
10347
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9742
10348
|
*/
|
|
9743
|
-
type FetchPerpsFeesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError;
|
|
10349
|
+
type FetchPerpsFeesError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
9744
10350
|
/**
|
|
9745
10351
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9746
10352
|
*/
|
|
9747
10353
|
declare const FetchPerpsFeesError: {
|
|
9748
|
-
isError(error: unknown): error is TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
10354
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
9749
10355
|
};
|
|
9750
10356
|
/**
|
|
9751
10357
|
* Fetches the Perps fee schedule.
|
|
@@ -9758,7 +10364,7 @@ declare const FetchPerpsFeesError: {
|
|
|
9758
10364
|
*
|
|
9759
10365
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9760
10366
|
*/
|
|
9761
|
-
declare function fetchPerpsFees(client: BaseClient): Promise<PerpsFeeScheduleEntry[]>;
|
|
10367
|
+
declare function fetchPerpsFees(client: BaseClient, options?: RequestOptions): Promise<PerpsFeeScheduleEntry[]>;
|
|
9762
10368
|
/**
|
|
9763
10369
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
9764
10370
|
*/
|
|
@@ -10407,9 +11013,9 @@ declare const FetchPublicProfileRequestSchema: z.ZodObject<{
|
|
|
10407
11013
|
address: z.ZodString;
|
|
10408
11014
|
}, z.core.$strip>;
|
|
10409
11015
|
type FetchPublicProfileRequest = z.input<typeof FetchPublicProfileRequestSchema>;
|
|
10410
|
-
type FetchPublicProfileError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
11016
|
+
type FetchPublicProfileError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
10411
11017
|
declare const FetchPublicProfileError: {
|
|
10412
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
11018
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
10413
11019
|
};
|
|
10414
11020
|
/**
|
|
10415
11021
|
* Fetches a public profile by wallet address.
|
|
@@ -10429,7 +11035,7 @@ declare const FetchPublicProfileError: {
|
|
|
10429
11035
|
* // profile === PublicProfile | null
|
|
10430
11036
|
* ```
|
|
10431
11037
|
*/
|
|
10432
|
-
declare function fetchPublicProfile(client: BaseClient, request: FetchPublicProfileRequest): Promise<PublicProfile | null>;
|
|
11038
|
+
declare function fetchPublicProfile(client: BaseClient, request: FetchPublicProfileRequest, options?: RequestOptions): Promise<PublicProfile | null>;
|
|
10433
11039
|
|
|
10434
11040
|
declare enum SearchSort {
|
|
10435
11041
|
Volume = "volume",
|
|
@@ -10467,9 +11073,9 @@ type SearchResults = {
|
|
|
10467
11073
|
profiles: Profile[];
|
|
10468
11074
|
tags: SearchTag[];
|
|
10469
11075
|
};
|
|
10470
|
-
type SearchError = PaginationLimitError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
11076
|
+
type SearchError = RequestAbortedError | PaginationLimitError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
10471
11077
|
declare const SearchError: {
|
|
10472
|
-
isError(error: unknown): error is TransportError | UserInputError | PaginationLimitError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
11078
|
+
isError(error: unknown): error is TransportError | UserInputError | PaginationLimitError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
10473
11079
|
};
|
|
10474
11080
|
/**
|
|
10475
11081
|
* Runs a public full-text search.
|
|
@@ -10505,7 +11111,7 @@ declare const SearchError: {
|
|
|
10505
11111
|
* }
|
|
10506
11112
|
* ```
|
|
10507
11113
|
*/
|
|
10508
|
-
declare function search(client: BaseClient, request: SearchRequest): Paginated<SearchResults>;
|
|
11114
|
+
declare function search(client: BaseClient, request: SearchRequest, options?: RequestOptions): Paginated<SearchResults>;
|
|
10509
11115
|
|
|
10510
11116
|
declare const ListSeriesRequestSchema: z.ZodObject<{
|
|
10511
11117
|
ascending: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -10528,9 +11134,9 @@ declare const FetchSeriesRequestSchema: z.ZodObject<{
|
|
|
10528
11134
|
}, z.core.$strip>;
|
|
10529
11135
|
type ListSeriesRequest = z.input<typeof ListSeriesRequestSchema>;
|
|
10530
11136
|
type FetchSeriesRequest = z.input<typeof FetchSeriesRequestSchema>;
|
|
10531
|
-
type ListSeriesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
11137
|
+
type ListSeriesError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
10532
11138
|
declare const ListSeriesError: {
|
|
10533
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
11139
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
10534
11140
|
};
|
|
10535
11141
|
/**
|
|
10536
11142
|
* Lists series.
|
|
@@ -10570,10 +11176,10 @@ declare const ListSeriesError: {
|
|
|
10570
11176
|
* }
|
|
10571
11177
|
* ```
|
|
10572
11178
|
*/
|
|
10573
|
-
declare function listSeries(client: BaseClient, request?: ListSeriesRequest): Paginated<Series[]>;
|
|
10574
|
-
type FetchSeriesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
11179
|
+
declare function listSeries(client: BaseClient, request?: ListSeriesRequest, options?: RequestOptions): Paginated<Series[]>;
|
|
11180
|
+
type FetchSeriesError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
10575
11181
|
declare const FetchSeriesError: {
|
|
10576
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
11182
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
10577
11183
|
};
|
|
10578
11184
|
/**
|
|
10579
11185
|
* Fetches a series.
|
|
@@ -10594,7 +11200,7 @@ declare const FetchSeriesError: {
|
|
|
10594
11200
|
* // series === Series
|
|
10595
11201
|
* ```
|
|
10596
11202
|
*/
|
|
10597
|
-
declare function fetchSeries(client: BaseClient, request: FetchSeriesRequest): Promise<Series>;
|
|
11203
|
+
declare function fetchSeries(client: BaseClient, request: FetchSeriesRequest, options?: RequestOptions): Promise<Series>;
|
|
10598
11204
|
|
|
10599
11205
|
/**
|
|
10600
11206
|
* A scoped session key authorized for the Deposit Wallet.
|
|
@@ -10607,9 +11213,9 @@ type SessionKey = {
|
|
|
10607
11213
|
/** Absolute expiry as whole Unix seconds. */
|
|
10608
11214
|
validUntil: number;
|
|
10609
11215
|
};
|
|
10610
|
-
type FetchSessionKeysError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
11216
|
+
type FetchSessionKeysError = RequestAbortedError | RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
10611
11217
|
declare const FetchSessionKeysError: {
|
|
10612
|
-
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
11218
|
+
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
10613
11219
|
};
|
|
10614
11220
|
/**
|
|
10615
11221
|
* Fetches the active session keys authorized for the Deposit Wallet.
|
|
@@ -10625,7 +11231,7 @@ declare const FetchSessionKeysError: {
|
|
|
10625
11231
|
* @throws {@link FetchSessionKeysError}
|
|
10626
11232
|
* Thrown on failure.
|
|
10627
11233
|
*/
|
|
10628
|
-
declare function fetchSessionKeys(client: BaseSecureClient): Promise<SessionKey[]>;
|
|
11234
|
+
declare function fetchSessionKeys(client: BaseSecureClient, options?: RequestOptions): Promise<SessionKey[]>;
|
|
10629
11235
|
/** Parameters for authorizing a scoped session key. */
|
|
10630
11236
|
type AuthorizeSessionKeyRequest = {
|
|
10631
11237
|
/** Public EVM address of the externally managed session signer. */
|
|
@@ -11123,9 +11729,9 @@ type ListTagsRequest = z.input<typeof ListTagsRequestSchema>;
|
|
|
11123
11729
|
type FetchTagRequest = z.input<typeof FetchTagRequestSchema>;
|
|
11124
11730
|
type FetchRelatedTagsRequest = z.input<typeof RelatedTagsByIdRequestSchema> | z.input<typeof RelatedTagsBySlugRequestSchema>;
|
|
11125
11731
|
type FetchRelatedTagResourcesRequest = z.input<typeof RelatedTagResourcesByIdRequestSchema> | z.input<typeof RelatedTagResourcesBySlugRequestSchema>;
|
|
11126
|
-
type ListTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
11732
|
+
type ListTagsError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
11127
11733
|
declare const ListTagsError: {
|
|
11128
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
11734
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
11129
11735
|
};
|
|
11130
11736
|
/**
|
|
11131
11737
|
* Lists tags.
|
|
@@ -11165,10 +11771,10 @@ declare const ListTagsError: {
|
|
|
11165
11771
|
* }
|
|
11166
11772
|
* ```
|
|
11167
11773
|
*/
|
|
11168
|
-
declare function listTags(client: BaseClient, request?: ListTagsRequest): Paginated<Tag[]>;
|
|
11169
|
-
type FetchTagError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
11774
|
+
declare function listTags(client: BaseClient, request?: ListTagsRequest, options?: RequestOptions): Paginated<Tag[]>;
|
|
11775
|
+
type FetchTagError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
11170
11776
|
declare const FetchTagError: {
|
|
11171
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
11777
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
11172
11778
|
};
|
|
11173
11779
|
/**
|
|
11174
11780
|
* Fetches a tag by id or slug.
|
|
@@ -11189,10 +11795,10 @@ declare const FetchTagError: {
|
|
|
11189
11795
|
* // tag === Tag
|
|
11190
11796
|
* ```
|
|
11191
11797
|
*/
|
|
11192
|
-
declare function fetchTag(client: BaseClient, request: FetchTagRequest): Promise<Tag>;
|
|
11193
|
-
type FetchRelatedTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
11798
|
+
declare function fetchTag(client: BaseClient, request: FetchTagRequest, options?: RequestOptions): Promise<Tag>;
|
|
11799
|
+
type FetchRelatedTagsError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
11194
11800
|
declare const FetchRelatedTagsError: {
|
|
11195
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
11801
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
11196
11802
|
};
|
|
11197
11803
|
/**
|
|
11198
11804
|
* Fetches related tag relationships by id or slug.
|
|
@@ -11214,10 +11820,10 @@ declare const FetchRelatedTagsError: {
|
|
|
11214
11820
|
* // relatedTags: RelatedTag[]
|
|
11215
11821
|
* ```
|
|
11216
11822
|
*/
|
|
11217
|
-
declare function fetchRelatedTags(client: BaseClient, request: FetchRelatedTagsRequest): Promise<RelatedTag[]>;
|
|
11218
|
-
type FetchRelatedTagResourcesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
11823
|
+
declare function fetchRelatedTags(client: BaseClient, request: FetchRelatedTagsRequest, options?: RequestOptions): Promise<RelatedTag[]>;
|
|
11824
|
+
type FetchRelatedTagResourcesError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
11219
11825
|
declare const FetchRelatedTagResourcesError: {
|
|
11220
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
11826
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
11221
11827
|
};
|
|
11222
11828
|
/**
|
|
11223
11829
|
* Fetches resources linked from related tag relationships by id or slug.
|
|
@@ -11239,7 +11845,7 @@ declare const FetchRelatedTagResourcesError: {
|
|
|
11239
11845
|
* // relatedResources: Tag[]
|
|
11240
11846
|
* ```
|
|
11241
11847
|
*/
|
|
11242
|
-
declare function fetchRelatedTagResources(client: BaseClient, request: FetchRelatedTagResourcesRequest): Promise<Tag[]>;
|
|
11848
|
+
declare function fetchRelatedTagResources(client: BaseClient, request: FetchRelatedTagResourcesRequest, options?: RequestOptions): Promise<Tag[]>;
|
|
11243
11849
|
|
|
11244
11850
|
declare const ListTeamsRequestSchema: z.ZodObject<{
|
|
11245
11851
|
abbreviation: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -11252,9 +11858,9 @@ declare const ListTeamsRequestSchema: z.ZodObject<{
|
|
|
11252
11858
|
providerId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
11253
11859
|
}, z.core.$strip>;
|
|
11254
11860
|
type ListTeamsRequest = z.input<typeof ListTeamsRequestSchema>;
|
|
11255
|
-
type ListTeamsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
11861
|
+
type ListTeamsError = RequestAbortedError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
11256
11862
|
declare const ListTeamsError: {
|
|
11257
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
11863
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
11258
11864
|
};
|
|
11259
11865
|
/**
|
|
11260
11866
|
* Lists teams.
|
|
@@ -11294,7 +11900,47 @@ declare const ListTeamsError: {
|
|
|
11294
11900
|
* }
|
|
11295
11901
|
* ```
|
|
11296
11902
|
*/
|
|
11297
|
-
declare function listTeams(client: BaseClient, request?: ListTeamsRequest): Paginated<Team[]>;
|
|
11903
|
+
declare function listTeams(client: BaseClient, request?: ListTeamsRequest, options?: RequestOptions): Paginated<Team[]>;
|
|
11904
|
+
|
|
11905
|
+
/** Select outcome assets by decimal IDs or by condition selectors. */
|
|
11906
|
+
type FetchTokenReferencesRequest = {
|
|
11907
|
+
assetIds: string[];
|
|
11908
|
+
conditionIds?: never;
|
|
11909
|
+
} | {
|
|
11910
|
+
assetIds?: never;
|
|
11911
|
+
conditionIds: string[];
|
|
11912
|
+
};
|
|
11913
|
+
type FetchTokenReferencesError = RateLimitError | RequestAbortedError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
11914
|
+
declare const FetchTokenReferencesError: {
|
|
11915
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestAbortedError | RequestRejectedError | RateLimitError;
|
|
11916
|
+
};
|
|
11917
|
+
/**
|
|
11918
|
+
* Fetches reference and settlement metadata for outcome assets.
|
|
11919
|
+
*
|
|
11920
|
+
* Provide exactly one selector family: up to 50 distinct decimal `assetIds`,
|
|
11921
|
+
* or up to 10 distinct `conditionIds` containing 31-byte or 32-byte hex values.
|
|
11922
|
+
* Elements are trimmed, blanks dropped, and duplicates removed in first-seen
|
|
11923
|
+
* order. Decimal IDs have leading zeros stripped and at most 78 remaining
|
|
11924
|
+
* digits. Conditions are lowercased without changing their width.
|
|
11925
|
+
*
|
|
11926
|
+
* Returns a direct collection. Unknown selectors contribute no rows; asset
|
|
11927
|
+
* lookups retain request order and condition groups retain server order.
|
|
11928
|
+
* Overlapping condition selectors can repeat assets. Settlement metadata and
|
|
11929
|
+
* outcome labels can lag by up to a minute. Transient rate limits are retried
|
|
11930
|
+
* automatically.
|
|
11931
|
+
*
|
|
11932
|
+
* @remarks
|
|
11933
|
+
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
11934
|
+
*
|
|
11935
|
+
* @throws {@link FetchTokenReferencesError}
|
|
11936
|
+
* Thrown on failure.
|
|
11937
|
+
*
|
|
11938
|
+
* @example
|
|
11939
|
+
* ```ts
|
|
11940
|
+
* const references = await fetchTokenReferences(client, { assetIds: ['123'] });
|
|
11941
|
+
* ```
|
|
11942
|
+
*/
|
|
11943
|
+
declare function fetchTokenReferences(client: BaseClient, request: FetchTokenReferencesRequest, options?: RequestOptions): Promise<TokenReference[]>;
|
|
11298
11944
|
|
|
11299
11945
|
type Erc20TransferWorkflowRequest = GaslessWorkflowRequest | SendErc20TransferTransactionRequest;
|
|
11300
11946
|
type Erc20TransferWorkflow = AsyncGenerator<Erc20TransferWorkflowRequest, TransactionHandle, EvmAddress$1 | EvmSignature | TransactionHandle>;
|
|
@@ -11414,4 +12060,4 @@ type Signer = {
|
|
|
11414
12060
|
sendTransaction(request: SignerTransactionRequest): Promise<TransactionHandle>;
|
|
11415
12061
|
};
|
|
11416
12062
|
|
|
11417
|
-
export { type CryptoPriceSubscription as $, type ApiKeyAuthorization as A, type BaseClient as B, CancelAllError as C, type CancelPerpsOrderRequest as D, type CancelPerpsOrdersRequest as E, CancelPerpsTwapError as F, type CancelPerpsTwapRequest as G, CancelledSigningError as H, type Client as I, type ClientActions as J, type ClientDecorator as K, type ClobEndpoints as L, type ComboPositionStatusFilter as M, type ComboQuote as N, type CombosEndpoints as O, type CommentsSubscription as P, ConnectionLostError as Q, type ConnectionLostErrorOptions as R, type Signer as S, type TypedDataPayload as T, UserInputError as U, CreatePerpsChaseError as V, type CreatePerpsChaseRequest as W, type CreatePerpsSessionRequest as X, CreatePerpsTwapError as Y, type CreatePerpsTwapRequest as Z, CreateSecureClientError as _, type TypedData as a, FetchPerpsTwapsError as a$, type CryptoPricesChainlinkTwapSubscription as a0, type CryptoPricesSubscription as a1, type CryptoTwapPriceSubscription as a2, type DataActions as a3, DepositToPerpsError as a4, type DepositToPerpsRequest as a5, type DisarmPerpsAutoCancelRequest as a6, type DiscoveryActions as a7, DownloadAccountingSnapshotError as a8, DropNotificationsError as a9, FetchOrderBooksError as aA, FetchOrderError as aB, FetchOrderScoringError as aC, FetchOrdersScoringError as aD, type FetchPerpsAccountConfigRequest as aE, FetchPerpsBookError as aF, type FetchPerpsBookRequest as aG, FetchPerpsBuilderApprovalsError as aH, type FetchPerpsBuilderApprovalsRequest as aI, FetchPerpsBuilderEarningsSummaryError as aJ, type FetchPerpsBuilderEarningsSummaryRequest as aK, FetchPerpsBuilderStatusError as aL, type FetchPerpsBuilderStatusRequest as aM, FetchPerpsChasesError as aN, FetchPerpsFeesError as aO, FetchPerpsInstrumentsError as aP, type FetchPerpsInstrumentsRequest as aQ, type FetchPerpsOpenOrdersRequest as aR, type FetchPerpsOrdersRequest as aS, FetchPerpsPositionSnapshotsError as aT, type FetchPerpsPositionSnapshotsRequest as aU, FetchPerpsRegistrationError as aV, type FetchPerpsRegistrationRequest as aW, FetchPerpsTickerError as aX, type FetchPerpsTickerRequest as aY, FetchPerpsTickersError as aZ, type FetchPerpsTickersRequest as a_, type EnvironmentConfig as aa, type EnvironmentConfigFork as ab, type EnvironmentContracts as ac, type EquityPriceSubscription as ad, type EquityPricesSubscription as ae, type EquityTwapPriceSubscription as af, type Erc1155TradingApproval as ag, type Erc20TradingApproval as ah, EstimateMarketPriceError as ai, ExecuteCollateralReturnPlanError as aj, type ExecuteCollateralReturnPlanRequest as ak, FetchBuilderVolumeError as al, FetchClosedOnlyModeError as am, FetchCommentsByIdError as an, FetchEventError as ao, FetchEventLiveVolumeError as ap, FetchEventTagsError as aq, FetchLastTradePriceError as ar, FetchLastTradePricesError as as, FetchMarketError as at, FetchMarketTagsError as au, FetchMidpointError as av, FetchMidpointsError as aw, FetchNotificationsError as ax, FetchOpenInterestError as ay, FetchOrderBookError as az, type TransactionCall as b, ListUserEarningsForDayError as b$, FetchPortfolioValueError as b0, FetchPriceError as b1, FetchPricesError as b2, FetchPublicProfileError as b3, FetchRelatedTagResourcesError as b4, FetchRelatedTagsError as b5, FetchResolutionsError as b6, FetchRewardPercentagesError as b7, FetchRfqStatusError as b8, type FetchRfqStatusParams as b9, ListMarketRewardsError as bA, ListMarketsError as bB, ListOpenOrdersError as bC, ListPerpsBuilderEarningsError as bD, type ListPerpsBuilderEarningsRequest as bE, ListPerpsCandlesError as bF, type ListPerpsCandlesRequest as bG, type ListPerpsDepositsRequest as bH, type ListPerpsEquityHistoryRequest as bI, type ListPerpsFillsRequest as bJ, ListPerpsFundingHistoryError as bK, type ListPerpsFundingHistoryRequest as bL, type ListPerpsFundingPaymentsRequest as bM, type ListPerpsInternalTransfersRequest as bN, type ListPerpsNotificationsRequest as bO, type ListPerpsPnlHistoryRequest as bP, ListPerpsTradesError as bQ, type ListPerpsTradesRequest as bR, type ListPerpsWithdrawalsRequest as bS, ListPositionsError as bT, ListPriceHistoryError as bU, ListSeriesError as bV, ListTagsError as bW, ListTeamsError as bX, ListTraderLeaderboardError as bY, ListTradesError as bZ, ListUserEarningsAndMarketsConfigError as b_, FetchSeriesError as ba, FetchSessionKeysError as bb, FetchSpreadError as bc, FetchSpreadsError as bd, FetchTagError as be, FetchTotalEarningsForUserForDayError as bf, FetchTraderLeaderboardStandingError as bg, FetchTradingApprovalsStateError as bh, type FetchTradingApprovalsStateRequest as bi, FetchUserPnlError as bj, FetchUserStatsError as bk, FetchUserVolumeError as bl, InsufficientLiquidityError as bm, ListAccountTradesError as bn, ListActivityError as bo, ListBiggestWinnersError as bp, ListBuilderLeaderboardError as bq, ListBuilderTradesError as br, ListComboActivityError as bs, ListComboMarketsError as bt, ListComboPositionsError as bu, ListCommentsByUserAddressError as bv, ListCommentsError as bw, ListCurrentRewardsError as bx, ListEventsError as by, ListMarketHoldersError as bz, AcceptComboQuoteError as c, RedeemPositionsError as c$, type MarkPerpsNotificationsReadRequest as c0, MergePositionsError as c1, OpenPerpsSessionError as c2, type OpenPerpsSessionRequest as c3, OpenRfqSessionError as c4, OperationAbortedError as c5, type OrderSignature as c6, type Page as c7, PageSizeSchema as c8, type Paginated as c9, type PerpsTpSlTrigger as cA, type PerpsTrailingStop as cB, type PlacePerpsOrderRequest as cC, type PlacePerpsOrderResult as cD, type PlacePerpsOrderWithTpSlRequest as cE, type PlacePerpsOrderWithTpSlResult as cF, type PlacePerpsPositionTpSlRequest as cG, type PlacePerpsPositionTpSlResult as cH, PlanCollateralReturnError as cI, PostOrderError as cJ, PostOrdersError as cK, type PostPerpsOrdersRequest as cL, type PriceSubscription as cM, type PriceSubscriptionConfirmation as cN, type PublicAccountActions as cO, type PublicActions as cP, type PublicClient as cQ, type PublicClientOptions as cR, type PublicPerpsActions as cS, type PublicRewardsActions as cT, type PublicSubscriptionsActions as cU, type PublicWalletActions as cV, type RateLimitBucket as cW, RateLimitError as cX, type RateLimitErrorOptions as cY, type RateLimitUpdate as cZ, type RateLimitUpdateListener as c_, PaginationLimitError as ca, PausePerpsTwapError as cb, type PausePerpsTwapRequest as cc, type PerpsActions as cd, type PerpsBookDepth as ce, type PerpsBuilderTermsInput as cf, type PerpsCancelOptions as cg, PerpsCancelRetryError as ch, type PerpsCancelRetryErrorOptions as ci, type PerpsCancelRetryOptions as cj, type PerpsEndpoints as ck, type PerpsOrderRequest as cl, type PerpsPlaceFokOrderRequest as cm, type PerpsPlaceGtcOrderRequest as cn, type PerpsPlaceGtdOrderRequest as co, type PerpsPlaceIocOrderRequest as cp, type PerpsPlacedTpSlOrder as cq, type PerpsPlacedTpSlOrders as cr, type PerpsPositionSnapshotFill as cs, type PerpsPositionSnapshotSelection as ct, type PerpsPositionTpSlTrigger as cu, type PerpsPositionTrailingStop as cv, PerpsSession as cw, type PerpsSessionAccountError as cx, type PerpsSessionLifecycleError as cy, type PerpsSessionTradingError as cz, type AcceptComboQuoteParams as d, type SignerTransactionRequest as d$, RequestComboQuoteError as d0, type RequestComboQuoteParams as d1, type RequestComboQuoteResult as d2, RequestRejectedError as d3, type RequestRejectedErrorOptions as d4, type RestEndpoint as d5, type ResumePerpsSessionRequest as d6, ResumePerpsTwapError as d7, type ResumePerpsTwapRequest as d8, RevokePerpsBuilderFeeError as d9, SearchError as dA, SearchSort as dB, type SecureAccountActions as dC, type SecureActions as dD, type SecureClient as dE, type SecureClientOptions as dF, type SecureDownloadAccountingSnapshotRequest as dG, type SecureFetchPortfolioValueRequest as dH, type SecureFetchTraderLeaderboardStandingRequest as dI, type SecureFetchUserPnlRequest as dJ, type SecureFetchUserStatsRequest as dK, type SecureFetchUserVolumeRequest as dL, type SecureListActivityRequest as dM, type SecureListComboActivityRequest as dN, type SecureListComboPositionsRequest as dO, type SecureListPositionsRequest as dP, type SecurePerpsActions as dQ, type SecureRewardsActions as dR, type SecureRfqActions as dS, type SecureSubscriptionsActions as dT, type SecureTradingActions as dU, type SecureWalletActions as dV, type SessionKey as dW, type SessionKeyActions as dX, SetupGaslessWalletError as dY, SetupTradingApprovalsError as dZ, type SignedOrder as d_, RevokePerpsCredentialsError as da, type RevokePerpsCredentialsRequest as db, RevokeSessionKeyError as dc, type RevokeSessionKeyRequest as dd, type RfqCancelQuoteAck as de, RfqCancelQuoteError as df, RfqCancelQuoteRejectedError as dg, type RfqCancelQuoteRejectedErrorOptions as dh, type RfqConfirmationAck as di, RfqConfirmationError as dj, RfqConfirmationRejectedError as dk, type RfqConfirmationRequestEvent as dl, type RfqEvent as dm, RfqQuoteError as dn, type RfqQuoteReference as dp, RfqQuoteRejectedError as dq, type RfqQuoteRejectedErrorOptions as dr, type RfqQuoteRequestEvent as ds, type RfqQuoteResponse as dt, type RfqQuoteSource as du, RfqRequestRejectedError as dv, type RfqRequestRejectedErrorOptions as dw, type RfqSession as dx, type RfqStatusResult as dy, type RfqTradeEvent as dz, type AcceptComboQuoteResult as e, type Erc1155ApprovalForAllWorkflow as e$, SignerType as e0, SigningError as e1, SplitPositionError as e2, SubscribeError as e3, type SubscriptionHandle as e4, TimeoutError as e5, type TradingApprovalRequirements as e6, type TradingApprovalsState as e7, TradingRestriction as e8, TransactionFailedError as e9, accountActions as eA, allActions as eB, analyticsActions as eC, createPublicClient as eD, createSecureClient as eE, dataActions as eF, discoveryActions as eG, forkEnvironmentConfig as eH, makeErrorGuard as eI, perpsActions as eJ, production as eK, rewardsActions as eL, rfqActions as eM, sessionKeyActions as eN, subscriptionsActions as eO, tradingActions as eP, walletActions as eQ, type CancelMarketOrdersRequest as eR, type CancelOrderRequest as eS, type CancelOrdersRequest as eT, type CollateralReturnExecutionWorkflow as eU, type CommentsEventType as eV, type CryptoPricesEventType as eW, DeployDepositWalletError as eX, type DownloadAccountingSnapshotRequest as eY, type DropNotificationsRequest as eZ, type EquityPricesEventType as e_, type TransactionHandle as ea, type TransactionOutcome as eb, TransferErc20Error as ec, TransferPerpsCollateralError as ed, type TransferPerpsCollateralRequest as ee, TransportError as ef, type TypedDataDomain as eg, type TypedDataField as eh, UnexpectedResponseError as ei, UpdatePerpsLeverageError as ej, type UpdatePerpsLeverageRequest as ek, UpdatePerpsLeveragesError as el, type UpdatePerpsLeveragesRequest as em, UpdatePerpsMarginError as en, type UpdatePerpsMarginRequest as eo, WaitForComboFillError as ep, type WaitForComboFillParams as eq, type WaitForComboFillResult as er, WaitForOrderFillSettlementError as es, WaitForTransactionError as et, type WalletDerivationConfig as eu, type WebSocketCloseCode as ev, type WebSocketEndpoint as ew, WebSocketKnownCloseCode as ex, WithdrawFromPerpsError as ey, type WithdrawFromPerpsRequest as ez, type AccountIdentity as f, type IsWalletDeployedRequest as f$, type Erc1155ApprovalForAllWorkflowRequest as f0, type Erc20ApprovalWorkflow as f1, type Erc20ApprovalWorkflowRequest as f2, type Erc20TransferWorkflow as f3, type Erc20TransferWorkflowRequest as f4, type EstimateMarketBuyPriceRequest as f5, type EstimateMarketPriceRequest as f6, type EstimateMarketSellPriceRequest as f7, type EventForSubscriptionSpec as f8, type EventForSubscriptionSpecs as f9, type FetchOrderScoringRequest as fA, type FetchOrdersScoringRequest as fB, type FetchPortfolioValueRequest as fC, type FetchPriceRequest as fD, type FetchPricesRequest as fE, type FetchPublicProfileRequest as fF, type FetchRelatedTagResourcesRequest as fG, type FetchRelatedTagsRequest as fH, type FetchResolutionsByConditionRequest as fI, type FetchResolutionsByEventRequest as fJ, type FetchResolutionsByQuestionRequest as fK, type FetchResolutionsRequest as fL, type FetchSeriesRequest as fM, type FetchSpreadRequest as fN, type FetchSpreadsRequest as fO, type FetchTagRequest as fP, FetchTickSizeError as fQ, type FetchTickSizeRequest as fR, type FetchTotalEarningsForUserForDayRequest as fS, type FetchTraderLeaderboardStandingRequest as fT, type FetchUserPnlRequest as fU, type FetchUserStatsRequest as fV, type FetchUserVolumeRequest as fW, GaslessTransactionMetadataSchema as fX, type GaslessWorkflow as fY, type GaslessWorkflowRequest as fZ, IsWalletDeployedError as f_, FetchBalanceAllowanceError as fa, type FetchBalanceAllowanceRequest as fb, FetchBuilderFeeRatesError as fc, type FetchBuilderFeeRatesRequest as fd, type FetchBuilderVolumeRequest as fe, type FetchCommentsByIdRequest as ff, type FetchEventLiveVolumeRequest as fg, type FetchEventRequest as fh, type FetchEventTagsRequest as fi, FetchExecuteParamsError as fj, type FetchExecuteParamsRequest as fk, type FetchGaslessTransactionRequest as fl, type FetchLastTradePriceRequest as fm, type FetchLastTradePricesRequest as fn, FetchMarketInfoError as fo, type FetchMarketInfoRequest as fp, type FetchMarketRequest as fq, type FetchMarketTagsRequest as fr, type FetchMidpointRequest as fs, type FetchMidpointsRequest as ft, FetchNegRiskError as fu, type FetchNegRiskRequest as fv, type FetchOpenInterestRequest as fw, type FetchOrderBookRequest as fx, type FetchOrderBooksRequest as fy, type FetchOrderRequest as fz, type AnalyticsActions as g, PrepareMergeMarketPositionError as g$, type ListAccountTradesRequest as g0, type ListActivityRequest as g1, type ListBiggestWinnersRequest as g2, type ListBuilderLeaderboardRequest as g3, type ListBuilderTradesRequest as g4, type ListComboActivityRequest as g5, type ListComboMarketsRequest as g6, type ListComboPositionsRequest as g7, type ListCommentsByUserAddressRequest as g8, type ListCommentsRequest as g9, type PerpsBboSubscription as gA, type PerpsBookSubscription as gB, type PerpsCandlesSubscription as gC, type PerpsDepositWorkflow as gD, type PerpsDepositWorkflowRequest as gE, type PerpsMarketDataEventType as gF, type PerpsMarketDataSubscription as gG, type PerpsStatisticsSubscription as gH, type PerpsStreamingCandleInterval as gI, type PerpsTickersSubscription as gJ, type PerpsTradesSubscription as gK, type PostOrdersRequest as gL, PrepareCollateralReturnExecutionError as gM, PrepareErc1155ApprovalForAllError as gN, type PrepareErc1155ApprovalForAllRequest as gO, PrepareErc20ApprovalError as gP, type PrepareErc20ApprovalRequest as gQ, PrepareErc20TransferError as gR, type PrepareErc20TransferRequest as gS, PrepareGaslessTransactionError as gT, type PrepareGaslessTransactionRequest as gU, type PrepareLimitOrderRequest as gV, type PrepareMarketBuyOrderRequest as gW, type PrepareMarketOrderRequest as gX, type PrepareMarketSellOrderRequest as gY, PrepareMergeComboPositionError as gZ, type PrepareMergeComboPositionRequest as g_, type ListCurrentRewardsRequest as ga, type ListEventsRequest as gb, ListMarketClarificationsError as gc, type ListMarketClarificationsRequest as gd, type ListMarketHoldersRequest as ge, type ListMarketRewardsRequest as gf, type ListMarketsRequest as gg, type ListOpenOrdersRequest as gh, type ListPositionsRequest as gi, type ListPriceHistoryRequest as gj, type ListSeriesRequest as gk, type ListTagsRequest as gl, type ListTeamsRequest as gm, type ListTraderLeaderboardRequest as gn, type ListTradesRequest as go, type ListUserEarningsAndMarketsConfigRequest as gp, type ListUserEarningsForDayRequest as gq, type MarketEventType as gr, type MarketSubscription as gs, MergeComboPositionError as gt, MergeMarketPositionError as gu, type MergePositionsWorkflow as gv, type MergePositionsWorkflowRequest as gw, type OrderPostingWorkflow as gx, type OrderWorkflow as gy, type OrderWorkflowRequest as gz, ApproveErc1155ForAllError as h, fetchBuilderFeeRates as h$, type PrepareMergeMarketPositionRequest as h0, PrepareMergePositionsError as h1, type PrepareMergePositionsRequest as h2, PreparePerpsDepositError as h3, PrepareRedeemComboPositionError as h4, type PrepareRedeemComboPositionRequest as h5, type PrepareRedeemMarketPositionsByConditionIdRequest as h6, type PrepareRedeemMarketPositionsByMarketIdRequest as h7, PrepareRedeemMarketPositionsError as h8, type PrepareRedeemMarketPositionsRequest as h9, type SplitPositionWorkflow as hA, type SplitPositionWorkflowRequest as hB, type SportsEventType as hC, type SportsSubscription as hD, type TradingApprovalsWorkflow as hE, type TradingApprovalsWorkflowRequest as hF, UpdateBalanceAllowanceError as hG, type UpdateBalanceAllowanceRequest as hH, type UserEventType as hI, type UserSubscription as hJ, WaitForGaslessTransactionError as hK, type WaitForOrderFillSettlementRequest as hL, acceptComboQuote as hM, approveErc1155ForAll as hN, approveErc20 as hO, authorizeSessionKey as hP, cancelAll as hQ, cancelMarketOrders as hR, cancelOrder as hS, cancelOrders as hT, deployDepositWallet as hU, depositToPerps as hV, downloadAccountingSnapshot as hW, dropNotifications as hX, estimateMarketPrice as hY, executeCollateralReturnPlan as hZ, fetchBalanceAllowance as h_, type PrepareRedeemPositionRequest as ha, PrepareRedeemPositionsError as hb, type PrepareRedeemPositionsRequest as hc, PrepareSplitComboPositionError as hd, type PrepareSplitComboPositionRequest as he, PrepareSplitMarketPositionError as hf, type PrepareSplitMarketPositionRequest as hg, PrepareSplitPositionError as hh, type PrepareSplitPositionRequest as hi, PrepareTradingApprovalsError as hj, type PublicRealtimeEvent as hk, type PublicRealtimeTopic as hl, type PublicSubscriptionSpec as hm, type RedeemPositionsWorkflow as hn, type RedeemPositionsWorkflowRequest as ho, ResolveConditionByTokenError as hp, type ResolveConditionByTokenRequest as hq, type RfqConfirmationRejectedErrorOptions as hr, type RfqExecutionUpdateEvent as hs, type SearchRequest as ht, type SearchResults as hu, type SecureRealtimeEvent as hv, type SecureRealtimeTopic as hw, type SecureSubscriptionSpec as hx, SplitComboPositionError as hy, SplitMarketPositionError as hz, ApproveErc20Error as i, listComments as i$, fetchBuilderVolume as i0, fetchClosedOnlyMode as i1, fetchCommentsById as i2, fetchEvent as i3, fetchEventLiveVolume as i4, fetchEventTags as i5, fetchExecuteParams as i6, fetchLastTradePrice as i7, fetchLastTradePrices as i8, fetchMarket as i9, fetchRelatedTagResources as iA, fetchRelatedTags as iB, fetchResolutions as iC, fetchRewardPercentages as iD, fetchRfqStatus as iE, fetchSeries as iF, fetchSessionKeys as iG, fetchSpread as iH, fetchSpreads as iI, fetchTag as iJ, fetchTickSize as iK, fetchTotalEarningsForUserForDay as iL, fetchTraderLeaderboardStanding as iM, fetchTradingApprovalsState as iN, fetchTransaction as iO, fetchUserPnl as iP, fetchUserStats as iQ, fetchUserVolume as iR, isWalletDeployed as iS, listAccountTrades as iT, listActivity as iU, listBiggestWinners as iV, listBuilderLeaderboard as iW, listBuilderTrades as iX, listComboActivity as iY, listComboMarkets as iZ, listComboPositions as i_, fetchMarketInfo as ia, fetchMarketTags as ib, fetchMidpoint as ic, fetchMidpoints as id, fetchNegRisk as ie, fetchNotifications as ig, fetchOpenInterest as ih, fetchOrder as ii, fetchOrderBook as ij, fetchOrderBooks as ik, fetchOrderScoring as il, fetchOrdersScoring as im, fetchPerpsBook as io, fetchPerpsBuilderStatus as ip, fetchPerpsFees as iq, fetchPerpsInstruments as ir, fetchPerpsPositionSnapshots as is, fetchPerpsRegistration as it, fetchPerpsTicker as iu, fetchPerpsTickers as iv, fetchPortfolioValue as iw, fetchPrice as ix, fetchPrices as iy, fetchPublicProfile as iz, ApprovePerpsBuilderFeeError as j, listCommentsByUserAddress as j0, listCurrentRewards as j1, listEvents as j2, listMarketClarifications as j3, listMarketHolders as j4, listMarketRewards as j5, listMarkets as j6, listOpenOrders as j7, listPerpsCandles as j8, listPerpsFundingHistory as j9, preparePerpsDeposit as jA, prepareRedeemComboPosition as jB, prepareRedeemMarketPositions as jC, prepareRedeemPosition as jD, prepareRedeemPositions as jE, prepareSplitComboPosition as jF, prepareSplitMarketPosition as jG, prepareSplitPosition as jH, prepareTradingApprovals as jI, redeemPositions as jJ, requestComboQuote as jK, resolveConditionByToken as jL, revokePerpsCredentials as jM, revokeSessionKey as jN, search as jO, setupTradingApprovals as jP, splitComboPosition as jQ, splitMarketPosition as jR, splitPosition as jS, subscribe as jT, transferErc20 as jU, transferPerpsCollateral as jV, updateBalanceAllowance as jW, waitForComboFill as jX, waitForOrderFillSettlement as jY, withdrawFromPerps as jZ, listPerpsTrades as ja, listPositions as jb, listPriceHistory as jc, listSeries as jd, listTags as je, listTeams as jf, listTraderLeaderboard as jg, listTrades as jh, listUserEarningsAndMarketsConfig as ji, listUserEarningsForDay as jj, mergeComboPosition as jk, mergeMarketPosition as jl, mergePositions as jm, openPerpsSession as jn, openRfqSession as jo, planCollateralReturn as jp, postOrder as jq, postOrders as jr, prepareCollateralReturnExecution as js, prepareErc1155ApprovalForAll as jt, prepareErc20Approval as ju, prepareErc20Transfer as jv, prepareGaslessTransaction as jw, prepareMergeComboPosition as jx, prepareMergeMarketPosition as jy, prepareMergePositions as jz, type ApprovePerpsBuilderFeeRequest as k, ArmPerpsAutoCancelError as l, type ArmPerpsAutoCancelRequest as m, AuthorizeSessionKeyError as n, type AuthorizeSessionKeyRequest as o, type AuthorizeSessionKeyResult as p, AutoCancelDailyLimitError as q, BasePublicClient as r, BaseSecureClient as s, type BeginAuthenticationRequest as t, type CancelAllPerpsOrdersRequest as u, CancelMarketOrdersError as v, CancelOrderError as w, CancelOrdersError as x, CancelPerpsChaseError as y, type CancelPerpsChaseRequest as z };
|
|
12063
|
+
export { CreatePerpsTwapError as $, type ApiKeyAuthorization as A, type BaseClient as B, CancelAllError as C, type CancelPerpsChaseRequest as D, type CancelPerpsOrderRequest as E, type CancelPerpsOrdersRequest as F, CancelPerpsTwapError as G, type CancelPerpsTwapRequest as H, CancelledSigningError as I, type Client as J, type ClientActions as K, type ClientDecorator as L, type ClobEndpoints as M, type ComboPositionStatusFilter as N, type ComboQuote as O, type CombosEndpoints as P, type CommentsSubscription as Q, ConnectionLostError as R, type Signer as S, type TypedDataPayload as T, UserInputError as U, type ConnectionLostErrorOptions as V, ConvertError as W, type ConvertWorkflow as X, CreatePerpsChaseError as Y, type CreatePerpsChaseRequest as Z, type CreatePerpsSessionRequest as _, type TypedData as a, FetchPerpsRegistrationError as a$, type CreatePerpsTwapRequest as a0, CreateSecureClientError as a1, type CryptoPriceSubscription as a2, type CryptoPricesChainlinkTwapSubscription as a3, type CryptoPricesSubscription as a4, type CryptoTwapPriceSubscription as a5, type DataActions as a6, DepositToPerpsError as a7, type DepositToPerpsRequest as a8, type DisarmPerpsAutoCancelRequest as a9, FetchMarketTagsError as aA, FetchMidpointError as aB, FetchMidpointsError as aC, FetchNotificationsError as aD, FetchOpenInterestError as aE, FetchOrderBookError as aF, FetchOrderBooksError as aG, FetchOrderError as aH, FetchOrderScoringError as aI, FetchOrdersScoringError as aJ, type FetchPerpsAccountConfigRequest as aK, FetchPerpsBookError as aL, type FetchPerpsBookRequest as aM, FetchPerpsBuilderApprovalsError as aN, type FetchPerpsBuilderApprovalsRequest as aO, FetchPerpsBuilderEarningsSummaryError as aP, type FetchPerpsBuilderEarningsSummaryRequest as aQ, FetchPerpsBuilderStatusError as aR, type FetchPerpsBuilderStatusRequest as aS, FetchPerpsChasesError as aT, FetchPerpsFeesError as aU, FetchPerpsInstrumentsError as aV, type FetchPerpsInstrumentsRequest as aW, type FetchPerpsOpenOrdersRequest as aX, type FetchPerpsOrdersRequest as aY, FetchPerpsPositionSnapshotsError as aZ, type FetchPerpsPositionSnapshotsRequest as a_, type DiscoveryActions as aa, DownloadAccountingSnapshotError as ab, DropNotificationsError as ac, type EnvironmentConfig as ad, type EnvironmentConfigFork as ae, type EnvironmentContracts as af, type EquityPriceSubscription as ag, type EquityPricesSubscription as ah, type EquityTwapPriceSubscription as ai, type Erc1155TradingApproval as aj, type Erc20TradingApproval as ak, EstimateMarketPriceError as al, ExecuteCollateralReturnPlanError as am, type ExecuteCollateralReturnPlanRequest as an, type Fetch as ao, FetchBuilderVolumeError as ap, FetchClosedOnlyModeError as aq, FetchCommentsByIdError as ar, FetchCurrentRebatesError as as, type FetchCurrentRebatesRequest as at, FetchEventError as au, FetchEventLiveVolumeError as av, FetchEventTagsError as aw, FetchLastTradePriceError as ax, FetchLastTradePricesError as ay, FetchMarketError as az, type TransactionCall as b, type ListPerpsPnlHistoryRequest as b$, type FetchPerpsRegistrationRequest as b0, FetchPerpsTickerError as b1, type FetchPerpsTickerRequest as b2, FetchPerpsTickersError as b3, type FetchPerpsTickersRequest as b4, FetchPerpsTwapsError as b5, FetchPortfolioValueError as b6, FetchPriceError as b7, FetchPricesError as b8, FetchPublicProfileError as b9, ListActivityError as bA, ListBiggestWinnersError as bB, ListBuilderLeaderboardError as bC, ListBuilderTradesError as bD, ListComboActivityError as bE, ListComboMarketsError as bF, ListComboPositionsError as bG, ListCommentsByUserAddressError as bH, ListCommentsError as bI, ListCurrentRewardsError as bJ, ListEventsError as bK, ListMarketHoldersError as bL, ListMarketRewardsError as bM, ListMarketsError as bN, ListOpenOrdersError as bO, ListPerpsBuilderEarningsError as bP, type ListPerpsBuilderEarningsRequest as bQ, ListPerpsCandlesError as bR, type ListPerpsCandlesRequest as bS, type ListPerpsDepositsRequest as bT, type ListPerpsEquityHistoryRequest as bU, type ListPerpsFillsRequest as bV, ListPerpsFundingHistoryError as bW, type ListPerpsFundingHistoryRequest as bX, type ListPerpsFundingPaymentsRequest as bY, type ListPerpsInternalTransfersRequest as bZ, type ListPerpsNotificationsRequest as b_, FetchRelatedTagResourcesError as ba, FetchRelatedTagsError as bb, FetchResolutionsError as bc, FetchRewardPercentagesError as bd, FetchRfqStatusError as be, type FetchRfqStatusParams as bf, FetchSeriesError as bg, FetchSessionKeysError as bh, FetchSpreadError as bi, FetchSpreadsError as bj, FetchTagError as bk, FetchTokenReferencesError as bl, type FetchTokenReferencesRequest as bm, FetchTotalEarningsForUserForDayError as bn, FetchTraderLeaderboardStandingError as bo, FetchTradingApprovalsStateError as bp, type FetchTradingApprovalsStateRequest as bq, FetchUserPnlError as br, FetchUserStatsError as bs, FetchUserVolumeError as bt, HorizontalMergeError as bu, type HorizontalMergeWorkflow as bv, HorizontalSplitError as bw, type HorizontalSplitWorkflow as bx, InsufficientLiquidityError as by, ListAccountTradesError as bz, ServiceClient as c, type PostPerpsOrdersRequest as c$, ListPerpsTradesError as c0, type ListPerpsTradesRequest as c1, type ListPerpsWithdrawalsRequest as c2, ListPositionsError as c3, ListPriceHistoryError as c4, ListRewardMarketsError as c5, type ListRewardMarketsRequest as c6, ListSeriesError as c7, ListTagsError as c8, ListTeamsError as c9, type PerpsEndpoints as cA, type PerpsOrderRequest as cB, type PerpsPlaceFokOrderRequest as cC, type PerpsPlaceGtcOrderRequest as cD, type PerpsPlaceGtdOrderRequest as cE, type PerpsPlaceIocOrderRequest as cF, type PerpsPlacedTpSlOrder as cG, type PerpsPlacedTpSlOrders as cH, type PerpsPositionSnapshotFill as cI, type PerpsPositionSnapshotSelection as cJ, type PerpsPositionTpSlTrigger as cK, type PerpsPositionTrailingStop as cL, PerpsSession as cM, type PerpsSessionAccountError as cN, type PerpsSessionLifecycleError as cO, type PerpsSessionTradingError as cP, type PerpsTpSlTrigger as cQ, type PerpsTrailingStop as cR, type PlacePerpsOrderRequest as cS, type PlacePerpsOrderResult as cT, type PlacePerpsOrderWithTpSlRequest as cU, type PlacePerpsOrderWithTpSlResult as cV, type PlacePerpsPositionTpSlRequest as cW, type PlacePerpsPositionTpSlResult as cX, PlanCollateralReturnError as cY, PostOrderError as cZ, PostOrdersError as c_, ListTraderLeaderboardError as ca, ListTradesError as cb, ListUserEarningsAndMarketsConfigError as cc, ListUserEarningsForDayError as cd, type MarkPerpsNotificationsReadRequest as ce, MergePositionsError as cf, type NegRiskWorkflow as cg, OpenPerpsSessionError as ch, type OpenPerpsSessionRequest as ci, OpenRfqSessionError as cj, OperationAbortedError as ck, OrderHeartbeatMismatchError as cl, type OrderSignature as cm, type Page as cn, PageSizeSchema as co, type Paginated as cp, PaginationLimitError as cq, PausePerpsTwapError as cr, type PausePerpsTwapRequest as cs, type PerpsActions as ct, type PerpsBookDepth as cu, type PerpsBuilderTermsInput as cv, type PerpsCancelOptions as cw, PerpsCancelRetryError as cx, type PerpsCancelRetryErrorOptions as cy, type PerpsCancelRetryOptions as cz, AcceptComboQuoteError as d, type SecureActions as d$, PrepareConvertError as d0, type PrepareConvertRequest as d1, PrepareHorizontalMergeError as d2, type PrepareHorizontalMergeRequest as d3, PrepareHorizontalSplitError as d4, type PrepareHorizontalSplitRequest as d5, type PriceSubscription as d6, type PriceSubscriptionConfirmation as d7, type PublicAccountActions as d8, type PublicActions as d9, type RevokePerpsCredentialsRequest as dA, RevokeSessionKeyError as dB, type RevokeSessionKeyRequest as dC, type RfqCancelQuoteAck as dD, RfqCancelQuoteError as dE, RfqCancelQuoteRejectedError as dF, type RfqCancelQuoteRejectedErrorOptions as dG, type RfqConfirmationAck as dH, RfqConfirmationError as dI, RfqConfirmationRejectedError as dJ, type RfqConfirmationRequestEvent as dK, type RfqEvent as dL, RfqQuoteError as dM, type RfqQuoteReference as dN, RfqQuoteRejectedError as dO, type RfqQuoteRejectedErrorOptions as dP, type RfqQuoteRequestEvent as dQ, type RfqQuoteResponse as dR, type RfqQuoteSource as dS, RfqRequestRejectedError as dT, type RfqRequestRejectedErrorOptions as dU, type RfqSession as dV, type RfqStatusResult as dW, type RfqTradeEvent as dX, SearchError as dY, SearchSort as dZ, type SecureAccountActions as d_, type PublicClient as da, type PublicClientOptions as db, type PublicPerpsActions as dc, type PublicRewardsActions as dd, type PublicSubscriptionsActions as de, type PublicWalletActions as df, type RateLimitBucket as dg, RateLimitError as dh, type RateLimitErrorOptions as di, type RateLimitUpdate as dj, type RateLimitUpdateListener as dk, RedeemPositionsError as dl, RequestAbortedError as dm, RequestComboQuoteError as dn, type RequestComboQuoteParams as dp, type RequestComboQuoteResult as dq, type RequestOptions as dr, RequestRejectedError as ds, type RequestRejectedErrorOptions as dt, type RestEndpoint as du, type ResumePerpsSessionRequest as dv, ResumePerpsTwapError as dw, type ResumePerpsTwapRequest as dx, RevokePerpsBuilderFeeError as dy, RevokePerpsCredentialsError as dz, type AcceptComboQuoteParams as e, WaitForComboFillError as e$, type SecureClient as e0, type SecureClientOptions as e1, type SecureDownloadAccountingSnapshotRequest as e2, type SecureFetchPortfolioValueRequest as e3, type SecureFetchTraderLeaderboardStandingRequest as e4, type SecureFetchUserPnlRequest as e5, type SecureFetchUserStatsRequest as e6, type SecureFetchUserVolumeRequest as e7, type SecureListActivityRequest as e8, type SecureListComboActivityRequest as e9, type SignedOrder as eA, type SignerTransactionRequest as eB, SignerType as eC, SigningError as eD, SplitPositionError as eE, SubscribeError as eF, type SubscriptionHandle as eG, TimeoutError as eH, type TradingApprovalRequirements as eI, type TradingApprovalsState as eJ, TradingRestriction as eK, TransactionFailedError as eL, type TransactionHandle as eM, type TransactionOutcome as eN, TransferErc20Error as eO, TransferPerpsCollateralError as eP, type TransferPerpsCollateralRequest as eQ, TransportError as eR, type TypedDataDomain as eS, type TypedDataField as eT, UnexpectedResponseError as eU, UpdatePerpsLeverageError as eV, type UpdatePerpsLeverageRequest as eW, UpdatePerpsLeveragesError as eX, type UpdatePerpsLeveragesRequest as eY, UpdatePerpsMarginError as eZ, type UpdatePerpsMarginRequest as e_, type SecureListComboPositionsRequest as ea, type SecureListPositionsRequest as eb, type SecurePerpsActions as ec, type SecureRewardsActions as ed, type SecureRfqActions as ee, type SecureSubscriptionsActions as ef, type SecureTradingActions as eg, type SecureWalletActions as eh, SendOrderHeartbeatError as ei, type SendOrderHeartbeatRequest as ej, type ServiceClientDeleteOptions as ek, type ServiceClientGetOptions as el, type ServiceClientJsonResponseOptions as em, type ServiceClientNonJsonResponseOptions as en, type ServiceClientNonJsonResponseType as eo, type ServiceClientPatchOptions as ep, type ServiceClientPostOptions as eq, ServiceClientRequestError as er, type ServiceClientRequestOptions as es, type ServiceClientResponse as et, type ServiceClientResponseOptions as eu, type ServiceClientResponseType as ev, type SessionKey as ew, type SessionKeyActions as ex, SetupGaslessWalletError as ey, SetupTradingApprovalsError as ez, type AcceptComboQuoteResult as f, FetchMarketInfoError as f$, type WaitForComboFillParams as f0, type WaitForComboFillResult as f1, WaitForOrderFillSettlementError as f2, WaitForTransactionError as f3, type WalletDerivationConfig as f4, type WebSocketCloseCode as f5, type WebSocketEndpoint as f6, WebSocketKnownCloseCode as f7, WithdrawFromPerpsError as f8, type WithdrawFromPerpsRequest as f9, type EquityPricesEventType as fA, type Erc1155ApprovalForAllWorkflow as fB, type Erc1155ApprovalForAllWorkflowRequest as fC, type Erc20ApprovalWorkflow as fD, type Erc20ApprovalWorkflowRequest as fE, type Erc20TransferWorkflow as fF, type Erc20TransferWorkflowRequest as fG, type EstimateMarketBuyPriceRequest as fH, type EstimateMarketPriceRequest as fI, type EstimateMarketSellPriceRequest as fJ, type EventForSubscriptionSpec as fK, type EventForSubscriptionSpecs as fL, FetchBalanceAllowanceError as fM, type FetchBalanceAllowanceRequest as fN, FetchBuilderFeeRatesError as fO, type FetchBuilderFeeRatesRequest as fP, type FetchBuilderVolumeRequest as fQ, type FetchCommentsByIdRequest as fR, type FetchEventLiveVolumeRequest as fS, type FetchEventRequest as fT, type FetchEventTagsRequest as fU, FetchExecuteParamsError as fV, type FetchExecuteParamsRequest as fW, FetchGaslessTransactionError as fX, type FetchGaslessTransactionRequest as fY, type FetchLastTradePriceRequest as fZ, type FetchLastTradePricesRequest as f_, accountActions as fa, allActions as fb, analyticsActions as fc, createPublicClient as fd, createSecureClient as fe, dataActions as ff, discoveryActions as fg, forkEnvironmentConfig as fh, makeErrorGuard as fi, perpsActions as fj, production as fk, rewardsActions as fl, rfqActions as fm, sessionKeyActions as fn, subscriptionsActions as fo, tradingActions as fp, walletActions as fq, type CancelMarketOrdersRequest as fr, type CancelOrderRequest as fs, type CancelOrdersRequest as ft, type CollateralReturnExecutionWorkflow as fu, type CommentsEventType as fv, type CryptoPricesEventType as fw, DeployDepositWalletError as fx, type DownloadAccountingSnapshotRequest as fy, type DropNotificationsRequest as fz, type AccountIdentity as g, type ListTradesRequest as g$, type FetchMarketInfoRequest as g0, type FetchMarketRequest as g1, type FetchMarketTagsRequest as g2, type FetchMidpointRequest as g3, type FetchMidpointsRequest as g4, FetchNegRiskError as g5, type FetchNegRiskRequest as g6, type FetchOpenInterestRequest as g7, type FetchOrderBookRequest as g8, type FetchOrderBooksRequest as g9, type GaslessWorkflowRequest as gA, IsWalletDeployedError as gB, type IsWalletDeployedRequest as gC, type ListAccountTradesRequest as gD, type ListActivityRequest as gE, type ListBiggestWinnersRequest as gF, type ListBuilderLeaderboardRequest as gG, type ListBuilderTradesRequest as gH, type ListComboActivityRequest as gI, type ListComboMarketsRequest as gJ, type ListComboPositionsRequest as gK, type ListCommentsByUserAddressRequest as gL, type ListCommentsRequest as gM, type ListCurrentRewardsRequest as gN, type ListEventsRequest as gO, ListMarketClarificationsError as gP, type ListMarketClarificationsRequest as gQ, type ListMarketHoldersRequest as gR, type ListMarketRewardsRequest as gS, type ListMarketsRequest as gT, type ListOpenOrdersRequest as gU, type ListPositionsRequest as gV, type ListPriceHistoryRequest as gW, type ListSeriesRequest as gX, type ListTagsRequest as gY, type ListTeamsRequest as gZ, type ListTraderLeaderboardRequest as g_, type FetchOrderRequest as ga, type FetchOrderScoringRequest as gb, type FetchOrdersScoringRequest as gc, type FetchPortfolioValueRequest as gd, type FetchPriceRequest as ge, type FetchPricesRequest as gf, type FetchPublicProfileRequest as gg, type FetchRelatedTagResourcesRequest as gh, type FetchRelatedTagsRequest as gi, type FetchResolutionsByConditionRequest as gj, type FetchResolutionsByEventRequest as gk, type FetchResolutionsByQuestionRequest as gl, type FetchResolutionsRequest as gm, type FetchSeriesRequest as gn, type FetchSpreadRequest as go, type FetchSpreadsRequest as gp, type FetchTagRequest as gq, FetchTickSizeError as gr, type FetchTickSizeRequest as gs, type FetchTotalEarningsForUserForDayRequest as gt, type FetchTraderLeaderboardStandingRequest as gu, type FetchUserPnlRequest as gv, type FetchUserStatsRequest as gw, type FetchUserVolumeRequest as gx, GaslessTransactionMetadataSchema as gy, type GaslessWorkflow as gz, type AnalyticsActions as h, type RedeemPositionsWorkflowRequest as h$, type ListUserEarningsAndMarketsConfigRequest as h0, type ListUserEarningsForDayRequest as h1, type MarketEventType as h2, type MarketSubscription as h3, MergeComboPositionError as h4, MergeMarketPositionError as h5, type MergePositionsWorkflow as h6, type MergePositionsWorkflowRequest as h7, type OrderPostingWorkflow as h8, type OrderWorkflow as h9, PrepareMergeComboPositionError as hA, type PrepareMergeComboPositionRequest as hB, PrepareMergeMarketPositionError as hC, type PrepareMergeMarketPositionRequest as hD, PrepareMergePositionsError as hE, type PrepareMergePositionsRequest as hF, PreparePerpsDepositError as hG, PrepareRedeemComboPositionError as hH, type PrepareRedeemComboPositionRequest as hI, type PrepareRedeemMarketPositionsByConditionIdRequest as hJ, type PrepareRedeemMarketPositionsByMarketIdRequest as hK, PrepareRedeemMarketPositionsError as hL, type PrepareRedeemMarketPositionsRequest as hM, type PrepareRedeemPositionRequest as hN, PrepareRedeemPositionsError as hO, type PrepareRedeemPositionsRequest as hP, PrepareSplitComboPositionError as hQ, type PrepareSplitComboPositionRequest as hR, PrepareSplitMarketPositionError as hS, type PrepareSplitMarketPositionRequest as hT, PrepareSplitPositionError as hU, type PrepareSplitPositionRequest as hV, PrepareTradingApprovalsError as hW, type PublicRealtimeEvent as hX, type PublicRealtimeTopic as hY, type PublicSubscriptionSpec as hZ, type RedeemPositionsWorkflow as h_, type OrderWorkflowRequest as ha, type PerpsBboSubscription as hb, type PerpsBookSubscription as hc, type PerpsCandlesSubscription as hd, type PerpsDepositWorkflow as he, type PerpsDepositWorkflowRequest as hf, type PerpsMarketDataEventType as hg, type PerpsMarketDataSubscription as hh, type PerpsStatisticsSubscription as hi, type PerpsStreamingCandleInterval as hj, type PerpsTickersSubscription as hk, type PerpsTradesSubscription as hl, type PostOrdersRequest as hm, PrepareCollateralReturnExecutionError as hn, PrepareErc1155ApprovalForAllError as ho, type PrepareErc1155ApprovalForAllRequest as hp, PrepareErc20ApprovalError as hq, type PrepareErc20ApprovalRequest as hr, PrepareErc20TransferError as hs, type PrepareErc20TransferRequest as ht, PrepareGaslessTransactionError as hu, type PrepareGaslessTransactionRequest as hv, type PrepareLimitOrderRequest as hw, type PrepareMarketBuyOrderRequest as hx, type PrepareMarketOrderRequest as hy, type PrepareMarketSellOrderRequest as hz, ApproveErc1155ForAllError as i, fetchOrderScoring as i$, ResolveConditionByTokenError as i0, type ResolveConditionByTokenRequest as i1, type RfqConfirmationRejectedErrorOptions as i2, type RfqExecutionUpdateEvent as i3, type SearchRequest as i4, type SearchResults as i5, type SecureRealtimeEvent as i6, type SecureRealtimeTopic as i7, type SecureSubscriptionSpec as i8, SplitComboPositionError as i9, downloadAccountingSnapshot as iA, dropNotifications as iB, estimateMarketPrice as iC, executeCollateralReturnPlan as iD, fetchBalanceAllowance as iE, fetchBuilderFeeRates as iF, fetchBuilderVolume as iG, fetchClosedOnlyMode as iH, fetchCommentsById as iI, fetchCurrentRebates as iJ, fetchEvent as iK, fetchEventLiveVolume as iL, fetchEventTags as iM, fetchExecuteParams as iN, fetchLastTradePrice as iO, fetchLastTradePrices as iP, fetchMarket as iQ, fetchMarketInfo as iR, fetchMarketTags as iS, fetchMidpoint as iT, fetchMidpoints as iU, fetchNegRisk as iV, fetchNotifications as iW, fetchOpenInterest as iX, fetchOrder as iY, fetchOrderBook as iZ, fetchOrderBooks as i_, SplitMarketPositionError as ia, type SplitPositionWorkflow as ib, type SplitPositionWorkflowRequest as ic, type SportsEventType as id, type SportsSubscription as ie, type TradingApprovalsWorkflow as ig, type TradingApprovalsWorkflowRequest as ih, UpdateBalanceAllowanceError as ii, type UpdateBalanceAllowanceRequest as ij, type UserEventType as ik, type UserSubscription as il, WaitForGaslessTransactionError as im, type WaitForOrderFillSettlementRequest as io, acceptComboQuote as ip, approveErc1155ForAll as iq, approveErc20 as ir, authorizeSessionKey as is, cancelAll as it, cancelMarketOrders as iu, cancelOrder as iv, cancelOrders as iw, convert as ix, deployDepositWallet as iy, depositToPerps as iz, ApproveErc20Error as j, listUserEarningsAndMarketsConfig as j$, fetchOrdersScoring as j0, fetchPerpsBook as j1, fetchPerpsBuilderStatus as j2, fetchPerpsFees as j3, fetchPerpsInstruments as j4, fetchPerpsPositionSnapshots as j5, fetchPerpsRegistration as j6, fetchPerpsTicker as j7, fetchPerpsTickers as j8, fetchPortfolioValue as j9, listActivity as jA, listBiggestWinners as jB, listBuilderLeaderboard as jC, listBuilderTrades as jD, listComboActivity as jE, listComboMarkets as jF, listComboPositions as jG, listComments as jH, listCommentsByUserAddress as jI, listCurrentRewards as jJ, listEvents as jK, listMarketClarifications as jL, listMarketHolders as jM, listMarketRewards as jN, listMarkets as jO, listOpenOrders as jP, listPerpsCandles as jQ, listPerpsFundingHistory as jR, listPerpsTrades as jS, listPositions as jT, listPriceHistory as jU, listRewardMarkets as jV, listSeries as jW, listTags as jX, listTeams as jY, listTraderLeaderboard as jZ, listTrades as j_, fetchPrice as ja, fetchPrices as jb, fetchPublicProfile as jc, fetchRelatedTagResources as jd, fetchRelatedTags as je, fetchResolutions as jf, fetchRewardPercentages as jg, fetchRfqStatus as jh, fetchSeries as ji, fetchSessionKeys as jj, fetchSpread as jk, fetchSpreads as jl, fetchTag as jm, fetchTickSize as jn, fetchTokenReferences as jo, fetchTotalEarningsForUserForDay as jp, fetchTraderLeaderboardStanding as jq, fetchTradingApprovalsState as jr, fetchTransaction as js, fetchUserPnl as jt, fetchUserStats as ju, fetchUserVolume as jv, horizontalMerge as jw, horizontalSplit as jx, isWalletDeployed as jy, listAccountTrades as jz, ApprovePerpsBuilderFeeError as k, listUserEarningsForDay as k0, mergeComboPosition as k1, mergeMarketPosition as k2, mergePositions as k3, openPerpsSession as k4, openRfqSession as k5, planCollateralReturn as k6, postOrder as k7, postOrders as k8, prepareCollateralReturnExecution as k9, setupTradingApprovals as kA, splitComboPosition as kB, splitMarketPosition as kC, splitPosition as kD, subscribe as kE, transferErc20 as kF, transferPerpsCollateral as kG, updateBalanceAllowance as kH, waitForComboFill as kI, waitForOrderFillSettlement as kJ, withdrawFromPerps as kK, prepareConvert as ka, prepareErc1155ApprovalForAll as kb, prepareErc20Approval as kc, prepareErc20Transfer as kd, prepareGaslessTransaction as ke, prepareHorizontalMerge as kf, prepareHorizontalSplit as kg, prepareMergeComboPosition as kh, prepareMergeMarketPosition as ki, prepareMergePositions as kj, preparePerpsDeposit as kk, prepareRedeemComboPosition as kl, prepareRedeemMarketPositions as km, prepareRedeemPosition as kn, prepareRedeemPositions as ko, prepareSplitComboPosition as kp, prepareSplitMarketPosition as kq, prepareSplitPosition as kr, prepareTradingApprovals as ks, redeemPositions as kt, requestComboQuote as ku, resolveConditionByToken as kv, revokePerpsCredentials as kw, revokeSessionKey as kx, search as ky, sendOrderHeartbeat as kz, type ApprovePerpsBuilderFeeRequest as l, ArmPerpsAutoCancelError as m, type ArmPerpsAutoCancelRequest as n, AuthorizeSessionKeyError as o, type AuthorizeSessionKeyRequest as p, type AuthorizeSessionKeyResult as q, AutoCancelDailyLimitError as r, BasePublicClient as s, BaseSecureClient as t, type BeginAuthenticationRequest as u, type CancelAllPerpsOrdersRequest as v, CancelMarketOrdersError as w, CancelOrderError as x, CancelOrdersError as y, CancelPerpsChaseError as z };
|