@polymarket/bindings 0.1.0-beta.6 → 0.1.0-beta.7

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.
@@ -0,0 +1,1958 @@
1
+ import * as _polymarket_types from '@polymarket/types';
2
+ import { P as PerpsInstrumentId, a as PerpsDepositStatus, b as PerpsWithdrawalId, c as PerpsWithdrawalStatus, d as PerpsInternalTransferId, e as PerpsInternalTransferDirection, f as PerpsInstrumentType, g as PerpsInstrumentCategory, h as PerpsTradeId, i as PerpsSide, j as PerpsOrderId, k as PerpsTimeInForce, l as PerpsClientOrderId } from '../common-DVmtlYtD.js';
3
+ export { m as PerpsAssetSchema, n as PerpsClientOrderIdSchema, o as PerpsCredentials, p as PerpsDataResponseSchema, q as PerpsDecimal, r as PerpsDecimalInput, s as PerpsDecimalInputSchema, t as PerpsDepositAmount, u as PerpsDepositStatusSchema, v as PerpsInstrumentCategorySchema, w as PerpsInstrumentIdSchema, x as PerpsInstrumentTypeSchema, y as PerpsInternalTransferDirectionSchema, z as PerpsInternalTransferIdSchema, A as PerpsKlineInterval, B as PerpsKlineIntervalSchema, C as PerpsOrderIdSchema, D as PerpsPnlInterval, E as PerpsPnlIntervalSchema, F as PerpsSideSchema, G as PerpsTimeInForceSchema, H as PerpsTradeIdSchema, I as PerpsTxHash, J as PerpsWithdrawalAmount, K as PerpsWithdrawalIdSchema, L as PerpsWithdrawalStatusSchema, R as RawPerpsTxHashSchema, M as decimalString, N as perpsBaseUnits, O as perpsDecimal } from '../common-DVmtlYtD.js';
4
+ import { DecimalString, EpochMilliseconds, BaseUnits } from '../index.js';
5
+ import { z } from 'zod';
6
+
7
+ declare const PerpsBalanceSchema: z.ZodObject<{
8
+ asset: z.ZodString;
9
+ balance: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
10
+ value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
11
+ }, z.core.$strip>;
12
+ type PerpsBalance = z.infer<typeof PerpsBalanceSchema>;
13
+ declare const FetchPerpsBalancesResponseSchema: z.ZodArray<z.ZodObject<{
14
+ asset: z.ZodString;
15
+ balance: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
16
+ value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
17
+ }, z.core.$strip>>;
18
+ declare const PerpsPortfolioPositionSchema: z.ZodObject<{
19
+ instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
20
+ symbol: z.ZodString;
21
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
22
+ entryPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
23
+ leverage: z.ZodNumber;
24
+ cross: z.ZodBoolean;
25
+ initialMargin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
26
+ maintenanceMargin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
27
+ positionValue: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
28
+ liquidationPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
29
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
30
+ returnOnEquity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
31
+ cumulativeFunding: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
32
+ }, z.core.$strip>;
33
+ type PerpsPortfolioPosition = z.infer<typeof PerpsPortfolioPositionSchema>;
34
+ declare const RawPerpsPortfolioPositionSchema: z.ZodPipe<z.ZodObject<{
35
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
36
+ symbol: z.ZodString;
37
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
38
+ entry_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
39
+ leverage: z.ZodNumber;
40
+ cross: z.ZodBoolean;
41
+ initial_margin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
42
+ maintenance_margin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
43
+ position_value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
44
+ liquidation_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
45
+ unrealized_pnl: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
46
+ return_on_equity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
47
+ cumulative_funding: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
48
+ }, z.core.$strip>, z.ZodTransform<{
49
+ instrumentId: PerpsInstrumentId;
50
+ symbol: string;
51
+ size: DecimalString;
52
+ entryPrice: DecimalString;
53
+ leverage: number;
54
+ cross: boolean;
55
+ initialMargin: DecimalString;
56
+ maintenanceMargin: DecimalString;
57
+ positionValue: DecimalString;
58
+ liquidationPrice: DecimalString;
59
+ unrealizedPnl: DecimalString;
60
+ returnOnEquity: DecimalString;
61
+ cumulativeFunding: DecimalString;
62
+ }, {
63
+ instrument_id: PerpsInstrumentId;
64
+ symbol: string;
65
+ size: DecimalString;
66
+ entry_price: DecimalString;
67
+ leverage: number;
68
+ cross: boolean;
69
+ initial_margin: DecimalString;
70
+ maintenance_margin: DecimalString;
71
+ position_value: DecimalString;
72
+ liquidation_price: DecimalString;
73
+ unrealized_pnl: DecimalString;
74
+ return_on_equity: DecimalString;
75
+ cumulative_funding: DecimalString;
76
+ }>>;
77
+ declare const PerpsMarginSummarySchema: z.ZodObject<{
78
+ totalAccountValue: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
79
+ totalInitialMargin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
80
+ totalMaintenanceMargin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
81
+ totalPositionValue: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
82
+ }, z.core.$strip>;
83
+ type PerpsMarginSummary = z.infer<typeof PerpsMarginSummarySchema>;
84
+ declare const PerpsPortfolioSchema: z.ZodObject<{
85
+ positions: z.ZodArray<z.ZodObject<{
86
+ instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
87
+ symbol: z.ZodString;
88
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
89
+ entryPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
90
+ leverage: z.ZodNumber;
91
+ cross: z.ZodBoolean;
92
+ initialMargin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
93
+ maintenanceMargin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
94
+ positionValue: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
95
+ liquidationPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
96
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
97
+ returnOnEquity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
98
+ cumulativeFunding: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
99
+ }, z.core.$strip>>;
100
+ margin: z.ZodObject<{
101
+ totalAccountValue: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
102
+ totalInitialMargin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
103
+ totalMaintenanceMargin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
104
+ totalPositionValue: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
105
+ }, z.core.$strip>;
106
+ withdrawable: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
107
+ inLiquidation: z.ZodBoolean;
108
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
109
+ }, z.core.$strip>;
110
+ type PerpsPortfolio = z.infer<typeof PerpsPortfolioSchema>;
111
+ declare const RawPerpsPortfolioSchema: z.ZodPipe<z.ZodObject<{
112
+ positions: z.ZodArray<z.ZodPipe<z.ZodObject<{
113
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
114
+ symbol: z.ZodString;
115
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
116
+ entry_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
117
+ leverage: z.ZodNumber;
118
+ cross: z.ZodBoolean;
119
+ initial_margin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
120
+ maintenance_margin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
121
+ position_value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
122
+ liquidation_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
123
+ unrealized_pnl: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
124
+ return_on_equity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
125
+ cumulative_funding: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
126
+ }, z.core.$strip>, z.ZodTransform<{
127
+ instrumentId: PerpsInstrumentId;
128
+ symbol: string;
129
+ size: DecimalString;
130
+ entryPrice: DecimalString;
131
+ leverage: number;
132
+ cross: boolean;
133
+ initialMargin: DecimalString;
134
+ maintenanceMargin: DecimalString;
135
+ positionValue: DecimalString;
136
+ liquidationPrice: DecimalString;
137
+ unrealizedPnl: DecimalString;
138
+ returnOnEquity: DecimalString;
139
+ cumulativeFunding: DecimalString;
140
+ }, {
141
+ instrument_id: PerpsInstrumentId;
142
+ symbol: string;
143
+ size: DecimalString;
144
+ entry_price: DecimalString;
145
+ leverage: number;
146
+ cross: boolean;
147
+ initial_margin: DecimalString;
148
+ maintenance_margin: DecimalString;
149
+ position_value: DecimalString;
150
+ liquidation_price: DecimalString;
151
+ unrealized_pnl: DecimalString;
152
+ return_on_equity: DecimalString;
153
+ cumulative_funding: DecimalString;
154
+ }>>>;
155
+ margin: z.ZodPipe<z.ZodObject<{
156
+ total_account_value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
157
+ total_initial_margin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
158
+ total_maintenance_margin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
159
+ total_position_value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
160
+ }, z.core.$strip>, z.ZodTransform<{
161
+ totalAccountValue: DecimalString;
162
+ totalInitialMargin: DecimalString;
163
+ totalMaintenanceMargin: DecimalString;
164
+ totalPositionValue: DecimalString;
165
+ }, {
166
+ total_account_value: DecimalString;
167
+ total_initial_margin: DecimalString;
168
+ total_maintenance_margin: DecimalString;
169
+ total_position_value: DecimalString;
170
+ }>>;
171
+ withdrawable: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
172
+ in_liquidation: z.ZodBoolean;
173
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
174
+ }, z.core.$strip>, z.ZodTransform<{
175
+ positions: {
176
+ instrumentId: PerpsInstrumentId;
177
+ symbol: string;
178
+ size: DecimalString;
179
+ entryPrice: DecimalString;
180
+ leverage: number;
181
+ cross: boolean;
182
+ initialMargin: DecimalString;
183
+ maintenanceMargin: DecimalString;
184
+ positionValue: DecimalString;
185
+ liquidationPrice: DecimalString;
186
+ unrealizedPnl: DecimalString;
187
+ returnOnEquity: DecimalString;
188
+ cumulativeFunding: DecimalString;
189
+ }[];
190
+ margin: {
191
+ totalAccountValue: DecimalString;
192
+ totalInitialMargin: DecimalString;
193
+ totalMaintenanceMargin: DecimalString;
194
+ totalPositionValue: DecimalString;
195
+ };
196
+ withdrawable: DecimalString;
197
+ inLiquidation: boolean;
198
+ timestamp: EpochMilliseconds;
199
+ }, {
200
+ positions: {
201
+ instrumentId: PerpsInstrumentId;
202
+ symbol: string;
203
+ size: DecimalString;
204
+ entryPrice: DecimalString;
205
+ leverage: number;
206
+ cross: boolean;
207
+ initialMargin: DecimalString;
208
+ maintenanceMargin: DecimalString;
209
+ positionValue: DecimalString;
210
+ liquidationPrice: DecimalString;
211
+ unrealizedPnl: DecimalString;
212
+ returnOnEquity: DecimalString;
213
+ cumulativeFunding: DecimalString;
214
+ }[];
215
+ margin: {
216
+ totalAccountValue: DecimalString;
217
+ totalInitialMargin: DecimalString;
218
+ totalMaintenanceMargin: DecimalString;
219
+ totalPositionValue: DecimalString;
220
+ };
221
+ withdrawable: DecimalString;
222
+ in_liquidation: boolean;
223
+ timestamp: EpochMilliseconds;
224
+ }>>;
225
+ declare const FetchPerpsPortfolioResponseSchema: z.ZodPipe<z.ZodObject<{
226
+ positions: z.ZodArray<z.ZodPipe<z.ZodObject<{
227
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
228
+ symbol: z.ZodString;
229
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
230
+ entry_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
231
+ leverage: z.ZodNumber;
232
+ cross: z.ZodBoolean;
233
+ initial_margin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
234
+ maintenance_margin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
235
+ position_value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
236
+ liquidation_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
237
+ unrealized_pnl: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
238
+ return_on_equity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
239
+ cumulative_funding: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
240
+ }, z.core.$strip>, z.ZodTransform<{
241
+ instrumentId: PerpsInstrumentId;
242
+ symbol: string;
243
+ size: DecimalString;
244
+ entryPrice: DecimalString;
245
+ leverage: number;
246
+ cross: boolean;
247
+ initialMargin: DecimalString;
248
+ maintenanceMargin: DecimalString;
249
+ positionValue: DecimalString;
250
+ liquidationPrice: DecimalString;
251
+ unrealizedPnl: DecimalString;
252
+ returnOnEquity: DecimalString;
253
+ cumulativeFunding: DecimalString;
254
+ }, {
255
+ instrument_id: PerpsInstrumentId;
256
+ symbol: string;
257
+ size: DecimalString;
258
+ entry_price: DecimalString;
259
+ leverage: number;
260
+ cross: boolean;
261
+ initial_margin: DecimalString;
262
+ maintenance_margin: DecimalString;
263
+ position_value: DecimalString;
264
+ liquidation_price: DecimalString;
265
+ unrealized_pnl: DecimalString;
266
+ return_on_equity: DecimalString;
267
+ cumulative_funding: DecimalString;
268
+ }>>>;
269
+ margin: z.ZodPipe<z.ZodObject<{
270
+ total_account_value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
271
+ total_initial_margin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
272
+ total_maintenance_margin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
273
+ total_position_value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
274
+ }, z.core.$strip>, z.ZodTransform<{
275
+ totalAccountValue: DecimalString;
276
+ totalInitialMargin: DecimalString;
277
+ totalMaintenanceMargin: DecimalString;
278
+ totalPositionValue: DecimalString;
279
+ }, {
280
+ total_account_value: DecimalString;
281
+ total_initial_margin: DecimalString;
282
+ total_maintenance_margin: DecimalString;
283
+ total_position_value: DecimalString;
284
+ }>>;
285
+ withdrawable: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
286
+ in_liquidation: z.ZodBoolean;
287
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
288
+ }, z.core.$strip>, z.ZodTransform<{
289
+ positions: {
290
+ instrumentId: PerpsInstrumentId;
291
+ symbol: string;
292
+ size: DecimalString;
293
+ entryPrice: DecimalString;
294
+ leverage: number;
295
+ cross: boolean;
296
+ initialMargin: DecimalString;
297
+ maintenanceMargin: DecimalString;
298
+ positionValue: DecimalString;
299
+ liquidationPrice: DecimalString;
300
+ unrealizedPnl: DecimalString;
301
+ returnOnEquity: DecimalString;
302
+ cumulativeFunding: DecimalString;
303
+ }[];
304
+ margin: {
305
+ totalAccountValue: DecimalString;
306
+ totalInitialMargin: DecimalString;
307
+ totalMaintenanceMargin: DecimalString;
308
+ totalPositionValue: DecimalString;
309
+ };
310
+ withdrawable: DecimalString;
311
+ inLiquidation: boolean;
312
+ timestamp: EpochMilliseconds;
313
+ }, {
314
+ positions: {
315
+ instrumentId: PerpsInstrumentId;
316
+ symbol: string;
317
+ size: DecimalString;
318
+ entryPrice: DecimalString;
319
+ leverage: number;
320
+ cross: boolean;
321
+ initialMargin: DecimalString;
322
+ maintenanceMargin: DecimalString;
323
+ positionValue: DecimalString;
324
+ liquidationPrice: DecimalString;
325
+ unrealizedPnl: DecimalString;
326
+ returnOnEquity: DecimalString;
327
+ cumulativeFunding: DecimalString;
328
+ }[];
329
+ margin: {
330
+ totalAccountValue: DecimalString;
331
+ totalInitialMargin: DecimalString;
332
+ totalMaintenanceMargin: DecimalString;
333
+ totalPositionValue: DecimalString;
334
+ };
335
+ withdrawable: DecimalString;
336
+ in_liquidation: boolean;
337
+ timestamp: EpochMilliseconds;
338
+ }>>;
339
+ declare const PerpsAccountFundingPaymentSchema: z.ZodObject<{
340
+ instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
341
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
342
+ fundingRate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
343
+ fundingAsset: z.ZodString;
344
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
345
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
346
+ }, z.core.$strip>;
347
+ type PerpsAccountFundingPayment = z.infer<typeof PerpsAccountFundingPaymentSchema>;
348
+ declare const RawPerpsAccountFundingPaymentSchema: z.ZodPipe<z.ZodObject<{
349
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
350
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
351
+ funding_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
352
+ funding_asset: z.ZodString;
353
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
354
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
355
+ }, z.core.$strip>, z.ZodTransform<{
356
+ instrumentId: PerpsInstrumentId;
357
+ size: DecimalString;
358
+ fundingRate: DecimalString;
359
+ fundingAsset: string;
360
+ funding: DecimalString;
361
+ timestamp: EpochMilliseconds;
362
+ }, {
363
+ instrument_id: PerpsInstrumentId;
364
+ size: DecimalString;
365
+ funding_rate: DecimalString;
366
+ funding_asset: string;
367
+ funding: DecimalString;
368
+ timestamp: EpochMilliseconds;
369
+ }>>;
370
+ declare const ListPerpsFundingPaymentsResponseSchema: z.ZodObject<{
371
+ data: z.ZodArray<z.ZodPipe<z.ZodObject<{
372
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
373
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
374
+ funding_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
375
+ funding_asset: z.ZodString;
376
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
377
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
378
+ }, z.core.$strip>, z.ZodTransform<{
379
+ instrumentId: PerpsInstrumentId;
380
+ size: DecimalString;
381
+ fundingRate: DecimalString;
382
+ fundingAsset: string;
383
+ funding: DecimalString;
384
+ timestamp: EpochMilliseconds;
385
+ }, {
386
+ instrument_id: PerpsInstrumentId;
387
+ size: DecimalString;
388
+ funding_rate: DecimalString;
389
+ funding_asset: string;
390
+ funding: DecimalString;
391
+ timestamp: EpochMilliseconds;
392
+ }>>>;
393
+ more: z.ZodBoolean;
394
+ }, z.core.$strip>;
395
+ declare const RawPerpsAccountFundingPaymentEntrySchema: z.ZodPipe<z.ZodObject<{
396
+ iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
397
+ sz: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
398
+ fr: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
399
+ fund: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
400
+ fua: z.ZodString;
401
+ ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
402
+ }, z.core.$strip>, z.ZodTransform<{
403
+ instrumentId: PerpsInstrumentId;
404
+ size: DecimalString;
405
+ fundingRate: DecimalString;
406
+ fundingAsset: string;
407
+ funding: DecimalString;
408
+ timestamp: EpochMilliseconds;
409
+ }, {
410
+ iid: PerpsInstrumentId;
411
+ sz: DecimalString;
412
+ fr: DecimalString;
413
+ fund: DecimalString;
414
+ fua: string;
415
+ ts: EpochMilliseconds;
416
+ }>>;
417
+ declare const PerpsAccountConfigSchema: z.ZodObject<{
418
+ instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
419
+ leverage: z.ZodNumber;
420
+ cross: z.ZodBoolean;
421
+ }, z.core.$strip>;
422
+ type PerpsAccountConfig = z.infer<typeof PerpsAccountConfigSchema>;
423
+ declare const RawPerpsAccountConfigSchema: z.ZodPipe<z.ZodObject<{
424
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
425
+ leverage: z.ZodNumber;
426
+ cross: z.ZodBoolean;
427
+ }, z.core.$strip>, z.ZodTransform<{
428
+ instrumentId: PerpsInstrumentId;
429
+ leverage: number;
430
+ cross: boolean;
431
+ }, {
432
+ instrument_id: PerpsInstrumentId;
433
+ leverage: number;
434
+ cross: boolean;
435
+ }>>;
436
+ declare const FetchPerpsAccountConfigResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
437
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
438
+ leverage: z.ZodNumber;
439
+ cross: z.ZodBoolean;
440
+ }, z.core.$strip>, z.ZodTransform<{
441
+ instrumentId: PerpsInstrumentId;
442
+ leverage: number;
443
+ cross: boolean;
444
+ }, {
445
+ instrument_id: PerpsInstrumentId;
446
+ leverage: number;
447
+ cross: boolean;
448
+ }>>>;
449
+ declare const PerpsEquityPointSchema: z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>], null>, z.ZodTransform<{
450
+ timestamp: EpochMilliseconds;
451
+ equity: DecimalString;
452
+ }, [EpochMilliseconds, DecimalString]>>;
453
+ type PerpsEquityPoint = z.infer<typeof PerpsEquityPointSchema>;
454
+ declare const ListPerpsEquityHistoryResponseSchema: z.ZodObject<{
455
+ data: z.ZodArray<z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>], null>, z.ZodTransform<{
456
+ timestamp: EpochMilliseconds;
457
+ equity: DecimalString;
458
+ }, [EpochMilliseconds, DecimalString]>>>;
459
+ more: z.ZodBoolean;
460
+ }, z.core.$strip>;
461
+ declare const PerpsPnlPointSchema: z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>], null>, z.ZodTransform<{
462
+ timestamp: EpochMilliseconds;
463
+ pnl: DecimalString;
464
+ }, [EpochMilliseconds, DecimalString]>>;
465
+ type PerpsPnlPoint = z.infer<typeof PerpsPnlPointSchema>;
466
+ declare const ListPerpsPnlHistoryResponseSchema: z.ZodObject<{
467
+ data: z.ZodArray<z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>], null>, z.ZodTransform<{
468
+ timestamp: EpochMilliseconds;
469
+ pnl: DecimalString;
470
+ }, [EpochMilliseconds, DecimalString]>>>;
471
+ more: z.ZodBoolean;
472
+ }, z.core.$strip>;
473
+ declare const PerpsProxyKeySchema: z.ZodObject<{
474
+ proxy: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
475
+ label: z.ZodOptional<z.ZodString>;
476
+ expiresAt: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
477
+ }, z.core.$strip>;
478
+ type PerpsProxyKey = z.infer<typeof PerpsProxyKeySchema>;
479
+ declare const RawPerpsProxyKeySchema: z.ZodPipe<z.ZodObject<{
480
+ proxy: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
481
+ label: z.ZodOptional<z.ZodString>;
482
+ expiry: z.ZodPipe<z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
483
+ }, z.core.$strip>, z.ZodTransform<{
484
+ proxy: _polymarket_types.EvmAddress;
485
+ label: string | undefined;
486
+ expiresAt: EpochMilliseconds;
487
+ }, {
488
+ proxy: _polymarket_types.EvmAddress;
489
+ expiry: EpochMilliseconds;
490
+ label?: string | undefined;
491
+ }>>;
492
+ declare const RawPerpsCredentialsResponseSchema: z.ZodPipe<z.ZodObject<{
493
+ address: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
494
+ keys: z.ZodArray<z.ZodPipe<z.ZodObject<{
495
+ proxy: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
496
+ label: z.ZodOptional<z.ZodString>;
497
+ expiry: z.ZodPipe<z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
498
+ }, z.core.$strip>, z.ZodTransform<{
499
+ proxy: _polymarket_types.EvmAddress;
500
+ label: string | undefined;
501
+ expiresAt: EpochMilliseconds;
502
+ }, {
503
+ proxy: _polymarket_types.EvmAddress;
504
+ expiry: EpochMilliseconds;
505
+ label?: string | undefined;
506
+ }>>>;
507
+ }, z.core.$strip>, z.ZodTransform<{
508
+ address: _polymarket_types.EvmAddress;
509
+ keys: {
510
+ proxy: _polymarket_types.EvmAddress;
511
+ label: string | undefined;
512
+ expiresAt: EpochMilliseconds;
513
+ }[];
514
+ }, {
515
+ address: _polymarket_types.EvmAddress;
516
+ keys: {
517
+ proxy: _polymarket_types.EvmAddress;
518
+ label: string | undefined;
519
+ expiresAt: EpochMilliseconds;
520
+ }[];
521
+ }>>;
522
+ declare const RawPerpsCreateProxyResponseSchema: z.ZodObject<{
523
+ secret: z.ZodString;
524
+ }, z.core.$strip>;
525
+ declare const RawPerpsDeleteProxyResponseSchema: z.ZodObject<{
526
+ status: z.ZodEnum<{
527
+ ok: "ok";
528
+ err: "err";
529
+ }>;
530
+ error: z.ZodOptional<z.ZodString>;
531
+ }, z.core.$strip>;
532
+
533
+ declare const PerpsDepositSchema: z.ZodObject<{
534
+ hash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
535
+ asset: z.ZodString;
536
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
537
+ status: z.ZodEnum<typeof PerpsDepositStatus>;
538
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
539
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
540
+ confirmations: z.ZodNumber;
541
+ requiredConfirmations: z.ZodNumber;
542
+ createdTimestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
543
+ confirmedTimestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
544
+ }, z.core.$strip>;
545
+ type PerpsDeposit = z.infer<typeof PerpsDepositSchema>;
546
+ declare const RawPerpsDepositSchema: z.ZodPipe<z.ZodObject<{
547
+ hash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
548
+ asset: z.ZodString;
549
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
550
+ status: z.ZodEnum<typeof PerpsDepositStatus>;
551
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
552
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
553
+ confirmations: z.ZodNumber;
554
+ required_confirmations: z.ZodNumber;
555
+ created_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
556
+ confirmed_timestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
557
+ }, z.core.$strip>, z.ZodTransform<{
558
+ hash: _polymarket_types.TxHash;
559
+ asset: string;
560
+ amount: BaseUnits;
561
+ status: PerpsDepositStatus;
562
+ from: _polymarket_types.EvmAddress;
563
+ to: _polymarket_types.EvmAddress;
564
+ confirmations: number;
565
+ requiredConfirmations: number;
566
+ createdTimestamp: EpochMilliseconds;
567
+ confirmedTimestamp: EpochMilliseconds | undefined;
568
+ }, {
569
+ hash: _polymarket_types.TxHash;
570
+ asset: string;
571
+ amount: BaseUnits;
572
+ status: PerpsDepositStatus;
573
+ from: _polymarket_types.EvmAddress;
574
+ to: _polymarket_types.EvmAddress;
575
+ confirmations: number;
576
+ required_confirmations: number;
577
+ created_timestamp: EpochMilliseconds;
578
+ confirmed_timestamp?: EpochMilliseconds | undefined;
579
+ }>>;
580
+ declare const ListPerpsDepositsResponseSchema: z.ZodObject<{
581
+ data: z.ZodArray<z.ZodPipe<z.ZodObject<{
582
+ hash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
583
+ asset: z.ZodString;
584
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
585
+ status: z.ZodEnum<typeof PerpsDepositStatus>;
586
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
587
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
588
+ confirmations: z.ZodNumber;
589
+ required_confirmations: z.ZodNumber;
590
+ created_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
591
+ confirmed_timestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
592
+ }, z.core.$strip>, z.ZodTransform<{
593
+ hash: _polymarket_types.TxHash;
594
+ asset: string;
595
+ amount: BaseUnits;
596
+ status: PerpsDepositStatus;
597
+ from: _polymarket_types.EvmAddress;
598
+ to: _polymarket_types.EvmAddress;
599
+ confirmations: number;
600
+ requiredConfirmations: number;
601
+ createdTimestamp: EpochMilliseconds;
602
+ confirmedTimestamp: EpochMilliseconds | undefined;
603
+ }, {
604
+ hash: _polymarket_types.TxHash;
605
+ asset: string;
606
+ amount: BaseUnits;
607
+ status: PerpsDepositStatus;
608
+ from: _polymarket_types.EvmAddress;
609
+ to: _polymarket_types.EvmAddress;
610
+ confirmations: number;
611
+ required_confirmations: number;
612
+ created_timestamp: EpochMilliseconds;
613
+ confirmed_timestamp?: EpochMilliseconds | undefined;
614
+ }>>>;
615
+ more: z.ZodBoolean;
616
+ }, z.core.$strip>;
617
+ declare const RawPerpsDepositUpdateSchema: z.ZodPipe<z.ZodObject<{
618
+ hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
619
+ asset: z.ZodString;
620
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
621
+ status: z.ZodEnum<typeof PerpsDepositStatus>;
622
+ }, z.core.$strip>, z.ZodTransform<{
623
+ hash: _polymarket_types.TxHash | undefined;
624
+ asset: string;
625
+ amount: BaseUnits;
626
+ status: PerpsDepositStatus;
627
+ }, {
628
+ asset: string;
629
+ amount: BaseUnits;
630
+ status: PerpsDepositStatus;
631
+ hash?: _polymarket_types.TxHash | undefined;
632
+ }>>;
633
+ declare const PerpsWithdrawalSchema: z.ZodObject<{
634
+ withdrawalId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsWithdrawalId, number>>;
635
+ asset: z.ZodString;
636
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
637
+ fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
638
+ status: z.ZodEnum<typeof PerpsWithdrawalStatus>;
639
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
640
+ hash: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>;
641
+ confirmations: z.ZodNumber;
642
+ requiredConfirmations: z.ZodNumber;
643
+ createdTimestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
644
+ confirmedTimestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
645
+ }, z.core.$strip>;
646
+ type PerpsWithdrawal = z.infer<typeof PerpsWithdrawalSchema>;
647
+ declare const RawPerpsWithdrawalSchema: z.ZodPipe<z.ZodObject<{
648
+ withdraw_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsWithdrawalId, number>>;
649
+ asset: z.ZodString;
650
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
651
+ fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
652
+ status: z.ZodEnum<typeof PerpsWithdrawalStatus>;
653
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
654
+ hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
655
+ confirmations: z.ZodNumber;
656
+ required_confirmations: z.ZodNumber;
657
+ created_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
658
+ confirmed_timestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
659
+ }, z.core.$strip>, z.ZodTransform<{
660
+ withdrawalId: PerpsWithdrawalId;
661
+ asset: string;
662
+ amount: BaseUnits;
663
+ fee: DecimalString;
664
+ status: PerpsWithdrawalStatus;
665
+ to: _polymarket_types.EvmAddress;
666
+ hash: _polymarket_types.TxHash | undefined;
667
+ confirmations: number;
668
+ requiredConfirmations: number;
669
+ createdTimestamp: EpochMilliseconds;
670
+ confirmedTimestamp: EpochMilliseconds | undefined;
671
+ }, {
672
+ withdraw_id: PerpsWithdrawalId;
673
+ asset: string;
674
+ amount: BaseUnits;
675
+ fee: DecimalString;
676
+ status: PerpsWithdrawalStatus;
677
+ to: _polymarket_types.EvmAddress;
678
+ confirmations: number;
679
+ required_confirmations: number;
680
+ created_timestamp: EpochMilliseconds;
681
+ hash?: _polymarket_types.TxHash | undefined;
682
+ confirmed_timestamp?: EpochMilliseconds | undefined;
683
+ }>>;
684
+ declare const ListPerpsWithdrawalsResponseSchema: z.ZodObject<{
685
+ data: z.ZodArray<z.ZodPipe<z.ZodObject<{
686
+ withdraw_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsWithdrawalId, number>>;
687
+ asset: z.ZodString;
688
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
689
+ fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
690
+ status: z.ZodEnum<typeof PerpsWithdrawalStatus>;
691
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
692
+ hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
693
+ confirmations: z.ZodNumber;
694
+ required_confirmations: z.ZodNumber;
695
+ created_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
696
+ confirmed_timestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
697
+ }, z.core.$strip>, z.ZodTransform<{
698
+ withdrawalId: PerpsWithdrawalId;
699
+ asset: string;
700
+ amount: BaseUnits;
701
+ fee: DecimalString;
702
+ status: PerpsWithdrawalStatus;
703
+ to: _polymarket_types.EvmAddress;
704
+ hash: _polymarket_types.TxHash | undefined;
705
+ confirmations: number;
706
+ requiredConfirmations: number;
707
+ createdTimestamp: EpochMilliseconds;
708
+ confirmedTimestamp: EpochMilliseconds | undefined;
709
+ }, {
710
+ withdraw_id: PerpsWithdrawalId;
711
+ asset: string;
712
+ amount: BaseUnits;
713
+ fee: DecimalString;
714
+ status: PerpsWithdrawalStatus;
715
+ to: _polymarket_types.EvmAddress;
716
+ confirmations: number;
717
+ required_confirmations: number;
718
+ created_timestamp: EpochMilliseconds;
719
+ hash?: _polymarket_types.TxHash | undefined;
720
+ confirmed_timestamp?: EpochMilliseconds | undefined;
721
+ }>>>;
722
+ more: z.ZodBoolean;
723
+ }, z.core.$strip>;
724
+ declare const RawPerpsWithdrawResponseSchema: z.ZodPipe<z.ZodObject<{
725
+ status: z.ZodEnum<{
726
+ ok: "ok";
727
+ err: "err";
728
+ }>;
729
+ withdraw_id: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsWithdrawalId, number>>>;
730
+ error: z.ZodOptional<z.ZodString>;
731
+ }, z.core.$strip>, z.ZodTransform<{
732
+ status: "ok" | "err";
733
+ withdrawalId: PerpsWithdrawalId | undefined;
734
+ error: string | undefined;
735
+ }, {
736
+ status: "ok" | "err";
737
+ withdraw_id?: PerpsWithdrawalId | undefined;
738
+ error?: string | undefined;
739
+ }>>;
740
+ declare const RawPerpsWithdrawalUpdateSchema: z.ZodPipe<z.ZodObject<{
741
+ withdraw_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsWithdrawalId, number>>;
742
+ asset: z.ZodString;
743
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
744
+ fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
745
+ status: z.ZodEnum<typeof PerpsWithdrawalStatus>;
746
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
747
+ hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
748
+ }, z.core.$strip>, z.ZodTransform<{
749
+ withdrawalId: PerpsWithdrawalId;
750
+ asset: string;
751
+ amount: BaseUnits;
752
+ fee: DecimalString;
753
+ status: PerpsWithdrawalStatus;
754
+ to: _polymarket_types.EvmAddress;
755
+ hash: _polymarket_types.TxHash | undefined;
756
+ }, {
757
+ withdraw_id: PerpsWithdrawalId;
758
+ asset: string;
759
+ amount: BaseUnits;
760
+ fee: DecimalString;
761
+ status: PerpsWithdrawalStatus;
762
+ to: _polymarket_types.EvmAddress;
763
+ hash?: _polymarket_types.TxHash | undefined;
764
+ }>>;
765
+ declare const PerpsInternalTransferSchema: z.ZodObject<{
766
+ transferId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInternalTransferId, number>>;
767
+ asset: z.ZodString;
768
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
769
+ direction: z.ZodEnum<typeof PerpsInternalTransferDirection>;
770
+ counterparty: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
771
+ label: z.ZodOptional<z.ZodString>;
772
+ createdTimestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
773
+ }, z.core.$strip>;
774
+ type PerpsInternalTransfer = z.infer<typeof PerpsInternalTransferSchema>;
775
+ declare const RawPerpsInternalTransferSchema: z.ZodPipe<z.ZodObject<{
776
+ transfer_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInternalTransferId, number>>;
777
+ asset: z.ZodString;
778
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
779
+ direction: z.ZodEnum<typeof PerpsInternalTransferDirection>;
780
+ counterparty: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
781
+ label: z.ZodOptional<z.ZodString>;
782
+ created_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
783
+ }, z.core.$strip>, z.ZodTransform<{
784
+ transferId: PerpsInternalTransferId;
785
+ asset: string;
786
+ amount: BaseUnits;
787
+ direction: PerpsInternalTransferDirection;
788
+ counterparty: _polymarket_types.EvmAddress;
789
+ label: string | undefined;
790
+ createdTimestamp: EpochMilliseconds;
791
+ }, {
792
+ transfer_id: PerpsInternalTransferId;
793
+ asset: string;
794
+ amount: BaseUnits;
795
+ direction: PerpsInternalTransferDirection;
796
+ counterparty: _polymarket_types.EvmAddress;
797
+ created_timestamp: EpochMilliseconds;
798
+ label?: string | undefined;
799
+ }>>;
800
+
801
+ declare const PerpsRiskTierSchema: z.ZodObject<{
802
+ lowerBound: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
803
+ maxLeverage: z.ZodNumber;
804
+ }, z.core.$strip>;
805
+ type PerpsRiskTier = z.infer<typeof PerpsRiskTierSchema>;
806
+ declare const PerpsInstrumentSchema: z.ZodObject<{
807
+ instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
808
+ instrumentType: z.ZodEnum<typeof PerpsInstrumentType>;
809
+ category: z.ZodEnum<typeof PerpsInstrumentCategory>;
810
+ symbol: z.ZodString;
811
+ baseAsset: z.ZodString;
812
+ quoteAsset: z.ZodString;
813
+ fundingInterval: z.ZodString;
814
+ quantityDecimals: z.ZodNumber;
815
+ priceDecimals: z.ZodNumber;
816
+ priceBounds: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
817
+ liquidationFee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
818
+ maxOrderCount: z.ZodNumber;
819
+ minNotional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
820
+ maxMarketNotional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
821
+ maxLimitNotional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
822
+ maxLeverage: z.ZodNumber;
823
+ riskTiers: z.ZodArray<z.ZodObject<{
824
+ lowerBound: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
825
+ maxLeverage: z.ZodNumber;
826
+ }, z.core.$strip>>;
827
+ }, z.core.$strip>;
828
+ type PerpsInstrument = z.infer<typeof PerpsInstrumentSchema>;
829
+ declare const RawPerpsInstrumentSchema: z.ZodPipe<z.ZodObject<{
830
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
831
+ instrument_type: z.ZodEnum<typeof PerpsInstrumentType>;
832
+ category: z.ZodEnum<typeof PerpsInstrumentCategory>;
833
+ symbol: z.ZodString;
834
+ base_asset: z.ZodString;
835
+ quote_asset: z.ZodString;
836
+ funding_interval: z.ZodString;
837
+ quantity_decimals: z.ZodNumber;
838
+ price_decimals: z.ZodNumber;
839
+ price_bounds: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
840
+ liquidation_fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
841
+ max_order_count: z.ZodNumber;
842
+ min_notional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
843
+ max_market_notional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
844
+ max_limit_notional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
845
+ max_leverage: z.ZodNumber;
846
+ risk_tiers: z.ZodArray<z.ZodPipe<z.ZodObject<{
847
+ lower_bound: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
848
+ max_leverage: z.ZodNumber;
849
+ }, z.core.$strip>, z.ZodTransform<{
850
+ lowerBound: DecimalString;
851
+ maxLeverage: number;
852
+ }, {
853
+ lower_bound: DecimalString;
854
+ max_leverage: number;
855
+ }>>>;
856
+ }, z.core.$strip>, z.ZodTransform<{
857
+ instrumentId: PerpsInstrumentId;
858
+ instrumentType: PerpsInstrumentType;
859
+ category: PerpsInstrumentCategory;
860
+ symbol: string;
861
+ baseAsset: string;
862
+ quoteAsset: string;
863
+ fundingInterval: string;
864
+ quantityDecimals: number;
865
+ priceDecimals: number;
866
+ priceBounds: DecimalString;
867
+ liquidationFee: DecimalString;
868
+ maxOrderCount: number;
869
+ minNotional: DecimalString;
870
+ maxMarketNotional: DecimalString;
871
+ maxLimitNotional: DecimalString;
872
+ maxLeverage: number;
873
+ riskTiers: {
874
+ lowerBound: DecimalString;
875
+ maxLeverage: number;
876
+ }[];
877
+ }, {
878
+ instrument_id: PerpsInstrumentId;
879
+ instrument_type: PerpsInstrumentType.Perpetual;
880
+ category: PerpsInstrumentCategory;
881
+ symbol: string;
882
+ base_asset: string;
883
+ quote_asset: string;
884
+ funding_interval: string;
885
+ quantity_decimals: number;
886
+ price_decimals: number;
887
+ price_bounds: DecimalString;
888
+ liquidation_fee: DecimalString;
889
+ max_order_count: number;
890
+ min_notional: DecimalString;
891
+ max_market_notional: DecimalString;
892
+ max_limit_notional: DecimalString;
893
+ max_leverage: number;
894
+ risk_tiers: {
895
+ lowerBound: DecimalString;
896
+ maxLeverage: number;
897
+ }[];
898
+ }>>;
899
+ declare const FetchPerpsInstrumentsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
900
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
901
+ instrument_type: z.ZodEnum<typeof PerpsInstrumentType>;
902
+ category: z.ZodEnum<typeof PerpsInstrumentCategory>;
903
+ symbol: z.ZodString;
904
+ base_asset: z.ZodString;
905
+ quote_asset: z.ZodString;
906
+ funding_interval: z.ZodString;
907
+ quantity_decimals: z.ZodNumber;
908
+ price_decimals: z.ZodNumber;
909
+ price_bounds: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
910
+ liquidation_fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
911
+ max_order_count: z.ZodNumber;
912
+ min_notional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
913
+ max_market_notional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
914
+ max_limit_notional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
915
+ max_leverage: z.ZodNumber;
916
+ risk_tiers: z.ZodArray<z.ZodPipe<z.ZodObject<{
917
+ lower_bound: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
918
+ max_leverage: z.ZodNumber;
919
+ }, z.core.$strip>, z.ZodTransform<{
920
+ lowerBound: DecimalString;
921
+ maxLeverage: number;
922
+ }, {
923
+ lower_bound: DecimalString;
924
+ max_leverage: number;
925
+ }>>>;
926
+ }, z.core.$strip>, z.ZodTransform<{
927
+ instrumentId: PerpsInstrumentId;
928
+ instrumentType: PerpsInstrumentType;
929
+ category: PerpsInstrumentCategory;
930
+ symbol: string;
931
+ baseAsset: string;
932
+ quoteAsset: string;
933
+ fundingInterval: string;
934
+ quantityDecimals: number;
935
+ priceDecimals: number;
936
+ priceBounds: DecimalString;
937
+ liquidationFee: DecimalString;
938
+ maxOrderCount: number;
939
+ minNotional: DecimalString;
940
+ maxMarketNotional: DecimalString;
941
+ maxLimitNotional: DecimalString;
942
+ maxLeverage: number;
943
+ riskTiers: {
944
+ lowerBound: DecimalString;
945
+ maxLeverage: number;
946
+ }[];
947
+ }, {
948
+ instrument_id: PerpsInstrumentId;
949
+ instrument_type: PerpsInstrumentType.Perpetual;
950
+ category: PerpsInstrumentCategory;
951
+ symbol: string;
952
+ base_asset: string;
953
+ quote_asset: string;
954
+ funding_interval: string;
955
+ quantity_decimals: number;
956
+ price_decimals: number;
957
+ price_bounds: DecimalString;
958
+ liquidation_fee: DecimalString;
959
+ max_order_count: number;
960
+ min_notional: DecimalString;
961
+ max_market_notional: DecimalString;
962
+ max_limit_notional: DecimalString;
963
+ max_leverage: number;
964
+ risk_tiers: {
965
+ lowerBound: DecimalString;
966
+ maxLeverage: number;
967
+ }[];
968
+ }>>>;
969
+ declare const PerpsTickerSchema: z.ZodObject<{
970
+ instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
971
+ symbol: z.ZodString;
972
+ indexPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
973
+ markPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
974
+ lastPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
975
+ midPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
976
+ openInterest: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
977
+ fundingRate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
978
+ nextFunding: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
979
+ volume24h: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
980
+ openPrice: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
981
+ timestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
982
+ }, z.core.$strip>;
983
+ type PerpsTicker = z.infer<typeof PerpsTickerSchema>;
984
+ declare const RawPerpsTickerSchema: z.ZodPipe<z.ZodObject<{
985
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
986
+ symbol: z.ZodString;
987
+ index_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
988
+ mark_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
989
+ last_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
990
+ mid_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
991
+ open_interest: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
992
+ funding_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
993
+ next_funding: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
994
+ timestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
995
+ }, z.core.$strip>, z.ZodTransform<{
996
+ instrumentId: PerpsInstrumentId;
997
+ symbol: string;
998
+ indexPrice: DecimalString;
999
+ markPrice: DecimalString;
1000
+ lastPrice: DecimalString;
1001
+ midPrice: DecimalString;
1002
+ openInterest: DecimalString;
1003
+ fundingRate: DecimalString;
1004
+ nextFunding: EpochMilliseconds;
1005
+ timestamp: EpochMilliseconds | undefined;
1006
+ }, {
1007
+ instrument_id: PerpsInstrumentId;
1008
+ symbol: string;
1009
+ index_price: DecimalString;
1010
+ mark_price: DecimalString;
1011
+ last_price: DecimalString;
1012
+ mid_price: DecimalString;
1013
+ open_interest: DecimalString;
1014
+ funding_rate: DecimalString;
1015
+ next_funding: EpochMilliseconds;
1016
+ timestamp?: EpochMilliseconds | undefined;
1017
+ }>>;
1018
+ declare const FetchPerpsTickersResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
1019
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1020
+ symbol: z.ZodString;
1021
+ index_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1022
+ mark_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1023
+ last_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1024
+ mid_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1025
+ open_interest: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1026
+ funding_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1027
+ next_funding: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1028
+ timestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
1029
+ }, z.core.$strip>, z.ZodTransform<{
1030
+ instrumentId: PerpsInstrumentId;
1031
+ symbol: string;
1032
+ indexPrice: DecimalString;
1033
+ markPrice: DecimalString;
1034
+ lastPrice: DecimalString;
1035
+ midPrice: DecimalString;
1036
+ openInterest: DecimalString;
1037
+ fundingRate: DecimalString;
1038
+ nextFunding: EpochMilliseconds;
1039
+ timestamp: EpochMilliseconds | undefined;
1040
+ }, {
1041
+ instrument_id: PerpsInstrumentId;
1042
+ symbol: string;
1043
+ index_price: DecimalString;
1044
+ mark_price: DecimalString;
1045
+ last_price: DecimalString;
1046
+ mid_price: DecimalString;
1047
+ open_interest: DecimalString;
1048
+ funding_rate: DecimalString;
1049
+ next_funding: EpochMilliseconds;
1050
+ timestamp?: EpochMilliseconds | undefined;
1051
+ }>>>;
1052
+ declare const RawPerpsTickerEntrySchema: z.ZodPipe<z.ZodObject<{
1053
+ iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1054
+ idx: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1055
+ mark: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1056
+ last: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1057
+ mid: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1058
+ oi: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1059
+ fr: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1060
+ nxf: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1061
+ }, z.core.$strip>, z.ZodTransform<{
1062
+ instrumentId: PerpsInstrumentId;
1063
+ indexPrice: DecimalString;
1064
+ markPrice: DecimalString;
1065
+ lastPrice: DecimalString;
1066
+ midPrice: DecimalString;
1067
+ openInterest: DecimalString;
1068
+ fundingRate: DecimalString;
1069
+ nextFunding: EpochMilliseconds;
1070
+ }, {
1071
+ iid: PerpsInstrumentId;
1072
+ idx: DecimalString;
1073
+ mark: DecimalString;
1074
+ last: DecimalString;
1075
+ mid: DecimalString;
1076
+ oi: DecimalString;
1077
+ fr: DecimalString;
1078
+ nxf: EpochMilliseconds;
1079
+ }>>;
1080
+ declare const PerpsCandleSchema: z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodNumber], null>, z.ZodTransform<{
1081
+ timestamp: EpochMilliseconds;
1082
+ open: DecimalString;
1083
+ high: DecimalString;
1084
+ low: DecimalString;
1085
+ close: DecimalString;
1086
+ volume: DecimalString;
1087
+ trades: number;
1088
+ }, [EpochMilliseconds, DecimalString, DecimalString, DecimalString, DecimalString, DecimalString, number]>>;
1089
+ type PerpsCandle = z.infer<typeof PerpsCandleSchema>;
1090
+ declare const PerpsStatisticSchema: z.ZodObject<{
1091
+ instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1092
+ symbol: z.ZodOptional<z.ZodString>;
1093
+ volume: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1094
+ openPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1095
+ klines: z.ZodArray<z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodNumber], null>, z.ZodTransform<{
1096
+ timestamp: EpochMilliseconds;
1097
+ open: DecimalString;
1098
+ high: DecimalString;
1099
+ low: DecimalString;
1100
+ close: DecimalString;
1101
+ volume: DecimalString;
1102
+ trades: number;
1103
+ }, [EpochMilliseconds, DecimalString, DecimalString, DecimalString, DecimalString, DecimalString, number]>>>;
1104
+ }, z.core.$strip>;
1105
+ type PerpsStatistic = z.infer<typeof PerpsStatisticSchema>;
1106
+ declare const RawPerpsStatisticSchema: z.ZodPipe<z.ZodObject<{
1107
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1108
+ symbol: z.ZodOptional<z.ZodString>;
1109
+ volume: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1110
+ open_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1111
+ klines: z.ZodArray<z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodNumber], null>, z.ZodTransform<{
1112
+ timestamp: EpochMilliseconds;
1113
+ open: DecimalString;
1114
+ high: DecimalString;
1115
+ low: DecimalString;
1116
+ close: DecimalString;
1117
+ volume: DecimalString;
1118
+ trades: number;
1119
+ }, [EpochMilliseconds, DecimalString, DecimalString, DecimalString, DecimalString, DecimalString, number]>>>;
1120
+ }, z.core.$strip>, z.ZodTransform<{
1121
+ instrumentId: PerpsInstrumentId;
1122
+ symbol: string | undefined;
1123
+ volume: DecimalString;
1124
+ openPrice: DecimalString;
1125
+ klines: {
1126
+ timestamp: EpochMilliseconds;
1127
+ open: DecimalString;
1128
+ high: DecimalString;
1129
+ low: DecimalString;
1130
+ close: DecimalString;
1131
+ volume: DecimalString;
1132
+ trades: number;
1133
+ }[];
1134
+ }, {
1135
+ instrument_id: PerpsInstrumentId;
1136
+ volume: DecimalString;
1137
+ open_price: DecimalString;
1138
+ klines: {
1139
+ timestamp: EpochMilliseconds;
1140
+ open: DecimalString;
1141
+ high: DecimalString;
1142
+ low: DecimalString;
1143
+ close: DecimalString;
1144
+ volume: DecimalString;
1145
+ trades: number;
1146
+ }[];
1147
+ symbol?: string | undefined;
1148
+ }>>;
1149
+ declare const FetchPerpsStatisticsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
1150
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1151
+ symbol: z.ZodOptional<z.ZodString>;
1152
+ volume: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1153
+ open_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1154
+ klines: z.ZodArray<z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodNumber], null>, z.ZodTransform<{
1155
+ timestamp: EpochMilliseconds;
1156
+ open: DecimalString;
1157
+ high: DecimalString;
1158
+ low: DecimalString;
1159
+ close: DecimalString;
1160
+ volume: DecimalString;
1161
+ trades: number;
1162
+ }, [EpochMilliseconds, DecimalString, DecimalString, DecimalString, DecimalString, DecimalString, number]>>>;
1163
+ }, z.core.$strip>, z.ZodTransform<{
1164
+ instrumentId: PerpsInstrumentId;
1165
+ symbol: string | undefined;
1166
+ volume: DecimalString;
1167
+ openPrice: DecimalString;
1168
+ klines: {
1169
+ timestamp: EpochMilliseconds;
1170
+ open: DecimalString;
1171
+ high: DecimalString;
1172
+ low: DecimalString;
1173
+ close: DecimalString;
1174
+ volume: DecimalString;
1175
+ trades: number;
1176
+ }[];
1177
+ }, {
1178
+ instrument_id: PerpsInstrumentId;
1179
+ volume: DecimalString;
1180
+ open_price: DecimalString;
1181
+ klines: {
1182
+ timestamp: EpochMilliseconds;
1183
+ open: DecimalString;
1184
+ high: DecimalString;
1185
+ low: DecimalString;
1186
+ close: DecimalString;
1187
+ volume: DecimalString;
1188
+ trades: number;
1189
+ }[];
1190
+ symbol?: string | undefined;
1191
+ }>>>;
1192
+ declare const RawPerpsStatisticDataSchema: z.ZodPipe<z.ZodObject<{
1193
+ iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1194
+ vol: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1195
+ open: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1196
+ klines: z.ZodArray<z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodNumber], null>, z.ZodTransform<{
1197
+ timestamp: EpochMilliseconds;
1198
+ open: DecimalString;
1199
+ high: DecimalString;
1200
+ low: DecimalString;
1201
+ close: DecimalString;
1202
+ volume: DecimalString;
1203
+ trades: number;
1204
+ }, [EpochMilliseconds, DecimalString, DecimalString, DecimalString, DecimalString, DecimalString, number]>>>;
1205
+ }, z.core.$strip>, z.ZodTransform<{
1206
+ instrumentId: PerpsInstrumentId;
1207
+ volume: DecimalString;
1208
+ openPrice: DecimalString;
1209
+ klines: {
1210
+ timestamp: EpochMilliseconds;
1211
+ open: DecimalString;
1212
+ high: DecimalString;
1213
+ low: DecimalString;
1214
+ close: DecimalString;
1215
+ volume: DecimalString;
1216
+ trades: number;
1217
+ }[];
1218
+ }, {
1219
+ iid: PerpsInstrumentId;
1220
+ vol: DecimalString;
1221
+ open: DecimalString;
1222
+ klines: {
1223
+ timestamp: EpochMilliseconds;
1224
+ open: DecimalString;
1225
+ high: DecimalString;
1226
+ low: DecimalString;
1227
+ close: DecimalString;
1228
+ volume: DecimalString;
1229
+ trades: number;
1230
+ }[];
1231
+ }>>;
1232
+ declare const PerpsBookLevelSchema: z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>], null>, z.ZodTransform<{
1233
+ price: DecimalString;
1234
+ quantity: DecimalString;
1235
+ }, [DecimalString, DecimalString]>>;
1236
+ type PerpsBookLevel = z.infer<typeof PerpsBookLevelSchema>;
1237
+ declare const PerpsBookSchema: z.ZodObject<{
1238
+ instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1239
+ bids: z.ZodArray<z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>], null>, z.ZodTransform<{
1240
+ price: DecimalString;
1241
+ quantity: DecimalString;
1242
+ }, [DecimalString, DecimalString]>>>;
1243
+ asks: z.ZodArray<z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>], null>, z.ZodTransform<{
1244
+ price: DecimalString;
1245
+ quantity: DecimalString;
1246
+ }, [DecimalString, DecimalString]>>>;
1247
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1248
+ sequence: z.ZodNumber;
1249
+ }, z.core.$strip>;
1250
+ type PerpsBook = z.infer<typeof PerpsBookSchema>;
1251
+ declare const RawPerpsBookSchema: z.ZodPipe<z.ZodObject<{
1252
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1253
+ bids: z.ZodArray<z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>], null>, z.ZodTransform<{
1254
+ price: DecimalString;
1255
+ quantity: DecimalString;
1256
+ }, [DecimalString, DecimalString]>>>;
1257
+ asks: z.ZodArray<z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>], null>, z.ZodTransform<{
1258
+ price: DecimalString;
1259
+ quantity: DecimalString;
1260
+ }, [DecimalString, DecimalString]>>>;
1261
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1262
+ sequence: z.ZodNumber;
1263
+ }, z.core.$strip>, z.ZodTransform<{
1264
+ instrumentId: PerpsInstrumentId;
1265
+ bids: {
1266
+ price: DecimalString;
1267
+ quantity: DecimalString;
1268
+ }[];
1269
+ asks: {
1270
+ price: DecimalString;
1271
+ quantity: DecimalString;
1272
+ }[];
1273
+ timestamp: EpochMilliseconds;
1274
+ sequence: number;
1275
+ }, {
1276
+ instrument_id: PerpsInstrumentId;
1277
+ bids: {
1278
+ price: DecimalString;
1279
+ quantity: DecimalString;
1280
+ }[];
1281
+ asks: {
1282
+ price: DecimalString;
1283
+ quantity: DecimalString;
1284
+ }[];
1285
+ timestamp: EpochMilliseconds;
1286
+ sequence: number;
1287
+ }>>;
1288
+ declare const RawPerpsBookUpdateSchema: z.ZodPipe<z.ZodObject<{
1289
+ b: z.ZodArray<z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>], null>, z.ZodTransform<{
1290
+ price: DecimalString;
1291
+ quantity: DecimalString;
1292
+ }, [DecimalString, DecimalString]>>>;
1293
+ a: z.ZodArray<z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>], null>, z.ZodTransform<{
1294
+ price: DecimalString;
1295
+ quantity: DecimalString;
1296
+ }, [DecimalString, DecimalString]>>>;
1297
+ }, z.core.$strip>, z.ZodTransform<{
1298
+ bids: {
1299
+ price: DecimalString;
1300
+ quantity: DecimalString;
1301
+ }[];
1302
+ asks: {
1303
+ price: DecimalString;
1304
+ quantity: DecimalString;
1305
+ }[];
1306
+ }, {
1307
+ b: {
1308
+ price: DecimalString;
1309
+ quantity: DecimalString;
1310
+ }[];
1311
+ a: {
1312
+ price: DecimalString;
1313
+ quantity: DecimalString;
1314
+ }[];
1315
+ }>>;
1316
+ declare const PerpsBboSchema: z.ZodObject<{
1317
+ instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1318
+ bidPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1319
+ bidQuantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1320
+ askPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1321
+ askQuantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1322
+ timestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
1323
+ }, z.core.$strip>;
1324
+ type PerpsBbo = z.infer<typeof PerpsBboSchema>;
1325
+ declare const RawPerpsBboSchema: z.ZodPipe<z.ZodObject<{
1326
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1327
+ bid_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1328
+ bid_quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1329
+ ask_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1330
+ ask_quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1331
+ timestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
1332
+ }, z.core.$strip>, z.ZodTransform<{
1333
+ instrumentId: PerpsInstrumentId;
1334
+ bidPrice: DecimalString;
1335
+ bidQuantity: DecimalString;
1336
+ askPrice: DecimalString;
1337
+ askQuantity: DecimalString;
1338
+ timestamp: EpochMilliseconds | undefined;
1339
+ }, {
1340
+ instrument_id: PerpsInstrumentId;
1341
+ bid_price: DecimalString;
1342
+ bid_quantity: DecimalString;
1343
+ ask_price: DecimalString;
1344
+ ask_quantity: DecimalString;
1345
+ timestamp?: EpochMilliseconds | undefined;
1346
+ }>>;
1347
+ declare const RawPerpsBboDataSchema: z.ZodPipe<z.ZodObject<{
1348
+ iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1349
+ bp: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1350
+ bq: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1351
+ ap: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1352
+ aq: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1353
+ }, z.core.$strip>, z.ZodTransform<{
1354
+ instrumentId: PerpsInstrumentId;
1355
+ bidPrice: DecimalString;
1356
+ bidQuantity: DecimalString;
1357
+ askPrice: DecimalString;
1358
+ askQuantity: DecimalString;
1359
+ }, {
1360
+ iid: PerpsInstrumentId;
1361
+ bp: DecimalString;
1362
+ bq: DecimalString;
1363
+ ap: DecimalString;
1364
+ aq: DecimalString;
1365
+ }>>;
1366
+ declare const PerpsPublicTradeSchema: z.ZodObject<{
1367
+ tradeId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
1368
+ instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1369
+ side: z.ZodEnum<typeof PerpsSide>;
1370
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1371
+ quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1372
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1373
+ hash: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>;
1374
+ }, z.core.$strip>;
1375
+ type PerpsPublicTrade = z.infer<typeof PerpsPublicTradeSchema>;
1376
+ declare const RawPerpsPublicTradeSchema: z.ZodPipe<z.ZodObject<{
1377
+ trade_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
1378
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1379
+ side: z.ZodEnum<typeof PerpsSide>;
1380
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1381
+ quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1382
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1383
+ hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
1384
+ }, z.core.$strip>, z.ZodTransform<{
1385
+ tradeId: PerpsTradeId;
1386
+ instrumentId: PerpsInstrumentId;
1387
+ side: PerpsSide;
1388
+ price: DecimalString;
1389
+ quantity: DecimalString;
1390
+ timestamp: EpochMilliseconds;
1391
+ hash: _polymarket_types.TxHash | undefined;
1392
+ }, {
1393
+ trade_id: PerpsTradeId;
1394
+ instrument_id: PerpsInstrumentId;
1395
+ side: PerpsSide;
1396
+ price: DecimalString;
1397
+ quantity: DecimalString;
1398
+ timestamp: EpochMilliseconds;
1399
+ hash?: _polymarket_types.TxHash | undefined;
1400
+ }>>;
1401
+ declare const RawPerpsPublicTradeResponseSchema: z.ZodPipe<z.ZodObject<{
1402
+ tid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
1403
+ iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1404
+ side: z.ZodEnum<typeof PerpsSide>;
1405
+ p: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1406
+ qty: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1407
+ ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1408
+ hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
1409
+ }, z.core.$strip>, z.ZodTransform<{
1410
+ tradeId: PerpsTradeId;
1411
+ instrumentId: PerpsInstrumentId;
1412
+ side: PerpsSide;
1413
+ price: DecimalString;
1414
+ quantity: DecimalString;
1415
+ timestamp: EpochMilliseconds;
1416
+ hash: _polymarket_types.TxHash | undefined;
1417
+ }, {
1418
+ tid: PerpsTradeId;
1419
+ iid: PerpsInstrumentId;
1420
+ side: PerpsSide;
1421
+ p: DecimalString;
1422
+ qty: DecimalString;
1423
+ ts: EpochMilliseconds;
1424
+ hash?: _polymarket_types.TxHash | undefined;
1425
+ }>>;
1426
+ declare const FetchPerpsTradesResponseSchema: z.ZodObject<{
1427
+ data: z.ZodArray<z.ZodPipe<z.ZodObject<{
1428
+ trade_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
1429
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1430
+ side: z.ZodEnum<typeof PerpsSide>;
1431
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1432
+ quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1433
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1434
+ hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
1435
+ }, z.core.$strip>, z.ZodTransform<{
1436
+ tradeId: PerpsTradeId;
1437
+ instrumentId: PerpsInstrumentId;
1438
+ side: PerpsSide;
1439
+ price: DecimalString;
1440
+ quantity: DecimalString;
1441
+ timestamp: EpochMilliseconds;
1442
+ hash: _polymarket_types.TxHash | undefined;
1443
+ }, {
1444
+ trade_id: PerpsTradeId;
1445
+ instrument_id: PerpsInstrumentId;
1446
+ side: PerpsSide;
1447
+ price: DecimalString;
1448
+ quantity: DecimalString;
1449
+ timestamp: EpochMilliseconds;
1450
+ hash?: _polymarket_types.TxHash | undefined;
1451
+ }>>>;
1452
+ more: z.ZodBoolean;
1453
+ }, z.core.$strip>;
1454
+ declare const PerpsFundingRateSchema: z.ZodObject<{
1455
+ fundingRate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1456
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1457
+ }, z.core.$strip>;
1458
+ type PerpsFundingRate = z.infer<typeof PerpsFundingRateSchema>;
1459
+ declare const RawPerpsFundingRateSchema: z.ZodPipe<z.ZodObject<{
1460
+ funding_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1461
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1462
+ }, z.core.$strip>, z.ZodTransform<{
1463
+ fundingRate: DecimalString;
1464
+ timestamp: EpochMilliseconds;
1465
+ }, {
1466
+ funding_rate: DecimalString;
1467
+ timestamp: EpochMilliseconds;
1468
+ }>>;
1469
+ declare const FetchPerpsFundingHistoryResponseSchema: z.ZodObject<{
1470
+ data: z.ZodArray<z.ZodPipe<z.ZodObject<{
1471
+ funding_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1472
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1473
+ }, z.core.$strip>, z.ZodTransform<{
1474
+ fundingRate: DecimalString;
1475
+ timestamp: EpochMilliseconds;
1476
+ }, {
1477
+ funding_rate: DecimalString;
1478
+ timestamp: EpochMilliseconds;
1479
+ }>>>;
1480
+ more: z.ZodBoolean;
1481
+ }, z.core.$strip>;
1482
+ declare const PerpsFeeScheduleEntrySchema: z.ZodObject<{
1483
+ instrumentType: z.ZodEnum<typeof PerpsInstrumentType>;
1484
+ category: z.ZodEnum<typeof PerpsInstrumentCategory>;
1485
+ takerFeeRate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1486
+ makerFeeRate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1487
+ }, z.core.$strip>;
1488
+ type PerpsFeeScheduleEntry = z.infer<typeof PerpsFeeScheduleEntrySchema>;
1489
+ declare const RawPerpsFeeScheduleEntrySchema: z.ZodPipe<z.ZodObject<{
1490
+ instrument_type: z.ZodEnum<typeof PerpsInstrumentType>;
1491
+ category: z.ZodEnum<typeof PerpsInstrumentCategory>;
1492
+ taker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1493
+ maker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1494
+ }, z.core.$strip>, z.ZodTransform<{
1495
+ instrumentType: PerpsInstrumentType;
1496
+ category: PerpsInstrumentCategory;
1497
+ takerFeeRate: DecimalString;
1498
+ makerFeeRate: DecimalString;
1499
+ }, {
1500
+ instrument_type: PerpsInstrumentType.Perpetual;
1501
+ category: PerpsInstrumentCategory;
1502
+ taker_fee_rate: DecimalString;
1503
+ maker_fee_rate: DecimalString;
1504
+ }>>;
1505
+ declare const PerpsFeesInfoSchema: z.ZodObject<{
1506
+ feeSchedule: z.ZodArray<z.ZodObject<{
1507
+ instrumentType: z.ZodEnum<typeof PerpsInstrumentType>;
1508
+ category: z.ZodEnum<typeof PerpsInstrumentCategory>;
1509
+ takerFeeRate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1510
+ makerFeeRate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1511
+ }, z.core.$strip>>;
1512
+ }, z.core.$strip>;
1513
+ type PerpsFeesInfo = z.infer<typeof PerpsFeesInfoSchema>;
1514
+ declare const FetchPerpsFeesResponseSchema: z.ZodPipe<z.ZodObject<{
1515
+ fee_schedule: z.ZodArray<z.ZodPipe<z.ZodObject<{
1516
+ instrument_type: z.ZodEnum<typeof PerpsInstrumentType>;
1517
+ category: z.ZodEnum<typeof PerpsInstrumentCategory>;
1518
+ taker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1519
+ maker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1520
+ }, z.core.$strip>, z.ZodTransform<{
1521
+ instrumentType: PerpsInstrumentType;
1522
+ category: PerpsInstrumentCategory;
1523
+ takerFeeRate: DecimalString;
1524
+ makerFeeRate: DecimalString;
1525
+ }, {
1526
+ instrument_type: PerpsInstrumentType.Perpetual;
1527
+ category: PerpsInstrumentCategory;
1528
+ taker_fee_rate: DecimalString;
1529
+ maker_fee_rate: DecimalString;
1530
+ }>>>;
1531
+ }, z.core.$strip>, z.ZodTransform<{
1532
+ feeSchedule: {
1533
+ instrumentType: PerpsInstrumentType;
1534
+ category: PerpsInstrumentCategory;
1535
+ takerFeeRate: DecimalString;
1536
+ makerFeeRate: DecimalString;
1537
+ }[];
1538
+ }, {
1539
+ fee_schedule: {
1540
+ instrumentType: PerpsInstrumentType;
1541
+ category: PerpsInstrumentCategory;
1542
+ takerFeeRate: DecimalString;
1543
+ makerFeeRate: DecimalString;
1544
+ }[];
1545
+ }>>;
1546
+ declare const FetchPerpsCandlesResponseSchema: z.ZodObject<{
1547
+ data: z.ZodArray<z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodNumber], null>, z.ZodTransform<{
1548
+ timestamp: EpochMilliseconds;
1549
+ open: DecimalString;
1550
+ high: DecimalString;
1551
+ low: DecimalString;
1552
+ close: DecimalString;
1553
+ volume: DecimalString;
1554
+ trades: number;
1555
+ }, [EpochMilliseconds, DecimalString, DecimalString, DecimalString, DecimalString, DecimalString, number]>>>;
1556
+ more: z.ZodBoolean;
1557
+ }, z.core.$strip>;
1558
+
1559
+ declare const PerpsOrderSchema: z.ZodObject<{
1560
+ orderId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
1561
+ instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1562
+ buy: z.ZodBoolean;
1563
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1564
+ quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1565
+ timeInForce: z.ZodEnum<typeof PerpsTimeInForce>;
1566
+ postOnly: z.ZodBoolean;
1567
+ status: z.ZodString;
1568
+ restingQuantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1569
+ filledQuantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1570
+ createdTimestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1571
+ updatedTimestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1572
+ clientOrderId: z.ZodOptional<z.ZodString>;
1573
+ }, z.core.$strip>;
1574
+ type PerpsOrder = z.infer<typeof PerpsOrderSchema>;
1575
+ declare const PerpsCommandStatusSchema: z.ZodEnum<{
1576
+ ok: "ok";
1577
+ err: "err";
1578
+ }>;
1579
+ declare const PerpsOrderCommandAckSchema: z.ZodObject<{
1580
+ status: z.ZodEnum<{
1581
+ ok: "ok";
1582
+ err: "err";
1583
+ }>;
1584
+ orderId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>>;
1585
+ clientOrderId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<PerpsClientOrderId, string>>>;
1586
+ error: z.ZodOptional<z.ZodString>;
1587
+ }, z.core.$strip>;
1588
+ type PerpsOrderCommandAck = z.infer<typeof PerpsOrderCommandAckSchema>;
1589
+ declare const RawPerpsOrderCommandAckSchema: z.ZodPipe<z.ZodObject<{
1590
+ status: z.ZodEnum<{
1591
+ ok: "ok";
1592
+ err: "err";
1593
+ }>;
1594
+ oid: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>>;
1595
+ coid: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<PerpsClientOrderId, string>>>;
1596
+ error: z.ZodOptional<z.ZodString>;
1597
+ }, z.core.$strip>, z.ZodTransform<{
1598
+ status: "ok" | "err";
1599
+ orderId: PerpsOrderId | undefined;
1600
+ clientOrderId: PerpsClientOrderId | undefined;
1601
+ error: string | undefined;
1602
+ }, {
1603
+ status: "ok" | "err";
1604
+ oid?: PerpsOrderId | undefined;
1605
+ coid?: PerpsClientOrderId | undefined;
1606
+ error?: string | undefined;
1607
+ }>>;
1608
+ declare const PerpsCommandAckSchema: z.ZodObject<{
1609
+ status: z.ZodEnum<{
1610
+ ok: "ok";
1611
+ err: "err";
1612
+ }>;
1613
+ error: z.ZodOptional<z.ZodString>;
1614
+ }, z.core.$strip>;
1615
+ type PerpsCommandAck = z.infer<typeof PerpsCommandAckSchema>;
1616
+ declare const RawPerpsOrderSchema: z.ZodPipe<z.ZodObject<{
1617
+ order_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
1618
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1619
+ buy: z.ZodBoolean;
1620
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1621
+ quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1622
+ tif: z.ZodEnum<typeof PerpsTimeInForce>;
1623
+ post_only: z.ZodBoolean;
1624
+ status: z.ZodString;
1625
+ resting_quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1626
+ filled_quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1627
+ created_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1628
+ updated_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1629
+ client_order_id: z.ZodOptional<z.ZodString>;
1630
+ }, z.core.$strip>, z.ZodTransform<{
1631
+ orderId: PerpsOrderId;
1632
+ instrumentId: PerpsInstrumentId;
1633
+ buy: boolean;
1634
+ price: DecimalString;
1635
+ quantity: DecimalString;
1636
+ timeInForce: PerpsTimeInForce;
1637
+ postOnly: boolean;
1638
+ status: string;
1639
+ restingQuantity: DecimalString;
1640
+ filledQuantity: DecimalString;
1641
+ createdTimestamp: EpochMilliseconds;
1642
+ updatedTimestamp: EpochMilliseconds;
1643
+ clientOrderId: string | undefined;
1644
+ }, {
1645
+ order_id: PerpsOrderId;
1646
+ instrument_id: PerpsInstrumentId;
1647
+ buy: boolean;
1648
+ price: DecimalString;
1649
+ quantity: DecimalString;
1650
+ tif: PerpsTimeInForce;
1651
+ post_only: boolean;
1652
+ status: string;
1653
+ resting_quantity: DecimalString;
1654
+ filled_quantity: DecimalString;
1655
+ created_timestamp: EpochMilliseconds;
1656
+ updated_timestamp: EpochMilliseconds;
1657
+ client_order_id?: string | undefined;
1658
+ }>>;
1659
+ declare const FetchPerpsOrdersResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
1660
+ order_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
1661
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1662
+ buy: z.ZodBoolean;
1663
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1664
+ quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1665
+ tif: z.ZodEnum<typeof PerpsTimeInForce>;
1666
+ post_only: z.ZodBoolean;
1667
+ status: z.ZodString;
1668
+ resting_quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1669
+ filled_quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1670
+ created_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1671
+ updated_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1672
+ client_order_id: z.ZodOptional<z.ZodString>;
1673
+ }, z.core.$strip>, z.ZodTransform<{
1674
+ orderId: PerpsOrderId;
1675
+ instrumentId: PerpsInstrumentId;
1676
+ buy: boolean;
1677
+ price: DecimalString;
1678
+ quantity: DecimalString;
1679
+ timeInForce: PerpsTimeInForce;
1680
+ postOnly: boolean;
1681
+ status: string;
1682
+ restingQuantity: DecimalString;
1683
+ filledQuantity: DecimalString;
1684
+ createdTimestamp: EpochMilliseconds;
1685
+ updatedTimestamp: EpochMilliseconds;
1686
+ clientOrderId: string | undefined;
1687
+ }, {
1688
+ order_id: PerpsOrderId;
1689
+ instrument_id: PerpsInstrumentId;
1690
+ buy: boolean;
1691
+ price: DecimalString;
1692
+ quantity: DecimalString;
1693
+ tif: PerpsTimeInForce;
1694
+ post_only: boolean;
1695
+ status: string;
1696
+ resting_quantity: DecimalString;
1697
+ filled_quantity: DecimalString;
1698
+ created_timestamp: EpochMilliseconds;
1699
+ updated_timestamp: EpochMilliseconds;
1700
+ client_order_id?: string | undefined;
1701
+ }>>>;
1702
+ declare const FetchPerpsOpenOrdersResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
1703
+ order_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
1704
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1705
+ buy: z.ZodBoolean;
1706
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1707
+ quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1708
+ tif: z.ZodEnum<typeof PerpsTimeInForce>;
1709
+ post_only: z.ZodBoolean;
1710
+ status: z.ZodString;
1711
+ resting_quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1712
+ filled_quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1713
+ created_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1714
+ updated_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1715
+ client_order_id: z.ZodOptional<z.ZodString>;
1716
+ }, z.core.$strip>, z.ZodTransform<{
1717
+ orderId: PerpsOrderId;
1718
+ instrumentId: PerpsInstrumentId;
1719
+ buy: boolean;
1720
+ price: DecimalString;
1721
+ quantity: DecimalString;
1722
+ timeInForce: PerpsTimeInForce;
1723
+ postOnly: boolean;
1724
+ status: string;
1725
+ restingQuantity: DecimalString;
1726
+ filledQuantity: DecimalString;
1727
+ createdTimestamp: EpochMilliseconds;
1728
+ updatedTimestamp: EpochMilliseconds;
1729
+ clientOrderId: string | undefined;
1730
+ }, {
1731
+ order_id: PerpsOrderId;
1732
+ instrument_id: PerpsInstrumentId;
1733
+ buy: boolean;
1734
+ price: DecimalString;
1735
+ quantity: DecimalString;
1736
+ tif: PerpsTimeInForce;
1737
+ post_only: boolean;
1738
+ status: string;
1739
+ resting_quantity: DecimalString;
1740
+ filled_quantity: DecimalString;
1741
+ created_timestamp: EpochMilliseconds;
1742
+ updated_timestamp: EpochMilliseconds;
1743
+ client_order_id?: string | undefined;
1744
+ }>>>;
1745
+ declare const RawPerpsOrderUpdateSchema: z.ZodPipe<z.ZodObject<{
1746
+ oid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
1747
+ iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1748
+ buy: z.ZodBoolean;
1749
+ p: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1750
+ qty: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1751
+ tif: z.ZodEnum<typeof PerpsTimeInForce>;
1752
+ po: z.ZodBoolean;
1753
+ status: z.ZodString;
1754
+ rest: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1755
+ fill: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1756
+ cts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1757
+ uts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1758
+ coid: z.ZodOptional<z.ZodString>;
1759
+ }, z.core.$strip>, z.ZodTransform<{
1760
+ orderId: PerpsOrderId;
1761
+ instrumentId: PerpsInstrumentId;
1762
+ buy: boolean;
1763
+ price: DecimalString;
1764
+ quantity: DecimalString;
1765
+ timeInForce: PerpsTimeInForce;
1766
+ postOnly: boolean;
1767
+ status: string;
1768
+ restingQuantity: DecimalString;
1769
+ filledQuantity: DecimalString;
1770
+ createdTimestamp: EpochMilliseconds;
1771
+ updatedTimestamp: EpochMilliseconds;
1772
+ clientOrderId: string | undefined;
1773
+ }, {
1774
+ oid: PerpsOrderId;
1775
+ iid: PerpsInstrumentId;
1776
+ buy: boolean;
1777
+ p: DecimalString;
1778
+ qty: DecimalString;
1779
+ tif: PerpsTimeInForce;
1780
+ po: boolean;
1781
+ status: string;
1782
+ rest: DecimalString;
1783
+ fill: DecimalString;
1784
+ cts: EpochMilliseconds;
1785
+ uts: EpochMilliseconds;
1786
+ coid?: string | undefined;
1787
+ }>>;
1788
+ declare const PerpsAccountFillSchema: z.ZodObject<{
1789
+ tradeId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
1790
+ orderId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
1791
+ instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1792
+ side: z.ZodEnum<typeof PerpsSide>;
1793
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1794
+ quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1795
+ taker: z.ZodBoolean;
1796
+ fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1797
+ feeAsset: z.ZodString;
1798
+ previousSize: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1799
+ previousEntryPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1800
+ pnl: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1801
+ liquidation: z.ZodBoolean;
1802
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1803
+ hash: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>;
1804
+ clientOrderId: z.ZodOptional<z.ZodString>;
1805
+ }, z.core.$strip>;
1806
+ type PerpsAccountFill = z.infer<typeof PerpsAccountFillSchema>;
1807
+ declare const RawPerpsAccountFillSchema: z.ZodPipe<z.ZodObject<{
1808
+ trade_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
1809
+ order_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
1810
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1811
+ side: z.ZodEnum<typeof PerpsSide>;
1812
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1813
+ quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1814
+ taker: z.ZodBoolean;
1815
+ fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1816
+ fee_asset: z.ZodString;
1817
+ previous_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1818
+ previous_entry_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1819
+ pnl: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1820
+ liquidation: z.ZodBoolean;
1821
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1822
+ hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
1823
+ }, z.core.$strip>, z.ZodTransform<{
1824
+ tradeId: PerpsTradeId;
1825
+ orderId: PerpsOrderId;
1826
+ instrumentId: PerpsInstrumentId;
1827
+ side: PerpsSide;
1828
+ price: DecimalString;
1829
+ quantity: DecimalString;
1830
+ taker: boolean;
1831
+ fee: DecimalString;
1832
+ feeAsset: string;
1833
+ previousSize: DecimalString;
1834
+ previousEntryPrice: DecimalString;
1835
+ pnl: DecimalString;
1836
+ liquidation: boolean;
1837
+ timestamp: EpochMilliseconds;
1838
+ hash: _polymarket_types.TxHash | undefined;
1839
+ }, {
1840
+ trade_id: PerpsTradeId;
1841
+ order_id: PerpsOrderId;
1842
+ instrument_id: PerpsInstrumentId;
1843
+ side: PerpsSide;
1844
+ price: DecimalString;
1845
+ quantity: DecimalString;
1846
+ taker: boolean;
1847
+ fee: DecimalString;
1848
+ fee_asset: string;
1849
+ previous_size: DecimalString;
1850
+ previous_entry_price: DecimalString;
1851
+ pnl: DecimalString;
1852
+ liquidation: boolean;
1853
+ timestamp: EpochMilliseconds;
1854
+ hash?: _polymarket_types.TxHash | undefined;
1855
+ }>>;
1856
+ declare const ListPerpsFillsResponseSchema: z.ZodObject<{
1857
+ data: z.ZodArray<z.ZodPipe<z.ZodObject<{
1858
+ trade_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
1859
+ order_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
1860
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1861
+ side: z.ZodEnum<typeof PerpsSide>;
1862
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1863
+ quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1864
+ taker: z.ZodBoolean;
1865
+ fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1866
+ fee_asset: z.ZodString;
1867
+ previous_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1868
+ previous_entry_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1869
+ pnl: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1870
+ liquidation: z.ZodBoolean;
1871
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1872
+ hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
1873
+ }, z.core.$strip>, z.ZodTransform<{
1874
+ tradeId: PerpsTradeId;
1875
+ orderId: PerpsOrderId;
1876
+ instrumentId: PerpsInstrumentId;
1877
+ side: PerpsSide;
1878
+ price: DecimalString;
1879
+ quantity: DecimalString;
1880
+ taker: boolean;
1881
+ fee: DecimalString;
1882
+ feeAsset: string;
1883
+ previousSize: DecimalString;
1884
+ previousEntryPrice: DecimalString;
1885
+ pnl: DecimalString;
1886
+ liquidation: boolean;
1887
+ timestamp: EpochMilliseconds;
1888
+ hash: _polymarket_types.TxHash | undefined;
1889
+ }, {
1890
+ trade_id: PerpsTradeId;
1891
+ order_id: PerpsOrderId;
1892
+ instrument_id: PerpsInstrumentId;
1893
+ side: PerpsSide;
1894
+ price: DecimalString;
1895
+ quantity: DecimalString;
1896
+ taker: boolean;
1897
+ fee: DecimalString;
1898
+ fee_asset: string;
1899
+ previous_size: DecimalString;
1900
+ previous_entry_price: DecimalString;
1901
+ pnl: DecimalString;
1902
+ liquidation: boolean;
1903
+ timestamp: EpochMilliseconds;
1904
+ hash?: _polymarket_types.TxHash | undefined;
1905
+ }>>>;
1906
+ more: z.ZodBoolean;
1907
+ }, z.core.$strip>;
1908
+ declare const RawPerpsAccountFillUpdateSchema: z.ZodPipe<z.ZodObject<{
1909
+ tid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
1910
+ oid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
1911
+ iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1912
+ side: z.ZodEnum<typeof PerpsSide>;
1913
+ p: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1914
+ qty: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1915
+ taker: z.ZodBoolean;
1916
+ fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1917
+ fea: z.ZodString;
1918
+ psz: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1919
+ pep: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1920
+ pnl: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1921
+ liq: z.ZodBoolean;
1922
+ ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1923
+ coid: z.ZodOptional<z.ZodString>;
1924
+ }, z.core.$strip>, z.ZodTransform<{
1925
+ tradeId: PerpsTradeId;
1926
+ orderId: PerpsOrderId;
1927
+ instrumentId: PerpsInstrumentId;
1928
+ side: PerpsSide;
1929
+ price: DecimalString;
1930
+ quantity: DecimalString;
1931
+ taker: boolean;
1932
+ fee: DecimalString;
1933
+ feeAsset: string;
1934
+ previousSize: DecimalString;
1935
+ previousEntryPrice: DecimalString;
1936
+ pnl: DecimalString;
1937
+ liquidation: boolean;
1938
+ timestamp: EpochMilliseconds;
1939
+ clientOrderId: string | undefined;
1940
+ }, {
1941
+ tid: PerpsTradeId;
1942
+ oid: PerpsOrderId;
1943
+ iid: PerpsInstrumentId;
1944
+ side: PerpsSide;
1945
+ p: DecimalString;
1946
+ qty: DecimalString;
1947
+ taker: boolean;
1948
+ fee: DecimalString;
1949
+ fea: string;
1950
+ psz: DecimalString;
1951
+ pep: DecimalString;
1952
+ pnl: DecimalString;
1953
+ liq: boolean;
1954
+ ts: EpochMilliseconds;
1955
+ coid?: string | undefined;
1956
+ }>>;
1957
+
1958
+ export { FetchPerpsAccountConfigResponseSchema, FetchPerpsBalancesResponseSchema, FetchPerpsCandlesResponseSchema, FetchPerpsFeesResponseSchema, FetchPerpsFundingHistoryResponseSchema, FetchPerpsInstrumentsResponseSchema, FetchPerpsOpenOrdersResponseSchema, FetchPerpsOrdersResponseSchema, FetchPerpsPortfolioResponseSchema, FetchPerpsStatisticsResponseSchema, FetchPerpsTickersResponseSchema, FetchPerpsTradesResponseSchema, ListPerpsDepositsResponseSchema, ListPerpsEquityHistoryResponseSchema, ListPerpsFillsResponseSchema, ListPerpsFundingPaymentsResponseSchema, ListPerpsPnlHistoryResponseSchema, ListPerpsWithdrawalsResponseSchema, type PerpsAccountConfig, PerpsAccountConfigSchema, type PerpsAccountFill, PerpsAccountFillSchema, type PerpsAccountFundingPayment, PerpsAccountFundingPaymentSchema, type PerpsBalance, PerpsBalanceSchema, type PerpsBbo, PerpsBboSchema, type PerpsBook, type PerpsBookLevel, PerpsBookLevelSchema, PerpsBookSchema, type PerpsCandle, PerpsCandleSchema, PerpsClientOrderId, type PerpsCommandAck, PerpsCommandAckSchema, PerpsCommandStatusSchema, type PerpsDeposit, PerpsDepositSchema, PerpsDepositStatus, type PerpsEquityPoint, PerpsEquityPointSchema, type PerpsFeeScheduleEntry, PerpsFeeScheduleEntrySchema, type PerpsFeesInfo, PerpsFeesInfoSchema, type PerpsFundingRate, PerpsFundingRateSchema, type PerpsInstrument, PerpsInstrumentCategory, PerpsInstrumentId, PerpsInstrumentSchema, PerpsInstrumentType, type PerpsInternalTransfer, PerpsInternalTransferDirection, PerpsInternalTransferId, PerpsInternalTransferSchema, type PerpsMarginSummary, PerpsMarginSummarySchema, type PerpsOrder, type PerpsOrderCommandAck, PerpsOrderCommandAckSchema, PerpsOrderId, PerpsOrderSchema, type PerpsPnlPoint, PerpsPnlPointSchema, type PerpsPortfolio, type PerpsPortfolioPosition, PerpsPortfolioPositionSchema, PerpsPortfolioSchema, type PerpsProxyKey, PerpsProxyKeySchema, type PerpsPublicTrade, PerpsPublicTradeSchema, type PerpsRiskTier, PerpsRiskTierSchema, PerpsSide, type PerpsStatistic, PerpsStatisticSchema, type PerpsTicker, PerpsTickerSchema, PerpsTimeInForce, PerpsTradeId, type PerpsWithdrawal, PerpsWithdrawalId, PerpsWithdrawalSchema, PerpsWithdrawalStatus, RawPerpsAccountConfigSchema, RawPerpsAccountFillSchema, RawPerpsAccountFillUpdateSchema, RawPerpsAccountFundingPaymentEntrySchema, RawPerpsAccountFundingPaymentSchema, RawPerpsBboDataSchema, RawPerpsBboSchema, RawPerpsBookSchema, RawPerpsBookUpdateSchema, RawPerpsCreateProxyResponseSchema, RawPerpsCredentialsResponseSchema, RawPerpsDeleteProxyResponseSchema, RawPerpsDepositSchema, RawPerpsDepositUpdateSchema, RawPerpsFeeScheduleEntrySchema, RawPerpsFundingRateSchema, RawPerpsInstrumentSchema, RawPerpsInternalTransferSchema, RawPerpsOrderCommandAckSchema, RawPerpsOrderSchema, RawPerpsOrderUpdateSchema, RawPerpsPortfolioPositionSchema, RawPerpsPortfolioSchema, RawPerpsProxyKeySchema, RawPerpsPublicTradeResponseSchema, RawPerpsPublicTradeSchema, RawPerpsStatisticDataSchema, RawPerpsStatisticSchema, RawPerpsTickerEntrySchema, RawPerpsTickerSchema, RawPerpsWithdrawResponseSchema, RawPerpsWithdrawalSchema, RawPerpsWithdrawalUpdateSchema };