@polymarket/client 0.12.0 → 0.13.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/dist/actions/index.d.ts +6 -6
- package/dist/actions/index.js +1 -1
- package/dist/chunk-MY66WYAN.js +3 -0
- package/dist/chunk-MY66WYAN.js.map +1 -0
- package/dist/ethers-v5.d.ts +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{sports-CERQxAjR.d.ts → sports-DxgyI41A.d.ts} +1 -1
- package/dist/{types-B9F4CyS-.d.ts → types-BGxCI8uu.d.ts} +515 -25
- package/dist/viem.d.ts +1 -1
- package/package.json +2 -2
- package/dist/chunk-5JHFOBBZ.js +0 -3
- package/dist/chunk-5JHFOBBZ.js.map +0 -1
|
@@ -8,10 +8,10 @@ import { ZodError, z } from 'zod';
|
|
|
8
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';
|
|
9
9
|
import * as _polymarket_bindings_data from '@polymarket/bindings/data';
|
|
10
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';
|
|
11
|
-
import { PerpsCancelOrderResult, PerpsBuilderStatus, 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, PerpsInstrument, PerpsTicker, PerpsBook, PerpsCandle, PerpsFundingRate, PerpsPublicTrade, PerpsFeeScheduleEntry, PerpsInternalTransferId, PerpsWithdrawalId, PerpsInstrumentCategory, PerpsKlineInterval } from '@polymarket/bindings/perps';
|
|
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';
|
|
14
|
-
import { PerpsSessionEvent, CommentsEvent, CryptoPricesTopic, CryptoPricesChainlinkTwapTopic, CryptoPricesChainlinkTwapWindowSeconds, EquityPricesTopic, EquityPricesEvent, MarketEvent, StandardMarketEvent, CryptoPricesChainlinkTwapThirtyEvent, CryptoPricesChainlinkTwapSixtyEvent, CryptoPricesChainlinkTwapEvent, CryptoPriceEvent, CryptoTwapPriceEvent, EquityPriceEvent, CryptoPricesBinanceEvent, CryptoPricesChainlinkEvent, UserEvent, SportsEvent, PerpsTradeEvent, PerpsBboEvent, PerpsBookEvent, PerpsCandleEvent, PerpsTickerEvent, PerpsStatisticEvent, CryptoPricesEvent, PerpsMarketDataEvent } from '@polymarket/bindings/subscriptions';
|
|
14
|
+
import { PerpsSessionEvent, CommentsEvent, CryptoPricesTopic, CryptoPricesChainlinkTwapTopic, CryptoPricesChainlinkTwapWindowSeconds, EquityPricesTopic, EquityPricesEvent, PriceProvider, PriceSource, MarketEvent, StandardMarketEvent, CryptoPricesChainlinkTwapThirtyEvent, CryptoPricesChainlinkTwapSixtyEvent, CryptoPricesChainlinkTwapEvent, CryptoPriceEvent, CryptoTwapPriceEvent, EquityPriceEvent, EquityTwapPriceEvent, CryptoPricesBinanceEvent, CryptoPricesChainlinkEvent, UserEvent, SportsEvent, PerpsTradeEvent, PerpsBboEvent, PerpsBookEvent, PerpsCandleEvent, PerpsTickerEvent, PerpsStatisticEvent, CryptoPricesEvent, PerpsMarketDataEvent } from '@polymarket/bindings/subscriptions';
|
|
15
15
|
import { Hex } from 'ox';
|
|
16
16
|
|
|
17
17
|
/** Independent rate-limit bucket affected by an order or cancellation. */
|
|
@@ -707,6 +707,7 @@ declare const ListPositionsRequestSchema: z.ZodObject<{
|
|
|
707
707
|
conditionId: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.ConditionId, string>>, z.ZodTransform<_polymarket_bindings.ConditionId, _polymarket_bindings.ConditionId>>, 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[]>>]>>;
|
|
708
708
|
status: z.ZodOptional<z.ZodEnum<typeof PositionStatus>>;
|
|
709
709
|
eventId: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>, z.ZodTransform<_polymarket_bindings.EventId, string>>>>;
|
|
710
|
+
title: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
710
711
|
filterType: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.PositionFilterType>>;
|
|
711
712
|
filterAmount: z.ZodOptional<z.ZodNumber>;
|
|
712
713
|
includeArchived: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -749,6 +750,8 @@ declare const ListPositionsError: {
|
|
|
749
750
|
* filter to mergeable positions; a `conditionId`-only request falls back
|
|
750
751
|
* to the broader `OPEN` listing. `sortBy` defaults to `TOKENS` for
|
|
751
752
|
* `MERGEABLE`, `REALIZED_PNL` for `CLOSED`, and `CURRENT_VALUE` otherwise.
|
|
753
|
+
* `title` filters by case-insensitive substring across every status and
|
|
754
|
+
* anchor; the paginator retains it when advancing or resuming.
|
|
752
755
|
*
|
|
753
756
|
* @remarks
|
|
754
757
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -1081,6 +1084,9 @@ type PublicAccountActions = Prettify<{
|
|
|
1081
1084
|
*
|
|
1082
1085
|
* `sortBy` defaults to `TOKENS` for `MERGEABLE`, `REALIZED_PNL` for
|
|
1083
1086
|
* `CLOSED`, and `CURRENT_VALUE` for the other statuses.
|
|
1087
|
+
* `title` filters by case-insensitive substring (max 200 Unicode characters).
|
|
1088
|
+
* `%` and `_` are wildcards. Blank input is ignored; other patterns are
|
|
1089
|
+
* preserved unchanged on every page, including cursor replay.
|
|
1084
1090
|
*
|
|
1085
1091
|
* @throws {@link ListPositionsError}
|
|
1086
1092
|
* Thrown on failure.
|
|
@@ -1334,6 +1340,9 @@ type SecureAccountActions = Prettify<{
|
|
|
1334
1340
|
*
|
|
1335
1341
|
* `sortBy` defaults to `TOKENS` for `MERGEABLE`, `REALIZED_PNL` for
|
|
1336
1342
|
* `CLOSED`, and `CURRENT_VALUE` for the other statuses.
|
|
1343
|
+
* `title` filters by case-insensitive substring (max 200 Unicode characters).
|
|
1344
|
+
* `%` and `_` are wildcards. Blank input is ignored; other patterns are
|
|
1345
|
+
* preserved unchanged on every page, including cursor replay.
|
|
1337
1346
|
*
|
|
1338
1347
|
* @throws {@link ListPositionsError}
|
|
1339
1348
|
* Thrown on failure.
|
|
@@ -2652,6 +2661,56 @@ declare const ApprovePerpsBuilderFeeError: {
|
|
|
2652
2661
|
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
2653
2662
|
};
|
|
2654
2663
|
|
|
2664
|
+
/** A historical fill key. Trade IDs remain decimal strings, including above 2^53.
|
|
2665
|
+
* @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
2666
|
+
type PerpsPositionSnapshotFill = {
|
|
2667
|
+
instrumentId: number;
|
|
2668
|
+
tradeId: string;
|
|
2669
|
+
timestamp: number;
|
|
2670
|
+
};
|
|
2671
|
+
/** Select up to 20 active instruments and 4 historical fills, with at least one selection.
|
|
2672
|
+
* @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
2673
|
+
type PerpsPositionSnapshotSelection = {
|
|
2674
|
+
activeInstrumentIds?: readonly number[];
|
|
2675
|
+
historyFills?: readonly PerpsPositionSnapshotFill[];
|
|
2676
|
+
};
|
|
2677
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
2678
|
+
type FetchPerpsPositionSnapshotsRequest = PerpsPositionSnapshotSelection & {
|
|
2679
|
+
address: string;
|
|
2680
|
+
};
|
|
2681
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
2682
|
+
type FetchPerpsPositionSnapshotsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2683
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
2684
|
+
declare const FetchPerpsPositionSnapshotsError: {
|
|
2685
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
2686
|
+
};
|
|
2687
|
+
/** Fetches ordered position snapshots anonymously, including on secure clients.
|
|
2688
|
+
* Use session.fetchPositionSnapshots for owner-only leverage and PnL percentage.
|
|
2689
|
+
* This direct batch read does not paginate or retry item statuses.
|
|
2690
|
+
* @throws {@link FetchPerpsPositionSnapshotsError} Thrown on failure.
|
|
2691
|
+
* @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>;
|
|
2693
|
+
|
|
2694
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
2695
|
+
type FetchPerpsRegistrationRequest = {
|
|
2696
|
+
/** Address whose Perps account registration should be checked. */
|
|
2697
|
+
address: string;
|
|
2698
|
+
};
|
|
2699
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
2700
|
+
type FetchPerpsRegistrationError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2701
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
2702
|
+
declare const FetchPerpsRegistrationError: {
|
|
2703
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
2704
|
+
};
|
|
2705
|
+
/**
|
|
2706
|
+
* Fetches whether an address has a Perps account without authentication.
|
|
2707
|
+
* Registration is permanent; a false result may be cached for up to ten seconds.
|
|
2708
|
+
*
|
|
2709
|
+
* @throws {@link FetchPerpsRegistrationError} Thrown on failure.
|
|
2710
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2711
|
+
*/
|
|
2712
|
+
declare function fetchPerpsRegistration(client: BaseClient, request: FetchPerpsRegistrationRequest): Promise<boolean>;
|
|
2713
|
+
|
|
2655
2714
|
type ServiceRequest = {
|
|
2656
2715
|
method: 'DELETE' | 'GET' | 'PATCH' | 'POST';
|
|
2657
2716
|
path: string;
|
|
@@ -2912,6 +2971,43 @@ declare const FetchPerpsBuilderEarningsSummaryError: {
|
|
|
2912
2971
|
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
2913
2972
|
};
|
|
2914
2973
|
|
|
2974
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
2975
|
+
type CreatePerpsChaseRequest = {
|
|
2976
|
+
instrumentId: number;
|
|
2977
|
+
side: OrderSide;
|
|
2978
|
+
quantity: PerpsDecimalInput;
|
|
2979
|
+
/** Highest buy price or lowest sell price. Zero or omission disables this bound. */ limitPrice?: PerpsDecimalInput;
|
|
2980
|
+
/** Maximum distance from the first price at which a child rests or fills. Zero or omission disables this bound. */ maxDistance?: PerpsDecimalInput;
|
|
2981
|
+
/** 1 to 1000 bps. Omit to disable; cannot combine with positive maxDistance. */ maxDistanceBps?: number;
|
|
2982
|
+
/** Refuse children that cross. Defaults to true. */ postOnly?: boolean;
|
|
2983
|
+
reduceOnly?: boolean;
|
|
2984
|
+
/** Retain this identity when reconciling an uncertain submission. */ clientOrderId?: string;
|
|
2985
|
+
/** Command deadline in Unix milliseconds; does not end the chase. */ expiresAt?: number;
|
|
2986
|
+
};
|
|
2987
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
2988
|
+
type CreatePerpsChaseError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
2989
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
2990
|
+
declare const CreatePerpsChaseError: {
|
|
2991
|
+
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
2992
|
+
};
|
|
2993
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
2994
|
+
type FetchPerpsChasesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError;
|
|
2995
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
2996
|
+
declare const FetchPerpsChasesError: {
|
|
2997
|
+
isError(error: unknown): error is TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
2998
|
+
};
|
|
2999
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
3000
|
+
type CancelPerpsChaseRequest = {
|
|
3001
|
+
chaseId: number;
|
|
3002
|
+
/** Command deadline in Unix milliseconds. */ expiresAt?: number;
|
|
3003
|
+
};
|
|
3004
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
3005
|
+
type CancelPerpsChaseError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3006
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
3007
|
+
declare const CancelPerpsChaseError: {
|
|
3008
|
+
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
3009
|
+
};
|
|
3010
|
+
|
|
2915
3011
|
/**
|
|
2916
3012
|
* Good-til-cancelled Perps order.
|
|
2917
3013
|
*
|
|
@@ -2928,6 +3024,32 @@ type PerpsPlaceGtcOrderRequest = {
|
|
|
2928
3024
|
quantity: PerpsDecimalInput;
|
|
2929
3025
|
/** Good-til-cancelled execution. */
|
|
2930
3026
|
timeInForce: PerpsTimeInForce.GTC;
|
|
3027
|
+
gtdExpiry?: never;
|
|
3028
|
+
/** Whether the order must rest instead of taking liquidity. */
|
|
3029
|
+
postOnly?: boolean;
|
|
3030
|
+
/** Whether the order may only reduce or close an existing position. */
|
|
3031
|
+
reduceOnly?: boolean;
|
|
3032
|
+
/** Optional caller-supplied idempotency identifier. */
|
|
3033
|
+
clientOrderId?: string;
|
|
3034
|
+
};
|
|
3035
|
+
/**
|
|
3036
|
+
* Good-till-date Perps order.
|
|
3037
|
+
*
|
|
3038
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
3039
|
+
*/
|
|
3040
|
+
type PerpsPlaceGtdOrderRequest = {
|
|
3041
|
+
/** Perps instrument identifier to trade. */
|
|
3042
|
+
instrumentId: number;
|
|
3043
|
+
/** Trade direction. */
|
|
3044
|
+
side: OrderSide;
|
|
3045
|
+
/** Limit price. */
|
|
3046
|
+
price: PerpsDecimalInput;
|
|
3047
|
+
/** Order quantity. */
|
|
3048
|
+
quantity: PerpsDecimalInput;
|
|
3049
|
+
/** Good-till-date execution. */
|
|
3050
|
+
timeInForce: PerpsTimeInForce.GTD;
|
|
3051
|
+
/** Order expiration in Unix milliseconds, strictly future and at most 18446744073709. Separate from the command deadline. */
|
|
3052
|
+
gtdExpiry: number;
|
|
2931
3053
|
/** Whether the order must rest instead of taking liquidity. */
|
|
2932
3054
|
postOnly?: boolean;
|
|
2933
3055
|
/** Whether the order may only reduce or close an existing position. */
|
|
@@ -2951,6 +3073,7 @@ type PerpsPlaceIocOrderRequest = {
|
|
|
2951
3073
|
quantity: PerpsDecimalInput;
|
|
2952
3074
|
/** Immediate-or-cancel execution. */
|
|
2953
3075
|
timeInForce: PerpsTimeInForce.IOC;
|
|
3076
|
+
gtdExpiry?: never;
|
|
2954
3077
|
postOnly?: never;
|
|
2955
3078
|
/** Whether the order may only reduce or close an existing position. */
|
|
2956
3079
|
reduceOnly?: boolean;
|
|
@@ -2973,6 +3096,7 @@ type PerpsPlaceFokOrderRequest = {
|
|
|
2973
3096
|
quantity: PerpsDecimalInput;
|
|
2974
3097
|
/** Fill-or-kill execution. */
|
|
2975
3098
|
timeInForce: PerpsTimeInForce.FOK;
|
|
3099
|
+
gtdExpiry?: never;
|
|
2976
3100
|
postOnly?: never;
|
|
2977
3101
|
/** Whether the order may only reduce or close an existing position. */
|
|
2978
3102
|
reduceOnly?: boolean;
|
|
@@ -2984,19 +3108,53 @@ type PerpsPlaceFokOrderRequest = {
|
|
|
2984
3108
|
*
|
|
2985
3109
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2986
3110
|
*/
|
|
2987
|
-
type PerpsOrderRequest = PerpsPlaceGtcOrderRequest | PerpsPlaceIocOrderRequest | PerpsPlaceFokOrderRequest;
|
|
3111
|
+
type PerpsOrderRequest = PerpsPlaceGtcOrderRequest | PerpsPlaceGtdOrderRequest | PerpsPlaceIocOrderRequest | PerpsPlaceFokOrderRequest;
|
|
2988
3112
|
/**
|
|
2989
3113
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2990
3114
|
*/
|
|
2991
3115
|
type PerpsTpSlTrigger = {
|
|
2992
3116
|
triggerPrice: PerpsDecimalInput;
|
|
2993
3117
|
limitPrice?: PerpsDecimalInput;
|
|
3118
|
+
gtdExpiry?: never;
|
|
3119
|
+
trailingBps?: never;
|
|
3120
|
+
activationPrice?: never;
|
|
2994
3121
|
};
|
|
2995
3122
|
/**
|
|
2996
3123
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2997
3124
|
*/
|
|
2998
3125
|
type PerpsPositionTpSlTrigger = {
|
|
2999
3126
|
triggerPrice: PerpsDecimalInput;
|
|
3127
|
+
trailingBps?: never;
|
|
3128
|
+
activationPrice?: never;
|
|
3129
|
+
gtdExpiry?: never;
|
|
3130
|
+
/**
|
|
3131
|
+
* Positive fixed close quantity, clamped to the live position at trigger time.
|
|
3132
|
+
* Omit to close the full position. Use a fixed-point string for exact precision;
|
|
3133
|
+
* exponent notation, more than 28 decimal places, and coefficients exceeding
|
|
3134
|
+
* 96 bits are rejected before submission.
|
|
3135
|
+
*/
|
|
3136
|
+
quantity?: PerpsDecimalInput;
|
|
3137
|
+
};
|
|
3138
|
+
/**
|
|
3139
|
+
* A market stop loss that follows favorable marks after activation.
|
|
3140
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
3141
|
+
*/
|
|
3142
|
+
type PerpsTrailingStop = {
|
|
3143
|
+
/** Pullback in basis points, an integer from 10 through 2000. */
|
|
3144
|
+
trailingBps: number;
|
|
3145
|
+
/** Positive activation mark. Omit to start trailing when the leg arms. */
|
|
3146
|
+
activationPrice?: PerpsDecimalInput;
|
|
3147
|
+
triggerPrice?: never;
|
|
3148
|
+
limitPrice?: never;
|
|
3149
|
+
gtdExpiry?: never;
|
|
3150
|
+
};
|
|
3151
|
+
/**
|
|
3152
|
+
* A trailing market stop loss protecting an open position.
|
|
3153
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
3154
|
+
*/
|
|
3155
|
+
type PerpsPositionTrailingStop = PerpsTrailingStop & {
|
|
3156
|
+
/** Positive, exactly representable close quantity. Omit to close the full position. */
|
|
3157
|
+
quantity?: PerpsDecimalInput;
|
|
3000
3158
|
};
|
|
3001
3159
|
/**
|
|
3002
3160
|
* Request parameters for posting one or more Perps orders.
|
|
@@ -3013,6 +3171,29 @@ type PostPerpsOrdersRequest = {
|
|
|
3013
3171
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
3014
3172
|
*/
|
|
3015
3173
|
type PlacePerpsOrderRequest = {
|
|
3174
|
+
/** Perps instrument identifier to trade. */
|
|
3175
|
+
instrumentId: number;
|
|
3176
|
+
/** Trade direction. */
|
|
3177
|
+
side: OrderSide;
|
|
3178
|
+
/** Limit price. */
|
|
3179
|
+
price: PerpsDecimalInput;
|
|
3180
|
+
/** Order quantity. */
|
|
3181
|
+
quantity: PerpsDecimalInput;
|
|
3182
|
+
/** Good-till-date execution. */
|
|
3183
|
+
timeInForce: PerpsTimeInForce.GTD;
|
|
3184
|
+
/** Order expiration in Unix milliseconds, strictly future and at most 18446744073709. Separate from expiresAt. */
|
|
3185
|
+
gtdExpiry: number;
|
|
3186
|
+
/** Whether the order must rest instead of taking liquidity. */
|
|
3187
|
+
postOnly?: boolean;
|
|
3188
|
+
/** Whether the order may only reduce or close an existing position. */
|
|
3189
|
+
reduceOnly?: boolean;
|
|
3190
|
+
/** Optional caller-supplied idempotency identifier. Generated when omitted. */
|
|
3191
|
+
clientOrderId?: string;
|
|
3192
|
+
/** Optional command expiration timestamp in milliseconds. */
|
|
3193
|
+
expiresAt?: number;
|
|
3194
|
+
takeProfit?: never;
|
|
3195
|
+
stopLoss?: never;
|
|
3196
|
+
} | {
|
|
3016
3197
|
/** Perps instrument identifier to trade. */
|
|
3017
3198
|
instrumentId: number;
|
|
3018
3199
|
/** Trade direction. */
|
|
@@ -3023,6 +3204,7 @@ type PlacePerpsOrderRequest = {
|
|
|
3023
3204
|
quantity: PerpsDecimalInput;
|
|
3024
3205
|
/** Good-til-cancelled execution. */
|
|
3025
3206
|
timeInForce: PerpsTimeInForce.GTC;
|
|
3207
|
+
gtdExpiry?: never;
|
|
3026
3208
|
/** Whether the order must rest instead of taking liquidity. */
|
|
3027
3209
|
postOnly?: boolean;
|
|
3028
3210
|
/** Whether the order may only reduce or close an existing position. */
|
|
@@ -3044,6 +3226,7 @@ type PlacePerpsOrderRequest = {
|
|
|
3044
3226
|
quantity: PerpsDecimalInput;
|
|
3045
3227
|
/** Immediate-or-cancel execution. */
|
|
3046
3228
|
timeInForce: PerpsTimeInForce.IOC;
|
|
3229
|
+
gtdExpiry?: never;
|
|
3047
3230
|
postOnly?: never;
|
|
3048
3231
|
/** Whether the order may only reduce or close an existing position. */
|
|
3049
3232
|
reduceOnly?: boolean;
|
|
@@ -3064,6 +3247,7 @@ type PlacePerpsOrderRequest = {
|
|
|
3064
3247
|
quantity: PerpsDecimalInput;
|
|
3065
3248
|
/** Fill-or-kill execution. */
|
|
3066
3249
|
timeInForce: PerpsTimeInForce.FOK;
|
|
3250
|
+
gtdExpiry?: never;
|
|
3067
3251
|
postOnly?: never;
|
|
3068
3252
|
/** Whether the order may only reduce or close an existing position. */
|
|
3069
3253
|
reduceOnly?: boolean;
|
|
@@ -3078,6 +3262,56 @@ type PlacePerpsOrderRequest = {
|
|
|
3078
3262
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
3079
3263
|
*/
|
|
3080
3264
|
type PlacePerpsOrderWithTpSlRequest = {
|
|
3265
|
+
/** Perps instrument identifier to trade. */
|
|
3266
|
+
instrumentId: number;
|
|
3267
|
+
/** Trade direction. */
|
|
3268
|
+
side: OrderSide;
|
|
3269
|
+
/** Limit price. */
|
|
3270
|
+
price: PerpsDecimalInput;
|
|
3271
|
+
/** Order quantity. */
|
|
3272
|
+
quantity: PerpsDecimalInput;
|
|
3273
|
+
/** Good-till-date execution. */
|
|
3274
|
+
timeInForce: PerpsTimeInForce.GTD;
|
|
3275
|
+
/** Order expiration in Unix milliseconds, strictly future and at most 18446744073709. Separate from expiresAt. */
|
|
3276
|
+
gtdExpiry: number;
|
|
3277
|
+
/** Whether the order must rest instead of taking liquidity. */
|
|
3278
|
+
postOnly?: boolean;
|
|
3279
|
+
/** Whether the order may only reduce or close an existing position. */
|
|
3280
|
+
reduceOnly?: boolean;
|
|
3281
|
+
/** Optional caller-supplied idempotency identifier. Generated when omitted. */
|
|
3282
|
+
clientOrderId?: string;
|
|
3283
|
+
/** Optional command expiration timestamp in milliseconds. */
|
|
3284
|
+
expiresAt?: number;
|
|
3285
|
+
/** Optional take-profit trigger to place with the entry order. */
|
|
3286
|
+
takeProfit?: PerpsTpSlTrigger;
|
|
3287
|
+
/** Stop-loss trigger to place with the entry order. */
|
|
3288
|
+
stopLoss: PerpsTpSlTrigger | PerpsTrailingStop;
|
|
3289
|
+
} | {
|
|
3290
|
+
/** Perps instrument identifier to trade. */
|
|
3291
|
+
instrumentId: number;
|
|
3292
|
+
/** Trade direction. */
|
|
3293
|
+
side: OrderSide;
|
|
3294
|
+
/** Limit price. */
|
|
3295
|
+
price: PerpsDecimalInput;
|
|
3296
|
+
/** Order quantity. */
|
|
3297
|
+
quantity: PerpsDecimalInput;
|
|
3298
|
+
/** Good-till-date execution. */
|
|
3299
|
+
timeInForce: PerpsTimeInForce.GTD;
|
|
3300
|
+
/** Order expiration in Unix milliseconds, strictly future and at most 18446744073709. Separate from expiresAt. */
|
|
3301
|
+
gtdExpiry: number;
|
|
3302
|
+
/** Whether the order must rest instead of taking liquidity. */
|
|
3303
|
+
postOnly?: boolean;
|
|
3304
|
+
/** Whether the order may only reduce or close an existing position. */
|
|
3305
|
+
reduceOnly?: boolean;
|
|
3306
|
+
/** Optional caller-supplied idempotency identifier. Generated when omitted. */
|
|
3307
|
+
clientOrderId?: string;
|
|
3308
|
+
/** Optional command expiration timestamp in milliseconds. */
|
|
3309
|
+
expiresAt?: number;
|
|
3310
|
+
/** Take-profit trigger to place with the entry order. */
|
|
3311
|
+
takeProfit: PerpsTpSlTrigger;
|
|
3312
|
+
/** Optional stop-loss trigger to place with the entry order. */
|
|
3313
|
+
stopLoss?: PerpsTpSlTrigger | PerpsTrailingStop;
|
|
3314
|
+
} | {
|
|
3081
3315
|
/** Perps instrument identifier to trade. */
|
|
3082
3316
|
instrumentId: number;
|
|
3083
3317
|
/** Trade direction. */
|
|
@@ -3088,6 +3322,7 @@ type PlacePerpsOrderWithTpSlRequest = {
|
|
|
3088
3322
|
quantity: PerpsDecimalInput;
|
|
3089
3323
|
/** Good-til-cancelled execution. */
|
|
3090
3324
|
timeInForce: PerpsTimeInForce.GTC;
|
|
3325
|
+
gtdExpiry?: never;
|
|
3091
3326
|
/** Whether the order must rest instead of taking liquidity. */
|
|
3092
3327
|
postOnly?: boolean;
|
|
3093
3328
|
/** Whether the order may only reduce or close an existing position. */
|
|
@@ -3099,7 +3334,7 @@ type PlacePerpsOrderWithTpSlRequest = {
|
|
|
3099
3334
|
/** Take-profit trigger to place with the entry order. */
|
|
3100
3335
|
takeProfit: PerpsTpSlTrigger;
|
|
3101
3336
|
/** Optional stop-loss trigger to place with the entry order. */
|
|
3102
|
-
stopLoss?: PerpsTpSlTrigger;
|
|
3337
|
+
stopLoss?: PerpsTpSlTrigger | PerpsTrailingStop;
|
|
3103
3338
|
} | {
|
|
3104
3339
|
/** Perps instrument identifier to trade. */
|
|
3105
3340
|
instrumentId: number;
|
|
@@ -3111,6 +3346,7 @@ type PlacePerpsOrderWithTpSlRequest = {
|
|
|
3111
3346
|
quantity: PerpsDecimalInput;
|
|
3112
3347
|
/** Good-til-cancelled execution. */
|
|
3113
3348
|
timeInForce: PerpsTimeInForce.GTC;
|
|
3349
|
+
gtdExpiry?: never;
|
|
3114
3350
|
/** Whether the order must rest instead of taking liquidity. */
|
|
3115
3351
|
postOnly?: boolean;
|
|
3116
3352
|
/** Whether the order may only reduce or close an existing position. */
|
|
@@ -3122,7 +3358,7 @@ type PlacePerpsOrderWithTpSlRequest = {
|
|
|
3122
3358
|
/** Optional take-profit trigger to place with the entry order. */
|
|
3123
3359
|
takeProfit?: PerpsTpSlTrigger;
|
|
3124
3360
|
/** Stop-loss trigger to place with the entry order. */
|
|
3125
|
-
stopLoss: PerpsTpSlTrigger;
|
|
3361
|
+
stopLoss: PerpsTpSlTrigger | PerpsTrailingStop;
|
|
3126
3362
|
} | {
|
|
3127
3363
|
/** Perps instrument identifier to trade. */
|
|
3128
3364
|
instrumentId: number;
|
|
@@ -3134,6 +3370,7 @@ type PlacePerpsOrderWithTpSlRequest = {
|
|
|
3134
3370
|
quantity: PerpsDecimalInput;
|
|
3135
3371
|
/** Immediate-or-cancel execution. */
|
|
3136
3372
|
timeInForce: PerpsTimeInForce.IOC;
|
|
3373
|
+
gtdExpiry?: never;
|
|
3137
3374
|
postOnly?: never;
|
|
3138
3375
|
/** Whether the order may only reduce or close an existing position. */
|
|
3139
3376
|
reduceOnly?: boolean;
|
|
@@ -3144,7 +3381,7 @@ type PlacePerpsOrderWithTpSlRequest = {
|
|
|
3144
3381
|
/** Take-profit trigger to place with the entry order. */
|
|
3145
3382
|
takeProfit: PerpsTpSlTrigger;
|
|
3146
3383
|
/** Optional stop-loss trigger to place with the entry order. */
|
|
3147
|
-
stopLoss?: PerpsTpSlTrigger;
|
|
3384
|
+
stopLoss?: PerpsTpSlTrigger | PerpsTrailingStop;
|
|
3148
3385
|
} | {
|
|
3149
3386
|
/** Perps instrument identifier to trade. */
|
|
3150
3387
|
instrumentId: number;
|
|
@@ -3156,6 +3393,7 @@ type PlacePerpsOrderWithTpSlRequest = {
|
|
|
3156
3393
|
quantity: PerpsDecimalInput;
|
|
3157
3394
|
/** Immediate-or-cancel execution. */
|
|
3158
3395
|
timeInForce: PerpsTimeInForce.IOC;
|
|
3396
|
+
gtdExpiry?: never;
|
|
3159
3397
|
postOnly?: never;
|
|
3160
3398
|
/** Whether the order may only reduce or close an existing position. */
|
|
3161
3399
|
reduceOnly?: boolean;
|
|
@@ -3166,7 +3404,7 @@ type PlacePerpsOrderWithTpSlRequest = {
|
|
|
3166
3404
|
/** Optional take-profit trigger to place with the entry order. */
|
|
3167
3405
|
takeProfit?: PerpsTpSlTrigger;
|
|
3168
3406
|
/** Stop-loss trigger to place with the entry order. */
|
|
3169
|
-
stopLoss: PerpsTpSlTrigger;
|
|
3407
|
+
stopLoss: PerpsTpSlTrigger | PerpsTrailingStop;
|
|
3170
3408
|
} | {
|
|
3171
3409
|
/** Perps instrument identifier to trade. */
|
|
3172
3410
|
instrumentId: number;
|
|
@@ -3178,6 +3416,7 @@ type PlacePerpsOrderWithTpSlRequest = {
|
|
|
3178
3416
|
quantity: PerpsDecimalInput;
|
|
3179
3417
|
/** Fill-or-kill execution. */
|
|
3180
3418
|
timeInForce: PerpsTimeInForce.FOK;
|
|
3419
|
+
gtdExpiry?: never;
|
|
3181
3420
|
postOnly?: never;
|
|
3182
3421
|
/** Whether the order may only reduce or close an existing position. */
|
|
3183
3422
|
reduceOnly?: boolean;
|
|
@@ -3188,7 +3427,7 @@ type PlacePerpsOrderWithTpSlRequest = {
|
|
|
3188
3427
|
/** Take-profit trigger to place with the entry order. */
|
|
3189
3428
|
takeProfit: PerpsTpSlTrigger;
|
|
3190
3429
|
/** Optional stop-loss trigger to place with the entry order. */
|
|
3191
|
-
stopLoss?: PerpsTpSlTrigger;
|
|
3430
|
+
stopLoss?: PerpsTpSlTrigger | PerpsTrailingStop;
|
|
3192
3431
|
} | {
|
|
3193
3432
|
/** Perps instrument identifier to trade. */
|
|
3194
3433
|
instrumentId: number;
|
|
@@ -3200,6 +3439,7 @@ type PlacePerpsOrderWithTpSlRequest = {
|
|
|
3200
3439
|
quantity: PerpsDecimalInput;
|
|
3201
3440
|
/** Fill-or-kill execution. */
|
|
3202
3441
|
timeInForce: PerpsTimeInForce.FOK;
|
|
3442
|
+
gtdExpiry?: never;
|
|
3203
3443
|
postOnly?: never;
|
|
3204
3444
|
/** Whether the order may only reduce or close an existing position. */
|
|
3205
3445
|
reduceOnly?: boolean;
|
|
@@ -3210,7 +3450,7 @@ type PlacePerpsOrderWithTpSlRequest = {
|
|
|
3210
3450
|
/** Optional take-profit trigger to place with the entry order. */
|
|
3211
3451
|
takeProfit?: PerpsTpSlTrigger;
|
|
3212
3452
|
/** Stop-loss trigger to place with the entry order. */
|
|
3213
|
-
stopLoss: PerpsTpSlTrigger;
|
|
3453
|
+
stopLoss: PerpsTpSlTrigger | PerpsTrailingStop;
|
|
3214
3454
|
};
|
|
3215
3455
|
/**
|
|
3216
3456
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
@@ -3246,7 +3486,7 @@ type PlacePerpsPositionTpSlRequest = {
|
|
|
3246
3486
|
/** Take-profit trigger to place for the current position. */
|
|
3247
3487
|
takeProfit: PerpsPositionTpSlTrigger;
|
|
3248
3488
|
/** Optional stop-loss trigger to place alongside the take-profit. */
|
|
3249
|
-
stopLoss?: PerpsPositionTpSlTrigger;
|
|
3489
|
+
stopLoss?: PerpsPositionTpSlTrigger | PerpsPositionTrailingStop;
|
|
3250
3490
|
/** Optional command expiration timestamp in milliseconds. */
|
|
3251
3491
|
expiresAt?: number;
|
|
3252
3492
|
} | {
|
|
@@ -3255,7 +3495,7 @@ type PlacePerpsPositionTpSlRequest = {
|
|
|
3255
3495
|
/** Optional take-profit trigger to place alongside the stop-loss. */
|
|
3256
3496
|
takeProfit?: PerpsPositionTpSlTrigger;
|
|
3257
3497
|
/** Stop-loss trigger to place for the current position. */
|
|
3258
|
-
stopLoss: PerpsPositionTpSlTrigger;
|
|
3498
|
+
stopLoss: PerpsPositionTpSlTrigger | PerpsPositionTrailingStop;
|
|
3259
3499
|
/** Optional command expiration timestamp in milliseconds. */
|
|
3260
3500
|
expiresAt?: number;
|
|
3261
3501
|
};
|
|
@@ -3383,6 +3623,26 @@ type UpdatePerpsLeverageError = RequestRejectedError | SigningError | TransportE
|
|
|
3383
3623
|
declare const UpdatePerpsLeverageError: {
|
|
3384
3624
|
isError(error: unknown): error is SigningError | TransportError | UserInputError | RequestRejectedError;
|
|
3385
3625
|
};
|
|
3626
|
+
/**
|
|
3627
|
+
* Request parameters for updating leverage and margin mode for one or more
|
|
3628
|
+
* Perps instruments.
|
|
3629
|
+
*
|
|
3630
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
3631
|
+
*/
|
|
3632
|
+
type UpdatePerpsLeveragesRequest = {
|
|
3633
|
+
/** One to 100 updates with unique instrument identifiers. */
|
|
3634
|
+
updates: UpdatePerpsLeverageRequest[];
|
|
3635
|
+
};
|
|
3636
|
+
/**
|
|
3637
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
3638
|
+
*/
|
|
3639
|
+
type UpdatePerpsLeveragesError = RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3640
|
+
/**
|
|
3641
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
3642
|
+
*/
|
|
3643
|
+
declare const UpdatePerpsLeveragesError: {
|
|
3644
|
+
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError;
|
|
3645
|
+
};
|
|
3386
3646
|
/**
|
|
3387
3647
|
* Request parameters for adjusting isolated margin on a Perps position.
|
|
3388
3648
|
*
|
|
@@ -3405,6 +3665,67 @@ declare const UpdatePerpsMarginError: {
|
|
|
3405
3665
|
isError(error: unknown): error is SigningError | TransportError | UserInputError | RequestRejectedError;
|
|
3406
3666
|
};
|
|
3407
3667
|
|
|
3668
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
3669
|
+
type CreatePerpsTwapRequest = {
|
|
3670
|
+
instrumentId: number;
|
|
3671
|
+
side: OrderSide;
|
|
3672
|
+
quantity: PerpsDecimalInput;
|
|
3673
|
+
/** Run duration in milliseconds, from five minutes to 24 hours. */ durationMs: number;
|
|
3674
|
+
/** Omit or set zero to derive cadence. Otherwise at least 30000 and an exact divisor of durationMs. */ intervalMs?: number;
|
|
3675
|
+
/** Jitter slice quantities by up to 20%. Defaults to false. */ randomize?: boolean;
|
|
3676
|
+
/** 0 uses the venue default (300 bps). Maximum 10000. */ slippageBps?: number;
|
|
3677
|
+
/** Zero or omission disables this lower mark-price bound. */ minPrice?: PerpsDecimalInput;
|
|
3678
|
+
/** Zero or omission disables this upper mark-price bound. */ maxPrice?: PerpsDecimalInput;
|
|
3679
|
+
reduceOnly?: boolean;
|
|
3680
|
+
/** Retain this identity to reconcile an uncertain create. */ clientOrderId?: string;
|
|
3681
|
+
/** Command deadline in Unix milliseconds, distinct from run duration. */ expiresAt?: number;
|
|
3682
|
+
};
|
|
3683
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
3684
|
+
type CreatePerpsTwapError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3685
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
3686
|
+
declare const CreatePerpsTwapError: {
|
|
3687
|
+
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
3688
|
+
};
|
|
3689
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
3690
|
+
type FetchPerpsTwapsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError;
|
|
3691
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
3692
|
+
declare const FetchPerpsTwapsError: {
|
|
3693
|
+
isError(error: unknown): error is TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
3694
|
+
};
|
|
3695
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
3696
|
+
type PausePerpsTwapRequest = {
|
|
3697
|
+
twapId: number /** Command deadline in Unix milliseconds. */;
|
|
3698
|
+
expiresAt?: number;
|
|
3699
|
+
};
|
|
3700
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
3701
|
+
type PausePerpsTwapError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3702
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
3703
|
+
declare const PausePerpsTwapError: {
|
|
3704
|
+
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
3705
|
+
};
|
|
3706
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
3707
|
+
type ResumePerpsTwapRequest = {
|
|
3708
|
+
twapId: number /** Command deadline in Unix milliseconds. */;
|
|
3709
|
+
expiresAt?: number;
|
|
3710
|
+
};
|
|
3711
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
3712
|
+
type ResumePerpsTwapError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3713
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
3714
|
+
declare const ResumePerpsTwapError: {
|
|
3715
|
+
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
3716
|
+
};
|
|
3717
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
3718
|
+
type CancelPerpsTwapRequest = {
|
|
3719
|
+
twapId: number /** Command deadline in Unix milliseconds. */;
|
|
3720
|
+
expiresAt?: number;
|
|
3721
|
+
};
|
|
3722
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
3723
|
+
type CancelPerpsTwapError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3724
|
+
/** @experimental This API may change in a breaking way in any release, including patch releases. */
|
|
3725
|
+
declare const CancelPerpsTwapError: {
|
|
3726
|
+
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
3727
|
+
};
|
|
3728
|
+
|
|
3408
3729
|
/**
|
|
3409
3730
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
3410
3731
|
*/
|
|
@@ -3571,6 +3892,13 @@ declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
|
|
|
3571
3892
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
3572
3893
|
*/
|
|
3573
3894
|
fetchPortfolio(): Promise<PerpsPortfolio>;
|
|
3895
|
+
/** Fetches snapshots for this session's authenticated account. Owner-only
|
|
3896
|
+
* leverage and PnL percentage remain null when historical values are unavailable.
|
|
3897
|
+
* This direct batch read does not paginate or retry item statuses.
|
|
3898
|
+
* @throws {@link FetchPerpsPositionSnapshotsError} Thrown on failure.
|
|
3899
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
3900
|
+
*/
|
|
3901
|
+
fetchPositionSnapshots(request: PerpsPositionSnapshotSelection): Promise<PerpsPositionSnapshots>;
|
|
3574
3902
|
/**
|
|
3575
3903
|
* Fetches account-level Perps statistics for the authenticated account.
|
|
3576
3904
|
*
|
|
@@ -3755,6 +4083,8 @@ declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
|
|
|
3755
4083
|
markNotificationsRead(request: MarkPerpsNotificationsReadRequest): Promise<void>;
|
|
3756
4084
|
/**
|
|
3757
4085
|
* Places one Perps order and resolves with the first matching orders update.
|
|
4086
|
+
* GTD orders require a limit price and gtdExpiry in Unix milliseconds.
|
|
4087
|
+
* The order expiry is separate from the expiresAt command deadline.
|
|
3758
4088
|
*
|
|
3759
4089
|
* @example
|
|
3760
4090
|
* ```ts
|
|
@@ -3806,7 +4136,9 @@ declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
|
|
|
3806
4136
|
*
|
|
3807
4137
|
* @remarks
|
|
3808
4138
|
* The exit side is inferred from the current position for the requested
|
|
3809
|
-
* instrument.
|
|
4139
|
+
* instrument. Each trigger may specify a positive `quantity` for a partial
|
|
4140
|
+
* close; omission closes the full position at trigger time. A partial fill
|
|
4141
|
+
* leaves the other trigger armed while a same-side position remains.
|
|
3810
4142
|
*
|
|
3811
4143
|
* @example
|
|
3812
4144
|
* ```ts
|
|
@@ -3950,6 +4282,33 @@ declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
|
|
|
3950
4282
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
3951
4283
|
*/
|
|
3952
4284
|
updateLeverage(request: UpdatePerpsLeverageRequest): Promise<PerpsUpdateLeverageResult>;
|
|
4285
|
+
/**
|
|
4286
|
+
* Updates Perps leverage and margin mode for one or more instruments.
|
|
4287
|
+
*
|
|
4288
|
+
* @remarks
|
|
4289
|
+
* The batch must contain one to 100 unique instruments. Updates are
|
|
4290
|
+
* processed sequentially and are not atomic. Results preserve request
|
|
4291
|
+
* order. Per-instrument rejections, including `internal_error`, are returned
|
|
4292
|
+
* as data; `internal_error` may represent an unknown application outcome for
|
|
4293
|
+
* that instrument. A whole-request `internal_error` also has an unknown
|
|
4294
|
+
* application outcome; reconcile account state before retrying the batch.
|
|
4295
|
+
*
|
|
4296
|
+
* @example
|
|
4297
|
+
* ```ts
|
|
4298
|
+
* const results = await session.updateLeverages({
|
|
4299
|
+
* updates: [
|
|
4300
|
+
* { crossMargin: false, instrumentId: 1, leverage: 5 },
|
|
4301
|
+
* { crossMargin: true, instrumentId: 2, leverage: 10 },
|
|
4302
|
+
* ],
|
|
4303
|
+
* });
|
|
4304
|
+
* ```
|
|
4305
|
+
*
|
|
4306
|
+
* @throws {@link UpdatePerpsLeveragesError}
|
|
4307
|
+
* Thrown when the complete request is rejected, cannot be sent, or returns inconsistent results.
|
|
4308
|
+
*
|
|
4309
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
4310
|
+
*/
|
|
4311
|
+
updateLeverages(request: UpdatePerpsLeveragesRequest): Promise<PerpsUpdateLeverageBatchResult[]>;
|
|
3953
4312
|
/**
|
|
3954
4313
|
* Adjusts isolated margin for an instrument position.
|
|
3955
4314
|
*
|
|
@@ -3970,12 +4329,66 @@ declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
|
|
|
3970
4329
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
3971
4330
|
*/
|
|
3972
4331
|
updateMargin(request: UpdatePerpsMarginRequest): Promise<void>;
|
|
4332
|
+
/** Create a chase using this session. Reconcile uncertain submissions before trying again.
|
|
4333
|
+
* @throws {@link CreatePerpsChaseError} Thrown on failure.
|
|
4334
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
4335
|
+
*/
|
|
4336
|
+
createChase(request: CreatePerpsChaseRequest): Promise<PerpsChaseAccepted>;
|
|
4337
|
+
/** End a chase and cancel its resting child; completed fills remain.
|
|
4338
|
+
* @throws {@link CancelPerpsChaseError} Thrown on failure.
|
|
4339
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
4340
|
+
*/
|
|
4341
|
+
cancelChase(request: CancelPerpsChaseRequest): Promise<void>;
|
|
4342
|
+
/** Fetch all running chases without pagination. Ended chases are absent.
|
|
4343
|
+
* @throws {@link FetchPerpsChasesError} Thrown on failure.
|
|
4344
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
4345
|
+
*/
|
|
4346
|
+
fetchChases(): Promise<PerpsChase[]>;
|
|
4347
|
+
/** Create a TWAP using this session's credentials.
|
|
4348
|
+
* @throws {@link CreatePerpsTwapError} Thrown on failure.
|
|
4349
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
4350
|
+
*/
|
|
4351
|
+
createTwap(request: CreatePerpsTwapRequest): Promise<PerpsTwapAccepted>;
|
|
4352
|
+
/** Pause a TWAP using this session's credentials.
|
|
4353
|
+
* @throws {@link PausePerpsTwapError} Thrown on failure.
|
|
4354
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
4355
|
+
*/
|
|
4356
|
+
pauseTwap(request: PausePerpsTwapRequest): Promise<void>;
|
|
4357
|
+
/** Resume a TWAP using this session's credentials.
|
|
4358
|
+
* @throws {@link ResumePerpsTwapError} Thrown on failure.
|
|
4359
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
4360
|
+
*/
|
|
4361
|
+
resumeTwap(request: ResumePerpsTwapRequest): Promise<void>;
|
|
4362
|
+
/** Cancel a TWAP using this session's credentials.
|
|
4363
|
+
* @throws {@link CancelPerpsTwapError} Thrown on failure.
|
|
4364
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
4365
|
+
*/
|
|
4366
|
+
cancelTwap(request: CancelPerpsTwapRequest): Promise<void>;
|
|
4367
|
+
/** Fetch all active TWAPs. Ended runs are absent; no pagination.
|
|
4368
|
+
* @throws {@link FetchPerpsTwapsError} Thrown on failure.
|
|
4369
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
4370
|
+
*/
|
|
4371
|
+
fetchTwaps(): Promise<PerpsTwap[]>;
|
|
3973
4372
|
}
|
|
3974
4373
|
|
|
3975
4374
|
/**
|
|
3976
4375
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
3977
4376
|
*/
|
|
3978
4377
|
type PublicPerpsActions = {
|
|
4378
|
+
/** Fetches ordered snapshots anonymously, including on secure clients. Use
|
|
4379
|
+
* session.fetchPositionSnapshots for owner-only leverage and PnL percentage.
|
|
4380
|
+
* No pagination or automatic retries of item statuses.
|
|
4381
|
+
* @throws {@link FetchPerpsPositionSnapshotsError} Thrown on failure.
|
|
4382
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
4383
|
+
*/
|
|
4384
|
+
fetchPerpsPositionSnapshots(request: FetchPerpsPositionSnapshotsRequest): Promise<PerpsPositionSnapshots>;
|
|
4385
|
+
/**
|
|
4386
|
+
* Fetches whether an address has a Perps account without authentication.
|
|
4387
|
+
* Registration is permanent; a false result may be cached for up to ten seconds.
|
|
4388
|
+
* @throws {@link FetchPerpsRegistrationError} Thrown on failure.
|
|
4389
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
4390
|
+
*/
|
|
4391
|
+
fetchPerpsRegistration(request: FetchPerpsRegistrationRequest): Promise<boolean>;
|
|
3979
4392
|
/**
|
|
3980
4393
|
* Fetches public builder availability and the platform fee cap.
|
|
3981
4394
|
* @throws {@link FetchPerpsBuilderStatusError} Thrown on failure.
|
|
@@ -5289,9 +5702,20 @@ type SecureSubscriptionsActions = {
|
|
|
5289
5702
|
/**
|
|
5290
5703
|
* Starts one or more realtime subscriptions on this client.
|
|
5291
5704
|
*
|
|
5292
|
-
* The
|
|
5705
|
+
* The `prices.crypto`, `prices.crypto.twap`, `prices.equity`, and
|
|
5706
|
+
* `prices.equity.twap` topics
|
|
5293
5707
|
* require explicit filters and include history snapshots and live updates.
|
|
5294
5708
|
* Legacy source-named topics retain their existing filter and event behavior.
|
|
5709
|
+
* These four topics include `source`, identifying the source of the update
|
|
5710
|
+
* or entire history batch, including empty batches. Unknown source names remain
|
|
5711
|
+
* strings. Crypto sources are constant; equity sources may change across
|
|
5712
|
+
* reconnects. Cached history starts fresh whenever the source changes.
|
|
5713
|
+
* These four topics accept an optional `provider` pin. Omit it to follow the
|
|
5714
|
+
* default. A pin may fall back or be ignored when selection is disabled;
|
|
5715
|
+
* `source` always identifies the actual producer. Different provider choices,
|
|
5716
|
+
* including omission, use separate connections, even if they serve the same source.
|
|
5717
|
+
* An optional `onSubscribed` callback reports the provider the server confirms,
|
|
5718
|
+
* on acceptance and after every reconnect.
|
|
5295
5719
|
* Event `seq` values are scoped to one channel on one WebSocket connection
|
|
5296
5720
|
* and reset after reconnecting. Subscriptions with more than 64 filters use
|
|
5297
5721
|
* multiple connections, so their sequence values may interleave.
|
|
@@ -6070,8 +6494,9 @@ type PublicWalletActions = {
|
|
|
6070
6494
|
/**
|
|
6071
6495
|
* Reads the approvals a wallet is missing for supported trading workflows.
|
|
6072
6496
|
*
|
|
6073
|
-
*
|
|
6074
|
-
*
|
|
6497
|
+
* Reads the wallet's current approval state. Recent grants and revocations
|
|
6498
|
+
* may take time to appear. It does not require a signer or submit
|
|
6499
|
+
* transactions. Trading setup re-checks approvals before preparing them.
|
|
6075
6500
|
*
|
|
6076
6501
|
* @throws {@link FetchTradingApprovalsStateError}
|
|
6077
6502
|
* Thrown on failure.
|
|
@@ -6089,8 +6514,9 @@ type SecureWalletActions = {
|
|
|
6089
6514
|
/**
|
|
6090
6515
|
* Reads the approvals a wallet is missing for supported trading workflows.
|
|
6091
6516
|
*
|
|
6092
|
-
*
|
|
6093
|
-
*
|
|
6517
|
+
* Reads the authenticated account's wallet approval state. Recent grants
|
|
6518
|
+
* and revocations may take time to appear. It does not submit transactions.
|
|
6519
|
+
* Trading setup re-checks approvals before preparing them.
|
|
6094
6520
|
*
|
|
6095
6521
|
* @throws {@link FetchTradingApprovalsStateError}
|
|
6096
6522
|
* Thrown on failure.
|
|
@@ -7283,15 +7709,16 @@ type TradingApprovalsState = {
|
|
|
7283
7709
|
/** Approvals the wallet must grant to become fully approved. */
|
|
7284
7710
|
missing: TradingApprovalRequirements;
|
|
7285
7711
|
};
|
|
7286
|
-
type FetchTradingApprovalsStateError = RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7712
|
+
type FetchTradingApprovalsStateError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
7287
7713
|
declare const FetchTradingApprovalsStateError: {
|
|
7288
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError;
|
|
7714
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
7289
7715
|
};
|
|
7290
7716
|
/**
|
|
7291
7717
|
* Reads the approvals a wallet is missing for supported trading workflows.
|
|
7292
7718
|
*
|
|
7293
|
-
*
|
|
7294
|
-
*
|
|
7719
|
+
* Reads the wallet's current approval state. Recent grants and revocations
|
|
7720
|
+
* may take time to appear. It does not require a signer or submit
|
|
7721
|
+
* transactions. Trading setup re-checks approvals before preparing them.
|
|
7295
7722
|
*
|
|
7296
7723
|
* @example
|
|
7297
7724
|
* ```ts
|
|
@@ -10480,6 +10907,16 @@ type PerpsStatisticsSubscription = {
|
|
|
10480
10907
|
*/
|
|
10481
10908
|
type PerpsMarketDataSubscription = PerpsTradesSubscription | PerpsBboSubscription | PerpsBookSubscription | PerpsCandlesSubscription | PerpsTickersSubscription | PerpsStatisticsSubscription;
|
|
10482
10909
|
type PublicSubscriptionSpec = MarketSubscription | SportsSubscription | CommentsSubscription | CryptoPricesSubscription | CryptoPricesChainlinkTwapSubscription | EquityPricesSubscription | PerpsMarketDataSubscription;
|
|
10910
|
+
/** Confirmation of one price subscription, refreshed after every reconnect. */
|
|
10911
|
+
type PriceSubscriptionConfirmation = {
|
|
10912
|
+
/** Canonical lowercase symbol the confirmation is for. */
|
|
10913
|
+
symbol: string;
|
|
10914
|
+
/**
|
|
10915
|
+
* The provider actually served, including fallback. Undefined when the
|
|
10916
|
+
* server does not confirm provider selection; never inferred from the pin.
|
|
10917
|
+
*/
|
|
10918
|
+
provider?: PriceSource;
|
|
10919
|
+
};
|
|
10483
10920
|
/**
|
|
10484
10921
|
* Symbol-filtered cryptocurrency updates and recent history. Requires a secure
|
|
10485
10922
|
* client and canonical lowercase USD pairs such as `btcusd`.
|
|
@@ -10488,6 +10925,14 @@ type PublicSubscriptionSpec = MarketSubscription | SportsSubscription | Comments
|
|
|
10488
10925
|
type CryptoPriceSubscription = {
|
|
10489
10926
|
topic: 'prices.crypto';
|
|
10490
10927
|
symbols: readonly string[];
|
|
10928
|
+
/** Requested vendor. Omit to follow the default; an unavailable pin may fall back. */
|
|
10929
|
+
provider?: PriceProvider;
|
|
10930
|
+
/**
|
|
10931
|
+
* Called once per symbol on acceptance and every reconnect, or immediately
|
|
10932
|
+
* when joining an accepted subscription. A thrown error or rejected promise
|
|
10933
|
+
* ends this handle with TransportError.
|
|
10934
|
+
*/
|
|
10935
|
+
onSubscribed?: (confirmation: PriceSubscriptionConfirmation) => void | Promise<void>;
|
|
10491
10936
|
};
|
|
10492
10937
|
/**
|
|
10493
10938
|
* 60-second time-weighted prices and recent history. Requires a secure client
|
|
@@ -10497,23 +10942,57 @@ type CryptoPriceSubscription = {
|
|
|
10497
10942
|
type CryptoTwapPriceSubscription = {
|
|
10498
10943
|
topic: 'prices.crypto.twap';
|
|
10499
10944
|
symbols: readonly string[];
|
|
10945
|
+
/** Requested vendor. Omit to follow the default; an unavailable pin may fall back. */
|
|
10946
|
+
provider?: PriceProvider;
|
|
10947
|
+
/**
|
|
10948
|
+
* Called once per symbol on acceptance and every reconnect, or immediately
|
|
10949
|
+
* when joining an accepted subscription. A thrown error or rejected promise
|
|
10950
|
+
* ends this handle with TransportError.
|
|
10951
|
+
*/
|
|
10952
|
+
onSubscribed?: (confirmation: PriceSubscriptionConfirmation) => void | Promise<void>;
|
|
10500
10953
|
};
|
|
10501
10954
|
/** Equity updates and recent history. Requires a secure client. */
|
|
10502
10955
|
type EquityPriceSubscription = {
|
|
10503
10956
|
topic: 'prices.equity';
|
|
10504
10957
|
symbol: string;
|
|
10505
10958
|
types?: readonly ('subscribe' | 'update')[];
|
|
10959
|
+
/** Requested vendor. Omit to follow the default; an unavailable pin may fall back. */
|
|
10960
|
+
provider?: PriceProvider;
|
|
10961
|
+
/**
|
|
10962
|
+
* Called once per symbol on acceptance and every reconnect, or immediately
|
|
10963
|
+
* when joining an accepted subscription. A thrown error or rejected promise
|
|
10964
|
+
* ends this handle with TransportError.
|
|
10965
|
+
*/
|
|
10966
|
+
onSubscribed?: (confirmation: PriceSubscriptionConfirmation) => void | Promise<void>;
|
|
10967
|
+
};
|
|
10968
|
+
/**
|
|
10969
|
+
* 60-second time-weighted equity prices and recent history. Requires a secure
|
|
10970
|
+
* client. Symbols such as `eurusd` and `usdjpy` are case-insensitive; prices
|
|
10971
|
+
* use the symbol's quote currency. Returned events include `windowSeconds: 60`.
|
|
10972
|
+
*/
|
|
10973
|
+
type EquityTwapPriceSubscription = {
|
|
10974
|
+
topic: 'prices.equity.twap';
|
|
10975
|
+
symbol: string;
|
|
10976
|
+
/** Requested vendor. Omit to follow the default; an unavailable pin may fall back. */
|
|
10977
|
+
provider?: PriceProvider;
|
|
10978
|
+
/**
|
|
10979
|
+
* Called once per symbol on acceptance and every reconnect, or immediately
|
|
10980
|
+
* when joining an accepted subscription. A thrown error or rejected promise
|
|
10981
|
+
* ends this handle with TransportError.
|
|
10982
|
+
*/
|
|
10983
|
+
onSubscribed?: (confirmation: PriceSubscriptionConfirmation) => void | Promise<void>;
|
|
10506
10984
|
};
|
|
10507
|
-
type PriceSubscription = CryptoPriceSubscription | CryptoTwapPriceSubscription | EquityPriceSubscription;
|
|
10985
|
+
type PriceSubscription = CryptoPriceSubscription | CryptoTwapPriceSubscription | EquityPriceSubscription | EquityTwapPriceSubscription;
|
|
10508
10986
|
type SecureSubscriptionSpec = PublicSubscriptionSpec | UserSubscription | PriceSubscription;
|
|
10509
10987
|
type PublicRealtimeEvent = MarketEvent | SportsEvent | CommentsEvent | CryptoPricesEvent | EquityPricesEvent | PerpsMarketDataEvent;
|
|
10510
|
-
type SecureRealtimeEvent = PublicRealtimeEvent | UserEvent | CryptoPriceEvent | CryptoTwapPriceEvent | EquityPriceEvent;
|
|
10988
|
+
type SecureRealtimeEvent = PublicRealtimeEvent | UserEvent | CryptoPriceEvent | CryptoTwapPriceEvent | EquityPriceEvent | EquityTwapPriceEvent;
|
|
10511
10989
|
type PublicRealtimeTopic = Prettify<PublicRealtimeEvent['topic']>;
|
|
10512
10990
|
type SecureRealtimeTopic = Prettify<SecureRealtimeEvent['topic']>;
|
|
10513
10991
|
type EventByTopic = {
|
|
10514
10992
|
'prices.crypto': CryptoPriceEvent;
|
|
10515
10993
|
'prices.crypto.twap': CryptoTwapPriceEvent;
|
|
10516
10994
|
'prices.equity': EquityPriceEvent;
|
|
10995
|
+
'prices.equity.twap': EquityTwapPriceEvent;
|
|
10517
10996
|
comments: CommentsEvent;
|
|
10518
10997
|
'prices.crypto.binance': CryptoPricesBinanceEvent;
|
|
10519
10998
|
'prices.crypto.chainlink': CryptoPricesChainlinkEvent;
|
|
@@ -10553,9 +11032,20 @@ declare const SubscribeError: {
|
|
|
10553
11032
|
/**
|
|
10554
11033
|
* Starts one or more realtime subscriptions on this client.
|
|
10555
11034
|
*
|
|
10556
|
-
* The
|
|
11035
|
+
* The `prices.crypto`, `prices.crypto.twap`, `prices.equity`, and
|
|
11036
|
+
* `prices.equity.twap` topics
|
|
10557
11037
|
* require a secure client and explicit filters, and include history snapshots
|
|
10558
11038
|
* and live updates. Legacy source-named topics retain their existing behavior.
|
|
11039
|
+
* These four topics include `source`, identifying the source of the update
|
|
11040
|
+
* or entire history batch, including empty batches. Unknown source names remain
|
|
11041
|
+
* strings. Crypto sources are constant; equity sources may change across
|
|
11042
|
+
* reconnects. Cached history starts fresh whenever the source changes.
|
|
11043
|
+
* These four topics accept an optional `provider` pin. Omit it to follow the
|
|
11044
|
+
* default. A pin may fall back or be ignored when selection is disabled;
|
|
11045
|
+
* `source` always identifies the actual producer. Different provider choices,
|
|
11046
|
+
* including omission, use separate connections, even if they serve the same source.
|
|
11047
|
+
* An optional `onSubscribed` callback reports the provider the server confirms,
|
|
11048
|
+
* on acceptance and after every reconnect.
|
|
10559
11049
|
* Event `seq` values are scoped to one channel on one WebSocket connection and
|
|
10560
11050
|
* reset after reconnecting. Subscriptions with more than 64 filters use
|
|
10561
11051
|
* multiple connections, so their sequence values may interleave.
|
|
@@ -10924,4 +11414,4 @@ type Signer = {
|
|
|
10924
11414
|
sendTransaction(request: SignerTransactionRequest): Promise<TransactionHandle>;
|
|
10925
11415
|
};
|
|
10926
11416
|
|
|
10927
|
-
export { type DiscoveryActions as $, type ApiKeyAuthorization as A, type BaseClient as B, CancelAllError as C, CancelledSigningError as D, type Client as E, type ClientActions as F, type ClientDecorator as G, type ClobEndpoints as H, type ComboPositionStatusFilter as I, type ComboQuote as J, type CombosEndpoints as K, type CommentsSubscription as L, ConnectionLostError as M, type ConnectionLostErrorOptions as N, type CreatePerpsSessionRequest as O, CreateSecureClientError as P, type CryptoPriceSubscription as Q, type CryptoPricesChainlinkTwapSubscription as R, type Signer as S, type TypedDataPayload as T, UserInputError as U, type CryptoPricesSubscription as V, type CryptoTwapPriceSubscription as W, type DataActions as X, DepositToPerpsError as Y, type DepositToPerpsRequest as Z, type DisarmPerpsAutoCancelRequest as _, type TypedData as a, FetchTagError as a$, DownloadAccountingSnapshotError as a0, DropNotificationsError as a1, type EnvironmentConfig as a2, type EnvironmentConfigFork as a3, type EnvironmentContracts as a4, type EquityPriceSubscription as a5, type EquityPricesSubscription as a6, type Erc1155TradingApproval as a7, type Erc20TradingApproval as a8, EstimateMarketPriceError as a9, FetchPerpsBuilderEarningsSummaryError as aA, type FetchPerpsBuilderEarningsSummaryRequest as aB, FetchPerpsBuilderStatusError as aC, type FetchPerpsBuilderStatusRequest as aD, FetchPerpsFeesError as aE, FetchPerpsInstrumentsError as aF, type FetchPerpsInstrumentsRequest as aG, type FetchPerpsOpenOrdersRequest as aH, type FetchPerpsOrdersRequest as aI, FetchPerpsTickerError as aJ, type FetchPerpsTickerRequest as aK, FetchPerpsTickersError as aL, type FetchPerpsTickersRequest as aM, FetchPortfolioValueError as aN, FetchPriceError as aO, FetchPricesError as aP, FetchPublicProfileError as aQ, FetchRelatedTagResourcesError as aR, FetchRelatedTagsError as aS, FetchResolutionsError as aT, FetchRewardPercentagesError as aU, FetchRfqStatusError as aV, type FetchRfqStatusParams as aW, FetchSeriesError as aX, FetchSessionKeysError as aY, FetchSpreadError as aZ, FetchSpreadsError as a_, ExecuteCollateralReturnPlanError as aa, type ExecuteCollateralReturnPlanRequest as ab, FetchBuilderVolumeError as ac, FetchClosedOnlyModeError as ad, FetchCommentsByIdError as ae, FetchEventError as af, FetchEventLiveVolumeError as ag, FetchEventTagsError as ah, FetchLastTradePriceError as ai, FetchLastTradePricesError as aj, FetchMarketError as ak, FetchMarketTagsError as al, FetchMidpointError as am, FetchMidpointsError as an, FetchNotificationsError as ao, FetchOpenInterestError as ap, FetchOrderBookError as aq, FetchOrderBooksError as ar, FetchOrderError as as, FetchOrderScoringError as at, FetchOrdersScoringError as au, type FetchPerpsAccountConfigRequest as av, FetchPerpsBookError as aw, type FetchPerpsBookRequest as ax, FetchPerpsBuilderApprovalsError as ay, type FetchPerpsBuilderApprovalsRequest as az, type TransactionCall as b, type PerpsCancelOptions as b$, FetchTotalEarningsForUserForDayError as b0, FetchTraderLeaderboardStandingError as b1, FetchTradingApprovalsStateError as b2, type FetchTradingApprovalsStateRequest as b3, FetchUserPnlError as b4, FetchUserStatsError as b5, FetchUserVolumeError as b6, InsufficientLiquidityError as b7, ListAccountTradesError as b8, ListActivityError as b9, type ListPerpsPnlHistoryRequest as bA, ListPerpsTradesError as bB, type ListPerpsTradesRequest as bC, type ListPerpsWithdrawalsRequest as bD, ListPositionsError as bE, ListPriceHistoryError as bF, ListSeriesError as bG, ListTagsError as bH, ListTeamsError as bI, ListTraderLeaderboardError as bJ, ListTradesError as bK, ListUserEarningsAndMarketsConfigError as bL, ListUserEarningsForDayError as bM, type MarkPerpsNotificationsReadRequest as bN, MergePositionsError as bO, OpenPerpsSessionError as bP, type OpenPerpsSessionRequest as bQ, OpenRfqSessionError as bR, OperationAbortedError as bS, type OrderSignature as bT, type Page as bU, PageSizeSchema as bV, type Paginated as bW, PaginationLimitError as bX, type PerpsActions as bY, type PerpsBookDepth as bZ, type PerpsBuilderTermsInput as b_, ListBiggestWinnersError as ba, ListBuilderLeaderboardError as bb, ListBuilderTradesError as bc, ListComboActivityError as bd, ListComboMarketsError as be, ListComboPositionsError as bf, ListCommentsByUserAddressError as bg, ListCommentsError as bh, ListCurrentRewardsError as bi, ListEventsError as bj, ListMarketHoldersError as bk, ListMarketRewardsError as bl, ListMarketsError as bm, ListOpenOrdersError as bn, ListPerpsBuilderEarningsError as bo, type ListPerpsBuilderEarningsRequest as bp, ListPerpsCandlesError as bq, type ListPerpsCandlesRequest as br, type ListPerpsDepositsRequest as bs, type ListPerpsEquityHistoryRequest as bt, type ListPerpsFillsRequest as bu, ListPerpsFundingHistoryError as bv, type ListPerpsFundingHistoryRequest as bw, type ListPerpsFundingPaymentsRequest as bx, type ListPerpsInternalTransfersRequest as by, type ListPerpsNotificationsRequest as bz, AcceptComboQuoteError as c, type RfqQuoteReference as c$, PerpsCancelRetryError as c0, type PerpsCancelRetryErrorOptions as c1, type PerpsCancelRetryOptions as c2, type PerpsEndpoints as c3, type PerpsOrderRequest as c4, type PerpsPlaceFokOrderRequest as c5, type PerpsPlaceGtcOrderRequest as c6, type PerpsPlaceIocOrderRequest as c7, type PerpsPlacedTpSlOrder as c8, type PerpsPlacedTpSlOrders as c9, RateLimitError as cA, type RateLimitErrorOptions as cB, type RateLimitUpdate as cC, type RateLimitUpdateListener as cD, RedeemPositionsError as cE, RequestComboQuoteError as cF, type RequestComboQuoteParams as cG, type RequestComboQuoteResult as cH, RequestRejectedError as cI, type RequestRejectedErrorOptions as cJ, type RestEndpoint as cK, type ResumePerpsSessionRequest as cL, RevokePerpsBuilderFeeError as cM, RevokePerpsCredentialsError as cN, type RevokePerpsCredentialsRequest as cO, RevokeSessionKeyError as cP, type RevokeSessionKeyRequest as cQ, type RfqCancelQuoteAck as cR, RfqCancelQuoteError as cS, RfqCancelQuoteRejectedError as cT, type RfqCancelQuoteRejectedErrorOptions as cU, type RfqConfirmationAck as cV, RfqConfirmationError as cW, RfqConfirmationRejectedError as cX, type RfqConfirmationRequestEvent as cY, type RfqEvent as cZ, RfqQuoteError as c_, type PerpsPositionTpSlTrigger as ca, PerpsSession as cb, type PerpsSessionAccountError as cc, type PerpsSessionLifecycleError as cd, type PerpsSessionTradingError as ce, type PerpsTpSlTrigger as cf, type PlacePerpsOrderRequest as cg, type PlacePerpsOrderResult as ch, type PlacePerpsOrderWithTpSlRequest as ci, type PlacePerpsOrderWithTpSlResult as cj, type PlacePerpsPositionTpSlRequest as ck, type PlacePerpsPositionTpSlResult as cl, PlanCollateralReturnError as cm, PostOrderError as cn, PostOrdersError as co, type PostPerpsOrdersRequest as cp, type PriceSubscription as cq, type PublicAccountActions as cr, type PublicActions as cs, type PublicClient as ct, type PublicClientOptions as cu, type PublicPerpsActions as cv, type PublicRewardsActions as cw, type PublicSubscriptionsActions as cx, type PublicWalletActions as cy, type RateLimitBucket as cz, type AcceptComboQuoteParams as d, type WaitForComboFillParams as d$, RfqQuoteRejectedError as d0, type RfqQuoteRejectedErrorOptions as d1, type RfqQuoteRequestEvent as d2, type RfqQuoteResponse as d3, type RfqQuoteSource as d4, RfqRequestRejectedError as d5, type RfqRequestRejectedErrorOptions as d6, type RfqSession as d7, type RfqStatusResult as d8, type RfqTradeEvent as d9, SetupTradingApprovalsError as dA, type SignedOrder as dB, type SignerTransactionRequest as dC, SignerType as dD, SigningError as dE, SplitPositionError as dF, SubscribeError as dG, type SubscriptionHandle as dH, TimeoutError as dI, type TradingApprovalRequirements as dJ, type TradingApprovalsState as dK, TradingRestriction as dL, TransactionFailedError as dM, type TransactionHandle as dN, type TransactionOutcome as dO, TransferErc20Error as dP, TransferPerpsCollateralError as dQ, type TransferPerpsCollateralRequest as dR, TransportError as dS, type TypedDataDomain as dT, type TypedDataField as dU, UnexpectedResponseError as dV, UpdatePerpsLeverageError as dW, type UpdatePerpsLeverageRequest as dX, UpdatePerpsMarginError as dY, type UpdatePerpsMarginRequest as dZ, WaitForComboFillError as d_, 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 dp, type SecureListPositionsRequest as dq, type SecurePerpsActions as dr, type SecureRewardsActions as ds, type SecureRfqActions as dt, type SecureSubscriptionsActions as du, type SecureTradingActions as dv, type SecureWalletActions as dw, type SessionKey as dx, type SessionKeyActions as dy, SetupGaslessWalletError as dz, type AcceptComboQuoteResult as e, type FetchMarketRequest as e$, type WaitForComboFillResult as e0, WaitForOrderFillSettlementError as e1, WaitForTransactionError as e2, type WalletDerivationConfig as e3, type WebSocketCloseCode as e4, type WebSocketEndpoint as e5, WebSocketKnownCloseCode as e6, WithdrawFromPerpsError as e7, type WithdrawFromPerpsRequest as e8, accountActions as e9, type Erc1155ApprovalForAllWorkflow as eA, type Erc1155ApprovalForAllWorkflowRequest as eB, type Erc20ApprovalWorkflow as eC, type Erc20ApprovalWorkflowRequest as eD, type Erc20TransferWorkflow as eE, type Erc20TransferWorkflowRequest as eF, type EstimateMarketBuyPriceRequest as eG, type EstimateMarketPriceRequest as eH, type EstimateMarketSellPriceRequest as eI, type EventForSubscriptionSpec as eJ, type EventForSubscriptionSpecs as eK, FetchBalanceAllowanceError as eL, type FetchBalanceAllowanceRequest as eM, FetchBuilderFeeRatesError as eN, type FetchBuilderFeeRatesRequest as eO, type FetchBuilderVolumeRequest as eP, type FetchCommentsByIdRequest as eQ, type FetchEventLiveVolumeRequest as eR, type FetchEventRequest as eS, type FetchEventTagsRequest as eT, FetchExecuteParamsError as eU, type FetchExecuteParamsRequest as eV, type FetchGaslessTransactionRequest as eW, type FetchLastTradePriceRequest as eX, type FetchLastTradePricesRequest as eY, FetchMarketInfoError as eZ, type FetchMarketInfoRequest as e_, allActions as ea, analyticsActions as eb, createPublicClient as ec, createSecureClient as ed, dataActions as ee, discoveryActions as ef, forkEnvironmentConfig as eg, makeErrorGuard as eh, perpsActions as ei, production as ej, rewardsActions as ek, rfqActions as el, sessionKeyActions as em, subscriptionsActions as en, tradingActions as eo, walletActions as ep, type CancelMarketOrdersRequest as eq, type CancelOrderRequest as er, type CancelOrdersRequest as es, type CollateralReturnExecutionWorkflow as et, type CommentsEventType as eu, type CryptoPricesEventType as ev, DeployDepositWalletError as ew, type DownloadAccountingSnapshotRequest as ex, type DropNotificationsRequest as ey, type EquityPricesEventType as ez, type AccountIdentity as f, type ListUserEarningsForDayRequest as f$, type FetchMarketTagsRequest as f0, type FetchMidpointRequest as f1, type FetchMidpointsRequest as f2, FetchNegRiskError as f3, type FetchNegRiskRequest as f4, type FetchOpenInterestRequest as f5, type FetchOrderBookRequest as f6, type FetchOrderBooksRequest as f7, type FetchOrderRequest as f8, type FetchOrderScoringRequest as f9, type IsWalletDeployedRequest as fA, type ListAccountTradesRequest as fB, type ListActivityRequest as fC, type ListBiggestWinnersRequest as fD, type ListBuilderLeaderboardRequest as fE, type ListBuilderTradesRequest as fF, type ListComboActivityRequest as fG, type ListComboMarketsRequest as fH, type ListComboPositionsRequest as fI, type ListCommentsByUserAddressRequest as fJ, type ListCommentsRequest as fK, type ListCurrentRewardsRequest as fL, type ListEventsRequest as fM, ListMarketClarificationsError as fN, type ListMarketClarificationsRequest as fO, type ListMarketHoldersRequest as fP, type ListMarketRewardsRequest as fQ, type ListMarketsRequest as fR, type ListOpenOrdersRequest as fS, type ListPositionsRequest as fT, type ListPriceHistoryRequest as fU, type ListSeriesRequest as fV, type ListTagsRequest as fW, type ListTeamsRequest as fX, type ListTraderLeaderboardRequest as fY, type ListTradesRequest as fZ, type ListUserEarningsAndMarketsConfigRequest as f_, type FetchOrdersScoringRequest as fa, type FetchPortfolioValueRequest as fb, type FetchPriceRequest as fc, type FetchPricesRequest as fd, type FetchPublicProfileRequest as fe, type FetchRelatedTagResourcesRequest as ff, type FetchRelatedTagsRequest as fg, type FetchResolutionsByConditionRequest as fh, type FetchResolutionsByEventRequest as fi, type FetchResolutionsByQuestionRequest as fj, type FetchResolutionsRequest as fk, type FetchSeriesRequest as fl, type FetchSpreadRequest as fm, type FetchSpreadsRequest as fn, type FetchTagRequest as fo, FetchTickSizeError as fp, type FetchTickSizeRequest as fq, type FetchTotalEarningsForUserForDayRequest as fr, type FetchTraderLeaderboardStandingRequest as fs, type FetchUserPnlRequest as ft, type FetchUserStatsRequest as fu, type FetchUserVolumeRequest as fv, GaslessTransactionMetadataSchema as fw, type GaslessWorkflow as fx, type GaslessWorkflowRequest as fy, IsWalletDeployedError as fz, type AnalyticsActions as g, type ResolveConditionByTokenRequest as g$, type MarketEventType as g0, type MarketSubscription as g1, MergeComboPositionError as g2, MergeMarketPositionError as g3, type MergePositionsWorkflow as g4, type MergePositionsWorkflowRequest as g5, type OrderPostingWorkflow as g6, type OrderWorkflow as g7, type OrderWorkflowRequest as g8, type PerpsBboSubscription as g9, PrepareMergeMarketPositionError as gA, type PrepareMergeMarketPositionRequest as gB, PrepareMergePositionsError as gC, type PrepareMergePositionsRequest as gD, PreparePerpsDepositError as gE, PrepareRedeemComboPositionError as gF, type PrepareRedeemComboPositionRequest as gG, type PrepareRedeemMarketPositionsByConditionIdRequest as gH, type PrepareRedeemMarketPositionsByMarketIdRequest as gI, PrepareRedeemMarketPositionsError as gJ, type PrepareRedeemMarketPositionsRequest as gK, type PrepareRedeemPositionRequest as gL, PrepareRedeemPositionsError as gM, type PrepareRedeemPositionsRequest as gN, PrepareSplitComboPositionError as gO, type PrepareSplitComboPositionRequest as gP, PrepareSplitMarketPositionError as gQ, type PrepareSplitMarketPositionRequest as gR, PrepareSplitPositionError as gS, type PrepareSplitPositionRequest as gT, PrepareTradingApprovalsError as gU, type PublicRealtimeEvent as gV, type PublicRealtimeTopic as gW, type PublicSubscriptionSpec as gX, type RedeemPositionsWorkflow as gY, type RedeemPositionsWorkflowRequest as gZ, ResolveConditionByTokenError as g_, type PerpsBookSubscription as ga, type PerpsCandlesSubscription as gb, type PerpsDepositWorkflow as gc, type PerpsDepositWorkflowRequest as gd, type PerpsMarketDataEventType as ge, type PerpsMarketDataSubscription as gf, type PerpsStatisticsSubscription as gg, type PerpsStreamingCandleInterval as gh, type PerpsTickersSubscription as gi, type PerpsTradesSubscription as gj, type PostOrdersRequest as gk, PrepareCollateralReturnExecutionError as gl, PrepareErc1155ApprovalForAllError as gm, type PrepareErc1155ApprovalForAllRequest as gn, PrepareErc20ApprovalError as go, type PrepareErc20ApprovalRequest as gp, PrepareErc20TransferError as gq, type PrepareErc20TransferRequest as gr, PrepareGaslessTransactionError as gs, type PrepareGaslessTransactionRequest as gt, type PrepareLimitOrderRequest as gu, type PrepareMarketBuyOrderRequest as gv, type PrepareMarketOrderRequest as gw, type PrepareMarketSellOrderRequest as gx, PrepareMergeComboPositionError as gy, type PrepareMergeComboPositionRequest as gz, ApproveErc1155ForAllError as h, fetchPerpsTicker as h$, type RfqConfirmationRejectedErrorOptions as h0, type RfqExecutionUpdateEvent as h1, type SearchRequest as h2, type SearchResults as h3, type SecureRealtimeEvent as h4, type SecureRealtimeTopic as h5, type SecureSubscriptionSpec as h6, SplitComboPositionError as h7, SplitMarketPositionError as h8, type SplitPositionWorkflow as h9, fetchBuilderFeeRates as hA, fetchBuilderVolume as hB, fetchClosedOnlyMode as hC, fetchCommentsById as hD, fetchEvent as hE, fetchEventLiveVolume as hF, fetchEventTags as hG, fetchExecuteParams as hH, fetchLastTradePrice as hI, fetchLastTradePrices as hJ, fetchMarket as hK, fetchMarketInfo as hL, fetchMarketTags as hM, fetchMidpoint as hN, fetchMidpoints as hO, fetchNegRisk as hP, fetchNotifications as hQ, fetchOpenInterest as hR, fetchOrder as hS, fetchOrderBook as hT, fetchOrderBooks as hU, fetchOrderScoring as hV, fetchOrdersScoring as hW, fetchPerpsBook as hX, fetchPerpsBuilderStatus as hY, fetchPerpsFees as hZ, fetchPerpsInstruments as h_, type SplitPositionWorkflowRequest as ha, type SportsEventType as hb, type SportsSubscription as hc, type TradingApprovalsWorkflow as hd, type TradingApprovalsWorkflowRequest as he, UpdateBalanceAllowanceError as hf, type UpdateBalanceAllowanceRequest as hg, type UserEventType as hh, type UserSubscription as hi, WaitForGaslessTransactionError as hj, type WaitForOrderFillSettlementRequest as hk, acceptComboQuote as hl, approveErc1155ForAll as hm, approveErc20 as hn, authorizeSessionKey as ho, cancelAll as hp, cancelMarketOrders as hq, cancelOrder as hr, cancelOrders as hs, deployDepositWallet as ht, depositToPerps as hu, downloadAccountingSnapshot as hv, dropNotifications as hw, estimateMarketPrice as hx, executeCollateralReturnPlan as hy, fetchBalanceAllowance as hz, ApproveErc20Error as i, prepareCollateralReturnExecution as i$, fetchPerpsTickers as i0, fetchPortfolioValue as i1, fetchPrice as i2, fetchPrices as i3, fetchPublicProfile as i4, fetchRelatedTagResources as i5, fetchRelatedTags as i6, fetchResolutions as i7, fetchRewardPercentages as i8, fetchRfqStatus as i9, listCurrentRewards as iA, listEvents as iB, listMarketClarifications as iC, listMarketHolders as iD, listMarketRewards as iE, listMarkets as iF, listOpenOrders as iG, listPerpsCandles as iH, listPerpsFundingHistory as iI, listPerpsTrades as iJ, listPositions as iK, listPriceHistory as iL, listSeries as iM, listTags as iN, listTeams as iO, listTraderLeaderboard as iP, listTrades as iQ, listUserEarningsAndMarketsConfig as iR, listUserEarningsForDay as iS, mergeComboPosition as iT, mergeMarketPosition as iU, mergePositions as iV, openPerpsSession as iW, openRfqSession as iX, planCollateralReturn as iY, postOrder as iZ, postOrders as i_, fetchSeries as ia, fetchSessionKeys as ib, fetchSpread as ic, fetchSpreads as id, fetchTag as ie, fetchTickSize as ig, fetchTotalEarningsForUserForDay as ih, fetchTraderLeaderboardStanding as ii, fetchTradingApprovalsState as ij, fetchTransaction as ik, fetchUserPnl as il, fetchUserStats as im, fetchUserVolume as io, isWalletDeployed as ip, listAccountTrades as iq, listActivity as ir, listBiggestWinners as is, listBuilderLeaderboard as it, listBuilderTrades as iu, listComboActivity as iv, listComboMarkets as iw, listComboPositions as ix, listComments as iy, listCommentsByUserAddress as iz, ApprovePerpsBuilderFeeError as j, prepareErc1155ApprovalForAll as j0, prepareErc20Approval as j1, prepareErc20Transfer as j2, prepareGaslessTransaction as j3, prepareMergeComboPosition as j4, prepareMergeMarketPosition as j5, prepareMergePositions as j6, preparePerpsDeposit as j7, prepareRedeemComboPosition as j8, prepareRedeemMarketPositions as j9, prepareRedeemPosition as ja, prepareRedeemPositions as jb, prepareSplitComboPosition as jc, prepareSplitMarketPosition as jd, prepareSplitPosition as je, prepareTradingApprovals as jf, redeemPositions as jg, requestComboQuote as jh, resolveConditionByToken as ji, revokePerpsCredentials as jj, revokeSessionKey as jk, search as jl, setupTradingApprovals as jm, splitComboPosition as jn, splitMarketPosition as jo, splitPosition as jp, subscribe as jq, transferErc20 as jr, transferPerpsCollateral as js, updateBalanceAllowance as jt, waitForComboFill as ju, waitForOrderFillSettlement as jv, withdrawFromPerps as jw, 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, type CancelPerpsOrderRequest as y, type CancelPerpsOrdersRequest as z };
|
|
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 };
|