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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
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, j as PerpsOrderId, k as PerpsTimeInForce, l as PerpsClientOrderId } from '../common-DVmtlYtD.js';
3
- export { m as PerpsAssetSchema, n as PerpsClientOrderIdSchema, o as PerpsCredentials, p as PerpsDataResponseSchema, q as PerpsDecimal, r as PerpsDecimalInput, s as PerpsDecimalInputSchema, t as PerpsDepositAmount, u as PerpsDepositStatusSchema, v as PerpsInstrumentCategorySchema, w as PerpsInstrumentIdSchema, x as PerpsInstrumentTypeSchema, y as PerpsInternalTransferDirectionSchema, z as PerpsInternalTransferIdSchema, A as PerpsKlineInterval, B as PerpsKlineIntervalSchema, C as PerpsOrderIdSchema, D as PerpsPnlInterval, E as PerpsPnlIntervalSchema, F as PerpsSideSchema, G as PerpsTimeInForceSchema, H as PerpsTradeIdSchema, I as PerpsTxHash, J as PerpsWithdrawalAmount, K as PerpsWithdrawalIdSchema, L as PerpsWithdrawalStatusSchema, R as RawPerpsTxHashSchema, M as decimalString, N as perpsBaseUnits, O as perpsDecimal } from '../common-DVmtlYtD.js';
2
+ import { P as PerpsInstrumentId, a as PerpsDepositStatus, b as PerpsWithdrawalId, c as PerpsWithdrawalStatus, d as PerpsInternalTransferId, e as PerpsInternalTransferDirection, f as PerpsInstrumentType, g as PerpsInstrumentCategory, h as PerpsTradeId, i as PerpsSide } from '../orders-ByouGgI5.js';
3
+ export { F as FetchPerpsOpenOrdersResponseSchema, j as FetchPerpsOrdersResponseSchema, L as ListPerpsFillsResponseSchema, k as PerpsAccountFill, l as PerpsAccountFillSchema, m as PerpsAccountFillUpdateSchema, n as PerpsAssetSchema, o as PerpsCancelOrderResult, p as PerpsCancelOrderResultSchema, q as PerpsClientOrderId, r as PerpsClientOrderIdSchema, s as PerpsCommandAck, t as PerpsCommandAckSchema, u as PerpsCommandStatusSchema, v as PerpsCredentials, w as PerpsDataResponseSchema, x as PerpsDecimal, y as PerpsDecimalInput, z as PerpsDecimalInputSchema, A as PerpsDepositAmount, B as PerpsDepositStatusSchema, C as PerpsFundingInterval, D as PerpsFundingIntervalSchema, E as PerpsInstrumentCategorySchema, G as PerpsInstrumentIdSchema, H as PerpsInstrumentTypeSchema, I as PerpsInternalTransferDirectionSchema, J as PerpsInternalTransferIdSchema, K as PerpsKlineInterval, M as PerpsKlineIntervalSchema, N as PerpsOrder, O as PerpsOrderId, Q as PerpsOrderIdSchema, R as PerpsOrderSchema, S as PerpsOrderStatus, T as PerpsOrderStatusSchema, U as PerpsOrderUpdateSchema, V as PerpsPnlInterval, W as PerpsPnlIntervalSchema, X as PerpsPostOrderAck, Y as PerpsPostOrderAckSchema, Z as PerpsSideSchema, _ as PerpsTimeInForce, $ as PerpsTimeInForceSchema, a0 as PerpsTradeIdSchema, a1 as PerpsTxHash, a2 as PerpsTxHashSchema, a3 as PerpsWithdrawalAmount, a4 as PerpsWithdrawalIdSchema, a5 as PerpsWithdrawalStatusSchema, a6 as decimalString, a7 as perpsBaseUnits, a8 as perpsDecimal } from '../orders-ByouGgI5.js';
4
4
  import { DecimalString, EpochMilliseconds, BaseUnits } from '../index.js';
5
5
  import { z } from 'zod';
6
6
 
@@ -15,23 +15,7 @@ declare const FetchPerpsBalancesResponseSchema: z.ZodArray<z.ZodObject<{
15
15
  balance: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
16
16
  value: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
17
17
  }, z.core.$strip>>;
18
- declare const PerpsPortfolioPositionSchema: z.ZodObject<{
19
- instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
20
- symbol: z.ZodString;
21
- size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
22
- entryPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
23
- leverage: z.ZodNumber;
24
- cross: z.ZodBoolean;
25
- initialMargin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
26
- maintenanceMargin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
27
- positionValue: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
28
- liquidationPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
29
- unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
30
- returnOnEquity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
31
- cumulativeFunding: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
32
- }, z.core.$strip>;
33
- type PerpsPortfolioPosition = z.infer<typeof PerpsPortfolioPositionSchema>;
34
- declare const RawPerpsPortfolioPositionSchema: z.ZodPipe<z.ZodObject<{
18
+ declare const PerpsPortfolioPositionSchema: z.ZodPipe<z.ZodObject<{
35
19
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
36
20
  symbol: z.ZodString;
37
21
  size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -74,6 +58,7 @@ declare const RawPerpsPortfolioPositionSchema: z.ZodPipe<z.ZodObject<{
74
58
  return_on_equity: DecimalString;
75
59
  cumulative_funding: DecimalString;
76
60
  }>>;
61
+ type PerpsPortfolioPosition = z.infer<typeof PerpsPortfolioPositionSchema>;
77
62
  declare const PerpsMarginSummarySchema: z.ZodObject<{
78
63
  totalAccountValue: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
79
64
  totalInitialMargin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -81,34 +66,7 @@ declare const PerpsMarginSummarySchema: z.ZodObject<{
81
66
  totalPositionValue: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
82
67
  }, z.core.$strip>;
83
68
  type PerpsMarginSummary = z.infer<typeof PerpsMarginSummarySchema>;
84
- declare const PerpsPortfolioSchema: z.ZodObject<{
85
- positions: z.ZodArray<z.ZodObject<{
86
- instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
87
- symbol: z.ZodString;
88
- size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
89
- entryPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
90
- leverage: z.ZodNumber;
91
- cross: z.ZodBoolean;
92
- initialMargin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
93
- maintenanceMargin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
94
- positionValue: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
95
- liquidationPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
96
- unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
97
- returnOnEquity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
98
- cumulativeFunding: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
99
- }, z.core.$strip>>;
100
- margin: z.ZodObject<{
101
- totalAccountValue: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
102
- totalInitialMargin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
103
- totalMaintenanceMargin: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
104
- totalPositionValue: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
105
- }, z.core.$strip>;
106
- withdrawable: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
107
- inLiquidation: z.ZodBoolean;
108
- timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
109
- }, z.core.$strip>;
110
- type PerpsPortfolio = z.infer<typeof PerpsPortfolioSchema>;
111
- declare const RawPerpsPortfolioSchema: z.ZodPipe<z.ZodObject<{
69
+ declare const PerpsPortfolioSchema: z.ZodPipe<z.ZodObject<{
112
70
  positions: z.ZodArray<z.ZodPipe<z.ZodObject<{
113
71
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
114
72
  symbol: z.ZodString;
@@ -222,6 +180,7 @@ declare const RawPerpsPortfolioSchema: z.ZodPipe<z.ZodObject<{
222
180
  in_liquidation: boolean;
223
181
  timestamp: EpochMilliseconds;
224
182
  }>>;
183
+ type PerpsPortfolio = z.infer<typeof PerpsPortfolioSchema>;
225
184
  declare const FetchPerpsPortfolioResponseSchema: z.ZodPipe<z.ZodObject<{
226
185
  positions: z.ZodArray<z.ZodPipe<z.ZodObject<{
227
186
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
@@ -336,16 +295,7 @@ declare const FetchPerpsPortfolioResponseSchema: z.ZodPipe<z.ZodObject<{
336
295
  in_liquidation: boolean;
337
296
  timestamp: EpochMilliseconds;
338
297
  }>>;
339
- declare const PerpsAccountFundingPaymentSchema: z.ZodObject<{
340
- instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
341
- size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
342
- fundingRate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
343
- fundingAsset: z.ZodString;
344
- funding: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
345
- timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
346
- }, z.core.$strip>;
347
- type PerpsAccountFundingPayment = z.infer<typeof PerpsAccountFundingPaymentSchema>;
348
- declare const RawPerpsAccountFundingPaymentSchema: z.ZodPipe<z.ZodObject<{
298
+ declare const PerpsAccountFundingPaymentSchema: z.ZodPipe<z.ZodObject<{
349
299
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
350
300
  size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
351
301
  funding_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -367,6 +317,7 @@ declare const RawPerpsAccountFundingPaymentSchema: z.ZodPipe<z.ZodObject<{
367
317
  funding: DecimalString;
368
318
  timestamp: EpochMilliseconds;
369
319
  }>>;
320
+ type PerpsAccountFundingPayment = z.infer<typeof PerpsAccountFundingPaymentSchema>;
370
321
  declare const ListPerpsFundingPaymentsResponseSchema: z.ZodObject<{
371
322
  data: z.ZodArray<z.ZodPipe<z.ZodObject<{
372
323
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
@@ -392,7 +343,7 @@ declare const ListPerpsFundingPaymentsResponseSchema: z.ZodObject<{
392
343
  }>>>;
393
344
  more: z.ZodBoolean;
394
345
  }, z.core.$strip>;
395
- declare const RawPerpsAccountFundingPaymentEntrySchema: z.ZodPipe<z.ZodObject<{
346
+ declare const PerpsAccountFundingPaymentEntrySchema: z.ZodPipe<z.ZodObject<{
396
347
  iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
397
348
  sz: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
398
349
  fr: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -414,13 +365,7 @@ declare const RawPerpsAccountFundingPaymentEntrySchema: z.ZodPipe<z.ZodObject<{
414
365
  fua: string;
415
366
  ts: EpochMilliseconds;
416
367
  }>>;
417
- declare const PerpsAccountConfigSchema: z.ZodObject<{
418
- instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
419
- leverage: z.ZodNumber;
420
- cross: z.ZodBoolean;
421
- }, z.core.$strip>;
422
- type PerpsAccountConfig = z.infer<typeof PerpsAccountConfigSchema>;
423
- declare const RawPerpsAccountConfigSchema: z.ZodPipe<z.ZodObject<{
368
+ declare const PerpsAccountConfigSchema: z.ZodPipe<z.ZodObject<{
424
369
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
425
370
  leverage: z.ZodNumber;
426
371
  cross: z.ZodBoolean;
@@ -433,6 +378,7 @@ declare const RawPerpsAccountConfigSchema: z.ZodPipe<z.ZodObject<{
433
378
  leverage: number;
434
379
  cross: boolean;
435
380
  }>>;
381
+ type PerpsAccountConfig = z.infer<typeof PerpsAccountConfigSchema>;
436
382
  declare const FetchPerpsAccountConfigResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
437
383
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
438
384
  leverage: z.ZodNumber;
@@ -470,13 +416,7 @@ declare const ListPerpsPnlHistoryResponseSchema: z.ZodObject<{
470
416
  }, [EpochMilliseconds, DecimalString]>>>;
471
417
  more: z.ZodBoolean;
472
418
  }, z.core.$strip>;
473
- declare const PerpsProxyKeySchema: z.ZodObject<{
474
- proxy: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
475
- label: z.ZodOptional<z.ZodString>;
476
- expiresAt: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
477
- }, z.core.$strip>;
478
- type PerpsProxyKey = z.infer<typeof PerpsProxyKeySchema>;
479
- declare const RawPerpsProxyKeySchema: z.ZodPipe<z.ZodObject<{
419
+ declare const PerpsProxyKeySchema: z.ZodPipe<z.ZodObject<{
480
420
  proxy: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
481
421
  label: z.ZodOptional<z.ZodString>;
482
422
  expiry: z.ZodPipe<z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
@@ -489,7 +429,8 @@ declare const RawPerpsProxyKeySchema: z.ZodPipe<z.ZodObject<{
489
429
  expiry: EpochMilliseconds;
490
430
  label?: string | undefined;
491
431
  }>>;
492
- declare const RawPerpsCredentialsResponseSchema: z.ZodPipe<z.ZodObject<{
432
+ type PerpsProxyKey = z.infer<typeof PerpsProxyKeySchema>;
433
+ declare const PerpsCredentialsResponseSchema: z.ZodPipe<z.ZodObject<{
493
434
  address: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
494
435
  keys: z.ZodArray<z.ZodPipe<z.ZodObject<{
495
436
  proxy: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
@@ -519,10 +460,10 @@ declare const RawPerpsCredentialsResponseSchema: z.ZodPipe<z.ZodObject<{
519
460
  expiresAt: EpochMilliseconds;
520
461
  }[];
521
462
  }>>;
522
- declare const RawPerpsCreateProxyResponseSchema: z.ZodObject<{
463
+ declare const PerpsCreateProxyResponseSchema: z.ZodObject<{
523
464
  secret: z.ZodString;
524
465
  }, z.core.$strip>;
525
- declare const RawPerpsDeleteProxyResponseSchema: z.ZodObject<{
466
+ declare const PerpsDeleteProxyResponseSchema: z.ZodObject<{
526
467
  status: z.ZodEnum<{
527
468
  ok: "ok";
528
469
  err: "err";
@@ -530,20 +471,7 @@ declare const RawPerpsDeleteProxyResponseSchema: z.ZodObject<{
530
471
  error: z.ZodOptional<z.ZodString>;
531
472
  }, z.core.$strip>;
532
473
 
533
- declare const PerpsDepositSchema: z.ZodObject<{
534
- hash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
535
- asset: z.ZodString;
536
- amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
537
- status: z.ZodEnum<typeof PerpsDepositStatus>;
538
- from: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
539
- to: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
540
- confirmations: z.ZodNumber;
541
- requiredConfirmations: z.ZodNumber;
542
- createdTimestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
543
- confirmedTimestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
544
- }, z.core.$strip>;
545
- type PerpsDeposit = z.infer<typeof PerpsDepositSchema>;
546
- declare const RawPerpsDepositSchema: z.ZodPipe<z.ZodObject<{
474
+ declare const PerpsDepositSchema: z.ZodPipe<z.ZodObject<{
547
475
  hash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
548
476
  asset: z.ZodString;
549
477
  amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
@@ -577,6 +505,7 @@ declare const RawPerpsDepositSchema: z.ZodPipe<z.ZodObject<{
577
505
  created_timestamp: EpochMilliseconds;
578
506
  confirmed_timestamp?: EpochMilliseconds | undefined;
579
507
  }>>;
508
+ type PerpsDeposit = z.infer<typeof PerpsDepositSchema>;
580
509
  declare const ListPerpsDepositsResponseSchema: z.ZodObject<{
581
510
  data: z.ZodArray<z.ZodPipe<z.ZodObject<{
582
511
  hash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
@@ -614,7 +543,7 @@ declare const ListPerpsDepositsResponseSchema: z.ZodObject<{
614
543
  }>>>;
615
544
  more: z.ZodBoolean;
616
545
  }, z.core.$strip>;
617
- declare const RawPerpsDepositUpdateSchema: z.ZodPipe<z.ZodObject<{
546
+ declare const PerpsDepositUpdateSchema: z.ZodPipe<z.ZodObject<{
618
547
  hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
619
548
  asset: z.ZodString;
620
549
  amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
@@ -630,21 +559,7 @@ declare const RawPerpsDepositUpdateSchema: z.ZodPipe<z.ZodObject<{
630
559
  status: PerpsDepositStatus;
631
560
  hash?: _polymarket_types.TxHash | undefined;
632
561
  }>>;
633
- declare const PerpsWithdrawalSchema: z.ZodObject<{
634
- withdrawalId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsWithdrawalId, number>>;
635
- asset: z.ZodString;
636
- amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
637
- fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
638
- status: z.ZodEnum<typeof PerpsWithdrawalStatus>;
639
- to: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
640
- hash: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>;
641
- confirmations: z.ZodNumber;
642
- requiredConfirmations: z.ZodNumber;
643
- createdTimestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
644
- confirmedTimestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
645
- }, z.core.$strip>;
646
- type PerpsWithdrawal = z.infer<typeof PerpsWithdrawalSchema>;
647
- declare const RawPerpsWithdrawalSchema: z.ZodPipe<z.ZodObject<{
562
+ declare const PerpsWithdrawalSchema: z.ZodPipe<z.ZodObject<{
648
563
  withdraw_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsWithdrawalId, number>>;
649
564
  asset: z.ZodString;
650
565
  amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
@@ -681,6 +596,7 @@ declare const RawPerpsWithdrawalSchema: z.ZodPipe<z.ZodObject<{
681
596
  hash?: _polymarket_types.TxHash | undefined;
682
597
  confirmed_timestamp?: EpochMilliseconds | undefined;
683
598
  }>>;
599
+ type PerpsWithdrawal = z.infer<typeof PerpsWithdrawalSchema>;
684
600
  declare const ListPerpsWithdrawalsResponseSchema: z.ZodObject<{
685
601
  data: z.ZodArray<z.ZodPipe<z.ZodObject<{
686
602
  withdraw_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsWithdrawalId, number>>;
@@ -721,7 +637,7 @@ declare const ListPerpsWithdrawalsResponseSchema: z.ZodObject<{
721
637
  }>>>;
722
638
  more: z.ZodBoolean;
723
639
  }, z.core.$strip>;
724
- declare const RawPerpsWithdrawResponseSchema: z.ZodPipe<z.ZodObject<{
640
+ declare const PerpsWithdrawResponseSchema: z.ZodPipe<z.ZodObject<{
725
641
  status: z.ZodEnum<{
726
642
  ok: "ok";
727
643
  err: "err";
@@ -737,7 +653,7 @@ declare const RawPerpsWithdrawResponseSchema: z.ZodPipe<z.ZodObject<{
737
653
  withdraw_id?: PerpsWithdrawalId | undefined;
738
654
  error?: string | undefined;
739
655
  }>>;
740
- declare const RawPerpsWithdrawalUpdateSchema: z.ZodPipe<z.ZodObject<{
656
+ declare const PerpsWithdrawalUpdateSchema: z.ZodPipe<z.ZodObject<{
741
657
  withdraw_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsWithdrawalId, number>>;
742
658
  asset: z.ZodString;
743
659
  amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
@@ -772,68 +688,20 @@ declare const PerpsInternalTransferSchema: z.ZodObject<{
772
688
  createdTimestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
773
689
  }, z.core.$strip>;
774
690
  type PerpsInternalTransfer = z.infer<typeof PerpsInternalTransferSchema>;
775
- declare const RawPerpsInternalTransferSchema: z.ZodPipe<z.ZodObject<{
776
- transfer_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInternalTransferId, number>>;
777
- asset: z.ZodString;
778
- amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
779
- direction: z.ZodEnum<typeof PerpsInternalTransferDirection>;
780
- counterparty: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
781
- label: z.ZodOptional<z.ZodString>;
782
- created_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
783
- }, z.core.$strip>, z.ZodTransform<{
784
- transferId: PerpsInternalTransferId;
785
- asset: string;
786
- amount: BaseUnits;
787
- direction: PerpsInternalTransferDirection;
788
- counterparty: _polymarket_types.EvmAddress;
789
- label: string | undefined;
790
- createdTimestamp: EpochMilliseconds;
791
- }, {
792
- transfer_id: PerpsInternalTransferId;
793
- asset: string;
794
- amount: BaseUnits;
795
- direction: PerpsInternalTransferDirection;
796
- counterparty: _polymarket_types.EvmAddress;
797
- created_timestamp: EpochMilliseconds;
798
- label?: string | undefined;
799
- }>>;
800
691
 
801
692
  declare const PerpsRiskTierSchema: z.ZodObject<{
802
693
  lowerBound: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
803
694
  maxLeverage: z.ZodNumber;
804
695
  }, z.core.$strip>;
805
696
  type PerpsRiskTier = z.infer<typeof PerpsRiskTierSchema>;
806
- declare const PerpsInstrumentSchema: z.ZodObject<{
807
- instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
808
- instrumentType: z.ZodEnum<typeof PerpsInstrumentType>;
809
- category: z.ZodEnum<typeof PerpsInstrumentCategory>;
810
- symbol: z.ZodString;
811
- baseAsset: z.ZodString;
812
- quoteAsset: z.ZodString;
813
- fundingInterval: z.ZodString;
814
- quantityDecimals: z.ZodNumber;
815
- priceDecimals: z.ZodNumber;
816
- priceBounds: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
817
- liquidationFee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
818
- maxOrderCount: z.ZodNumber;
819
- minNotional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
820
- maxMarketNotional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
821
- maxLimitNotional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
822
- maxLeverage: z.ZodNumber;
823
- riskTiers: z.ZodArray<z.ZodObject<{
824
- lowerBound: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
825
- maxLeverage: z.ZodNumber;
826
- }, z.core.$strip>>;
827
- }, z.core.$strip>;
828
- type PerpsInstrument = z.infer<typeof PerpsInstrumentSchema>;
829
- declare const RawPerpsInstrumentSchema: z.ZodPipe<z.ZodObject<{
697
+ declare const PerpsInstrumentSchema: z.ZodPipe<z.ZodObject<{
830
698
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
831
699
  instrument_type: z.ZodEnum<typeof PerpsInstrumentType>;
832
700
  category: z.ZodEnum<typeof PerpsInstrumentCategory>;
833
701
  symbol: z.ZodString;
834
702
  base_asset: z.ZodString;
835
703
  quote_asset: z.ZodString;
836
- funding_interval: z.ZodString;
704
+ funding_interval: z.ZodPipe<z.ZodString, z.ZodTransform<`${number}h`, string>>;
837
705
  quantity_decimals: z.ZodNumber;
838
706
  price_decimals: z.ZodNumber;
839
707
  price_bounds: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -854,13 +722,12 @@ declare const RawPerpsInstrumentSchema: z.ZodPipe<z.ZodObject<{
854
722
  max_leverage: number;
855
723
  }>>>;
856
724
  }, z.core.$strip>, z.ZodTransform<{
857
- instrumentId: PerpsInstrumentId;
858
- instrumentType: PerpsInstrumentType;
725
+ id: PerpsInstrumentId;
859
726
  category: PerpsInstrumentCategory;
860
727
  symbol: string;
861
728
  baseAsset: string;
862
729
  quoteAsset: string;
863
- fundingInterval: string;
730
+ fundingInterval: `${number}h`;
864
731
  quantityDecimals: number;
865
732
  priceDecimals: number;
866
733
  priceBounds: DecimalString;
@@ -881,7 +748,7 @@ declare const RawPerpsInstrumentSchema: z.ZodPipe<z.ZodObject<{
881
748
  symbol: string;
882
749
  base_asset: string;
883
750
  quote_asset: string;
884
- funding_interval: string;
751
+ funding_interval: `${number}h`;
885
752
  quantity_decimals: number;
886
753
  price_decimals: number;
887
754
  price_bounds: DecimalString;
@@ -896,6 +763,7 @@ declare const RawPerpsInstrumentSchema: z.ZodPipe<z.ZodObject<{
896
763
  maxLeverage: number;
897
764
  }[];
898
765
  }>>;
766
+ type PerpsInstrument = z.infer<typeof PerpsInstrumentSchema>;
899
767
  declare const FetchPerpsInstrumentsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
900
768
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
901
769
  instrument_type: z.ZodEnum<typeof PerpsInstrumentType>;
@@ -903,7 +771,7 @@ declare const FetchPerpsInstrumentsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObj
903
771
  symbol: z.ZodString;
904
772
  base_asset: z.ZodString;
905
773
  quote_asset: z.ZodString;
906
- funding_interval: z.ZodString;
774
+ funding_interval: z.ZodPipe<z.ZodString, z.ZodTransform<`${number}h`, string>>;
907
775
  quantity_decimals: z.ZodNumber;
908
776
  price_decimals: z.ZodNumber;
909
777
  price_bounds: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -924,13 +792,12 @@ declare const FetchPerpsInstrumentsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObj
924
792
  max_leverage: number;
925
793
  }>>>;
926
794
  }, z.core.$strip>, z.ZodTransform<{
927
- instrumentId: PerpsInstrumentId;
928
- instrumentType: PerpsInstrumentType;
795
+ id: PerpsInstrumentId;
929
796
  category: PerpsInstrumentCategory;
930
797
  symbol: string;
931
798
  baseAsset: string;
932
799
  quoteAsset: string;
933
- fundingInterval: string;
800
+ fundingInterval: `${number}h`;
934
801
  quantityDecimals: number;
935
802
  priceDecimals: number;
936
803
  priceBounds: DecimalString;
@@ -951,7 +818,7 @@ declare const FetchPerpsInstrumentsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObj
951
818
  symbol: string;
952
819
  base_asset: string;
953
820
  quote_asset: string;
954
- funding_interval: string;
821
+ funding_interval: `${number}h`;
955
822
  quantity_decimals: number;
956
823
  price_decimals: number;
957
824
  price_bounds: DecimalString;
@@ -966,22 +833,7 @@ declare const FetchPerpsInstrumentsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObj
966
833
  maxLeverage: number;
967
834
  }[];
968
835
  }>>>;
969
- declare const PerpsTickerSchema: z.ZodObject<{
970
- instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
971
- symbol: z.ZodString;
972
- indexPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
973
- markPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
974
- lastPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
975
- midPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
976
- openInterest: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
977
- fundingRate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
978
- nextFunding: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
979
- volume24h: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
980
- openPrice: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
981
- timestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
982
- }, z.core.$strip>;
983
- type PerpsTicker = z.infer<typeof PerpsTickerSchema>;
984
- declare const RawPerpsTickerSchema: z.ZodPipe<z.ZodObject<{
836
+ declare const PerpsTickerSchema: z.ZodPipe<z.ZodObject<{
985
837
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
986
838
  symbol: z.ZodString;
987
839
  index_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -1015,6 +867,10 @@ declare const RawPerpsTickerSchema: z.ZodPipe<z.ZodObject<{
1015
867
  next_funding: EpochMilliseconds;
1016
868
  timestamp?: EpochMilliseconds | undefined;
1017
869
  }>>;
870
+ type PerpsTicker = z.infer<typeof PerpsTickerSchema> & {
871
+ openPrice?: DecimalString;
872
+ volume24h?: DecimalString;
873
+ };
1018
874
  declare const FetchPerpsTickersResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
1019
875
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1020
876
  symbol: z.ZodString;
@@ -1049,7 +905,7 @@ declare const FetchPerpsTickersResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<
1049
905
  next_funding: EpochMilliseconds;
1050
906
  timestamp?: EpochMilliseconds | undefined;
1051
907
  }>>>;
1052
- declare const RawPerpsTickerEntrySchema: z.ZodPipe<z.ZodObject<{
908
+ declare const PerpsTickerEntrySchema: z.ZodPipe<z.ZodObject<{
1053
909
  iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1054
910
  idx: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1055
911
  mark: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -1087,23 +943,7 @@ declare const PerpsCandleSchema: z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.
1087
943
  trades: number;
1088
944
  }, [EpochMilliseconds, DecimalString, DecimalString, DecimalString, DecimalString, DecimalString, number]>>;
1089
945
  type PerpsCandle = z.infer<typeof PerpsCandleSchema>;
1090
- declare const PerpsStatisticSchema: z.ZodObject<{
1091
- instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1092
- symbol: z.ZodOptional<z.ZodString>;
1093
- volume: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1094
- openPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1095
- klines: z.ZodArray<z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodNumber], null>, z.ZodTransform<{
1096
- timestamp: EpochMilliseconds;
1097
- open: DecimalString;
1098
- high: DecimalString;
1099
- low: DecimalString;
1100
- close: DecimalString;
1101
- volume: DecimalString;
1102
- trades: number;
1103
- }, [EpochMilliseconds, DecimalString, DecimalString, DecimalString, DecimalString, DecimalString, number]>>>;
1104
- }, z.core.$strip>;
1105
- type PerpsStatistic = z.infer<typeof PerpsStatisticSchema>;
1106
- declare const RawPerpsStatisticSchema: z.ZodPipe<z.ZodObject<{
946
+ declare const PerpsStatisticSchema: z.ZodPipe<z.ZodObject<{
1107
947
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1108
948
  symbol: z.ZodOptional<z.ZodString>;
1109
949
  volume: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -1146,6 +986,7 @@ declare const RawPerpsStatisticSchema: z.ZodPipe<z.ZodObject<{
1146
986
  }[];
1147
987
  symbol?: string | undefined;
1148
988
  }>>;
989
+ type PerpsStatistic = z.infer<typeof PerpsStatisticSchema>;
1149
990
  declare const FetchPerpsStatisticsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
1150
991
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1151
992
  symbol: z.ZodOptional<z.ZodString>;
@@ -1189,7 +1030,7 @@ declare const FetchPerpsStatisticsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObje
1189
1030
  }[];
1190
1031
  symbol?: string | undefined;
1191
1032
  }>>>;
1192
- declare const RawPerpsStatisticDataSchema: z.ZodPipe<z.ZodObject<{
1033
+ declare const PerpsStatisticUpdateSchema: z.ZodPipe<z.ZodObject<{
1193
1034
  iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1194
1035
  vol: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1195
1036
  open: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -1234,21 +1075,7 @@ declare const PerpsBookLevelSchema: z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodString,
1234
1075
  quantity: DecimalString;
1235
1076
  }, [DecimalString, DecimalString]>>;
1236
1077
  type PerpsBookLevel = z.infer<typeof PerpsBookLevelSchema>;
1237
- declare const PerpsBookSchema: z.ZodObject<{
1238
- instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1239
- bids: z.ZodArray<z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>], null>, z.ZodTransform<{
1240
- price: DecimalString;
1241
- quantity: DecimalString;
1242
- }, [DecimalString, DecimalString]>>>;
1243
- asks: z.ZodArray<z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>], null>, z.ZodTransform<{
1244
- price: DecimalString;
1245
- quantity: DecimalString;
1246
- }, [DecimalString, DecimalString]>>>;
1247
- timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1248
- sequence: z.ZodNumber;
1249
- }, z.core.$strip>;
1250
- type PerpsBook = z.infer<typeof PerpsBookSchema>;
1251
- declare const RawPerpsBookSchema: z.ZodPipe<z.ZodObject<{
1078
+ declare const PerpsBookSchema: z.ZodPipe<z.ZodObject<{
1252
1079
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1253
1080
  bids: z.ZodArray<z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>], null>, z.ZodTransform<{
1254
1081
  price: DecimalString;
@@ -1285,7 +1112,8 @@ declare const RawPerpsBookSchema: z.ZodPipe<z.ZodObject<{
1285
1112
  timestamp: EpochMilliseconds;
1286
1113
  sequence: number;
1287
1114
  }>>;
1288
- declare const RawPerpsBookUpdateSchema: z.ZodPipe<z.ZodObject<{
1115
+ type PerpsBook = z.infer<typeof PerpsBookSchema>;
1116
+ declare const PerpsBookUpdateSchema: z.ZodPipe<z.ZodObject<{
1289
1117
  b: z.ZodArray<z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>], null>, z.ZodTransform<{
1290
1118
  price: DecimalString;
1291
1119
  quantity: DecimalString;
@@ -1322,29 +1150,7 @@ declare const PerpsBboSchema: z.ZodObject<{
1322
1150
  timestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
1323
1151
  }, z.core.$strip>;
1324
1152
  type PerpsBbo = z.infer<typeof PerpsBboSchema>;
1325
- declare const RawPerpsBboSchema: z.ZodPipe<z.ZodObject<{
1326
- instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1327
- bid_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1328
- bid_quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1329
- ask_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1330
- ask_quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1331
- timestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
1332
- }, z.core.$strip>, z.ZodTransform<{
1333
- instrumentId: PerpsInstrumentId;
1334
- bidPrice: DecimalString;
1335
- bidQuantity: DecimalString;
1336
- askPrice: DecimalString;
1337
- askQuantity: DecimalString;
1338
- timestamp: EpochMilliseconds | undefined;
1339
- }, {
1340
- instrument_id: PerpsInstrumentId;
1341
- bid_price: DecimalString;
1342
- bid_quantity: DecimalString;
1343
- ask_price: DecimalString;
1344
- ask_quantity: DecimalString;
1345
- timestamp?: EpochMilliseconds | undefined;
1346
- }>>;
1347
- declare const RawPerpsBboDataSchema: z.ZodPipe<z.ZodObject<{
1153
+ declare const PerpsBboUpdateSchema: z.ZodPipe<z.ZodObject<{
1348
1154
  iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1349
1155
  bp: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1350
1156
  bq: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -1363,17 +1169,7 @@ declare const RawPerpsBboDataSchema: z.ZodPipe<z.ZodObject<{
1363
1169
  ap: DecimalString;
1364
1170
  aq: DecimalString;
1365
1171
  }>>;
1366
- declare const PerpsPublicTradeSchema: z.ZodObject<{
1367
- tradeId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
1368
- instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1369
- side: z.ZodEnum<typeof PerpsSide>;
1370
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1371
- quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1372
- timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1373
- hash: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>;
1374
- }, z.core.$strip>;
1375
- type PerpsPublicTrade = z.infer<typeof PerpsPublicTradeSchema>;
1376
- declare const RawPerpsPublicTradeSchema: z.ZodPipe<z.ZodObject<{
1172
+ declare const PerpsPublicTradeSchema: z.ZodPipe<z.ZodObject<{
1377
1173
  trade_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
1378
1174
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1379
1175
  side: z.ZodEnum<typeof PerpsSide>;
@@ -1398,7 +1194,8 @@ declare const RawPerpsPublicTradeSchema: z.ZodPipe<z.ZodObject<{
1398
1194
  timestamp: EpochMilliseconds;
1399
1195
  hash?: _polymarket_types.TxHash | undefined;
1400
1196
  }>>;
1401
- declare const RawPerpsPublicTradeResponseSchema: z.ZodPipe<z.ZodObject<{
1197
+ type PerpsPublicTrade = z.infer<typeof PerpsPublicTradeSchema>;
1198
+ declare const PerpsPublicTradeUpdateSchema: z.ZodPipe<z.ZodObject<{
1402
1199
  tid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
1403
1200
  iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1404
1201
  side: z.ZodEnum<typeof PerpsSide>;
@@ -1451,12 +1248,7 @@ declare const FetchPerpsTradesResponseSchema: z.ZodObject<{
1451
1248
  }>>>;
1452
1249
  more: z.ZodBoolean;
1453
1250
  }, z.core.$strip>;
1454
- declare const PerpsFundingRateSchema: z.ZodObject<{
1455
- fundingRate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1456
- timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1457
- }, z.core.$strip>;
1458
- type PerpsFundingRate = z.infer<typeof PerpsFundingRateSchema>;
1459
- declare const RawPerpsFundingRateSchema: z.ZodPipe<z.ZodObject<{
1251
+ declare const PerpsFundingRateSchema: z.ZodPipe<z.ZodObject<{
1460
1252
  funding_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1461
1253
  timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1462
1254
  }, z.core.$strip>, z.ZodTransform<{
@@ -1466,6 +1258,7 @@ declare const RawPerpsFundingRateSchema: z.ZodPipe<z.ZodObject<{
1466
1258
  funding_rate: DecimalString;
1467
1259
  timestamp: EpochMilliseconds;
1468
1260
  }>>;
1261
+ type PerpsFundingRate = z.infer<typeof PerpsFundingRateSchema>;
1469
1262
  declare const FetchPerpsFundingHistoryResponseSchema: z.ZodObject<{
1470
1263
  data: z.ZodArray<z.ZodPipe<z.ZodObject<{
1471
1264
  funding_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -1479,20 +1272,12 @@ declare const FetchPerpsFundingHistoryResponseSchema: z.ZodObject<{
1479
1272
  }>>>;
1480
1273
  more: z.ZodBoolean;
1481
1274
  }, z.core.$strip>;
1482
- declare const PerpsFeeScheduleEntrySchema: z.ZodObject<{
1483
- instrumentType: z.ZodEnum<typeof PerpsInstrumentType>;
1484
- category: z.ZodEnum<typeof PerpsInstrumentCategory>;
1485
- takerFeeRate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1486
- makerFeeRate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1487
- }, z.core.$strip>;
1488
- type PerpsFeeScheduleEntry = z.infer<typeof PerpsFeeScheduleEntrySchema>;
1489
- declare const RawPerpsFeeScheduleEntrySchema: z.ZodPipe<z.ZodObject<{
1275
+ declare const PerpsFeeScheduleEntrySchema: z.ZodPipe<z.ZodObject<{
1490
1276
  instrument_type: z.ZodEnum<typeof PerpsInstrumentType>;
1491
1277
  category: z.ZodEnum<typeof PerpsInstrumentCategory>;
1492
1278
  taker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1493
1279
  maker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1494
1280
  }, z.core.$strip>, z.ZodTransform<{
1495
- instrumentType: PerpsInstrumentType;
1496
1281
  category: PerpsInstrumentCategory;
1497
1282
  takerFeeRate: DecimalString;
1498
1283
  makerFeeRate: DecimalString;
@@ -1502,14 +1287,36 @@ declare const RawPerpsFeeScheduleEntrySchema: z.ZodPipe<z.ZodObject<{
1502
1287
  taker_fee_rate: DecimalString;
1503
1288
  maker_fee_rate: DecimalString;
1504
1289
  }>>;
1505
- declare const PerpsFeesInfoSchema: z.ZodObject<{
1506
- feeSchedule: z.ZodArray<z.ZodObject<{
1507
- instrumentType: z.ZodEnum<typeof PerpsInstrumentType>;
1290
+ type PerpsFeeScheduleEntry = z.infer<typeof PerpsFeeScheduleEntrySchema>;
1291
+ declare const PerpsFeesInfoSchema: z.ZodPipe<z.ZodObject<{
1292
+ fee_schedule: z.ZodArray<z.ZodPipe<z.ZodObject<{
1293
+ instrument_type: z.ZodEnum<typeof PerpsInstrumentType>;
1508
1294
  category: z.ZodEnum<typeof PerpsInstrumentCategory>;
1509
- takerFeeRate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1510
- makerFeeRate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1511
- }, z.core.$strip>>;
1512
- }, z.core.$strip>;
1295
+ taker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1296
+ maker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1297
+ }, z.core.$strip>, z.ZodTransform<{
1298
+ category: PerpsInstrumentCategory;
1299
+ takerFeeRate: DecimalString;
1300
+ makerFeeRate: DecimalString;
1301
+ }, {
1302
+ instrument_type: PerpsInstrumentType.Perpetual;
1303
+ category: PerpsInstrumentCategory;
1304
+ taker_fee_rate: DecimalString;
1305
+ maker_fee_rate: DecimalString;
1306
+ }>>>;
1307
+ }, z.core.$strip>, z.ZodTransform<{
1308
+ feeSchedule: {
1309
+ category: PerpsInstrumentCategory;
1310
+ takerFeeRate: DecimalString;
1311
+ makerFeeRate: DecimalString;
1312
+ }[];
1313
+ }, {
1314
+ fee_schedule: {
1315
+ category: PerpsInstrumentCategory;
1316
+ takerFeeRate: DecimalString;
1317
+ makerFeeRate: DecimalString;
1318
+ }[];
1319
+ }>>;
1513
1320
  type PerpsFeesInfo = z.infer<typeof PerpsFeesInfoSchema>;
1514
1321
  declare const FetchPerpsFeesResponseSchema: z.ZodPipe<z.ZodObject<{
1515
1322
  fee_schedule: z.ZodArray<z.ZodPipe<z.ZodObject<{
@@ -1518,7 +1325,6 @@ declare const FetchPerpsFeesResponseSchema: z.ZodPipe<z.ZodObject<{
1518
1325
  taker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1519
1326
  maker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1520
1327
  }, z.core.$strip>, z.ZodTransform<{
1521
- instrumentType: PerpsInstrumentType;
1522
1328
  category: PerpsInstrumentCategory;
1523
1329
  takerFeeRate: DecimalString;
1524
1330
  makerFeeRate: DecimalString;
@@ -1530,14 +1336,12 @@ declare const FetchPerpsFeesResponseSchema: z.ZodPipe<z.ZodObject<{
1530
1336
  }>>>;
1531
1337
  }, z.core.$strip>, z.ZodTransform<{
1532
1338
  feeSchedule: {
1533
- instrumentType: PerpsInstrumentType;
1534
1339
  category: PerpsInstrumentCategory;
1535
1340
  takerFeeRate: DecimalString;
1536
1341
  makerFeeRate: DecimalString;
1537
1342
  }[];
1538
1343
  }, {
1539
1344
  fee_schedule: {
1540
- instrumentType: PerpsInstrumentType;
1541
1345
  category: PerpsInstrumentCategory;
1542
1346
  takerFeeRate: DecimalString;
1543
1347
  makerFeeRate: DecimalString;
@@ -1556,403 +1360,4 @@ declare const FetchPerpsCandlesResponseSchema: z.ZodObject<{
1556
1360
  more: z.ZodBoolean;
1557
1361
  }, z.core.$strip>;
1558
1362
 
1559
- declare const PerpsOrderSchema: z.ZodObject<{
1560
- orderId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
1561
- instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1562
- buy: z.ZodBoolean;
1563
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1564
- quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1565
- timeInForce: z.ZodEnum<typeof PerpsTimeInForce>;
1566
- postOnly: z.ZodBoolean;
1567
- status: z.ZodString;
1568
- restingQuantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1569
- filledQuantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1570
- createdTimestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1571
- updatedTimestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1572
- clientOrderId: z.ZodOptional<z.ZodString>;
1573
- }, z.core.$strip>;
1574
- type PerpsOrder = z.infer<typeof PerpsOrderSchema>;
1575
- declare const PerpsCommandStatusSchema: z.ZodEnum<{
1576
- ok: "ok";
1577
- err: "err";
1578
- }>;
1579
- declare const PerpsOrderCommandAckSchema: z.ZodObject<{
1580
- status: z.ZodEnum<{
1581
- ok: "ok";
1582
- err: "err";
1583
- }>;
1584
- orderId: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>>;
1585
- clientOrderId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<PerpsClientOrderId, string>>>;
1586
- error: z.ZodOptional<z.ZodString>;
1587
- }, z.core.$strip>;
1588
- type PerpsOrderCommandAck = z.infer<typeof PerpsOrderCommandAckSchema>;
1589
- declare const RawPerpsOrderCommandAckSchema: z.ZodPipe<z.ZodObject<{
1590
- status: z.ZodEnum<{
1591
- ok: "ok";
1592
- err: "err";
1593
- }>;
1594
- oid: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>>;
1595
- coid: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<PerpsClientOrderId, string>>>;
1596
- error: z.ZodOptional<z.ZodString>;
1597
- }, z.core.$strip>, z.ZodTransform<{
1598
- status: "ok" | "err";
1599
- orderId: PerpsOrderId | undefined;
1600
- clientOrderId: PerpsClientOrderId | undefined;
1601
- error: string | undefined;
1602
- }, {
1603
- status: "ok" | "err";
1604
- oid?: PerpsOrderId | undefined;
1605
- coid?: PerpsClientOrderId | undefined;
1606
- error?: string | undefined;
1607
- }>>;
1608
- declare const PerpsCommandAckSchema: z.ZodObject<{
1609
- status: z.ZodEnum<{
1610
- ok: "ok";
1611
- err: "err";
1612
- }>;
1613
- error: z.ZodOptional<z.ZodString>;
1614
- }, z.core.$strip>;
1615
- type PerpsCommandAck = z.infer<typeof PerpsCommandAckSchema>;
1616
- declare const RawPerpsOrderSchema: z.ZodPipe<z.ZodObject<{
1617
- order_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
1618
- instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1619
- buy: z.ZodBoolean;
1620
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1621
- quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1622
- tif: z.ZodEnum<typeof PerpsTimeInForce>;
1623
- post_only: z.ZodBoolean;
1624
- status: z.ZodString;
1625
- resting_quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1626
- filled_quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1627
- created_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1628
- updated_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1629
- client_order_id: z.ZodOptional<z.ZodString>;
1630
- }, z.core.$strip>, z.ZodTransform<{
1631
- orderId: PerpsOrderId;
1632
- instrumentId: PerpsInstrumentId;
1633
- buy: boolean;
1634
- price: DecimalString;
1635
- quantity: DecimalString;
1636
- timeInForce: PerpsTimeInForce;
1637
- postOnly: boolean;
1638
- status: string;
1639
- restingQuantity: DecimalString;
1640
- filledQuantity: DecimalString;
1641
- createdTimestamp: EpochMilliseconds;
1642
- updatedTimestamp: EpochMilliseconds;
1643
- clientOrderId: string | undefined;
1644
- }, {
1645
- order_id: PerpsOrderId;
1646
- instrument_id: PerpsInstrumentId;
1647
- buy: boolean;
1648
- price: DecimalString;
1649
- quantity: DecimalString;
1650
- tif: PerpsTimeInForce;
1651
- post_only: boolean;
1652
- status: string;
1653
- resting_quantity: DecimalString;
1654
- filled_quantity: DecimalString;
1655
- created_timestamp: EpochMilliseconds;
1656
- updated_timestamp: EpochMilliseconds;
1657
- client_order_id?: string | undefined;
1658
- }>>;
1659
- declare const FetchPerpsOrdersResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
1660
- order_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
1661
- instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1662
- buy: z.ZodBoolean;
1663
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1664
- quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1665
- tif: z.ZodEnum<typeof PerpsTimeInForce>;
1666
- post_only: z.ZodBoolean;
1667
- status: z.ZodString;
1668
- resting_quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1669
- filled_quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1670
- created_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1671
- updated_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1672
- client_order_id: z.ZodOptional<z.ZodString>;
1673
- }, z.core.$strip>, z.ZodTransform<{
1674
- orderId: PerpsOrderId;
1675
- instrumentId: PerpsInstrumentId;
1676
- buy: boolean;
1677
- price: DecimalString;
1678
- quantity: DecimalString;
1679
- timeInForce: PerpsTimeInForce;
1680
- postOnly: boolean;
1681
- status: string;
1682
- restingQuantity: DecimalString;
1683
- filledQuantity: DecimalString;
1684
- createdTimestamp: EpochMilliseconds;
1685
- updatedTimestamp: EpochMilliseconds;
1686
- clientOrderId: string | undefined;
1687
- }, {
1688
- order_id: PerpsOrderId;
1689
- instrument_id: PerpsInstrumentId;
1690
- buy: boolean;
1691
- price: DecimalString;
1692
- quantity: DecimalString;
1693
- tif: PerpsTimeInForce;
1694
- post_only: boolean;
1695
- status: string;
1696
- resting_quantity: DecimalString;
1697
- filled_quantity: DecimalString;
1698
- created_timestamp: EpochMilliseconds;
1699
- updated_timestamp: EpochMilliseconds;
1700
- client_order_id?: string | undefined;
1701
- }>>>;
1702
- declare const FetchPerpsOpenOrdersResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
1703
- order_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
1704
- instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1705
- buy: z.ZodBoolean;
1706
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1707
- quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1708
- tif: z.ZodEnum<typeof PerpsTimeInForce>;
1709
- post_only: z.ZodBoolean;
1710
- status: z.ZodString;
1711
- resting_quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1712
- filled_quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1713
- created_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1714
- updated_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1715
- client_order_id: z.ZodOptional<z.ZodString>;
1716
- }, z.core.$strip>, z.ZodTransform<{
1717
- orderId: PerpsOrderId;
1718
- instrumentId: PerpsInstrumentId;
1719
- buy: boolean;
1720
- price: DecimalString;
1721
- quantity: DecimalString;
1722
- timeInForce: PerpsTimeInForce;
1723
- postOnly: boolean;
1724
- status: string;
1725
- restingQuantity: DecimalString;
1726
- filledQuantity: DecimalString;
1727
- createdTimestamp: EpochMilliseconds;
1728
- updatedTimestamp: EpochMilliseconds;
1729
- clientOrderId: string | undefined;
1730
- }, {
1731
- order_id: PerpsOrderId;
1732
- instrument_id: PerpsInstrumentId;
1733
- buy: boolean;
1734
- price: DecimalString;
1735
- quantity: DecimalString;
1736
- tif: PerpsTimeInForce;
1737
- post_only: boolean;
1738
- status: string;
1739
- resting_quantity: DecimalString;
1740
- filled_quantity: DecimalString;
1741
- created_timestamp: EpochMilliseconds;
1742
- updated_timestamp: EpochMilliseconds;
1743
- client_order_id?: string | undefined;
1744
- }>>>;
1745
- declare const RawPerpsOrderUpdateSchema: z.ZodPipe<z.ZodObject<{
1746
- oid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
1747
- iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1748
- buy: z.ZodBoolean;
1749
- p: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1750
- qty: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1751
- tif: z.ZodEnum<typeof PerpsTimeInForce>;
1752
- po: z.ZodBoolean;
1753
- status: z.ZodString;
1754
- rest: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1755
- fill: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1756
- cts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1757
- uts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1758
- coid: z.ZodOptional<z.ZodString>;
1759
- }, z.core.$strip>, z.ZodTransform<{
1760
- orderId: PerpsOrderId;
1761
- instrumentId: PerpsInstrumentId;
1762
- buy: boolean;
1763
- price: DecimalString;
1764
- quantity: DecimalString;
1765
- timeInForce: PerpsTimeInForce;
1766
- postOnly: boolean;
1767
- status: string;
1768
- restingQuantity: DecimalString;
1769
- filledQuantity: DecimalString;
1770
- createdTimestamp: EpochMilliseconds;
1771
- updatedTimestamp: EpochMilliseconds;
1772
- clientOrderId: string | undefined;
1773
- }, {
1774
- oid: PerpsOrderId;
1775
- iid: PerpsInstrumentId;
1776
- buy: boolean;
1777
- p: DecimalString;
1778
- qty: DecimalString;
1779
- tif: PerpsTimeInForce;
1780
- po: boolean;
1781
- status: string;
1782
- rest: DecimalString;
1783
- fill: DecimalString;
1784
- cts: EpochMilliseconds;
1785
- uts: EpochMilliseconds;
1786
- coid?: string | undefined;
1787
- }>>;
1788
- declare const PerpsAccountFillSchema: z.ZodObject<{
1789
- tradeId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
1790
- orderId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
1791
- instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1792
- side: z.ZodEnum<typeof PerpsSide>;
1793
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1794
- quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1795
- taker: z.ZodBoolean;
1796
- fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1797
- feeAsset: z.ZodString;
1798
- previousSize: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1799
- previousEntryPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1800
- pnl: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1801
- liquidation: z.ZodBoolean;
1802
- timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1803
- hash: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>;
1804
- clientOrderId: z.ZodOptional<z.ZodString>;
1805
- }, z.core.$strip>;
1806
- type PerpsAccountFill = z.infer<typeof PerpsAccountFillSchema>;
1807
- declare const RawPerpsAccountFillSchema: z.ZodPipe<z.ZodObject<{
1808
- trade_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
1809
- order_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
1810
- instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1811
- side: z.ZodEnum<typeof PerpsSide>;
1812
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1813
- quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1814
- taker: z.ZodBoolean;
1815
- fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1816
- fee_asset: z.ZodString;
1817
- previous_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1818
- previous_entry_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1819
- pnl: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1820
- liquidation: z.ZodBoolean;
1821
- timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1822
- hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
1823
- }, z.core.$strip>, z.ZodTransform<{
1824
- tradeId: PerpsTradeId;
1825
- orderId: PerpsOrderId;
1826
- instrumentId: PerpsInstrumentId;
1827
- side: PerpsSide;
1828
- price: DecimalString;
1829
- quantity: DecimalString;
1830
- taker: boolean;
1831
- fee: DecimalString;
1832
- feeAsset: string;
1833
- previousSize: DecimalString;
1834
- previousEntryPrice: DecimalString;
1835
- pnl: DecimalString;
1836
- liquidation: boolean;
1837
- timestamp: EpochMilliseconds;
1838
- hash: _polymarket_types.TxHash | undefined;
1839
- }, {
1840
- trade_id: PerpsTradeId;
1841
- order_id: PerpsOrderId;
1842
- instrument_id: PerpsInstrumentId;
1843
- side: PerpsSide;
1844
- price: DecimalString;
1845
- quantity: DecimalString;
1846
- taker: boolean;
1847
- fee: DecimalString;
1848
- fee_asset: string;
1849
- previous_size: DecimalString;
1850
- previous_entry_price: DecimalString;
1851
- pnl: DecimalString;
1852
- liquidation: boolean;
1853
- timestamp: EpochMilliseconds;
1854
- hash?: _polymarket_types.TxHash | undefined;
1855
- }>>;
1856
- declare const ListPerpsFillsResponseSchema: z.ZodObject<{
1857
- data: z.ZodArray<z.ZodPipe<z.ZodObject<{
1858
- trade_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
1859
- order_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
1860
- instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1861
- side: z.ZodEnum<typeof PerpsSide>;
1862
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1863
- quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1864
- taker: z.ZodBoolean;
1865
- fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1866
- fee_asset: z.ZodString;
1867
- previous_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1868
- previous_entry_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1869
- pnl: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1870
- liquidation: z.ZodBoolean;
1871
- timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1872
- hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
1873
- }, z.core.$strip>, z.ZodTransform<{
1874
- tradeId: PerpsTradeId;
1875
- orderId: PerpsOrderId;
1876
- instrumentId: PerpsInstrumentId;
1877
- side: PerpsSide;
1878
- price: DecimalString;
1879
- quantity: DecimalString;
1880
- taker: boolean;
1881
- fee: DecimalString;
1882
- feeAsset: string;
1883
- previousSize: DecimalString;
1884
- previousEntryPrice: DecimalString;
1885
- pnl: DecimalString;
1886
- liquidation: boolean;
1887
- timestamp: EpochMilliseconds;
1888
- hash: _polymarket_types.TxHash | undefined;
1889
- }, {
1890
- trade_id: PerpsTradeId;
1891
- order_id: PerpsOrderId;
1892
- instrument_id: PerpsInstrumentId;
1893
- side: PerpsSide;
1894
- price: DecimalString;
1895
- quantity: DecimalString;
1896
- taker: boolean;
1897
- fee: DecimalString;
1898
- fee_asset: string;
1899
- previous_size: DecimalString;
1900
- previous_entry_price: DecimalString;
1901
- pnl: DecimalString;
1902
- liquidation: boolean;
1903
- timestamp: EpochMilliseconds;
1904
- hash?: _polymarket_types.TxHash | undefined;
1905
- }>>>;
1906
- more: z.ZodBoolean;
1907
- }, z.core.$strip>;
1908
- declare const RawPerpsAccountFillUpdateSchema: z.ZodPipe<z.ZodObject<{
1909
- tid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
1910
- oid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
1911
- iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1912
- side: z.ZodEnum<typeof PerpsSide>;
1913
- p: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1914
- qty: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1915
- taker: z.ZodBoolean;
1916
- fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1917
- fea: z.ZodString;
1918
- psz: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1919
- pep: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1920
- pnl: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1921
- liq: z.ZodBoolean;
1922
- ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1923
- coid: z.ZodOptional<z.ZodString>;
1924
- }, z.core.$strip>, z.ZodTransform<{
1925
- tradeId: PerpsTradeId;
1926
- orderId: PerpsOrderId;
1927
- instrumentId: PerpsInstrumentId;
1928
- side: PerpsSide;
1929
- price: DecimalString;
1930
- quantity: DecimalString;
1931
- taker: boolean;
1932
- fee: DecimalString;
1933
- feeAsset: string;
1934
- previousSize: DecimalString;
1935
- previousEntryPrice: DecimalString;
1936
- pnl: DecimalString;
1937
- liquidation: boolean;
1938
- timestamp: EpochMilliseconds;
1939
- clientOrderId: string | undefined;
1940
- }, {
1941
- tid: PerpsTradeId;
1942
- oid: PerpsOrderId;
1943
- iid: PerpsInstrumentId;
1944
- side: PerpsSide;
1945
- p: DecimalString;
1946
- qty: DecimalString;
1947
- taker: boolean;
1948
- fee: DecimalString;
1949
- fea: string;
1950
- psz: DecimalString;
1951
- pep: DecimalString;
1952
- pnl: DecimalString;
1953
- liq: boolean;
1954
- ts: EpochMilliseconds;
1955
- coid?: string | undefined;
1956
- }>>;
1957
-
1958
- export { FetchPerpsAccountConfigResponseSchema, FetchPerpsBalancesResponseSchema, FetchPerpsCandlesResponseSchema, FetchPerpsFeesResponseSchema, FetchPerpsFundingHistoryResponseSchema, FetchPerpsInstrumentsResponseSchema, FetchPerpsOpenOrdersResponseSchema, FetchPerpsOrdersResponseSchema, FetchPerpsPortfolioResponseSchema, FetchPerpsStatisticsResponseSchema, FetchPerpsTickersResponseSchema, FetchPerpsTradesResponseSchema, ListPerpsDepositsResponseSchema, ListPerpsEquityHistoryResponseSchema, ListPerpsFillsResponseSchema, ListPerpsFundingPaymentsResponseSchema, ListPerpsPnlHistoryResponseSchema, ListPerpsWithdrawalsResponseSchema, type PerpsAccountConfig, PerpsAccountConfigSchema, type PerpsAccountFill, PerpsAccountFillSchema, type PerpsAccountFundingPayment, PerpsAccountFundingPaymentSchema, type PerpsBalance, PerpsBalanceSchema, type PerpsBbo, PerpsBboSchema, type PerpsBook, type PerpsBookLevel, PerpsBookLevelSchema, PerpsBookSchema, type PerpsCandle, PerpsCandleSchema, PerpsClientOrderId, type PerpsCommandAck, PerpsCommandAckSchema, PerpsCommandStatusSchema, type PerpsDeposit, PerpsDepositSchema, PerpsDepositStatus, type PerpsEquityPoint, PerpsEquityPointSchema, type PerpsFeeScheduleEntry, PerpsFeeScheduleEntrySchema, type PerpsFeesInfo, PerpsFeesInfoSchema, type PerpsFundingRate, PerpsFundingRateSchema, type PerpsInstrument, PerpsInstrumentCategory, PerpsInstrumentId, PerpsInstrumentSchema, PerpsInstrumentType, type PerpsInternalTransfer, PerpsInternalTransferDirection, PerpsInternalTransferId, PerpsInternalTransferSchema, type PerpsMarginSummary, PerpsMarginSummarySchema, type PerpsOrder, type PerpsOrderCommandAck, PerpsOrderCommandAckSchema, PerpsOrderId, PerpsOrderSchema, type PerpsPnlPoint, PerpsPnlPointSchema, type PerpsPortfolio, type PerpsPortfolioPosition, PerpsPortfolioPositionSchema, PerpsPortfolioSchema, type PerpsProxyKey, PerpsProxyKeySchema, type PerpsPublicTrade, PerpsPublicTradeSchema, type PerpsRiskTier, PerpsRiskTierSchema, PerpsSide, type PerpsStatistic, PerpsStatisticSchema, type PerpsTicker, PerpsTickerSchema, PerpsTimeInForce, PerpsTradeId, type PerpsWithdrawal, PerpsWithdrawalId, PerpsWithdrawalSchema, PerpsWithdrawalStatus, RawPerpsAccountConfigSchema, RawPerpsAccountFillSchema, RawPerpsAccountFillUpdateSchema, RawPerpsAccountFundingPaymentEntrySchema, RawPerpsAccountFundingPaymentSchema, RawPerpsBboDataSchema, RawPerpsBboSchema, RawPerpsBookSchema, RawPerpsBookUpdateSchema, RawPerpsCreateProxyResponseSchema, RawPerpsCredentialsResponseSchema, RawPerpsDeleteProxyResponseSchema, RawPerpsDepositSchema, RawPerpsDepositUpdateSchema, RawPerpsFeeScheduleEntrySchema, RawPerpsFundingRateSchema, RawPerpsInstrumentSchema, RawPerpsInternalTransferSchema, RawPerpsOrderCommandAckSchema, RawPerpsOrderSchema, RawPerpsOrderUpdateSchema, RawPerpsPortfolioPositionSchema, RawPerpsPortfolioSchema, RawPerpsProxyKeySchema, RawPerpsPublicTradeResponseSchema, RawPerpsPublicTradeSchema, RawPerpsStatisticDataSchema, RawPerpsStatisticSchema, RawPerpsTickerEntrySchema, RawPerpsTickerSchema, RawPerpsWithdrawResponseSchema, RawPerpsWithdrawalSchema, RawPerpsWithdrawalUpdateSchema };
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 };