@polymarket/bindings 0.3.0-beta.0 → 0.3.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-BVFKAX4O.js +2 -0
- package/dist/chunk-BVFKAX4O.js.map +1 -0
- package/dist/{orders-ClcuI-yo.d.ts → orders-CTqTKxTR.d.ts} +757 -3
- package/dist/perps/index.d.ts +2 -2
- package/dist/perps/index.js +1 -1
- package/dist/subscriptions/index.d.ts +547 -2
- package/dist/subscriptions/index.js +1 -1
- package/dist/subscriptions/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-JRSTEY5H.js +0 -2
- package/dist/chunk-JRSTEY5H.js.map +0 -1
package/dist/perps/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _polymarket_types from '@polymarket/types';
|
|
2
|
-
import { P as PerpsInstrumentId, a as PerpsEntityId, b as PerpsDepositStatus, c as PerpsWithdrawalId, d as PerpsKnownWithdrawalStatus, e as PerpsInternalTransferId, f as PerpsInternalTransferDirection, g as PerpsInstrumentType, h as PerpsInstrumentCategory, i as PerpsTradeId, j as PerpsSide } from '../orders-
|
|
3
|
-
export { F as FetchPerpsOpenOrdersResponseSchema, k as FetchPerpsOrdersResponseSchema, L as ListPerpsFillsResponseSchema,
|
|
2
|
+
import { P as PerpsInstrumentId, a as PerpsEntityId, b as PerpsDepositStatus, c as PerpsWithdrawalId, d as PerpsKnownWithdrawalStatus, e as PerpsInternalTransferId, f as PerpsInternalTransferDirection, g as PerpsInstrumentType, h as PerpsInstrumentCategory, i as PerpsTradeId, j as PerpsSide } from '../orders-CTqTKxTR.js';
|
|
3
|
+
export { F as FetchPerpsOpenOrdersResponseSchema, k as FetchPerpsOrdersResponseSchema, l as FetchPerpsUnreadNotificationsCountResponseSchema, L as ListPerpsFillsResponseSchema, m as ListPerpsNotificationsResponseSchema, M as MarkPerpsNotificationsReadResponseSchema, n as PerpsAccountFill, o as PerpsAccountFillSchema, p as PerpsAccountFillUpdateSchema, q as PerpsAssetSchema, r as PerpsCancelAllOrdersResponse, s as PerpsCancelAllOrdersResponseSchema, t as PerpsCancelOrderResult, u as PerpsCancelOrderResultSchema, v as PerpsClientOrderId, w as PerpsClientOrderIdSchema, x as PerpsCommandAck, y as PerpsCommandAckSchema, z as PerpsCommandStatusSchema, A as PerpsCredentials, B as PerpsDataResponseSchema, C as PerpsDecimal, D as PerpsDecimalInput, E as PerpsDecimalInputSchema, G as PerpsDepositAmount, H as PerpsDepositStatusSchema, I as PerpsEntityIdSchema, J as PerpsFundingInterval, K as PerpsFundingIntervalSchema, N as PerpsInstrumentCategorySchema, O as PerpsInstrumentIdSchema, Q as PerpsInstrumentTypeSchema, R as PerpsInternalTransferDirectionSchema, S as PerpsInternalTransferIdSchema, T as PerpsKlineInterval, U as PerpsKlineIntervalSchema, V as PerpsLimitOrderCanceledNotification, W as PerpsLimitOrderCanceledNotificationSchema, X as PerpsLiquidationWarningNotification, Y as PerpsLiquidationWarningNotificationSchema, Z as PerpsMarginType, _ as PerpsMarginTypeSchema, $ as PerpsNotification, a0 as PerpsNotificationEntry, a1 as PerpsNotificationEntrySchema, a2 as PerpsNotificationId, a3 as PerpsNotificationIdSchema, a4 as PerpsNotificationOrderType, a5 as PerpsNotificationOrderTypeSchema, a6 as PerpsNotificationSchema, a7 as PerpsNotificationType, a8 as PerpsNotificationTypeSchema, a9 as PerpsOrder, aa as PerpsOrderId, ab as PerpsOrderIdSchema, ac as PerpsOrderSchema, ad as PerpsOrderStatus, ae as PerpsOrderStatusSchema, af as PerpsOrderUpdateSchema, ag as PerpsPnlInterval, ah as PerpsPnlIntervalSchema, ai as PerpsPositionChangeNotification, aj as PerpsPositionChangeNotificationSchema, ak as PerpsPositionClosedNotification, al as PerpsPositionClosedNotificationSchema, am as PerpsPositionLiquidatedNotification, an as PerpsPositionLiquidatedNotificationSchema, ao as PerpsPostOrderAck, ap as PerpsPostOrderAckSchema, aq as PerpsSideSchema, ar as PerpsSortDirection, as as PerpsSortDirectionSchema, at as PerpsTimeInForce, au as PerpsTimeInForceSchema, av as PerpsTpSlKind, aw as PerpsTpSlKindSchema, ax as PerpsTpSlOrderFields, ay as PerpsTpSlOrderFieldsSchema, az as PerpsTpSlScope, aA as PerpsTpSlScopeSchema, aB as PerpsTradeIdSchema, aC as PerpsTxHash, aD as PerpsTxHashSchema, aE as PerpsUpdateLeverageResult, aF as PerpsUpdateLeverageResultSchema, aG as PerpsWithdrawalAmount, aH as PerpsWithdrawalIdSchema, aI as PerpsWithdrawalStatus, aJ as PerpsWithdrawalStatusSchema, aK as decimalString, aL as perpsBaseUnits, aM as perpsDecimal } from '../orders-CTqTKxTR.js';
|
|
4
4
|
import { DecimalString, EpochMilliseconds, BaseUnits } from '../index.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
|
package/dist/perps/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{_ as FetchPerpsAccountConfigResponseSchema,R as FetchPerpsAccountStatsResponseSchema,P as FetchPerpsBalancesResponseSchema,Na as FetchPerpsCandlesResponseSchema,Ma as FetchPerpsFeesResponseSchema,Ia as FetchPerpsFundingHistoryResponseSchema,ra as FetchPerpsInstrumentsResponseSchema,nb as FetchPerpsOpenOrdersResponseSchema,mb as FetchPerpsOrdersResponseSchema,V as FetchPerpsPortfolioResponseSchema,xa as FetchPerpsStatisticsResponseSchema,ta as FetchPerpsTickersResponseSchema,Ga as FetchPerpsTradesResponseSchema,ab as FetchPerpsUnreadNotificationsCountResponseSchema,ia as ListPerpsDepositsResponseSchema,aa as ListPerpsEquityHistoryResponseSchema,qb as ListPerpsFillsResponseSchema,X as ListPerpsFundingPaymentsResponseSchema,$a as ListPerpsNotificationsResponseSchema,ca as ListPerpsPnlHistoryResponseSchema,la as ListPerpsWithdrawalsResponseSchema,bb as MarkPerpsNotificationsReadResponseSchema,Z as PerpsAccountConfigSchema,pb as PerpsAccountFillSchema,rb as PerpsAccountFillUpdateSchema,Y as PerpsAccountFundingPaymentEntrySchema,W as PerpsAccountFundingPaymentSchema,Q as PerpsAccountStatsSchema,I as PerpsAssetSchema,O as PerpsBalanceSchema,Ca as PerpsBboSchema,Da as PerpsBboUpdateSchema,za as PerpsBookLevelSchema,Aa as PerpsBookSchema,Ba as PerpsBookUpdateSchema,jb as PerpsCancelAllOrdersResponseSchema,ib as PerpsCancelOrderResultSchema,va as PerpsCandleSchema,c as PerpsClientOrderIdSchema,gb as PerpsCommandAckSchema,fb as PerpsCommandStatusSchema,fa as PerpsCreateProxyResponseSchema,ea as PerpsCredentialsResponseSchema,K as PerpsDataResponseSchema,j as PerpsDecimalInputSchema,ga as PerpsDeleteProxyResponseSchema,ha as PerpsDepositSchema,q as PerpsDepositStatus,C as PerpsDepositStatusSchema,ja as PerpsDepositUpdateSchema,h as PerpsEntityIdSchema,$ as PerpsEquityPointSchema,Ka as PerpsFeeScheduleEntrySchema,Ja as PerpsFeeTierSchema,La as PerpsFeesInfoSchema,i as PerpsFundingIntervalSchema,Ha as PerpsFundingRateSchema,l as PerpsInstrumentCategory,x as PerpsInstrumentCategorySchema,a as PerpsInstrumentIdSchema,qa as PerpsInstrumentSchema,k as PerpsInstrumentType,w as PerpsInstrumentTypeSchema,s as PerpsInternalTransferDirection,E as PerpsInternalTransferDirectionSchema,g as PerpsInternalTransferIdSchema,oa as PerpsInternalTransferSchema,t as PerpsKlineInterval,F as PerpsKlineIntervalSchema,r as PerpsKnownWithdrawalStatus,Wa as PerpsLimitOrderCanceledNotificationSchema,Xa as PerpsLiquidationWarningNotificationSchema,T as PerpsMarginSummarySchema,Sa as PerpsMarginType,Ta as PerpsMarginTypeSchema,_a as PerpsNotificationEntrySchema,d as PerpsNotificationIdSchema,Qa as PerpsNotificationOrderType,Ra as PerpsNotificationOrderTypeSchema,Za as PerpsNotificationSchema,Oa as PerpsNotificationType,Pa as PerpsNotificationTypeSchema,b as PerpsOrderIdSchema,lb as PerpsOrderSchema,cb as PerpsOrderStatus,eb as PerpsOrderStatusSchema,ob as PerpsOrderUpdateSchema,u as PerpsPnlInterval,G as PerpsPnlIntervalSchema,ba as PerpsPnlPointSchema,S as PerpsPortfolioPositionSchema,U as PerpsPortfolioSchema,Ua as PerpsPositionChangeNotificationSchema,Va as PerpsPositionClosedNotificationSchema,Ya as PerpsPositionLiquidatedNotificationSchema,hb as PerpsPostOrderAckSchema,da as PerpsProxyKeySchema,Ea as PerpsPublicTradeSchema,Fa as PerpsPublicTradeUpdateSchema,pa as PerpsRiskTierSchema,m as PerpsSide,y as PerpsSideSchema,v as PerpsSortDirection,H as PerpsSortDirectionSchema,wa as PerpsStatisticSchema,ya as PerpsStatisticUpdateSchema,ua as PerpsTickerEntrySchema,sa as PerpsTickerSchema,n as PerpsTimeInForce,z as PerpsTimeInForceSchema,o as PerpsTpSlKind,A as PerpsTpSlKindSchema,db as PerpsTpSlOrderFieldsSchema,p as PerpsTpSlScope,B as PerpsTpSlScopeSchema,e as PerpsTradeIdSchema,J as PerpsTxHashSchema,kb as PerpsUpdateLeverageResultSchema,ma as PerpsWithdrawResponseSchema,f as PerpsWithdrawalIdSchema,ka as PerpsWithdrawalSchema,D as PerpsWithdrawalStatusSchema,na as PerpsWithdrawalUpdateSchema,N as decimalString,M as perpsBaseUnits,L as perpsDecimal}from'../chunk-BVFKAX4O.js';import'../chunk-6TO35A2S.js';//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TokenId, DecimalString, EpochMilliseconds, CtfConditionId, IsoDateTimeString, OrderSide, OrderType, TradeStatus, BaseUnits, CommentId, CommentParentEntityType, EventId, SeriesId, ImageOptimizationId } from '../index.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { P as PerpsInstrumentId,
|
|
3
|
+
import { P as PerpsInstrumentId, T as PerpsKlineInterval, b as PerpsDepositStatus, i as PerpsTradeId, aa as PerpsOrderId, j as PerpsSide, a2 as PerpsNotificationId, a7 as PerpsNotificationType, a4 as PerpsNotificationOrderType, Z as PerpsMarginType, at as PerpsTimeInForce, ad as PerpsOrderStatus, av as PerpsTpSlKind, az as PerpsTpSlScope, c as PerpsWithdrawalId, d as PerpsKnownWithdrawalStatus } from '../orders-CTqTKxTR.js';
|
|
4
4
|
import * as _polymarket_types from '@polymarket/types';
|
|
5
5
|
import { R as ReactionType } from '../comment-C-jBbhp7.js';
|
|
6
6
|
|
|
@@ -2939,6 +2939,294 @@ declare const PerpsWithdrawalUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2939
2939
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2940
2940
|
*/
|
|
2941
2941
|
type PerpsWithdrawalUpdateEvent = z.infer<typeof PerpsWithdrawalUpdateEventSchema>;
|
|
2942
|
+
/**
|
|
2943
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2944
|
+
*/
|
|
2945
|
+
declare const PerpsNotificationUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
2946
|
+
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
2947
|
+
sq: z.ZodNumber;
|
|
2948
|
+
ch: z.ZodLiteral<"notifications">;
|
|
2949
|
+
data: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<{
|
|
2950
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
|
|
2951
|
+
type: z.ZodEnum<{
|
|
2952
|
+
position_opened: PerpsNotificationType.PositionOpened;
|
|
2953
|
+
position_increased: PerpsNotificationType.PositionIncreased;
|
|
2954
|
+
position_reduced: PerpsNotificationType.PositionReduced;
|
|
2955
|
+
}>;
|
|
2956
|
+
instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
2957
|
+
side: z.ZodEnum<typeof PerpsSide>;
|
|
2958
|
+
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
2959
|
+
avg_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
2960
|
+
leverage: z.ZodNumber;
|
|
2961
|
+
order_type: z.ZodOptional<z.ZodEnum<typeof PerpsNotificationOrderType>>;
|
|
2962
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2963
|
+
id: PerpsNotificationId;
|
|
2964
|
+
type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced;
|
|
2965
|
+
instrumentId: PerpsInstrumentId;
|
|
2966
|
+
side: PerpsSide;
|
|
2967
|
+
size: DecimalString;
|
|
2968
|
+
avgPrice: DecimalString;
|
|
2969
|
+
leverage: number;
|
|
2970
|
+
orderType: PerpsNotificationOrderType | undefined;
|
|
2971
|
+
}, {
|
|
2972
|
+
id: PerpsNotificationId;
|
|
2973
|
+
type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced;
|
|
2974
|
+
instrument_id: PerpsInstrumentId;
|
|
2975
|
+
side: PerpsSide;
|
|
2976
|
+
size: DecimalString;
|
|
2977
|
+
avg_price: DecimalString;
|
|
2978
|
+
leverage: number;
|
|
2979
|
+
order_type?: PerpsNotificationOrderType | undefined;
|
|
2980
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
2981
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
|
|
2982
|
+
type: z.ZodLiteral<PerpsNotificationType.PositionClosed>;
|
|
2983
|
+
instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
2984
|
+
side: z.ZodEnum<typeof PerpsSide>;
|
|
2985
|
+
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
2986
|
+
avg_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
2987
|
+
pnl: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
2988
|
+
order_type: z.ZodOptional<z.ZodEnum<typeof PerpsNotificationOrderType>>;
|
|
2989
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2990
|
+
id: PerpsNotificationId;
|
|
2991
|
+
type: PerpsNotificationType.PositionClosed;
|
|
2992
|
+
instrumentId: PerpsInstrumentId;
|
|
2993
|
+
side: PerpsSide;
|
|
2994
|
+
size: DecimalString;
|
|
2995
|
+
avgPrice: DecimalString;
|
|
2996
|
+
pnl: DecimalString;
|
|
2997
|
+
orderType: PerpsNotificationOrderType | undefined;
|
|
2998
|
+
}, {
|
|
2999
|
+
id: PerpsNotificationId;
|
|
3000
|
+
type: PerpsNotificationType.PositionClosed;
|
|
3001
|
+
instrument_id: PerpsInstrumentId;
|
|
3002
|
+
side: PerpsSide;
|
|
3003
|
+
size: DecimalString;
|
|
3004
|
+
avg_price: DecimalString;
|
|
3005
|
+
pnl: DecimalString;
|
|
3006
|
+
order_type?: PerpsNotificationOrderType | undefined;
|
|
3007
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
3008
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
|
|
3009
|
+
type: z.ZodLiteral<PerpsNotificationType.LimitOrderCanceled>;
|
|
3010
|
+
instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
3011
|
+
side: z.ZodEnum<typeof PerpsSide>;
|
|
3012
|
+
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3013
|
+
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3014
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3015
|
+
id: PerpsNotificationId;
|
|
3016
|
+
type: PerpsNotificationType.LimitOrderCanceled;
|
|
3017
|
+
instrumentId: PerpsInstrumentId;
|
|
3018
|
+
side: PerpsSide;
|
|
3019
|
+
size: DecimalString;
|
|
3020
|
+
price: DecimalString;
|
|
3021
|
+
}, {
|
|
3022
|
+
id: PerpsNotificationId;
|
|
3023
|
+
type: PerpsNotificationType.LimitOrderCanceled;
|
|
3024
|
+
instrument_id: PerpsInstrumentId;
|
|
3025
|
+
side: PerpsSide;
|
|
3026
|
+
size: DecimalString;
|
|
3027
|
+
price: DecimalString;
|
|
3028
|
+
}>>, z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<{
|
|
3029
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
|
|
3030
|
+
type: z.ZodLiteral<PerpsNotificationType.LiquidationWarning>;
|
|
3031
|
+
margin_type: z.ZodLiteral<PerpsMarginType.Isolated>;
|
|
3032
|
+
instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
3033
|
+
mark_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3034
|
+
liq_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3035
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3036
|
+
id: PerpsNotificationId;
|
|
3037
|
+
type: PerpsNotificationType.LiquidationWarning;
|
|
3038
|
+
marginType: PerpsMarginType.Isolated;
|
|
3039
|
+
instrumentId: PerpsInstrumentId;
|
|
3040
|
+
markPrice: DecimalString;
|
|
3041
|
+
liquidationPrice: DecimalString;
|
|
3042
|
+
}, {
|
|
3043
|
+
id: PerpsNotificationId;
|
|
3044
|
+
type: PerpsNotificationType.LiquidationWarning;
|
|
3045
|
+
margin_type: PerpsMarginType.Isolated;
|
|
3046
|
+
instrument_id: PerpsInstrumentId;
|
|
3047
|
+
mark_price: DecimalString;
|
|
3048
|
+
liq_price: DecimalString;
|
|
3049
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
3050
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
|
|
3051
|
+
type: z.ZodLiteral<PerpsNotificationType.LiquidationWarning>;
|
|
3052
|
+
margin_type: z.ZodLiteral<PerpsMarginType.Cross>;
|
|
3053
|
+
instrument_id: z.ZodNull;
|
|
3054
|
+
mark_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3055
|
+
affected_instruments: z.ZodArray<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>>;
|
|
3056
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3057
|
+
id: PerpsNotificationId;
|
|
3058
|
+
type: PerpsNotificationType.LiquidationWarning;
|
|
3059
|
+
marginType: PerpsMarginType.Cross;
|
|
3060
|
+
markPrice: DecimalString;
|
|
3061
|
+
affectedInstruments: PerpsInstrumentId[];
|
|
3062
|
+
}, {
|
|
3063
|
+
id: PerpsNotificationId;
|
|
3064
|
+
type: PerpsNotificationType.LiquidationWarning;
|
|
3065
|
+
margin_type: PerpsMarginType.Cross;
|
|
3066
|
+
instrument_id: null;
|
|
3067
|
+
mark_price: DecimalString;
|
|
3068
|
+
affected_instruments: PerpsInstrumentId[];
|
|
3069
|
+
}>>], "margin_type">, z.ZodPipe<z.ZodObject<{
|
|
3070
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
|
|
3071
|
+
type: z.ZodLiteral<PerpsNotificationType.PositionLiquidated>;
|
|
3072
|
+
instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
3073
|
+
side: z.ZodEnum<typeof PerpsSide>;
|
|
3074
|
+
size_closed: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3075
|
+
pnl: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
|
|
3076
|
+
margin_type: z.ZodEnum<typeof PerpsMarginType>;
|
|
3077
|
+
via_backstop: z.ZodBoolean;
|
|
3078
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3079
|
+
id: PerpsNotificationId;
|
|
3080
|
+
type: PerpsNotificationType.PositionLiquidated;
|
|
3081
|
+
instrumentId: PerpsInstrumentId;
|
|
3082
|
+
side: PerpsSide;
|
|
3083
|
+
sizeClosed: DecimalString;
|
|
3084
|
+
pnl: DecimalString | null;
|
|
3085
|
+
marginType: PerpsMarginType;
|
|
3086
|
+
viaBackstop: boolean;
|
|
3087
|
+
}, {
|
|
3088
|
+
id: PerpsNotificationId;
|
|
3089
|
+
type: PerpsNotificationType.PositionLiquidated;
|
|
3090
|
+
instrument_id: PerpsInstrumentId;
|
|
3091
|
+
side: PerpsSide;
|
|
3092
|
+
size_closed: DecimalString;
|
|
3093
|
+
pnl: DecimalString | null;
|
|
3094
|
+
margin_type: PerpsMarginType;
|
|
3095
|
+
via_backstop: boolean;
|
|
3096
|
+
}>>], "type">;
|
|
3097
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3098
|
+
type: "notification";
|
|
3099
|
+
channel: "notifications";
|
|
3100
|
+
timestamp: number;
|
|
3101
|
+
sequence: number;
|
|
3102
|
+
payload: {
|
|
3103
|
+
id: PerpsNotificationId;
|
|
3104
|
+
type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced;
|
|
3105
|
+
instrumentId: PerpsInstrumentId;
|
|
3106
|
+
side: PerpsSide;
|
|
3107
|
+
size: DecimalString;
|
|
3108
|
+
avgPrice: DecimalString;
|
|
3109
|
+
leverage: number;
|
|
3110
|
+
orderType: PerpsNotificationOrderType | undefined;
|
|
3111
|
+
} | {
|
|
3112
|
+
id: PerpsNotificationId;
|
|
3113
|
+
type: PerpsNotificationType.PositionClosed;
|
|
3114
|
+
instrumentId: PerpsInstrumentId;
|
|
3115
|
+
side: PerpsSide;
|
|
3116
|
+
size: DecimalString;
|
|
3117
|
+
avgPrice: DecimalString;
|
|
3118
|
+
pnl: DecimalString;
|
|
3119
|
+
orderType: PerpsNotificationOrderType | undefined;
|
|
3120
|
+
} | {
|
|
3121
|
+
id: PerpsNotificationId;
|
|
3122
|
+
type: PerpsNotificationType.LimitOrderCanceled;
|
|
3123
|
+
instrumentId: PerpsInstrumentId;
|
|
3124
|
+
side: PerpsSide;
|
|
3125
|
+
size: DecimalString;
|
|
3126
|
+
price: DecimalString;
|
|
3127
|
+
} | {
|
|
3128
|
+
id: PerpsNotificationId;
|
|
3129
|
+
type: PerpsNotificationType.LiquidationWarning;
|
|
3130
|
+
marginType: PerpsMarginType.Isolated;
|
|
3131
|
+
instrumentId: PerpsInstrumentId;
|
|
3132
|
+
markPrice: DecimalString;
|
|
3133
|
+
liquidationPrice: DecimalString;
|
|
3134
|
+
} | {
|
|
3135
|
+
id: PerpsNotificationId;
|
|
3136
|
+
type: PerpsNotificationType.LiquidationWarning;
|
|
3137
|
+
marginType: PerpsMarginType.Cross;
|
|
3138
|
+
markPrice: DecimalString;
|
|
3139
|
+
affectedInstruments: PerpsInstrumentId[];
|
|
3140
|
+
} | {
|
|
3141
|
+
id: PerpsNotificationId;
|
|
3142
|
+
type: PerpsNotificationType.PositionLiquidated;
|
|
3143
|
+
instrumentId: PerpsInstrumentId;
|
|
3144
|
+
side: PerpsSide;
|
|
3145
|
+
sizeClosed: DecimalString;
|
|
3146
|
+
pnl: DecimalString | null;
|
|
3147
|
+
marginType: PerpsMarginType;
|
|
3148
|
+
viaBackstop: boolean;
|
|
3149
|
+
};
|
|
3150
|
+
}, {
|
|
3151
|
+
ts: EpochMilliseconds;
|
|
3152
|
+
sq: number;
|
|
3153
|
+
ch: "notifications";
|
|
3154
|
+
data: {
|
|
3155
|
+
id: PerpsNotificationId;
|
|
3156
|
+
type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced;
|
|
3157
|
+
instrumentId: PerpsInstrumentId;
|
|
3158
|
+
side: PerpsSide;
|
|
3159
|
+
size: DecimalString;
|
|
3160
|
+
avgPrice: DecimalString;
|
|
3161
|
+
leverage: number;
|
|
3162
|
+
orderType: PerpsNotificationOrderType | undefined;
|
|
3163
|
+
} | {
|
|
3164
|
+
id: PerpsNotificationId;
|
|
3165
|
+
type: PerpsNotificationType.PositionClosed;
|
|
3166
|
+
instrumentId: PerpsInstrumentId;
|
|
3167
|
+
side: PerpsSide;
|
|
3168
|
+
size: DecimalString;
|
|
3169
|
+
avgPrice: DecimalString;
|
|
3170
|
+
pnl: DecimalString;
|
|
3171
|
+
orderType: PerpsNotificationOrderType | undefined;
|
|
3172
|
+
} | {
|
|
3173
|
+
id: PerpsNotificationId;
|
|
3174
|
+
type: PerpsNotificationType.LimitOrderCanceled;
|
|
3175
|
+
instrumentId: PerpsInstrumentId;
|
|
3176
|
+
side: PerpsSide;
|
|
3177
|
+
size: DecimalString;
|
|
3178
|
+
price: DecimalString;
|
|
3179
|
+
} | {
|
|
3180
|
+
id: PerpsNotificationId;
|
|
3181
|
+
type: PerpsNotificationType.LiquidationWarning;
|
|
3182
|
+
marginType: PerpsMarginType.Isolated;
|
|
3183
|
+
instrumentId: PerpsInstrumentId;
|
|
3184
|
+
markPrice: DecimalString;
|
|
3185
|
+
liquidationPrice: DecimalString;
|
|
3186
|
+
} | {
|
|
3187
|
+
id: PerpsNotificationId;
|
|
3188
|
+
type: PerpsNotificationType.LiquidationWarning;
|
|
3189
|
+
marginType: PerpsMarginType.Cross;
|
|
3190
|
+
markPrice: DecimalString;
|
|
3191
|
+
affectedInstruments: PerpsInstrumentId[];
|
|
3192
|
+
} | {
|
|
3193
|
+
id: PerpsNotificationId;
|
|
3194
|
+
type: PerpsNotificationType.PositionLiquidated;
|
|
3195
|
+
instrumentId: PerpsInstrumentId;
|
|
3196
|
+
side: PerpsSide;
|
|
3197
|
+
sizeClosed: DecimalString;
|
|
3198
|
+
pnl: DecimalString | null;
|
|
3199
|
+
marginType: PerpsMarginType;
|
|
3200
|
+
viaBackstop: boolean;
|
|
3201
|
+
};
|
|
3202
|
+
}>>;
|
|
3203
|
+
/**
|
|
3204
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
3205
|
+
*/
|
|
3206
|
+
type PerpsNotificationUpdateEvent = z.infer<typeof PerpsNotificationUpdateEventSchema>;
|
|
3207
|
+
/**
|
|
3208
|
+
* Backpressure control frame on the `notifications` channel. The server sends
|
|
3209
|
+
* it when one or more notification data frames were dropped; `sq` is the
|
|
3210
|
+
* highest engine sequence among the dropped notifications.
|
|
3211
|
+
*
|
|
3212
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
3213
|
+
*/
|
|
3214
|
+
declare const PerpsNotificationsResyncFrameSchema: z.ZodPipe<z.ZodObject<{
|
|
3215
|
+
ch: z.ZodLiteral<"notifications">;
|
|
3216
|
+
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
3217
|
+
sq: z.ZodNumber;
|
|
3218
|
+
type: z.ZodLiteral<"resync">;
|
|
3219
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3220
|
+
type: "resync";
|
|
3221
|
+
channel: "notifications";
|
|
3222
|
+
timestamp: EpochMilliseconds;
|
|
3223
|
+
sequence: number;
|
|
3224
|
+
}, {
|
|
3225
|
+
ch: "notifications";
|
|
3226
|
+
ts: EpochMilliseconds;
|
|
3227
|
+
sq: number;
|
|
3228
|
+
type: "resync";
|
|
3229
|
+
}>>;
|
|
2942
3230
|
/**
|
|
2943
3231
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2944
3232
|
*/
|
|
@@ -3587,6 +3875,263 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
|
|
|
3587
3875
|
to: _polymarket_types.EvmAddress;
|
|
3588
3876
|
hash: _polymarket_types.TxHash | undefined;
|
|
3589
3877
|
};
|
|
3878
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
3879
|
+
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
3880
|
+
sq: z.ZodNumber;
|
|
3881
|
+
ch: z.ZodLiteral<"notifications">;
|
|
3882
|
+
data: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<{
|
|
3883
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
|
|
3884
|
+
type: z.ZodEnum<{
|
|
3885
|
+
position_opened: PerpsNotificationType.PositionOpened;
|
|
3886
|
+
position_increased: PerpsNotificationType.PositionIncreased;
|
|
3887
|
+
position_reduced: PerpsNotificationType.PositionReduced;
|
|
3888
|
+
}>;
|
|
3889
|
+
instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
3890
|
+
side: z.ZodEnum<typeof PerpsSide>;
|
|
3891
|
+
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3892
|
+
avg_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3893
|
+
leverage: z.ZodNumber;
|
|
3894
|
+
order_type: z.ZodOptional<z.ZodEnum<typeof PerpsNotificationOrderType>>;
|
|
3895
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3896
|
+
id: PerpsNotificationId;
|
|
3897
|
+
type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced;
|
|
3898
|
+
instrumentId: PerpsInstrumentId;
|
|
3899
|
+
side: PerpsSide;
|
|
3900
|
+
size: DecimalString;
|
|
3901
|
+
avgPrice: DecimalString;
|
|
3902
|
+
leverage: number;
|
|
3903
|
+
orderType: PerpsNotificationOrderType | undefined;
|
|
3904
|
+
}, {
|
|
3905
|
+
id: PerpsNotificationId;
|
|
3906
|
+
type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced;
|
|
3907
|
+
instrument_id: PerpsInstrumentId;
|
|
3908
|
+
side: PerpsSide;
|
|
3909
|
+
size: DecimalString;
|
|
3910
|
+
avg_price: DecimalString;
|
|
3911
|
+
leverage: number;
|
|
3912
|
+
order_type?: PerpsNotificationOrderType | undefined;
|
|
3913
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
3914
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
|
|
3915
|
+
type: z.ZodLiteral<PerpsNotificationType.PositionClosed>;
|
|
3916
|
+
instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
3917
|
+
side: z.ZodEnum<typeof PerpsSide>;
|
|
3918
|
+
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3919
|
+
avg_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3920
|
+
pnl: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3921
|
+
order_type: z.ZodOptional<z.ZodEnum<typeof PerpsNotificationOrderType>>;
|
|
3922
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3923
|
+
id: PerpsNotificationId;
|
|
3924
|
+
type: PerpsNotificationType.PositionClosed;
|
|
3925
|
+
instrumentId: PerpsInstrumentId;
|
|
3926
|
+
side: PerpsSide;
|
|
3927
|
+
size: DecimalString;
|
|
3928
|
+
avgPrice: DecimalString;
|
|
3929
|
+
pnl: DecimalString;
|
|
3930
|
+
orderType: PerpsNotificationOrderType | undefined;
|
|
3931
|
+
}, {
|
|
3932
|
+
id: PerpsNotificationId;
|
|
3933
|
+
type: PerpsNotificationType.PositionClosed;
|
|
3934
|
+
instrument_id: PerpsInstrumentId;
|
|
3935
|
+
side: PerpsSide;
|
|
3936
|
+
size: DecimalString;
|
|
3937
|
+
avg_price: DecimalString;
|
|
3938
|
+
pnl: DecimalString;
|
|
3939
|
+
order_type?: PerpsNotificationOrderType | undefined;
|
|
3940
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
3941
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
|
|
3942
|
+
type: z.ZodLiteral<PerpsNotificationType.LimitOrderCanceled>;
|
|
3943
|
+
instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
3944
|
+
side: z.ZodEnum<typeof PerpsSide>;
|
|
3945
|
+
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3946
|
+
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3947
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3948
|
+
id: PerpsNotificationId;
|
|
3949
|
+
type: PerpsNotificationType.LimitOrderCanceled;
|
|
3950
|
+
instrumentId: PerpsInstrumentId;
|
|
3951
|
+
side: PerpsSide;
|
|
3952
|
+
size: DecimalString;
|
|
3953
|
+
price: DecimalString;
|
|
3954
|
+
}, {
|
|
3955
|
+
id: PerpsNotificationId;
|
|
3956
|
+
type: PerpsNotificationType.LimitOrderCanceled;
|
|
3957
|
+
instrument_id: PerpsInstrumentId;
|
|
3958
|
+
side: PerpsSide;
|
|
3959
|
+
size: DecimalString;
|
|
3960
|
+
price: DecimalString;
|
|
3961
|
+
}>>, z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<{
|
|
3962
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
|
|
3963
|
+
type: z.ZodLiteral<PerpsNotificationType.LiquidationWarning>;
|
|
3964
|
+
margin_type: z.ZodLiteral<PerpsMarginType.Isolated>;
|
|
3965
|
+
instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
3966
|
+
mark_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3967
|
+
liq_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3968
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3969
|
+
id: PerpsNotificationId;
|
|
3970
|
+
type: PerpsNotificationType.LiquidationWarning;
|
|
3971
|
+
marginType: PerpsMarginType.Isolated;
|
|
3972
|
+
instrumentId: PerpsInstrumentId;
|
|
3973
|
+
markPrice: DecimalString;
|
|
3974
|
+
liquidationPrice: DecimalString;
|
|
3975
|
+
}, {
|
|
3976
|
+
id: PerpsNotificationId;
|
|
3977
|
+
type: PerpsNotificationType.LiquidationWarning;
|
|
3978
|
+
margin_type: PerpsMarginType.Isolated;
|
|
3979
|
+
instrument_id: PerpsInstrumentId;
|
|
3980
|
+
mark_price: DecimalString;
|
|
3981
|
+
liq_price: DecimalString;
|
|
3982
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
3983
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
|
|
3984
|
+
type: z.ZodLiteral<PerpsNotificationType.LiquidationWarning>;
|
|
3985
|
+
margin_type: z.ZodLiteral<PerpsMarginType.Cross>;
|
|
3986
|
+
instrument_id: z.ZodNull;
|
|
3987
|
+
mark_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3988
|
+
affected_instruments: z.ZodArray<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>>;
|
|
3989
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3990
|
+
id: PerpsNotificationId;
|
|
3991
|
+
type: PerpsNotificationType.LiquidationWarning;
|
|
3992
|
+
marginType: PerpsMarginType.Cross;
|
|
3993
|
+
markPrice: DecimalString;
|
|
3994
|
+
affectedInstruments: PerpsInstrumentId[];
|
|
3995
|
+
}, {
|
|
3996
|
+
id: PerpsNotificationId;
|
|
3997
|
+
type: PerpsNotificationType.LiquidationWarning;
|
|
3998
|
+
margin_type: PerpsMarginType.Cross;
|
|
3999
|
+
instrument_id: null;
|
|
4000
|
+
mark_price: DecimalString;
|
|
4001
|
+
affected_instruments: PerpsInstrumentId[];
|
|
4002
|
+
}>>], "margin_type">, z.ZodPipe<z.ZodObject<{
|
|
4003
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
|
|
4004
|
+
type: z.ZodLiteral<PerpsNotificationType.PositionLiquidated>;
|
|
4005
|
+
instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
4006
|
+
side: z.ZodEnum<typeof PerpsSide>;
|
|
4007
|
+
size_closed: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
4008
|
+
pnl: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
|
|
4009
|
+
margin_type: z.ZodEnum<typeof PerpsMarginType>;
|
|
4010
|
+
via_backstop: z.ZodBoolean;
|
|
4011
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
4012
|
+
id: PerpsNotificationId;
|
|
4013
|
+
type: PerpsNotificationType.PositionLiquidated;
|
|
4014
|
+
instrumentId: PerpsInstrumentId;
|
|
4015
|
+
side: PerpsSide;
|
|
4016
|
+
sizeClosed: DecimalString;
|
|
4017
|
+
pnl: DecimalString | null;
|
|
4018
|
+
marginType: PerpsMarginType;
|
|
4019
|
+
viaBackstop: boolean;
|
|
4020
|
+
}, {
|
|
4021
|
+
id: PerpsNotificationId;
|
|
4022
|
+
type: PerpsNotificationType.PositionLiquidated;
|
|
4023
|
+
instrument_id: PerpsInstrumentId;
|
|
4024
|
+
side: PerpsSide;
|
|
4025
|
+
size_closed: DecimalString;
|
|
4026
|
+
pnl: DecimalString | null;
|
|
4027
|
+
margin_type: PerpsMarginType;
|
|
4028
|
+
via_backstop: boolean;
|
|
4029
|
+
}>>], "type">;
|
|
4030
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
4031
|
+
type: "notification";
|
|
4032
|
+
channel: "notifications";
|
|
4033
|
+
timestamp: number;
|
|
4034
|
+
sequence: number;
|
|
4035
|
+
payload: {
|
|
4036
|
+
id: PerpsNotificationId;
|
|
4037
|
+
type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced;
|
|
4038
|
+
instrumentId: PerpsInstrumentId;
|
|
4039
|
+
side: PerpsSide;
|
|
4040
|
+
size: DecimalString;
|
|
4041
|
+
avgPrice: DecimalString;
|
|
4042
|
+
leverage: number;
|
|
4043
|
+
orderType: PerpsNotificationOrderType | undefined;
|
|
4044
|
+
} | {
|
|
4045
|
+
id: PerpsNotificationId;
|
|
4046
|
+
type: PerpsNotificationType.PositionClosed;
|
|
4047
|
+
instrumentId: PerpsInstrumentId;
|
|
4048
|
+
side: PerpsSide;
|
|
4049
|
+
size: DecimalString;
|
|
4050
|
+
avgPrice: DecimalString;
|
|
4051
|
+
pnl: DecimalString;
|
|
4052
|
+
orderType: PerpsNotificationOrderType | undefined;
|
|
4053
|
+
} | {
|
|
4054
|
+
id: PerpsNotificationId;
|
|
4055
|
+
type: PerpsNotificationType.LimitOrderCanceled;
|
|
4056
|
+
instrumentId: PerpsInstrumentId;
|
|
4057
|
+
side: PerpsSide;
|
|
4058
|
+
size: DecimalString;
|
|
4059
|
+
price: DecimalString;
|
|
4060
|
+
} | {
|
|
4061
|
+
id: PerpsNotificationId;
|
|
4062
|
+
type: PerpsNotificationType.LiquidationWarning;
|
|
4063
|
+
marginType: PerpsMarginType.Isolated;
|
|
4064
|
+
instrumentId: PerpsInstrumentId;
|
|
4065
|
+
markPrice: DecimalString;
|
|
4066
|
+
liquidationPrice: DecimalString;
|
|
4067
|
+
} | {
|
|
4068
|
+
id: PerpsNotificationId;
|
|
4069
|
+
type: PerpsNotificationType.LiquidationWarning;
|
|
4070
|
+
marginType: PerpsMarginType.Cross;
|
|
4071
|
+
markPrice: DecimalString;
|
|
4072
|
+
affectedInstruments: PerpsInstrumentId[];
|
|
4073
|
+
} | {
|
|
4074
|
+
id: PerpsNotificationId;
|
|
4075
|
+
type: PerpsNotificationType.PositionLiquidated;
|
|
4076
|
+
instrumentId: PerpsInstrumentId;
|
|
4077
|
+
side: PerpsSide;
|
|
4078
|
+
sizeClosed: DecimalString;
|
|
4079
|
+
pnl: DecimalString | null;
|
|
4080
|
+
marginType: PerpsMarginType;
|
|
4081
|
+
viaBackstop: boolean;
|
|
4082
|
+
};
|
|
4083
|
+
}, {
|
|
4084
|
+
ts: EpochMilliseconds;
|
|
4085
|
+
sq: number;
|
|
4086
|
+
ch: "notifications";
|
|
4087
|
+
data: {
|
|
4088
|
+
id: PerpsNotificationId;
|
|
4089
|
+
type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced;
|
|
4090
|
+
instrumentId: PerpsInstrumentId;
|
|
4091
|
+
side: PerpsSide;
|
|
4092
|
+
size: DecimalString;
|
|
4093
|
+
avgPrice: DecimalString;
|
|
4094
|
+
leverage: number;
|
|
4095
|
+
orderType: PerpsNotificationOrderType | undefined;
|
|
4096
|
+
} | {
|
|
4097
|
+
id: PerpsNotificationId;
|
|
4098
|
+
type: PerpsNotificationType.PositionClosed;
|
|
4099
|
+
instrumentId: PerpsInstrumentId;
|
|
4100
|
+
side: PerpsSide;
|
|
4101
|
+
size: DecimalString;
|
|
4102
|
+
avgPrice: DecimalString;
|
|
4103
|
+
pnl: DecimalString;
|
|
4104
|
+
orderType: PerpsNotificationOrderType | undefined;
|
|
4105
|
+
} | {
|
|
4106
|
+
id: PerpsNotificationId;
|
|
4107
|
+
type: PerpsNotificationType.LimitOrderCanceled;
|
|
4108
|
+
instrumentId: PerpsInstrumentId;
|
|
4109
|
+
side: PerpsSide;
|
|
4110
|
+
size: DecimalString;
|
|
4111
|
+
price: DecimalString;
|
|
4112
|
+
} | {
|
|
4113
|
+
id: PerpsNotificationId;
|
|
4114
|
+
type: PerpsNotificationType.LiquidationWarning;
|
|
4115
|
+
marginType: PerpsMarginType.Isolated;
|
|
4116
|
+
instrumentId: PerpsInstrumentId;
|
|
4117
|
+
markPrice: DecimalString;
|
|
4118
|
+
liquidationPrice: DecimalString;
|
|
4119
|
+
} | {
|
|
4120
|
+
id: PerpsNotificationId;
|
|
4121
|
+
type: PerpsNotificationType.LiquidationWarning;
|
|
4122
|
+
marginType: PerpsMarginType.Cross;
|
|
4123
|
+
markPrice: DecimalString;
|
|
4124
|
+
affectedInstruments: PerpsInstrumentId[];
|
|
4125
|
+
} | {
|
|
4126
|
+
id: PerpsNotificationId;
|
|
4127
|
+
type: PerpsNotificationType.PositionLiquidated;
|
|
4128
|
+
instrumentId: PerpsInstrumentId;
|
|
4129
|
+
side: PerpsSide;
|
|
4130
|
+
sizeClosed: DecimalString;
|
|
4131
|
+
pnl: DecimalString | null;
|
|
4132
|
+
marginType: PerpsMarginType;
|
|
4133
|
+
viaBackstop: boolean;
|
|
4134
|
+
};
|
|
3590
4135
|
}>>, z.ZodPipe<z.ZodObject<{
|
|
3591
4136
|
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
3592
4137
|
sq: z.ZodNumber;
|
|
@@ -6053,4 +6598,4 @@ declare const SportsResultEventSchema: z.ZodPipe<z.ZodPipe<z.ZodObject<{
|
|
|
6053
6598
|
}>>;
|
|
6054
6599
|
type SportsEvent = z.infer<typeof SportsResultEventSchema>;
|
|
6055
6600
|
|
|
6056
|
-
export { type CommentCreatedEvent, CommentCreatedEventSchema, type CommentRemovedEvent, CommentRemovedEventSchema, type CommentRemovedPayload, type CommentsEvent, CommentsEventSchema, type CryptoPricesBinanceEvent, CryptoPricesBinanceEventSchema, type CryptoPricesBinanceTopic, type CryptoPricesChainlinkEvent, CryptoPricesChainlinkEventSchema, type CryptoPricesChainlinkTopic, type CryptoPricesChainlinkTwapEvent, CryptoPricesChainlinkTwapEventSchema, type CryptoPricesChainlinkTwapSixtyEvent, CryptoPricesChainlinkTwapSixtyEventSchema, type CryptoPricesChainlinkTwapThirtyEvent, CryptoPricesChainlinkTwapThirtyEventSchema, type CryptoPricesChainlinkTwapTopic, type CryptoPricesChainlinkTwapWindowSeconds, type CryptoPricesEvent, CryptoPricesEventSchema, type CryptoPricesTopic, type CustomMarketEvent, CustomMarketEventSchema, type EquityPriceSnapshotPoint, type EquityPriceSubscribePayload, type EquityPriceUpdatePayload, type EquityPricesEvent, EquityPricesEventSchema, type EquityPricesSubscribeEvent, EquityPricesSubscribeEventSchema, type EquityPricesTopic, type EquityPricesUpdateEvent, EquityPricesUpdateEventSchema, type MarketBestBidAskEvent, MarketBestBidAskEventSchema, type MarketBookEvent, MarketBookEventSchema, type MarketEvent, type MarketEventMessage, MarketEventSchema, type MarketLastTradePriceEvent, MarketLastTradePriceEventSchema, type MarketPriceChangeEvent, MarketPriceChangeEventSchema, type MarketResolvedEvent, MarketResolvedEventSchema, type MarketTickSizeChangeEvent, MarketTickSizeChangeEventSchema, type NewMarketEvent, NewMarketEventSchema, type OrderBookLevel, type PerpsBalanceUpdateEvent, PerpsBalanceUpdateEventSchema, type PerpsBboEvent, PerpsBboEventSchema, type PerpsBookEvent, PerpsBookEventSchema, type PerpsCandleEvent, PerpsCandleEventSchema, type PerpsDepositUpdateEvent, PerpsDepositUpdateEventSchema, type PerpsFillUpdateEvent, PerpsFillUpdateEventSchema, type PerpsFundingUpdateEvent, PerpsFundingUpdateEventSchema, type PerpsMarketDataEvent, PerpsMarketDataEventSchema, type PerpsOrderUpdateEvent, PerpsOrderUpdateEventSchema, type PerpsPortfolioUpdateEvent, PerpsPortfolioUpdateEventSchema, type PerpsResyncEvent, type PerpsSessionEvent, type PerpsSessionUpdateEvent, PerpsSessionUpdateEventSchema, type PerpsStatisticEvent, PerpsStatisticEventSchema, type PerpsTickerEvent, PerpsTickerEventSchema, type PerpsTpSlUpdateEvent, PerpsTpSlUpdateEventSchema, type PerpsTradeEvent, PerpsTradeEventSchema, type PerpsWithdrawalUpdateEvent, PerpsWithdrawalUpdateEventSchema, type PriceChange, type PriceUpdatePayload, type ReactionCreatedEvent, ReactionCreatedEventSchema, type ReactionRemovedEvent, ReactionRemovedEventSchema, type RealtimeEvent, RealtimeEventSchema, type SportsEvent, SportsResultEventSchema, type StandardMarketEvent, StandardMarketEventSchema, type TradeMakerOrder, TradeStatus, type UserEvent, UserEventSchema, type UserOrderEvent, UserOrderEventSchema, UserOrderEventType, UserOrderStatus, type UserTradeEvent, UserTradeEventSchema };
|
|
6601
|
+
export { type CommentCreatedEvent, CommentCreatedEventSchema, type CommentRemovedEvent, CommentRemovedEventSchema, type CommentRemovedPayload, type CommentsEvent, CommentsEventSchema, type CryptoPricesBinanceEvent, CryptoPricesBinanceEventSchema, type CryptoPricesBinanceTopic, type CryptoPricesChainlinkEvent, CryptoPricesChainlinkEventSchema, type CryptoPricesChainlinkTopic, type CryptoPricesChainlinkTwapEvent, CryptoPricesChainlinkTwapEventSchema, type CryptoPricesChainlinkTwapSixtyEvent, CryptoPricesChainlinkTwapSixtyEventSchema, type CryptoPricesChainlinkTwapThirtyEvent, CryptoPricesChainlinkTwapThirtyEventSchema, type CryptoPricesChainlinkTwapTopic, type CryptoPricesChainlinkTwapWindowSeconds, type CryptoPricesEvent, CryptoPricesEventSchema, type CryptoPricesTopic, type CustomMarketEvent, CustomMarketEventSchema, type EquityPriceSnapshotPoint, type EquityPriceSubscribePayload, type EquityPriceUpdatePayload, type EquityPricesEvent, EquityPricesEventSchema, type EquityPricesSubscribeEvent, EquityPricesSubscribeEventSchema, type EquityPricesTopic, type EquityPricesUpdateEvent, EquityPricesUpdateEventSchema, type MarketBestBidAskEvent, MarketBestBidAskEventSchema, type MarketBookEvent, MarketBookEventSchema, type MarketEvent, type MarketEventMessage, MarketEventSchema, type MarketLastTradePriceEvent, MarketLastTradePriceEventSchema, type MarketPriceChangeEvent, MarketPriceChangeEventSchema, type MarketResolvedEvent, MarketResolvedEventSchema, type MarketTickSizeChangeEvent, MarketTickSizeChangeEventSchema, type NewMarketEvent, NewMarketEventSchema, type OrderBookLevel, type PerpsBalanceUpdateEvent, PerpsBalanceUpdateEventSchema, type PerpsBboEvent, PerpsBboEventSchema, type PerpsBookEvent, PerpsBookEventSchema, type PerpsCandleEvent, PerpsCandleEventSchema, type PerpsDepositUpdateEvent, PerpsDepositUpdateEventSchema, type PerpsFillUpdateEvent, PerpsFillUpdateEventSchema, type PerpsFundingUpdateEvent, PerpsFundingUpdateEventSchema, type PerpsMarketDataEvent, PerpsMarketDataEventSchema, type PerpsNotificationUpdateEvent, PerpsNotificationUpdateEventSchema, PerpsNotificationsResyncFrameSchema, type PerpsOrderUpdateEvent, PerpsOrderUpdateEventSchema, type PerpsPortfolioUpdateEvent, PerpsPortfolioUpdateEventSchema, type PerpsResyncEvent, type PerpsSessionEvent, type PerpsSessionUpdateEvent, PerpsSessionUpdateEventSchema, type PerpsStatisticEvent, PerpsStatisticEventSchema, type PerpsTickerEvent, PerpsTickerEventSchema, type PerpsTpSlUpdateEvent, PerpsTpSlUpdateEventSchema, type PerpsTradeEvent, PerpsTradeEventSchema, type PerpsWithdrawalUpdateEvent, PerpsWithdrawalUpdateEventSchema, type PriceChange, type PriceUpdatePayload, type ReactionCreatedEvent, ReactionCreatedEventSchema, type ReactionRemovedEvent, ReactionRemovedEventSchema, type RealtimeEvent, RealtimeEventSchema, type SportsEvent, SportsResultEventSchema, type StandardMarketEvent, StandardMarketEventSchema, type TradeMakerOrder, TradeStatus, type UserEvent, UserEventSchema, type UserOrderEvent, UserOrderEventSchema, UserOrderEventType, UserOrderStatus, type UserTradeEvent, UserTradeEventSchema };
|