@polymarket/bindings 0.1.0-beta.9 → 0.1.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.
- package/dist/chunk-2VUWIHOR.js +2 -0
- package/dist/chunk-2VUWIHOR.js.map +1 -0
- package/dist/chunk-667TIILD.js +2 -0
- package/dist/{chunk-GYP7YNXL.js.map → chunk-667TIILD.js.map} +1 -1
- package/dist/chunk-D6QJEBYH.js +2 -0
- package/dist/chunk-D6QJEBYH.js.map +1 -0
- package/dist/clob/index.d.ts +110 -46
- package/dist/clob/index.js +1 -1
- package/dist/clob/index.js.map +1 -1
- package/dist/data/index.d.ts +1049 -915
- package/dist/data/index.js +1 -1
- package/dist/data/index.js.map +1 -1
- package/dist/gamma/index.d.ts +48 -1
- package/dist/gamma/index.js +1 -1
- package/dist/gamma/index.js.map +1 -1
- package/dist/index.d.ts +13 -9
- package/dist/index.js +1 -1
- package/dist/{orders-B7JX0nMz.d.ts → orders-mGd3XVG1.d.ts} +429 -1
- package/dist/perps/index.d.ts +288 -3
- package/dist/perps/index.js +1 -1
- package/dist/relayer/index.js +1 -1
- package/dist/rfq.d.ts +15 -40
- package/dist/rfq.js +1 -1
- package/dist/rfq.js.map +1 -1
- package/dist/subscriptions/index.d.ts +371 -67
- package/dist/subscriptions/index.js +1 -1
- package/dist/subscriptions/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-GYP7YNXL.js +0 -2
- package/dist/chunk-KYFSCD3H.js +0 -2
- package/dist/chunk-KYFSCD3H.js.map +0 -1
- package/dist/chunk-VBHCYSM7.js +0 -2
- package/dist/chunk-VBHCYSM7.js.map +0 -1
package/dist/perps/index.d.ts
CHANGED
|
@@ -1,20 +1,92 @@
|
|
|
1
1
|
import * as _polymarket_types from '@polymarket/types';
|
|
2
|
-
import { P as PerpsInstrumentId, a as
|
|
3
|
-
export { F as FetchPerpsOpenOrdersResponseSchema,
|
|
2
|
+
import { P as PerpsInstrumentId, a as PerpsEntityId, b as PerpsDepositStatus, c as PerpsWithdrawalId, d as PerpsWithdrawalStatus, e as PerpsInternalTransferId, f as PerpsInternalTransferDirection, g as PerpsInstrumentType, h as PerpsInstrumentCategory, i as PerpsTradeId, j as PerpsSide } from '../orders-mGd3XVG1.js';
|
|
3
|
+
export { F as FetchPerpsOpenOrdersResponseSchema, k as FetchPerpsOrdersResponseSchema, L as ListPerpsFillsResponseSchema, l as PerpsAccountFill, m as PerpsAccountFillSchema, n as PerpsAccountFillUpdateSchema, o as PerpsAssetSchema, p as PerpsCancelAllOrdersResponse, q as PerpsCancelAllOrdersResponseSchema, r as PerpsCancelOrderResult, s as PerpsCancelOrderResultSchema, t as PerpsClientOrderId, u as PerpsClientOrderIdSchema, v as PerpsCommandAck, w as PerpsCommandAckSchema, x as PerpsCommandStatusSchema, y as PerpsCredentials, z as PerpsDataResponseSchema, A as PerpsDecimal, B as PerpsDecimalInput, C as PerpsDecimalInputSchema, D as PerpsDepositAmount, E as PerpsDepositStatusSchema, G as PerpsEntityIdSchema, H as PerpsFundingInterval, I as PerpsFundingIntervalSchema, J as PerpsInstrumentCategorySchema, K as PerpsInstrumentIdSchema, M as PerpsInstrumentTypeSchema, N as PerpsInternalTransferDirectionSchema, O as PerpsInternalTransferIdSchema, Q as PerpsKlineInterval, R as PerpsKlineIntervalSchema, S as PerpsOrder, T as PerpsOrderId, U as PerpsOrderIdSchema, V as PerpsOrderSchema, W as PerpsOrderStatus, X as PerpsOrderStatusSchema, Y as PerpsOrderUpdateSchema, Z as PerpsPnlInterval, _ as PerpsPnlIntervalSchema, $ as PerpsPostOrderAck, a0 as PerpsPostOrderAckSchema, a1 as PerpsSideSchema, a2 as PerpsTimeInForce, a3 as PerpsTimeInForceSchema, a4 as PerpsTpSlKind, a5 as PerpsTpSlKindSchema, a6 as PerpsTpSlOrderFields, a7 as PerpsTpSlOrderFieldsSchema, a8 as PerpsTpSlScope, a9 as PerpsTpSlScopeSchema, aa as PerpsTradeIdSchema, ab as PerpsTxHash, ac as PerpsTxHashSchema, ad as PerpsUpdateLeverageResult, ae as PerpsUpdateLeverageResultSchema, af as PerpsWithdrawalAmount, ag as PerpsWithdrawalIdSchema, ah as PerpsWithdrawalStatusSchema, ai as decimalString, aj as perpsBaseUnits, ak as perpsDecimal } from '../orders-mGd3XVG1.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,6 +715,9 @@ 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;
|
|
@@ -596,7 +755,13 @@ 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>>;
|
|
@@ -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,6 +821,9 @@ 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;
|
|
@@ -678,6 +849,9 @@ declare const PerpsWithdrawalUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
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>;
|
|
@@ -763,7 +949,13 @@ declare const PerpsInstrumentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
763
949
|
maxLeverage: number;
|
|
764
950
|
}[];
|
|
765
951
|
}>>;
|
|
952
|
+
/**
|
|
953
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
954
|
+
*/
|
|
766
955
|
type PerpsInstrument = z.infer<typeof PerpsInstrumentSchema>;
|
|
956
|
+
/**
|
|
957
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
958
|
+
*/
|
|
767
959
|
declare const FetchPerpsInstrumentsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
768
960
|
instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
769
961
|
instrument_type: z.ZodEnum<typeof PerpsInstrumentType>;
|
|
@@ -833,6 +1025,9 @@ declare const FetchPerpsInstrumentsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObj
|
|
|
833
1025
|
maxLeverage: number;
|
|
834
1026
|
}[];
|
|
835
1027
|
}>>>;
|
|
1028
|
+
/**
|
|
1029
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1030
|
+
*/
|
|
836
1031
|
declare const PerpsTickerSchema: z.ZodPipe<z.ZodObject<{
|
|
837
1032
|
instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
838
1033
|
symbol: z.ZodString;
|
|
@@ -867,10 +1062,16 @@ declare const PerpsTickerSchema: z.ZodPipe<z.ZodObject<{
|
|
|
867
1062
|
next_funding: EpochMilliseconds;
|
|
868
1063
|
timestamp?: EpochMilliseconds | undefined;
|
|
869
1064
|
}>>;
|
|
1065
|
+
/**
|
|
1066
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1067
|
+
*/
|
|
870
1068
|
type PerpsTicker = z.infer<typeof PerpsTickerSchema> & {
|
|
871
1069
|
openPrice?: DecimalString;
|
|
872
1070
|
volume24h?: DecimalString;
|
|
873
1071
|
};
|
|
1072
|
+
/**
|
|
1073
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1074
|
+
*/
|
|
874
1075
|
declare const FetchPerpsTickersResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
875
1076
|
instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
876
1077
|
symbol: z.ZodString;
|
|
@@ -905,6 +1106,9 @@ declare const FetchPerpsTickersResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<
|
|
|
905
1106
|
next_funding: EpochMilliseconds;
|
|
906
1107
|
timestamp?: EpochMilliseconds | undefined;
|
|
907
1108
|
}>>>;
|
|
1109
|
+
/**
|
|
1110
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1111
|
+
*/
|
|
908
1112
|
declare const PerpsTickerEntrySchema: z.ZodPipe<z.ZodObject<{
|
|
909
1113
|
iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
910
1114
|
idx: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
@@ -933,6 +1137,9 @@ declare const PerpsTickerEntrySchema: z.ZodPipe<z.ZodObject<{
|
|
|
933
1137
|
fr: DecimalString;
|
|
934
1138
|
nxf: EpochMilliseconds;
|
|
935
1139
|
}>>;
|
|
1140
|
+
/**
|
|
1141
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1142
|
+
*/
|
|
936
1143
|
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
1144
|
timestamp: EpochMilliseconds;
|
|
938
1145
|
open: DecimalString;
|
|
@@ -942,7 +1149,13 @@ declare const PerpsCandleSchema: z.ZodPipe<z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.
|
|
|
942
1149
|
volume: DecimalString;
|
|
943
1150
|
trades: number;
|
|
944
1151
|
}, [EpochMilliseconds, DecimalString, DecimalString, DecimalString, DecimalString, DecimalString, number]>>;
|
|
1152
|
+
/**
|
|
1153
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1154
|
+
*/
|
|
945
1155
|
type PerpsCandle = z.infer<typeof PerpsCandleSchema>;
|
|
1156
|
+
/**
|
|
1157
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1158
|
+
*/
|
|
946
1159
|
declare const PerpsStatisticSchema: z.ZodPipe<z.ZodObject<{
|
|
947
1160
|
instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
948
1161
|
symbol: z.ZodOptional<z.ZodString>;
|
|
@@ -986,7 +1199,13 @@ declare const PerpsStatisticSchema: z.ZodPipe<z.ZodObject<{
|
|
|
986
1199
|
}[];
|
|
987
1200
|
symbol?: string | undefined;
|
|
988
1201
|
}>>;
|
|
1202
|
+
/**
|
|
1203
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1204
|
+
*/
|
|
989
1205
|
type PerpsStatistic = z.infer<typeof PerpsStatisticSchema>;
|
|
1206
|
+
/**
|
|
1207
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1208
|
+
*/
|
|
990
1209
|
declare const FetchPerpsStatisticsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
991
1210
|
instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
992
1211
|
symbol: z.ZodOptional<z.ZodString>;
|
|
@@ -1030,6 +1249,9 @@ declare const FetchPerpsStatisticsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObje
|
|
|
1030
1249
|
}[];
|
|
1031
1250
|
symbol?: string | undefined;
|
|
1032
1251
|
}>>>;
|
|
1252
|
+
/**
|
|
1253
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1254
|
+
*/
|
|
1033
1255
|
declare const PerpsStatisticUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
1034
1256
|
iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
1035
1257
|
vol: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
@@ -1070,11 +1292,20 @@ declare const PerpsStatisticUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1070
1292
|
trades: number;
|
|
1071
1293
|
}[];
|
|
1072
1294
|
}>>;
|
|
1295
|
+
/**
|
|
1296
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1297
|
+
*/
|
|
1073
1298
|
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
1299
|
price: DecimalString;
|
|
1075
1300
|
quantity: DecimalString;
|
|
1076
1301
|
}, [DecimalString, DecimalString]>>;
|
|
1302
|
+
/**
|
|
1303
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1304
|
+
*/
|
|
1077
1305
|
type PerpsBookLevel = z.infer<typeof PerpsBookLevelSchema>;
|
|
1306
|
+
/**
|
|
1307
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1308
|
+
*/
|
|
1078
1309
|
declare const PerpsBookSchema: z.ZodPipe<z.ZodObject<{
|
|
1079
1310
|
instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
1080
1311
|
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 +1343,13 @@ declare const PerpsBookSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1112
1343
|
timestamp: EpochMilliseconds;
|
|
1113
1344
|
sequence: number;
|
|
1114
1345
|
}>>;
|
|
1346
|
+
/**
|
|
1347
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1348
|
+
*/
|
|
1115
1349
|
type PerpsBook = z.infer<typeof PerpsBookSchema>;
|
|
1350
|
+
/**
|
|
1351
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1352
|
+
*/
|
|
1116
1353
|
declare const PerpsBookUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
1117
1354
|
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
1355
|
price: DecimalString;
|
|
@@ -1141,6 +1378,9 @@ declare const PerpsBookUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1141
1378
|
quantity: DecimalString;
|
|
1142
1379
|
}[];
|
|
1143
1380
|
}>>;
|
|
1381
|
+
/**
|
|
1382
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1383
|
+
*/
|
|
1144
1384
|
declare const PerpsBboSchema: z.ZodObject<{
|
|
1145
1385
|
instrumentId: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
1146
1386
|
bidPrice: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
@@ -1149,7 +1389,13 @@ declare const PerpsBboSchema: z.ZodObject<{
|
|
|
1149
1389
|
askQuantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1150
1390
|
timestamp: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
|
|
1151
1391
|
}, z.core.$strip>;
|
|
1392
|
+
/**
|
|
1393
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1394
|
+
*/
|
|
1152
1395
|
type PerpsBbo = z.infer<typeof PerpsBboSchema>;
|
|
1396
|
+
/**
|
|
1397
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1398
|
+
*/
|
|
1153
1399
|
declare const PerpsBboUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
1154
1400
|
iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
1155
1401
|
bp: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
@@ -1169,6 +1415,9 @@ declare const PerpsBboUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1169
1415
|
ap: DecimalString;
|
|
1170
1416
|
aq: DecimalString;
|
|
1171
1417
|
}>>;
|
|
1418
|
+
/**
|
|
1419
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1420
|
+
*/
|
|
1172
1421
|
declare const PerpsPublicTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
1173
1422
|
trade_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
|
|
1174
1423
|
instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
@@ -1194,7 +1443,13 @@ declare const PerpsPublicTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1194
1443
|
timestamp: EpochMilliseconds;
|
|
1195
1444
|
hash?: _polymarket_types.TxHash | undefined;
|
|
1196
1445
|
}>>;
|
|
1446
|
+
/**
|
|
1447
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1448
|
+
*/
|
|
1197
1449
|
type PerpsPublicTrade = z.infer<typeof PerpsPublicTradeSchema>;
|
|
1450
|
+
/**
|
|
1451
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1452
|
+
*/
|
|
1198
1453
|
declare const PerpsPublicTradeUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
1199
1454
|
tid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
|
|
1200
1455
|
iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
@@ -1220,6 +1475,9 @@ declare const PerpsPublicTradeUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1220
1475
|
ts: EpochMilliseconds;
|
|
1221
1476
|
hash?: _polymarket_types.TxHash | undefined;
|
|
1222
1477
|
}>>;
|
|
1478
|
+
/**
|
|
1479
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1480
|
+
*/
|
|
1223
1481
|
declare const FetchPerpsTradesResponseSchema: z.ZodObject<{
|
|
1224
1482
|
data: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1225
1483
|
trade_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
|
|
@@ -1248,6 +1506,9 @@ declare const FetchPerpsTradesResponseSchema: z.ZodObject<{
|
|
|
1248
1506
|
}>>>;
|
|
1249
1507
|
more: z.ZodBoolean;
|
|
1250
1508
|
}, z.core.$strip>;
|
|
1509
|
+
/**
|
|
1510
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1511
|
+
*/
|
|
1251
1512
|
declare const PerpsFundingRateSchema: z.ZodPipe<z.ZodObject<{
|
|
1252
1513
|
funding_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1253
1514
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
@@ -1258,7 +1519,13 @@ declare const PerpsFundingRateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1258
1519
|
funding_rate: DecimalString;
|
|
1259
1520
|
timestamp: EpochMilliseconds;
|
|
1260
1521
|
}>>;
|
|
1522
|
+
/**
|
|
1523
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1524
|
+
*/
|
|
1261
1525
|
type PerpsFundingRate = z.infer<typeof PerpsFundingRateSchema>;
|
|
1526
|
+
/**
|
|
1527
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1528
|
+
*/
|
|
1262
1529
|
declare const FetchPerpsFundingHistoryResponseSchema: z.ZodObject<{
|
|
1263
1530
|
data: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1264
1531
|
funding_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
@@ -1272,6 +1539,9 @@ declare const FetchPerpsFundingHistoryResponseSchema: z.ZodObject<{
|
|
|
1272
1539
|
}>>>;
|
|
1273
1540
|
more: z.ZodBoolean;
|
|
1274
1541
|
}, z.core.$strip>;
|
|
1542
|
+
/**
|
|
1543
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1544
|
+
*/
|
|
1275
1545
|
declare const PerpsFeeScheduleEntrySchema: z.ZodPipe<z.ZodObject<{
|
|
1276
1546
|
instrument_type: z.ZodEnum<typeof PerpsInstrumentType>;
|
|
1277
1547
|
category: z.ZodEnum<typeof PerpsInstrumentCategory>;
|
|
@@ -1287,7 +1557,13 @@ declare const PerpsFeeScheduleEntrySchema: z.ZodPipe<z.ZodObject<{
|
|
|
1287
1557
|
taker_fee_rate: DecimalString;
|
|
1288
1558
|
maker_fee_rate: DecimalString;
|
|
1289
1559
|
}>>;
|
|
1560
|
+
/**
|
|
1561
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1562
|
+
*/
|
|
1290
1563
|
type PerpsFeeScheduleEntry = z.infer<typeof PerpsFeeScheduleEntrySchema>;
|
|
1564
|
+
/**
|
|
1565
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1566
|
+
*/
|
|
1291
1567
|
declare const PerpsFeesInfoSchema: z.ZodPipe<z.ZodObject<{
|
|
1292
1568
|
fee_schedule: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1293
1569
|
instrument_type: z.ZodEnum<typeof PerpsInstrumentType>;
|
|
@@ -1317,7 +1593,13 @@ declare const PerpsFeesInfoSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1317
1593
|
makerFeeRate: DecimalString;
|
|
1318
1594
|
}[];
|
|
1319
1595
|
}>>;
|
|
1596
|
+
/**
|
|
1597
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1598
|
+
*/
|
|
1320
1599
|
type PerpsFeesInfo = z.infer<typeof PerpsFeesInfoSchema>;
|
|
1600
|
+
/**
|
|
1601
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1602
|
+
*/
|
|
1321
1603
|
declare const FetchPerpsFeesResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
1322
1604
|
fee_schedule: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1323
1605
|
instrument_type: z.ZodEnum<typeof PerpsInstrumentType>;
|
|
@@ -1347,6 +1629,9 @@ declare const FetchPerpsFeesResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1347
1629
|
makerFeeRate: DecimalString;
|
|
1348
1630
|
}[];
|
|
1349
1631
|
}>>;
|
|
1632
|
+
/**
|
|
1633
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1634
|
+
*/
|
|
1350
1635
|
declare const FetchPerpsCandlesResponseSchema: z.ZodObject<{
|
|
1351
1636
|
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
1637
|
timestamp: EpochMilliseconds;
|
|
@@ -1360,4 +1645,4 @@ declare const FetchPerpsCandlesResponseSchema: z.ZodObject<{
|
|
|
1360
1645
|
more: z.ZodBoolean;
|
|
1361
1646
|
}, z.core.$strip>;
|
|
1362
1647
|
|
|
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 };
|
|
1648
|
+
export { FetchPerpsAccountConfigResponseSchema, FetchPerpsAccountStatsResponseSchema, FetchPerpsBalancesResponseSchema, FetchPerpsCandlesResponseSchema, FetchPerpsFeesResponseSchema, FetchPerpsFundingHistoryResponseSchema, FetchPerpsInstrumentsResponseSchema, FetchPerpsPortfolioResponseSchema, FetchPerpsStatisticsResponseSchema, FetchPerpsTickersResponseSchema, FetchPerpsTradesResponseSchema, ListPerpsDepositsResponseSchema, ListPerpsEquityHistoryResponseSchema, ListPerpsFundingPaymentsResponseSchema, ListPerpsPnlHistoryResponseSchema, ListPerpsWithdrawalsResponseSchema, type PerpsAccountConfig, PerpsAccountConfigSchema, type PerpsAccountFundingPayment, PerpsAccountFundingPaymentEntrySchema, PerpsAccountFundingPaymentSchema, type PerpsAccountStats, PerpsAccountStatsSchema, type PerpsBalance, PerpsBalanceSchema, type PerpsBbo, PerpsBboSchema, PerpsBboUpdateSchema, type PerpsBook, type PerpsBookLevel, PerpsBookLevelSchema, PerpsBookSchema, PerpsBookUpdateSchema, type PerpsCandle, PerpsCandleSchema, PerpsCreateProxyResponseSchema, PerpsCredentialsResponseSchema, PerpsDeleteProxyResponseSchema, type PerpsDeposit, PerpsDepositSchema, PerpsDepositStatus, PerpsDepositUpdateSchema, PerpsEntityId, type PerpsEquityPoint, PerpsEquityPointSchema, type PerpsFeeScheduleEntry, PerpsFeeScheduleEntrySchema, type PerpsFeesInfo, PerpsFeesInfoSchema, type PerpsFundingRate, PerpsFundingRateSchema, type PerpsInstrument, PerpsInstrumentCategory, PerpsInstrumentId, PerpsInstrumentSchema, PerpsInstrumentType, type PerpsInternalTransfer, PerpsInternalTransferDirection, PerpsInternalTransferId, PerpsInternalTransferSchema, type PerpsMarginSummary, PerpsMarginSummarySchema, type PerpsPnlPoint, PerpsPnlPointSchema, type PerpsPortfolio, type PerpsPortfolioPosition, PerpsPortfolioPositionSchema, PerpsPortfolioSchema, type PerpsProxyKey, PerpsProxyKeySchema, type PerpsPublicTrade, PerpsPublicTradeSchema, PerpsPublicTradeUpdateSchema, type PerpsRiskTier, PerpsRiskTierSchema, PerpsSide, type PerpsStatistic, PerpsStatisticSchema, PerpsStatisticUpdateSchema, type PerpsTicker, PerpsTickerEntrySchema, PerpsTickerSchema, PerpsTradeId, PerpsWithdrawResponseSchema, type PerpsWithdrawal, PerpsWithdrawalId, PerpsWithdrawalSchema, PerpsWithdrawalStatus, PerpsWithdrawalUpdateSchema };
|