@polymarket/client 0.5.0 → 0.6.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.
@@ -1,5 +1,5 @@
1
1
  import * as _polymarket_bindings from '@polymarket/bindings';
2
- import { PaginationCursor, DecimalString, OrderSide, OrderType, TokenId, BuilderCode, TxHash, EvmAddress as EvmAddress$1, CtfConditionId, TickSizeValue, PositionId, TransactionId } from '@polymarket/bindings';
2
+ import { PaginationCursor, DecimalString, BuilderCode, OrderSide, PositionId, EpochMilliseconds, TxHash, OrderType, TokenId, EvmAddress as EvmAddress$1, ConditionId, TickSizeValue, TransactionId } from '@polymarket/bindings';
3
3
  import { PolymarketError, HexString, EvmAddress, EvmSignature, NonEmptyArray, Prettify, Erc1271Signature, TxHash as TxHash$1 } from '@polymarket/types';
4
4
  import { WalletType, Event, TagReference, Market, Series, MarketClarification, Tag, RelatedTag, SportsMetadata, SportsMarketTypesResponse, Team, PublicProfile, Comment, MarketClarificationState, Profile, SearchTag } from '@polymarket/bindings/gamma';
5
5
  import { RelayerTransactionType, RelayerExecuteParams, GaslessTransaction } from '@polymarket/bindings/relayer';
@@ -9,7 +9,7 @@ import { ClobTrade, NotificationsResponse, BuilderTrade, Midpoints, Prices, Orde
9
9
  import * as _polymarket_bindings_data from '@polymarket/bindings/data';
10
10
  import { Activity, ComboActivity, Trade, Value, Traded, ClosedPosition, ComboPosition, Position, MetaMarketPosition, LeaderboardEntry, BuilderVolumeEntry, TraderLeaderboardEntry, LiveVolume, OpenInterest, MetaHolder } from '@polymarket/bindings/data';
11
11
  import * as _polymarket_bindings_combos from '@polymarket/bindings/combos';
12
- import { ComboMarket, RfqQuoteRequest, RfqRequestedSize, RfqSide, RfqQuoteAck, RfqConfirmationRequest, RfqConfirmationAck as RfqConfirmationAck$1, RfqExecutionUpdate, RfqTrade, RfqQuoteCancelAck, RfqErrorCode, RfqId, RfqQuoteId, CollateralReturnPlanResponse } from '@polymarket/bindings/combos';
12
+ 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';
13
13
  import { PerpsInstrument, PerpsTicker, PerpsBook, PerpsCandle, PerpsFundingRate, PerpsPublicTrade, PerpsFeeScheduleEntry, PerpsWithdrawalId, PerpsSortDirection, PerpsDepositStatus, PerpsWithdrawalStatus, PerpsPnlInterval, PerpsDecimalInput, PerpsTimeInForce, PerpsOrder, PerpsOrderId, PerpsCredentials, PerpsBalance, PerpsPortfolio, PerpsAccountStats, PerpsAccountConfig, PerpsAutoCancelStatus, PerpsAccountFill, PerpsAccountFundingPayment, PerpsDeposit, PerpsWithdrawal, PerpsEquityPoint, PerpsPnlPoint, PerpsNotificationEntry, PerpsPostOrderAck, PerpsCancelOrderResult, PerpsUpdateLeverageResult, PerpsInstrumentCategory, PerpsKlineInterval } from '@polymarket/bindings/perps';
14
14
  import { PerpsSessionEvent, CommentsEvent, CryptoPricesTopic, CryptoPricesChainlinkTwapTopic, CryptoPricesChainlinkTwapWindowSeconds, EquityPricesTopic, EquityPricesEvent, MarketEvent, StandardMarketEvent, CryptoPricesChainlinkTwapThirtyEvent, CryptoPricesChainlinkTwapSixtyEvent, CryptoPricesChainlinkTwapEvent, UserEvent, SportsEvent, CryptoPricesBinanceEvent, CryptoPricesChainlinkEvent, PerpsTradeEvent, PerpsBboEvent, PerpsBookEvent, PerpsCandleEvent, PerpsTickerEvent, PerpsStatisticEvent, CryptoPricesEvent, PerpsMarketDataEvent } from '@polymarket/bindings/subscriptions';
15
15
  import { Hex } from 'ox';
@@ -89,6 +89,11 @@ declare class ConnectionLostError extends PolymarketError {
89
89
  }
90
90
  type RequestRejectedErrorOptions = {
91
91
  status: number;
92
+ /**
93
+ * Machine-readable error code from the response body, when the service
94
+ * provided one.
95
+ */
96
+ code?: string;
92
97
  /**
93
98
  * Server-requested delay in seconds before retrying, when the response
94
99
  * provided one.
@@ -102,6 +107,11 @@ type RequestRejectedErrorOptions = {
102
107
  declare class RequestRejectedError extends PolymarketError {
103
108
  name: "RequestRejectedError";
104
109
  readonly status: number;
110
+ /**
111
+ * Machine-readable error code from the response body, when the service
112
+ * provided one.
113
+ */
114
+ readonly code?: string;
105
115
  /**
106
116
  * Server-requested delay in seconds before retrying, when the response
107
117
  * provided one.
@@ -1467,24 +1477,33 @@ type DataActions = {
1467
1477
  /**
1468
1478
  * Fetches the last traded price for a token.
1469
1479
  *
1480
+ * Returns `null` when the token has not traded.
1481
+ *
1470
1482
  * @throws {@link FetchLastTradePriceError}
1471
1483
  * Thrown on failure.
1472
1484
  *
1473
1485
  * @example
1474
1486
  * ```ts
1475
- * const price = await client.fetchLastTradePrice({ tokenId: '123' });
1487
+ * const trade = await client.fetchLastTradePrice({ tokenId: '123' });
1488
+ *
1489
+ * // trade === LastTradePrice | null
1476
1490
  * ```
1477
1491
  */
1478
- fetchLastTradePrice(request: FetchLastTradePriceRequest): Promise<LastTradePrice>;
1492
+ fetchLastTradePrice(request: FetchLastTradePriceRequest): Promise<LastTradePrice | null>;
1479
1493
  /**
1480
1494
  * Fetches last traded prices for multiple tokens.
1481
1495
  *
1496
+ * Tokens without trades are omitted from the response. Match returned rows by
1497
+ * `tokenId`; the array is not positionally aligned with the request.
1498
+ *
1482
1499
  * @throws {@link FetchLastTradePricesError}
1483
1500
  * Thrown on failure.
1484
1501
  *
1485
1502
  * @example
1486
1503
  * ```ts
1487
- * const prices = await client.fetchLastTradePrices([{ tokenId: '123' }]);
1504
+ * const tokenId = '123';
1505
+ * const trades = await client.fetchLastTradePrices([{ tokenId }]);
1506
+ * const trade = trades.find((candidate) => candidate.tokenId === tokenId);
1488
1507
  * ```
1489
1508
  */
1490
1509
  fetchLastTradePrices(request: FetchLastTradePricesRequest): Promise<LastTradePriceForToken[]>;
@@ -2752,6 +2771,338 @@ declare const OpenRfqSessionError: {
2752
2771
  * Thrown on failure.
2753
2772
  */
2754
2773
  declare function openRfqSession(client: BaseSecureClient): Promise<RfqSession>;
2774
+ type RfqRequestRejectedErrorOptions = {
2775
+ /** HTTP status of the rejection. */
2776
+ status: number;
2777
+ /** Classified rejection reason. */
2778
+ code: RfqRejectionCode;
2779
+ };
2780
+ /**
2781
+ * Error thrown when an RFQ request or acceptance is rejected.
2782
+ *
2783
+ * @remarks
2784
+ * Inspect {@link RfqRequestRejectedError.code} to distinguish permanent input
2785
+ * problems (`INVALID_RFQ`, `CONTRADICTORY_LEGS`) from transient conditions
2786
+ * (`LEG_METADATA_UNAVAILABLE`) that may be retried.
2787
+ *
2788
+ * Wire codes not recognized by this SDK version map to
2789
+ * {@link RfqRejectionCode.RequestFailed}; the original error is preserved on
2790
+ * `cause`.
2791
+ */
2792
+ declare class RfqRequestRejectedError extends PolymarketError {
2793
+ name: "RfqRequestRejectedError";
2794
+ /** HTTP status of the rejection. */
2795
+ readonly status: number;
2796
+ /** Classified rejection reason. */
2797
+ readonly code: RfqRejectionCode;
2798
+ constructor(message: string, options: ErrorOptions & RfqRequestRejectedErrorOptions);
2799
+ }
2800
+ type ComboQuoteFields = {
2801
+ /** RFQ identifier. */
2802
+ rfqId: RfqId;
2803
+ /** Winning quote identifier. */
2804
+ quoteId: RfqQuoteId;
2805
+ /** Builder code attached to the signed acceptance order. */
2806
+ builderCode: BuilderCode;
2807
+ /** Combo YES position traded by the acceptance order. */
2808
+ positionId: PositionId;
2809
+ /** Signed-order collateral for BUY, or position shares for SELL. */
2810
+ makerAmount: DecimalString;
2811
+ /** Signed-order shares for BUY, or gross collateral limit for SELL. */
2812
+ takerAmount: DecimalString;
2813
+ /** Blended price across legs, in collateral per outcome token. */
2814
+ blendedPrice: DecimalString;
2815
+ /** Total collateral including fees for BUY, or position shares for SELL. */
2816
+ totalRequired: DecimalString;
2817
+ /** Acceptance deadline (Unix ms). */
2818
+ expiresAt: EpochMilliseconds;
2819
+ };
2820
+ /**
2821
+ * A self-contained winning combo quote.
2822
+ *
2823
+ * @remarks
2824
+ * The quote is plain JSON data and carries every input needed to accept it.
2825
+ * It may be persisted or routed between processes before being passed to
2826
+ * {@link acceptComboQuote}.
2827
+ */
2828
+ type ComboQuote = ComboQuoteFields & ({
2829
+ /** Trade direction of the original request. */
2830
+ direction: OrderSide.BUY;
2831
+ /** Net proceeds apply only to SELL quotes. */
2832
+ netReceive?: undefined;
2833
+ } | {
2834
+ /** Trade direction of the original request. */
2835
+ direction: OrderSide.SELL;
2836
+ /** Exact collateral proceeds for the quoted bundle after fees. */
2837
+ netReceive: DecimalString;
2838
+ });
2839
+ type RequestComboQuoteParams = {
2840
+ /** Position IDs of the combo legs. Between 2 and 50, no duplicates. */
2841
+ legPositionIds: string[];
2842
+ /**
2843
+ * Combinatorial position side. Only `YES` is currently supported.
2844
+ *
2845
+ * @defaultValue {@link RfqSide.Yes}
2846
+ */
2847
+ side?: RfqSide.Yes;
2848
+ } & ({
2849
+ direction: OrderSide.BUY;
2850
+ /**
2851
+ * Collateral to spend, in USDC, including fees.
2852
+ *
2853
+ * This is the human-readable amount: `1` means one dollar, not one
2854
+ * 6-decimal base unit.
2855
+ */
2856
+ amount: number | string;
2857
+ } | {
2858
+ direction: OrderSide.SELL;
2859
+ /**
2860
+ * Size to sell, in outcome tokens.
2861
+ *
2862
+ * This is the human-readable token amount: `1` means one full share,
2863
+ * not one 6-decimal base unit.
2864
+ */
2865
+ size: number | string;
2866
+ });
2867
+ type RequestComboQuoteResult = {
2868
+ rfqId: RfqId;
2869
+ /** The winning quote. */
2870
+ quote: ComboQuote;
2871
+ } | {
2872
+ rfqId: RfqId;
2873
+ /** No usable quote was returned. */
2874
+ quote: null;
2875
+ reason: ComboQuoteUnavailableReason;
2876
+ };
2877
+ type RequestComboQuoteError = RateLimitError | RfqRequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
2878
+ declare const RequestComboQuoteError: {
2879
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RateLimitError | RfqRequestRejectedError;
2880
+ };
2881
+ /**
2882
+ * Requests a quote for a combo of positions.
2883
+ *
2884
+ * @remarks
2885
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
2886
+ *
2887
+ * Resolves when the quote competition window closes. A request that attracts
2888
+ * no usable quotes is a normal outcome, returned as `quote: null` with a
2889
+ * reason rather than thrown.
2890
+ *
2891
+ * A winning quote is self-contained JSON data and may be persisted or routed
2892
+ * to another process before acceptance.
2893
+ *
2894
+ * @throws {@link RequestComboQuoteError}
2895
+ * Thrown on failure.
2896
+ *
2897
+ * @example
2898
+ * ```ts
2899
+ * const result = await requestComboQuote(client, {
2900
+ * legPositionIds: ['123', '456'],
2901
+ * direction: OrderSide.BUY,
2902
+ * amount: 100,
2903
+ * });
2904
+ *
2905
+ * if (result.quote !== null) {
2906
+ * // result.quote.blendedPrice: DecimalString
2907
+ * // result.quote.totalRequired: DecimalString
2908
+ * // SELL quotes also carry result.quote.netReceive after fees.
2909
+ * }
2910
+ * ```
2911
+ */
2912
+ declare function requestComboQuote(client: BaseSecureClient, params: RequestComboQuoteParams): Promise<RequestComboQuoteResult>;
2913
+ declare const AcceptComboQuoteParamsSchema: z.ZodObject<{
2914
+ blendedPrice: z.ZodString;
2915
+ builderCode: z.ZodPipe<z.ZodString, z.ZodTransform<BuilderCode, string>>;
2916
+ direction: z.ZodType<OrderSide, "BUY" | "SELL", z.core.$ZodTypeInternals<OrderSide, "BUY" | "SELL">>;
2917
+ expiresAt: z.ZodNumber;
2918
+ makerAmount: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<string, string | number>>, z.ZodTransform<_polymarket_bindings.BaseUnits, string>>;
2919
+ netReceive: z.ZodOptional<z.ZodString>;
2920
+ positionId: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
2921
+ quoteId: z.ZodPipe<z.ZodString, z.ZodTransform<RfqQuoteId, string>>;
2922
+ rfqId: z.ZodPipe<z.ZodString, z.ZodTransform<RfqId, string>>;
2923
+ takerAmount: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<string, string | number>>, z.ZodTransform<_polymarket_bindings.BaseUnits, string>>;
2924
+ totalRequired: z.ZodString;
2925
+ }, z.core.$strip>;
2926
+ type AcceptComboQuoteParamsInput = z.input<typeof AcceptComboQuoteParamsSchema>;
2927
+ type AcceptComboQuoteParamsFields = {
2928
+ /** RFQ identifier. */
2929
+ rfqId: string;
2930
+ /** Winning quote identifier. */
2931
+ quoteId: string;
2932
+ /** Builder code attached to the signed acceptance order. */
2933
+ builderCode: string;
2934
+ /** Trade direction of the original request. */
2935
+ direction: `${OrderSide}`;
2936
+ /** Combo YES position traded by the acceptance order. */
2937
+ positionId: string;
2938
+ /** Signed-order collateral for BUY, or position shares for SELL. */
2939
+ makerAmount: number | string;
2940
+ /** Signed-order shares for BUY, or gross collateral limit for SELL. */
2941
+ takerAmount: number | string;
2942
+ /** Exact collateral proceeds after fees for a SELL quote. */
2943
+ netReceive?: string;
2944
+ /** Blended price across legs, in collateral per outcome token. */
2945
+ blendedPrice: string;
2946
+ /** Total collateral including fees for BUY, or position shares for SELL. */
2947
+ totalRequired: string;
2948
+ /** Acceptance deadline (Unix ms). */
2949
+ expiresAt: number;
2950
+ };
2951
+ type AcceptComboQuoteParamsSchemaMatch = AcceptComboQuoteParamsFields extends AcceptComboQuoteParamsInput ? AcceptComboQuoteParamsInput extends AcceptComboQuoteParamsFields ? unknown : never : never;
2952
+ /**
2953
+ * Plain JSON representation of a self-contained combo quote.
2954
+ *
2955
+ * @remarks
2956
+ * {@link ComboQuote} is assignable to this type, while quotes restored from a
2957
+ * typed transport or persistence boundary do not need to recreate the SDK's
2958
+ * branded return types. Its fields are checked against the runtime input
2959
+ * schema at compile time.
2960
+ */
2961
+ type AcceptComboQuoteParams = AcceptComboQuoteParamsInput & AcceptComboQuoteParamsFields & AcceptComboQuoteParamsSchemaMatch;
2962
+ type AcceptComboQuoteResult = {
2963
+ status: 'executing';
2964
+ rfqId: RfqId;
2965
+ /**
2966
+ * Hash of the recorded acceptance order.
2967
+ *
2968
+ * Absent when a retry attached to an acceptance recorded by an earlier
2969
+ * attempt; the retried order was not the one recorded.
2970
+ */
2971
+ takerOrderHash?: string;
2972
+ } | {
2973
+ status: 'failed';
2974
+ rfqId: RfqId;
2975
+ reason: ComboAcceptFailureReason;
2976
+ /** Raw error behind the failure, when provided. */
2977
+ error?: BuilderRfqError;
2978
+ };
2979
+ type AcceptComboQuoteError = CancelledSigningError | RateLimitError | RfqRequestRejectedError | SigningError | TimeoutError | TransportError | UnexpectedResponseError | UserInputError;
2980
+ declare const AcceptComboQuoteError: {
2981
+ isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RateLimitError | TimeoutError | RfqRequestRejectedError;
2982
+ };
2983
+ /**
2984
+ * Accepts a self-contained combo quote, signing the acceptance order for the
2985
+ * authenticated account.
2986
+ *
2987
+ * @remarks
2988
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
2989
+ *
2990
+ * Resolves at the maker last-look outcome. A maker declining or the
2991
+ * acceptance window expiring is a normal outcome, returned as
2992
+ * `status: 'failed'`. `status: 'executing'` means the trade was handed off
2993
+ * for onchain execution; follow it with {@link waitForComboFill}.
2994
+ *
2995
+ * A transport failure or unrecognized acceptance response is retried once
2996
+ * automatically; this is safe because an already-accepted RFQ reports its
2997
+ * current status instead of executing twice. After such a retry
2998
+ * `takerOrderHash` is absent because the retried order was not the one
2999
+ * recorded.
3000
+ *
3001
+ * The quote is JSON-serializable and may cross process boundaries before
3002
+ * acceptance. The accepting client must represent the same account and
3003
+ * builder identity used to request it.
3004
+ * Treat the quote as signing-sensitive data: preserve its integrity across
3005
+ * process boundaries and do not accept fields modified by an untrusted client.
3006
+ *
3007
+ * @throws {@link AcceptComboQuoteError}
3008
+ * Thrown on failure.
3009
+ *
3010
+ * @example
3011
+ * ```ts
3012
+ * const result = await requestComboQuote(client, {
3013
+ * legPositionIds: ['123', '456'],
3014
+ * direction: OrderSide.BUY,
3015
+ * amount: 100,
3016
+ * });
3017
+ *
3018
+ * if (result.quote !== null) {
3019
+ * const acceptance = await acceptComboQuote(client, result.quote);
3020
+ * }
3021
+ * ```
3022
+ */
3023
+ declare function acceptComboQuote(client: BaseSecureClient, params: AcceptComboQuoteParams): Promise<AcceptComboQuoteResult>;
3024
+ type WaitForComboFillParams = {
3025
+ /** RFQ identifier of an accepted RFQ. */
3026
+ rfqId: string;
3027
+ /**
3028
+ * Give up after this long.
3029
+ *
3030
+ * @defaultValue 30_000
3031
+ */
3032
+ timeoutMs?: number;
3033
+ /** @defaultValue 1_000 */
3034
+ pollingIntervalMs?: number;
3035
+ };
3036
+ type WaitForComboFillResult = {
3037
+ status: RfqStatus.Filled;
3038
+ rfqId: RfqId;
3039
+ txHash: TxHash;
3040
+ } | {
3041
+ status: RfqStatus.Failed | RfqStatus.Expired | RfqStatus.Canceled;
3042
+ rfqId: RfqId;
3043
+ /** Raw error behind the failure, when provided. */
3044
+ error?: BuilderRfqError;
3045
+ };
3046
+ type WaitForComboFillError = RateLimitError | RfqRequestRejectedError | TimeoutError | TransportError | UnexpectedResponseError | UserInputError;
3047
+ declare const WaitForComboFillError: {
3048
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RateLimitError | TimeoutError | RfqRequestRejectedError;
3049
+ };
3050
+ /**
3051
+ * Waits for an accepted RFQ to reach a terminal state.
3052
+ *
3053
+ * @remarks
3054
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
3055
+ *
3056
+ * Polls the RFQ status until it is filled (or confirmed onchain), `FAILED`,
3057
+ * `EXPIRED`, or `CANCELED`. Terminal failure is a normal outcome and is
3058
+ * returned, not thrown. A {@link TimeoutError} does not mean the trade
3059
+ * failed; resume with {@link fetchRfqStatus}.
3060
+ *
3061
+ * @throws {@link WaitForComboFillError}
3062
+ * Thrown on failure.
3063
+ *
3064
+ * @example
3065
+ * ```ts
3066
+ * const fill = await waitForComboFill(client, { rfqId });
3067
+ *
3068
+ * if (fill.status === RfqStatus.Filled) {
3069
+ * // fill.txHash: TxHash
3070
+ * }
3071
+ * ```
3072
+ */
3073
+ declare function waitForComboFill(client: BaseSecureClient, params: WaitForComboFillParams): Promise<WaitForComboFillResult>;
3074
+ type FetchRfqStatusParams = {
3075
+ /** RFQ identifier of an accepted RFQ. */
3076
+ rfqId: string;
3077
+ };
3078
+ /**
3079
+ * Status projection for an accepted RFQ.
3080
+ *
3081
+ * @remarks
3082
+ * Onchain execution progress is merged into the top-level `status`:
3083
+ * {@link RfqExecutionStatus} values surface alongside the RFQ lifecycle.
3084
+ */
3085
+ type RfqStatusResult = BuilderRfqStatusResponse;
3086
+ type FetchRfqStatusError = RateLimitError | RfqRequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
3087
+ declare const FetchRfqStatusError: {
3088
+ isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RateLimitError | RfqRequestRejectedError;
3089
+ };
3090
+ /**
3091
+ * Fetches the status of an accepted RFQ.
3092
+ *
3093
+ * @remarks
3094
+ * Status is available once an acceptance has been recorded; earlier reads are
3095
+ * rejected.
3096
+ *
3097
+ * @throws {@link FetchRfqStatusError}
3098
+ * Thrown on failure.
3099
+ *
3100
+ * @example
3101
+ * ```ts
3102
+ * const status = await fetchRfqStatus(client, { rfqId });
3103
+ * ```
3104
+ */
3105
+ declare function fetchRfqStatus(client: BaseSecureClient, params: FetchRfqStatusParams): Promise<RfqStatusResult>;
2755
3106
 
2756
3107
  type SecureRfqActions = {
2757
3108
  /**
@@ -2887,6 +3238,102 @@ type SecureRfqActions = {
2887
3238
  * Thrown on failure.
2888
3239
  */
2889
3240
  openRfqSession(): Promise<RfqSession>;
3241
+ /**
3242
+ * Requests a quote for a combo of positions.
3243
+ *
3244
+ * @remarks
3245
+ * Resolves when the quote competition window closes. A request that
3246
+ * attracts no usable quotes is a normal outcome, returned as `quote: null`
3247
+ * with a reason rather than thrown.
3248
+ *
3249
+ * A winning quote is self-contained JSON data and may be persisted or
3250
+ * routed to another process before acceptance.
3251
+ *
3252
+ * Requires a Builder API Key in the client configuration, via
3253
+ * `builderApiKey(...)` or `remoteBuilderSigning(...)`.
3254
+ *
3255
+ * @throws {@link RequestComboQuoteError}
3256
+ * Thrown on failure.
3257
+ *
3258
+ * @example
3259
+ * ```ts
3260
+ * const result = await client.requestComboQuote({
3261
+ * legPositionIds: ['123', '456'],
3262
+ * direction: OrderSide.BUY,
3263
+ * amount: 100,
3264
+ * });
3265
+ *
3266
+ * if (result.quote !== null) {
3267
+ * // result.quote.blendedPrice: DecimalString
3268
+ * // result.quote.totalRequired: DecimalString
3269
+ * // SELL quotes also carry result.quote.netReceive after fees.
3270
+ * // result.quote.expiresAt: EpochMilliseconds
3271
+ * }
3272
+ * ```
3273
+ */
3274
+ requestComboQuote(params: RequestComboQuoteParams): Promise<RequestComboQuoteResult>;
3275
+ /**
3276
+ * Accepts a self-contained combo quote, signing the acceptance order for
3277
+ * the authenticated account.
3278
+ *
3279
+ * @remarks
3280
+ * Resolves at the maker last-look outcome. A maker declining or the
3281
+ * acceptance window expiring is a normal outcome, returned as
3282
+ * `status: 'failed'`. `status: 'executing'` means the trade was handed off
3283
+ * for onchain execution; follow it with `waitForComboFill`.
3284
+ *
3285
+ * A transport failure or unrecognized acceptance response is retried once
3286
+ * automatically; this is safe because an already-accepted RFQ reports its
3287
+ * current status instead of executing twice. After such a retry
3288
+ * `takerOrderHash` is absent because the retried order was not the one
3289
+ * recorded.
3290
+ *
3291
+ * The quote is JSON-serializable and may cross process boundaries before
3292
+ * acceptance. The accepting client must represent the same account and
3293
+ * builder identity used to request it.
3294
+ * Treat the quote as signing-sensitive data: preserve its integrity across
3295
+ * process boundaries and do not accept fields modified by an untrusted client.
3296
+ *
3297
+ * @throws {@link AcceptComboQuoteError}
3298
+ * Thrown on failure.
3299
+ *
3300
+ * @example
3301
+ * ```ts
3302
+ * const result = await client.requestComboQuote({
3303
+ * legPositionIds: ['123', '456'],
3304
+ * direction: OrderSide.BUY,
3305
+ * amount: 100,
3306
+ * });
3307
+ *
3308
+ * if (result.quote !== null) {
3309
+ * const acceptance = await client.acceptComboQuote(result.quote);
3310
+ * }
3311
+ * ```
3312
+ */
3313
+ acceptComboQuote(params: AcceptComboQuoteParams): Promise<AcceptComboQuoteResult>;
3314
+ /**
3315
+ * Waits for an accepted RFQ to reach a terminal state.
3316
+ *
3317
+ * @remarks
3318
+ * Polls the RFQ status until it is filled (or confirmed onchain),
3319
+ * `FAILED`, `EXPIRED`, or `CANCELED`. Terminal failure is a normal outcome
3320
+ * and is returned, not thrown. A `TimeoutError` does not mean the trade
3321
+ * failed; resume with the `fetchRfqStatus` action from
3322
+ * `@polymarket/client/actions`.
3323
+ *
3324
+ * @throws {@link WaitForComboFillError}
3325
+ * Thrown on failure.
3326
+ *
3327
+ * @example
3328
+ * ```ts
3329
+ * const fill = await client.waitForComboFill({ rfqId });
3330
+ *
3331
+ * if (fill.status === RfqStatus.Filled) {
3332
+ * // fill.txHash: TxHash
3333
+ * }
3334
+ * ```
3335
+ */
3336
+ waitForComboFill(params: WaitForComboFillParams): Promise<WaitForComboFillResult>;
2890
3337
  };
2891
3338
  declare function rfqActions(client: BaseSecureClient): SecureRfqActions;
2892
3339
 
@@ -3882,6 +4329,7 @@ type ClobEndpoints = RestEndpoint & {
3882
4329
  user: WebSocketEndpoint;
3883
4330
  };
3884
4331
  type CombosEndpoints = RestEndpoint & WebSocketEndpoint & {
4332
+ builderGateway: RestEndpoint;
3885
4333
  collateralReturn: RestEndpoint;
3886
4334
  };
3887
4335
  /**
@@ -3924,6 +4372,7 @@ type EnvironmentConfigFork = {
3924
4372
  gamma?: Partial<RestEndpoint>;
3925
4373
  data?: Partial<RestEndpoint>;
3926
4374
  combos?: EnvironmentConfigForkEndpoint & {
4375
+ builderGateway?: Partial<RestEndpoint>;
3927
4376
  collateralReturn?: Partial<RestEndpoint>;
3928
4377
  };
3929
4378
  perps?: EnvironmentConfigForkEndpoint;
@@ -4933,9 +5382,9 @@ declare const ResolveConditionByTokenError: {
4933
5382
  * @throws {@link ResolveConditionByTokenError}
4934
5383
  * Thrown on failure.
4935
5384
  */
4936
- declare function resolveConditionByToken(client: BaseClient, request: ResolveConditionByTokenRequest): Promise<CtfConditionId>;
5385
+ declare function resolveConditionByToken(client: BaseClient, request: ResolveConditionByTokenRequest): Promise<ConditionId>;
4937
5386
  declare const FetchMarketInfoRequestSchema: z.ZodObject<{
4938
- conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
5387
+ conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
4939
5388
  }, z.core.$strip>;
4940
5389
  type FetchMarketInfoRequest = z.input<typeof FetchMarketInfoRequestSchema>;
4941
5390
  type FetchMarketInfoError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
@@ -5163,6 +5612,8 @@ declare const FetchLastTradePriceError: {
5163
5612
  /**
5164
5613
  * Fetches the last traded price for a token.
5165
5614
  *
5615
+ * Returns `null` when the token has not traded.
5616
+ *
5166
5617
  * @remarks
5167
5618
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
5168
5619
  *
@@ -5176,11 +5627,11 @@ declare const FetchLastTradePriceError: {
5176
5627
  * '8501497159083948713316135768103773293754490207922884688769443031624417212426',
5177
5628
  * });
5178
5629
  *
5179
- * // trade === { price: '0.53', side: OrderSide.BUY }
5630
+ * // trade === LastTradePrice | null
5180
5631
  * ```
5181
5632
  *
5182
5633
  */
5183
- declare function fetchLastTradePrice(client: BaseClient, request: FetchLastTradePriceRequest): Promise<LastTradePrice>;
5634
+ declare function fetchLastTradePrice(client: BaseClient, request: FetchLastTradePriceRequest): Promise<LastTradePrice | null>;
5184
5635
  declare const FetchLastTradePricesRequestSchema: z.ZodArray<z.ZodObject<{
5185
5636
  tokenId: z.ZodString;
5186
5637
  }, z.core.$strip>>;
@@ -5192,6 +5643,9 @@ declare const FetchLastTradePricesError: {
5192
5643
  /**
5193
5644
  * Fetches last traded prices for multiple tokens.
5194
5645
  *
5646
+ * Tokens without trades are omitted from the response. Match returned rows by
5647
+ * `tokenId`; the array is not positionally aligned with the request.
5648
+ *
5195
5649
  * @remarks
5196
5650
  * This is a low-level function. Most SDK consumers should prefer the client instance API.
5197
5651
  *
@@ -5200,14 +5654,11 @@ declare const FetchLastTradePricesError: {
5200
5654
  *
5201
5655
  * @example
5202
5656
  * ```ts
5203
- * const trades = await fetchLastTradePrices(client, [
5204
- * {
5205
- * tokenId:
5206
- * '8501497159083948713316135768103773293754490207922884688769443031624417212426',
5207
- * },
5208
- * ]);
5657
+ * const tokenId =
5658
+ * '8501497159083948713316135768103773293754490207922884688769443031624417212426';
5659
+ * const trades = await fetchLastTradePrices(client, [{ tokenId }]);
5209
5660
  *
5210
- * // trades[0] === { tokenId, price: '0.53', side: OrderSide.BUY }
5661
+ * const trade = trades.find((candidate) => candidate.tokenId === tokenId);
5211
5662
  * ```
5212
5663
  *
5213
5664
  */
@@ -5290,7 +5741,7 @@ declare const ListCurrentRewardsError: {
5290
5741
  */
5291
5742
  declare function listCurrentRewards(client: BaseClient, request?: ListCurrentRewardsRequest): Paginated<CurrentReward[]>;
5292
5743
  declare const ListMarketRewardsRequestSchema: z.ZodObject<{
5293
- conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
5744
+ conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
5294
5745
  cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
5295
5746
  sponsored: z.ZodOptional<z.ZodBoolean>;
5296
5747
  }, z.core.$strip>;
@@ -5965,7 +6416,7 @@ declare const ListMarketsRequestSchema: z.ZodObject<{
5965
6416
  clobTokenIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
5966
6417
  cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
5967
6418
  pageSize: z.ZodOptional<z.ZodNumber>;
5968
- conditionIds: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.CtfConditionId, string>>>>;
6419
+ conditionIds: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.ConditionId, string>>>>;
5969
6420
  cyom: z.ZodOptional<z.ZodBoolean>;
5970
6421
  decimalized: z.ZodOptional<z.ZodBoolean>;
5971
6422
  endDateMax: z.ZodOptional<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<_polymarket_bindings.IsoDateTimeString, Date>>]>>;
@@ -6096,7 +6547,7 @@ declare function listMarkets(client: BaseClient, request?: ListMarketsRequest):
6096
6547
  declare const ListComboMarketsRequestSchema: z.ZodObject<{
6097
6548
  cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
6098
6549
  pageSize: z.ZodOptional<z.ZodNumber>;
6099
- exclude: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.CtfConditionId, string>>>>;
6550
+ exclude: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.ConditionId, string>>>>;
6100
6551
  }, z.core.$strip>;
6101
6552
  type ListComboMarketsRequest = z.input<typeof ListComboMarketsRequestSchema>;
6102
6553
  type ListComboMarketsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
@@ -7810,7 +8261,7 @@ type PrepareSplitMarketPositionRequest = {
7810
8261
  /** Amount of collateral to convert into market positions. */
7811
8262
  amount: bigint;
7812
8263
  /** Existing market condition ID that identifies the positions to mint. */
7813
- conditionId: string | CtfConditionId;
8264
+ conditionId: string | ConditionId;
7814
8265
  /** Optional transaction metadata for workflows that support metadata. */
7815
8266
  metadata?: string;
7816
8267
  };
@@ -7964,7 +8415,7 @@ type PrepareMergeMarketPositionRequest = {
7964
8415
  /** Amount per complementary market position to merge. */
7965
8416
  amount: bigint | 'max';
7966
8417
  /** Existing market condition ID that identifies the positions to merge. */
7967
- conditionId: string | CtfConditionId;
8418
+ conditionId: string | ConditionId;
7968
8419
  /** Optional transaction metadata for workflows that support metadata. */
7969
8420
  metadata?: string;
7970
8421
  };
@@ -8074,7 +8525,7 @@ declare function mergePositions(client: BaseSecureClient, request: PrepareMergeP
8074
8525
  */
8075
8526
  type PrepareRedeemMarketPositionsByConditionIdRequest = {
8076
8527
  /** Existing market condition ID that identifies the positions to redeem. */
8077
- conditionId: string | CtfConditionId;
8528
+ conditionId: string | ConditionId;
8078
8529
  marketId?: never;
8079
8530
  amount?: never;
8080
8531
  positionId?: never;
@@ -8878,4 +9329,4 @@ type Signer = {
8878
9329
  sendTransaction(request: SignerTransactionRequest): Promise<TransactionHandle>;
8879
9330
  };
8880
9331
 
8881
- export { FetchEventTagsError as $, type ApiKeyAuthorization as A, type BaseClient as B, CancelAllError as C, type ConnectionLostErrorOptions as D, type CreatePerpsSessionRequest as E, CreateSecureClientError as F, type CryptoPricesChainlinkTwapSubscription as G, type DataActions as H, DepositToPerpsError as I, type DepositToPerpsRequest as J, type DisarmPerpsAutoCancelRequest as K, type DiscoveryActions as L, DownloadAccountingSnapshotError as M, DropNotificationsError as N, type EnvironmentConfig as O, type EnvironmentConfigFork as P, type EnvironmentContracts as Q, EstimateMarketPriceError as R, type Signer as S, type TypedDataPayload as T, UserInputError as U, ExecuteCollateralReturnPlanError as V, type ExecuteCollateralReturnPlanRequest as W, FetchClosedOnlyModeError as X, FetchCommentsByIdError as Y, FetchEventError as Z, FetchEventLiveVolumeError as _, type TypedData as a, ListPerpsFundingHistoryError as a$, FetchLastTradePriceError as a0, FetchLastTradePricesError as a1, FetchMarketError as a2, FetchMarketTagsError as a3, FetchMidpointError as a4, FetchMidpointsError as a5, FetchNotificationsError as a6, FetchOrderBookError as a7, FetchOrderBooksError as a8, FetchOrderError as a9, FetchTotalEarningsForUserForDayError as aA, FetchTradedMarketCountError as aB, InsufficientLiquidityError as aC, ListAccountTradesError as aD, ListActivityError as aE, ListBuilderLeaderboardError as aF, ListBuilderTradesError as aG, ListBuilderVolumeError as aH, ListClosedPositionsError as aI, ListComboActivityError as aJ, ListComboMarketsError as aK, ListComboPositionsError as aL, ListCommentsByUserAddressError as aM, ListCommentsError as aN, ListCurrentRewardsError as aO, ListEventsError as aP, ListMarketHoldersError as aQ, ListMarketPositionsError as aR, ListMarketRewardsError as aS, ListMarketsError as aT, ListOpenInterestError as aU, ListOpenOrdersError as aV, ListPerpsCandlesError as aW, type ListPerpsCandlesRequest as aX, type ListPerpsDepositsRequest as aY, type ListPerpsEquityHistoryRequest as aZ, type ListPerpsFillsRequest as a_, FetchOrderScoringError as aa, FetchOrdersScoringError as ab, type FetchPerpsAccountConfigRequest as ac, FetchPerpsBookError as ad, type FetchPerpsBookRequest as ae, FetchPerpsFeesError as af, FetchPerpsInstrumentsError as ag, type FetchPerpsInstrumentsRequest as ah, type FetchPerpsOpenOrdersRequest as ai, type FetchPerpsOrdersRequest as aj, FetchPerpsTickerError as ak, type FetchPerpsTickerRequest as al, FetchPerpsTickersError as am, type FetchPerpsTickersRequest as an, FetchPortfolioValueError as ao, FetchPriceError as ap, FetchPriceHistoryError as aq, FetchPricesError as ar, FetchPublicProfileError as as, FetchRelatedTagResourcesError as at, FetchRelatedTagsError as au, FetchRewardPercentagesError as av, FetchSeriesError as aw, FetchSpreadError as ax, FetchSpreadsError as ay, FetchTagError as az, type TransactionCall as b, type RevokePerpsCredentialsRequest as b$, type ListPerpsFundingHistoryRequest as b0, type ListPerpsFundingPaymentsRequest as b1, type ListPerpsNotificationsRequest as b2, type ListPerpsPnlHistoryRequest as b3, ListPerpsTradesError as b4, type ListPerpsTradesRequest as b5, type ListPerpsWithdrawalsRequest as b6, ListPositionsError as b7, ListSeriesError as b8, ListTagsError as b9, type PerpsSessionTradingError as bA, type PerpsTpSlTrigger as bB, type PlacePerpsOrderRequest as bC, type PlacePerpsOrderResult as bD, type PlacePerpsOrderWithTpSlRequest as bE, type PlacePerpsOrderWithTpSlResult as bF, type PlacePerpsPositionTpSlRequest as bG, type PlacePerpsPositionTpSlResult as bH, PlanCollateralReturnError as bI, PostOrderError as bJ, PostOrdersError as bK, type PostPerpsOrdersRequest as bL, type PublicAccountActions as bM, type PublicActions as bN, type PublicClient as bO, type PublicClientOptions as bP, type PublicPerpsActions as bQ, type PublicRewardsActions as bR, type PublicSubscriptionsActions as bS, RateLimitError as bT, type RateLimitErrorOptions as bU, RedeemPositionsError as bV, RequestRejectedError as bW, type RequestRejectedErrorOptions as bX, type RestEndpoint as bY, type ResumePerpsSessionRequest as bZ, RevokePerpsCredentialsError as b_, ListTeamsError as ba, ListTraderLeaderboardError as bb, ListTradesError as bc, ListUserEarningsAndMarketsConfigError as bd, ListUserEarningsForDayError as be, type MarkPerpsNotificationsReadRequest as bf, MergePositionsError as bg, OpenPerpsSessionError as bh, type OpenPerpsSessionRequest as bi, OpenRfqSessionError as bj, type Page as bk, PageSizeSchema as bl, type Paginated as bm, type PerpsActions as bn, type PerpsBookDepth as bo, type PerpsEndpoints as bp, type PerpsOrderRequest as bq, type PerpsPlaceFokOrderRequest as br, type PerpsPlaceGtcOrderRequest as bs, type PerpsPlaceIocOrderRequest as bt, type PerpsPlacedTpSlOrder as bu, type PerpsPlacedTpSlOrders as bv, type PerpsPositionTpSlTrigger as bw, PerpsSession as bx, type PerpsSessionAccountError as by, type PerpsSessionLifecycleError as bz, type AccountIdentity as c, WithdrawFromPerpsError as c$, type RfqCancelQuoteAck as c0, RfqCancelQuoteError as c1, RfqCancelQuoteRejectedError as c2, type RfqCancelQuoteRejectedErrorOptions as c3, type RfqConfirmationAck as c4, RfqConfirmationError as c5, RfqConfirmationRejectedError as c6, type RfqConfirmationRequestEvent as c7, type RfqEvent as c8, RfqQuoteError as c9, type SecureTradingActions as cA, type SecureWalletActions as cB, SetupGaslessWalletError as cC, SetupTradingApprovalsError as cD, type SignerTransactionRequest as cE, SigningError as cF, SplitPositionError as cG, SubscribeError as cH, TimeoutError as cI, TransactionFailedError as cJ, type TransactionHandle as cK, type TransactionOutcome as cL, TransferErc20Error as cM, TransportError as cN, type TypedDataDomain as cO, type TypedDataField as cP, UnexpectedResponseError as cQ, UpdatePerpsLeverageError as cR, type UpdatePerpsLeverageRequest as cS, UpdatePerpsMarginError as cT, type UpdatePerpsMarginRequest as cU, WaitForOrderFillSettlementError as cV, WaitForTransactionError as cW, type WalletDerivationConfig as cX, type WebSocketCloseCode as cY, type WebSocketEndpoint as cZ, WebSocketKnownCloseCode as c_, type RfqQuoteReference as ca, RfqQuoteRejectedError as cb, type RfqQuoteRejectedErrorOptions as cc, type RfqQuoteRequestEvent as cd, type RfqQuoteResponse as ce, type RfqQuoteSource as cf, type RfqSession as cg, type RfqTradeEvent as ch, SearchError as ci, SearchSort as cj, type SecureAccountActions as ck, type SecureActions as cl, type SecureClient as cm, type SecureClientOptions as cn, type SecureDownloadAccountingSnapshotRequest as co, type SecureFetchPortfolioValueRequest as cp, type SecureFetchTradedMarketCountRequest as cq, type SecureListActivityRequest as cr, type SecureListClosedPositionsRequest as cs, type SecureListComboActivityRequest as ct, type SecureListComboPositionsRequest as cu, type SecureListPositionsRequest as cv, type SecurePerpsActions as cw, type SecureRewardsActions as cx, type SecureRfqActions as cy, type SecureSubscriptionsActions as cz, type AnalyticsActions as d, type FetchOrderBookRequest as d$, type WithdrawFromPerpsRequest as d0, accountActions as d1, allActions as d2, analyticsActions as d3, createPublicClient as d4, createSecureClient as d5, dataActions as d6, discoveryActions as d7, forkEnvironmentConfig as d8, makeErrorGuard as d9, type Erc20TransferWorkflowRequest as dA, type EstimateMarketBuyPriceRequest as dB, type EstimateMarketPriceRequest as dC, type EstimateMarketSellPriceRequest as dD, type EventForSubscriptionSpec as dE, type EventForSubscriptionSpecs as dF, FetchBalanceAllowanceError as dG, type FetchBalanceAllowanceRequest as dH, FetchBuilderFeeRatesError as dI, type FetchBuilderFeeRatesRequest as dJ, type FetchCommentsByIdRequest as dK, type FetchEventLiveVolumeRequest as dL, type FetchEventRequest as dM, type FetchEventTagsRequest as dN, FetchExecuteParamsError as dO, type FetchExecuteParamsRequest as dP, type FetchGaslessTransactionRequest as dQ, type FetchLastTradePriceRequest as dR, type FetchLastTradePricesRequest as dS, FetchMarketInfoError as dT, type FetchMarketInfoRequest as dU, type FetchMarketRequest as dV, type FetchMarketTagsRequest as dW, type FetchMidpointRequest as dX, type FetchMidpointsRequest as dY, FetchNegRiskError as dZ, type FetchNegRiskRequest as d_, perpsActions as da, production as db, rewardsActions as dc, rfqActions as dd, subscriptionsActions as de, tradingActions as df, walletActions as dg, type CancelMarketOrdersRequest as dh, type CancelOrderRequest as di, type CancelOrdersRequest as dj, type CollateralReturnExecutionWorkflow as dk, type CommentsEventType as dl, type CommentsSubscription as dm, type CryptoPricesEventType as dn, type CryptoPricesSubscription as dp, DeployDepositWalletError as dq, type DownloadAccountingSnapshotRequest as dr, type DropNotificationsRequest as ds, type EquityPricesEventType as dt, type EquityPricesSubscription as du, type Erc1155ApprovalForAllWorkflow as dv, type Erc1155ApprovalForAllWorkflowRequest as dw, type Erc20ApprovalWorkflow as dx, type Erc20ApprovalWorkflowRequest as dy, type Erc20TransferWorkflow as dz, ApproveErc1155ForAllError as e, type PerpsBboSubscription as e$, type FetchOrderBooksRequest as e0, type FetchOrderRequest as e1, type FetchOrderScoringRequest as e2, type FetchOrdersScoringRequest as e3, type FetchPortfolioValueRequest as e4, type FetchPriceHistoryRequest as e5, type FetchPriceRequest as e6, type FetchPricesRequest as e7, type FetchPublicProfileRequest as e8, type FetchRelatedTagResourcesRequest as e9, type ListEventsRequest as eA, ListMarketClarificationsError as eB, type ListMarketClarificationsRequest as eC, type ListMarketHoldersRequest as eD, type ListMarketPositionsRequest as eE, type ListMarketRewardsRequest as eF, type ListMarketsRequest as eG, type ListOpenInterestRequest as eH, type ListOpenOrdersRequest as eI, type ListPositionsRequest as eJ, type ListSeriesRequest as eK, type ListTagsRequest as eL, type ListTeamsRequest as eM, type ListTraderLeaderboardRequest as eN, type ListTradesRequest as eO, type ListUserEarningsAndMarketsConfigRequest as eP, type ListUserEarningsForDayRequest as eQ, type MarketEventType as eR, type MarketSubscription as eS, MergeComboPositionError as eT, MergeMarketPositionError as eU, type MergePositionsWorkflow as eV, type MergePositionsWorkflowRequest as eW, type OrderDraft as eX, type OrderPostingWorkflow as eY, type OrderWorkflow as eZ, type OrderWorkflowRequest as e_, type FetchRelatedTagsRequest as ea, type FetchSeriesRequest as eb, type FetchSpreadRequest as ec, type FetchSpreadsRequest as ed, type FetchTagRequest as ee, FetchTickSizeError as ef, type FetchTickSizeRequest as eg, type FetchTotalEarningsForUserForDayRequest as eh, type FetchTradedMarketCountRequest as ei, GaslessTransactionMetadataSchema as ej, type GaslessWorkflow as ek, type GaslessWorkflowRequest as el, IsWalletDeployedError as em, type IsWalletDeployedRequest as en, type ListAccountTradesRequest as eo, type ListActivityRequest as ep, type ListBuilderLeaderboardRequest as eq, type ListBuilderTradesRequest as er, type ListBuilderVolumeRequest as es, type ListClosedPositionsRequest as et, type ListComboActivityRequest as eu, type ListComboMarketsRequest as ev, type ListComboPositionsRequest as ew, type ListCommentsByUserAddressRequest as ex, type ListCommentsRequest as ey, type ListCurrentRewardsRequest as ez, ApproveErc20Error as f, type SplitPositionWorkflow as f$, type PerpsBookSubscription as f0, type PerpsCandlesSubscription as f1, type PerpsDepositWorkflow as f2, type PerpsDepositWorkflowRequest as f3, type PerpsMarketDataEventType as f4, type PerpsMarketDataSubscription as f5, type PerpsStatisticsSubscription as f6, type PerpsStreamingCandleInterval as f7, type PerpsTickersSubscription as f8, type PerpsTradesSubscription as f9, type PrepareRedeemMarketPositionsRequest as fA, PrepareRedeemPositionsError as fB, type PrepareRedeemPositionsRequest as fC, PrepareSplitComboPositionError as fD, type PrepareSplitComboPositionRequest as fE, PrepareSplitMarketPositionError as fF, type PrepareSplitMarketPositionRequest as fG, PrepareSplitPositionError as fH, type PrepareSplitPositionRequest as fI, PrepareTradingApprovalsError as fJ, type PublicRealtimeEvent as fK, type PublicRealtimeTopic as fL, type PublicSubscriptionSpec as fM, type RedeemPositionsWorkflow as fN, type RedeemPositionsWorkflowRequest as fO, ResolveConditionByTokenError as fP, type ResolveConditionByTokenRequest as fQ, type RfqConfirmationRejectedErrorOptions as fR, type RfqExecutionUpdateEvent as fS, type SearchRequest as fT, type SearchResults as fU, type SecureRealtimeEvent as fV, type SecureRealtimeTopic as fW, type SecureSubscriptionSpec as fX, type SignedOrder as fY, SplitComboPositionError as fZ, SplitMarketPositionError as f_, type PostOrdersRequest as fa, PrepareCollateralReturnExecutionError as fb, PrepareErc1155ApprovalForAllError as fc, type PrepareErc1155ApprovalForAllRequest as fd, PrepareErc20ApprovalError as fe, type PrepareErc20ApprovalRequest as ff, PrepareErc20TransferError as fg, type PrepareErc20TransferRequest as fh, PrepareGaslessTransactionError as fi, type PrepareGaslessTransactionRequest as fj, type PrepareLimitOrderRequest as fk, type PrepareMarketBuyOrderRequest as fl, type PrepareMarketOrderRequest as fm, type PrepareMarketSellOrderRequest as fn, PrepareMergeComboPositionError as fo, type PrepareMergeComboPositionRequest as fp, PrepareMergeMarketPositionError as fq, type PrepareMergeMarketPositionRequest as fr, PrepareMergePositionsError as fs, type PrepareMergePositionsRequest as ft, PreparePerpsDepositError as fu, PrepareRedeemComboPositionError as fv, type PrepareRedeemComboPositionRequest as fw, type PrepareRedeemMarketPositionsByConditionIdRequest as fx, type PrepareRedeemMarketPositionsByMarketIdRequest as fy, PrepareRedeemMarketPositionsError as fz, ArmPerpsAutoCancelError as g, fetchTag as g$, type SplitPositionWorkflowRequest as g0, type SportsEventType as g1, type SportsSubscription as g2, type SubscriptionHandle as g3, type TradingApprovalsWorkflow as g4, type TradingApprovalsWorkflowRequest as g5, UpdateBalanceAllowanceError as g6, type UpdateBalanceAllowanceRequest as g7, type UserEventType as g8, type UserSubscription as g9, fetchMarketInfo as gA, fetchMarketTags as gB, fetchMidpoint as gC, fetchMidpoints as gD, fetchNegRisk as gE, fetchNotifications as gF, fetchOrder as gG, fetchOrderBook as gH, fetchOrderBooks as gI, fetchOrderScoring as gJ, fetchOrdersScoring as gK, fetchPerpsBook as gL, fetchPerpsFees as gM, fetchPerpsInstruments as gN, fetchPerpsTicker as gO, fetchPerpsTickers as gP, fetchPortfolioValue as gQ, fetchPrice as gR, fetchPriceHistory as gS, fetchPrices as gT, fetchPublicProfile as gU, fetchRelatedTagResources as gV, fetchRelatedTags as gW, fetchRewardPercentages as gX, fetchSeries as gY, fetchSpread as gZ, fetchSpreads as g_, WaitForGaslessTransactionError as ga, type WaitForOrderFillSettlementRequest as gb, approveErc1155ForAll as gc, approveErc20 as gd, cancelAll as ge, cancelMarketOrders as gf, cancelOrder as gg, cancelOrders as gh, deployDepositWallet as gi, depositToPerps as gj, downloadAccountingSnapshot as gk, dropNotifications as gl, estimateMarketPrice as gm, executeCollateralReturnPlan as gn, fetchBalanceAllowance as go, fetchBuilderFeeRates as gp, fetchBuilderVolume as gq, fetchClosedOnlyMode as gr, fetchCommentsById as gs, fetchEvent as gt, fetchEventLiveVolume as gu, fetchEventTags as gv, fetchExecuteParams as gw, fetchLastTradePrice as gx, fetchLastTradePrices as gy, fetchMarket as gz, type ArmPerpsAutoCancelRequest as h, setupTradingApprovals as h$, fetchTickSize as h0, fetchTotalEarningsForUserForDay as h1, fetchTradedMarketCount as h2, fetchTransaction as h3, isWalletDeployed as h4, listAccountTrades as h5, listActivity as h6, listBuilderLeaderboard as h7, listBuilderTrades as h8, listClosedPositions as h9, mergeMarketPosition as hA, mergePositions as hB, openPerpsSession as hC, openRfqSession as hD, planCollateralReturn as hE, postOrder as hF, postOrders as hG, prepareCollateralReturnExecution as hH, prepareErc1155ApprovalForAll as hI, prepareErc20Approval as hJ, prepareErc20Transfer as hK, prepareGaslessTransaction as hL, prepareMergeComboPosition as hM, prepareMergeMarketPosition as hN, prepareMergePositions as hO, preparePerpsDeposit as hP, prepareRedeemComboPosition as hQ, prepareRedeemMarketPositions as hR, prepareRedeemPositions as hS, prepareSplitComboPosition as hT, prepareSplitMarketPosition as hU, prepareSplitPosition as hV, prepareTradingApprovals as hW, redeemPositions as hX, resolveConditionByToken as hY, revokePerpsCredentials as hZ, search as h_, listComboActivity as ha, listComboMarkets as hb, listComboPositions as hc, listComments as hd, listCommentsByUserAddress as he, listCurrentRewards as hf, listEvents as hg, listMarketClarifications as hh, listMarketHolders as hi, listMarketPositions as hj, listMarketRewards as hk, listMarkets as hl, listOpenInterest as hm, listOpenOrders as hn, listPerpsCandles as ho, listPerpsFundingHistory as hp, listPerpsTrades as hq, listPositions as hr, listSeries as hs, listTags as ht, listTeams as hu, listTraderLeaderboard as hv, listTrades as hw, listUserEarningsAndMarketsConfig as hx, listUserEarningsForDay as hy, mergeComboPosition as hz, AutoCancelDailyLimitError as i, splitComboPosition as i0, splitMarketPosition as i1, splitPosition as i2, subscribe as i3, transferErc20 as i4, updateBalanceAllowance as i5, waitForOrderFillSettlement as i6, withdrawFromPerps as i7, BasePublicClient as j, BaseSecureClient as k, type BeginAuthenticationRequest as l, type CancelAllPerpsOrdersRequest as m, CancelMarketOrdersError as n, CancelOrderError as o, CancelOrdersError as p, type CancelPerpsOrderRequest as q, type CancelPerpsOrdersRequest as r, CancelledSigningError as s, type Client as t, type ClientActions as u, type ClientDecorator as v, type ClobEndpoints as w, ComboPositionSort as x, type CombosEndpoints as y, ConnectionLostError as z };
9332
+ export { FetchClosedOnlyModeError as $, type ApiKeyAuthorization as A, type BaseClient as B, CancelAllError as C, ComboPositionSort as D, type ComboQuote as E, type CombosEndpoints as F, ConnectionLostError as G, type ConnectionLostErrorOptions as H, type CreatePerpsSessionRequest as I, CreateSecureClientError as J, type CryptoPricesChainlinkTwapSubscription as K, type DataActions as L, DepositToPerpsError as M, type DepositToPerpsRequest as N, type DisarmPerpsAutoCancelRequest as O, type DiscoveryActions as P, DownloadAccountingSnapshotError as Q, DropNotificationsError as R, type Signer as S, type TypedDataPayload as T, UserInputError as U, type EnvironmentConfig as V, type EnvironmentConfigFork as W, type EnvironmentContracts as X, EstimateMarketPriceError as Y, ExecuteCollateralReturnPlanError as Z, type ExecuteCollateralReturnPlanRequest as _, type TypedData as a, ListOpenOrdersError as a$, FetchCommentsByIdError as a0, FetchEventError as a1, FetchEventLiveVolumeError as a2, FetchEventTagsError as a3, FetchLastTradePriceError as a4, FetchLastTradePricesError as a5, FetchMarketError as a6, FetchMarketTagsError as a7, FetchMidpointError as a8, FetchMidpointsError as a9, FetchRfqStatusError as aA, type FetchRfqStatusParams as aB, FetchSeriesError as aC, FetchSpreadError as aD, FetchSpreadsError as aE, FetchTagError as aF, FetchTotalEarningsForUserForDayError as aG, FetchTradedMarketCountError as aH, InsufficientLiquidityError as aI, ListAccountTradesError as aJ, ListActivityError as aK, ListBuilderLeaderboardError as aL, ListBuilderTradesError as aM, ListBuilderVolumeError as aN, ListClosedPositionsError as aO, ListComboActivityError as aP, ListComboMarketsError as aQ, ListComboPositionsError as aR, ListCommentsByUserAddressError as aS, ListCommentsError as aT, ListCurrentRewardsError as aU, ListEventsError as aV, ListMarketHoldersError as aW, ListMarketPositionsError as aX, ListMarketRewardsError as aY, ListMarketsError as aZ, ListOpenInterestError as a_, FetchNotificationsError as aa, FetchOrderBookError as ab, FetchOrderBooksError as ac, FetchOrderError as ad, FetchOrderScoringError as ae, FetchOrdersScoringError as af, type FetchPerpsAccountConfigRequest as ag, FetchPerpsBookError as ah, type FetchPerpsBookRequest as ai, FetchPerpsFeesError as aj, FetchPerpsInstrumentsError as ak, type FetchPerpsInstrumentsRequest as al, type FetchPerpsOpenOrdersRequest as am, type FetchPerpsOrdersRequest as an, FetchPerpsTickerError as ao, type FetchPerpsTickerRequest as ap, FetchPerpsTickersError as aq, type FetchPerpsTickersRequest as ar, FetchPortfolioValueError as as, FetchPriceError as at, FetchPriceHistoryError as au, FetchPricesError as av, FetchPublicProfileError as aw, FetchRelatedTagResourcesError as ax, FetchRelatedTagsError as ay, FetchRewardPercentagesError as az, type TransactionCall as b, RedeemPositionsError as b$, ListPerpsCandlesError as b0, type ListPerpsCandlesRequest as b1, type ListPerpsDepositsRequest as b2, type ListPerpsEquityHistoryRequest as b3, type ListPerpsFillsRequest as b4, ListPerpsFundingHistoryError as b5, type ListPerpsFundingHistoryRequest as b6, type ListPerpsFundingPaymentsRequest as b7, type ListPerpsNotificationsRequest as b8, type ListPerpsPnlHistoryRequest as b9, type PerpsPlacedTpSlOrder as bA, type PerpsPlacedTpSlOrders as bB, type PerpsPositionTpSlTrigger as bC, PerpsSession as bD, type PerpsSessionAccountError as bE, type PerpsSessionLifecycleError as bF, type PerpsSessionTradingError as bG, type PerpsTpSlTrigger as bH, type PlacePerpsOrderRequest as bI, type PlacePerpsOrderResult as bJ, type PlacePerpsOrderWithTpSlRequest as bK, type PlacePerpsOrderWithTpSlResult as bL, type PlacePerpsPositionTpSlRequest as bM, type PlacePerpsPositionTpSlResult as bN, PlanCollateralReturnError as bO, PostOrderError as bP, PostOrdersError as bQ, type PostPerpsOrdersRequest as bR, type PublicAccountActions as bS, type PublicActions as bT, type PublicClient as bU, type PublicClientOptions as bV, type PublicPerpsActions as bW, type PublicRewardsActions as bX, type PublicSubscriptionsActions as bY, RateLimitError as bZ, type RateLimitErrorOptions as b_, ListPerpsTradesError as ba, type ListPerpsTradesRequest as bb, type ListPerpsWithdrawalsRequest as bc, ListPositionsError as bd, ListSeriesError as be, ListTagsError as bf, ListTeamsError as bg, ListTraderLeaderboardError as bh, ListTradesError as bi, ListUserEarningsAndMarketsConfigError as bj, ListUserEarningsForDayError as bk, type MarkPerpsNotificationsReadRequest as bl, MergePositionsError as bm, OpenPerpsSessionError as bn, type OpenPerpsSessionRequest as bo, OpenRfqSessionError as bp, type Page as bq, PageSizeSchema as br, type Paginated as bs, type PerpsActions as bt, type PerpsBookDepth as bu, type PerpsEndpoints as bv, type PerpsOrderRequest as bw, type PerpsPlaceFokOrderRequest as bx, type PerpsPlaceGtcOrderRequest as by, type PerpsPlaceIocOrderRequest as bz, AcceptComboQuoteError as c, type TypedDataField as c$, RequestComboQuoteError as c0, type RequestComboQuoteParams as c1, type RequestComboQuoteResult as c2, RequestRejectedError as c3, type RequestRejectedErrorOptions as c4, type RestEndpoint as c5, type ResumePerpsSessionRequest as c6, RevokePerpsCredentialsError as c7, type RevokePerpsCredentialsRequest as c8, type RfqCancelQuoteAck as c9, type SecureDownloadAccountingSnapshotRequest as cA, type SecureFetchPortfolioValueRequest as cB, type SecureFetchTradedMarketCountRequest as cC, type SecureListActivityRequest as cD, type SecureListClosedPositionsRequest as cE, type SecureListComboActivityRequest as cF, type SecureListComboPositionsRequest as cG, type SecureListPositionsRequest as cH, type SecurePerpsActions as cI, type SecureRewardsActions as cJ, type SecureRfqActions as cK, type SecureSubscriptionsActions as cL, type SecureTradingActions as cM, type SecureWalletActions as cN, SetupGaslessWalletError as cO, SetupTradingApprovalsError as cP, type SignerTransactionRequest as cQ, SigningError as cR, SplitPositionError as cS, SubscribeError as cT, TimeoutError as cU, TransactionFailedError as cV, type TransactionHandle as cW, type TransactionOutcome as cX, TransferErc20Error as cY, TransportError as cZ, type TypedDataDomain as c_, RfqCancelQuoteError as ca, RfqCancelQuoteRejectedError as cb, type RfqCancelQuoteRejectedErrorOptions as cc, type RfqConfirmationAck as cd, RfqConfirmationError as ce, RfqConfirmationRejectedError as cf, type RfqConfirmationRequestEvent as cg, type RfqEvent as ch, RfqQuoteError as ci, type RfqQuoteReference as cj, RfqQuoteRejectedError as ck, type RfqQuoteRejectedErrorOptions as cl, type RfqQuoteRequestEvent as cm, type RfqQuoteResponse as cn, type RfqQuoteSource as co, RfqRequestRejectedError as cp, type RfqRequestRejectedErrorOptions as cq, type RfqSession as cr, type RfqStatusResult as cs, type RfqTradeEvent as ct, SearchError as cu, SearchSort as cv, type SecureAccountActions as cw, type SecureActions as cx, type SecureClient as cy, type SecureClientOptions as cz, type AcceptComboQuoteParams as d, type FetchEventRequest as d$, UnexpectedResponseError as d0, UpdatePerpsLeverageError as d1, type UpdatePerpsLeverageRequest as d2, UpdatePerpsMarginError as d3, type UpdatePerpsMarginRequest as d4, WaitForComboFillError as d5, type WaitForComboFillParams as d6, type WaitForComboFillResult as d7, WaitForOrderFillSettlementError as d8, WaitForTransactionError as d9, type CollateralReturnExecutionWorkflow as dA, type CommentsEventType as dB, type CommentsSubscription as dC, type CryptoPricesEventType as dD, type CryptoPricesSubscription as dE, DeployDepositWalletError as dF, type DownloadAccountingSnapshotRequest as dG, type DropNotificationsRequest as dH, type EquityPricesEventType as dI, type EquityPricesSubscription as dJ, type Erc1155ApprovalForAllWorkflow as dK, type Erc1155ApprovalForAllWorkflowRequest as dL, type Erc20ApprovalWorkflow as dM, type Erc20ApprovalWorkflowRequest as dN, type Erc20TransferWorkflow as dO, type Erc20TransferWorkflowRequest as dP, type EstimateMarketBuyPriceRequest as dQ, type EstimateMarketPriceRequest as dR, type EstimateMarketSellPriceRequest as dS, type EventForSubscriptionSpec as dT, type EventForSubscriptionSpecs as dU, FetchBalanceAllowanceError as dV, type FetchBalanceAllowanceRequest as dW, FetchBuilderFeeRatesError as dX, type FetchBuilderFeeRatesRequest as dY, type FetchCommentsByIdRequest as dZ, type FetchEventLiveVolumeRequest as d_, type WalletDerivationConfig as da, type WebSocketCloseCode as db, type WebSocketEndpoint as dc, WebSocketKnownCloseCode as dd, WithdrawFromPerpsError as de, type WithdrawFromPerpsRequest as df, accountActions as dg, allActions as dh, analyticsActions as di, createPublicClient as dj, createSecureClient as dk, dataActions as dl, discoveryActions as dm, forkEnvironmentConfig as dn, makeErrorGuard as dp, perpsActions as dq, production as dr, rewardsActions as ds, rfqActions as dt, subscriptionsActions as du, tradingActions as dv, walletActions as dw, type CancelMarketOrdersRequest as dx, type CancelOrderRequest as dy, type CancelOrdersRequest as dz, type AcceptComboQuoteResult as e, type ListTeamsRequest as e$, type FetchEventTagsRequest as e0, FetchExecuteParamsError as e1, type FetchExecuteParamsRequest as e2, type FetchGaslessTransactionRequest as e3, type FetchLastTradePriceRequest as e4, type FetchLastTradePricesRequest as e5, FetchMarketInfoError as e6, type FetchMarketInfoRequest as e7, type FetchMarketRequest as e8, type FetchMarketTagsRequest as e9, type GaslessWorkflowRequest as eA, IsWalletDeployedError as eB, type IsWalletDeployedRequest as eC, type ListAccountTradesRequest as eD, type ListActivityRequest as eE, type ListBuilderLeaderboardRequest as eF, type ListBuilderTradesRequest as eG, type ListBuilderVolumeRequest as eH, type ListClosedPositionsRequest as eI, type ListComboActivityRequest as eJ, type ListComboMarketsRequest as eK, type ListComboPositionsRequest as eL, type ListCommentsByUserAddressRequest as eM, type ListCommentsRequest as eN, type ListCurrentRewardsRequest as eO, type ListEventsRequest as eP, ListMarketClarificationsError as eQ, type ListMarketClarificationsRequest as eR, type ListMarketHoldersRequest as eS, type ListMarketPositionsRequest as eT, type ListMarketRewardsRequest as eU, type ListMarketsRequest as eV, type ListOpenInterestRequest as eW, type ListOpenOrdersRequest as eX, type ListPositionsRequest as eY, type ListSeriesRequest as eZ, type ListTagsRequest as e_, type FetchMidpointRequest as ea, type FetchMidpointsRequest as eb, FetchNegRiskError as ec, type FetchNegRiskRequest as ed, type FetchOrderBookRequest as ee, type FetchOrderBooksRequest as ef, type FetchOrderRequest as eg, type FetchOrderScoringRequest as eh, type FetchOrdersScoringRequest as ei, type FetchPortfolioValueRequest as ej, type FetchPriceHistoryRequest as ek, type FetchPriceRequest as el, type FetchPricesRequest as em, type FetchPublicProfileRequest as en, type FetchRelatedTagResourcesRequest as eo, type FetchRelatedTagsRequest as ep, type FetchSeriesRequest as eq, type FetchSpreadRequest as er, type FetchSpreadsRequest as es, type FetchTagRequest as et, FetchTickSizeError as eu, type FetchTickSizeRequest as ev, type FetchTotalEarningsForUserForDayRequest as ew, type FetchTradedMarketCountRequest as ex, GaslessTransactionMetadataSchema as ey, type GaslessWorkflow as ez, type AccountIdentity as f, type PublicSubscriptionSpec as f$, type ListTraderLeaderboardRequest as f0, type ListTradesRequest as f1, type ListUserEarningsAndMarketsConfigRequest as f2, type ListUserEarningsForDayRequest as f3, type MarketEventType as f4, type MarketSubscription as f5, MergeComboPositionError as f6, MergeMarketPositionError as f7, type MergePositionsWorkflow as f8, type MergePositionsWorkflowRequest as f9, type PrepareMarketBuyOrderRequest as fA, type PrepareMarketOrderRequest as fB, type PrepareMarketSellOrderRequest as fC, PrepareMergeComboPositionError as fD, type PrepareMergeComboPositionRequest as fE, PrepareMergeMarketPositionError as fF, type PrepareMergeMarketPositionRequest as fG, PrepareMergePositionsError as fH, type PrepareMergePositionsRequest as fI, PreparePerpsDepositError as fJ, PrepareRedeemComboPositionError as fK, type PrepareRedeemComboPositionRequest as fL, type PrepareRedeemMarketPositionsByConditionIdRequest as fM, type PrepareRedeemMarketPositionsByMarketIdRequest as fN, PrepareRedeemMarketPositionsError as fO, type PrepareRedeemMarketPositionsRequest as fP, PrepareRedeemPositionsError as fQ, type PrepareRedeemPositionsRequest as fR, PrepareSplitComboPositionError as fS, type PrepareSplitComboPositionRequest as fT, PrepareSplitMarketPositionError as fU, type PrepareSplitMarketPositionRequest as fV, PrepareSplitPositionError as fW, type PrepareSplitPositionRequest as fX, PrepareTradingApprovalsError as fY, type PublicRealtimeEvent as fZ, type PublicRealtimeTopic as f_, type OrderDraft as fa, type OrderPostingWorkflow as fb, type OrderWorkflow as fc, type OrderWorkflowRequest as fd, type PerpsBboSubscription as fe, type PerpsBookSubscription as ff, type PerpsCandlesSubscription as fg, type PerpsDepositWorkflow as fh, type PerpsDepositWorkflowRequest as fi, type PerpsMarketDataEventType as fj, type PerpsMarketDataSubscription as fk, type PerpsStatisticsSubscription as fl, type PerpsStreamingCandleInterval as fm, type PerpsTickersSubscription as fn, type PerpsTradesSubscription as fo, type PostOrdersRequest as fp, PrepareCollateralReturnExecutionError as fq, PrepareErc1155ApprovalForAllError as fr, type PrepareErc1155ApprovalForAllRequest as fs, PrepareErc20ApprovalError as ft, type PrepareErc20ApprovalRequest as fu, PrepareErc20TransferError as fv, type PrepareErc20TransferRequest as fw, PrepareGaslessTransactionError as fx, type PrepareGaslessTransactionRequest as fy, type PrepareLimitOrderRequest as fz, type AnalyticsActions as g, fetchPerpsBook as g$, type RedeemPositionsWorkflow as g0, type RedeemPositionsWorkflowRequest as g1, ResolveConditionByTokenError as g2, type ResolveConditionByTokenRequest as g3, type RfqConfirmationRejectedErrorOptions as g4, type RfqExecutionUpdateEvent as g5, type SearchRequest as g6, type SearchResults as g7, type SecureRealtimeEvent as g8, type SecureRealtimeTopic as g9, downloadAccountingSnapshot as gA, dropNotifications as gB, estimateMarketPrice as gC, executeCollateralReturnPlan as gD, fetchBalanceAllowance as gE, fetchBuilderFeeRates as gF, fetchBuilderVolume as gG, fetchClosedOnlyMode as gH, fetchCommentsById as gI, fetchEvent as gJ, fetchEventLiveVolume as gK, fetchEventTags as gL, fetchExecuteParams as gM, fetchLastTradePrice as gN, fetchLastTradePrices as gO, fetchMarket as gP, fetchMarketInfo as gQ, fetchMarketTags as gR, fetchMidpoint as gS, fetchMidpoints as gT, fetchNegRisk as gU, fetchNotifications as gV, fetchOrder as gW, fetchOrderBook as gX, fetchOrderBooks as gY, fetchOrderScoring as gZ, fetchOrdersScoring as g_, type SecureSubscriptionSpec as ga, type SignedOrder as gb, SplitComboPositionError as gc, SplitMarketPositionError as gd, type SplitPositionWorkflow as ge, type SplitPositionWorkflowRequest as gf, type SportsEventType as gg, type SportsSubscription as gh, type SubscriptionHandle as gi, type TradingApprovalsWorkflow as gj, type TradingApprovalsWorkflowRequest as gk, UpdateBalanceAllowanceError as gl, type UpdateBalanceAllowanceRequest as gm, type UserEventType as gn, type UserSubscription as go, WaitForGaslessTransactionError as gp, type WaitForOrderFillSettlementRequest as gq, acceptComboQuote as gr, approveErc1155ForAll as gs, approveErc20 as gt, cancelAll as gu, cancelMarketOrders as gv, cancelOrder as gw, cancelOrders as gx, deployDepositWallet as gy, depositToPerps as gz, ApproveErc1155ForAllError as h, prepareErc20Transfer as h$, fetchPerpsFees as h0, fetchPerpsInstruments as h1, fetchPerpsTicker as h2, fetchPerpsTickers as h3, fetchPortfolioValue as h4, fetchPrice as h5, fetchPriceHistory as h6, fetchPrices as h7, fetchPublicProfile as h8, fetchRelatedTagResources as h9, listMarketPositions as hA, listMarketRewards as hB, listMarkets as hC, listOpenInterest as hD, listOpenOrders as hE, listPerpsCandles as hF, listPerpsFundingHistory as hG, listPerpsTrades as hH, listPositions as hI, listSeries as hJ, listTags as hK, listTeams as hL, listTraderLeaderboard as hM, listTrades as hN, listUserEarningsAndMarketsConfig as hO, listUserEarningsForDay as hP, mergeComboPosition as hQ, mergeMarketPosition as hR, mergePositions as hS, openPerpsSession as hT, openRfqSession as hU, planCollateralReturn as hV, postOrder as hW, postOrders as hX, prepareCollateralReturnExecution as hY, prepareErc1155ApprovalForAll as hZ, prepareErc20Approval as h_, fetchRelatedTags as ha, fetchRewardPercentages as hb, fetchRfqStatus as hc, fetchSeries as hd, fetchSpread as he, fetchSpreads as hf, fetchTag as hg, fetchTickSize as hh, fetchTotalEarningsForUserForDay as hi, fetchTradedMarketCount as hj, fetchTransaction as hk, isWalletDeployed as hl, listAccountTrades as hm, listActivity as hn, listBuilderLeaderboard as ho, listBuilderTrades as hp, listClosedPositions as hq, listComboActivity as hr, listComboMarkets as hs, listComboPositions as ht, listComments as hu, listCommentsByUserAddress as hv, listCurrentRewards as hw, listEvents as hx, listMarketClarifications as hy, listMarketHolders as hz, ApproveErc20Error as i, prepareGaslessTransaction as i0, prepareMergeComboPosition as i1, prepareMergeMarketPosition as i2, prepareMergePositions as i3, preparePerpsDeposit as i4, prepareRedeemComboPosition as i5, prepareRedeemMarketPositions as i6, prepareRedeemPositions as i7, prepareSplitComboPosition as i8, prepareSplitMarketPosition as i9, prepareSplitPosition as ia, prepareTradingApprovals as ib, redeemPositions as ic, requestComboQuote as id, resolveConditionByToken as ie, revokePerpsCredentials as ig, search as ih, setupTradingApprovals as ii, splitComboPosition as ij, splitMarketPosition as ik, splitPosition as il, subscribe as im, transferErc20 as io, updateBalanceAllowance as ip, waitForComboFill as iq, waitForOrderFillSettlement as ir, withdrawFromPerps as is, ArmPerpsAutoCancelError as j, type ArmPerpsAutoCancelRequest as k, AutoCancelDailyLimitError as l, BasePublicClient as m, BaseSecureClient as n, type BeginAuthenticationRequest as o, type CancelAllPerpsOrdersRequest as p, CancelMarketOrdersError as q, CancelOrderError as r, CancelOrdersError as s, type CancelPerpsOrderRequest as t, type CancelPerpsOrdersRequest as u, CancelledSigningError as v, type Client as w, type ClientActions as x, type ClientDecorator as y, type ClobEndpoints as z };