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

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,1363 @@
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 } from '../orders-ByouGgI5.js';
3
+ export { F as FetchPerpsOpenOrdersResponseSchema, j as FetchPerpsOrdersResponseSchema, L as ListPerpsFillsResponseSchema, k as PerpsAccountFill, l as PerpsAccountFillSchema, m as PerpsAccountFillUpdateSchema, n as PerpsAssetSchema, o as PerpsCancelOrderResult, p as PerpsCancelOrderResultSchema, q as PerpsClientOrderId, r as PerpsClientOrderIdSchema, s as PerpsCommandAck, t as PerpsCommandAckSchema, u as PerpsCommandStatusSchema, v as PerpsCredentials, w as PerpsDataResponseSchema, x as PerpsDecimal, y as PerpsDecimalInput, z as PerpsDecimalInputSchema, A as PerpsDepositAmount, B as PerpsDepositStatusSchema, C as PerpsFundingInterval, D as PerpsFundingIntervalSchema, E as PerpsInstrumentCategorySchema, G as PerpsInstrumentIdSchema, H as PerpsInstrumentTypeSchema, I as PerpsInternalTransferDirectionSchema, J as PerpsInternalTransferIdSchema, K as PerpsKlineInterval, M as PerpsKlineIntervalSchema, N as PerpsOrder, O as PerpsOrderId, Q as PerpsOrderIdSchema, R as PerpsOrderSchema, S as PerpsOrderStatus, T as PerpsOrderStatusSchema, U as PerpsOrderUpdateSchema, V as PerpsPnlInterval, W as PerpsPnlIntervalSchema, X as PerpsPostOrderAck, Y as PerpsPostOrderAckSchema, Z as PerpsSideSchema, _ as PerpsTimeInForce, $ as PerpsTimeInForceSchema, a0 as PerpsTradeIdSchema, a1 as PerpsTxHash, a2 as PerpsTxHashSchema, a3 as PerpsWithdrawalAmount, a4 as PerpsWithdrawalIdSchema, a5 as PerpsWithdrawalStatusSchema, a6 as decimalString, a7 as perpsBaseUnits, a8 as perpsDecimal } from '../orders-ByouGgI5.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.ZodPipe<z.ZodObject<{
19
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
20
+ symbol: z.ZodString;
21
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
22
+ entry_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
23
+ leverage: z.ZodNumber;
24
+ cross: z.ZodBoolean;
25
+ initial_margin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
26
+ maintenance_margin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
27
+ position_value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
28
+ liquidation_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
29
+ unrealized_pnl: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
30
+ return_on_equity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
31
+ cumulative_funding: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
32
+ }, z.core.$strip>, z.ZodTransform<{
33
+ instrumentId: PerpsInstrumentId;
34
+ symbol: string;
35
+ size: DecimalString;
36
+ entryPrice: DecimalString;
37
+ leverage: number;
38
+ cross: boolean;
39
+ initialMargin: DecimalString;
40
+ maintenanceMargin: DecimalString;
41
+ positionValue: DecimalString;
42
+ liquidationPrice: DecimalString;
43
+ unrealizedPnl: DecimalString;
44
+ returnOnEquity: DecimalString;
45
+ cumulativeFunding: DecimalString;
46
+ }, {
47
+ instrument_id: PerpsInstrumentId;
48
+ symbol: string;
49
+ size: DecimalString;
50
+ entry_price: DecimalString;
51
+ leverage: number;
52
+ cross: boolean;
53
+ initial_margin: DecimalString;
54
+ maintenance_margin: DecimalString;
55
+ position_value: DecimalString;
56
+ liquidation_price: DecimalString;
57
+ unrealized_pnl: DecimalString;
58
+ return_on_equity: DecimalString;
59
+ cumulative_funding: DecimalString;
60
+ }>>;
61
+ type PerpsPortfolioPosition = z.infer<typeof PerpsPortfolioPositionSchema>;
62
+ declare const PerpsMarginSummarySchema: z.ZodObject<{
63
+ totalAccountValue: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
64
+ totalInitialMargin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
65
+ totalMaintenanceMargin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
66
+ totalPositionValue: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
67
+ }, z.core.$strip>;
68
+ type PerpsMarginSummary = z.infer<typeof PerpsMarginSummarySchema>;
69
+ declare const PerpsPortfolioSchema: z.ZodPipe<z.ZodObject<{
70
+ positions: z.ZodArray<z.ZodPipe<z.ZodObject<{
71
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
72
+ symbol: z.ZodString;
73
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
74
+ entry_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
75
+ leverage: z.ZodNumber;
76
+ cross: z.ZodBoolean;
77
+ initial_margin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
78
+ maintenance_margin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
79
+ position_value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
80
+ liquidation_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
81
+ unrealized_pnl: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
82
+ return_on_equity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
83
+ cumulative_funding: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
84
+ }, z.core.$strip>, z.ZodTransform<{
85
+ instrumentId: PerpsInstrumentId;
86
+ symbol: string;
87
+ size: DecimalString;
88
+ entryPrice: DecimalString;
89
+ leverage: number;
90
+ cross: boolean;
91
+ initialMargin: DecimalString;
92
+ maintenanceMargin: DecimalString;
93
+ positionValue: DecimalString;
94
+ liquidationPrice: DecimalString;
95
+ unrealizedPnl: DecimalString;
96
+ returnOnEquity: DecimalString;
97
+ cumulativeFunding: DecimalString;
98
+ }, {
99
+ instrument_id: PerpsInstrumentId;
100
+ symbol: string;
101
+ size: DecimalString;
102
+ entry_price: DecimalString;
103
+ leverage: number;
104
+ cross: boolean;
105
+ initial_margin: DecimalString;
106
+ maintenance_margin: DecimalString;
107
+ position_value: DecimalString;
108
+ liquidation_price: DecimalString;
109
+ unrealized_pnl: DecimalString;
110
+ return_on_equity: DecimalString;
111
+ cumulative_funding: DecimalString;
112
+ }>>>;
113
+ margin: z.ZodPipe<z.ZodObject<{
114
+ total_account_value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
115
+ total_initial_margin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
116
+ total_maintenance_margin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
117
+ total_position_value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
118
+ }, z.core.$strip>, z.ZodTransform<{
119
+ totalAccountValue: DecimalString;
120
+ totalInitialMargin: DecimalString;
121
+ totalMaintenanceMargin: DecimalString;
122
+ totalPositionValue: DecimalString;
123
+ }, {
124
+ total_account_value: DecimalString;
125
+ total_initial_margin: DecimalString;
126
+ total_maintenance_margin: DecimalString;
127
+ total_position_value: DecimalString;
128
+ }>>;
129
+ withdrawable: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
130
+ in_liquidation: z.ZodBoolean;
131
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
132
+ }, z.core.$strip>, z.ZodTransform<{
133
+ positions: {
134
+ instrumentId: PerpsInstrumentId;
135
+ symbol: string;
136
+ size: DecimalString;
137
+ entryPrice: DecimalString;
138
+ leverage: number;
139
+ cross: boolean;
140
+ initialMargin: DecimalString;
141
+ maintenanceMargin: DecimalString;
142
+ positionValue: DecimalString;
143
+ liquidationPrice: DecimalString;
144
+ unrealizedPnl: DecimalString;
145
+ returnOnEquity: DecimalString;
146
+ cumulativeFunding: DecimalString;
147
+ }[];
148
+ margin: {
149
+ totalAccountValue: DecimalString;
150
+ totalInitialMargin: DecimalString;
151
+ totalMaintenanceMargin: DecimalString;
152
+ totalPositionValue: DecimalString;
153
+ };
154
+ withdrawable: DecimalString;
155
+ inLiquidation: boolean;
156
+ timestamp: EpochMilliseconds;
157
+ }, {
158
+ positions: {
159
+ instrumentId: PerpsInstrumentId;
160
+ symbol: string;
161
+ size: DecimalString;
162
+ entryPrice: DecimalString;
163
+ leverage: number;
164
+ cross: boolean;
165
+ initialMargin: DecimalString;
166
+ maintenanceMargin: DecimalString;
167
+ positionValue: DecimalString;
168
+ liquidationPrice: DecimalString;
169
+ unrealizedPnl: DecimalString;
170
+ returnOnEquity: DecimalString;
171
+ cumulativeFunding: DecimalString;
172
+ }[];
173
+ margin: {
174
+ totalAccountValue: DecimalString;
175
+ totalInitialMargin: DecimalString;
176
+ totalMaintenanceMargin: DecimalString;
177
+ totalPositionValue: DecimalString;
178
+ };
179
+ withdrawable: DecimalString;
180
+ in_liquidation: boolean;
181
+ timestamp: EpochMilliseconds;
182
+ }>>;
183
+ type PerpsPortfolio = z.infer<typeof PerpsPortfolioSchema>;
184
+ declare const FetchPerpsPortfolioResponseSchema: z.ZodPipe<z.ZodObject<{
185
+ positions: z.ZodArray<z.ZodPipe<z.ZodObject<{
186
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
187
+ symbol: z.ZodString;
188
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
189
+ entry_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
190
+ leverage: z.ZodNumber;
191
+ cross: z.ZodBoolean;
192
+ initial_margin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
193
+ maintenance_margin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
194
+ position_value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
195
+ liquidation_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
196
+ unrealized_pnl: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
197
+ return_on_equity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
198
+ cumulative_funding: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
199
+ }, z.core.$strip>, z.ZodTransform<{
200
+ instrumentId: PerpsInstrumentId;
201
+ symbol: string;
202
+ size: DecimalString;
203
+ entryPrice: DecimalString;
204
+ leverage: number;
205
+ cross: boolean;
206
+ initialMargin: DecimalString;
207
+ maintenanceMargin: DecimalString;
208
+ positionValue: DecimalString;
209
+ liquidationPrice: DecimalString;
210
+ unrealizedPnl: DecimalString;
211
+ returnOnEquity: DecimalString;
212
+ cumulativeFunding: DecimalString;
213
+ }, {
214
+ instrument_id: PerpsInstrumentId;
215
+ symbol: string;
216
+ size: DecimalString;
217
+ entry_price: DecimalString;
218
+ leverage: number;
219
+ cross: boolean;
220
+ initial_margin: DecimalString;
221
+ maintenance_margin: DecimalString;
222
+ position_value: DecimalString;
223
+ liquidation_price: DecimalString;
224
+ unrealized_pnl: DecimalString;
225
+ return_on_equity: DecimalString;
226
+ cumulative_funding: DecimalString;
227
+ }>>>;
228
+ margin: z.ZodPipe<z.ZodObject<{
229
+ total_account_value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
230
+ total_initial_margin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
231
+ total_maintenance_margin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
232
+ total_position_value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
233
+ }, z.core.$strip>, z.ZodTransform<{
234
+ totalAccountValue: DecimalString;
235
+ totalInitialMargin: DecimalString;
236
+ totalMaintenanceMargin: DecimalString;
237
+ totalPositionValue: DecimalString;
238
+ }, {
239
+ total_account_value: DecimalString;
240
+ total_initial_margin: DecimalString;
241
+ total_maintenance_margin: DecimalString;
242
+ total_position_value: DecimalString;
243
+ }>>;
244
+ withdrawable: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
245
+ in_liquidation: z.ZodBoolean;
246
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
247
+ }, z.core.$strip>, z.ZodTransform<{
248
+ positions: {
249
+ instrumentId: PerpsInstrumentId;
250
+ symbol: string;
251
+ size: DecimalString;
252
+ entryPrice: DecimalString;
253
+ leverage: number;
254
+ cross: boolean;
255
+ initialMargin: DecimalString;
256
+ maintenanceMargin: DecimalString;
257
+ positionValue: DecimalString;
258
+ liquidationPrice: DecimalString;
259
+ unrealizedPnl: DecimalString;
260
+ returnOnEquity: DecimalString;
261
+ cumulativeFunding: DecimalString;
262
+ }[];
263
+ margin: {
264
+ totalAccountValue: DecimalString;
265
+ totalInitialMargin: DecimalString;
266
+ totalMaintenanceMargin: DecimalString;
267
+ totalPositionValue: DecimalString;
268
+ };
269
+ withdrawable: DecimalString;
270
+ inLiquidation: boolean;
271
+ timestamp: EpochMilliseconds;
272
+ }, {
273
+ positions: {
274
+ instrumentId: PerpsInstrumentId;
275
+ symbol: string;
276
+ size: DecimalString;
277
+ entryPrice: DecimalString;
278
+ leverage: number;
279
+ cross: boolean;
280
+ initialMargin: DecimalString;
281
+ maintenanceMargin: DecimalString;
282
+ positionValue: DecimalString;
283
+ liquidationPrice: DecimalString;
284
+ unrealizedPnl: DecimalString;
285
+ returnOnEquity: DecimalString;
286
+ cumulativeFunding: DecimalString;
287
+ }[];
288
+ margin: {
289
+ totalAccountValue: DecimalString;
290
+ totalInitialMargin: DecimalString;
291
+ totalMaintenanceMargin: DecimalString;
292
+ totalPositionValue: DecimalString;
293
+ };
294
+ withdrawable: DecimalString;
295
+ in_liquidation: boolean;
296
+ timestamp: EpochMilliseconds;
297
+ }>>;
298
+ declare const PerpsAccountFundingPaymentSchema: z.ZodPipe<z.ZodObject<{
299
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
300
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
301
+ funding_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
302
+ funding_asset: z.ZodString;
303
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
304
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
305
+ }, z.core.$strip>, z.ZodTransform<{
306
+ instrumentId: PerpsInstrumentId;
307
+ size: DecimalString;
308
+ fundingRate: DecimalString;
309
+ fundingAsset: string;
310
+ funding: DecimalString;
311
+ timestamp: EpochMilliseconds;
312
+ }, {
313
+ instrument_id: PerpsInstrumentId;
314
+ size: DecimalString;
315
+ funding_rate: DecimalString;
316
+ funding_asset: string;
317
+ funding: DecimalString;
318
+ timestamp: EpochMilliseconds;
319
+ }>>;
320
+ type PerpsAccountFundingPayment = z.infer<typeof PerpsAccountFundingPaymentSchema>;
321
+ declare const ListPerpsFundingPaymentsResponseSchema: z.ZodObject<{
322
+ data: z.ZodArray<z.ZodPipe<z.ZodObject<{
323
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
324
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
325
+ funding_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
326
+ funding_asset: z.ZodString;
327
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
328
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
329
+ }, z.core.$strip>, z.ZodTransform<{
330
+ instrumentId: PerpsInstrumentId;
331
+ size: DecimalString;
332
+ fundingRate: DecimalString;
333
+ fundingAsset: string;
334
+ funding: DecimalString;
335
+ timestamp: EpochMilliseconds;
336
+ }, {
337
+ instrument_id: PerpsInstrumentId;
338
+ size: DecimalString;
339
+ funding_rate: DecimalString;
340
+ funding_asset: string;
341
+ funding: DecimalString;
342
+ timestamp: EpochMilliseconds;
343
+ }>>>;
344
+ more: z.ZodBoolean;
345
+ }, z.core.$strip>;
346
+ declare const PerpsAccountFundingPaymentEntrySchema: z.ZodPipe<z.ZodObject<{
347
+ iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
348
+ sz: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
349
+ fr: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
350
+ fund: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
351
+ fua: z.ZodString;
352
+ ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
353
+ }, z.core.$strip>, z.ZodTransform<{
354
+ instrumentId: PerpsInstrumentId;
355
+ size: DecimalString;
356
+ fundingRate: DecimalString;
357
+ fundingAsset: string;
358
+ funding: DecimalString;
359
+ timestamp: EpochMilliseconds;
360
+ }, {
361
+ iid: PerpsInstrumentId;
362
+ sz: DecimalString;
363
+ fr: DecimalString;
364
+ fund: DecimalString;
365
+ fua: string;
366
+ ts: EpochMilliseconds;
367
+ }>>;
368
+ declare const PerpsAccountConfigSchema: z.ZodPipe<z.ZodObject<{
369
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
370
+ leverage: z.ZodNumber;
371
+ cross: z.ZodBoolean;
372
+ }, z.core.$strip>, z.ZodTransform<{
373
+ instrumentId: PerpsInstrumentId;
374
+ leverage: number;
375
+ cross: boolean;
376
+ }, {
377
+ instrument_id: PerpsInstrumentId;
378
+ leverage: number;
379
+ cross: boolean;
380
+ }>>;
381
+ type PerpsAccountConfig = z.infer<typeof PerpsAccountConfigSchema>;
382
+ declare const FetchPerpsAccountConfigResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
383
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
384
+ leverage: z.ZodNumber;
385
+ cross: z.ZodBoolean;
386
+ }, z.core.$strip>, z.ZodTransform<{
387
+ instrumentId: PerpsInstrumentId;
388
+ leverage: number;
389
+ cross: boolean;
390
+ }, {
391
+ instrument_id: PerpsInstrumentId;
392
+ leverage: number;
393
+ cross: boolean;
394
+ }>>>;
395
+ 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<{
396
+ timestamp: EpochMilliseconds;
397
+ equity: DecimalString;
398
+ }, [EpochMilliseconds, DecimalString]>>;
399
+ type PerpsEquityPoint = z.infer<typeof PerpsEquityPointSchema>;
400
+ declare const ListPerpsEquityHistoryResponseSchema: z.ZodObject<{
401
+ 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<{
402
+ timestamp: EpochMilliseconds;
403
+ equity: DecimalString;
404
+ }, [EpochMilliseconds, DecimalString]>>>;
405
+ more: z.ZodBoolean;
406
+ }, z.core.$strip>;
407
+ 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<{
408
+ timestamp: EpochMilliseconds;
409
+ pnl: DecimalString;
410
+ }, [EpochMilliseconds, DecimalString]>>;
411
+ type PerpsPnlPoint = z.infer<typeof PerpsPnlPointSchema>;
412
+ declare const ListPerpsPnlHistoryResponseSchema: z.ZodObject<{
413
+ 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<{
414
+ timestamp: EpochMilliseconds;
415
+ pnl: DecimalString;
416
+ }, [EpochMilliseconds, DecimalString]>>>;
417
+ more: z.ZodBoolean;
418
+ }, z.core.$strip>;
419
+ declare const PerpsProxyKeySchema: z.ZodPipe<z.ZodObject<{
420
+ proxy: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
421
+ label: z.ZodOptional<z.ZodString>;
422
+ expiry: z.ZodPipe<z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
423
+ }, z.core.$strip>, z.ZodTransform<{
424
+ proxy: _polymarket_types.EvmAddress;
425
+ label: string | undefined;
426
+ expiresAt: EpochMilliseconds;
427
+ }, {
428
+ proxy: _polymarket_types.EvmAddress;
429
+ expiry: EpochMilliseconds;
430
+ label?: string | undefined;
431
+ }>>;
432
+ type PerpsProxyKey = z.infer<typeof PerpsProxyKeySchema>;
433
+ declare const PerpsCredentialsResponseSchema: z.ZodPipe<z.ZodObject<{
434
+ address: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
435
+ keys: z.ZodArray<z.ZodPipe<z.ZodObject<{
436
+ proxy: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
437
+ label: z.ZodOptional<z.ZodString>;
438
+ expiry: z.ZodPipe<z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
439
+ }, z.core.$strip>, z.ZodTransform<{
440
+ proxy: _polymarket_types.EvmAddress;
441
+ label: string | undefined;
442
+ expiresAt: EpochMilliseconds;
443
+ }, {
444
+ proxy: _polymarket_types.EvmAddress;
445
+ expiry: EpochMilliseconds;
446
+ label?: string | undefined;
447
+ }>>>;
448
+ }, z.core.$strip>, z.ZodTransform<{
449
+ address: _polymarket_types.EvmAddress;
450
+ keys: {
451
+ proxy: _polymarket_types.EvmAddress;
452
+ label: string | undefined;
453
+ expiresAt: EpochMilliseconds;
454
+ }[];
455
+ }, {
456
+ address: _polymarket_types.EvmAddress;
457
+ keys: {
458
+ proxy: _polymarket_types.EvmAddress;
459
+ label: string | undefined;
460
+ expiresAt: EpochMilliseconds;
461
+ }[];
462
+ }>>;
463
+ declare const PerpsCreateProxyResponseSchema: z.ZodObject<{
464
+ secret: z.ZodString;
465
+ }, z.core.$strip>;
466
+ declare const PerpsDeleteProxyResponseSchema: z.ZodObject<{
467
+ status: z.ZodEnum<{
468
+ ok: "ok";
469
+ err: "err";
470
+ }>;
471
+ error: z.ZodOptional<z.ZodString>;
472
+ }, z.core.$strip>;
473
+
474
+ declare const PerpsDepositSchema: z.ZodPipe<z.ZodObject<{
475
+ hash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
476
+ asset: z.ZodString;
477
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
478
+ status: z.ZodEnum<typeof PerpsDepositStatus>;
479
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
480
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
481
+ confirmations: z.ZodNumber;
482
+ required_confirmations: z.ZodNumber;
483
+ created_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
484
+ confirmed_timestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
485
+ }, z.core.$strip>, z.ZodTransform<{
486
+ hash: _polymarket_types.TxHash;
487
+ asset: string;
488
+ amount: BaseUnits;
489
+ status: PerpsDepositStatus;
490
+ from: _polymarket_types.EvmAddress;
491
+ to: _polymarket_types.EvmAddress;
492
+ confirmations: number;
493
+ requiredConfirmations: number;
494
+ createdTimestamp: EpochMilliseconds;
495
+ confirmedTimestamp: EpochMilliseconds | undefined;
496
+ }, {
497
+ hash: _polymarket_types.TxHash;
498
+ asset: string;
499
+ amount: BaseUnits;
500
+ status: PerpsDepositStatus;
501
+ from: _polymarket_types.EvmAddress;
502
+ to: _polymarket_types.EvmAddress;
503
+ confirmations: number;
504
+ required_confirmations: number;
505
+ created_timestamp: EpochMilliseconds;
506
+ confirmed_timestamp?: EpochMilliseconds | undefined;
507
+ }>>;
508
+ type PerpsDeposit = z.infer<typeof PerpsDepositSchema>;
509
+ declare const ListPerpsDepositsResponseSchema: z.ZodObject<{
510
+ data: z.ZodArray<z.ZodPipe<z.ZodObject<{
511
+ hash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
512
+ asset: z.ZodString;
513
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
514
+ status: z.ZodEnum<typeof PerpsDepositStatus>;
515
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
516
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
517
+ confirmations: z.ZodNumber;
518
+ required_confirmations: z.ZodNumber;
519
+ created_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
520
+ confirmed_timestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
521
+ }, z.core.$strip>, z.ZodTransform<{
522
+ hash: _polymarket_types.TxHash;
523
+ asset: string;
524
+ amount: BaseUnits;
525
+ status: PerpsDepositStatus;
526
+ from: _polymarket_types.EvmAddress;
527
+ to: _polymarket_types.EvmAddress;
528
+ confirmations: number;
529
+ requiredConfirmations: number;
530
+ createdTimestamp: EpochMilliseconds;
531
+ confirmedTimestamp: EpochMilliseconds | undefined;
532
+ }, {
533
+ hash: _polymarket_types.TxHash;
534
+ asset: string;
535
+ amount: BaseUnits;
536
+ status: PerpsDepositStatus;
537
+ from: _polymarket_types.EvmAddress;
538
+ to: _polymarket_types.EvmAddress;
539
+ confirmations: number;
540
+ required_confirmations: number;
541
+ created_timestamp: EpochMilliseconds;
542
+ confirmed_timestamp?: EpochMilliseconds | undefined;
543
+ }>>>;
544
+ more: z.ZodBoolean;
545
+ }, z.core.$strip>;
546
+ declare const PerpsDepositUpdateSchema: z.ZodPipe<z.ZodObject<{
547
+ hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<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
+ }, z.core.$strip>, z.ZodTransform<{
552
+ hash: _polymarket_types.TxHash | undefined;
553
+ asset: string;
554
+ amount: BaseUnits;
555
+ status: PerpsDepositStatus;
556
+ }, {
557
+ asset: string;
558
+ amount: BaseUnits;
559
+ status: PerpsDepositStatus;
560
+ hash?: _polymarket_types.TxHash | undefined;
561
+ }>>;
562
+ declare const PerpsWithdrawalSchema: z.ZodPipe<z.ZodObject<{
563
+ withdraw_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsWithdrawalId, number>>;
564
+ asset: z.ZodString;
565
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
566
+ fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
567
+ status: z.ZodEnum<typeof PerpsWithdrawalStatus>;
568
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
569
+ hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
570
+ confirmations: z.ZodNumber;
571
+ required_confirmations: z.ZodNumber;
572
+ created_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
573
+ confirmed_timestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
574
+ }, z.core.$strip>, z.ZodTransform<{
575
+ withdrawalId: PerpsWithdrawalId;
576
+ asset: string;
577
+ amount: BaseUnits;
578
+ fee: DecimalString;
579
+ status: PerpsWithdrawalStatus;
580
+ to: _polymarket_types.EvmAddress;
581
+ hash: _polymarket_types.TxHash | undefined;
582
+ confirmations: number;
583
+ requiredConfirmations: number;
584
+ createdTimestamp: EpochMilliseconds;
585
+ confirmedTimestamp: EpochMilliseconds | undefined;
586
+ }, {
587
+ withdraw_id: PerpsWithdrawalId;
588
+ asset: string;
589
+ amount: BaseUnits;
590
+ fee: DecimalString;
591
+ status: PerpsWithdrawalStatus;
592
+ to: _polymarket_types.EvmAddress;
593
+ confirmations: number;
594
+ required_confirmations: number;
595
+ created_timestamp: EpochMilliseconds;
596
+ hash?: _polymarket_types.TxHash | undefined;
597
+ confirmed_timestamp?: EpochMilliseconds | undefined;
598
+ }>>;
599
+ type PerpsWithdrawal = z.infer<typeof PerpsWithdrawalSchema>;
600
+ declare const ListPerpsWithdrawalsResponseSchema: z.ZodObject<{
601
+ data: z.ZodArray<z.ZodPipe<z.ZodObject<{
602
+ withdraw_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsWithdrawalId, number>>;
603
+ asset: z.ZodString;
604
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
605
+ fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
606
+ status: z.ZodEnum<typeof PerpsWithdrawalStatus>;
607
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
608
+ hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
609
+ confirmations: z.ZodNumber;
610
+ required_confirmations: z.ZodNumber;
611
+ created_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
612
+ confirmed_timestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
613
+ }, z.core.$strip>, z.ZodTransform<{
614
+ withdrawalId: PerpsWithdrawalId;
615
+ asset: string;
616
+ amount: BaseUnits;
617
+ fee: DecimalString;
618
+ status: PerpsWithdrawalStatus;
619
+ to: _polymarket_types.EvmAddress;
620
+ hash: _polymarket_types.TxHash | undefined;
621
+ confirmations: number;
622
+ requiredConfirmations: number;
623
+ createdTimestamp: EpochMilliseconds;
624
+ confirmedTimestamp: EpochMilliseconds | undefined;
625
+ }, {
626
+ withdraw_id: PerpsWithdrawalId;
627
+ asset: string;
628
+ amount: BaseUnits;
629
+ fee: DecimalString;
630
+ status: PerpsWithdrawalStatus;
631
+ to: _polymarket_types.EvmAddress;
632
+ confirmations: number;
633
+ required_confirmations: number;
634
+ created_timestamp: EpochMilliseconds;
635
+ hash?: _polymarket_types.TxHash | undefined;
636
+ confirmed_timestamp?: EpochMilliseconds | undefined;
637
+ }>>>;
638
+ more: z.ZodBoolean;
639
+ }, z.core.$strip>;
640
+ declare const PerpsWithdrawResponseSchema: z.ZodPipe<z.ZodObject<{
641
+ status: z.ZodEnum<{
642
+ ok: "ok";
643
+ err: "err";
644
+ }>;
645
+ withdraw_id: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsWithdrawalId, number>>>;
646
+ error: z.ZodOptional<z.ZodString>;
647
+ }, z.core.$strip>, z.ZodTransform<{
648
+ status: "ok" | "err";
649
+ withdrawalId: PerpsWithdrawalId | undefined;
650
+ error: string | undefined;
651
+ }, {
652
+ status: "ok" | "err";
653
+ withdraw_id?: PerpsWithdrawalId | undefined;
654
+ error?: string | undefined;
655
+ }>>;
656
+ declare const PerpsWithdrawalUpdateSchema: z.ZodPipe<z.ZodObject<{
657
+ withdraw_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsWithdrawalId, number>>;
658
+ asset: z.ZodString;
659
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
660
+ fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
661
+ status: z.ZodEnum<typeof PerpsWithdrawalStatus>;
662
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
663
+ hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
664
+ }, z.core.$strip>, z.ZodTransform<{
665
+ withdrawalId: PerpsWithdrawalId;
666
+ asset: string;
667
+ amount: BaseUnits;
668
+ fee: DecimalString;
669
+ status: PerpsWithdrawalStatus;
670
+ to: _polymarket_types.EvmAddress;
671
+ hash: _polymarket_types.TxHash | undefined;
672
+ }, {
673
+ withdraw_id: PerpsWithdrawalId;
674
+ asset: string;
675
+ amount: BaseUnits;
676
+ fee: DecimalString;
677
+ status: PerpsWithdrawalStatus;
678
+ to: _polymarket_types.EvmAddress;
679
+ hash?: _polymarket_types.TxHash | undefined;
680
+ }>>;
681
+ declare const PerpsInternalTransferSchema: z.ZodObject<{
682
+ transferId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInternalTransferId, number>>;
683
+ asset: z.ZodString;
684
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
685
+ direction: z.ZodEnum<typeof PerpsInternalTransferDirection>;
686
+ counterparty: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
687
+ label: z.ZodOptional<z.ZodString>;
688
+ createdTimestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
689
+ }, z.core.$strip>;
690
+ type PerpsInternalTransfer = z.infer<typeof PerpsInternalTransferSchema>;
691
+
692
+ declare const PerpsRiskTierSchema: z.ZodObject<{
693
+ lowerBound: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
694
+ maxLeverage: z.ZodNumber;
695
+ }, z.core.$strip>;
696
+ type PerpsRiskTier = z.infer<typeof PerpsRiskTierSchema>;
697
+ declare const PerpsInstrumentSchema: z.ZodPipe<z.ZodObject<{
698
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
699
+ instrument_type: z.ZodEnum<typeof PerpsInstrumentType>;
700
+ category: z.ZodEnum<typeof PerpsInstrumentCategory>;
701
+ symbol: z.ZodString;
702
+ base_asset: z.ZodString;
703
+ quote_asset: z.ZodString;
704
+ funding_interval: z.ZodPipe<z.ZodString, z.ZodTransform<`${number}h`, string>>;
705
+ quantity_decimals: z.ZodNumber;
706
+ price_decimals: z.ZodNumber;
707
+ price_bounds: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
708
+ liquidation_fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
709
+ max_order_count: z.ZodNumber;
710
+ min_notional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
711
+ max_market_notional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
712
+ max_limit_notional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
713
+ max_leverage: z.ZodNumber;
714
+ risk_tiers: z.ZodArray<z.ZodPipe<z.ZodObject<{
715
+ lower_bound: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
716
+ max_leverage: z.ZodNumber;
717
+ }, z.core.$strip>, z.ZodTransform<{
718
+ lowerBound: DecimalString;
719
+ maxLeverage: number;
720
+ }, {
721
+ lower_bound: DecimalString;
722
+ max_leverage: number;
723
+ }>>>;
724
+ }, z.core.$strip>, z.ZodTransform<{
725
+ id: PerpsInstrumentId;
726
+ category: PerpsInstrumentCategory;
727
+ symbol: string;
728
+ baseAsset: string;
729
+ quoteAsset: string;
730
+ fundingInterval: `${number}h`;
731
+ quantityDecimals: number;
732
+ priceDecimals: number;
733
+ priceBounds: DecimalString;
734
+ liquidationFee: DecimalString;
735
+ maxOrderCount: number;
736
+ minNotional: DecimalString;
737
+ maxMarketNotional: DecimalString;
738
+ maxLimitNotional: DecimalString;
739
+ maxLeverage: number;
740
+ riskTiers: {
741
+ lowerBound: DecimalString;
742
+ maxLeverage: number;
743
+ }[];
744
+ }, {
745
+ instrument_id: PerpsInstrumentId;
746
+ instrument_type: PerpsInstrumentType.Perpetual;
747
+ category: PerpsInstrumentCategory;
748
+ symbol: string;
749
+ base_asset: string;
750
+ quote_asset: string;
751
+ funding_interval: `${number}h`;
752
+ quantity_decimals: number;
753
+ price_decimals: number;
754
+ price_bounds: DecimalString;
755
+ liquidation_fee: DecimalString;
756
+ max_order_count: number;
757
+ min_notional: DecimalString;
758
+ max_market_notional: DecimalString;
759
+ max_limit_notional: DecimalString;
760
+ max_leverage: number;
761
+ risk_tiers: {
762
+ lowerBound: DecimalString;
763
+ maxLeverage: number;
764
+ }[];
765
+ }>>;
766
+ type PerpsInstrument = z.infer<typeof PerpsInstrumentSchema>;
767
+ declare const FetchPerpsInstrumentsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
768
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
769
+ instrument_type: z.ZodEnum<typeof PerpsInstrumentType>;
770
+ category: z.ZodEnum<typeof PerpsInstrumentCategory>;
771
+ symbol: z.ZodString;
772
+ base_asset: z.ZodString;
773
+ quote_asset: z.ZodString;
774
+ funding_interval: z.ZodPipe<z.ZodString, z.ZodTransform<`${number}h`, string>>;
775
+ quantity_decimals: z.ZodNumber;
776
+ price_decimals: z.ZodNumber;
777
+ price_bounds: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
778
+ liquidation_fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
779
+ max_order_count: z.ZodNumber;
780
+ min_notional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
781
+ max_market_notional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
782
+ max_limit_notional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
783
+ max_leverage: z.ZodNumber;
784
+ risk_tiers: z.ZodArray<z.ZodPipe<z.ZodObject<{
785
+ lower_bound: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
786
+ max_leverage: z.ZodNumber;
787
+ }, z.core.$strip>, z.ZodTransform<{
788
+ lowerBound: DecimalString;
789
+ maxLeverage: number;
790
+ }, {
791
+ lower_bound: DecimalString;
792
+ max_leverage: number;
793
+ }>>>;
794
+ }, z.core.$strip>, z.ZodTransform<{
795
+ id: PerpsInstrumentId;
796
+ category: PerpsInstrumentCategory;
797
+ symbol: string;
798
+ baseAsset: string;
799
+ quoteAsset: string;
800
+ fundingInterval: `${number}h`;
801
+ quantityDecimals: number;
802
+ priceDecimals: number;
803
+ priceBounds: DecimalString;
804
+ liquidationFee: DecimalString;
805
+ maxOrderCount: number;
806
+ minNotional: DecimalString;
807
+ maxMarketNotional: DecimalString;
808
+ maxLimitNotional: DecimalString;
809
+ maxLeverage: number;
810
+ riskTiers: {
811
+ lowerBound: DecimalString;
812
+ maxLeverage: number;
813
+ }[];
814
+ }, {
815
+ instrument_id: PerpsInstrumentId;
816
+ instrument_type: PerpsInstrumentType.Perpetual;
817
+ category: PerpsInstrumentCategory;
818
+ symbol: string;
819
+ base_asset: string;
820
+ quote_asset: string;
821
+ funding_interval: `${number}h`;
822
+ quantity_decimals: number;
823
+ price_decimals: number;
824
+ price_bounds: DecimalString;
825
+ liquidation_fee: DecimalString;
826
+ max_order_count: number;
827
+ min_notional: DecimalString;
828
+ max_market_notional: DecimalString;
829
+ max_limit_notional: DecimalString;
830
+ max_leverage: number;
831
+ risk_tiers: {
832
+ lowerBound: DecimalString;
833
+ maxLeverage: number;
834
+ }[];
835
+ }>>>;
836
+ declare const PerpsTickerSchema: z.ZodPipe<z.ZodObject<{
837
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
838
+ symbol: z.ZodString;
839
+ index_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
840
+ mark_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
841
+ last_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
842
+ mid_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
843
+ open_interest: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
844
+ funding_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
845
+ next_funding: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
846
+ timestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
847
+ }, z.core.$strip>, z.ZodTransform<{
848
+ instrumentId: PerpsInstrumentId;
849
+ symbol: string;
850
+ indexPrice: DecimalString;
851
+ markPrice: DecimalString;
852
+ lastPrice: DecimalString;
853
+ midPrice: DecimalString;
854
+ openInterest: DecimalString;
855
+ fundingRate: DecimalString;
856
+ nextFunding: EpochMilliseconds;
857
+ timestamp: EpochMilliseconds | undefined;
858
+ }, {
859
+ instrument_id: PerpsInstrumentId;
860
+ symbol: string;
861
+ index_price: DecimalString;
862
+ mark_price: DecimalString;
863
+ last_price: DecimalString;
864
+ mid_price: DecimalString;
865
+ open_interest: DecimalString;
866
+ funding_rate: DecimalString;
867
+ next_funding: EpochMilliseconds;
868
+ timestamp?: EpochMilliseconds | undefined;
869
+ }>>;
870
+ type PerpsTicker = z.infer<typeof PerpsTickerSchema> & {
871
+ openPrice?: DecimalString;
872
+ volume24h?: DecimalString;
873
+ };
874
+ declare const FetchPerpsTickersResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
875
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
876
+ symbol: z.ZodString;
877
+ index_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
878
+ mark_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
879
+ last_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
880
+ mid_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
881
+ open_interest: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
882
+ funding_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
883
+ next_funding: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
884
+ timestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
885
+ }, z.core.$strip>, z.ZodTransform<{
886
+ instrumentId: PerpsInstrumentId;
887
+ symbol: string;
888
+ indexPrice: DecimalString;
889
+ markPrice: DecimalString;
890
+ lastPrice: DecimalString;
891
+ midPrice: DecimalString;
892
+ openInterest: DecimalString;
893
+ fundingRate: DecimalString;
894
+ nextFunding: EpochMilliseconds;
895
+ timestamp: EpochMilliseconds | undefined;
896
+ }, {
897
+ instrument_id: PerpsInstrumentId;
898
+ symbol: string;
899
+ index_price: DecimalString;
900
+ mark_price: DecimalString;
901
+ last_price: DecimalString;
902
+ mid_price: DecimalString;
903
+ open_interest: DecimalString;
904
+ funding_rate: DecimalString;
905
+ next_funding: EpochMilliseconds;
906
+ timestamp?: EpochMilliseconds | undefined;
907
+ }>>>;
908
+ declare const PerpsTickerEntrySchema: z.ZodPipe<z.ZodObject<{
909
+ iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
910
+ idx: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
911
+ mark: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
912
+ last: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
913
+ mid: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
914
+ oi: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
915
+ fr: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
916
+ nxf: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
917
+ }, z.core.$strip>, z.ZodTransform<{
918
+ instrumentId: PerpsInstrumentId;
919
+ indexPrice: DecimalString;
920
+ markPrice: DecimalString;
921
+ lastPrice: DecimalString;
922
+ midPrice: DecimalString;
923
+ openInterest: DecimalString;
924
+ fundingRate: DecimalString;
925
+ nextFunding: EpochMilliseconds;
926
+ }, {
927
+ iid: PerpsInstrumentId;
928
+ idx: DecimalString;
929
+ mark: DecimalString;
930
+ last: DecimalString;
931
+ mid: DecimalString;
932
+ oi: DecimalString;
933
+ fr: DecimalString;
934
+ nxf: EpochMilliseconds;
935
+ }>>;
936
+ 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<{
937
+ timestamp: EpochMilliseconds;
938
+ open: DecimalString;
939
+ high: DecimalString;
940
+ low: DecimalString;
941
+ close: DecimalString;
942
+ volume: DecimalString;
943
+ trades: number;
944
+ }, [EpochMilliseconds, DecimalString, DecimalString, DecimalString, DecimalString, DecimalString, number]>>;
945
+ type PerpsCandle = z.infer<typeof PerpsCandleSchema>;
946
+ declare const PerpsStatisticSchema: z.ZodPipe<z.ZodObject<{
947
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
948
+ symbol: z.ZodOptional<z.ZodString>;
949
+ volume: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
950
+ open_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
951
+ 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<{
952
+ timestamp: EpochMilliseconds;
953
+ open: DecimalString;
954
+ high: DecimalString;
955
+ low: DecimalString;
956
+ close: DecimalString;
957
+ volume: DecimalString;
958
+ trades: number;
959
+ }, [EpochMilliseconds, DecimalString, DecimalString, DecimalString, DecimalString, DecimalString, number]>>>;
960
+ }, z.core.$strip>, z.ZodTransform<{
961
+ instrumentId: PerpsInstrumentId;
962
+ symbol: string | undefined;
963
+ volume: DecimalString;
964
+ openPrice: DecimalString;
965
+ klines: {
966
+ timestamp: EpochMilliseconds;
967
+ open: DecimalString;
968
+ high: DecimalString;
969
+ low: DecimalString;
970
+ close: DecimalString;
971
+ volume: DecimalString;
972
+ trades: number;
973
+ }[];
974
+ }, {
975
+ instrument_id: PerpsInstrumentId;
976
+ volume: DecimalString;
977
+ open_price: DecimalString;
978
+ klines: {
979
+ timestamp: EpochMilliseconds;
980
+ open: DecimalString;
981
+ high: DecimalString;
982
+ low: DecimalString;
983
+ close: DecimalString;
984
+ volume: DecimalString;
985
+ trades: number;
986
+ }[];
987
+ symbol?: string | undefined;
988
+ }>>;
989
+ type PerpsStatistic = z.infer<typeof PerpsStatisticSchema>;
990
+ declare const FetchPerpsStatisticsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
991
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
992
+ symbol: z.ZodOptional<z.ZodString>;
993
+ volume: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
994
+ open_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
995
+ 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<{
996
+ timestamp: EpochMilliseconds;
997
+ open: DecimalString;
998
+ high: DecimalString;
999
+ low: DecimalString;
1000
+ close: DecimalString;
1001
+ volume: DecimalString;
1002
+ trades: number;
1003
+ }, [EpochMilliseconds, DecimalString, DecimalString, DecimalString, DecimalString, DecimalString, number]>>>;
1004
+ }, z.core.$strip>, z.ZodTransform<{
1005
+ instrumentId: PerpsInstrumentId;
1006
+ symbol: string | undefined;
1007
+ volume: DecimalString;
1008
+ openPrice: DecimalString;
1009
+ klines: {
1010
+ timestamp: EpochMilliseconds;
1011
+ open: DecimalString;
1012
+ high: DecimalString;
1013
+ low: DecimalString;
1014
+ close: DecimalString;
1015
+ volume: DecimalString;
1016
+ trades: number;
1017
+ }[];
1018
+ }, {
1019
+ instrument_id: PerpsInstrumentId;
1020
+ volume: DecimalString;
1021
+ open_price: DecimalString;
1022
+ klines: {
1023
+ timestamp: EpochMilliseconds;
1024
+ open: DecimalString;
1025
+ high: DecimalString;
1026
+ low: DecimalString;
1027
+ close: DecimalString;
1028
+ volume: DecimalString;
1029
+ trades: number;
1030
+ }[];
1031
+ symbol?: string | undefined;
1032
+ }>>>;
1033
+ declare const PerpsStatisticUpdateSchema: z.ZodPipe<z.ZodObject<{
1034
+ iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1035
+ vol: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1036
+ open: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1037
+ 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<{
1038
+ timestamp: EpochMilliseconds;
1039
+ open: DecimalString;
1040
+ high: DecimalString;
1041
+ low: DecimalString;
1042
+ close: DecimalString;
1043
+ volume: DecimalString;
1044
+ trades: number;
1045
+ }, [EpochMilliseconds, DecimalString, DecimalString, DecimalString, DecimalString, DecimalString, number]>>>;
1046
+ }, z.core.$strip>, z.ZodTransform<{
1047
+ instrumentId: PerpsInstrumentId;
1048
+ volume: DecimalString;
1049
+ openPrice: DecimalString;
1050
+ klines: {
1051
+ timestamp: EpochMilliseconds;
1052
+ open: DecimalString;
1053
+ high: DecimalString;
1054
+ low: DecimalString;
1055
+ close: DecimalString;
1056
+ volume: DecimalString;
1057
+ trades: number;
1058
+ }[];
1059
+ }, {
1060
+ iid: PerpsInstrumentId;
1061
+ vol: DecimalString;
1062
+ open: DecimalString;
1063
+ klines: {
1064
+ timestamp: EpochMilliseconds;
1065
+ open: DecimalString;
1066
+ high: DecimalString;
1067
+ low: DecimalString;
1068
+ close: DecimalString;
1069
+ volume: DecimalString;
1070
+ trades: number;
1071
+ }[];
1072
+ }>>;
1073
+ 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<{
1074
+ price: DecimalString;
1075
+ quantity: DecimalString;
1076
+ }, [DecimalString, DecimalString]>>;
1077
+ type PerpsBookLevel = z.infer<typeof PerpsBookLevelSchema>;
1078
+ declare const PerpsBookSchema: z.ZodPipe<z.ZodObject<{
1079
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1080
+ 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<{
1081
+ price: DecimalString;
1082
+ quantity: DecimalString;
1083
+ }, [DecimalString, DecimalString]>>>;
1084
+ 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<{
1085
+ price: DecimalString;
1086
+ quantity: DecimalString;
1087
+ }, [DecimalString, DecimalString]>>>;
1088
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1089
+ sequence: z.ZodNumber;
1090
+ }, z.core.$strip>, z.ZodTransform<{
1091
+ instrumentId: PerpsInstrumentId;
1092
+ bids: {
1093
+ price: DecimalString;
1094
+ quantity: DecimalString;
1095
+ }[];
1096
+ asks: {
1097
+ price: DecimalString;
1098
+ quantity: DecimalString;
1099
+ }[];
1100
+ timestamp: EpochMilliseconds;
1101
+ sequence: number;
1102
+ }, {
1103
+ instrument_id: PerpsInstrumentId;
1104
+ bids: {
1105
+ price: DecimalString;
1106
+ quantity: DecimalString;
1107
+ }[];
1108
+ asks: {
1109
+ price: DecimalString;
1110
+ quantity: DecimalString;
1111
+ }[];
1112
+ timestamp: EpochMilliseconds;
1113
+ sequence: number;
1114
+ }>>;
1115
+ type PerpsBook = z.infer<typeof PerpsBookSchema>;
1116
+ declare const PerpsBookUpdateSchema: z.ZodPipe<z.ZodObject<{
1117
+ 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<{
1118
+ price: DecimalString;
1119
+ quantity: DecimalString;
1120
+ }, [DecimalString, DecimalString]>>>;
1121
+ 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<{
1122
+ price: DecimalString;
1123
+ quantity: DecimalString;
1124
+ }, [DecimalString, DecimalString]>>>;
1125
+ }, z.core.$strip>, z.ZodTransform<{
1126
+ bids: {
1127
+ price: DecimalString;
1128
+ quantity: DecimalString;
1129
+ }[];
1130
+ asks: {
1131
+ price: DecimalString;
1132
+ quantity: DecimalString;
1133
+ }[];
1134
+ }, {
1135
+ b: {
1136
+ price: DecimalString;
1137
+ quantity: DecimalString;
1138
+ }[];
1139
+ a: {
1140
+ price: DecimalString;
1141
+ quantity: DecimalString;
1142
+ }[];
1143
+ }>>;
1144
+ declare const PerpsBboSchema: z.ZodObject<{
1145
+ instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1146
+ bidPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1147
+ bidQuantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1148
+ askPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1149
+ askQuantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1150
+ timestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
1151
+ }, z.core.$strip>;
1152
+ type PerpsBbo = z.infer<typeof PerpsBboSchema>;
1153
+ declare const PerpsBboUpdateSchema: z.ZodPipe<z.ZodObject<{
1154
+ iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1155
+ bp: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1156
+ bq: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1157
+ ap: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1158
+ aq: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1159
+ }, z.core.$strip>, z.ZodTransform<{
1160
+ instrumentId: PerpsInstrumentId;
1161
+ bidPrice: DecimalString;
1162
+ bidQuantity: DecimalString;
1163
+ askPrice: DecimalString;
1164
+ askQuantity: DecimalString;
1165
+ }, {
1166
+ iid: PerpsInstrumentId;
1167
+ bp: DecimalString;
1168
+ bq: DecimalString;
1169
+ ap: DecimalString;
1170
+ aq: DecimalString;
1171
+ }>>;
1172
+ declare const PerpsPublicTradeSchema: z.ZodPipe<z.ZodObject<{
1173
+ trade_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
1174
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1175
+ side: z.ZodEnum<typeof PerpsSide>;
1176
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1177
+ quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1178
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1179
+ hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
1180
+ }, z.core.$strip>, z.ZodTransform<{
1181
+ tradeId: PerpsTradeId;
1182
+ instrumentId: PerpsInstrumentId;
1183
+ side: PerpsSide;
1184
+ price: DecimalString;
1185
+ quantity: DecimalString;
1186
+ timestamp: EpochMilliseconds;
1187
+ hash: _polymarket_types.TxHash | undefined;
1188
+ }, {
1189
+ trade_id: PerpsTradeId;
1190
+ instrument_id: PerpsInstrumentId;
1191
+ side: PerpsSide;
1192
+ price: DecimalString;
1193
+ quantity: DecimalString;
1194
+ timestamp: EpochMilliseconds;
1195
+ hash?: _polymarket_types.TxHash | undefined;
1196
+ }>>;
1197
+ type PerpsPublicTrade = z.infer<typeof PerpsPublicTradeSchema>;
1198
+ declare const PerpsPublicTradeUpdateSchema: z.ZodPipe<z.ZodObject<{
1199
+ tid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
1200
+ iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1201
+ side: z.ZodEnum<typeof PerpsSide>;
1202
+ p: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1203
+ qty: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1204
+ ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1205
+ hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
1206
+ }, z.core.$strip>, z.ZodTransform<{
1207
+ tradeId: PerpsTradeId;
1208
+ instrumentId: PerpsInstrumentId;
1209
+ side: PerpsSide;
1210
+ price: DecimalString;
1211
+ quantity: DecimalString;
1212
+ timestamp: EpochMilliseconds;
1213
+ hash: _polymarket_types.TxHash | undefined;
1214
+ }, {
1215
+ tid: PerpsTradeId;
1216
+ iid: PerpsInstrumentId;
1217
+ side: PerpsSide;
1218
+ p: DecimalString;
1219
+ qty: DecimalString;
1220
+ ts: EpochMilliseconds;
1221
+ hash?: _polymarket_types.TxHash | undefined;
1222
+ }>>;
1223
+ declare const FetchPerpsTradesResponseSchema: z.ZodObject<{
1224
+ data: z.ZodArray<z.ZodPipe<z.ZodObject<{
1225
+ trade_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
1226
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1227
+ side: z.ZodEnum<typeof PerpsSide>;
1228
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1229
+ quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1230
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1231
+ hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
1232
+ }, z.core.$strip>, z.ZodTransform<{
1233
+ tradeId: PerpsTradeId;
1234
+ instrumentId: PerpsInstrumentId;
1235
+ side: PerpsSide;
1236
+ price: DecimalString;
1237
+ quantity: DecimalString;
1238
+ timestamp: EpochMilliseconds;
1239
+ hash: _polymarket_types.TxHash | undefined;
1240
+ }, {
1241
+ trade_id: PerpsTradeId;
1242
+ instrument_id: PerpsInstrumentId;
1243
+ side: PerpsSide;
1244
+ price: DecimalString;
1245
+ quantity: DecimalString;
1246
+ timestamp: EpochMilliseconds;
1247
+ hash?: _polymarket_types.TxHash | undefined;
1248
+ }>>>;
1249
+ more: z.ZodBoolean;
1250
+ }, z.core.$strip>;
1251
+ declare const PerpsFundingRateSchema: z.ZodPipe<z.ZodObject<{
1252
+ funding_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1253
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1254
+ }, z.core.$strip>, z.ZodTransform<{
1255
+ fundingRate: DecimalString;
1256
+ timestamp: EpochMilliseconds;
1257
+ }, {
1258
+ funding_rate: DecimalString;
1259
+ timestamp: EpochMilliseconds;
1260
+ }>>;
1261
+ type PerpsFundingRate = z.infer<typeof PerpsFundingRateSchema>;
1262
+ declare const FetchPerpsFundingHistoryResponseSchema: z.ZodObject<{
1263
+ data: z.ZodArray<z.ZodPipe<z.ZodObject<{
1264
+ funding_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1265
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1266
+ }, z.core.$strip>, z.ZodTransform<{
1267
+ fundingRate: DecimalString;
1268
+ timestamp: EpochMilliseconds;
1269
+ }, {
1270
+ funding_rate: DecimalString;
1271
+ timestamp: EpochMilliseconds;
1272
+ }>>>;
1273
+ more: z.ZodBoolean;
1274
+ }, z.core.$strip>;
1275
+ declare const PerpsFeeScheduleEntrySchema: z.ZodPipe<z.ZodObject<{
1276
+ instrument_type: z.ZodEnum<typeof PerpsInstrumentType>;
1277
+ category: z.ZodEnum<typeof PerpsInstrumentCategory>;
1278
+ taker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1279
+ maker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1280
+ }, z.core.$strip>, z.ZodTransform<{
1281
+ category: PerpsInstrumentCategory;
1282
+ takerFeeRate: DecimalString;
1283
+ makerFeeRate: DecimalString;
1284
+ }, {
1285
+ instrument_type: PerpsInstrumentType.Perpetual;
1286
+ category: PerpsInstrumentCategory;
1287
+ taker_fee_rate: DecimalString;
1288
+ maker_fee_rate: DecimalString;
1289
+ }>>;
1290
+ type PerpsFeeScheduleEntry = z.infer<typeof PerpsFeeScheduleEntrySchema>;
1291
+ declare const PerpsFeesInfoSchema: z.ZodPipe<z.ZodObject<{
1292
+ fee_schedule: z.ZodArray<z.ZodPipe<z.ZodObject<{
1293
+ instrument_type: z.ZodEnum<typeof PerpsInstrumentType>;
1294
+ category: z.ZodEnum<typeof PerpsInstrumentCategory>;
1295
+ taker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1296
+ maker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1297
+ }, z.core.$strip>, z.ZodTransform<{
1298
+ category: PerpsInstrumentCategory;
1299
+ takerFeeRate: DecimalString;
1300
+ makerFeeRate: DecimalString;
1301
+ }, {
1302
+ instrument_type: PerpsInstrumentType.Perpetual;
1303
+ category: PerpsInstrumentCategory;
1304
+ taker_fee_rate: DecimalString;
1305
+ maker_fee_rate: DecimalString;
1306
+ }>>>;
1307
+ }, z.core.$strip>, z.ZodTransform<{
1308
+ feeSchedule: {
1309
+ category: PerpsInstrumentCategory;
1310
+ takerFeeRate: DecimalString;
1311
+ makerFeeRate: DecimalString;
1312
+ }[];
1313
+ }, {
1314
+ fee_schedule: {
1315
+ category: PerpsInstrumentCategory;
1316
+ takerFeeRate: DecimalString;
1317
+ makerFeeRate: DecimalString;
1318
+ }[];
1319
+ }>>;
1320
+ type PerpsFeesInfo = z.infer<typeof PerpsFeesInfoSchema>;
1321
+ declare const FetchPerpsFeesResponseSchema: z.ZodPipe<z.ZodObject<{
1322
+ fee_schedule: z.ZodArray<z.ZodPipe<z.ZodObject<{
1323
+ instrument_type: z.ZodEnum<typeof PerpsInstrumentType>;
1324
+ category: z.ZodEnum<typeof PerpsInstrumentCategory>;
1325
+ taker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1326
+ maker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1327
+ }, z.core.$strip>, z.ZodTransform<{
1328
+ category: PerpsInstrumentCategory;
1329
+ takerFeeRate: DecimalString;
1330
+ makerFeeRate: DecimalString;
1331
+ }, {
1332
+ instrument_type: PerpsInstrumentType.Perpetual;
1333
+ category: PerpsInstrumentCategory;
1334
+ taker_fee_rate: DecimalString;
1335
+ maker_fee_rate: DecimalString;
1336
+ }>>>;
1337
+ }, z.core.$strip>, z.ZodTransform<{
1338
+ feeSchedule: {
1339
+ category: PerpsInstrumentCategory;
1340
+ takerFeeRate: DecimalString;
1341
+ makerFeeRate: DecimalString;
1342
+ }[];
1343
+ }, {
1344
+ fee_schedule: {
1345
+ category: PerpsInstrumentCategory;
1346
+ takerFeeRate: DecimalString;
1347
+ makerFeeRate: DecimalString;
1348
+ }[];
1349
+ }>>;
1350
+ declare const FetchPerpsCandlesResponseSchema: z.ZodObject<{
1351
+ 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<{
1352
+ timestamp: EpochMilliseconds;
1353
+ open: DecimalString;
1354
+ high: DecimalString;
1355
+ low: DecimalString;
1356
+ close: DecimalString;
1357
+ volume: DecimalString;
1358
+ trades: number;
1359
+ }, [EpochMilliseconds, DecimalString, DecimalString, DecimalString, DecimalString, DecimalString, number]>>>;
1360
+ more: z.ZodBoolean;
1361
+ }, z.core.$strip>;
1362
+
1363
+ export { FetchPerpsAccountConfigResponseSchema, FetchPerpsBalancesResponseSchema, FetchPerpsCandlesResponseSchema, FetchPerpsFeesResponseSchema, FetchPerpsFundingHistoryResponseSchema, FetchPerpsInstrumentsResponseSchema, FetchPerpsPortfolioResponseSchema, FetchPerpsStatisticsResponseSchema, FetchPerpsTickersResponseSchema, FetchPerpsTradesResponseSchema, ListPerpsDepositsResponseSchema, ListPerpsEquityHistoryResponseSchema, ListPerpsFundingPaymentsResponseSchema, ListPerpsPnlHistoryResponseSchema, ListPerpsWithdrawalsResponseSchema, type PerpsAccountConfig, PerpsAccountConfigSchema, type PerpsAccountFundingPayment, PerpsAccountFundingPaymentEntrySchema, PerpsAccountFundingPaymentSchema, type PerpsBalance, PerpsBalanceSchema, type PerpsBbo, PerpsBboSchema, PerpsBboUpdateSchema, type PerpsBook, type PerpsBookLevel, PerpsBookLevelSchema, PerpsBookSchema, PerpsBookUpdateSchema, type PerpsCandle, PerpsCandleSchema, PerpsCreateProxyResponseSchema, PerpsCredentialsResponseSchema, PerpsDeleteProxyResponseSchema, type PerpsDeposit, PerpsDepositSchema, PerpsDepositStatus, PerpsDepositUpdateSchema, 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 PerpsPnlPoint, PerpsPnlPointSchema, type PerpsPortfolio, type PerpsPortfolioPosition, PerpsPortfolioPositionSchema, PerpsPortfolioSchema, type PerpsProxyKey, PerpsProxyKeySchema, type PerpsPublicTrade, PerpsPublicTradeSchema, PerpsPublicTradeUpdateSchema, type PerpsRiskTier, PerpsRiskTierSchema, PerpsSide, type PerpsStatistic, PerpsStatisticSchema, PerpsStatisticUpdateSchema, type PerpsTicker, PerpsTickerEntrySchema, PerpsTickerSchema, PerpsTradeId, PerpsWithdrawResponseSchema, type PerpsWithdrawal, PerpsWithdrawalId, PerpsWithdrawalSchema, PerpsWithdrawalStatus, PerpsWithdrawalUpdateSchema };