@polymarket/bindings 0.2.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.
@@ -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, Q as PerpsKlineInterval, b as PerpsDepositStatus, i as PerpsTradeId, T as PerpsOrderId, j as PerpsSide, a2 as PerpsTimeInForce, W as PerpsOrderStatus, a4 as PerpsTpSlKind, a8 as PerpsTpSlScope, c as PerpsWithdrawalId, d as PerpsKnownWithdrawalStatus } from '../orders-ClcuI-yo.js';
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;
@@ -4425,8 +4970,11 @@ declare const PriceUpdatePayloadSchema: z.ZodObject<{
4425
4970
  type PriceUpdatePayload = z.infer<typeof PriceUpdatePayloadSchema>;
4426
4971
  declare const CRYPTO_PRICES_BINANCE_TOPIC: "prices.crypto.binance";
4427
4972
  declare const CRYPTO_PRICES_CHAINLINK_TOPIC: "prices.crypto.chainlink";
4973
+ declare const CRYPTO_PRICES_CHAINLINK_TWAP_TOPIC: "prices.crypto.chainlink.twap";
4428
4974
  type CryptoPricesBinanceTopic = typeof CRYPTO_PRICES_BINANCE_TOPIC;
4429
4975
  type CryptoPricesChainlinkTopic = typeof CRYPTO_PRICES_CHAINLINK_TOPIC;
4976
+ type CryptoPricesChainlinkTwapTopic = typeof CRYPTO_PRICES_CHAINLINK_TWAP_TOPIC;
4977
+ type CryptoPricesChainlinkTwapWindowSeconds = 30 | 60;
4430
4978
  type CryptoPricesTopic = CryptoPricesBinanceTopic | CryptoPricesChainlinkTopic;
4431
4979
  declare const CryptoPricesBinanceEventSchema: z.ZodObject<{
4432
4980
  topic: z.ZodType<"prices.crypto.binance", unknown, z.core.$ZodTypeInternals<"prices.crypto.binance", unknown>>;
@@ -4450,6 +4998,100 @@ declare const CryptoPricesChainlinkEventSchema: z.ZodObject<{
4450
4998
  }, z.core.$strip>;
4451
4999
  }, z.core.$strip>;
4452
5000
  type CryptoPricesChainlinkEvent = z.infer<typeof CryptoPricesChainlinkEventSchema>;
5001
+ declare const CryptoPricesChainlinkTwapThirtyEventSchema: z.ZodObject<{
5002
+ topic: z.ZodPipe<z.ZodLiteral<"crypto_prices_twap_thirty">, z.ZodTransform<"prices.crypto.chainlink.twap", "crypto_prices_twap_thirty">>;
5003
+ type: z.ZodLiteral<"update">;
5004
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
5005
+ payload: z.ZodPipe<z.ZodObject<{
5006
+ symbol: z.ZodString;
5007
+ value: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
5008
+ full_accuracy_value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
5009
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
5010
+ window_s: z.ZodLiteral<30>;
5011
+ }, z.core.$strip>, z.ZodTransform<{
5012
+ symbol: string;
5013
+ timestamp: EpochMilliseconds;
5014
+ value: DecimalString;
5015
+ windowSeconds: 30;
5016
+ }, {
5017
+ symbol: string;
5018
+ value: DecimalString;
5019
+ full_accuracy_value: DecimalString;
5020
+ timestamp: EpochMilliseconds;
5021
+ window_s: 30;
5022
+ }>>;
5023
+ }, z.core.$strip>;
5024
+ type CryptoPricesChainlinkTwapThirtyEvent = z.infer<typeof CryptoPricesChainlinkTwapThirtyEventSchema>;
5025
+ declare const CryptoPricesChainlinkTwapSixtyEventSchema: z.ZodObject<{
5026
+ topic: z.ZodPipe<z.ZodLiteral<"crypto_prices_twap_sixty">, z.ZodTransform<"prices.crypto.chainlink.twap", "crypto_prices_twap_sixty">>;
5027
+ type: z.ZodLiteral<"update">;
5028
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
5029
+ payload: z.ZodPipe<z.ZodObject<{
5030
+ symbol: z.ZodString;
5031
+ value: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
5032
+ full_accuracy_value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
5033
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
5034
+ window_s: z.ZodLiteral<60>;
5035
+ }, z.core.$strip>, z.ZodTransform<{
5036
+ symbol: string;
5037
+ timestamp: EpochMilliseconds;
5038
+ value: DecimalString;
5039
+ windowSeconds: 60;
5040
+ }, {
5041
+ symbol: string;
5042
+ value: DecimalString;
5043
+ full_accuracy_value: DecimalString;
5044
+ timestamp: EpochMilliseconds;
5045
+ window_s: 60;
5046
+ }>>;
5047
+ }, z.core.$strip>;
5048
+ type CryptoPricesChainlinkTwapSixtyEvent = z.infer<typeof CryptoPricesChainlinkTwapSixtyEventSchema>;
5049
+ declare const CryptoPricesChainlinkTwapEventSchema: z.ZodUnion<readonly [z.ZodObject<{
5050
+ topic: z.ZodPipe<z.ZodLiteral<"crypto_prices_twap_thirty">, z.ZodTransform<"prices.crypto.chainlink.twap", "crypto_prices_twap_thirty">>;
5051
+ type: z.ZodLiteral<"update">;
5052
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
5053
+ payload: z.ZodPipe<z.ZodObject<{
5054
+ symbol: z.ZodString;
5055
+ value: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
5056
+ full_accuracy_value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
5057
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
5058
+ window_s: z.ZodLiteral<30>;
5059
+ }, z.core.$strip>, z.ZodTransform<{
5060
+ symbol: string;
5061
+ timestamp: EpochMilliseconds;
5062
+ value: DecimalString;
5063
+ windowSeconds: 30;
5064
+ }, {
5065
+ symbol: string;
5066
+ value: DecimalString;
5067
+ full_accuracy_value: DecimalString;
5068
+ timestamp: EpochMilliseconds;
5069
+ window_s: 30;
5070
+ }>>;
5071
+ }, z.core.$strip>, z.ZodObject<{
5072
+ topic: z.ZodPipe<z.ZodLiteral<"crypto_prices_twap_sixty">, z.ZodTransform<"prices.crypto.chainlink.twap", "crypto_prices_twap_sixty">>;
5073
+ type: z.ZodLiteral<"update">;
5074
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
5075
+ payload: z.ZodPipe<z.ZodObject<{
5076
+ symbol: z.ZodString;
5077
+ value: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
5078
+ full_accuracy_value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
5079
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
5080
+ window_s: z.ZodLiteral<60>;
5081
+ }, z.core.$strip>, z.ZodTransform<{
5082
+ symbol: string;
5083
+ timestamp: EpochMilliseconds;
5084
+ value: DecimalString;
5085
+ windowSeconds: 60;
5086
+ }, {
5087
+ symbol: string;
5088
+ value: DecimalString;
5089
+ full_accuracy_value: DecimalString;
5090
+ timestamp: EpochMilliseconds;
5091
+ window_s: 60;
5092
+ }>>;
5093
+ }, z.core.$strip>]>;
5094
+ type CryptoPricesChainlinkTwapEvent = z.infer<typeof CryptoPricesChainlinkTwapEventSchema>;
4453
5095
  declare const CryptoPricesEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4454
5096
  topic: z.ZodType<"prices.crypto.binance", unknown, z.core.$ZodTypeInternals<"prices.crypto.binance", unknown>>;
4455
5097
  type: z.ZodLiteral<"update">;
@@ -4468,6 +5110,50 @@ declare const CryptoPricesEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4468
5110
  timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
4469
5111
  value: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
4470
5112
  }, z.core.$strip>;
5113
+ }, z.core.$strip>, z.ZodObject<{
5114
+ topic: z.ZodPipe<z.ZodLiteral<"crypto_prices_twap_thirty">, z.ZodTransform<"prices.crypto.chainlink.twap", "crypto_prices_twap_thirty">>;
5115
+ type: z.ZodLiteral<"update">;
5116
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
5117
+ payload: z.ZodPipe<z.ZodObject<{
5118
+ symbol: z.ZodString;
5119
+ value: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
5120
+ full_accuracy_value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
5121
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
5122
+ window_s: z.ZodLiteral<30>;
5123
+ }, z.core.$strip>, z.ZodTransform<{
5124
+ symbol: string;
5125
+ timestamp: EpochMilliseconds;
5126
+ value: DecimalString;
5127
+ windowSeconds: 30;
5128
+ }, {
5129
+ symbol: string;
5130
+ value: DecimalString;
5131
+ full_accuracy_value: DecimalString;
5132
+ timestamp: EpochMilliseconds;
5133
+ window_s: 30;
5134
+ }>>;
5135
+ }, z.core.$strip>, z.ZodObject<{
5136
+ topic: z.ZodPipe<z.ZodLiteral<"crypto_prices_twap_sixty">, z.ZodTransform<"prices.crypto.chainlink.twap", "crypto_prices_twap_sixty">>;
5137
+ type: z.ZodLiteral<"update">;
5138
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
5139
+ payload: z.ZodPipe<z.ZodObject<{
5140
+ symbol: z.ZodString;
5141
+ value: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
5142
+ full_accuracy_value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
5143
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
5144
+ window_s: z.ZodLiteral<60>;
5145
+ }, z.core.$strip>, z.ZodTransform<{
5146
+ symbol: string;
5147
+ timestamp: EpochMilliseconds;
5148
+ value: DecimalString;
5149
+ windowSeconds: 60;
5150
+ }, {
5151
+ symbol: string;
5152
+ value: DecimalString;
5153
+ full_accuracy_value: DecimalString;
5154
+ timestamp: EpochMilliseconds;
5155
+ window_s: 60;
5156
+ }>>;
4471
5157
  }, z.core.$strip>], "topic">;
4472
5158
  type CryptoPricesEvent = z.infer<typeof CryptoPricesEventSchema>;
4473
5159
  declare const EquityPriceUpdatePayloadSchema: z.ZodPipe<z.ZodObject<{
@@ -5745,6 +6431,50 @@ declare const RealtimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUn
5745
6431
  timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
5746
6432
  value: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
5747
6433
  }, z.core.$strip>;
6434
+ }, z.core.$strip>, z.ZodObject<{
6435
+ topic: z.ZodPipe<z.ZodLiteral<"crypto_prices_twap_thirty">, z.ZodTransform<"prices.crypto.chainlink.twap", "crypto_prices_twap_thirty">>;
6436
+ type: z.ZodLiteral<"update">;
6437
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
6438
+ payload: z.ZodPipe<z.ZodObject<{
6439
+ symbol: z.ZodString;
6440
+ value: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
6441
+ full_accuracy_value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
6442
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
6443
+ window_s: z.ZodLiteral<30>;
6444
+ }, z.core.$strip>, z.ZodTransform<{
6445
+ symbol: string;
6446
+ timestamp: EpochMilliseconds;
6447
+ value: DecimalString;
6448
+ windowSeconds: 30;
6449
+ }, {
6450
+ symbol: string;
6451
+ value: DecimalString;
6452
+ full_accuracy_value: DecimalString;
6453
+ timestamp: EpochMilliseconds;
6454
+ window_s: 30;
6455
+ }>>;
6456
+ }, z.core.$strip>, z.ZodObject<{
6457
+ topic: z.ZodPipe<z.ZodLiteral<"crypto_prices_twap_sixty">, z.ZodTransform<"prices.crypto.chainlink.twap", "crypto_prices_twap_sixty">>;
6458
+ type: z.ZodLiteral<"update">;
6459
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
6460
+ payload: z.ZodPipe<z.ZodObject<{
6461
+ symbol: z.ZodString;
6462
+ value: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
6463
+ full_accuracy_value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
6464
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
6465
+ window_s: z.ZodLiteral<60>;
6466
+ }, z.core.$strip>, z.ZodTransform<{
6467
+ symbol: string;
6468
+ timestamp: EpochMilliseconds;
6469
+ value: DecimalString;
6470
+ windowSeconds: 60;
6471
+ }, {
6472
+ symbol: string;
6473
+ value: DecimalString;
6474
+ full_accuracy_value: DecimalString;
6475
+ timestamp: EpochMilliseconds;
6476
+ window_s: 60;
6477
+ }>>;
5748
6478
  }, z.core.$strip>], "topic">, z.ZodDiscriminatedUnion<[z.ZodObject<{
5749
6479
  topic: z.ZodType<"prices.equity.pyth", unknown, z.core.$ZodTypeInternals<"prices.equity.pyth", unknown>>;
5750
6480
  type: z.ZodLiteral<"update">;
@@ -5868,4 +6598,4 @@ declare const SportsResultEventSchema: z.ZodPipe<z.ZodPipe<z.ZodObject<{
5868
6598
  }>>;
5869
6599
  type SportsEvent = z.infer<typeof SportsResultEventSchema>;
5870
6600
 
5871
- export { type CommentCreatedEvent, CommentCreatedEventSchema, type CommentRemovedEvent, CommentRemovedEventSchema, type CommentRemovedPayload, type CommentsEvent, CommentsEventSchema, type CryptoPricesBinanceEvent, CryptoPricesBinanceEventSchema, type CryptoPricesBinanceTopic, type CryptoPricesChainlinkEvent, CryptoPricesChainlinkEventSchema, type CryptoPricesChainlinkTopic, 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 };