@polymarket/bindings 0.1.0-beta.0 → 0.1.0-beta.10
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-CCTEF2UT.js +2 -0
- package/dist/chunk-CCTEF2UT.js.map +1 -0
- package/dist/chunk-GYP7YNXL.js +2 -0
- package/dist/chunk-GYP7YNXL.js.map +1 -0
- package/dist/chunk-HOD4LKZU.js +2 -0
- package/dist/chunk-HOD4LKZU.js.map +1 -0
- package/dist/chunk-VBHCYSM7.js +2 -0
- package/dist/chunk-VBHCYSM7.js.map +1 -0
- package/dist/clob/index.d.ts +110 -135
- package/dist/clob/index.js +1 -1
- package/dist/clob/index.js.map +1 -1
- package/dist/data/index.d.ts +849 -60
- package/dist/data/index.js +1 -1
- package/dist/data/index.js.map +1 -1
- package/dist/gamma/index.d.ts +168 -198
- package/dist/gamma/index.js +1 -1
- package/dist/gamma/index.js.map +1 -1
- package/dist/index.d.ts +39 -7
- package/dist/index.js +1 -1
- package/dist/orders-DHP1WzKt.d.ts +720 -0
- package/dist/perps/index.d.ts +1414 -0
- package/dist/perps/index.js +2 -0
- package/dist/perps/index.js.map +1 -0
- package/dist/relayer/index.js +1 -1
- package/dist/relayer/index.js.map +1 -1
- package/dist/rfq.d.ts +701 -0
- package/dist/rfq.js +2 -0
- package/dist/rfq.js.map +1 -0
- package/dist/signature-type-CrLAA9AN.d.ts +23 -0
- package/dist/subscriptions/index.d.ts +2030 -12
- package/dist/subscriptions/index.js +1 -1
- package/dist/subscriptions/index.js.map +1 -1
- package/package.json +25 -3
- package/dist/chunk-6WCDEPBE.js +0 -2
- package/dist/chunk-6WCDEPBE.js.map +0 -1
- package/dist/chunk-TM2ZY32Q.js +0 -2
- package/dist/chunk-TM2ZY32Q.js.map +0 -1
package/dist/clob/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as _polymarket_types from '@polymarket/types';
|
|
2
2
|
import { TxHash } from '@polymarket/types';
|
|
3
|
-
import { BaseUnits, TokenId, DecimalString, IsoDateTimeString, NotificationId, EpochMilliseconds,
|
|
3
|
+
import { BaseUnits, TokenId, DecimalString, IsoDateTimeString, NotificationId, EpochMilliseconds, CtfConditionId, ApiKey, OrderSide } from '../index.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
+
export { S as SignatureType, a as SignatureTypeSchema } from '../signature-type-CrLAA9AN.js';
|
|
5
6
|
|
|
6
7
|
declare const ClosedOnlyModeSchema: z.ZodPipe<z.ZodObject<{
|
|
7
8
|
closed_only: z.ZodBoolean;
|
|
@@ -220,7 +221,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
220
221
|
type OpenOrdersPage = z.infer<typeof OpenOrdersPageSchema>;
|
|
221
222
|
declare const MakerOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
222
223
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
223
|
-
fee_rate_bps: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
224
|
+
fee_rate_bps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
|
|
224
225
|
maker_address: z.ZodString;
|
|
225
226
|
matched_amount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
226
227
|
order_id: z.ZodString;
|
|
@@ -230,7 +231,7 @@ declare const MakerOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
230
231
|
side: z.ZodString;
|
|
231
232
|
}, z.core.$strip>, z.ZodTransform<{
|
|
232
233
|
tokenId: TokenId;
|
|
233
|
-
feeRateBps: DecimalString;
|
|
234
|
+
feeRateBps: DecimalString | null;
|
|
234
235
|
makerAddress: string;
|
|
235
236
|
matchedAmount: DecimalString;
|
|
236
237
|
orderId: string;
|
|
@@ -240,7 +241,7 @@ declare const MakerOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
240
241
|
side: string;
|
|
241
242
|
}, {
|
|
242
243
|
asset_id: TokenId;
|
|
243
|
-
fee_rate_bps: DecimalString;
|
|
244
|
+
fee_rate_bps: DecimalString | null;
|
|
244
245
|
maker_address: string;
|
|
245
246
|
matched_amount: DecimalString;
|
|
246
247
|
order_id: string;
|
|
@@ -258,7 +259,7 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
258
259
|
maker_address: z.ZodString;
|
|
259
260
|
maker_orders: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
260
261
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
261
|
-
fee_rate_bps: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
262
|
+
fee_rate_bps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
|
|
262
263
|
maker_address: z.ZodString;
|
|
263
264
|
matched_amount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
264
265
|
order_id: z.ZodString;
|
|
@@ -268,7 +269,7 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
268
269
|
side: z.ZodString;
|
|
269
270
|
}, z.core.$strip>, z.ZodTransform<{
|
|
270
271
|
tokenId: TokenId;
|
|
271
|
-
feeRateBps: DecimalString;
|
|
272
|
+
feeRateBps: DecimalString | null;
|
|
272
273
|
makerAddress: string;
|
|
273
274
|
matchedAmount: DecimalString;
|
|
274
275
|
orderId: string;
|
|
@@ -278,7 +279,7 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
278
279
|
side: string;
|
|
279
280
|
}, {
|
|
280
281
|
asset_id: TokenId;
|
|
281
|
-
fee_rate_bps: DecimalString;
|
|
282
|
+
fee_rate_bps: DecimalString | null;
|
|
282
283
|
maker_address: string;
|
|
283
284
|
matched_amount: DecimalString;
|
|
284
285
|
order_id: string;
|
|
@@ -309,7 +310,7 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
309
310
|
makerAddress: string;
|
|
310
311
|
makerOrders: {
|
|
311
312
|
tokenId: TokenId;
|
|
312
|
-
feeRateBps: DecimalString;
|
|
313
|
+
feeRateBps: DecimalString | null;
|
|
313
314
|
makerAddress: string;
|
|
314
315
|
matchedAmount: DecimalString;
|
|
315
316
|
orderId: string;
|
|
@@ -339,7 +340,7 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
339
340
|
maker_address: string;
|
|
340
341
|
maker_orders: {
|
|
341
342
|
tokenId: TokenId;
|
|
342
|
-
feeRateBps: DecimalString;
|
|
343
|
+
feeRateBps: DecimalString | null;
|
|
343
344
|
makerAddress: string;
|
|
344
345
|
matchedAmount: DecimalString;
|
|
345
346
|
orderId: string;
|
|
@@ -372,7 +373,7 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
372
373
|
maker_address: z.ZodString;
|
|
373
374
|
maker_orders: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
374
375
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
375
|
-
fee_rate_bps: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
376
|
+
fee_rate_bps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
|
|
376
377
|
maker_address: z.ZodString;
|
|
377
378
|
matched_amount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
378
379
|
order_id: z.ZodString;
|
|
@@ -382,7 +383,7 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
382
383
|
side: z.ZodString;
|
|
383
384
|
}, z.core.$strip>, z.ZodTransform<{
|
|
384
385
|
tokenId: TokenId;
|
|
385
|
-
feeRateBps: DecimalString;
|
|
386
|
+
feeRateBps: DecimalString | null;
|
|
386
387
|
makerAddress: string;
|
|
387
388
|
matchedAmount: DecimalString;
|
|
388
389
|
orderId: string;
|
|
@@ -392,7 +393,7 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
392
393
|
side: string;
|
|
393
394
|
}, {
|
|
394
395
|
asset_id: TokenId;
|
|
395
|
-
fee_rate_bps: DecimalString;
|
|
396
|
+
fee_rate_bps: DecimalString | null;
|
|
396
397
|
maker_address: string;
|
|
397
398
|
matched_amount: DecimalString;
|
|
398
399
|
order_id: string;
|
|
@@ -423,7 +424,7 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
423
424
|
makerAddress: string;
|
|
424
425
|
makerOrders: {
|
|
425
426
|
tokenId: TokenId;
|
|
426
|
-
feeRateBps: DecimalString;
|
|
427
|
+
feeRateBps: DecimalString | null;
|
|
427
428
|
makerAddress: string;
|
|
428
429
|
matchedAmount: DecimalString;
|
|
429
430
|
orderId: string;
|
|
@@ -453,7 +454,7 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
453
454
|
maker_address: string;
|
|
454
455
|
maker_orders: {
|
|
455
456
|
tokenId: TokenId;
|
|
456
|
-
feeRateBps: DecimalString;
|
|
457
|
+
feeRateBps: DecimalString | null;
|
|
457
458
|
makerAddress: string;
|
|
458
459
|
matchedAmount: DecimalString;
|
|
459
460
|
orderId: string;
|
|
@@ -487,7 +488,7 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
487
488
|
makerAddress: string;
|
|
488
489
|
makerOrders: {
|
|
489
490
|
tokenId: TokenId;
|
|
490
|
-
feeRateBps: DecimalString;
|
|
491
|
+
feeRateBps: DecimalString | null;
|
|
491
492
|
makerAddress: string;
|
|
492
493
|
matchedAmount: DecimalString;
|
|
493
494
|
orderId: string;
|
|
@@ -520,7 +521,7 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
520
521
|
makerAddress: string;
|
|
521
522
|
makerOrders: {
|
|
522
523
|
tokenId: TokenId;
|
|
523
|
-
feeRateBps: DecimalString;
|
|
524
|
+
feeRateBps: DecimalString | null;
|
|
524
525
|
makerAddress: string;
|
|
525
526
|
matchedAmount: DecimalString;
|
|
526
527
|
orderId: string;
|
|
@@ -581,21 +582,21 @@ type OrdersScoringResponse = z.infer<typeof OrdersScoringResponseSchema>;
|
|
|
581
582
|
declare const UserEarningSchema: z.ZodPipe<z.ZodObject<{
|
|
582
583
|
asset_address: z.ZodString;
|
|
583
584
|
asset_rate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
584
|
-
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
585
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
585
586
|
date: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>;
|
|
586
587
|
earnings: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
587
588
|
maker_address: z.ZodString;
|
|
588
589
|
}, z.core.$strip>, z.ZodTransform<{
|
|
589
590
|
assetAddress: string;
|
|
590
591
|
assetRate: DecimalString;
|
|
591
|
-
conditionId:
|
|
592
|
+
conditionId: CtfConditionId;
|
|
592
593
|
makerAddress: string;
|
|
593
594
|
date: IsoDateTimeString;
|
|
594
595
|
earnings: DecimalString;
|
|
595
596
|
}, {
|
|
596
597
|
asset_address: string;
|
|
597
598
|
asset_rate: DecimalString;
|
|
598
|
-
condition_id:
|
|
599
|
+
condition_id: CtfConditionId;
|
|
599
600
|
date: IsoDateTimeString;
|
|
600
601
|
earnings: DecimalString;
|
|
601
602
|
maker_address: string;
|
|
@@ -606,21 +607,21 @@ declare const UserEarningsPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
606
607
|
data: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
607
608
|
asset_address: z.ZodString;
|
|
608
609
|
asset_rate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
609
|
-
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
610
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
610
611
|
date: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>;
|
|
611
612
|
earnings: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
612
613
|
maker_address: z.ZodString;
|
|
613
614
|
}, z.core.$strip>, z.ZodTransform<{
|
|
614
615
|
assetAddress: string;
|
|
615
616
|
assetRate: DecimalString;
|
|
616
|
-
conditionId:
|
|
617
|
+
conditionId: CtfConditionId;
|
|
617
618
|
makerAddress: string;
|
|
618
619
|
date: IsoDateTimeString;
|
|
619
620
|
earnings: DecimalString;
|
|
620
621
|
}, {
|
|
621
622
|
asset_address: string;
|
|
622
623
|
asset_rate: DecimalString;
|
|
623
|
-
condition_id:
|
|
624
|
+
condition_id: CtfConditionId;
|
|
624
625
|
date: IsoDateTimeString;
|
|
625
626
|
earnings: DecimalString;
|
|
626
627
|
maker_address: string;
|
|
@@ -633,7 +634,7 @@ declare const UserEarningsPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
633
634
|
data: {
|
|
634
635
|
assetAddress: string;
|
|
635
636
|
assetRate: DecimalString;
|
|
636
|
-
conditionId:
|
|
637
|
+
conditionId: CtfConditionId;
|
|
637
638
|
makerAddress: string;
|
|
638
639
|
date: IsoDateTimeString;
|
|
639
640
|
earnings: DecimalString;
|
|
@@ -644,7 +645,7 @@ declare const UserEarningsPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
644
645
|
data: {
|
|
645
646
|
assetAddress: string;
|
|
646
647
|
assetRate: DecimalString;
|
|
647
|
-
conditionId:
|
|
648
|
+
conditionId: CtfConditionId;
|
|
648
649
|
makerAddress: string;
|
|
649
650
|
date: IsoDateTimeString;
|
|
650
651
|
earnings: DecimalString;
|
|
@@ -693,7 +694,7 @@ declare const TotalUserEarningsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<
|
|
|
693
694
|
maker_address: string;
|
|
694
695
|
}>>>;
|
|
695
696
|
type TotalUserEarningsResponse = z.infer<typeof TotalUserEarningsResponseSchema>;
|
|
696
|
-
declare const RewardsPercentagesSchema: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
697
|
+
declare const RewardsPercentagesSchema: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>, z.ZodNumber>;
|
|
697
698
|
type RewardsPercentages = z.infer<typeof RewardsPercentagesSchema>;
|
|
698
699
|
declare const TokenSchema: z.ZodPipe<z.ZodObject<{
|
|
699
700
|
outcome: z.ZodString;
|
|
@@ -741,7 +742,7 @@ declare const EarningSchema: z.ZodPipe<z.ZodObject<{
|
|
|
741
742
|
earnings: DecimalString;
|
|
742
743
|
}>>;
|
|
743
744
|
declare const UserRewardsEarningSchema: z.ZodPipe<z.ZodObject<{
|
|
744
|
-
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
745
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
745
746
|
earning_percentage: z.ZodNumber;
|
|
746
747
|
earnings: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
747
748
|
asset_address: z.ZodString;
|
|
@@ -797,7 +798,7 @@ declare const UserRewardsEarningSchema: z.ZodPipe<z.ZodObject<{
|
|
|
797
798
|
token_id: TokenId;
|
|
798
799
|
}>>>;
|
|
799
800
|
}, z.core.$strip>, z.ZodTransform<{
|
|
800
|
-
conditionId:
|
|
801
|
+
conditionId: CtfConditionId;
|
|
801
802
|
earningPercentage: number;
|
|
802
803
|
eventSlug: string;
|
|
803
804
|
makerAddress: string;
|
|
@@ -825,7 +826,7 @@ declare const UserRewardsEarningSchema: z.ZodPipe<z.ZodObject<{
|
|
|
825
826
|
price: DecimalString;
|
|
826
827
|
}[];
|
|
827
828
|
}, {
|
|
828
|
-
condition_id:
|
|
829
|
+
condition_id: CtfConditionId;
|
|
829
830
|
earning_percentage: number;
|
|
830
831
|
earnings: {
|
|
831
832
|
assetAddress: string;
|
|
@@ -857,7 +858,7 @@ type UserRewardsEarning = z.infer<typeof UserRewardsEarningSchema>;
|
|
|
857
858
|
declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
|
|
858
859
|
count: z.ZodNumber;
|
|
859
860
|
data: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
860
|
-
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
861
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
861
862
|
earning_percentage: z.ZodNumber;
|
|
862
863
|
earnings: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
863
864
|
asset_address: z.ZodString;
|
|
@@ -913,7 +914,7 @@ declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
913
914
|
token_id: TokenId;
|
|
914
915
|
}>>>;
|
|
915
916
|
}, z.core.$strip>, z.ZodTransform<{
|
|
916
|
-
conditionId:
|
|
917
|
+
conditionId: CtfConditionId;
|
|
917
918
|
earningPercentage: number;
|
|
918
919
|
eventSlug: string;
|
|
919
920
|
makerAddress: string;
|
|
@@ -941,7 +942,7 @@ declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
941
942
|
price: DecimalString;
|
|
942
943
|
}[];
|
|
943
944
|
}, {
|
|
944
|
-
condition_id:
|
|
945
|
+
condition_id: CtfConditionId;
|
|
945
946
|
earning_percentage: number;
|
|
946
947
|
earnings: {
|
|
947
948
|
assetAddress: string;
|
|
@@ -975,7 +976,7 @@ declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
975
976
|
nextCursor: string;
|
|
976
977
|
count: number;
|
|
977
978
|
data: {
|
|
978
|
-
conditionId:
|
|
979
|
+
conditionId: CtfConditionId;
|
|
979
980
|
earningPercentage: number;
|
|
980
981
|
eventSlug: string;
|
|
981
982
|
makerAddress: string;
|
|
@@ -1007,7 +1008,7 @@ declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1007
1008
|
}, {
|
|
1008
1009
|
count: number;
|
|
1009
1010
|
data: {
|
|
1010
|
-
conditionId:
|
|
1011
|
+
conditionId: CtfConditionId;
|
|
1011
1012
|
earningPercentage: number;
|
|
1012
1013
|
eventSlug: string;
|
|
1013
1014
|
makerAddress: string;
|
|
@@ -1040,11 +1041,6 @@ declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1040
1041
|
}>>;
|
|
1041
1042
|
type UserRewardsEarningsPage = z.infer<typeof UserRewardsEarningsPageSchema>;
|
|
1042
1043
|
|
|
1043
|
-
declare const RawApiKeyCredsSchema: z.ZodObject<{
|
|
1044
|
-
apiKey: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
|
|
1045
|
-
secret: z.ZodString;
|
|
1046
|
-
passphrase: z.ZodString;
|
|
1047
|
-
}, z.core.$strip>;
|
|
1048
1044
|
declare const ApiKeyCredsSchema: z.ZodPipe<z.ZodObject<{
|
|
1049
1045
|
apiKey: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
|
|
1050
1046
|
secret: z.ZodString;
|
|
@@ -1420,14 +1416,14 @@ declare const PriceHistorySchema: z.ZodObject<{
|
|
|
1420
1416
|
}, z.core.$strip>;
|
|
1421
1417
|
type PriceHistory = z.infer<typeof PriceHistorySchema>;
|
|
1422
1418
|
declare const ConditionByTokenSchema: z.ZodPipe<z.ZodObject<{
|
|
1423
|
-
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
1424
|
-
}, z.core.$strip>, z.ZodTransform<
|
|
1425
|
-
condition_id:
|
|
1419
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
1420
|
+
}, z.core.$strip>, z.ZodTransform<CtfConditionId, {
|
|
1421
|
+
condition_id: CtfConditionId;
|
|
1426
1422
|
}>>;
|
|
1427
1423
|
declare const ResolveConditionByTokenResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
1428
|
-
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
1429
|
-
}, z.core.$strip>, z.ZodTransform<
|
|
1430
|
-
condition_id:
|
|
1424
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
1425
|
+
}, z.core.$strip>, z.ZodTransform<CtfConditionId, {
|
|
1426
|
+
condition_id: CtfConditionId;
|
|
1431
1427
|
}>>;
|
|
1432
1428
|
type ConditionByToken = z.infer<typeof ConditionByTokenSchema>;
|
|
1433
1429
|
type ResolveConditionByTokenResponse = z.infer<typeof ResolveConditionByTokenResponseSchema>;
|
|
@@ -1553,12 +1549,35 @@ declare const FetchNegRiskResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1553
1549
|
type NegRisk = z.infer<typeof NegRiskSchema>;
|
|
1554
1550
|
type FetchNegRiskResponse = z.infer<typeof FetchNegRiskResponseSchema>;
|
|
1555
1551
|
|
|
1552
|
+
type OrderBookLevel = {
|
|
1553
|
+
price: DecimalString;
|
|
1554
|
+
size: DecimalString;
|
|
1555
|
+
};
|
|
1556
|
+
/** SHA-1 hash of the serialized order book summary, encoded as bare lowercase hex. */
|
|
1557
|
+
type OrderBookHash = string & {
|
|
1558
|
+
readonly __tag: 'OrderBookHash';
|
|
1559
|
+
};
|
|
1560
|
+
type OrderBook = {
|
|
1561
|
+
market: CtfConditionId;
|
|
1562
|
+
tokenId: TokenId;
|
|
1563
|
+
timestamp?: EpochMilliseconds | null;
|
|
1564
|
+
/** Bid levels in ascending price order, lowest bid first. */
|
|
1565
|
+
bids: OrderBookLevel[];
|
|
1566
|
+
/** Ask levels in descending price order, highest ask first. */
|
|
1567
|
+
asks: OrderBookLevel[];
|
|
1568
|
+
minOrderSize: DecimalString;
|
|
1569
|
+
tickSize: DecimalString;
|
|
1570
|
+
negRisk: boolean;
|
|
1571
|
+
lastTradePrice?: DecimalString | null;
|
|
1572
|
+
hash: OrderBookHash;
|
|
1573
|
+
};
|
|
1556
1574
|
declare const OrderBookLevelSchema: z.ZodObject<{
|
|
1557
1575
|
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1558
1576
|
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1559
1577
|
}, z.core.$strip>;
|
|
1578
|
+
declare const OrderBookHashSchema: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
|
|
1560
1579
|
declare const OrderBookSchema: z.ZodPipe<z.ZodObject<{
|
|
1561
|
-
market: z.ZodString
|
|
1580
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
1562
1581
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
1563
1582
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
|
|
1564
1583
|
bids: z.ZodArray<z.ZodObject<{
|
|
@@ -1573,14 +1592,14 @@ declare const OrderBookSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1573
1592
|
tick_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1574
1593
|
neg_risk: z.ZodBoolean;
|
|
1575
1594
|
last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
|
|
1576
|
-
hash: z.ZodString
|
|
1595
|
+
hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
|
|
1577
1596
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1578
1597
|
tokenId: TokenId;
|
|
1579
1598
|
minOrderSize: DecimalString;
|
|
1580
1599
|
tickSize: DecimalString;
|
|
1581
1600
|
negRisk: boolean;
|
|
1582
1601
|
lastTradePrice: DecimalString | null | undefined;
|
|
1583
|
-
market:
|
|
1602
|
+
market: CtfConditionId;
|
|
1584
1603
|
bids: {
|
|
1585
1604
|
price: DecimalString;
|
|
1586
1605
|
size: DecimalString;
|
|
@@ -1589,10 +1608,10 @@ declare const OrderBookSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1589
1608
|
price: DecimalString;
|
|
1590
1609
|
size: DecimalString;
|
|
1591
1610
|
}[];
|
|
1592
|
-
hash:
|
|
1611
|
+
hash: OrderBookHash;
|
|
1593
1612
|
timestamp?: EpochMilliseconds | null | undefined;
|
|
1594
1613
|
}, {
|
|
1595
|
-
market:
|
|
1614
|
+
market: CtfConditionId;
|
|
1596
1615
|
asset_id: TokenId;
|
|
1597
1616
|
bids: {
|
|
1598
1617
|
price: DecimalString;
|
|
@@ -1605,12 +1624,12 @@ declare const OrderBookSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1605
1624
|
min_order_size: DecimalString;
|
|
1606
1625
|
tick_size: DecimalString;
|
|
1607
1626
|
neg_risk: boolean;
|
|
1608
|
-
hash:
|
|
1627
|
+
hash: OrderBookHash;
|
|
1609
1628
|
timestamp?: EpochMilliseconds | null | undefined;
|
|
1610
1629
|
last_trade_price?: DecimalString | null | undefined;
|
|
1611
1630
|
}>>;
|
|
1612
1631
|
declare const FetchOrderBookResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
1613
|
-
market: z.ZodString
|
|
1632
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
1614
1633
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
1615
1634
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
|
|
1616
1635
|
bids: z.ZodArray<z.ZodObject<{
|
|
@@ -1625,14 +1644,14 @@ declare const FetchOrderBookResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1625
1644
|
tick_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1626
1645
|
neg_risk: z.ZodBoolean;
|
|
1627
1646
|
last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
|
|
1628
|
-
hash: z.ZodString
|
|
1647
|
+
hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
|
|
1629
1648
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1630
1649
|
tokenId: TokenId;
|
|
1631
1650
|
minOrderSize: DecimalString;
|
|
1632
1651
|
tickSize: DecimalString;
|
|
1633
1652
|
negRisk: boolean;
|
|
1634
1653
|
lastTradePrice: DecimalString | null | undefined;
|
|
1635
|
-
market:
|
|
1654
|
+
market: CtfConditionId;
|
|
1636
1655
|
bids: {
|
|
1637
1656
|
price: DecimalString;
|
|
1638
1657
|
size: DecimalString;
|
|
@@ -1641,10 +1660,10 @@ declare const FetchOrderBookResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1641
1660
|
price: DecimalString;
|
|
1642
1661
|
size: DecimalString;
|
|
1643
1662
|
}[];
|
|
1644
|
-
hash:
|
|
1663
|
+
hash: OrderBookHash;
|
|
1645
1664
|
timestamp?: EpochMilliseconds | null | undefined;
|
|
1646
1665
|
}, {
|
|
1647
|
-
market:
|
|
1666
|
+
market: CtfConditionId;
|
|
1648
1667
|
asset_id: TokenId;
|
|
1649
1668
|
bids: {
|
|
1650
1669
|
price: DecimalString;
|
|
@@ -1657,12 +1676,12 @@ declare const FetchOrderBookResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1657
1676
|
min_order_size: DecimalString;
|
|
1658
1677
|
tick_size: DecimalString;
|
|
1659
1678
|
neg_risk: boolean;
|
|
1660
|
-
hash:
|
|
1679
|
+
hash: OrderBookHash;
|
|
1661
1680
|
timestamp?: EpochMilliseconds | null | undefined;
|
|
1662
1681
|
last_trade_price?: DecimalString | null | undefined;
|
|
1663
1682
|
}>>;
|
|
1664
1683
|
declare const OrderBooksSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1665
|
-
market: z.ZodString
|
|
1684
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
1666
1685
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
1667
1686
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
|
|
1668
1687
|
bids: z.ZodArray<z.ZodObject<{
|
|
@@ -1677,14 +1696,14 @@ declare const OrderBooksSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
|
1677
1696
|
tick_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1678
1697
|
neg_risk: z.ZodBoolean;
|
|
1679
1698
|
last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
|
|
1680
|
-
hash: z.ZodString
|
|
1699
|
+
hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
|
|
1681
1700
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1682
1701
|
tokenId: TokenId;
|
|
1683
1702
|
minOrderSize: DecimalString;
|
|
1684
1703
|
tickSize: DecimalString;
|
|
1685
1704
|
negRisk: boolean;
|
|
1686
1705
|
lastTradePrice: DecimalString | null | undefined;
|
|
1687
|
-
market:
|
|
1706
|
+
market: CtfConditionId;
|
|
1688
1707
|
bids: {
|
|
1689
1708
|
price: DecimalString;
|
|
1690
1709
|
size: DecimalString;
|
|
@@ -1693,10 +1712,10 @@ declare const OrderBooksSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
|
1693
1712
|
price: DecimalString;
|
|
1694
1713
|
size: DecimalString;
|
|
1695
1714
|
}[];
|
|
1696
|
-
hash:
|
|
1715
|
+
hash: OrderBookHash;
|
|
1697
1716
|
timestamp?: EpochMilliseconds | null | undefined;
|
|
1698
1717
|
}, {
|
|
1699
|
-
market:
|
|
1718
|
+
market: CtfConditionId;
|
|
1700
1719
|
asset_id: TokenId;
|
|
1701
1720
|
bids: {
|
|
1702
1721
|
price: DecimalString;
|
|
@@ -1709,37 +1728,13 @@ declare const OrderBooksSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
|
1709
1728
|
min_order_size: DecimalString;
|
|
1710
1729
|
tick_size: DecimalString;
|
|
1711
1730
|
neg_risk: boolean;
|
|
1712
|
-
hash:
|
|
1731
|
+
hash: OrderBookHash;
|
|
1713
1732
|
timestamp?: EpochMilliseconds | null | undefined;
|
|
1714
1733
|
last_trade_price?: DecimalString | null | undefined;
|
|
1715
1734
|
}>>>;
|
|
1716
|
-
type
|
|
1717
|
-
type
|
|
1718
|
-
type OrderBooks = z.infer<typeof OrderBooksSchema>;
|
|
1719
|
-
type FetchOrderBookResponse = z.infer<typeof FetchOrderBookResponseSchema>;
|
|
1735
|
+
type OrderBooks = OrderBook[];
|
|
1736
|
+
type FetchOrderBookResponse = OrderBook;
|
|
1720
1737
|
|
|
1721
|
-
declare const RawOrderResponseSchema: z.ZodObject<{
|
|
1722
|
-
errorMsg: z.ZodString;
|
|
1723
|
-
makingAmount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1724
|
-
orderID: z.ZodString;
|
|
1725
|
-
status: z.ZodString;
|
|
1726
|
-
success: z.ZodBoolean;
|
|
1727
|
-
takingAmount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1728
|
-
tradeIDs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1729
|
-
transactionsHashes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1730
|
-
}, z.core.$strip>;
|
|
1731
|
-
type RawOrderResponse = z.infer<typeof RawOrderResponseSchema>;
|
|
1732
|
-
declare const RawOrderResponsesSchema: z.ZodArray<z.ZodObject<{
|
|
1733
|
-
errorMsg: z.ZodString;
|
|
1734
|
-
makingAmount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1735
|
-
orderID: z.ZodString;
|
|
1736
|
-
status: z.ZodString;
|
|
1737
|
-
success: z.ZodBoolean;
|
|
1738
|
-
takingAmount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1739
|
-
tradeIDs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1740
|
-
transactionsHashes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1741
|
-
}, z.core.$strip>>;
|
|
1742
|
-
type RawOrderResponses = z.infer<typeof RawOrderResponsesSchema>;
|
|
1743
1738
|
declare enum OrderPostStatus {
|
|
1744
1739
|
LIVE = "live",
|
|
1745
1740
|
MATCHED = "matched",
|
|
@@ -1790,11 +1785,11 @@ declare const RejectedOrderResponseSchema: z.ZodObject<{
|
|
|
1790
1785
|
}, z.core.$strip>;
|
|
1791
1786
|
declare const OrderResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
1792
1787
|
errorMsg: z.ZodString;
|
|
1793
|
-
makingAmount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
1788
|
+
makingAmount: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
|
|
1794
1789
|
orderID: z.ZodString;
|
|
1795
1790
|
status: z.ZodString;
|
|
1796
1791
|
success: z.ZodBoolean;
|
|
1797
|
-
takingAmount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
1792
|
+
takingAmount: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
|
|
1798
1793
|
tradeIDs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1799
1794
|
transactionsHashes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1800
1795
|
}, z.core.$strip>, z.ZodTransform<AcceptedOrderResponse | RejectedOrderResponse, {
|
|
@@ -1809,11 +1804,11 @@ declare const OrderResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1809
1804
|
}>>;
|
|
1810
1805
|
declare const OrderResponsesSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1811
1806
|
errorMsg: z.ZodString;
|
|
1812
|
-
makingAmount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
1807
|
+
makingAmount: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
|
|
1813
1808
|
orderID: z.ZodString;
|
|
1814
1809
|
status: z.ZodString;
|
|
1815
1810
|
success: z.ZodBoolean;
|
|
1816
|
-
takingAmount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
1811
|
+
takingAmount: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
|
|
1817
1812
|
tradeIDs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1818
1813
|
transactionsHashes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1819
1814
|
}, z.core.$strip>, z.ZodTransform<AcceptedOrderResponse | RejectedOrderResponse, {
|
|
@@ -1853,7 +1848,7 @@ declare const CurrentRewardConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1853
1848
|
}>>;
|
|
1854
1849
|
type CurrentRewardConfig = z.infer<typeof CurrentRewardConfigSchema>;
|
|
1855
1850
|
declare const CurrentRewardSchema: z.ZodPipe<z.ZodObject<{
|
|
1856
|
-
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
1851
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
1857
1852
|
rewards_max_spread: z.ZodOptional<z.ZodNumber>;
|
|
1858
1853
|
rewards_min_size: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
|
|
1859
1854
|
rewards_config: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
@@ -1883,7 +1878,7 @@ declare const CurrentRewardSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1883
1878
|
native_daily_rate: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
|
|
1884
1879
|
total_daily_rate: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
|
|
1885
1880
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1886
|
-
conditionId:
|
|
1881
|
+
conditionId: CtfConditionId;
|
|
1887
1882
|
rewardsMaxSpread: number | undefined;
|
|
1888
1883
|
rewardsMinSize: DecimalString | undefined;
|
|
1889
1884
|
rewardsConfig: {
|
|
@@ -1899,7 +1894,7 @@ declare const CurrentRewardSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1899
1894
|
nativeDailyRate: DecimalString | undefined;
|
|
1900
1895
|
totalDailyRate: DecimalString | undefined;
|
|
1901
1896
|
}, {
|
|
1902
|
-
condition_id:
|
|
1897
|
+
condition_id: CtfConditionId;
|
|
1903
1898
|
rewards_max_spread?: number | undefined;
|
|
1904
1899
|
rewards_min_size?: DecimalString | undefined;
|
|
1905
1900
|
rewards_config?: {
|
|
@@ -1921,7 +1916,7 @@ declare const PaginatedCurrentRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1921
1916
|
count: z.ZodNumber;
|
|
1922
1917
|
next_cursor: z.ZodString;
|
|
1923
1918
|
data: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1924
|
-
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
1919
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
1925
1920
|
rewards_max_spread: z.ZodOptional<z.ZodNumber>;
|
|
1926
1921
|
rewards_min_size: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
|
|
1927
1922
|
rewards_config: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
@@ -1951,7 +1946,7 @@ declare const PaginatedCurrentRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1951
1946
|
native_daily_rate: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
|
|
1952
1947
|
total_daily_rate: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
|
|
1953
1948
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1954
|
-
conditionId:
|
|
1949
|
+
conditionId: CtfConditionId;
|
|
1955
1950
|
rewardsMaxSpread: number | undefined;
|
|
1956
1951
|
rewardsMinSize: DecimalString | undefined;
|
|
1957
1952
|
rewardsConfig: {
|
|
@@ -1967,7 +1962,7 @@ declare const PaginatedCurrentRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1967
1962
|
nativeDailyRate: DecimalString | undefined;
|
|
1968
1963
|
totalDailyRate: DecimalString | undefined;
|
|
1969
1964
|
}, {
|
|
1970
|
-
condition_id:
|
|
1965
|
+
condition_id: CtfConditionId;
|
|
1971
1966
|
rewards_max_spread?: number | undefined;
|
|
1972
1967
|
rewards_min_size?: DecimalString | undefined;
|
|
1973
1968
|
rewards_config?: {
|
|
@@ -1988,7 +1983,7 @@ declare const PaginatedCurrentRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1988
1983
|
limit: number;
|
|
1989
1984
|
count: number;
|
|
1990
1985
|
data: {
|
|
1991
|
-
conditionId:
|
|
1986
|
+
conditionId: CtfConditionId;
|
|
1992
1987
|
rewardsMaxSpread: number | undefined;
|
|
1993
1988
|
rewardsMinSize: DecimalString | undefined;
|
|
1994
1989
|
rewardsConfig: {
|
|
@@ -2009,7 +2004,7 @@ declare const PaginatedCurrentRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2009
2004
|
count: number;
|
|
2010
2005
|
next_cursor: string;
|
|
2011
2006
|
data: {
|
|
2012
|
-
conditionId:
|
|
2007
|
+
conditionId: CtfConditionId;
|
|
2013
2008
|
rewardsMaxSpread: number | undefined;
|
|
2014
2009
|
rewardsMinSize: DecimalString | undefined;
|
|
2015
2010
|
rewardsConfig: {
|
|
@@ -2062,7 +2057,7 @@ declare const RewardConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2062
2057
|
}>>;
|
|
2063
2058
|
type RewardConfig = z.infer<typeof RewardConfigSchema>;
|
|
2064
2059
|
declare const MarketRewardSchema: z.ZodPipe<z.ZodObject<{
|
|
2065
|
-
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
2060
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
2066
2061
|
question: z.ZodString;
|
|
2067
2062
|
market_slug: z.ZodOptional<z.ZodString>;
|
|
2068
2063
|
event_slug: z.ZodOptional<z.ZodString>;
|
|
@@ -2103,7 +2098,7 @@ declare const MarketRewardSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2103
2098
|
total_rewards?: DecimalString | undefined;
|
|
2104
2099
|
}>>>>;
|
|
2105
2100
|
}, z.core.$strip>, z.ZodTransform<{
|
|
2106
|
-
conditionId:
|
|
2101
|
+
conditionId: CtfConditionId;
|
|
2107
2102
|
marketSlug: string | undefined;
|
|
2108
2103
|
eventSlug: string | undefined;
|
|
2109
2104
|
rewardsMaxSpread: number | undefined;
|
|
@@ -2124,7 +2119,7 @@ declare const MarketRewardSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2124
2119
|
}[];
|
|
2125
2120
|
image?: string | undefined;
|
|
2126
2121
|
}, {
|
|
2127
|
-
condition_id:
|
|
2122
|
+
condition_id: CtfConditionId;
|
|
2128
2123
|
question: string;
|
|
2129
2124
|
tokens: {
|
|
2130
2125
|
tokenId: TokenId;
|
|
@@ -2151,7 +2146,7 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2151
2146
|
count: z.ZodNumber;
|
|
2152
2147
|
next_cursor: z.ZodString;
|
|
2153
2148
|
data: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
2154
|
-
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
2149
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
2155
2150
|
question: z.ZodString;
|
|
2156
2151
|
market_slug: z.ZodOptional<z.ZodString>;
|
|
2157
2152
|
event_slug: z.ZodOptional<z.ZodString>;
|
|
@@ -2192,7 +2187,7 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2192
2187
|
total_rewards?: DecimalString | undefined;
|
|
2193
2188
|
}>>>>;
|
|
2194
2189
|
}, z.core.$strip>, z.ZodTransform<{
|
|
2195
|
-
conditionId:
|
|
2190
|
+
conditionId: CtfConditionId;
|
|
2196
2191
|
marketSlug: string | undefined;
|
|
2197
2192
|
eventSlug: string | undefined;
|
|
2198
2193
|
rewardsMaxSpread: number | undefined;
|
|
@@ -2213,7 +2208,7 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2213
2208
|
}[];
|
|
2214
2209
|
image?: string | undefined;
|
|
2215
2210
|
}, {
|
|
2216
|
-
condition_id:
|
|
2211
|
+
condition_id: CtfConditionId;
|
|
2217
2212
|
question: string;
|
|
2218
2213
|
tokens: {
|
|
2219
2214
|
tokenId: TokenId;
|
|
@@ -2239,7 +2234,7 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2239
2234
|
limit: number;
|
|
2240
2235
|
count: number;
|
|
2241
2236
|
data: {
|
|
2242
|
-
conditionId:
|
|
2237
|
+
conditionId: CtfConditionId;
|
|
2243
2238
|
marketSlug: string | undefined;
|
|
2244
2239
|
eventSlug: string | undefined;
|
|
2245
2240
|
rewardsMaxSpread: number | undefined;
|
|
@@ -2265,7 +2260,7 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2265
2260
|
count: number;
|
|
2266
2261
|
next_cursor: string;
|
|
2267
2262
|
data: {
|
|
2268
|
-
conditionId:
|
|
2263
|
+
conditionId: CtfConditionId;
|
|
2269
2264
|
marketSlug: string | undefined;
|
|
2270
2265
|
eventSlug: string | undefined;
|
|
2271
2266
|
rewardsMaxSpread: number | undefined;
|
|
@@ -2289,41 +2284,21 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2289
2284
|
}>>;
|
|
2290
2285
|
type PaginatedMarketRewards = z.infer<typeof PaginatedMarketRewardsSchema>;
|
|
2291
2286
|
|
|
2292
|
-
declare enum SignatureType {
|
|
2293
|
-
/**
|
|
2294
|
-
* ECDSA EIP712 signatures signed by EOAs
|
|
2295
|
-
*/
|
|
2296
|
-
EOA = 0,
|
|
2297
|
-
/**
|
|
2298
|
-
* EIP712 signatures signed by EOAs that own Polymarket Proxy wallets
|
|
2299
|
-
*/
|
|
2300
|
-
POLY_PROXY = 1,
|
|
2301
|
-
/**
|
|
2302
|
-
* EIP712 signatures signed by EOAs that own Polymarket Gnosis safes
|
|
2303
|
-
*/
|
|
2304
|
-
POLY_GNOSIS_SAFE = 2,
|
|
2305
|
-
/**
|
|
2306
|
-
* EIP1271 signatures signed by smart contracts
|
|
2307
|
-
*/
|
|
2308
|
-
POLY_1271 = 3
|
|
2309
|
-
}
|
|
2310
|
-
declare const SignatureTypeSchema: z.ZodEnum<typeof SignatureType>;
|
|
2311
|
-
|
|
2312
2287
|
declare const TickSizeSchema: z.ZodPipe<z.ZodObject<{
|
|
2313
|
-
minimum_tick_size: z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>;
|
|
2288
|
+
minimum_tick_size: z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>;
|
|
2314
2289
|
}, z.core.$strip>, z.ZodTransform<{
|
|
2315
|
-
minimumTickSize: 0.1 | 0.01 | 0.001 | 0.0001;
|
|
2290
|
+
minimumTickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
|
|
2316
2291
|
}, {
|
|
2317
|
-
minimum_tick_size: 0.1 | 0.01 | 0.001 | 0.0001;
|
|
2292
|
+
minimum_tick_size: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
|
|
2318
2293
|
}>>;
|
|
2319
2294
|
declare const FetchTickSizeResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
2320
|
-
minimum_tick_size: z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>;
|
|
2295
|
+
minimum_tick_size: z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>;
|
|
2321
2296
|
}, z.core.$strip>, z.ZodTransform<{
|
|
2322
|
-
minimumTickSize: 0.1 | 0.01 | 0.001 | 0.0001;
|
|
2297
|
+
minimumTickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
|
|
2323
2298
|
}, {
|
|
2324
|
-
minimum_tick_size: 0.1 | 0.01 | 0.001 | 0.0001;
|
|
2299
|
+
minimum_tick_size: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
|
|
2325
2300
|
}>>;
|
|
2326
2301
|
type TickSize = z.infer<typeof TickSizeSchema>;
|
|
2327
2302
|
type FetchTickSizeResponse = z.infer<typeof FetchTickSizeResponseSchema>;
|
|
2328
2303
|
|
|
2329
|
-
export { type AcceptedOrderResponse, AcceptedOrderResponseSchema, type ApiKeyCreds, ApiKeyCredsSchema, type ApiKeysResponse, ApiKeysResponseSchema, AssetType, AssetTypeSchema, type BalanceAllowanceResponse, BalanceAllowanceResponseSchema, type BuilderApiKey, type BuilderApiKeyCreds, BuilderApiKeyCredsSchema, BuilderApiKeySchema, type BuilderApiKeysResponse, BuilderApiKeysResponseSchema, type BuilderFeeRates, BuilderFeeRatesSchema, type BuilderTrade, BuilderTradeSchema, type CancelOrdersResponse, CancelOrdersResponseSchema, type ClobTrade, ClobTradeSchema, type ClobTradesPage, ClobTradesPageSchema, type ClosedOnlyMode, ClosedOnlyModeSchema, type ConditionByToken, ConditionByTokenSchema, type CurrentReward, type CurrentRewardConfig, CurrentRewardSchema, END_CURSOR, EarningSchema, type FetchBuilderFeeRatesResponse, FetchBuilderFeeRatesResponseSchema, type FetchMarketInfoResponse, FetchMarketInfoResponseSchema, type FetchNegRiskResponse, FetchNegRiskResponseSchema, type FetchOrderBookResponse, FetchOrderBookResponseSchema, type FetchTickSizeResponse, FetchTickSizeResponseSchema, type LastTradePrice, type LastTradePriceForToken, type LastTradePriceForTokenResponse, LastTradePriceSchema, type LastTradePrices, LastTradePricesSchema, MakerOrderSchema, type MarketFeeInfo, MarketFeeInfoSchema, type MarketInfo, MarketInfoSchema, type MarketReward, MarketRewardSchema, type MarketToken, MarketTokenSchema, type Midpoint, MidpointSchema, type Midpoints, MidpointsSchema, type NegRisk, NegRiskSchema, type Notification, NotificationSchema, type NotificationsResponse, NotificationsResponseSchema, type OpenOrder, OpenOrderSchema, type OpenOrdersPage, OpenOrdersPageSchema, type OrderBook, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, type OrderBooks, OrderBooksSchema, OrderPostStatus, OrderPostStatusSchema, type OrderResponse, OrderResponseErrorCode, OrderResponseErrorCodeSchema, OrderResponseSchema, type OrderResponses, OrderResponsesSchema, type OrderScoringResponse, OrderScoringResponseSchema, type OrdersScoringResponse, OrdersScoringResponseSchema, type PaginatedBuilderTrades, PaginatedBuilderTradesSchema, type PaginatedCurrentRewards, PaginatedCurrentRewardsSchema, type PaginatedMarketRewards, PaginatedMarketRewardsSchema, type Price, type PriceHistory, PriceHistoryInterval, PriceHistoryIntervalSchema, type PriceHistoryPoint, PriceHistorySchema, PriceSchema, type Prices, type PricesBySide, PricesSchema,
|
|
2304
|
+
export { type AcceptedOrderResponse, AcceptedOrderResponseSchema, type ApiKeyCreds, ApiKeyCredsSchema, type ApiKeysResponse, ApiKeysResponseSchema, AssetType, AssetTypeSchema, type BalanceAllowanceResponse, BalanceAllowanceResponseSchema, type BuilderApiKey, type BuilderApiKeyCreds, BuilderApiKeyCredsSchema, BuilderApiKeySchema, type BuilderApiKeysResponse, BuilderApiKeysResponseSchema, type BuilderFeeRates, BuilderFeeRatesSchema, type BuilderTrade, BuilderTradeSchema, type CancelOrdersResponse, CancelOrdersResponseSchema, type ClobTrade, ClobTradeSchema, type ClobTradesPage, ClobTradesPageSchema, type ClosedOnlyMode, ClosedOnlyModeSchema, type ConditionByToken, ConditionByTokenSchema, type CurrentReward, type CurrentRewardConfig, CurrentRewardSchema, END_CURSOR, EarningSchema, type FetchBuilderFeeRatesResponse, FetchBuilderFeeRatesResponseSchema, type FetchMarketInfoResponse, FetchMarketInfoResponseSchema, type FetchNegRiskResponse, FetchNegRiskResponseSchema, type FetchOrderBookResponse, FetchOrderBookResponseSchema, type FetchTickSizeResponse, FetchTickSizeResponseSchema, type LastTradePrice, type LastTradePriceForToken, type LastTradePriceForTokenResponse, LastTradePriceSchema, type LastTradePrices, LastTradePricesSchema, MakerOrderSchema, type MarketFeeInfo, MarketFeeInfoSchema, type MarketInfo, MarketInfoSchema, type MarketReward, MarketRewardSchema, type MarketToken, MarketTokenSchema, type Midpoint, MidpointSchema, type Midpoints, MidpointsSchema, type NegRisk, NegRiskSchema, type Notification, NotificationSchema, type NotificationsResponse, NotificationsResponseSchema, type OpenOrder, OpenOrderSchema, type OpenOrdersPage, OpenOrdersPageSchema, type OrderBook, type OrderBookHash, OrderBookHashSchema, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, type OrderBooks, OrderBooksSchema, OrderPostStatus, OrderPostStatusSchema, type OrderResponse, OrderResponseErrorCode, OrderResponseErrorCodeSchema, OrderResponseSchema, type OrderResponses, OrderResponsesSchema, type OrderScoringResponse, OrderScoringResponseSchema, type OrdersScoringResponse, OrdersScoringResponseSchema, type PaginatedBuilderTrades, PaginatedBuilderTradesSchema, type PaginatedCurrentRewards, PaginatedCurrentRewardsSchema, type PaginatedMarketRewards, PaginatedMarketRewardsSchema, type Price, type PriceHistory, PriceHistoryInterval, PriceHistoryIntervalSchema, type PriceHistoryPoint, PriceHistorySchema, PriceSchema, type Prices, type PricesBySide, PricesSchema, type RejectedOrderResponse, RejectedOrderResponseSchema, type ResolveConditionByTokenResponse, ResolveConditionByTokenResponseSchema, type RewardConfig, type RewardToken, RewardsConfigSchema, type RewardsPercentages, RewardsPercentagesSchema, type Spread, SpreadSchema, type Spreads, SpreadsSchema, type TickSize, TickSizeSchema, TokenSchema, type TotalUserEarning, TotalUserEarningSchema, type TotalUserEarningsResponse, TotalUserEarningsResponseSchema, type UserEarning, UserEarningSchema, type UserEarningsPage, UserEarningsPageSchema, type UserRewardsEarning, UserRewardsEarningSchema, type UserRewardsEarningsPage, UserRewardsEarningsPageSchema };
|