@polymarket/bindings 0.1.0-beta.9 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,20 +1,92 @@
1
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-B7JX0nMz.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 PerpsUpdateLeverageResult, a4 as PerpsUpdateLeverageResultSchema, a5 as PerpsWithdrawalAmount, a6 as PerpsWithdrawalIdSchema, a7 as PerpsWithdrawalStatusSchema, a8 as decimalString, a9 as perpsBaseUnits, aa as perpsDecimal } from '../orders-B7JX0nMz.js';
2
+ import { P as PerpsInstrumentId, a as PerpsEntityId, b as PerpsDepositStatus, c as PerpsWithdrawalId, d as PerpsKnownWithdrawalStatus, e as PerpsInternalTransferId, f as PerpsInternalTransferDirection, g as PerpsInstrumentType, h as PerpsInstrumentCategory, i as PerpsTradeId, j as PerpsSide } from '../orders-ClcuI-yo.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 PerpsWithdrawalStatus, ai as PerpsWithdrawalStatusSchema, aj as decimalString, ak as perpsBaseUnits, al as perpsDecimal } from '../orders-ClcuI-yo.js';
4
4
  import { DecimalString, EpochMilliseconds, BaseUnits } from '../index.js';
5
5
  import { z } from 'zod';
6
6
 
7
+ /**
8
+ * @experimental This API may change in a breaking way in any release, including patch releases.
9
+ */
7
10
  declare const PerpsBalanceSchema: z.ZodObject<{
8
11
  asset: z.ZodString;
9
12
  balance: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
10
13
  value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
11
14
  }, z.core.$strip>;
15
+ /**
16
+ * @experimental This API may change in a breaking way in any release, including patch releases.
17
+ */
12
18
  type PerpsBalance = z.infer<typeof PerpsBalanceSchema>;
19
+ /**
20
+ * @experimental This API may change in a breaking way in any release, including patch releases.
21
+ */
13
22
  declare const FetchPerpsBalancesResponseSchema: z.ZodArray<z.ZodObject<{
14
23
  asset: z.ZodString;
15
24
  balance: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
16
25
  value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
17
26
  }, z.core.$strip>>;
27
+ /**
28
+ * @experimental This API may change in a breaking way in any release, including patch releases.
29
+ */
30
+ declare const PerpsAccountStatsSchema: z.ZodPipe<z.ZodObject<{
31
+ volume_7d: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
32
+ taker_volume_7d: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
33
+ maker_volume_7d: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
34
+ account_maker_share_7d: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
35
+ entity_maker_share_7d: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
36
+ entity_id: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsEntityId, number>>>;
37
+ entity_name: z.ZodOptional<z.ZodString>;
38
+ }, z.core.$strip>, z.ZodTransform<{
39
+ volume7d: DecimalString;
40
+ takerVolume7d: DecimalString;
41
+ makerVolume7d: DecimalString;
42
+ accountMakerShare7d: DecimalString;
43
+ entityMakerShare7d: DecimalString | undefined;
44
+ entityId: PerpsEntityId | undefined;
45
+ entityName: string | undefined;
46
+ }, {
47
+ volume_7d: DecimalString;
48
+ taker_volume_7d: DecimalString;
49
+ maker_volume_7d: DecimalString;
50
+ account_maker_share_7d: DecimalString;
51
+ entity_maker_share_7d?: DecimalString | undefined;
52
+ entity_id?: PerpsEntityId | undefined;
53
+ entity_name?: string | undefined;
54
+ }>>;
55
+ /**
56
+ * @experimental This API may change in a breaking way in any release, including patch releases.
57
+ */
58
+ type PerpsAccountStats = z.infer<typeof PerpsAccountStatsSchema>;
59
+ /**
60
+ * @experimental This API may change in a breaking way in any release, including patch releases.
61
+ */
62
+ declare const FetchPerpsAccountStatsResponseSchema: z.ZodPipe<z.ZodObject<{
63
+ volume_7d: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
64
+ taker_volume_7d: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
65
+ maker_volume_7d: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
66
+ account_maker_share_7d: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
67
+ entity_maker_share_7d: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
68
+ entity_id: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsEntityId, number>>>;
69
+ entity_name: z.ZodOptional<z.ZodString>;
70
+ }, z.core.$strip>, z.ZodTransform<{
71
+ volume7d: DecimalString;
72
+ takerVolume7d: DecimalString;
73
+ makerVolume7d: DecimalString;
74
+ accountMakerShare7d: DecimalString;
75
+ entityMakerShare7d: DecimalString | undefined;
76
+ entityId: PerpsEntityId | undefined;
77
+ entityName: string | undefined;
78
+ }, {
79
+ volume_7d: DecimalString;
80
+ taker_volume_7d: DecimalString;
81
+ maker_volume_7d: DecimalString;
82
+ account_maker_share_7d: DecimalString;
83
+ entity_maker_share_7d?: DecimalString | undefined;
84
+ entity_id?: PerpsEntityId | undefined;
85
+ entity_name?: string | undefined;
86
+ }>>;
87
+ /**
88
+ * @experimental This API may change in a breaking way in any release, including patch releases.
89
+ */
18
90
  declare const PerpsPortfolioPositionSchema: z.ZodPipe<z.ZodObject<{
19
91
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
20
92
  symbol: z.ZodString;
@@ -58,14 +130,26 @@ declare const PerpsPortfolioPositionSchema: z.ZodPipe<z.ZodObject<{
58
130
  return_on_equity: DecimalString;
59
131
  cumulative_funding: DecimalString;
60
132
  }>>;
133
+ /**
134
+ * @experimental This API may change in a breaking way in any release, including patch releases.
135
+ */
61
136
  type PerpsPortfolioPosition = z.infer<typeof PerpsPortfolioPositionSchema>;
137
+ /**
138
+ * @experimental This API may change in a breaking way in any release, including patch releases.
139
+ */
62
140
  declare const PerpsMarginSummarySchema: z.ZodObject<{
63
141
  totalAccountValue: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
64
142
  totalInitialMargin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
65
143
  totalMaintenanceMargin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
66
144
  totalPositionValue: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
67
145
  }, z.core.$strip>;
146
+ /**
147
+ * @experimental This API may change in a breaking way in any release, including patch releases.
148
+ */
68
149
  type PerpsMarginSummary = z.infer<typeof PerpsMarginSummarySchema>;
150
+ /**
151
+ * @experimental This API may change in a breaking way in any release, including patch releases.
152
+ */
69
153
  declare const PerpsPortfolioSchema: z.ZodPipe<z.ZodObject<{
70
154
  positions: z.ZodArray<z.ZodPipe<z.ZodObject<{
71
155
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
@@ -180,7 +264,13 @@ declare const PerpsPortfolioSchema: z.ZodPipe<z.ZodObject<{
180
264
  in_liquidation: boolean;
181
265
  timestamp: EpochMilliseconds;
182
266
  }>>;
267
+ /**
268
+ * @experimental This API may change in a breaking way in any release, including patch releases.
269
+ */
183
270
  type PerpsPortfolio = z.infer<typeof PerpsPortfolioSchema>;
271
+ /**
272
+ * @experimental This API may change in a breaking way in any release, including patch releases.
273
+ */
184
274
  declare const FetchPerpsPortfolioResponseSchema: z.ZodPipe<z.ZodObject<{
185
275
  positions: z.ZodArray<z.ZodPipe<z.ZodObject<{
186
276
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
@@ -295,6 +385,9 @@ declare const FetchPerpsPortfolioResponseSchema: z.ZodPipe<z.ZodObject<{
295
385
  in_liquidation: boolean;
296
386
  timestamp: EpochMilliseconds;
297
387
  }>>;
388
+ /**
389
+ * @experimental This API may change in a breaking way in any release, including patch releases.
390
+ */
298
391
  declare const PerpsAccountFundingPaymentSchema: z.ZodPipe<z.ZodObject<{
299
392
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
300
393
  size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -317,7 +410,13 @@ declare const PerpsAccountFundingPaymentSchema: z.ZodPipe<z.ZodObject<{
317
410
  funding: DecimalString;
318
411
  timestamp: EpochMilliseconds;
319
412
  }>>;
413
+ /**
414
+ * @experimental This API may change in a breaking way in any release, including patch releases.
415
+ */
320
416
  type PerpsAccountFundingPayment = z.infer<typeof PerpsAccountFundingPaymentSchema>;
417
+ /**
418
+ * @experimental This API may change in a breaking way in any release, including patch releases.
419
+ */
321
420
  declare const ListPerpsFundingPaymentsResponseSchema: z.ZodObject<{
322
421
  data: z.ZodArray<z.ZodPipe<z.ZodObject<{
323
422
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
@@ -343,6 +442,9 @@ declare const ListPerpsFundingPaymentsResponseSchema: z.ZodObject<{
343
442
  }>>>;
344
443
  more: z.ZodBoolean;
345
444
  }, z.core.$strip>;
445
+ /**
446
+ * @experimental This API may change in a breaking way in any release, including patch releases.
447
+ */
346
448
  declare const PerpsAccountFundingPaymentEntrySchema: z.ZodPipe<z.ZodObject<{
347
449
  iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
348
450
  sz: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -365,6 +467,9 @@ declare const PerpsAccountFundingPaymentEntrySchema: z.ZodPipe<z.ZodObject<{
365
467
  fua: string;
366
468
  ts: EpochMilliseconds;
367
469
  }>>;
470
+ /**
471
+ * @experimental This API may change in a breaking way in any release, including patch releases.
472
+ */
368
473
  declare const PerpsAccountConfigSchema: z.ZodPipe<z.ZodObject<{
369
474
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
370
475
  leverage: z.ZodNumber;
@@ -378,7 +483,13 @@ declare const PerpsAccountConfigSchema: z.ZodPipe<z.ZodObject<{
378
483
  leverage: number;
379
484
  cross: boolean;
380
485
  }>>;
486
+ /**
487
+ * @experimental This API may change in a breaking way in any release, including patch releases.
488
+ */
381
489
  type PerpsAccountConfig = z.infer<typeof PerpsAccountConfigSchema>;
490
+ /**
491
+ * @experimental This API may change in a breaking way in any release, including patch releases.
492
+ */
382
493
  declare const FetchPerpsAccountConfigResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
383
494
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
384
495
  leverage: z.ZodNumber;
@@ -392,11 +503,20 @@ declare const FetchPerpsAccountConfigResponseSchema: z.ZodArray<z.ZodPipe<z.ZodO
392
503
  leverage: number;
393
504
  cross: boolean;
394
505
  }>>>;
506
+ /**
507
+ * @experimental This API may change in a breaking way in any release, including patch releases.
508
+ */
395
509
  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
510
  timestamp: EpochMilliseconds;
397
511
  equity: DecimalString;
398
512
  }, [EpochMilliseconds, DecimalString]>>;
513
+ /**
514
+ * @experimental This API may change in a breaking way in any release, including patch releases.
515
+ */
399
516
  type PerpsEquityPoint = z.infer<typeof PerpsEquityPointSchema>;
517
+ /**
518
+ * @experimental This API may change in a breaking way in any release, including patch releases.
519
+ */
400
520
  declare const ListPerpsEquityHistoryResponseSchema: z.ZodObject<{
401
521
  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
522
  timestamp: EpochMilliseconds;
@@ -404,11 +524,20 @@ declare const ListPerpsEquityHistoryResponseSchema: z.ZodObject<{
404
524
  }, [EpochMilliseconds, DecimalString]>>>;
405
525
  more: z.ZodBoolean;
406
526
  }, z.core.$strip>;
527
+ /**
528
+ * @experimental This API may change in a breaking way in any release, including patch releases.
529
+ */
407
530
  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
531
  timestamp: EpochMilliseconds;
409
532
  pnl: DecimalString;
410
533
  }, [EpochMilliseconds, DecimalString]>>;
534
+ /**
535
+ * @experimental This API may change in a breaking way in any release, including patch releases.
536
+ */
411
537
  type PerpsPnlPoint = z.infer<typeof PerpsPnlPointSchema>;
538
+ /**
539
+ * @experimental This API may change in a breaking way in any release, including patch releases.
540
+ */
412
541
  declare const ListPerpsPnlHistoryResponseSchema: z.ZodObject<{
413
542
  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
543
  timestamp: EpochMilliseconds;
@@ -416,6 +545,9 @@ declare const ListPerpsPnlHistoryResponseSchema: z.ZodObject<{
416
545
  }, [EpochMilliseconds, DecimalString]>>>;
417
546
  more: z.ZodBoolean;
418
547
  }, z.core.$strip>;
548
+ /**
549
+ * @experimental This API may change in a breaking way in any release, including patch releases.
550
+ */
419
551
  declare const PerpsProxyKeySchema: z.ZodPipe<z.ZodObject<{
420
552
  proxy: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
421
553
  label: z.ZodOptional<z.ZodString>;
@@ -429,7 +561,13 @@ declare const PerpsProxyKeySchema: z.ZodPipe<z.ZodObject<{
429
561
  expiry: EpochMilliseconds;
430
562
  label?: string | undefined;
431
563
  }>>;
564
+ /**
565
+ * @experimental This API may change in a breaking way in any release, including patch releases.
566
+ */
432
567
  type PerpsProxyKey = z.infer<typeof PerpsProxyKeySchema>;
568
+ /**
569
+ * @experimental This API may change in a breaking way in any release, including patch releases.
570
+ */
433
571
  declare const PerpsCredentialsResponseSchema: z.ZodPipe<z.ZodObject<{
434
572
  address: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
435
573
  keys: z.ZodArray<z.ZodPipe<z.ZodObject<{
@@ -460,9 +598,15 @@ declare const PerpsCredentialsResponseSchema: z.ZodPipe<z.ZodObject<{
460
598
  expiresAt: EpochMilliseconds;
461
599
  }[];
462
600
  }>>;
601
+ /**
602
+ * @experimental This API may change in a breaking way in any release, including patch releases.
603
+ */
463
604
  declare const PerpsCreateProxyResponseSchema: z.ZodObject<{
464
605
  secret: z.ZodString;
465
606
  }, z.core.$strip>;
607
+ /**
608
+ * @experimental This API may change in a breaking way in any release, including patch releases.
609
+ */
466
610
  declare const PerpsDeleteProxyResponseSchema: z.ZodObject<{
467
611
  status: z.ZodEnum<{
468
612
  ok: "ok";
@@ -471,6 +615,9 @@ declare const PerpsDeleteProxyResponseSchema: z.ZodObject<{
471
615
  error: z.ZodOptional<z.ZodString>;
472
616
  }, z.core.$strip>;
473
617
 
618
+ /**
619
+ * @experimental This API may change in a breaking way in any release, including patch releases.
620
+ */
474
621
  declare const PerpsDepositSchema: z.ZodPipe<z.ZodObject<{
475
622
  hash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
476
623
  asset: z.ZodString;
@@ -505,7 +652,13 @@ declare const PerpsDepositSchema: z.ZodPipe<z.ZodObject<{
505
652
  created_timestamp: EpochMilliseconds;
506
653
  confirmed_timestamp?: EpochMilliseconds | undefined;
507
654
  }>>;
655
+ /**
656
+ * @experimental This API may change in a breaking way in any release, including patch releases.
657
+ */
508
658
  type PerpsDeposit = z.infer<typeof PerpsDepositSchema>;
659
+ /**
660
+ * @experimental This API may change in a breaking way in any release, including patch releases.
661
+ */
509
662
  declare const ListPerpsDepositsResponseSchema: z.ZodObject<{
510
663
  data: z.ZodArray<z.ZodPipe<z.ZodObject<{
511
664
  hash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
@@ -543,6 +696,9 @@ declare const ListPerpsDepositsResponseSchema: z.ZodObject<{
543
696
  }>>>;
544
697
  more: z.ZodBoolean;
545
698
  }, z.core.$strip>;
699
+ /**
700
+ * @experimental This API may change in a breaking way in any release, including patch releases.
701
+ */
546
702
  declare const PerpsDepositUpdateSchema: z.ZodPipe<z.ZodObject<{
547
703
  hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
548
704
  asset: z.ZodString;
@@ -559,12 +715,15 @@ declare const PerpsDepositUpdateSchema: z.ZodPipe<z.ZodObject<{
559
715
  status: PerpsDepositStatus;
560
716
  hash?: _polymarket_types.TxHash | undefined;
561
717
  }>>;
718
+ /**
719
+ * @experimental This API may change in a breaking way in any release, including patch releases.
720
+ */
562
721
  declare const PerpsWithdrawalSchema: z.ZodPipe<z.ZodObject<{
563
722
  withdraw_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsWithdrawalId, number>>;
564
723
  asset: z.ZodString;
565
724
  amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
566
725
  fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
567
- status: z.ZodEnum<typeof PerpsWithdrawalStatus>;
726
+ status: z.ZodPipe<z.ZodString, z.ZodTransform<PerpsKnownWithdrawalStatus | (string & {}), string>>;
568
727
  to: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
569
728
  hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
570
729
  confirmations: z.ZodNumber;
@@ -576,7 +735,7 @@ declare const PerpsWithdrawalSchema: z.ZodPipe<z.ZodObject<{
576
735
  asset: string;
577
736
  amount: BaseUnits;
578
737
  fee: DecimalString;
579
- status: PerpsWithdrawalStatus;
738
+ status: PerpsKnownWithdrawalStatus | (string & {});
580
739
  to: _polymarket_types.EvmAddress;
581
740
  hash: _polymarket_types.TxHash | undefined;
582
741
  confirmations: number;
@@ -588,7 +747,7 @@ declare const PerpsWithdrawalSchema: z.ZodPipe<z.ZodObject<{
588
747
  asset: string;
589
748
  amount: BaseUnits;
590
749
  fee: DecimalString;
591
- status: PerpsWithdrawalStatus;
750
+ status: PerpsKnownWithdrawalStatus | (string & {});
592
751
  to: _polymarket_types.EvmAddress;
593
752
  confirmations: number;
594
753
  required_confirmations: number;
@@ -596,14 +755,20 @@ declare const PerpsWithdrawalSchema: z.ZodPipe<z.ZodObject<{
596
755
  hash?: _polymarket_types.TxHash | undefined;
597
756
  confirmed_timestamp?: EpochMilliseconds | undefined;
598
757
  }>>;
758
+ /**
759
+ * @experimental This API may change in a breaking way in any release, including patch releases.
760
+ */
599
761
  type PerpsWithdrawal = z.infer<typeof PerpsWithdrawalSchema>;
762
+ /**
763
+ * @experimental This API may change in a breaking way in any release, including patch releases.
764
+ */
600
765
  declare const ListPerpsWithdrawalsResponseSchema: z.ZodObject<{
601
766
  data: z.ZodArray<z.ZodPipe<z.ZodObject<{
602
767
  withdraw_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsWithdrawalId, number>>;
603
768
  asset: z.ZodString;
604
769
  amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
605
770
  fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
606
- status: z.ZodEnum<typeof PerpsWithdrawalStatus>;
771
+ status: z.ZodPipe<z.ZodString, z.ZodTransform<PerpsKnownWithdrawalStatus | (string & {}), string>>;
607
772
  to: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
608
773
  hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
609
774
  confirmations: z.ZodNumber;
@@ -615,7 +780,7 @@ declare const ListPerpsWithdrawalsResponseSchema: z.ZodObject<{
615
780
  asset: string;
616
781
  amount: BaseUnits;
617
782
  fee: DecimalString;
618
- status: PerpsWithdrawalStatus;
783
+ status: PerpsKnownWithdrawalStatus | (string & {});
619
784
  to: _polymarket_types.EvmAddress;
620
785
  hash: _polymarket_types.TxHash | undefined;
621
786
  confirmations: number;
@@ -627,7 +792,7 @@ declare const ListPerpsWithdrawalsResponseSchema: z.ZodObject<{
627
792
  asset: string;
628
793
  amount: BaseUnits;
629
794
  fee: DecimalString;
630
- status: PerpsWithdrawalStatus;
795
+ status: PerpsKnownWithdrawalStatus | (string & {});
631
796
  to: _polymarket_types.EvmAddress;
632
797
  confirmations: number;
633
798
  required_confirmations: number;
@@ -637,6 +802,9 @@ declare const ListPerpsWithdrawalsResponseSchema: z.ZodObject<{
637
802
  }>>>;
638
803
  more: z.ZodBoolean;
639
804
  }, z.core.$strip>;
805
+ /**
806
+ * @experimental This API may change in a breaking way in any release, including patch releases.
807
+ */
640
808
  declare const PerpsWithdrawResponseSchema: z.ZodPipe<z.ZodObject<{
641
809
  status: z.ZodEnum<{
642
810
  ok: "ok";
@@ -653,12 +821,15 @@ declare const PerpsWithdrawResponseSchema: z.ZodPipe<z.ZodObject<{
653
821
  withdraw_id?: PerpsWithdrawalId | undefined;
654
822
  error?: string | undefined;
655
823
  }>>;
824
+ /**
825
+ * @experimental This API may change in a breaking way in any release, including patch releases.
826
+ */
656
827
  declare const PerpsWithdrawalUpdateSchema: z.ZodPipe<z.ZodObject<{
657
828
  withdraw_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsWithdrawalId, number>>;
658
829
  asset: z.ZodString;
659
830
  amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
660
831
  fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
661
- status: z.ZodEnum<typeof PerpsWithdrawalStatus>;
832
+ status: z.ZodPipe<z.ZodString, z.ZodTransform<PerpsKnownWithdrawalStatus | (string & {}), string>>;
662
833
  to: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
663
834
  hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
664
835
  }, z.core.$strip>, z.ZodTransform<{
@@ -666,7 +837,7 @@ declare const PerpsWithdrawalUpdateSchema: z.ZodPipe<z.ZodObject<{
666
837
  asset: string;
667
838
  amount: BaseUnits;
668
839
  fee: DecimalString;
669
- status: PerpsWithdrawalStatus;
840
+ status: PerpsKnownWithdrawalStatus | (string & {});
670
841
  to: _polymarket_types.EvmAddress;
671
842
  hash: _polymarket_types.TxHash | undefined;
672
843
  }, {
@@ -674,10 +845,13 @@ declare const PerpsWithdrawalUpdateSchema: z.ZodPipe<z.ZodObject<{
674
845
  asset: string;
675
846
  amount: BaseUnits;
676
847
  fee: DecimalString;
677
- status: PerpsWithdrawalStatus;
848
+ status: PerpsKnownWithdrawalStatus | (string & {});
678
849
  to: _polymarket_types.EvmAddress;
679
850
  hash?: _polymarket_types.TxHash | undefined;
680
851
  }>>;
852
+ /**
853
+ * @experimental This API may change in a breaking way in any release, including patch releases.
854
+ */
681
855
  declare const PerpsInternalTransferSchema: z.ZodObject<{
682
856
  transferId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInternalTransferId, number>>;
683
857
  asset: z.ZodString;
@@ -687,13 +861,25 @@ declare const PerpsInternalTransferSchema: z.ZodObject<{
687
861
  label: z.ZodOptional<z.ZodString>;
688
862
  createdTimestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
689
863
  }, z.core.$strip>;
864
+ /**
865
+ * @experimental This API may change in a breaking way in any release, including patch releases.
866
+ */
690
867
  type PerpsInternalTransfer = z.infer<typeof PerpsInternalTransferSchema>;
691
868
 
869
+ /**
870
+ * @experimental This API may change in a breaking way in any release, including patch releases.
871
+ */
692
872
  declare const PerpsRiskTierSchema: z.ZodObject<{
693
873
  lowerBound: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
694
874
  maxLeverage: z.ZodNumber;
695
875
  }, z.core.$strip>;
876
+ /**
877
+ * @experimental This API may change in a breaking way in any release, including patch releases.
878
+ */
696
879
  type PerpsRiskTier = z.infer<typeof PerpsRiskTierSchema>;
880
+ /**
881
+ * @experimental This API may change in a breaking way in any release, including patch releases.
882
+ */
697
883
  declare const PerpsInstrumentSchema: z.ZodPipe<z.ZodObject<{
698
884
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
699
885
  instrument_type: z.ZodEnum<typeof PerpsInstrumentType>;
@@ -711,6 +897,7 @@ declare const PerpsInstrumentSchema: z.ZodPipe<z.ZodObject<{
711
897
  max_market_notional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
712
898
  max_limit_notional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
713
899
  max_leverage: z.ZodNumber;
900
+ isolated_only: z.ZodBoolean;
714
901
  risk_tiers: z.ZodArray<z.ZodPipe<z.ZodObject<{
715
902
  lower_bound: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
716
903
  max_leverage: z.ZodNumber;
@@ -737,6 +924,7 @@ declare const PerpsInstrumentSchema: z.ZodPipe<z.ZodObject<{
737
924
  maxMarketNotional: DecimalString;
738
925
  maxLimitNotional: DecimalString;
739
926
  maxLeverage: number;
927
+ isolatedOnly: boolean;
740
928
  riskTiers: {
741
929
  lowerBound: DecimalString;
742
930
  maxLeverage: number;
@@ -758,12 +946,19 @@ declare const PerpsInstrumentSchema: z.ZodPipe<z.ZodObject<{
758
946
  max_market_notional: DecimalString;
759
947
  max_limit_notional: DecimalString;
760
948
  max_leverage: number;
949
+ isolated_only: boolean;
761
950
  risk_tiers: {
762
951
  lowerBound: DecimalString;
763
952
  maxLeverage: number;
764
953
  }[];
765
954
  }>>;
955
+ /**
956
+ * @experimental This API may change in a breaking way in any release, including patch releases.
957
+ */
766
958
  type PerpsInstrument = z.infer<typeof PerpsInstrumentSchema>;
959
+ /**
960
+ * @experimental This API may change in a breaking way in any release, including patch releases.
961
+ */
767
962
  declare const FetchPerpsInstrumentsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
768
963
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
769
964
  instrument_type: z.ZodEnum<typeof PerpsInstrumentType>;
@@ -781,6 +976,7 @@ declare const FetchPerpsInstrumentsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObj
781
976
  max_market_notional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
782
977
  max_limit_notional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
783
978
  max_leverage: z.ZodNumber;
979
+ isolated_only: z.ZodBoolean;
784
980
  risk_tiers: z.ZodArray<z.ZodPipe<z.ZodObject<{
785
981
  lower_bound: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
786
982
  max_leverage: z.ZodNumber;
@@ -807,6 +1003,7 @@ declare const FetchPerpsInstrumentsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObj
807
1003
  maxMarketNotional: DecimalString;
808
1004
  maxLimitNotional: DecimalString;
809
1005
  maxLeverage: number;
1006
+ isolatedOnly: boolean;
810
1007
  riskTiers: {
811
1008
  lowerBound: DecimalString;
812
1009
  maxLeverage: number;
@@ -828,11 +1025,15 @@ declare const FetchPerpsInstrumentsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObj
828
1025
  max_market_notional: DecimalString;
829
1026
  max_limit_notional: DecimalString;
830
1027
  max_leverage: number;
1028
+ isolated_only: boolean;
831
1029
  risk_tiers: {
832
1030
  lowerBound: DecimalString;
833
1031
  maxLeverage: number;
834
1032
  }[];
835
1033
  }>>>;
1034
+ /**
1035
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1036
+ */
836
1037
  declare const PerpsTickerSchema: z.ZodPipe<z.ZodObject<{
837
1038
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
838
1039
  symbol: z.ZodString;
@@ -867,10 +1068,16 @@ declare const PerpsTickerSchema: z.ZodPipe<z.ZodObject<{
867
1068
  next_funding: EpochMilliseconds;
868
1069
  timestamp?: EpochMilliseconds | undefined;
869
1070
  }>>;
1071
+ /**
1072
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1073
+ */
870
1074
  type PerpsTicker = z.infer<typeof PerpsTickerSchema> & {
871
1075
  openPrice?: DecimalString;
872
1076
  volume24h?: DecimalString;
873
1077
  };
1078
+ /**
1079
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1080
+ */
874
1081
  declare const FetchPerpsTickersResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
875
1082
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
876
1083
  symbol: z.ZodString;
@@ -905,6 +1112,9 @@ declare const FetchPerpsTickersResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<
905
1112
  next_funding: EpochMilliseconds;
906
1113
  timestamp?: EpochMilliseconds | undefined;
907
1114
  }>>>;
1115
+ /**
1116
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1117
+ */
908
1118
  declare const PerpsTickerEntrySchema: z.ZodPipe<z.ZodObject<{
909
1119
  iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
910
1120
  idx: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -933,6 +1143,9 @@ declare const PerpsTickerEntrySchema: z.ZodPipe<z.ZodObject<{
933
1143
  fr: DecimalString;
934
1144
  nxf: EpochMilliseconds;
935
1145
  }>>;
1146
+ /**
1147
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1148
+ */
936
1149
  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
1150
  timestamp: EpochMilliseconds;
938
1151
  open: DecimalString;
@@ -942,7 +1155,13 @@ declare const PerpsCandleSchema: z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.
942
1155
  volume: DecimalString;
943
1156
  trades: number;
944
1157
  }, [EpochMilliseconds, DecimalString, DecimalString, DecimalString, DecimalString, DecimalString, number]>>;
1158
+ /**
1159
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1160
+ */
945
1161
  type PerpsCandle = z.infer<typeof PerpsCandleSchema>;
1162
+ /**
1163
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1164
+ */
946
1165
  declare const PerpsStatisticSchema: z.ZodPipe<z.ZodObject<{
947
1166
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
948
1167
  symbol: z.ZodOptional<z.ZodString>;
@@ -986,7 +1205,13 @@ declare const PerpsStatisticSchema: z.ZodPipe<z.ZodObject<{
986
1205
  }[];
987
1206
  symbol?: string | undefined;
988
1207
  }>>;
1208
+ /**
1209
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1210
+ */
989
1211
  type PerpsStatistic = z.infer<typeof PerpsStatisticSchema>;
1212
+ /**
1213
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1214
+ */
990
1215
  declare const FetchPerpsStatisticsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
991
1216
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
992
1217
  symbol: z.ZodOptional<z.ZodString>;
@@ -1030,6 +1255,9 @@ declare const FetchPerpsStatisticsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObje
1030
1255
  }[];
1031
1256
  symbol?: string | undefined;
1032
1257
  }>>>;
1258
+ /**
1259
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1260
+ */
1033
1261
  declare const PerpsStatisticUpdateSchema: z.ZodPipe<z.ZodObject<{
1034
1262
  iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1035
1263
  vol: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -1070,11 +1298,20 @@ declare const PerpsStatisticUpdateSchema: z.ZodPipe<z.ZodObject<{
1070
1298
  trades: number;
1071
1299
  }[];
1072
1300
  }>>;
1301
+ /**
1302
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1303
+ */
1073
1304
  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
1305
  price: DecimalString;
1075
1306
  quantity: DecimalString;
1076
1307
  }, [DecimalString, DecimalString]>>;
1308
+ /**
1309
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1310
+ */
1077
1311
  type PerpsBookLevel = z.infer<typeof PerpsBookLevelSchema>;
1312
+ /**
1313
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1314
+ */
1078
1315
  declare const PerpsBookSchema: z.ZodPipe<z.ZodObject<{
1079
1316
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1080
1317
  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<{
@@ -1112,7 +1349,13 @@ declare const PerpsBookSchema: z.ZodPipe<z.ZodObject<{
1112
1349
  timestamp: EpochMilliseconds;
1113
1350
  sequence: number;
1114
1351
  }>>;
1352
+ /**
1353
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1354
+ */
1115
1355
  type PerpsBook = z.infer<typeof PerpsBookSchema>;
1356
+ /**
1357
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1358
+ */
1116
1359
  declare const PerpsBookUpdateSchema: z.ZodPipe<z.ZodObject<{
1117
1360
  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
1361
  price: DecimalString;
@@ -1141,6 +1384,9 @@ declare const PerpsBookUpdateSchema: z.ZodPipe<z.ZodObject<{
1141
1384
  quantity: DecimalString;
1142
1385
  }[];
1143
1386
  }>>;
1387
+ /**
1388
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1389
+ */
1144
1390
  declare const PerpsBboSchema: z.ZodObject<{
1145
1391
  instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1146
1392
  bidPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -1149,7 +1395,13 @@ declare const PerpsBboSchema: z.ZodObject<{
1149
1395
  askQuantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1150
1396
  timestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
1151
1397
  }, z.core.$strip>;
1398
+ /**
1399
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1400
+ */
1152
1401
  type PerpsBbo = z.infer<typeof PerpsBboSchema>;
1402
+ /**
1403
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1404
+ */
1153
1405
  declare const PerpsBboUpdateSchema: z.ZodPipe<z.ZodObject<{
1154
1406
  iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1155
1407
  bp: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -1169,6 +1421,9 @@ declare const PerpsBboUpdateSchema: z.ZodPipe<z.ZodObject<{
1169
1421
  ap: DecimalString;
1170
1422
  aq: DecimalString;
1171
1423
  }>>;
1424
+ /**
1425
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1426
+ */
1172
1427
  declare const PerpsPublicTradeSchema: z.ZodPipe<z.ZodObject<{
1173
1428
  trade_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
1174
1429
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
@@ -1194,7 +1449,13 @@ declare const PerpsPublicTradeSchema: z.ZodPipe<z.ZodObject<{
1194
1449
  timestamp: EpochMilliseconds;
1195
1450
  hash?: _polymarket_types.TxHash | undefined;
1196
1451
  }>>;
1452
+ /**
1453
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1454
+ */
1197
1455
  type PerpsPublicTrade = z.infer<typeof PerpsPublicTradeSchema>;
1456
+ /**
1457
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1458
+ */
1198
1459
  declare const PerpsPublicTradeUpdateSchema: z.ZodPipe<z.ZodObject<{
1199
1460
  tid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
1200
1461
  iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
@@ -1220,6 +1481,9 @@ declare const PerpsPublicTradeUpdateSchema: z.ZodPipe<z.ZodObject<{
1220
1481
  ts: EpochMilliseconds;
1221
1482
  hash?: _polymarket_types.TxHash | undefined;
1222
1483
  }>>;
1484
+ /**
1485
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1486
+ */
1223
1487
  declare const FetchPerpsTradesResponseSchema: z.ZodObject<{
1224
1488
  data: z.ZodArray<z.ZodPipe<z.ZodObject<{
1225
1489
  trade_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
@@ -1248,6 +1512,9 @@ declare const FetchPerpsTradesResponseSchema: z.ZodObject<{
1248
1512
  }>>>;
1249
1513
  more: z.ZodBoolean;
1250
1514
  }, z.core.$strip>;
1515
+ /**
1516
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1517
+ */
1251
1518
  declare const PerpsFundingRateSchema: z.ZodPipe<z.ZodObject<{
1252
1519
  funding_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1253
1520
  timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
@@ -1258,7 +1525,13 @@ declare const PerpsFundingRateSchema: z.ZodPipe<z.ZodObject<{
1258
1525
  funding_rate: DecimalString;
1259
1526
  timestamp: EpochMilliseconds;
1260
1527
  }>>;
1528
+ /**
1529
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1530
+ */
1261
1531
  type PerpsFundingRate = z.infer<typeof PerpsFundingRateSchema>;
1532
+ /**
1533
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1534
+ */
1262
1535
  declare const FetchPerpsFundingHistoryResponseSchema: z.ZodObject<{
1263
1536
  data: z.ZodArray<z.ZodPipe<z.ZodObject<{
1264
1537
  funding_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -1272,81 +1545,202 @@ declare const FetchPerpsFundingHistoryResponseSchema: z.ZodObject<{
1272
1545
  }>>>;
1273
1546
  more: z.ZodBoolean;
1274
1547
  }, z.core.$strip>;
1548
+ declare const PerpsFeeTierSchema: z.ZodPipe<z.ZodObject<{
1549
+ min_volume_30d: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1550
+ taker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1551
+ maker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1552
+ }, z.core.$strip>, z.ZodTransform<{
1553
+ minVolume30d: DecimalString;
1554
+ takerFeeRate: DecimalString;
1555
+ makerFeeRate: DecimalString;
1556
+ }, {
1557
+ min_volume_30d: DecimalString;
1558
+ taker_fee_rate: DecimalString;
1559
+ maker_fee_rate: DecimalString;
1560
+ }>>;
1561
+ type PerpsFeeTier = z.infer<typeof PerpsFeeTierSchema>;
1562
+ /**
1563
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1564
+ */
1275
1565
  declare const PerpsFeeScheduleEntrySchema: z.ZodPipe<z.ZodObject<{
1276
1566
  instrument_type: z.ZodEnum<typeof PerpsInstrumentType>;
1277
1567
  category: z.ZodEnum<typeof PerpsInstrumentCategory>;
1278
1568
  taker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1279
1569
  maker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1570
+ tiers: z.ZodArray<z.ZodPipe<z.ZodObject<{
1571
+ min_volume_30d: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1572
+ taker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1573
+ maker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1574
+ }, z.core.$strip>, z.ZodTransform<{
1575
+ minVolume30d: DecimalString;
1576
+ takerFeeRate: DecimalString;
1577
+ makerFeeRate: DecimalString;
1578
+ }, {
1579
+ min_volume_30d: DecimalString;
1580
+ taker_fee_rate: DecimalString;
1581
+ maker_fee_rate: DecimalString;
1582
+ }>>>;
1280
1583
  }, z.core.$strip>, z.ZodTransform<{
1281
1584
  category: PerpsInstrumentCategory;
1282
1585
  takerFeeRate: DecimalString;
1283
1586
  makerFeeRate: DecimalString;
1587
+ tiers: {
1588
+ minVolume30d: DecimalString;
1589
+ takerFeeRate: DecimalString;
1590
+ makerFeeRate: DecimalString;
1591
+ }[];
1284
1592
  }, {
1285
1593
  instrument_type: PerpsInstrumentType.Perpetual;
1286
1594
  category: PerpsInstrumentCategory;
1287
1595
  taker_fee_rate: DecimalString;
1288
1596
  maker_fee_rate: DecimalString;
1597
+ tiers: {
1598
+ minVolume30d: DecimalString;
1599
+ takerFeeRate: DecimalString;
1600
+ makerFeeRate: DecimalString;
1601
+ }[];
1289
1602
  }>>;
1603
+ /**
1604
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1605
+ */
1290
1606
  type PerpsFeeScheduleEntry = z.infer<typeof PerpsFeeScheduleEntrySchema>;
1607
+ /**
1608
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1609
+ */
1291
1610
  declare const PerpsFeesInfoSchema: z.ZodPipe<z.ZodObject<{
1292
1611
  fee_schedule: z.ZodArray<z.ZodPipe<z.ZodObject<{
1293
1612
  instrument_type: z.ZodEnum<typeof PerpsInstrumentType>;
1294
1613
  category: z.ZodEnum<typeof PerpsInstrumentCategory>;
1295
1614
  taker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1296
1615
  maker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1616
+ tiers: z.ZodArray<z.ZodPipe<z.ZodObject<{
1617
+ min_volume_30d: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1618
+ taker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1619
+ maker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1620
+ }, z.core.$strip>, z.ZodTransform<{
1621
+ minVolume30d: DecimalString;
1622
+ takerFeeRate: DecimalString;
1623
+ makerFeeRate: DecimalString;
1624
+ }, {
1625
+ min_volume_30d: DecimalString;
1626
+ taker_fee_rate: DecimalString;
1627
+ maker_fee_rate: DecimalString;
1628
+ }>>>;
1297
1629
  }, z.core.$strip>, z.ZodTransform<{
1298
1630
  category: PerpsInstrumentCategory;
1299
1631
  takerFeeRate: DecimalString;
1300
1632
  makerFeeRate: DecimalString;
1633
+ tiers: {
1634
+ minVolume30d: DecimalString;
1635
+ takerFeeRate: DecimalString;
1636
+ makerFeeRate: DecimalString;
1637
+ }[];
1301
1638
  }, {
1302
1639
  instrument_type: PerpsInstrumentType.Perpetual;
1303
1640
  category: PerpsInstrumentCategory;
1304
1641
  taker_fee_rate: DecimalString;
1305
1642
  maker_fee_rate: DecimalString;
1643
+ tiers: {
1644
+ minVolume30d: DecimalString;
1645
+ takerFeeRate: DecimalString;
1646
+ makerFeeRate: DecimalString;
1647
+ }[];
1306
1648
  }>>>;
1307
1649
  }, z.core.$strip>, z.ZodTransform<{
1308
1650
  feeSchedule: {
1309
1651
  category: PerpsInstrumentCategory;
1310
1652
  takerFeeRate: DecimalString;
1311
1653
  makerFeeRate: DecimalString;
1654
+ tiers: {
1655
+ minVolume30d: DecimalString;
1656
+ takerFeeRate: DecimalString;
1657
+ makerFeeRate: DecimalString;
1658
+ }[];
1312
1659
  }[];
1313
1660
  }, {
1314
1661
  fee_schedule: {
1315
1662
  category: PerpsInstrumentCategory;
1316
1663
  takerFeeRate: DecimalString;
1317
1664
  makerFeeRate: DecimalString;
1665
+ tiers: {
1666
+ minVolume30d: DecimalString;
1667
+ takerFeeRate: DecimalString;
1668
+ makerFeeRate: DecimalString;
1669
+ }[];
1318
1670
  }[];
1319
1671
  }>>;
1672
+ /**
1673
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1674
+ */
1320
1675
  type PerpsFeesInfo = z.infer<typeof PerpsFeesInfoSchema>;
1676
+ /**
1677
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1678
+ */
1321
1679
  declare const FetchPerpsFeesResponseSchema: z.ZodPipe<z.ZodObject<{
1322
1680
  fee_schedule: z.ZodArray<z.ZodPipe<z.ZodObject<{
1323
1681
  instrument_type: z.ZodEnum<typeof PerpsInstrumentType>;
1324
1682
  category: z.ZodEnum<typeof PerpsInstrumentCategory>;
1325
1683
  taker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1326
1684
  maker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1685
+ tiers: z.ZodArray<z.ZodPipe<z.ZodObject<{
1686
+ min_volume_30d: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1687
+ taker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1688
+ maker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1689
+ }, z.core.$strip>, z.ZodTransform<{
1690
+ minVolume30d: DecimalString;
1691
+ takerFeeRate: DecimalString;
1692
+ makerFeeRate: DecimalString;
1693
+ }, {
1694
+ min_volume_30d: DecimalString;
1695
+ taker_fee_rate: DecimalString;
1696
+ maker_fee_rate: DecimalString;
1697
+ }>>>;
1327
1698
  }, z.core.$strip>, z.ZodTransform<{
1328
1699
  category: PerpsInstrumentCategory;
1329
1700
  takerFeeRate: DecimalString;
1330
1701
  makerFeeRate: DecimalString;
1702
+ tiers: {
1703
+ minVolume30d: DecimalString;
1704
+ takerFeeRate: DecimalString;
1705
+ makerFeeRate: DecimalString;
1706
+ }[];
1331
1707
  }, {
1332
1708
  instrument_type: PerpsInstrumentType.Perpetual;
1333
1709
  category: PerpsInstrumentCategory;
1334
1710
  taker_fee_rate: DecimalString;
1335
1711
  maker_fee_rate: DecimalString;
1712
+ tiers: {
1713
+ minVolume30d: DecimalString;
1714
+ takerFeeRate: DecimalString;
1715
+ makerFeeRate: DecimalString;
1716
+ }[];
1336
1717
  }>>>;
1337
1718
  }, z.core.$strip>, z.ZodTransform<{
1338
1719
  feeSchedule: {
1339
1720
  category: PerpsInstrumentCategory;
1340
1721
  takerFeeRate: DecimalString;
1341
1722
  makerFeeRate: DecimalString;
1723
+ tiers: {
1724
+ minVolume30d: DecimalString;
1725
+ takerFeeRate: DecimalString;
1726
+ makerFeeRate: DecimalString;
1727
+ }[];
1342
1728
  }[];
1343
1729
  }, {
1344
1730
  fee_schedule: {
1345
1731
  category: PerpsInstrumentCategory;
1346
1732
  takerFeeRate: DecimalString;
1347
1733
  makerFeeRate: DecimalString;
1734
+ tiers: {
1735
+ minVolume30d: DecimalString;
1736
+ takerFeeRate: DecimalString;
1737
+ makerFeeRate: DecimalString;
1738
+ }[];
1348
1739
  }[];
1349
1740
  }>>;
1741
+ /**
1742
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1743
+ */
1350
1744
  declare const FetchPerpsCandlesResponseSchema: z.ZodObject<{
1351
1745
  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
1746
  timestamp: EpochMilliseconds;
@@ -1360,4 +1754,4 @@ declare const FetchPerpsCandlesResponseSchema: z.ZodObject<{
1360
1754
  more: z.ZodBoolean;
1361
1755
  }, z.core.$strip>;
1362
1756
 
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 };
1757
+ 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 PerpsFeeTier, PerpsFeeTierSchema, type PerpsFeesInfo, PerpsFeesInfoSchema, type PerpsFundingRate, PerpsFundingRateSchema, type PerpsInstrument, PerpsInstrumentCategory, PerpsInstrumentId, PerpsInstrumentSchema, PerpsInstrumentType, type PerpsInternalTransfer, PerpsInternalTransferDirection, PerpsInternalTransferId, PerpsInternalTransferSchema, PerpsKnownWithdrawalStatus, 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, PerpsWithdrawalUpdateSchema };