@polymarket/bindings 0.1.0-beta.1 → 0.1.0-beta.11

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