import { DecimalString, BaseUnits, EpochMilliseconds, OrderSide } from './index.js'; import { z } from 'zod'; import * as _polymarket_types from '@polymarket/types'; import { EvmAddress, PrivateKey, TxHash } from '@polymarket/types'; type Tagged = T & { readonly __tag: Tag; }; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsInstrumentId = Tagged; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsOrderId = Tagged; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsClientOrderId = Tagged; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsNotificationId = Tagged; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsTradeId = Tagged; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsFundingPaymentId = Tagged; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsWithdrawalId = Tagged; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsInternalTransferId = Tagged; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsEntityId = Tagged; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsFundingInterval = `${number}h`; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsInstrumentIdSchema: z.ZodPipe>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsOrderIdSchema: z.ZodPipe>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsClientOrderIdSchema: z.ZodPipe>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsNotificationIdSchema: z.ZodPipe>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsTradeIdSchema: z.ZodPipe>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsFundingPaymentIdSchema: z.ZodPipe>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsWithdrawalIdSchema: z.ZodPipe>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsInternalTransferIdSchema: z.ZodPipe>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsEntityIdSchema: z.ZodPipe>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsFundingIntervalSchema: z.ZodPipe>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsDecimalInputSchema: z.ZodUnion>, z.ZodPipe>]>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsDecimalInput = z.input; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare enum PerpsInstrumentType { Perpetual = "perpetual" } /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare enum PerpsInstrumentCategory { Equity = "equity", Commodity = "commodity", Index = "index", Crypto = "crypto" } /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare enum PerpsSide { Long = "long", Short = "short" } /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare enum PerpsTimeInForce { GTC = "gtc", IOC = "ioc", FOK = "fok" } /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare enum PerpsTpSlKind { TakeProfit = "tp", StopLoss = "sl" } /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare enum PerpsTpSlScope { Order = "order", Position = "position" } /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare enum PerpsDepositStatus { Pending = "pending", Confirmed = "confirmed", Removed = "removed" } /** * Known withdrawal statuses. * * The service evolves this set independently of released clients, so * withdrawal parsing accepts unknown statuses as plain strings; see * {@link PerpsWithdrawalStatus}. * * @experimental This API may change in a breaking way in any release, including patch releases. */ declare enum PerpsKnownWithdrawalStatus { Pending = "pending", Confirmed = "confirmed", Removed = "removed", Failed = "failed" } /** * A withdrawal status. Known statuses are enumerated in * {@link PerpsKnownWithdrawalStatus}; newly introduced statuses flow through * as plain strings so they can be handled before a client release that * enumerates them. * * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsWithdrawalStatus = PerpsKnownWithdrawalStatus | (string & {}); /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare enum PerpsInternalTransferDirection { In = "in", Out = "out" } /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare enum PerpsKlineInterval { OneSecond = "1s", OneMinute = "1m", FiveMinutes = "5m", FifteenMinutes = "15m", OneHour = "1h", FourHours = "4h", OneDay = "1d", OneWeek = "1w" } /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare enum PerpsPnlInterval { OneHour = "1h", FourHours = "4h", OneDay = "1d", OneWeek = "1w" } /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare enum PerpsSortDirection { Descending = "desc", Ascending = "asc" } /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsInstrumentTypeSchema: z.ZodEnum; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsInstrumentCategorySchema: z.ZodEnum; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsSideSchema: z.ZodEnum; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsTimeInForceSchema: z.ZodEnum; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsTpSlKindSchema: z.ZodEnum; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsTpSlScopeSchema: z.ZodEnum; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsDepositStatusSchema: z.ZodEnum; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsWithdrawalStatusSchema: z.ZodPipe>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsInternalTransferDirectionSchema: z.ZodEnum; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsKlineIntervalSchema: z.ZodEnum; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsPnlIntervalSchema: z.ZodEnum; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsSortDirectionSchema: z.ZodEnum; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsAssetSchema: z.ZodString; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsTxHashSchema: z.ZodPipe, z.ZodOptional>>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsDataResponseSchema: (itemSchema: T) => z.ZodObject<{ data: z.ZodArray; more: z.ZodBoolean; }, z.core.$strip>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsCredentials = { proxy: EvmAddress; privateKey: PrivateKey; secret: string; expiresAt: number; }; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsDepositAmount = BaseUnits; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsWithdrawalAmount = BaseUnits; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsTxHash = TxHash; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsDecimal = DecimalString; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare function perpsDecimal(value: string | number): DecimalString; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare function perpsBaseUnits(value: string): BaseUnits; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare function decimalString(value: string): DecimalString; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare enum PerpsNotificationType { PositionOpened = "position_opened", PositionIncreased = "position_increased", PositionReduced = "position_reduced", PositionClosed = "position_closed", LimitOrderCanceled = "limit_order_canceled", LiquidationWarning = "liquidation_warning", PositionLiquidated = "position_liquidated" } /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsNotificationTypeSchema: z.ZodEnum; /** * Kind of order whose execution produced a fill-driven position notification. * A TP/SL-triggered order reports the trigger that fired it whether it * aggressed or rested; otherwise an aggressor submitted without a limit price * is `market` and everything else, including a maker's resting order, is * `limit`. * * @experimental This API may change in a breaking way in any release, including patch releases. */ declare enum PerpsNotificationOrderType { Market = "market", Limit = "limit", TakeProfit = "take_profit", StopLoss = "stop_loss" } /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsNotificationOrderTypeSchema: z.ZodEnum; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare enum PerpsMarginType { Cross = "cross", Isolated = "isolated" } /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsMarginTypeSchema: z.ZodEnum; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsPositionChangeNotificationSchema: z.ZodPipe>; type: z.ZodEnum<{ position_opened: PerpsNotificationType.PositionOpened; position_increased: PerpsNotificationType.PositionIncreased; position_reduced: PerpsNotificationType.PositionReduced; }>; instrument_id: z.ZodPipe>; side: z.ZodEnum; size: z.ZodPipe>; avg_price: z.ZodPipe>; leverage: z.ZodNumber; order_type: z.ZodOptional>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avgPrice: DecimalString; leverage: number; orderType: PerpsNotificationOrderType | undefined; }, { id: PerpsNotificationId; type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced; instrument_id: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avg_price: DecimalString; leverage: number; order_type?: PerpsNotificationOrderType | undefined; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsPositionChangeNotification = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsPositionClosedNotificationSchema: z.ZodPipe>; type: z.ZodLiteral; instrument_id: z.ZodPipe>; side: z.ZodEnum; size: z.ZodPipe>; avg_price: z.ZodPipe>; pnl: z.ZodPipe>; order_type: z.ZodOptional>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.PositionClosed; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avgPrice: DecimalString; pnl: DecimalString; orderType: PerpsNotificationOrderType | undefined; }, { id: PerpsNotificationId; type: PerpsNotificationType.PositionClosed; instrument_id: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avg_price: DecimalString; pnl: DecimalString; order_type?: PerpsNotificationOrderType | undefined; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsPositionClosedNotification = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsLimitOrderCanceledNotificationSchema: z.ZodPipe>; type: z.ZodLiteral; instrument_id: z.ZodPipe>; side: z.ZodEnum; size: z.ZodPipe>; price: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.LimitOrderCanceled; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; price: DecimalString; }, { id: PerpsNotificationId; type: PerpsNotificationType.LimitOrderCanceled; instrument_id: PerpsInstrumentId; side: PerpsSide; size: DecimalString; price: DecimalString; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsLimitOrderCanceledNotification = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsLiquidationWarningNotificationSchema: z.ZodDiscriminatedUnion<[z.ZodPipe>; type: z.ZodLiteral; margin_type: z.ZodLiteral; instrument_id: z.ZodPipe>; mark_price: z.ZodPipe>; liq_price: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; marginType: PerpsMarginType.Isolated; instrumentId: PerpsInstrumentId; markPrice: DecimalString; liquidationPrice: DecimalString; }, { id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; margin_type: PerpsMarginType.Isolated; instrument_id: PerpsInstrumentId; mark_price: DecimalString; liq_price: DecimalString; }>>, z.ZodPipe>; type: z.ZodLiteral; margin_type: z.ZodLiteral; instrument_id: z.ZodNull; mark_price: z.ZodPipe>; affected_instruments: z.ZodArray>>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; marginType: PerpsMarginType.Cross; markPrice: DecimalString; affectedInstruments: PerpsInstrumentId[]; }, { id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; margin_type: PerpsMarginType.Cross; instrument_id: null; mark_price: DecimalString; affected_instruments: PerpsInstrumentId[]; }>>], "margin_type">; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsLiquidationWarningNotification = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsPositionLiquidatedNotificationSchema: z.ZodPipe>; type: z.ZodLiteral; instrument_id: z.ZodPipe>; side: z.ZodEnum; size_closed: z.ZodPipe>; pnl: z.ZodNullable>>; margin_type: z.ZodEnum; via_backstop: z.ZodBoolean; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.PositionLiquidated; instrumentId: PerpsInstrumentId; side: PerpsSide; sizeClosed: DecimalString; pnl: DecimalString | null; marginType: PerpsMarginType; viaBackstop: boolean; }, { id: PerpsNotificationId; type: PerpsNotificationType.PositionLiquidated; instrument_id: PerpsInstrumentId; side: PerpsSide; size_closed: DecimalString; pnl: DecimalString | null; margin_type: PerpsMarginType; via_backstop: boolean; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsPositionLiquidatedNotification = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsNotificationSchema: z.ZodDiscriminatedUnion<[z.ZodPipe>; type: z.ZodEnum<{ position_opened: PerpsNotificationType.PositionOpened; position_increased: PerpsNotificationType.PositionIncreased; position_reduced: PerpsNotificationType.PositionReduced; }>; instrument_id: z.ZodPipe>; side: z.ZodEnum; size: z.ZodPipe>; avg_price: z.ZodPipe>; leverage: z.ZodNumber; order_type: z.ZodOptional>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avgPrice: DecimalString; leverage: number; orderType: PerpsNotificationOrderType | undefined; }, { id: PerpsNotificationId; type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced; instrument_id: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avg_price: DecimalString; leverage: number; order_type?: PerpsNotificationOrderType | undefined; }>>, z.ZodPipe>; type: z.ZodLiteral; instrument_id: z.ZodPipe>; side: z.ZodEnum; size: z.ZodPipe>; avg_price: z.ZodPipe>; pnl: z.ZodPipe>; order_type: z.ZodOptional>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.PositionClosed; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avgPrice: DecimalString; pnl: DecimalString; orderType: PerpsNotificationOrderType | undefined; }, { id: PerpsNotificationId; type: PerpsNotificationType.PositionClosed; instrument_id: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avg_price: DecimalString; pnl: DecimalString; order_type?: PerpsNotificationOrderType | undefined; }>>, z.ZodPipe>; type: z.ZodLiteral; instrument_id: z.ZodPipe>; side: z.ZodEnum; size: z.ZodPipe>; price: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.LimitOrderCanceled; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; price: DecimalString; }, { id: PerpsNotificationId; type: PerpsNotificationType.LimitOrderCanceled; instrument_id: PerpsInstrumentId; side: PerpsSide; size: DecimalString; price: DecimalString; }>>, z.ZodDiscriminatedUnion<[z.ZodPipe>; type: z.ZodLiteral; margin_type: z.ZodLiteral; instrument_id: z.ZodPipe>; mark_price: z.ZodPipe>; liq_price: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; marginType: PerpsMarginType.Isolated; instrumentId: PerpsInstrumentId; markPrice: DecimalString; liquidationPrice: DecimalString; }, { id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; margin_type: PerpsMarginType.Isolated; instrument_id: PerpsInstrumentId; mark_price: DecimalString; liq_price: DecimalString; }>>, z.ZodPipe>; type: z.ZodLiteral; margin_type: z.ZodLiteral; instrument_id: z.ZodNull; mark_price: z.ZodPipe>; affected_instruments: z.ZodArray>>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; marginType: PerpsMarginType.Cross; markPrice: DecimalString; affectedInstruments: PerpsInstrumentId[]; }, { id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; margin_type: PerpsMarginType.Cross; instrument_id: null; mark_price: DecimalString; affected_instruments: PerpsInstrumentId[]; }>>], "margin_type">, z.ZodPipe>; type: z.ZodLiteral; instrument_id: z.ZodPipe>; side: z.ZodEnum; size_closed: z.ZodPipe>; pnl: z.ZodNullable>>; margin_type: z.ZodEnum; via_backstop: z.ZodBoolean; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.PositionLiquidated; instrumentId: PerpsInstrumentId; side: PerpsSide; sizeClosed: DecimalString; pnl: DecimalString | null; marginType: PerpsMarginType; viaBackstop: boolean; }, { id: PerpsNotificationId; type: PerpsNotificationType.PositionLiquidated; instrument_id: PerpsInstrumentId; side: PerpsSide; size_closed: DecimalString; pnl: DecimalString | null; margin_type: PerpsMarginType; via_backstop: boolean; }>>], "type">; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsNotification = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsNotificationEntrySchema: z.ZodPipe>; type: z.ZodEnum<{ position_opened: PerpsNotificationType.PositionOpened; position_increased: PerpsNotificationType.PositionIncreased; position_reduced: PerpsNotificationType.PositionReduced; }>; instrument_id: z.ZodPipe>; side: z.ZodEnum; size: z.ZodPipe>; avg_price: z.ZodPipe>; leverage: z.ZodNumber; order_type: z.ZodOptional>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avgPrice: DecimalString; leverage: number; orderType: PerpsNotificationOrderType | undefined; }, { id: PerpsNotificationId; type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced; instrument_id: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avg_price: DecimalString; leverage: number; order_type?: PerpsNotificationOrderType | undefined; }>>, z.ZodPipe>; type: z.ZodLiteral; instrument_id: z.ZodPipe>; side: z.ZodEnum; size: z.ZodPipe>; avg_price: z.ZodPipe>; pnl: z.ZodPipe>; order_type: z.ZodOptional>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.PositionClosed; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avgPrice: DecimalString; pnl: DecimalString; orderType: PerpsNotificationOrderType | undefined; }, { id: PerpsNotificationId; type: PerpsNotificationType.PositionClosed; instrument_id: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avg_price: DecimalString; pnl: DecimalString; order_type?: PerpsNotificationOrderType | undefined; }>>, z.ZodPipe>; type: z.ZodLiteral; instrument_id: z.ZodPipe>; side: z.ZodEnum; size: z.ZodPipe>; price: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.LimitOrderCanceled; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; price: DecimalString; }, { id: PerpsNotificationId; type: PerpsNotificationType.LimitOrderCanceled; instrument_id: PerpsInstrumentId; side: PerpsSide; size: DecimalString; price: DecimalString; }>>, z.ZodDiscriminatedUnion<[z.ZodPipe>; type: z.ZodLiteral; margin_type: z.ZodLiteral; instrument_id: z.ZodPipe>; mark_price: z.ZodPipe>; liq_price: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; marginType: PerpsMarginType.Isolated; instrumentId: PerpsInstrumentId; markPrice: DecimalString; liquidationPrice: DecimalString; }, { id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; margin_type: PerpsMarginType.Isolated; instrument_id: PerpsInstrumentId; mark_price: DecimalString; liq_price: DecimalString; }>>, z.ZodPipe>; type: z.ZodLiteral; margin_type: z.ZodLiteral; instrument_id: z.ZodNull; mark_price: z.ZodPipe>; affected_instruments: z.ZodArray>>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; marginType: PerpsMarginType.Cross; markPrice: DecimalString; affectedInstruments: PerpsInstrumentId[]; }, { id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; margin_type: PerpsMarginType.Cross; instrument_id: null; mark_price: DecimalString; affected_instruments: PerpsInstrumentId[]; }>>], "margin_type">, z.ZodPipe>; type: z.ZodLiteral; instrument_id: z.ZodPipe>; side: z.ZodEnum; size_closed: z.ZodPipe>; pnl: z.ZodNullable>>; margin_type: z.ZodEnum; via_backstop: z.ZodBoolean; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.PositionLiquidated; instrumentId: PerpsInstrumentId; side: PerpsSide; sizeClosed: DecimalString; pnl: DecimalString | null; marginType: PerpsMarginType; viaBackstop: boolean; }, { id: PerpsNotificationId; type: PerpsNotificationType.PositionLiquidated; instrument_id: PerpsInstrumentId; side: PerpsSide; size_closed: DecimalString; pnl: DecimalString | null; margin_type: PerpsMarginType; via_backstop: boolean; }>>], "type">; read_at: z.ZodNullable>>; ts: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ notification: { id: PerpsNotificationId; type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avgPrice: DecimalString; leverage: number; orderType: PerpsNotificationOrderType | undefined; } | { id: PerpsNotificationId; type: PerpsNotificationType.PositionClosed; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avgPrice: DecimalString; pnl: DecimalString; orderType: PerpsNotificationOrderType | undefined; } | { id: PerpsNotificationId; type: PerpsNotificationType.LimitOrderCanceled; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; price: DecimalString; } | { id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; marginType: PerpsMarginType.Isolated; instrumentId: PerpsInstrumentId; markPrice: DecimalString; liquidationPrice: DecimalString; } | { id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; marginType: PerpsMarginType.Cross; markPrice: DecimalString; affectedInstruments: PerpsInstrumentId[]; } | { id: PerpsNotificationId; type: PerpsNotificationType.PositionLiquidated; instrumentId: PerpsInstrumentId; side: PerpsSide; sizeClosed: DecimalString; pnl: DecimalString | null; marginType: PerpsMarginType; viaBackstop: boolean; }; readAt: EpochMilliseconds | null; timestamp: EpochMilliseconds; }, { notification: { id: PerpsNotificationId; type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avgPrice: DecimalString; leverage: number; orderType: PerpsNotificationOrderType | undefined; } | { id: PerpsNotificationId; type: PerpsNotificationType.PositionClosed; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avgPrice: DecimalString; pnl: DecimalString; orderType: PerpsNotificationOrderType | undefined; } | { id: PerpsNotificationId; type: PerpsNotificationType.LimitOrderCanceled; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; price: DecimalString; } | { id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; marginType: PerpsMarginType.Isolated; instrumentId: PerpsInstrumentId; markPrice: DecimalString; liquidationPrice: DecimalString; } | { id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; marginType: PerpsMarginType.Cross; markPrice: DecimalString; affectedInstruments: PerpsInstrumentId[]; } | { id: PerpsNotificationId; type: PerpsNotificationType.PositionLiquidated; instrumentId: PerpsInstrumentId; side: PerpsSide; sizeClosed: DecimalString; pnl: DecimalString | null; marginType: PerpsMarginType; viaBackstop: boolean; }; read_at: EpochMilliseconds | null; ts: EpochMilliseconds; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsNotificationEntry = z.infer; /** * Entries with notification types unknown to this SDK version are omitted * from `items` so newly introduced notification kinds cannot fail the read; * recognized types still validate strictly. * * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const ListPerpsNotificationsResponseSchema: z.ZodObject<{ items: z.ZodPipe, z.ZodTransform<{ notification: { id: PerpsNotificationId; type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avgPrice: DecimalString; leverage: number; orderType: PerpsNotificationOrderType | undefined; } | { id: PerpsNotificationId; type: PerpsNotificationType.PositionClosed; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avgPrice: DecimalString; pnl: DecimalString; orderType: PerpsNotificationOrderType | undefined; } | { id: PerpsNotificationId; type: PerpsNotificationType.LimitOrderCanceled; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; price: DecimalString; } | { id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; marginType: PerpsMarginType.Isolated; instrumentId: PerpsInstrumentId; markPrice: DecimalString; liquidationPrice: DecimalString; } | { id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; marginType: PerpsMarginType.Cross; markPrice: DecimalString; affectedInstruments: PerpsInstrumentId[]; } | { id: PerpsNotificationId; type: PerpsNotificationType.PositionLiquidated; instrumentId: PerpsInstrumentId; side: PerpsSide; sizeClosed: DecimalString; pnl: DecimalString | null; marginType: PerpsMarginType; viaBackstop: boolean; }; readAt: EpochMilliseconds | null; timestamp: EpochMilliseconds; }[], unknown[]>>; unread: z.ZodNumber; durable_source_seq: z.ZodNumber; has_more: z.ZodBoolean; next_cursor: z.ZodNullable; }, z.core.$strip>; /** * Projection of the notifications list response for unread-count reads. * Deliberately leaves `items` unvalidated so notification shapes unknown to * this SDK version cannot fail a read that only needs the counter. * * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const FetchPerpsUnreadNotificationsCountResponseSchema: z.ZodObject<{ unread: z.ZodNumber; }, z.core.$strip>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const MarkPerpsNotificationsReadResponseSchema: z.ZodObject<{ status: z.ZodEnum<{ ok: "ok"; err: "err"; }>; error: z.ZodOptional; }, z.core.$strip>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare enum PerpsOrderStatus { Accepted = "accepted", Open = "open", Partial = "partial", Filled = "filled", Cancelled = "cancelled", AutoCancelled = "auto_cancelled", PostOnlyRejected = "post_only_rejected", FokUnfilled = "fok_unfilled", IocNoFill = "ioc_no_fill", IocExpired = "ioc_expired", StpCancelled = "stp_cancelled", ZeroQuantity = "zero_quantity", DuplicateOrder = "duplicate_order", OrderNotFound = "order_not_found", ReduceOnlyInvalid = "reduce_only_invalid", ReduceOnlyExpired = "reduce_only_expired", OrderExpired = "order_expired", Untriggered = "untriggered", Armed = "armed", Triggered = "triggered", ParentCancelled = "parent_cancelled", PositionClosed = "position_closed", PositionFlipped = "position_flipped", ReduceOnlyInvalidAtTrigger = "reduce_only_invalid_at_trigger", Expired = "expired" } /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsTpSlOrderFieldsSchema: z.ZodPipe; scope: z.ZodEnum; trp: z.ZodPipe>; parent_oid: z.ZodOptional>>; armed_qty: z.ZodOptional>>; slip_bps: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ kind: PerpsTpSlKind; scope: PerpsTpSlScope; triggerPrice: DecimalString; parentOrderId: PerpsOrderId | undefined; armedQuantity: DecimalString | undefined; slippageBps: number | undefined; }, { kind: PerpsTpSlKind; scope: PerpsTpSlScope; trp: DecimalString; parent_oid?: PerpsOrderId | undefined; armed_qty?: DecimalString | undefined; slip_bps?: number | undefined; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsTpSlOrderFields = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsOrderStatusSchema: z.ZodEnum; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsCommandStatusSchema: z.ZodEnum<{ ok: "ok"; err: "err"; }>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsCommandAckSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ status: z.ZodLiteral<"ok">; }, z.core.$strip>, z.ZodObject<{ status: z.ZodLiteral<"err">; error: z.ZodPipe, z.ZodTransform>; }, z.core.$strip>], "status">; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsCommandAck = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsPostOrderAckSchema: z.ZodPipe; oid: z.ZodOptional>>; coid: z.ZodOptional>>; error: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ status: "err"; error: string; clientOrderId: PerpsClientOrderId | undefined; orderId?: undefined; } | { status: "ok"; orderId: PerpsOrderId; clientOrderId: PerpsClientOrderId | undefined; error?: undefined; }, { status: "ok" | "err"; oid?: PerpsOrderId | undefined; coid?: PerpsClientOrderId | undefined; error?: string | undefined; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsPostOrderAck = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsCancelOrderResultSchema: z.ZodPipe; oid: z.ZodOptional>>; coid: z.ZodOptional>>; error: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ status: "err"; error: string; orderId: PerpsOrderId | undefined; clientOrderId: PerpsClientOrderId | undefined; } | { status: "ok"; orderId: PerpsOrderId | undefined; clientOrderId: PerpsClientOrderId | undefined; error?: undefined; }, { status: "ok" | "err"; oid?: PerpsOrderId | undefined; coid?: PerpsClientOrderId | undefined; error?: string | undefined; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsCancelOrderResult = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsCancelAllOrdersResponseSchema: z.ZodObject<{ status: z.ZodLiteral<"ok">; }, z.core.$strip>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsCancelAllOrdersResponse = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsUpdateLeverageResultSchema: z.ZodPipe; instrument_id: z.ZodPipe>; leverage: z.ZodNumber; cross: z.ZodBoolean; }, z.core.$strip>, z.ZodTransform<{ status: "ok"; instrumentId: PerpsInstrumentId; leverage: number; crossMargin: boolean; }, { status: "ok"; instrument_id: PerpsInstrumentId; leverage: number; cross: boolean; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsUpdateLeverageResult = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsOrderSchema: z.ZodPipe>; instrument_id: z.ZodPipe>; buy: z.ZodBoolean; price: z.ZodPipe>; quantity: z.ZodPipe>; tif: z.ZodEnum; post_only: z.ZodBoolean; ro: z.ZodBoolean; status: z.ZodEnum; resting_quantity: z.ZodPipe>; filled_quantity: z.ZodPipe>; created_timestamp: z.ZodPipe>; updated_timestamp: z.ZodPipe>; client_order_id: z.ZodOptional; tpsl: z.ZodOptional; scope: z.ZodEnum; trp: z.ZodPipe>; parent_oid: z.ZodOptional>>; armed_qty: z.ZodOptional>>; slip_bps: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ kind: PerpsTpSlKind; scope: PerpsTpSlScope; triggerPrice: DecimalString; parentOrderId: PerpsOrderId | undefined; armedQuantity: DecimalString | undefined; slippageBps: number | undefined; }, { kind: PerpsTpSlKind; scope: PerpsTpSlScope; trp: DecimalString; parent_oid?: PerpsOrderId | undefined; armed_qty?: DecimalString | undefined; slip_bps?: number | undefined; }>>>>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsOrderId; instrumentId: PerpsInstrumentId; side: OrderSide; price: DecimalString; quantity: DecimalString; timeInForce: PerpsTimeInForce; postOnly: boolean; reduceOnly: boolean; status: PerpsOrderStatus; restingQuantity: DecimalString; filledQuantity: DecimalString; createdTimestamp: EpochMilliseconds; updatedTimestamp: EpochMilliseconds; clientOrderId: string | undefined; tpSl: { kind: PerpsTpSlKind; scope: PerpsTpSlScope; triggerPrice: DecimalString; parentOrderId: PerpsOrderId | undefined; armedQuantity: DecimalString | undefined; slippageBps: number | undefined; } | undefined; }, { order_id: PerpsOrderId; instrument_id: PerpsInstrumentId; buy: boolean; price: DecimalString; quantity: DecimalString; tif: PerpsTimeInForce; post_only: boolean; ro: boolean; status: PerpsOrderStatus; resting_quantity: DecimalString; filled_quantity: DecimalString; created_timestamp: EpochMilliseconds; updated_timestamp: EpochMilliseconds; client_order_id?: string | undefined; tpsl?: { kind: PerpsTpSlKind; scope: PerpsTpSlScope; triggerPrice: DecimalString; parentOrderId: PerpsOrderId | undefined; armedQuantity: DecimalString | undefined; slippageBps: number | undefined; } | null | undefined; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsOrder = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const FetchPerpsOrdersResponseSchema: z.ZodArray>; instrument_id: z.ZodPipe>; buy: z.ZodBoolean; price: z.ZodPipe>; quantity: z.ZodPipe>; tif: z.ZodEnum; post_only: z.ZodBoolean; ro: z.ZodBoolean; status: z.ZodEnum; resting_quantity: z.ZodPipe>; filled_quantity: z.ZodPipe>; created_timestamp: z.ZodPipe>; updated_timestamp: z.ZodPipe>; client_order_id: z.ZodOptional; tpsl: z.ZodOptional; scope: z.ZodEnum; trp: z.ZodPipe>; parent_oid: z.ZodOptional>>; armed_qty: z.ZodOptional>>; slip_bps: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ kind: PerpsTpSlKind; scope: PerpsTpSlScope; triggerPrice: DecimalString; parentOrderId: PerpsOrderId | undefined; armedQuantity: DecimalString | undefined; slippageBps: number | undefined; }, { kind: PerpsTpSlKind; scope: PerpsTpSlScope; trp: DecimalString; parent_oid?: PerpsOrderId | undefined; armed_qty?: DecimalString | undefined; slip_bps?: number | undefined; }>>>>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsOrderId; instrumentId: PerpsInstrumentId; side: OrderSide; price: DecimalString; quantity: DecimalString; timeInForce: PerpsTimeInForce; postOnly: boolean; reduceOnly: boolean; status: PerpsOrderStatus; restingQuantity: DecimalString; filledQuantity: DecimalString; createdTimestamp: EpochMilliseconds; updatedTimestamp: EpochMilliseconds; clientOrderId: string | undefined; tpSl: { kind: PerpsTpSlKind; scope: PerpsTpSlScope; triggerPrice: DecimalString; parentOrderId: PerpsOrderId | undefined; armedQuantity: DecimalString | undefined; slippageBps: number | undefined; } | undefined; }, { order_id: PerpsOrderId; instrument_id: PerpsInstrumentId; buy: boolean; price: DecimalString; quantity: DecimalString; tif: PerpsTimeInForce; post_only: boolean; ro: boolean; status: PerpsOrderStatus; resting_quantity: DecimalString; filled_quantity: DecimalString; created_timestamp: EpochMilliseconds; updated_timestamp: EpochMilliseconds; client_order_id?: string | undefined; tpsl?: { kind: PerpsTpSlKind; scope: PerpsTpSlScope; triggerPrice: DecimalString; parentOrderId: PerpsOrderId | undefined; armedQuantity: DecimalString | undefined; slippageBps: number | undefined; } | null | undefined; }>>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const FetchPerpsOpenOrdersResponseSchema: z.ZodArray>; instrument_id: z.ZodPipe>; buy: z.ZodBoolean; price: z.ZodPipe>; quantity: z.ZodPipe>; tif: z.ZodEnum; post_only: z.ZodBoolean; ro: z.ZodBoolean; status: z.ZodEnum; resting_quantity: z.ZodPipe>; filled_quantity: z.ZodPipe>; created_timestamp: z.ZodPipe>; updated_timestamp: z.ZodPipe>; client_order_id: z.ZodOptional; tpsl: z.ZodOptional; scope: z.ZodEnum; trp: z.ZodPipe>; parent_oid: z.ZodOptional>>; armed_qty: z.ZodOptional>>; slip_bps: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ kind: PerpsTpSlKind; scope: PerpsTpSlScope; triggerPrice: DecimalString; parentOrderId: PerpsOrderId | undefined; armedQuantity: DecimalString | undefined; slippageBps: number | undefined; }, { kind: PerpsTpSlKind; scope: PerpsTpSlScope; trp: DecimalString; parent_oid?: PerpsOrderId | undefined; armed_qty?: DecimalString | undefined; slip_bps?: number | undefined; }>>>>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsOrderId; instrumentId: PerpsInstrumentId; side: OrderSide; price: DecimalString; quantity: DecimalString; timeInForce: PerpsTimeInForce; postOnly: boolean; reduceOnly: boolean; status: PerpsOrderStatus; restingQuantity: DecimalString; filledQuantity: DecimalString; createdTimestamp: EpochMilliseconds; updatedTimestamp: EpochMilliseconds; clientOrderId: string | undefined; tpSl: { kind: PerpsTpSlKind; scope: PerpsTpSlScope; triggerPrice: DecimalString; parentOrderId: PerpsOrderId | undefined; armedQuantity: DecimalString | undefined; slippageBps: number | undefined; } | undefined; }, { order_id: PerpsOrderId; instrument_id: PerpsInstrumentId; buy: boolean; price: DecimalString; quantity: DecimalString; tif: PerpsTimeInForce; post_only: boolean; ro: boolean; status: PerpsOrderStatus; resting_quantity: DecimalString; filled_quantity: DecimalString; created_timestamp: EpochMilliseconds; updated_timestamp: EpochMilliseconds; client_order_id?: string | undefined; tpsl?: { kind: PerpsTpSlKind; scope: PerpsTpSlScope; triggerPrice: DecimalString; parentOrderId: PerpsOrderId | undefined; armedQuantity: DecimalString | undefined; slippageBps: number | undefined; } | null | undefined; }>>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsOrderUpdateSchema: z.ZodPipe>; iid: z.ZodPipe>; buy: z.ZodBoolean; p: z.ZodPipe>; qty: z.ZodPipe>; tif: z.ZodEnum; po: z.ZodBoolean; ro: z.ZodBoolean; status: z.ZodEnum; rest: z.ZodPipe>; fill: z.ZodPipe>; cts: z.ZodPipe>; uts: z.ZodPipe>; coid: z.ZodOptional; tpsl: z.ZodOptional; scope: z.ZodEnum; trp: z.ZodPipe>; parent_oid: z.ZodOptional>>; armed_qty: z.ZodOptional>>; slip_bps: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ kind: PerpsTpSlKind; scope: PerpsTpSlScope; triggerPrice: DecimalString; parentOrderId: PerpsOrderId | undefined; armedQuantity: DecimalString | undefined; slippageBps: number | undefined; }, { kind: PerpsTpSlKind; scope: PerpsTpSlScope; trp: DecimalString; parent_oid?: PerpsOrderId | undefined; armed_qty?: DecimalString | undefined; slip_bps?: number | undefined; }>>>>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsOrderId; instrumentId: PerpsInstrumentId; side: OrderSide; price: DecimalString; quantity: DecimalString; timeInForce: PerpsTimeInForce; postOnly: boolean; reduceOnly: boolean; status: PerpsOrderStatus; restingQuantity: DecimalString; filledQuantity: DecimalString; createdTimestamp: EpochMilliseconds; updatedTimestamp: EpochMilliseconds; clientOrderId: string | undefined; tpSl: { kind: PerpsTpSlKind; scope: PerpsTpSlScope; triggerPrice: DecimalString; parentOrderId: PerpsOrderId | undefined; armedQuantity: DecimalString | undefined; slippageBps: number | undefined; } | undefined; }, { oid: PerpsOrderId; iid: PerpsInstrumentId; buy: boolean; p: DecimalString; qty: DecimalString; tif: PerpsTimeInForce; po: boolean; ro: boolean; status: PerpsOrderStatus; rest: DecimalString; fill: DecimalString; cts: EpochMilliseconds; uts: EpochMilliseconds; coid?: string | undefined; tpsl?: { kind: PerpsTpSlKind; scope: PerpsTpSlScope; triggerPrice: DecimalString; parentOrderId: PerpsOrderId | undefined; armedQuantity: DecimalString | undefined; slippageBps: number | undefined; } | null | undefined; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsAccountFillSchema: z.ZodPipe>; order_id: z.ZodPipe>; instrument_id: z.ZodPipe>; side: z.ZodEnum; price: z.ZodPipe>; quantity: z.ZodPipe>; taker: z.ZodBoolean; fee: z.ZodPipe>; fee_asset: z.ZodString; previous_size: z.ZodPipe>; previous_entry_price: z.ZodPipe>; pnl: z.ZodPipe>; liquidation: z.ZodBoolean; timestamp: z.ZodPipe>; hash: z.ZodPipe, z.ZodOptional>>>; }, z.core.$strip>, z.ZodTransform<{ tradeId: PerpsTradeId; orderId: PerpsOrderId; instrumentId: PerpsInstrumentId; side: PerpsSide; price: DecimalString; quantity: DecimalString; taker: boolean; fee: DecimalString; feeAsset: string; previousSize: DecimalString; previousEntryPrice: DecimalString; pnl: DecimalString; liquidation: boolean; timestamp: EpochMilliseconds; hash: _polymarket_types.TxHash | undefined; }, { trade_id: PerpsTradeId; order_id: PerpsOrderId; instrument_id: PerpsInstrumentId; side: PerpsSide; price: DecimalString; quantity: DecimalString; taker: boolean; fee: DecimalString; fee_asset: string; previous_size: DecimalString; previous_entry_price: DecimalString; pnl: DecimalString; liquidation: boolean; timestamp: EpochMilliseconds; hash?: _polymarket_types.TxHash | undefined; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsAccountFill = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const ListPerpsFillsResponseSchema: z.ZodObject<{ data: z.ZodArray>; order_id: z.ZodPipe>; instrument_id: z.ZodPipe>; side: z.ZodEnum; price: z.ZodPipe>; quantity: z.ZodPipe>; taker: z.ZodBoolean; fee: z.ZodPipe>; fee_asset: z.ZodString; previous_size: z.ZodPipe>; previous_entry_price: z.ZodPipe>; pnl: z.ZodPipe>; liquidation: z.ZodBoolean; timestamp: z.ZodPipe>; hash: z.ZodPipe, z.ZodOptional>>>; }, z.core.$strip>, z.ZodTransform<{ tradeId: PerpsTradeId; orderId: PerpsOrderId; instrumentId: PerpsInstrumentId; side: PerpsSide; price: DecimalString; quantity: DecimalString; taker: boolean; fee: DecimalString; feeAsset: string; previousSize: DecimalString; previousEntryPrice: DecimalString; pnl: DecimalString; liquidation: boolean; timestamp: EpochMilliseconds; hash: _polymarket_types.TxHash | undefined; }, { trade_id: PerpsTradeId; order_id: PerpsOrderId; instrument_id: PerpsInstrumentId; side: PerpsSide; price: DecimalString; quantity: DecimalString; taker: boolean; fee: DecimalString; fee_asset: string; previous_size: DecimalString; previous_entry_price: DecimalString; pnl: DecimalString; liquidation: boolean; timestamp: EpochMilliseconds; hash?: _polymarket_types.TxHash | undefined; }>>>; more: z.ZodBoolean; }, z.core.$strip>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsAccountFillUpdateSchema: z.ZodPipe>; oid: z.ZodPipe>; iid: z.ZodPipe>; side: z.ZodEnum; p: z.ZodPipe>; qty: z.ZodPipe>; taker: z.ZodBoolean; fee: z.ZodPipe>; fea: z.ZodString; psz: z.ZodPipe>; pep: z.ZodPipe>; pnl: z.ZodPipe>; liq: z.ZodBoolean; ts: z.ZodPipe>; coid: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ tradeId: PerpsTradeId; orderId: PerpsOrderId; instrumentId: PerpsInstrumentId; side: PerpsSide; price: DecimalString; quantity: DecimalString; taker: boolean; fee: DecimalString; feeAsset: string; previousSize: DecimalString; previousEntryPrice: DecimalString; pnl: DecimalString; liquidation: boolean; timestamp: EpochMilliseconds; clientOrderId: string | undefined; }, { tid: PerpsTradeId; oid: PerpsOrderId; iid: PerpsInstrumentId; side: PerpsSide; p: DecimalString; qty: DecimalString; taker: boolean; fee: DecimalString; fea: string; psz: DecimalString; pep: DecimalString; pnl: DecimalString; liq: boolean; ts: EpochMilliseconds; coid?: string | undefined; }>>; export { PerpsMarginType as $, PerpsCommandStatusSchema as A, type PerpsCredentials as B, PerpsDataResponseSchema as C, type PerpsDecimal as D, type PerpsDecimalInput as E, FetchPerpsOpenOrdersResponseSchema as F, PerpsDecimalInputSchema as G, type PerpsDepositAmount as H, PerpsDepositStatusSchema as I, PerpsEntityIdSchema as J, type PerpsFundingInterval as K, ListPerpsFillsResponseSchema as L, MarkPerpsNotificationsReadResponseSchema as M, PerpsFundingIntervalSchema as N, PerpsFundingPaymentIdSchema as O, type PerpsInstrumentId as P, PerpsInstrumentCategorySchema as Q, PerpsInstrumentIdSchema as R, PerpsInstrumentTypeSchema as S, PerpsInternalTransferDirectionSchema as T, PerpsInternalTransferIdSchema as U, PerpsKlineInterval as V, PerpsKlineIntervalSchema as W, type PerpsLimitOrderCanceledNotification as X, PerpsLimitOrderCanceledNotificationSchema as Y, type PerpsLiquidationWarningNotification as Z, PerpsLiquidationWarningNotificationSchema as _, type PerpsEntityId as a, PerpsMarginTypeSchema as a0, type PerpsNotification as a1, type PerpsNotificationEntry as a2, PerpsNotificationEntrySchema as a3, type PerpsNotificationId as a4, PerpsNotificationIdSchema as a5, PerpsNotificationOrderType as a6, PerpsNotificationOrderTypeSchema as a7, PerpsNotificationSchema as a8, PerpsNotificationType as a9, PerpsTpSlOrderFieldsSchema as aA, PerpsTpSlScope as aB, PerpsTpSlScopeSchema as aC, PerpsTradeIdSchema as aD, type PerpsTxHash as aE, PerpsTxHashSchema as aF, type PerpsUpdateLeverageResult as aG, PerpsUpdateLeverageResultSchema as aH, type PerpsWithdrawalAmount as aI, PerpsWithdrawalIdSchema as aJ, type PerpsWithdrawalStatus as aK, PerpsWithdrawalStatusSchema as aL, decimalString as aM, perpsBaseUnits as aN, perpsDecimal as aO, PerpsNotificationTypeSchema as aa, type PerpsOrder as ab, type PerpsOrderId as ac, PerpsOrderIdSchema as ad, PerpsOrderSchema as ae, PerpsOrderStatus as af, PerpsOrderStatusSchema as ag, PerpsOrderUpdateSchema as ah, PerpsPnlInterval as ai, PerpsPnlIntervalSchema as aj, type PerpsPositionChangeNotification as ak, PerpsPositionChangeNotificationSchema as al, type PerpsPositionClosedNotification as am, PerpsPositionClosedNotificationSchema as an, type PerpsPositionLiquidatedNotification as ao, PerpsPositionLiquidatedNotificationSchema as ap, type PerpsPostOrderAck as aq, PerpsPostOrderAckSchema as ar, PerpsSideSchema as as, PerpsSortDirection as at, PerpsSortDirectionSchema as au, PerpsTimeInForce as av, PerpsTimeInForceSchema as aw, PerpsTpSlKind as ax, PerpsTpSlKindSchema as ay, type PerpsTpSlOrderFields as az, type PerpsFundingPaymentId as b, PerpsDepositStatus as c, type PerpsWithdrawalId as d, PerpsKnownWithdrawalStatus as e, type PerpsInternalTransferId as f, PerpsInternalTransferDirection as g, PerpsInstrumentType as h, PerpsInstrumentCategory as i, type PerpsTradeId as j, PerpsSide as k, FetchPerpsOrdersResponseSchema as l, FetchPerpsUnreadNotificationsCountResponseSchema as m, ListPerpsNotificationsResponseSchema as n, type PerpsAccountFill as o, PerpsAccountFillSchema as p, PerpsAccountFillUpdateSchema as q, PerpsAssetSchema as r, type PerpsCancelAllOrdersResponse as s, PerpsCancelAllOrdersResponseSchema as t, type PerpsCancelOrderResult as u, PerpsCancelOrderResultSchema as v, type PerpsClientOrderId as w, PerpsClientOrderIdSchema as x, type PerpsCommandAck as y, PerpsCommandAckSchema as z };