@bulletxyz/bullet-sdk 0.23.1 → 0.24.0-rc.1
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/browser/index.js +262 -156
- package/dist/browser/index.js.map +3 -3
- package/dist/node/index.js +262 -156
- package/dist/node/index.js.map +3 -3
- package/dist/types/bullet-wasm/index.d.ts +13 -3
- package/dist/types/calc.d.ts +7 -7
- package/dist/types/client.d.ts +9 -9
- package/dist/types/exchange.d.ts +11 -12
- package/dist/types/orderbook.d.ts +3 -3
- package/dist/types/rollupTypes.d.ts +15 -13
- package/dist/types/types.d.ts +25 -5
- package/dist/types/zod-types/index.d.ts +1 -0
- package/dist/types/zod-types/rest.d.ts +1184 -618
- package/package.json +1 -1
|
@@ -378,7 +378,7 @@ declare const BorrowLendRiskWeights: z.ZodObject<{
|
|
|
378
378
|
}>;
|
|
379
379
|
declare const Order: z.ZodObject<{
|
|
380
380
|
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
381
|
-
|
|
381
|
+
market_id: z.ZodNumber;
|
|
382
382
|
order_id: z.ZodBigInt;
|
|
383
383
|
price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
384
384
|
remaining_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -389,7 +389,7 @@ declare const Order: z.ZodObject<{
|
|
|
389
389
|
tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
390
390
|
}, "strip", z.ZodTypeAny, {
|
|
391
391
|
side: "Bid" | "Ask";
|
|
392
|
-
|
|
392
|
+
market_id: number;
|
|
393
393
|
order_id: bigint;
|
|
394
394
|
price: import("decimal.js").Decimal;
|
|
395
395
|
remaining_size: import("decimal.js").Decimal;
|
|
@@ -400,7 +400,7 @@ declare const Order: z.ZodObject<{
|
|
|
400
400
|
tpsl_order_ids: bigint[];
|
|
401
401
|
}, {
|
|
402
402
|
side: "Bid" | "Ask";
|
|
403
|
-
|
|
403
|
+
market_id: number;
|
|
404
404
|
order_id: bigint;
|
|
405
405
|
price: string | number;
|
|
406
406
|
remaining_size: string | number;
|
|
@@ -412,7 +412,7 @@ declare const Order: z.ZodObject<{
|
|
|
412
412
|
}>;
|
|
413
413
|
declare const Tpsl: z.ZodObject<{
|
|
414
414
|
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
415
|
-
|
|
415
|
+
market_id: z.ZodNumber;
|
|
416
416
|
tpsl_order_id: z.ZodBigInt;
|
|
417
417
|
order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
418
418
|
trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -426,7 +426,7 @@ declare const Tpsl: z.ZodObject<{
|
|
|
426
426
|
linked_tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
427
427
|
}, "strip", z.ZodTypeAny, {
|
|
428
428
|
side: "Bid" | "Ask";
|
|
429
|
-
|
|
429
|
+
market_id: number;
|
|
430
430
|
owner: string;
|
|
431
431
|
tpsl_order_id: bigint;
|
|
432
432
|
order_price: import("decimal.js").Decimal;
|
|
@@ -440,7 +440,7 @@ declare const Tpsl: z.ZodObject<{
|
|
|
440
440
|
linked_tpsl_order_ids: bigint[];
|
|
441
441
|
}, {
|
|
442
442
|
side: "Bid" | "Ask";
|
|
443
|
-
|
|
443
|
+
market_id: number;
|
|
444
444
|
owner: string;
|
|
445
445
|
tpsl_order_id: bigint;
|
|
446
446
|
order_price: string | number;
|
|
@@ -456,15 +456,15 @@ declare const Tpsl: z.ZodObject<{
|
|
|
456
456
|
export declare const Schemas: {
|
|
457
457
|
readonly DummyValue: z.ZodNumber;
|
|
458
458
|
readonly OrderbookL2: z.ZodObject<{
|
|
459
|
-
|
|
459
|
+
market_id: z.ZodNumber;
|
|
460
460
|
bids: z.ZodArray<z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>], null>, "many">;
|
|
461
461
|
asks: z.ZodArray<z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>], null>, "many">;
|
|
462
462
|
}, "strip", z.ZodTypeAny, {
|
|
463
|
-
|
|
463
|
+
market_id: number;
|
|
464
464
|
bids: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
465
465
|
asks: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
466
466
|
}, {
|
|
467
|
-
|
|
467
|
+
market_id: number;
|
|
468
468
|
bids: [string | number, string | number][];
|
|
469
469
|
asks: [string | number, string | number][];
|
|
470
470
|
}>;
|
|
@@ -606,7 +606,7 @@ export declare const Schemas: {
|
|
|
606
606
|
perp_ledgers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
607
607
|
orders: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
608
608
|
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
609
|
-
|
|
609
|
+
market_id: z.ZodNumber;
|
|
610
610
|
order_id: z.ZodBigInt;
|
|
611
611
|
price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
612
612
|
remaining_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -617,7 +617,7 @@ export declare const Schemas: {
|
|
|
617
617
|
tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
618
618
|
}, "strip", z.ZodTypeAny, {
|
|
619
619
|
side: "Bid" | "Ask";
|
|
620
|
-
|
|
620
|
+
market_id: number;
|
|
621
621
|
order_id: bigint;
|
|
622
622
|
price: import("decimal.js").Decimal;
|
|
623
623
|
remaining_size: import("decimal.js").Decimal;
|
|
@@ -628,7 +628,7 @@ export declare const Schemas: {
|
|
|
628
628
|
tpsl_order_ids: bigint[];
|
|
629
629
|
}, {
|
|
630
630
|
side: "Bid" | "Ask";
|
|
631
|
-
|
|
631
|
+
market_id: number;
|
|
632
632
|
order_id: bigint;
|
|
633
633
|
price: string | number;
|
|
634
634
|
remaining_size: string | number;
|
|
@@ -639,7 +639,7 @@ export declare const Schemas: {
|
|
|
639
639
|
tpsl_order_ids: bigint[];
|
|
640
640
|
}>>, Map<bigint, {
|
|
641
641
|
side: "Bid" | "Ask";
|
|
642
|
-
|
|
642
|
+
market_id: number;
|
|
643
643
|
order_id: bigint;
|
|
644
644
|
price: import("decimal.js").Decimal;
|
|
645
645
|
remaining_size: import("decimal.js").Decimal;
|
|
@@ -650,7 +650,7 @@ export declare const Schemas: {
|
|
|
650
650
|
tpsl_order_ids: bigint[];
|
|
651
651
|
}>, Record<string, {
|
|
652
652
|
side: "Bid" | "Ask";
|
|
653
|
-
|
|
653
|
+
market_id: number;
|
|
654
654
|
order_id: bigint;
|
|
655
655
|
price: string | number;
|
|
656
656
|
remaining_size: string | number;
|
|
@@ -688,7 +688,7 @@ export declare const Schemas: {
|
|
|
688
688
|
user_selected_max_leverage: z.ZodNumber;
|
|
689
689
|
tpsls: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
690
690
|
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
691
|
-
|
|
691
|
+
market_id: z.ZodNumber;
|
|
692
692
|
tpsl_order_id: z.ZodBigInt;
|
|
693
693
|
order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
694
694
|
trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -702,7 +702,7 @@ export declare const Schemas: {
|
|
|
702
702
|
linked_tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
703
703
|
}, "strip", z.ZodTypeAny, {
|
|
704
704
|
side: "Bid" | "Ask";
|
|
705
|
-
|
|
705
|
+
market_id: number;
|
|
706
706
|
owner: string;
|
|
707
707
|
tpsl_order_id: bigint;
|
|
708
708
|
order_price: import("decimal.js").Decimal;
|
|
@@ -716,7 +716,7 @@ export declare const Schemas: {
|
|
|
716
716
|
linked_tpsl_order_ids: bigint[];
|
|
717
717
|
}, {
|
|
718
718
|
side: "Bid" | "Ask";
|
|
719
|
-
|
|
719
|
+
market_id: number;
|
|
720
720
|
owner: string;
|
|
721
721
|
tpsl_order_id: bigint;
|
|
722
722
|
order_price: string | number;
|
|
@@ -730,7 +730,7 @@ export declare const Schemas: {
|
|
|
730
730
|
linked_tpsl_order_ids: bigint[];
|
|
731
731
|
}>>, Map<bigint, {
|
|
732
732
|
side: "Bid" | "Ask";
|
|
733
|
-
|
|
733
|
+
market_id: number;
|
|
734
734
|
owner: string;
|
|
735
735
|
tpsl_order_id: bigint;
|
|
736
736
|
order_price: import("decimal.js").Decimal;
|
|
@@ -744,7 +744,7 @@ export declare const Schemas: {
|
|
|
744
744
|
linked_tpsl_order_ids: bigint[];
|
|
745
745
|
}>, Record<string, {
|
|
746
746
|
side: "Bid" | "Ask";
|
|
747
|
-
|
|
747
|
+
market_id: number;
|
|
748
748
|
owner: string;
|
|
749
749
|
tpsl_order_id: bigint;
|
|
750
750
|
order_price: string | number;
|
|
@@ -760,7 +760,7 @@ export declare const Schemas: {
|
|
|
760
760
|
}, "strip", z.ZodTypeAny, {
|
|
761
761
|
orders: Map<bigint, {
|
|
762
762
|
side: "Bid" | "Ask";
|
|
763
|
-
|
|
763
|
+
market_id: number;
|
|
764
764
|
order_id: bigint;
|
|
765
765
|
price: import("decimal.js").Decimal;
|
|
766
766
|
remaining_size: import("decimal.js").Decimal;
|
|
@@ -782,7 +782,7 @@ export declare const Schemas: {
|
|
|
782
782
|
user_selected_max_leverage: number;
|
|
783
783
|
tpsls: Map<bigint, {
|
|
784
784
|
side: "Bid" | "Ask";
|
|
785
|
-
|
|
785
|
+
market_id: number;
|
|
786
786
|
owner: string;
|
|
787
787
|
tpsl_order_id: bigint;
|
|
788
788
|
order_price: import("decimal.js").Decimal;
|
|
@@ -798,7 +798,7 @@ export declare const Schemas: {
|
|
|
798
798
|
}, {
|
|
799
799
|
orders: Record<string, {
|
|
800
800
|
side: "Bid" | "Ask";
|
|
801
|
-
|
|
801
|
+
market_id: number;
|
|
802
802
|
order_id: bigint;
|
|
803
803
|
price: string | number;
|
|
804
804
|
remaining_size: string | number;
|
|
@@ -820,7 +820,7 @@ export declare const Schemas: {
|
|
|
820
820
|
user_selected_max_leverage: number;
|
|
821
821
|
tpsls: Record<string, {
|
|
822
822
|
side: "Bid" | "Ask";
|
|
823
|
-
|
|
823
|
+
market_id: number;
|
|
824
824
|
owner: string;
|
|
825
825
|
tpsl_order_id: bigint;
|
|
826
826
|
order_price: string | number;
|
|
@@ -836,7 +836,7 @@ export declare const Schemas: {
|
|
|
836
836
|
}>>, Map<number, {
|
|
837
837
|
orders: Map<bigint, {
|
|
838
838
|
side: "Bid" | "Ask";
|
|
839
|
-
|
|
839
|
+
market_id: number;
|
|
840
840
|
order_id: bigint;
|
|
841
841
|
price: import("decimal.js").Decimal;
|
|
842
842
|
remaining_size: import("decimal.js").Decimal;
|
|
@@ -858,7 +858,7 @@ export declare const Schemas: {
|
|
|
858
858
|
user_selected_max_leverage: number;
|
|
859
859
|
tpsls: Map<bigint, {
|
|
860
860
|
side: "Bid" | "Ask";
|
|
861
|
-
|
|
861
|
+
market_id: number;
|
|
862
862
|
owner: string;
|
|
863
863
|
tpsl_order_id: bigint;
|
|
864
864
|
order_price: import("decimal.js").Decimal;
|
|
@@ -874,7 +874,7 @@ export declare const Schemas: {
|
|
|
874
874
|
}>, Record<string, {
|
|
875
875
|
orders: Record<string, {
|
|
876
876
|
side: "Bid" | "Ask";
|
|
877
|
-
|
|
877
|
+
market_id: number;
|
|
878
878
|
order_id: bigint;
|
|
879
879
|
price: string | number;
|
|
880
880
|
remaining_size: string | number;
|
|
@@ -896,7 +896,7 @@ export declare const Schemas: {
|
|
|
896
896
|
user_selected_max_leverage: number;
|
|
897
897
|
tpsls: Record<string, {
|
|
898
898
|
side: "Bid" | "Ask";
|
|
899
|
-
|
|
899
|
+
market_id: number;
|
|
900
900
|
owner: string;
|
|
901
901
|
tpsl_order_id: bigint;
|
|
902
902
|
order_price: string | number;
|
|
@@ -937,7 +937,7 @@ export declare const Schemas: {
|
|
|
937
937
|
perp_ledgers: Map<number, {
|
|
938
938
|
orders: Map<bigint, {
|
|
939
939
|
side: "Bid" | "Ask";
|
|
940
|
-
|
|
940
|
+
market_id: number;
|
|
941
941
|
order_id: bigint;
|
|
942
942
|
price: import("decimal.js").Decimal;
|
|
943
943
|
remaining_size: import("decimal.js").Decimal;
|
|
@@ -959,7 +959,7 @@ export declare const Schemas: {
|
|
|
959
959
|
user_selected_max_leverage: number;
|
|
960
960
|
tpsls: Map<bigint, {
|
|
961
961
|
side: "Bid" | "Ask";
|
|
962
|
-
|
|
962
|
+
market_id: number;
|
|
963
963
|
owner: string;
|
|
964
964
|
tpsl_order_id: bigint;
|
|
965
965
|
order_price: import("decimal.js").Decimal;
|
|
@@ -1000,7 +1000,7 @@ export declare const Schemas: {
|
|
|
1000
1000
|
perp_ledgers: Record<string, {
|
|
1001
1001
|
orders: Record<string, {
|
|
1002
1002
|
side: "Bid" | "Ask";
|
|
1003
|
-
|
|
1003
|
+
market_id: number;
|
|
1004
1004
|
order_id: bigint;
|
|
1005
1005
|
price: string | number;
|
|
1006
1006
|
remaining_size: string | number;
|
|
@@ -1022,7 +1022,7 @@ export declare const Schemas: {
|
|
|
1022
1022
|
user_selected_max_leverage: number;
|
|
1023
1023
|
tpsls: Record<string, {
|
|
1024
1024
|
side: "Bid" | "Ask";
|
|
1025
|
-
|
|
1025
|
+
market_id: number;
|
|
1026
1026
|
owner: string;
|
|
1027
1027
|
tpsl_order_id: bigint;
|
|
1028
1028
|
order_price: string | number;
|
|
@@ -1039,67 +1039,39 @@ export declare const Schemas: {
|
|
|
1039
1039
|
}>;
|
|
1040
1040
|
readonly OraclePrices: z.ZodObject<{
|
|
1041
1041
|
pricing_frequency_seconds: z.ZodNumber;
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
pricing_frequency_seconds: number;
|
|
1045
|
-
oracle_prices: Map<number, [import("decimal.js").Decimal, bigint]>;
|
|
1046
|
-
}, {
|
|
1047
|
-
pricing_frequency_seconds: number;
|
|
1048
|
-
oracle_prices: Record<string, [string | number, bigint]>;
|
|
1049
|
-
}>;
|
|
1050
|
-
readonly PerpPrices: z.ZodObject<{
|
|
1051
|
-
pricing_frequency_seconds: z.ZodNumber;
|
|
1052
|
-
mark_prices: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodBigInt], null>>, Map<number, [import("decimal.js").Decimal, bigint]>, Record<string, [string | number, bigint]>>;
|
|
1053
|
-
accum_premium_index: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1054
|
-
weighted_premium_sum: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1055
|
-
duration_sum: z.ZodBigInt;
|
|
1042
|
+
prices: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1043
|
+
price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1056
1044
|
last_update_timestamp: z.ZodNullable<z.ZodBigInt>;
|
|
1057
1045
|
}, "strip", z.ZodTypeAny, {
|
|
1058
|
-
|
|
1059
|
-
duration_sum: bigint;
|
|
1046
|
+
price: import("decimal.js").Decimal;
|
|
1060
1047
|
last_update_timestamp: bigint | null;
|
|
1061
1048
|
}, {
|
|
1062
|
-
|
|
1063
|
-
duration_sum: bigint;
|
|
1049
|
+
price: string | number;
|
|
1064
1050
|
last_update_timestamp: bigint | null;
|
|
1065
1051
|
}>>, Map<number, {
|
|
1066
|
-
|
|
1067
|
-
duration_sum: bigint;
|
|
1052
|
+
price: import("decimal.js").Decimal;
|
|
1068
1053
|
last_update_timestamp: bigint | null;
|
|
1069
1054
|
}>, Record<string, {
|
|
1070
|
-
|
|
1071
|
-
duration_sum: bigint;
|
|
1055
|
+
price: string | number;
|
|
1072
1056
|
last_update_timestamp: bigint | null;
|
|
1073
1057
|
}>>;
|
|
1074
|
-
funding_rates: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodBigInt], null>>, Map<number, [import("decimal.js").Decimal, bigint]>, Record<string, [string | number, bigint]>>;
|
|
1075
|
-
accum_funding_per_lot: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodBigInt], null>>, Map<number, [import("decimal.js").Decimal, bigint]>, Record<string, [string | number, bigint]>>;
|
|
1076
1058
|
}, "strip", z.ZodTypeAny, {
|
|
1077
1059
|
pricing_frequency_seconds: number;
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
weighted_premium_sum: import("decimal.js").Decimal;
|
|
1081
|
-
duration_sum: bigint;
|
|
1060
|
+
prices: Map<number, {
|
|
1061
|
+
price: import("decimal.js").Decimal;
|
|
1082
1062
|
last_update_timestamp: bigint | null;
|
|
1083
1063
|
}>;
|
|
1084
|
-
funding_rates: Map<number, [import("decimal.js").Decimal, bigint]>;
|
|
1085
|
-
accum_funding_per_lot: Map<number, [import("decimal.js").Decimal, bigint]>;
|
|
1086
1064
|
}, {
|
|
1087
1065
|
pricing_frequency_seconds: number;
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
weighted_premium_sum: string | number;
|
|
1091
|
-
duration_sum: bigint;
|
|
1066
|
+
prices: Record<string, {
|
|
1067
|
+
price: string | number;
|
|
1092
1068
|
last_update_timestamp: bigint | null;
|
|
1093
1069
|
}>;
|
|
1094
|
-
funding_rates: Record<string, [string | number, bigint]>;
|
|
1095
|
-
accum_funding_per_lot: Record<string, [string | number, bigint]>;
|
|
1096
1070
|
}>;
|
|
1097
|
-
readonly
|
|
1071
|
+
readonly BorrowLendMarkets: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1098
1072
|
asset_id: z.ZodNumber;
|
|
1099
|
-
token_id: z.ZodString;
|
|
1100
1073
|
is_active: z.ZodBoolean;
|
|
1101
1074
|
last_update_timestamp: z.ZodBigInt;
|
|
1102
|
-
decimals: z.ZodNumber;
|
|
1103
1075
|
risk_params: z.ZodObject<{
|
|
1104
1076
|
weights: z.ZodObject<{
|
|
1105
1077
|
asset_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -1161,11 +1133,9 @@ export declare const Schemas: {
|
|
|
1161
1133
|
cumulative_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1162
1134
|
accumulated_protocol_fees: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1163
1135
|
}, "strip", z.ZodTypeAny, {
|
|
1164
|
-
token_id: string;
|
|
1165
|
-
asset_id: number;
|
|
1166
1136
|
last_update_timestamp: bigint;
|
|
1137
|
+
asset_id: number;
|
|
1167
1138
|
is_active: boolean;
|
|
1168
|
-
decimals: number;
|
|
1169
1139
|
risk_params: {
|
|
1170
1140
|
weights: {
|
|
1171
1141
|
asset_weight: import("decimal.js").Decimal;
|
|
@@ -1189,11 +1159,61 @@ export declare const Schemas: {
|
|
|
1189
1159
|
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
1190
1160
|
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
1191
1161
|
}, {
|
|
1192
|
-
|
|
1162
|
+
last_update_timestamp: bigint;
|
|
1163
|
+
asset_id: number;
|
|
1164
|
+
is_active: boolean;
|
|
1165
|
+
risk_params: {
|
|
1166
|
+
weights: {
|
|
1167
|
+
asset_weight: string | number;
|
|
1168
|
+
initial_liability_weight: string | number;
|
|
1169
|
+
maintenance_liability_weight: string | number;
|
|
1170
|
+
};
|
|
1171
|
+
deposit_limit: string | number;
|
|
1172
|
+
borrow_limit: string | number;
|
|
1173
|
+
liquidation_reward_ratio: string | number;
|
|
1174
|
+
liability_liquidation_limit_ratio: string | number;
|
|
1175
|
+
};
|
|
1176
|
+
rate_params: {
|
|
1177
|
+
optimal_utilisation_rate: string | number;
|
|
1178
|
+
min_borrow_rate: string | number;
|
|
1179
|
+
optimal_borrow_rate: string | number;
|
|
1180
|
+
max_borrow_rate: string | number;
|
|
1181
|
+
};
|
|
1182
|
+
available_amount: string | number;
|
|
1183
|
+
borrowed_amount: string | number;
|
|
1184
|
+
cumulative_deposit_rate: string | number;
|
|
1185
|
+
cumulative_borrow_rate: string | number;
|
|
1186
|
+
accumulated_protocol_fees: string | number;
|
|
1187
|
+
}>>, Map<number, {
|
|
1188
|
+
last_update_timestamp: bigint;
|
|
1193
1189
|
asset_id: number;
|
|
1190
|
+
is_active: boolean;
|
|
1191
|
+
risk_params: {
|
|
1192
|
+
weights: {
|
|
1193
|
+
asset_weight: import("decimal.js").Decimal;
|
|
1194
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
1195
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
1196
|
+
};
|
|
1197
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
1198
|
+
borrow_limit: import("decimal.js").Decimal;
|
|
1199
|
+
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
1200
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
1201
|
+
};
|
|
1202
|
+
rate_params: {
|
|
1203
|
+
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
1204
|
+
min_borrow_rate: import("decimal.js").Decimal;
|
|
1205
|
+
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
1206
|
+
max_borrow_rate: import("decimal.js").Decimal;
|
|
1207
|
+
};
|
|
1208
|
+
available_amount: import("decimal.js").Decimal;
|
|
1209
|
+
borrowed_amount: import("decimal.js").Decimal;
|
|
1210
|
+
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
1211
|
+
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
1212
|
+
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
1213
|
+
}>, Record<string, {
|
|
1194
1214
|
last_update_timestamp: bigint;
|
|
1215
|
+
asset_id: number;
|
|
1195
1216
|
is_active: boolean;
|
|
1196
|
-
decimals: number;
|
|
1197
1217
|
risk_params: {
|
|
1198
1218
|
weights: {
|
|
1199
1219
|
asset_weight: string | number;
|
|
@@ -1216,13 +1236,120 @@ export declare const Schemas: {
|
|
|
1216
1236
|
cumulative_deposit_rate: string | number;
|
|
1217
1237
|
cumulative_borrow_rate: string | number;
|
|
1218
1238
|
accumulated_protocol_fees: string | number;
|
|
1239
|
+
}>>>;
|
|
1240
|
+
readonly PerpPrices: z.ZodObject<{
|
|
1241
|
+
pricing_frequency_seconds: z.ZodNumber;
|
|
1242
|
+
mark_prices: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1243
|
+
price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1244
|
+
last_oracle_diff_ema: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1245
|
+
last_median_cex_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1246
|
+
last_update_timestamp: z.ZodNullable<z.ZodBigInt>;
|
|
1247
|
+
}, "strip", z.ZodTypeAny, {
|
|
1248
|
+
price: import("decimal.js").Decimal;
|
|
1249
|
+
last_update_timestamp: bigint | null;
|
|
1250
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
1251
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
1252
|
+
}, {
|
|
1253
|
+
price: string | number;
|
|
1254
|
+
last_update_timestamp: bigint | null;
|
|
1255
|
+
last_oracle_diff_ema: string | number;
|
|
1256
|
+
last_median_cex_price: string | number;
|
|
1257
|
+
}>>, Map<number, {
|
|
1258
|
+
price: import("decimal.js").Decimal;
|
|
1259
|
+
last_update_timestamp: bigint | null;
|
|
1260
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
1261
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
1262
|
+
}>, Record<string, {
|
|
1263
|
+
price: string | number;
|
|
1264
|
+
last_update_timestamp: bigint | null;
|
|
1265
|
+
last_oracle_diff_ema: string | number;
|
|
1266
|
+
last_median_cex_price: string | number;
|
|
1267
|
+
}>>;
|
|
1268
|
+
accum_premium_index: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1269
|
+
weighted_premium_sum: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1270
|
+
duration_sum: z.ZodBigInt;
|
|
1271
|
+
last_update_timestamp: z.ZodNullable<z.ZodBigInt>;
|
|
1272
|
+
}, "strip", z.ZodTypeAny, {
|
|
1273
|
+
last_update_timestamp: bigint | null;
|
|
1274
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
1275
|
+
duration_sum: bigint;
|
|
1276
|
+
}, {
|
|
1277
|
+
last_update_timestamp: bigint | null;
|
|
1278
|
+
weighted_premium_sum: string | number;
|
|
1279
|
+
duration_sum: bigint;
|
|
1280
|
+
}>>, Map<number, {
|
|
1281
|
+
last_update_timestamp: bigint | null;
|
|
1282
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
1283
|
+
duration_sum: bigint;
|
|
1284
|
+
}>, Record<string, {
|
|
1285
|
+
last_update_timestamp: bigint | null;
|
|
1286
|
+
weighted_premium_sum: string | number;
|
|
1287
|
+
duration_sum: bigint;
|
|
1288
|
+
}>>;
|
|
1289
|
+
funding_metas: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1290
|
+
rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1291
|
+
accum_per_lot: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1292
|
+
last_update_timestamp: z.ZodBigInt;
|
|
1293
|
+
}, "strip", z.ZodTypeAny, {
|
|
1294
|
+
last_update_timestamp: bigint;
|
|
1295
|
+
rate: import("decimal.js").Decimal;
|
|
1296
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
1297
|
+
}, {
|
|
1298
|
+
last_update_timestamp: bigint;
|
|
1299
|
+
rate: string | number;
|
|
1300
|
+
accum_per_lot: string | number;
|
|
1301
|
+
}>>, Map<number, {
|
|
1302
|
+
last_update_timestamp: bigint;
|
|
1303
|
+
rate: import("decimal.js").Decimal;
|
|
1304
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
1305
|
+
}>, Record<string, {
|
|
1306
|
+
last_update_timestamp: bigint;
|
|
1307
|
+
rate: string | number;
|
|
1308
|
+
accum_per_lot: string | number;
|
|
1309
|
+
}>>;
|
|
1310
|
+
}, "strip", z.ZodTypeAny, {
|
|
1311
|
+
pricing_frequency_seconds: number;
|
|
1312
|
+
mark_prices: Map<number, {
|
|
1313
|
+
price: import("decimal.js").Decimal;
|
|
1314
|
+
last_update_timestamp: bigint | null;
|
|
1315
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
1316
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
1317
|
+
}>;
|
|
1318
|
+
accum_premium_index: Map<number, {
|
|
1319
|
+
last_update_timestamp: bigint | null;
|
|
1320
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
1321
|
+
duration_sum: bigint;
|
|
1322
|
+
}>;
|
|
1323
|
+
funding_metas: Map<number, {
|
|
1324
|
+
last_update_timestamp: bigint;
|
|
1325
|
+
rate: import("decimal.js").Decimal;
|
|
1326
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
1327
|
+
}>;
|
|
1328
|
+
}, {
|
|
1329
|
+
pricing_frequency_seconds: number;
|
|
1330
|
+
mark_prices: Record<string, {
|
|
1331
|
+
price: string | number;
|
|
1332
|
+
last_update_timestamp: bigint | null;
|
|
1333
|
+
last_oracle_diff_ema: string | number;
|
|
1334
|
+
last_median_cex_price: string | number;
|
|
1335
|
+
}>;
|
|
1336
|
+
accum_premium_index: Record<string, {
|
|
1337
|
+
last_update_timestamp: bigint | null;
|
|
1338
|
+
weighted_premium_sum: string | number;
|
|
1339
|
+
duration_sum: bigint;
|
|
1340
|
+
}>;
|
|
1341
|
+
funding_metas: Record<string, {
|
|
1342
|
+
last_update_timestamp: bigint;
|
|
1343
|
+
rate: string | number;
|
|
1344
|
+
accum_per_lot: string | number;
|
|
1345
|
+
}>;
|
|
1219
1346
|
}>;
|
|
1220
1347
|
readonly PerpMarket: z.ZodObject<{
|
|
1221
|
-
|
|
1348
|
+
market_id: z.ZodNumber;
|
|
1222
1349
|
is_active: z.ZodBoolean;
|
|
1223
1350
|
min_tick_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1224
1351
|
min_lot_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1225
|
-
|
|
1352
|
+
funding_parameters: z.ZodObject<{
|
|
1226
1353
|
interest_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1227
1354
|
min_interest_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1228
1355
|
max_interest_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -1242,12 +1369,68 @@ export declare const Schemas: {
|
|
|
1242
1369
|
max_funding_rate_clamp: string | number;
|
|
1243
1370
|
}>;
|
|
1244
1371
|
impact_margin: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1372
|
+
orderbook: z.ZodObject<{
|
|
1373
|
+
market_id: z.ZodNumber;
|
|
1374
|
+
bids: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1375
|
+
order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
1376
|
+
total_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1377
|
+
}, "strip", z.ZodTypeAny, {
|
|
1378
|
+
order_ids: bigint[];
|
|
1379
|
+
total_size: import("decimal.js").Decimal;
|
|
1380
|
+
}, {
|
|
1381
|
+
order_ids: bigint[];
|
|
1382
|
+
total_size: string | number;
|
|
1383
|
+
}>>, Map<string, {
|
|
1384
|
+
order_ids: bigint[];
|
|
1385
|
+
total_size: import("decimal.js").Decimal;
|
|
1386
|
+
}>, Record<string, {
|
|
1387
|
+
order_ids: bigint[];
|
|
1388
|
+
total_size: string | number;
|
|
1389
|
+
}>>;
|
|
1390
|
+
asks: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1391
|
+
order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
1392
|
+
total_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1393
|
+
}, "strip", z.ZodTypeAny, {
|
|
1394
|
+
order_ids: bigint[];
|
|
1395
|
+
total_size: import("decimal.js").Decimal;
|
|
1396
|
+
}, {
|
|
1397
|
+
order_ids: bigint[];
|
|
1398
|
+
total_size: string | number;
|
|
1399
|
+
}>>, Map<string, {
|
|
1400
|
+
order_ids: bigint[];
|
|
1401
|
+
total_size: import("decimal.js").Decimal;
|
|
1402
|
+
}>, Record<string, {
|
|
1403
|
+
order_ids: bigint[];
|
|
1404
|
+
total_size: string | number;
|
|
1405
|
+
}>>;
|
|
1406
|
+
}, "strip", z.ZodTypeAny, {
|
|
1407
|
+
market_id: number;
|
|
1408
|
+
bids: Map<string, {
|
|
1409
|
+
order_ids: bigint[];
|
|
1410
|
+
total_size: import("decimal.js").Decimal;
|
|
1411
|
+
}>;
|
|
1412
|
+
asks: Map<string, {
|
|
1413
|
+
order_ids: bigint[];
|
|
1414
|
+
total_size: import("decimal.js").Decimal;
|
|
1415
|
+
}>;
|
|
1416
|
+
}, {
|
|
1417
|
+
market_id: number;
|
|
1418
|
+
bids: Record<string, {
|
|
1419
|
+
order_ids: bigint[];
|
|
1420
|
+
total_size: string | number;
|
|
1421
|
+
}>;
|
|
1422
|
+
asks: Record<string, {
|
|
1423
|
+
order_ids: bigint[];
|
|
1424
|
+
total_size: string | number;
|
|
1425
|
+
}>;
|
|
1426
|
+
}>;
|
|
1427
|
+
last_trade_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1245
1428
|
}, "strip", z.ZodTypeAny, {
|
|
1246
|
-
|
|
1429
|
+
market_id: number;
|
|
1247
1430
|
is_active: boolean;
|
|
1248
1431
|
min_tick_size: import("decimal.js").Decimal;
|
|
1249
1432
|
min_lot_size: import("decimal.js").Decimal;
|
|
1250
|
-
|
|
1433
|
+
funding_parameters: {
|
|
1251
1434
|
interest_rate: import("decimal.js").Decimal;
|
|
1252
1435
|
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1253
1436
|
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
@@ -1255,12 +1438,24 @@ export declare const Schemas: {
|
|
|
1255
1438
|
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1256
1439
|
};
|
|
1257
1440
|
impact_margin: import("decimal.js").Decimal;
|
|
1441
|
+
orderbook: {
|
|
1442
|
+
market_id: number;
|
|
1443
|
+
bids: Map<string, {
|
|
1444
|
+
order_ids: bigint[];
|
|
1445
|
+
total_size: import("decimal.js").Decimal;
|
|
1446
|
+
}>;
|
|
1447
|
+
asks: Map<string, {
|
|
1448
|
+
order_ids: bigint[];
|
|
1449
|
+
total_size: import("decimal.js").Decimal;
|
|
1450
|
+
}>;
|
|
1451
|
+
};
|
|
1452
|
+
last_trade_price: import("decimal.js").Decimal;
|
|
1258
1453
|
}, {
|
|
1259
|
-
|
|
1454
|
+
market_id: number;
|
|
1260
1455
|
is_active: boolean;
|
|
1261
1456
|
min_tick_size: string | number;
|
|
1262
1457
|
min_lot_size: string | number;
|
|
1263
|
-
|
|
1458
|
+
funding_parameters: {
|
|
1264
1459
|
interest_rate: string | number;
|
|
1265
1460
|
min_interest_rate_clamp: string | number;
|
|
1266
1461
|
max_interest_rate_clamp: string | number;
|
|
@@ -1268,6 +1463,18 @@ export declare const Schemas: {
|
|
|
1268
1463
|
max_funding_rate_clamp: string | number;
|
|
1269
1464
|
};
|
|
1270
1465
|
impact_margin: string | number;
|
|
1466
|
+
orderbook: {
|
|
1467
|
+
market_id: number;
|
|
1468
|
+
bids: Record<string, {
|
|
1469
|
+
order_ids: bigint[];
|
|
1470
|
+
total_size: string | number;
|
|
1471
|
+
}>;
|
|
1472
|
+
asks: Record<string, {
|
|
1473
|
+
order_ids: bigint[];
|
|
1474
|
+
total_size: string | number;
|
|
1475
|
+
}>;
|
|
1476
|
+
};
|
|
1477
|
+
last_trade_price: string | number;
|
|
1271
1478
|
}>;
|
|
1272
1479
|
readonly MarginConfig: z.ZodObject<{
|
|
1273
1480
|
perp_leverage_tables: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -1343,13 +1550,6 @@ export declare const Schemas: {
|
|
|
1343
1550
|
backstop_liquidation_threshold: string | number;
|
|
1344
1551
|
liquidation_fee: string | number;
|
|
1345
1552
|
}>;
|
|
1346
|
-
readonly Assets: z.ZodObject<{
|
|
1347
|
-
assets: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Map<number, string>, Record<string, string>>;
|
|
1348
|
-
}, "strip", z.ZodTypeAny, {
|
|
1349
|
-
assets: Map<number, string>;
|
|
1350
|
-
}, {
|
|
1351
|
-
assets: Record<string, string>;
|
|
1352
|
-
}>;
|
|
1353
1553
|
readonly AccountAddresses: z.ZodObject<{
|
|
1354
1554
|
addresses: z.ZodArray<z.ZodString, "many">;
|
|
1355
1555
|
total: z.ZodNumber;
|
|
@@ -1363,6 +1563,90 @@ export declare const Schemas: {
|
|
|
1363
1563
|
total: number;
|
|
1364
1564
|
next_offset: number | null;
|
|
1365
1565
|
}>;
|
|
1566
|
+
readonly AssetRegistry: z.ZodObject<{
|
|
1567
|
+
metas: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1568
|
+
id: z.ZodNumber;
|
|
1569
|
+
name: z.ZodString;
|
|
1570
|
+
token_id: z.ZodString;
|
|
1571
|
+
decimals: z.ZodNumber;
|
|
1572
|
+
}, "strip", z.ZodTypeAny, {
|
|
1573
|
+
token_id: string;
|
|
1574
|
+
id: number;
|
|
1575
|
+
name: string;
|
|
1576
|
+
decimals: number;
|
|
1577
|
+
}, {
|
|
1578
|
+
token_id: string;
|
|
1579
|
+
id: number;
|
|
1580
|
+
name: string;
|
|
1581
|
+
decimals: number;
|
|
1582
|
+
}>>, Map<number, {
|
|
1583
|
+
token_id: string;
|
|
1584
|
+
id: number;
|
|
1585
|
+
name: string;
|
|
1586
|
+
decimals: number;
|
|
1587
|
+
}>, Record<string, {
|
|
1588
|
+
token_id: string;
|
|
1589
|
+
id: number;
|
|
1590
|
+
name: string;
|
|
1591
|
+
decimals: number;
|
|
1592
|
+
}>>;
|
|
1593
|
+
}, "strip", z.ZodTypeAny, {
|
|
1594
|
+
metas: Map<number, {
|
|
1595
|
+
token_id: string;
|
|
1596
|
+
id: number;
|
|
1597
|
+
name: string;
|
|
1598
|
+
decimals: number;
|
|
1599
|
+
}>;
|
|
1600
|
+
}, {
|
|
1601
|
+
metas: Record<string, {
|
|
1602
|
+
token_id: string;
|
|
1603
|
+
id: number;
|
|
1604
|
+
name: string;
|
|
1605
|
+
decimals: number;
|
|
1606
|
+
}>;
|
|
1607
|
+
}>;
|
|
1608
|
+
readonly MarketRegistry: z.ZodObject<{
|
|
1609
|
+
metas: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1610
|
+
id: z.ZodNumber;
|
|
1611
|
+
kind: z.ZodEnum<["Perp", "Spot"]>;
|
|
1612
|
+
base_asset_id: z.ZodNumber;
|
|
1613
|
+
name: z.ZodString;
|
|
1614
|
+
}, "strip", z.ZodTypeAny, {
|
|
1615
|
+
id: number;
|
|
1616
|
+
name: string;
|
|
1617
|
+
kind: "Perp" | "Spot";
|
|
1618
|
+
base_asset_id: number;
|
|
1619
|
+
}, {
|
|
1620
|
+
id: number;
|
|
1621
|
+
name: string;
|
|
1622
|
+
kind: "Perp" | "Spot";
|
|
1623
|
+
base_asset_id: number;
|
|
1624
|
+
}>>, Map<number, {
|
|
1625
|
+
id: number;
|
|
1626
|
+
name: string;
|
|
1627
|
+
kind: "Perp" | "Spot";
|
|
1628
|
+
base_asset_id: number;
|
|
1629
|
+
}>, Record<string, {
|
|
1630
|
+
id: number;
|
|
1631
|
+
name: string;
|
|
1632
|
+
kind: "Perp" | "Spot";
|
|
1633
|
+
base_asset_id: number;
|
|
1634
|
+
}>>;
|
|
1635
|
+
}, "strip", z.ZodTypeAny, {
|
|
1636
|
+
metas: Map<number, {
|
|
1637
|
+
id: number;
|
|
1638
|
+
name: string;
|
|
1639
|
+
kind: "Perp" | "Spot";
|
|
1640
|
+
base_asset_id: number;
|
|
1641
|
+
}>;
|
|
1642
|
+
}, {
|
|
1643
|
+
metas: Record<string, {
|
|
1644
|
+
id: number;
|
|
1645
|
+
name: string;
|
|
1646
|
+
kind: "Perp" | "Spot";
|
|
1647
|
+
base_asset_id: number;
|
|
1648
|
+
}>;
|
|
1649
|
+
}>;
|
|
1366
1650
|
};
|
|
1367
1651
|
export declare const ResponseSchemas: {
|
|
1368
1652
|
readonly DummyValue: z.ZodObject<{
|
|
@@ -1390,7 +1674,7 @@ export declare const ResponseSchemas: {
|
|
|
1390
1674
|
key: z.ZodBigInt;
|
|
1391
1675
|
value: z.ZodNullable<z.ZodObject<{
|
|
1392
1676
|
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
1393
|
-
|
|
1677
|
+
market_id: z.ZodNumber;
|
|
1394
1678
|
order_id: z.ZodBigInt;
|
|
1395
1679
|
price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1396
1680
|
remaining_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -1401,7 +1685,7 @@ export declare const ResponseSchemas: {
|
|
|
1401
1685
|
tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
1402
1686
|
}, "strip", z.ZodTypeAny, {
|
|
1403
1687
|
side: "Bid" | "Ask";
|
|
1404
|
-
|
|
1688
|
+
market_id: number;
|
|
1405
1689
|
order_id: bigint;
|
|
1406
1690
|
price: import("decimal.js").Decimal;
|
|
1407
1691
|
remaining_size: import("decimal.js").Decimal;
|
|
@@ -1412,7 +1696,7 @@ export declare const ResponseSchemas: {
|
|
|
1412
1696
|
tpsl_order_ids: bigint[];
|
|
1413
1697
|
}, {
|
|
1414
1698
|
side: "Bid" | "Ask";
|
|
1415
|
-
|
|
1699
|
+
market_id: number;
|
|
1416
1700
|
order_id: bigint;
|
|
1417
1701
|
price: string | number;
|
|
1418
1702
|
remaining_size: string | number;
|
|
@@ -1425,7 +1709,7 @@ export declare const ResponseSchemas: {
|
|
|
1425
1709
|
}, "strip", z.ZodTypeAny, {
|
|
1426
1710
|
value: {
|
|
1427
1711
|
side: "Bid" | "Ask";
|
|
1428
|
-
|
|
1712
|
+
market_id: number;
|
|
1429
1713
|
order_id: bigint;
|
|
1430
1714
|
price: import("decimal.js").Decimal;
|
|
1431
1715
|
remaining_size: import("decimal.js").Decimal;
|
|
@@ -1439,7 +1723,7 @@ export declare const ResponseSchemas: {
|
|
|
1439
1723
|
}, {
|
|
1440
1724
|
value: {
|
|
1441
1725
|
side: "Bid" | "Ask";
|
|
1442
|
-
|
|
1726
|
+
market_id: number;
|
|
1443
1727
|
order_id: bigint;
|
|
1444
1728
|
price: string | number;
|
|
1445
1729
|
remaining_size: string | number;
|
|
@@ -1456,7 +1740,7 @@ export declare const ResponseSchemas: {
|
|
|
1456
1740
|
data: {
|
|
1457
1741
|
value: {
|
|
1458
1742
|
side: "Bid" | "Ask";
|
|
1459
|
-
|
|
1743
|
+
market_id: number;
|
|
1460
1744
|
order_id: bigint;
|
|
1461
1745
|
price: import("decimal.js").Decimal;
|
|
1462
1746
|
remaining_size: import("decimal.js").Decimal;
|
|
@@ -1473,7 +1757,7 @@ export declare const ResponseSchemas: {
|
|
|
1473
1757
|
data: {
|
|
1474
1758
|
value: {
|
|
1475
1759
|
side: "Bid" | "Ask";
|
|
1476
|
-
|
|
1760
|
+
market_id: number;
|
|
1477
1761
|
order_id: bigint;
|
|
1478
1762
|
price: string | number;
|
|
1479
1763
|
remaining_size: string | number;
|
|
@@ -1491,23 +1775,50 @@ export declare const ResponseSchemas: {
|
|
|
1491
1775
|
data: z.ZodObject<{
|
|
1492
1776
|
value: z.ZodNullable<z.ZodObject<{
|
|
1493
1777
|
pricing_frequency_seconds: z.ZodNumber;
|
|
1494
|
-
|
|
1778
|
+
prices: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1779
|
+
price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1780
|
+
last_update_timestamp: z.ZodNullable<z.ZodBigInt>;
|
|
1781
|
+
}, "strip", z.ZodTypeAny, {
|
|
1782
|
+
price: import("decimal.js").Decimal;
|
|
1783
|
+
last_update_timestamp: bigint | null;
|
|
1784
|
+
}, {
|
|
1785
|
+
price: string | number;
|
|
1786
|
+
last_update_timestamp: bigint | null;
|
|
1787
|
+
}>>, Map<number, {
|
|
1788
|
+
price: import("decimal.js").Decimal;
|
|
1789
|
+
last_update_timestamp: bigint | null;
|
|
1790
|
+
}>, Record<string, {
|
|
1791
|
+
price: string | number;
|
|
1792
|
+
last_update_timestamp: bigint | null;
|
|
1793
|
+
}>>;
|
|
1495
1794
|
}, "strip", z.ZodTypeAny, {
|
|
1496
1795
|
pricing_frequency_seconds: number;
|
|
1497
|
-
|
|
1796
|
+
prices: Map<number, {
|
|
1797
|
+
price: import("decimal.js").Decimal;
|
|
1798
|
+
last_update_timestamp: bigint | null;
|
|
1799
|
+
}>;
|
|
1498
1800
|
}, {
|
|
1499
1801
|
pricing_frequency_seconds: number;
|
|
1500
|
-
|
|
1802
|
+
prices: Record<string, {
|
|
1803
|
+
price: string | number;
|
|
1804
|
+
last_update_timestamp: bigint | null;
|
|
1805
|
+
}>;
|
|
1501
1806
|
}>>;
|
|
1502
1807
|
}, "strip", z.ZodTypeAny, {
|
|
1503
1808
|
value: {
|
|
1504
1809
|
pricing_frequency_seconds: number;
|
|
1505
|
-
|
|
1810
|
+
prices: Map<number, {
|
|
1811
|
+
price: import("decimal.js").Decimal;
|
|
1812
|
+
last_update_timestamp: bigint | null;
|
|
1813
|
+
}>;
|
|
1506
1814
|
} | null;
|
|
1507
1815
|
}, {
|
|
1508
1816
|
value: {
|
|
1509
1817
|
pricing_frequency_seconds: number;
|
|
1510
|
-
|
|
1818
|
+
prices: Record<string, {
|
|
1819
|
+
price: string | number;
|
|
1820
|
+
last_update_timestamp: bigint | null;
|
|
1821
|
+
}>;
|
|
1511
1822
|
} | null;
|
|
1512
1823
|
}>;
|
|
1513
1824
|
meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
|
|
@@ -1515,7 +1826,10 @@ export declare const ResponseSchemas: {
|
|
|
1515
1826
|
data: {
|
|
1516
1827
|
value: {
|
|
1517
1828
|
pricing_frequency_seconds: number;
|
|
1518
|
-
|
|
1829
|
+
prices: Map<number, {
|
|
1830
|
+
price: import("decimal.js").Decimal;
|
|
1831
|
+
last_update_timestamp: bigint | null;
|
|
1832
|
+
}>;
|
|
1519
1833
|
} | null;
|
|
1520
1834
|
};
|
|
1521
1835
|
meta: Map<unknown, unknown> | null;
|
|
@@ -1523,7 +1837,10 @@ export declare const ResponseSchemas: {
|
|
|
1523
1837
|
data: {
|
|
1524
1838
|
value: {
|
|
1525
1839
|
pricing_frequency_seconds: number;
|
|
1526
|
-
|
|
1840
|
+
prices: Record<string, {
|
|
1841
|
+
price: string | number;
|
|
1842
|
+
last_update_timestamp: bigint | null;
|
|
1843
|
+
}>;
|
|
1527
1844
|
} | null;
|
|
1528
1845
|
};
|
|
1529
1846
|
meta: Record<string, unknown> | null;
|
|
@@ -1532,74 +1849,150 @@ export declare const ResponseSchemas: {
|
|
|
1532
1849
|
data: z.ZodObject<{
|
|
1533
1850
|
value: z.ZodNullable<z.ZodObject<{
|
|
1534
1851
|
pricing_frequency_seconds: z.ZodNumber;
|
|
1535
|
-
mark_prices: z.ZodEffects<z.ZodRecord<z.ZodString, z.
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1852
|
+
mark_prices: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1853
|
+
price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1854
|
+
last_oracle_diff_ema: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1855
|
+
last_median_cex_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1539
1856
|
last_update_timestamp: z.ZodNullable<z.ZodBigInt>;
|
|
1540
1857
|
}, "strip", z.ZodTypeAny, {
|
|
1541
|
-
|
|
1542
|
-
duration_sum: bigint;
|
|
1858
|
+
price: import("decimal.js").Decimal;
|
|
1543
1859
|
last_update_timestamp: bigint | null;
|
|
1860
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
1861
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
1544
1862
|
}, {
|
|
1545
|
-
|
|
1546
|
-
duration_sum: bigint;
|
|
1863
|
+
price: string | number;
|
|
1547
1864
|
last_update_timestamp: bigint | null;
|
|
1865
|
+
last_oracle_diff_ema: string | number;
|
|
1866
|
+
last_median_cex_price: string | number;
|
|
1548
1867
|
}>>, Map<number, {
|
|
1549
|
-
|
|
1550
|
-
duration_sum: bigint;
|
|
1868
|
+
price: import("decimal.js").Decimal;
|
|
1551
1869
|
last_update_timestamp: bigint | null;
|
|
1870
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
1871
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
1552
1872
|
}>, Record<string, {
|
|
1553
|
-
|
|
1554
|
-
duration_sum: bigint;
|
|
1873
|
+
price: string | number;
|
|
1555
1874
|
last_update_timestamp: bigint | null;
|
|
1875
|
+
last_oracle_diff_ema: string | number;
|
|
1876
|
+
last_median_cex_price: string | number;
|
|
1556
1877
|
}>>;
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1878
|
+
accum_premium_index: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1879
|
+
weighted_premium_sum: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1880
|
+
duration_sum: z.ZodBigInt;
|
|
1881
|
+
last_update_timestamp: z.ZodNullable<z.ZodBigInt>;
|
|
1882
|
+
}, "strip", z.ZodTypeAny, {
|
|
1883
|
+
last_update_timestamp: bigint | null;
|
|
1884
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
1885
|
+
duration_sum: bigint;
|
|
1886
|
+
}, {
|
|
1887
|
+
last_update_timestamp: bigint | null;
|
|
1888
|
+
weighted_premium_sum: string | number;
|
|
1889
|
+
duration_sum: bigint;
|
|
1890
|
+
}>>, Map<number, {
|
|
1891
|
+
last_update_timestamp: bigint | null;
|
|
1892
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
1893
|
+
duration_sum: bigint;
|
|
1894
|
+
}>, Record<string, {
|
|
1895
|
+
last_update_timestamp: bigint | null;
|
|
1896
|
+
weighted_premium_sum: string | number;
|
|
1897
|
+
duration_sum: bigint;
|
|
1898
|
+
}>>;
|
|
1899
|
+
funding_metas: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1900
|
+
rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1901
|
+
accum_per_lot: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1902
|
+
last_update_timestamp: z.ZodBigInt;
|
|
1903
|
+
}, "strip", z.ZodTypeAny, {
|
|
1904
|
+
last_update_timestamp: bigint;
|
|
1905
|
+
rate: import("decimal.js").Decimal;
|
|
1906
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
1907
|
+
}, {
|
|
1908
|
+
last_update_timestamp: bigint;
|
|
1909
|
+
rate: string | number;
|
|
1910
|
+
accum_per_lot: string | number;
|
|
1911
|
+
}>>, Map<number, {
|
|
1912
|
+
last_update_timestamp: bigint;
|
|
1913
|
+
rate: import("decimal.js").Decimal;
|
|
1914
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
1915
|
+
}>, Record<string, {
|
|
1916
|
+
last_update_timestamp: bigint;
|
|
1917
|
+
rate: string | number;
|
|
1918
|
+
accum_per_lot: string | number;
|
|
1919
|
+
}>>;
|
|
1920
|
+
}, "strip", z.ZodTypeAny, {
|
|
1560
1921
|
pricing_frequency_seconds: number;
|
|
1561
|
-
mark_prices: Map<number,
|
|
1922
|
+
mark_prices: Map<number, {
|
|
1923
|
+
price: import("decimal.js").Decimal;
|
|
1924
|
+
last_update_timestamp: bigint | null;
|
|
1925
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
1926
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
1927
|
+
}>;
|
|
1562
1928
|
accum_premium_index: Map<number, {
|
|
1929
|
+
last_update_timestamp: bigint | null;
|
|
1563
1930
|
weighted_premium_sum: import("decimal.js").Decimal;
|
|
1564
1931
|
duration_sum: bigint;
|
|
1565
|
-
last_update_timestamp: bigint | null;
|
|
1566
1932
|
}>;
|
|
1567
|
-
|
|
1568
|
-
|
|
1933
|
+
funding_metas: Map<number, {
|
|
1934
|
+
last_update_timestamp: bigint;
|
|
1935
|
+
rate: import("decimal.js").Decimal;
|
|
1936
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
1937
|
+
}>;
|
|
1569
1938
|
}, {
|
|
1570
1939
|
pricing_frequency_seconds: number;
|
|
1571
|
-
mark_prices: Record<string,
|
|
1940
|
+
mark_prices: Record<string, {
|
|
1941
|
+
price: string | number;
|
|
1942
|
+
last_update_timestamp: bigint | null;
|
|
1943
|
+
last_oracle_diff_ema: string | number;
|
|
1944
|
+
last_median_cex_price: string | number;
|
|
1945
|
+
}>;
|
|
1572
1946
|
accum_premium_index: Record<string, {
|
|
1947
|
+
last_update_timestamp: bigint | null;
|
|
1573
1948
|
weighted_premium_sum: string | number;
|
|
1574
1949
|
duration_sum: bigint;
|
|
1575
|
-
last_update_timestamp: bigint | null;
|
|
1576
1950
|
}>;
|
|
1577
|
-
|
|
1578
|
-
|
|
1951
|
+
funding_metas: Record<string, {
|
|
1952
|
+
last_update_timestamp: bigint;
|
|
1953
|
+
rate: string | number;
|
|
1954
|
+
accum_per_lot: string | number;
|
|
1955
|
+
}>;
|
|
1579
1956
|
}>>;
|
|
1580
1957
|
}, "strip", z.ZodTypeAny, {
|
|
1581
1958
|
value: {
|
|
1582
1959
|
pricing_frequency_seconds: number;
|
|
1583
|
-
mark_prices: Map<number,
|
|
1960
|
+
mark_prices: Map<number, {
|
|
1961
|
+
price: import("decimal.js").Decimal;
|
|
1962
|
+
last_update_timestamp: bigint | null;
|
|
1963
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
1964
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
1965
|
+
}>;
|
|
1584
1966
|
accum_premium_index: Map<number, {
|
|
1967
|
+
last_update_timestamp: bigint | null;
|
|
1585
1968
|
weighted_premium_sum: import("decimal.js").Decimal;
|
|
1586
1969
|
duration_sum: bigint;
|
|
1587
|
-
last_update_timestamp: bigint | null;
|
|
1588
1970
|
}>;
|
|
1589
|
-
|
|
1590
|
-
|
|
1971
|
+
funding_metas: Map<number, {
|
|
1972
|
+
last_update_timestamp: bigint;
|
|
1973
|
+
rate: import("decimal.js").Decimal;
|
|
1974
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
1975
|
+
}>;
|
|
1591
1976
|
} | null;
|
|
1592
1977
|
}, {
|
|
1593
1978
|
value: {
|
|
1594
1979
|
pricing_frequency_seconds: number;
|
|
1595
|
-
mark_prices: Record<string,
|
|
1980
|
+
mark_prices: Record<string, {
|
|
1981
|
+
price: string | number;
|
|
1982
|
+
last_update_timestamp: bigint | null;
|
|
1983
|
+
last_oracle_diff_ema: string | number;
|
|
1984
|
+
last_median_cex_price: string | number;
|
|
1985
|
+
}>;
|
|
1596
1986
|
accum_premium_index: Record<string, {
|
|
1987
|
+
last_update_timestamp: bigint | null;
|
|
1597
1988
|
weighted_premium_sum: string | number;
|
|
1598
1989
|
duration_sum: bigint;
|
|
1599
|
-
last_update_timestamp: bigint | null;
|
|
1600
1990
|
}>;
|
|
1601
|
-
|
|
1602
|
-
|
|
1991
|
+
funding_metas: Record<string, {
|
|
1992
|
+
last_update_timestamp: bigint;
|
|
1993
|
+
rate: string | number;
|
|
1994
|
+
accum_per_lot: string | number;
|
|
1995
|
+
}>;
|
|
1603
1996
|
} | null;
|
|
1604
1997
|
}>;
|
|
1605
1998
|
meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
|
|
@@ -1607,14 +2000,22 @@ export declare const ResponseSchemas: {
|
|
|
1607
2000
|
data: {
|
|
1608
2001
|
value: {
|
|
1609
2002
|
pricing_frequency_seconds: number;
|
|
1610
|
-
mark_prices: Map<number,
|
|
2003
|
+
mark_prices: Map<number, {
|
|
2004
|
+
price: import("decimal.js").Decimal;
|
|
2005
|
+
last_update_timestamp: bigint | null;
|
|
2006
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
2007
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
2008
|
+
}>;
|
|
1611
2009
|
accum_premium_index: Map<number, {
|
|
2010
|
+
last_update_timestamp: bigint | null;
|
|
1612
2011
|
weighted_premium_sum: import("decimal.js").Decimal;
|
|
1613
2012
|
duration_sum: bigint;
|
|
1614
|
-
last_update_timestamp: bigint | null;
|
|
1615
2013
|
}>;
|
|
1616
|
-
|
|
1617
|
-
|
|
2014
|
+
funding_metas: Map<number, {
|
|
2015
|
+
last_update_timestamp: bigint;
|
|
2016
|
+
rate: import("decimal.js").Decimal;
|
|
2017
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
2018
|
+
}>;
|
|
1618
2019
|
} | null;
|
|
1619
2020
|
};
|
|
1620
2021
|
meta: Map<unknown, unknown> | null;
|
|
@@ -1622,14 +2023,22 @@ export declare const ResponseSchemas: {
|
|
|
1622
2023
|
data: {
|
|
1623
2024
|
value: {
|
|
1624
2025
|
pricing_frequency_seconds: number;
|
|
1625
|
-
mark_prices: Record<string,
|
|
2026
|
+
mark_prices: Record<string, {
|
|
2027
|
+
price: string | number;
|
|
2028
|
+
last_update_timestamp: bigint | null;
|
|
2029
|
+
last_oracle_diff_ema: string | number;
|
|
2030
|
+
last_median_cex_price: string | number;
|
|
2031
|
+
}>;
|
|
1626
2032
|
accum_premium_index: Record<string, {
|
|
2033
|
+
last_update_timestamp: bigint | null;
|
|
1627
2034
|
weighted_premium_sum: string | number;
|
|
1628
2035
|
duration_sum: bigint;
|
|
1629
|
-
last_update_timestamp: bigint | null;
|
|
1630
2036
|
}>;
|
|
1631
|
-
|
|
1632
|
-
|
|
2037
|
+
funding_metas: Record<string, {
|
|
2038
|
+
last_update_timestamp: bigint;
|
|
2039
|
+
rate: string | number;
|
|
2040
|
+
accum_per_lot: string | number;
|
|
2041
|
+
}>;
|
|
1633
2042
|
} | null;
|
|
1634
2043
|
};
|
|
1635
2044
|
meta: Record<string, unknown> | null;
|
|
@@ -1723,33 +2132,211 @@ export declare const ResponseSchemas: {
|
|
|
1723
2132
|
};
|
|
1724
2133
|
meta: Record<string, unknown> | null;
|
|
1725
2134
|
}>;
|
|
2135
|
+
readonly AssetRegistry: z.ZodObject<{
|
|
2136
|
+
data: z.ZodObject<{
|
|
2137
|
+
value: z.ZodNullable<z.ZodObject<{
|
|
2138
|
+
metas: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2139
|
+
id: z.ZodNumber;
|
|
2140
|
+
name: z.ZodString;
|
|
2141
|
+
token_id: z.ZodString;
|
|
2142
|
+
decimals: z.ZodNumber;
|
|
2143
|
+
}, "strip", z.ZodTypeAny, {
|
|
2144
|
+
token_id: string;
|
|
2145
|
+
id: number;
|
|
2146
|
+
name: string;
|
|
2147
|
+
decimals: number;
|
|
2148
|
+
}, {
|
|
2149
|
+
token_id: string;
|
|
2150
|
+
id: number;
|
|
2151
|
+
name: string;
|
|
2152
|
+
decimals: number;
|
|
2153
|
+
}>>, Map<number, {
|
|
2154
|
+
token_id: string;
|
|
2155
|
+
id: number;
|
|
2156
|
+
name: string;
|
|
2157
|
+
decimals: number;
|
|
2158
|
+
}>, Record<string, {
|
|
2159
|
+
token_id: string;
|
|
2160
|
+
id: number;
|
|
2161
|
+
name: string;
|
|
2162
|
+
decimals: number;
|
|
2163
|
+
}>>;
|
|
2164
|
+
}, "strip", z.ZodTypeAny, {
|
|
2165
|
+
metas: Map<number, {
|
|
2166
|
+
token_id: string;
|
|
2167
|
+
id: number;
|
|
2168
|
+
name: string;
|
|
2169
|
+
decimals: number;
|
|
2170
|
+
}>;
|
|
2171
|
+
}, {
|
|
2172
|
+
metas: Record<string, {
|
|
2173
|
+
token_id: string;
|
|
2174
|
+
id: number;
|
|
2175
|
+
name: string;
|
|
2176
|
+
decimals: number;
|
|
2177
|
+
}>;
|
|
2178
|
+
}>>;
|
|
2179
|
+
}, "strip", z.ZodTypeAny, {
|
|
2180
|
+
value: {
|
|
2181
|
+
metas: Map<number, {
|
|
2182
|
+
token_id: string;
|
|
2183
|
+
id: number;
|
|
2184
|
+
name: string;
|
|
2185
|
+
decimals: number;
|
|
2186
|
+
}>;
|
|
2187
|
+
} | null;
|
|
2188
|
+
}, {
|
|
2189
|
+
value: {
|
|
2190
|
+
metas: Record<string, {
|
|
2191
|
+
token_id: string;
|
|
2192
|
+
id: number;
|
|
2193
|
+
name: string;
|
|
2194
|
+
decimals: number;
|
|
2195
|
+
}>;
|
|
2196
|
+
} | null;
|
|
2197
|
+
}>;
|
|
2198
|
+
meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
|
|
2199
|
+
}, "strip", z.ZodTypeAny, {
|
|
2200
|
+
data: {
|
|
2201
|
+
value: {
|
|
2202
|
+
metas: Map<number, {
|
|
2203
|
+
token_id: string;
|
|
2204
|
+
id: number;
|
|
2205
|
+
name: string;
|
|
2206
|
+
decimals: number;
|
|
2207
|
+
}>;
|
|
2208
|
+
} | null;
|
|
2209
|
+
};
|
|
2210
|
+
meta: Map<unknown, unknown> | null;
|
|
2211
|
+
}, {
|
|
2212
|
+
data: {
|
|
2213
|
+
value: {
|
|
2214
|
+
metas: Record<string, {
|
|
2215
|
+
token_id: string;
|
|
2216
|
+
id: number;
|
|
2217
|
+
name: string;
|
|
2218
|
+
decimals: number;
|
|
2219
|
+
}>;
|
|
2220
|
+
} | null;
|
|
2221
|
+
};
|
|
2222
|
+
meta: Record<string, unknown> | null;
|
|
2223
|
+
}>;
|
|
2224
|
+
readonly MarketRegistry: z.ZodObject<{
|
|
2225
|
+
data: z.ZodObject<{
|
|
2226
|
+
value: z.ZodNullable<z.ZodObject<{
|
|
2227
|
+
metas: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2228
|
+
id: z.ZodNumber;
|
|
2229
|
+
kind: z.ZodEnum<["Perp", "Spot"]>;
|
|
2230
|
+
base_asset_id: z.ZodNumber;
|
|
2231
|
+
name: z.ZodString;
|
|
2232
|
+
}, "strip", z.ZodTypeAny, {
|
|
2233
|
+
id: number;
|
|
2234
|
+
name: string;
|
|
2235
|
+
kind: "Perp" | "Spot";
|
|
2236
|
+
base_asset_id: number;
|
|
2237
|
+
}, {
|
|
2238
|
+
id: number;
|
|
2239
|
+
name: string;
|
|
2240
|
+
kind: "Perp" | "Spot";
|
|
2241
|
+
base_asset_id: number;
|
|
2242
|
+
}>>, Map<number, {
|
|
2243
|
+
id: number;
|
|
2244
|
+
name: string;
|
|
2245
|
+
kind: "Perp" | "Spot";
|
|
2246
|
+
base_asset_id: number;
|
|
2247
|
+
}>, Record<string, {
|
|
2248
|
+
id: number;
|
|
2249
|
+
name: string;
|
|
2250
|
+
kind: "Perp" | "Spot";
|
|
2251
|
+
base_asset_id: number;
|
|
2252
|
+
}>>;
|
|
2253
|
+
}, "strip", z.ZodTypeAny, {
|
|
2254
|
+
metas: Map<number, {
|
|
2255
|
+
id: number;
|
|
2256
|
+
name: string;
|
|
2257
|
+
kind: "Perp" | "Spot";
|
|
2258
|
+
base_asset_id: number;
|
|
2259
|
+
}>;
|
|
2260
|
+
}, {
|
|
2261
|
+
metas: Record<string, {
|
|
2262
|
+
id: number;
|
|
2263
|
+
name: string;
|
|
2264
|
+
kind: "Perp" | "Spot";
|
|
2265
|
+
base_asset_id: number;
|
|
2266
|
+
}>;
|
|
2267
|
+
}>>;
|
|
2268
|
+
}, "strip", z.ZodTypeAny, {
|
|
2269
|
+
value: {
|
|
2270
|
+
metas: Map<number, {
|
|
2271
|
+
id: number;
|
|
2272
|
+
name: string;
|
|
2273
|
+
kind: "Perp" | "Spot";
|
|
2274
|
+
base_asset_id: number;
|
|
2275
|
+
}>;
|
|
2276
|
+
} | null;
|
|
2277
|
+
}, {
|
|
2278
|
+
value: {
|
|
2279
|
+
metas: Record<string, {
|
|
2280
|
+
id: number;
|
|
2281
|
+
name: string;
|
|
2282
|
+
kind: "Perp" | "Spot";
|
|
2283
|
+
base_asset_id: number;
|
|
2284
|
+
}>;
|
|
2285
|
+
} | null;
|
|
2286
|
+
}>;
|
|
2287
|
+
meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
|
|
2288
|
+
}, "strip", z.ZodTypeAny, {
|
|
2289
|
+
data: {
|
|
2290
|
+
value: {
|
|
2291
|
+
metas: Map<number, {
|
|
2292
|
+
id: number;
|
|
2293
|
+
name: string;
|
|
2294
|
+
kind: "Perp" | "Spot";
|
|
2295
|
+
base_asset_id: number;
|
|
2296
|
+
}>;
|
|
2297
|
+
} | null;
|
|
2298
|
+
};
|
|
2299
|
+
meta: Map<unknown, unknown> | null;
|
|
2300
|
+
}, {
|
|
2301
|
+
data: {
|
|
2302
|
+
value: {
|
|
2303
|
+
metas: Record<string, {
|
|
2304
|
+
id: number;
|
|
2305
|
+
name: string;
|
|
2306
|
+
kind: "Perp" | "Spot";
|
|
2307
|
+
base_asset_id: number;
|
|
2308
|
+
}>;
|
|
2309
|
+
} | null;
|
|
2310
|
+
};
|
|
2311
|
+
meta: Record<string, unknown> | null;
|
|
2312
|
+
}>;
|
|
1726
2313
|
readonly OrderbookL2: z.ZodObject<{
|
|
1727
2314
|
data: z.ZodObject<{
|
|
1728
|
-
|
|
2315
|
+
market_id: z.ZodNumber;
|
|
1729
2316
|
orderbook: z.ZodObject<{
|
|
1730
|
-
|
|
2317
|
+
market_id: z.ZodNumber;
|
|
1731
2318
|
bids: z.ZodArray<z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>], null>, "many">;
|
|
1732
2319
|
asks: z.ZodArray<z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>], null>, "many">;
|
|
1733
2320
|
}, "strip", z.ZodTypeAny, {
|
|
1734
|
-
|
|
2321
|
+
market_id: number;
|
|
1735
2322
|
bids: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1736
2323
|
asks: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1737
2324
|
}, {
|
|
1738
|
-
|
|
2325
|
+
market_id: number;
|
|
1739
2326
|
bids: [string | number, string | number][];
|
|
1740
2327
|
asks: [string | number, string | number][];
|
|
1741
2328
|
}>;
|
|
1742
2329
|
}, "strip", z.ZodTypeAny, {
|
|
1743
|
-
|
|
2330
|
+
market_id: number;
|
|
1744
2331
|
orderbook: {
|
|
1745
|
-
|
|
2332
|
+
market_id: number;
|
|
1746
2333
|
bids: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1747
2334
|
asks: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1748
2335
|
};
|
|
1749
2336
|
}, {
|
|
1750
|
-
|
|
2337
|
+
market_id: number;
|
|
1751
2338
|
orderbook: {
|
|
1752
|
-
|
|
2339
|
+
market_id: number;
|
|
1753
2340
|
bids: [string | number, string | number][];
|
|
1754
2341
|
asks: [string | number, string | number][];
|
|
1755
2342
|
};
|
|
@@ -1757,9 +2344,9 @@ export declare const ResponseSchemas: {
|
|
|
1757
2344
|
meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
|
|
1758
2345
|
}, "strip", z.ZodTypeAny, {
|
|
1759
2346
|
data: {
|
|
1760
|
-
|
|
2347
|
+
market_id: number;
|
|
1761
2348
|
orderbook: {
|
|
1762
|
-
|
|
2349
|
+
market_id: number;
|
|
1763
2350
|
bids: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1764
2351
|
asks: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1765
2352
|
};
|
|
@@ -1767,9 +2354,9 @@ export declare const ResponseSchemas: {
|
|
|
1767
2354
|
meta: Map<unknown, unknown> | null;
|
|
1768
2355
|
}, {
|
|
1769
2356
|
data: {
|
|
1770
|
-
|
|
2357
|
+
market_id: number;
|
|
1771
2358
|
orderbook: {
|
|
1772
|
-
|
|
2359
|
+
market_id: number;
|
|
1773
2360
|
bids: [string | number, string | number][];
|
|
1774
2361
|
asks: [string | number, string | number][];
|
|
1775
2362
|
};
|
|
@@ -1779,37 +2366,37 @@ export declare const ResponseSchemas: {
|
|
|
1779
2366
|
readonly OrderbookL2Bulk: z.ZodObject<{
|
|
1780
2367
|
data: z.ZodObject<{
|
|
1781
2368
|
found: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1782
|
-
|
|
2369
|
+
market_id: z.ZodNumber;
|
|
1783
2370
|
bids: z.ZodArray<z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>], null>, "many">;
|
|
1784
2371
|
asks: z.ZodArray<z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>], null>, "many">;
|
|
1785
2372
|
}, "strip", z.ZodTypeAny, {
|
|
1786
|
-
|
|
2373
|
+
market_id: number;
|
|
1787
2374
|
bids: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1788
2375
|
asks: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1789
2376
|
}, {
|
|
1790
|
-
|
|
2377
|
+
market_id: number;
|
|
1791
2378
|
bids: [string | number, string | number][];
|
|
1792
2379
|
asks: [string | number, string | number][];
|
|
1793
2380
|
}>>, Map<number, {
|
|
1794
|
-
|
|
2381
|
+
market_id: number;
|
|
1795
2382
|
bids: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1796
2383
|
asks: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1797
2384
|
}>, Record<string, {
|
|
1798
|
-
|
|
2385
|
+
market_id: number;
|
|
1799
2386
|
bids: [string | number, string | number][];
|
|
1800
2387
|
asks: [string | number, string | number][];
|
|
1801
2388
|
}>>;
|
|
1802
2389
|
not_found: z.ZodArray<z.ZodNumber, "many">;
|
|
1803
2390
|
}, "strip", z.ZodTypeAny, {
|
|
1804
2391
|
found: Map<number, {
|
|
1805
|
-
|
|
2392
|
+
market_id: number;
|
|
1806
2393
|
bids: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1807
2394
|
asks: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1808
2395
|
}>;
|
|
1809
2396
|
not_found: number[];
|
|
1810
2397
|
}, {
|
|
1811
2398
|
found: Record<string, {
|
|
1812
|
-
|
|
2399
|
+
market_id: number;
|
|
1813
2400
|
bids: [string | number, string | number][];
|
|
1814
2401
|
asks: [string | number, string | number][];
|
|
1815
2402
|
}>;
|
|
@@ -1819,7 +2406,7 @@ export declare const ResponseSchemas: {
|
|
|
1819
2406
|
}, "strip", z.ZodTypeAny, {
|
|
1820
2407
|
data: {
|
|
1821
2408
|
found: Map<number, {
|
|
1822
|
-
|
|
2409
|
+
market_id: number;
|
|
1823
2410
|
bids: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1824
2411
|
asks: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1825
2412
|
}>;
|
|
@@ -1829,7 +2416,7 @@ export declare const ResponseSchemas: {
|
|
|
1829
2416
|
}, {
|
|
1830
2417
|
data: {
|
|
1831
2418
|
found: Record<string, {
|
|
1832
|
-
|
|
2419
|
+
market_id: number;
|
|
1833
2420
|
bids: [string | number, string | number][];
|
|
1834
2421
|
asks: [string | number, string | number][];
|
|
1835
2422
|
}>;
|
|
@@ -1955,7 +2542,7 @@ export declare const ResponseSchemas: {
|
|
|
1955
2542
|
perp_ledgers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1956
2543
|
orders: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1957
2544
|
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
1958
|
-
|
|
2545
|
+
market_id: z.ZodNumber;
|
|
1959
2546
|
order_id: z.ZodBigInt;
|
|
1960
2547
|
price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1961
2548
|
remaining_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -1966,7 +2553,7 @@ export declare const ResponseSchemas: {
|
|
|
1966
2553
|
tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
1967
2554
|
}, "strip", z.ZodTypeAny, {
|
|
1968
2555
|
side: "Bid" | "Ask";
|
|
1969
|
-
|
|
2556
|
+
market_id: number;
|
|
1970
2557
|
order_id: bigint;
|
|
1971
2558
|
price: import("decimal.js").Decimal;
|
|
1972
2559
|
remaining_size: import("decimal.js").Decimal;
|
|
@@ -1977,7 +2564,7 @@ export declare const ResponseSchemas: {
|
|
|
1977
2564
|
tpsl_order_ids: bigint[];
|
|
1978
2565
|
}, {
|
|
1979
2566
|
side: "Bid" | "Ask";
|
|
1980
|
-
|
|
2567
|
+
market_id: number;
|
|
1981
2568
|
order_id: bigint;
|
|
1982
2569
|
price: string | number;
|
|
1983
2570
|
remaining_size: string | number;
|
|
@@ -1988,7 +2575,7 @@ export declare const ResponseSchemas: {
|
|
|
1988
2575
|
tpsl_order_ids: bigint[];
|
|
1989
2576
|
}>>, Map<bigint, {
|
|
1990
2577
|
side: "Bid" | "Ask";
|
|
1991
|
-
|
|
2578
|
+
market_id: number;
|
|
1992
2579
|
order_id: bigint;
|
|
1993
2580
|
price: import("decimal.js").Decimal;
|
|
1994
2581
|
remaining_size: import("decimal.js").Decimal;
|
|
@@ -1999,7 +2586,7 @@ export declare const ResponseSchemas: {
|
|
|
1999
2586
|
tpsl_order_ids: bigint[];
|
|
2000
2587
|
}>, Record<string, {
|
|
2001
2588
|
side: "Bid" | "Ask";
|
|
2002
|
-
|
|
2589
|
+
market_id: number;
|
|
2003
2590
|
order_id: bigint;
|
|
2004
2591
|
price: string | number;
|
|
2005
2592
|
remaining_size: string | number;
|
|
@@ -2037,7 +2624,7 @@ export declare const ResponseSchemas: {
|
|
|
2037
2624
|
user_selected_max_leverage: z.ZodNumber;
|
|
2038
2625
|
tpsls: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2039
2626
|
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
2040
|
-
|
|
2627
|
+
market_id: z.ZodNumber;
|
|
2041
2628
|
tpsl_order_id: z.ZodBigInt;
|
|
2042
2629
|
order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2043
2630
|
trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -2051,7 +2638,7 @@ export declare const ResponseSchemas: {
|
|
|
2051
2638
|
linked_tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
2052
2639
|
}, "strip", z.ZodTypeAny, {
|
|
2053
2640
|
side: "Bid" | "Ask";
|
|
2054
|
-
|
|
2641
|
+
market_id: number;
|
|
2055
2642
|
owner: string;
|
|
2056
2643
|
tpsl_order_id: bigint;
|
|
2057
2644
|
order_price: import("decimal.js").Decimal;
|
|
@@ -2065,7 +2652,7 @@ export declare const ResponseSchemas: {
|
|
|
2065
2652
|
linked_tpsl_order_ids: bigint[];
|
|
2066
2653
|
}, {
|
|
2067
2654
|
side: "Bid" | "Ask";
|
|
2068
|
-
|
|
2655
|
+
market_id: number;
|
|
2069
2656
|
owner: string;
|
|
2070
2657
|
tpsl_order_id: bigint;
|
|
2071
2658
|
order_price: string | number;
|
|
@@ -2079,7 +2666,7 @@ export declare const ResponseSchemas: {
|
|
|
2079
2666
|
linked_tpsl_order_ids: bigint[];
|
|
2080
2667
|
}>>, Map<bigint, {
|
|
2081
2668
|
side: "Bid" | "Ask";
|
|
2082
|
-
|
|
2669
|
+
market_id: number;
|
|
2083
2670
|
owner: string;
|
|
2084
2671
|
tpsl_order_id: bigint;
|
|
2085
2672
|
order_price: import("decimal.js").Decimal;
|
|
@@ -2093,7 +2680,7 @@ export declare const ResponseSchemas: {
|
|
|
2093
2680
|
linked_tpsl_order_ids: bigint[];
|
|
2094
2681
|
}>, Record<string, {
|
|
2095
2682
|
side: "Bid" | "Ask";
|
|
2096
|
-
|
|
2683
|
+
market_id: number;
|
|
2097
2684
|
owner: string;
|
|
2098
2685
|
tpsl_order_id: bigint;
|
|
2099
2686
|
order_price: string | number;
|
|
@@ -2109,7 +2696,7 @@ export declare const ResponseSchemas: {
|
|
|
2109
2696
|
}, "strip", z.ZodTypeAny, {
|
|
2110
2697
|
orders: Map<bigint, {
|
|
2111
2698
|
side: "Bid" | "Ask";
|
|
2112
|
-
|
|
2699
|
+
market_id: number;
|
|
2113
2700
|
order_id: bigint;
|
|
2114
2701
|
price: import("decimal.js").Decimal;
|
|
2115
2702
|
remaining_size: import("decimal.js").Decimal;
|
|
@@ -2131,7 +2718,7 @@ export declare const ResponseSchemas: {
|
|
|
2131
2718
|
user_selected_max_leverage: number;
|
|
2132
2719
|
tpsls: Map<bigint, {
|
|
2133
2720
|
side: "Bid" | "Ask";
|
|
2134
|
-
|
|
2721
|
+
market_id: number;
|
|
2135
2722
|
owner: string;
|
|
2136
2723
|
tpsl_order_id: bigint;
|
|
2137
2724
|
order_price: import("decimal.js").Decimal;
|
|
@@ -2147,7 +2734,7 @@ export declare const ResponseSchemas: {
|
|
|
2147
2734
|
}, {
|
|
2148
2735
|
orders: Record<string, {
|
|
2149
2736
|
side: "Bid" | "Ask";
|
|
2150
|
-
|
|
2737
|
+
market_id: number;
|
|
2151
2738
|
order_id: bigint;
|
|
2152
2739
|
price: string | number;
|
|
2153
2740
|
remaining_size: string | number;
|
|
@@ -2169,7 +2756,7 @@ export declare const ResponseSchemas: {
|
|
|
2169
2756
|
user_selected_max_leverage: number;
|
|
2170
2757
|
tpsls: Record<string, {
|
|
2171
2758
|
side: "Bid" | "Ask";
|
|
2172
|
-
|
|
2759
|
+
market_id: number;
|
|
2173
2760
|
owner: string;
|
|
2174
2761
|
tpsl_order_id: bigint;
|
|
2175
2762
|
order_price: string | number;
|
|
@@ -2185,7 +2772,7 @@ export declare const ResponseSchemas: {
|
|
|
2185
2772
|
}>>, Map<number, {
|
|
2186
2773
|
orders: Map<bigint, {
|
|
2187
2774
|
side: "Bid" | "Ask";
|
|
2188
|
-
|
|
2775
|
+
market_id: number;
|
|
2189
2776
|
order_id: bigint;
|
|
2190
2777
|
price: import("decimal.js").Decimal;
|
|
2191
2778
|
remaining_size: import("decimal.js").Decimal;
|
|
@@ -2207,7 +2794,7 @@ export declare const ResponseSchemas: {
|
|
|
2207
2794
|
user_selected_max_leverage: number;
|
|
2208
2795
|
tpsls: Map<bigint, {
|
|
2209
2796
|
side: "Bid" | "Ask";
|
|
2210
|
-
|
|
2797
|
+
market_id: number;
|
|
2211
2798
|
owner: string;
|
|
2212
2799
|
tpsl_order_id: bigint;
|
|
2213
2800
|
order_price: import("decimal.js").Decimal;
|
|
@@ -2223,7 +2810,7 @@ export declare const ResponseSchemas: {
|
|
|
2223
2810
|
}>, Record<string, {
|
|
2224
2811
|
orders: Record<string, {
|
|
2225
2812
|
side: "Bid" | "Ask";
|
|
2226
|
-
|
|
2813
|
+
market_id: number;
|
|
2227
2814
|
order_id: bigint;
|
|
2228
2815
|
price: string | number;
|
|
2229
2816
|
remaining_size: string | number;
|
|
@@ -2245,7 +2832,7 @@ export declare const ResponseSchemas: {
|
|
|
2245
2832
|
user_selected_max_leverage: number;
|
|
2246
2833
|
tpsls: Record<string, {
|
|
2247
2834
|
side: "Bid" | "Ask";
|
|
2248
|
-
|
|
2835
|
+
market_id: number;
|
|
2249
2836
|
owner: string;
|
|
2250
2837
|
tpsl_order_id: bigint;
|
|
2251
2838
|
order_price: string | number;
|
|
@@ -2286,7 +2873,7 @@ export declare const ResponseSchemas: {
|
|
|
2286
2873
|
perp_ledgers: Map<number, {
|
|
2287
2874
|
orders: Map<bigint, {
|
|
2288
2875
|
side: "Bid" | "Ask";
|
|
2289
|
-
|
|
2876
|
+
market_id: number;
|
|
2290
2877
|
order_id: bigint;
|
|
2291
2878
|
price: import("decimal.js").Decimal;
|
|
2292
2879
|
remaining_size: import("decimal.js").Decimal;
|
|
@@ -2308,7 +2895,7 @@ export declare const ResponseSchemas: {
|
|
|
2308
2895
|
user_selected_max_leverage: number;
|
|
2309
2896
|
tpsls: Map<bigint, {
|
|
2310
2897
|
side: "Bid" | "Ask";
|
|
2311
|
-
|
|
2898
|
+
market_id: number;
|
|
2312
2899
|
owner: string;
|
|
2313
2900
|
tpsl_order_id: bigint;
|
|
2314
2901
|
order_price: import("decimal.js").Decimal;
|
|
@@ -2349,7 +2936,7 @@ export declare const ResponseSchemas: {
|
|
|
2349
2936
|
perp_ledgers: Record<string, {
|
|
2350
2937
|
orders: Record<string, {
|
|
2351
2938
|
side: "Bid" | "Ask";
|
|
2352
|
-
|
|
2939
|
+
market_id: number;
|
|
2353
2940
|
order_id: bigint;
|
|
2354
2941
|
price: string | number;
|
|
2355
2942
|
remaining_size: string | number;
|
|
@@ -2371,7 +2958,7 @@ export declare const ResponseSchemas: {
|
|
|
2371
2958
|
user_selected_max_leverage: number;
|
|
2372
2959
|
tpsls: Record<string, {
|
|
2373
2960
|
side: "Bid" | "Ask";
|
|
2374
|
-
|
|
2961
|
+
market_id: number;
|
|
2375
2962
|
owner: string;
|
|
2376
2963
|
tpsl_order_id: bigint;
|
|
2377
2964
|
order_price: string | number;
|
|
@@ -2415,7 +3002,7 @@ export declare const ResponseSchemas: {
|
|
|
2415
3002
|
perp_ledgers: Map<number, {
|
|
2416
3003
|
orders: Map<bigint, {
|
|
2417
3004
|
side: "Bid" | "Ask";
|
|
2418
|
-
|
|
3005
|
+
market_id: number;
|
|
2419
3006
|
order_id: bigint;
|
|
2420
3007
|
price: import("decimal.js").Decimal;
|
|
2421
3008
|
remaining_size: import("decimal.js").Decimal;
|
|
@@ -2437,7 +3024,7 @@ export declare const ResponseSchemas: {
|
|
|
2437
3024
|
user_selected_max_leverage: number;
|
|
2438
3025
|
tpsls: Map<bigint, {
|
|
2439
3026
|
side: "Bid" | "Ask";
|
|
2440
|
-
|
|
3027
|
+
market_id: number;
|
|
2441
3028
|
owner: string;
|
|
2442
3029
|
tpsl_order_id: bigint;
|
|
2443
3030
|
order_price: import("decimal.js").Decimal;
|
|
@@ -2481,7 +3068,7 @@ export declare const ResponseSchemas: {
|
|
|
2481
3068
|
perp_ledgers: Record<string, {
|
|
2482
3069
|
orders: Record<string, {
|
|
2483
3070
|
side: "Bid" | "Ask";
|
|
2484
|
-
|
|
3071
|
+
market_id: number;
|
|
2485
3072
|
order_id: bigint;
|
|
2486
3073
|
price: string | number;
|
|
2487
3074
|
remaining_size: string | number;
|
|
@@ -2503,7 +3090,7 @@ export declare const ResponseSchemas: {
|
|
|
2503
3090
|
user_selected_max_leverage: number;
|
|
2504
3091
|
tpsls: Record<string, {
|
|
2505
3092
|
side: "Bid" | "Ask";
|
|
2506
|
-
|
|
3093
|
+
market_id: number;
|
|
2507
3094
|
owner: string;
|
|
2508
3095
|
tpsl_order_id: bigint;
|
|
2509
3096
|
order_price: string | number;
|
|
@@ -2550,7 +3137,7 @@ export declare const ResponseSchemas: {
|
|
|
2550
3137
|
perp_ledgers: Map<number, {
|
|
2551
3138
|
orders: Map<bigint, {
|
|
2552
3139
|
side: "Bid" | "Ask";
|
|
2553
|
-
|
|
3140
|
+
market_id: number;
|
|
2554
3141
|
order_id: bigint;
|
|
2555
3142
|
price: import("decimal.js").Decimal;
|
|
2556
3143
|
remaining_size: import("decimal.js").Decimal;
|
|
@@ -2572,7 +3159,7 @@ export declare const ResponseSchemas: {
|
|
|
2572
3159
|
user_selected_max_leverage: number;
|
|
2573
3160
|
tpsls: Map<bigint, {
|
|
2574
3161
|
side: "Bid" | "Ask";
|
|
2575
|
-
|
|
3162
|
+
market_id: number;
|
|
2576
3163
|
owner: string;
|
|
2577
3164
|
tpsl_order_id: bigint;
|
|
2578
3165
|
order_price: import("decimal.js").Decimal;
|
|
@@ -2619,7 +3206,7 @@ export declare const ResponseSchemas: {
|
|
|
2619
3206
|
perp_ledgers: Record<string, {
|
|
2620
3207
|
orders: Record<string, {
|
|
2621
3208
|
side: "Bid" | "Ask";
|
|
2622
|
-
|
|
3209
|
+
market_id: number;
|
|
2623
3210
|
order_id: bigint;
|
|
2624
3211
|
price: string | number;
|
|
2625
3212
|
remaining_size: string | number;
|
|
@@ -2641,7 +3228,7 @@ export declare const ResponseSchemas: {
|
|
|
2641
3228
|
user_selected_max_leverage: number;
|
|
2642
3229
|
tpsls: Record<string, {
|
|
2643
3230
|
side: "Bid" | "Ask";
|
|
2644
|
-
|
|
3231
|
+
market_id: number;
|
|
2645
3232
|
owner: string;
|
|
2646
3233
|
tpsl_order_id: bigint;
|
|
2647
3234
|
order_price: string | number;
|
|
@@ -2776,7 +3363,7 @@ export declare const ResponseSchemas: {
|
|
|
2776
3363
|
perp_ledgers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2777
3364
|
orders: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2778
3365
|
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
2779
|
-
|
|
3366
|
+
market_id: z.ZodNumber;
|
|
2780
3367
|
order_id: z.ZodBigInt;
|
|
2781
3368
|
price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2782
3369
|
remaining_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -2787,7 +3374,7 @@ export declare const ResponseSchemas: {
|
|
|
2787
3374
|
tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
2788
3375
|
}, "strip", z.ZodTypeAny, {
|
|
2789
3376
|
side: "Bid" | "Ask";
|
|
2790
|
-
|
|
3377
|
+
market_id: number;
|
|
2791
3378
|
order_id: bigint;
|
|
2792
3379
|
price: import("decimal.js").Decimal;
|
|
2793
3380
|
remaining_size: import("decimal.js").Decimal;
|
|
@@ -2798,7 +3385,7 @@ export declare const ResponseSchemas: {
|
|
|
2798
3385
|
tpsl_order_ids: bigint[];
|
|
2799
3386
|
}, {
|
|
2800
3387
|
side: "Bid" | "Ask";
|
|
2801
|
-
|
|
3388
|
+
market_id: number;
|
|
2802
3389
|
order_id: bigint;
|
|
2803
3390
|
price: string | number;
|
|
2804
3391
|
remaining_size: string | number;
|
|
@@ -2809,7 +3396,7 @@ export declare const ResponseSchemas: {
|
|
|
2809
3396
|
tpsl_order_ids: bigint[];
|
|
2810
3397
|
}>>, Map<bigint, {
|
|
2811
3398
|
side: "Bid" | "Ask";
|
|
2812
|
-
|
|
3399
|
+
market_id: number;
|
|
2813
3400
|
order_id: bigint;
|
|
2814
3401
|
price: import("decimal.js").Decimal;
|
|
2815
3402
|
remaining_size: import("decimal.js").Decimal;
|
|
@@ -2820,7 +3407,7 @@ export declare const ResponseSchemas: {
|
|
|
2820
3407
|
tpsl_order_ids: bigint[];
|
|
2821
3408
|
}>, Record<string, {
|
|
2822
3409
|
side: "Bid" | "Ask";
|
|
2823
|
-
|
|
3410
|
+
market_id: number;
|
|
2824
3411
|
order_id: bigint;
|
|
2825
3412
|
price: string | number;
|
|
2826
3413
|
remaining_size: string | number;
|
|
@@ -2858,7 +3445,7 @@ export declare const ResponseSchemas: {
|
|
|
2858
3445
|
user_selected_max_leverage: z.ZodNumber;
|
|
2859
3446
|
tpsls: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2860
3447
|
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
2861
|
-
|
|
3448
|
+
market_id: z.ZodNumber;
|
|
2862
3449
|
tpsl_order_id: z.ZodBigInt;
|
|
2863
3450
|
order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2864
3451
|
trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -2872,7 +3459,7 @@ export declare const ResponseSchemas: {
|
|
|
2872
3459
|
linked_tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
2873
3460
|
}, "strip", z.ZodTypeAny, {
|
|
2874
3461
|
side: "Bid" | "Ask";
|
|
2875
|
-
|
|
3462
|
+
market_id: number;
|
|
2876
3463
|
owner: string;
|
|
2877
3464
|
tpsl_order_id: bigint;
|
|
2878
3465
|
order_price: import("decimal.js").Decimal;
|
|
@@ -2886,7 +3473,7 @@ export declare const ResponseSchemas: {
|
|
|
2886
3473
|
linked_tpsl_order_ids: bigint[];
|
|
2887
3474
|
}, {
|
|
2888
3475
|
side: "Bid" | "Ask";
|
|
2889
|
-
|
|
3476
|
+
market_id: number;
|
|
2890
3477
|
owner: string;
|
|
2891
3478
|
tpsl_order_id: bigint;
|
|
2892
3479
|
order_price: string | number;
|
|
@@ -2900,7 +3487,7 @@ export declare const ResponseSchemas: {
|
|
|
2900
3487
|
linked_tpsl_order_ids: bigint[];
|
|
2901
3488
|
}>>, Map<bigint, {
|
|
2902
3489
|
side: "Bid" | "Ask";
|
|
2903
|
-
|
|
3490
|
+
market_id: number;
|
|
2904
3491
|
owner: string;
|
|
2905
3492
|
tpsl_order_id: bigint;
|
|
2906
3493
|
order_price: import("decimal.js").Decimal;
|
|
@@ -2914,7 +3501,7 @@ export declare const ResponseSchemas: {
|
|
|
2914
3501
|
linked_tpsl_order_ids: bigint[];
|
|
2915
3502
|
}>, Record<string, {
|
|
2916
3503
|
side: "Bid" | "Ask";
|
|
2917
|
-
|
|
3504
|
+
market_id: number;
|
|
2918
3505
|
owner: string;
|
|
2919
3506
|
tpsl_order_id: bigint;
|
|
2920
3507
|
order_price: string | number;
|
|
@@ -2930,7 +3517,7 @@ export declare const ResponseSchemas: {
|
|
|
2930
3517
|
}, "strip", z.ZodTypeAny, {
|
|
2931
3518
|
orders: Map<bigint, {
|
|
2932
3519
|
side: "Bid" | "Ask";
|
|
2933
|
-
|
|
3520
|
+
market_id: number;
|
|
2934
3521
|
order_id: bigint;
|
|
2935
3522
|
price: import("decimal.js").Decimal;
|
|
2936
3523
|
remaining_size: import("decimal.js").Decimal;
|
|
@@ -2952,7 +3539,7 @@ export declare const ResponseSchemas: {
|
|
|
2952
3539
|
user_selected_max_leverage: number;
|
|
2953
3540
|
tpsls: Map<bigint, {
|
|
2954
3541
|
side: "Bid" | "Ask";
|
|
2955
|
-
|
|
3542
|
+
market_id: number;
|
|
2956
3543
|
owner: string;
|
|
2957
3544
|
tpsl_order_id: bigint;
|
|
2958
3545
|
order_price: import("decimal.js").Decimal;
|
|
@@ -2968,7 +3555,7 @@ export declare const ResponseSchemas: {
|
|
|
2968
3555
|
}, {
|
|
2969
3556
|
orders: Record<string, {
|
|
2970
3557
|
side: "Bid" | "Ask";
|
|
2971
|
-
|
|
3558
|
+
market_id: number;
|
|
2972
3559
|
order_id: bigint;
|
|
2973
3560
|
price: string | number;
|
|
2974
3561
|
remaining_size: string | number;
|
|
@@ -2990,7 +3577,7 @@ export declare const ResponseSchemas: {
|
|
|
2990
3577
|
user_selected_max_leverage: number;
|
|
2991
3578
|
tpsls: Record<string, {
|
|
2992
3579
|
side: "Bid" | "Ask";
|
|
2993
|
-
|
|
3580
|
+
market_id: number;
|
|
2994
3581
|
owner: string;
|
|
2995
3582
|
tpsl_order_id: bigint;
|
|
2996
3583
|
order_price: string | number;
|
|
@@ -3006,7 +3593,7 @@ export declare const ResponseSchemas: {
|
|
|
3006
3593
|
}>>, Map<number, {
|
|
3007
3594
|
orders: Map<bigint, {
|
|
3008
3595
|
side: "Bid" | "Ask";
|
|
3009
|
-
|
|
3596
|
+
market_id: number;
|
|
3010
3597
|
order_id: bigint;
|
|
3011
3598
|
price: import("decimal.js").Decimal;
|
|
3012
3599
|
remaining_size: import("decimal.js").Decimal;
|
|
@@ -3028,7 +3615,7 @@ export declare const ResponseSchemas: {
|
|
|
3028
3615
|
user_selected_max_leverage: number;
|
|
3029
3616
|
tpsls: Map<bigint, {
|
|
3030
3617
|
side: "Bid" | "Ask";
|
|
3031
|
-
|
|
3618
|
+
market_id: number;
|
|
3032
3619
|
owner: string;
|
|
3033
3620
|
tpsl_order_id: bigint;
|
|
3034
3621
|
order_price: import("decimal.js").Decimal;
|
|
@@ -3044,7 +3631,7 @@ export declare const ResponseSchemas: {
|
|
|
3044
3631
|
}>, Record<string, {
|
|
3045
3632
|
orders: Record<string, {
|
|
3046
3633
|
side: "Bid" | "Ask";
|
|
3047
|
-
|
|
3634
|
+
market_id: number;
|
|
3048
3635
|
order_id: bigint;
|
|
3049
3636
|
price: string | number;
|
|
3050
3637
|
remaining_size: string | number;
|
|
@@ -3066,7 +3653,7 @@ export declare const ResponseSchemas: {
|
|
|
3066
3653
|
user_selected_max_leverage: number;
|
|
3067
3654
|
tpsls: Record<string, {
|
|
3068
3655
|
side: "Bid" | "Ask";
|
|
3069
|
-
|
|
3656
|
+
market_id: number;
|
|
3070
3657
|
owner: string;
|
|
3071
3658
|
tpsl_order_id: bigint;
|
|
3072
3659
|
order_price: string | number;
|
|
@@ -3107,7 +3694,7 @@ export declare const ResponseSchemas: {
|
|
|
3107
3694
|
perp_ledgers: Map<number, {
|
|
3108
3695
|
orders: Map<bigint, {
|
|
3109
3696
|
side: "Bid" | "Ask";
|
|
3110
|
-
|
|
3697
|
+
market_id: number;
|
|
3111
3698
|
order_id: bigint;
|
|
3112
3699
|
price: import("decimal.js").Decimal;
|
|
3113
3700
|
remaining_size: import("decimal.js").Decimal;
|
|
@@ -3129,7 +3716,7 @@ export declare const ResponseSchemas: {
|
|
|
3129
3716
|
user_selected_max_leverage: number;
|
|
3130
3717
|
tpsls: Map<bigint, {
|
|
3131
3718
|
side: "Bid" | "Ask";
|
|
3132
|
-
|
|
3719
|
+
market_id: number;
|
|
3133
3720
|
owner: string;
|
|
3134
3721
|
tpsl_order_id: bigint;
|
|
3135
3722
|
order_price: import("decimal.js").Decimal;
|
|
@@ -3170,7 +3757,7 @@ export declare const ResponseSchemas: {
|
|
|
3170
3757
|
perp_ledgers: Record<string, {
|
|
3171
3758
|
orders: Record<string, {
|
|
3172
3759
|
side: "Bid" | "Ask";
|
|
3173
|
-
|
|
3760
|
+
market_id: number;
|
|
3174
3761
|
order_id: bigint;
|
|
3175
3762
|
price: string | number;
|
|
3176
3763
|
remaining_size: string | number;
|
|
@@ -3192,7 +3779,7 @@ export declare const ResponseSchemas: {
|
|
|
3192
3779
|
user_selected_max_leverage: number;
|
|
3193
3780
|
tpsls: Record<string, {
|
|
3194
3781
|
side: "Bid" | "Ask";
|
|
3195
|
-
|
|
3782
|
+
market_id: number;
|
|
3196
3783
|
owner: string;
|
|
3197
3784
|
tpsl_order_id: bigint;
|
|
3198
3785
|
order_price: string | number;
|
|
@@ -3233,7 +3820,7 @@ export declare const ResponseSchemas: {
|
|
|
3233
3820
|
perp_ledgers: Map<number, {
|
|
3234
3821
|
orders: Map<bigint, {
|
|
3235
3822
|
side: "Bid" | "Ask";
|
|
3236
|
-
|
|
3823
|
+
market_id: number;
|
|
3237
3824
|
order_id: bigint;
|
|
3238
3825
|
price: import("decimal.js").Decimal;
|
|
3239
3826
|
remaining_size: import("decimal.js").Decimal;
|
|
@@ -3255,7 +3842,7 @@ export declare const ResponseSchemas: {
|
|
|
3255
3842
|
user_selected_max_leverage: number;
|
|
3256
3843
|
tpsls: Map<bigint, {
|
|
3257
3844
|
side: "Bid" | "Ask";
|
|
3258
|
-
|
|
3845
|
+
market_id: number;
|
|
3259
3846
|
owner: string;
|
|
3260
3847
|
tpsl_order_id: bigint;
|
|
3261
3848
|
order_price: import("decimal.js").Decimal;
|
|
@@ -3296,7 +3883,7 @@ export declare const ResponseSchemas: {
|
|
|
3296
3883
|
perp_ledgers: Record<string, {
|
|
3297
3884
|
orders: Record<string, {
|
|
3298
3885
|
side: "Bid" | "Ask";
|
|
3299
|
-
|
|
3886
|
+
market_id: number;
|
|
3300
3887
|
order_id: bigint;
|
|
3301
3888
|
price: string | number;
|
|
3302
3889
|
remaining_size: string | number;
|
|
@@ -3318,7 +3905,7 @@ export declare const ResponseSchemas: {
|
|
|
3318
3905
|
user_selected_max_leverage: number;
|
|
3319
3906
|
tpsls: Record<string, {
|
|
3320
3907
|
side: "Bid" | "Ask";
|
|
3321
|
-
|
|
3908
|
+
market_id: number;
|
|
3322
3909
|
owner: string;
|
|
3323
3910
|
tpsl_order_id: bigint;
|
|
3324
3911
|
order_price: string | number;
|
|
@@ -3362,7 +3949,7 @@ export declare const ResponseSchemas: {
|
|
|
3362
3949
|
perp_ledgers: Map<number, {
|
|
3363
3950
|
orders: Map<bigint, {
|
|
3364
3951
|
side: "Bid" | "Ask";
|
|
3365
|
-
|
|
3952
|
+
market_id: number;
|
|
3366
3953
|
order_id: bigint;
|
|
3367
3954
|
price: import("decimal.js").Decimal;
|
|
3368
3955
|
remaining_size: import("decimal.js").Decimal;
|
|
@@ -3384,7 +3971,7 @@ export declare const ResponseSchemas: {
|
|
|
3384
3971
|
user_selected_max_leverage: number;
|
|
3385
3972
|
tpsls: Map<bigint, {
|
|
3386
3973
|
side: "Bid" | "Ask";
|
|
3387
|
-
|
|
3974
|
+
market_id: number;
|
|
3388
3975
|
owner: string;
|
|
3389
3976
|
tpsl_order_id: bigint;
|
|
3390
3977
|
order_price: import("decimal.js").Decimal;
|
|
@@ -3428,7 +4015,7 @@ export declare const ResponseSchemas: {
|
|
|
3428
4015
|
perp_ledgers: Record<string, {
|
|
3429
4016
|
orders: Record<string, {
|
|
3430
4017
|
side: "Bid" | "Ask";
|
|
3431
|
-
|
|
4018
|
+
market_id: number;
|
|
3432
4019
|
order_id: bigint;
|
|
3433
4020
|
price: string | number;
|
|
3434
4021
|
remaining_size: string | number;
|
|
@@ -3450,7 +4037,7 @@ export declare const ResponseSchemas: {
|
|
|
3450
4037
|
user_selected_max_leverage: number;
|
|
3451
4038
|
tpsls: Record<string, {
|
|
3452
4039
|
side: "Bid" | "Ask";
|
|
3453
|
-
|
|
4040
|
+
market_id: number;
|
|
3454
4041
|
owner: string;
|
|
3455
4042
|
tpsl_order_id: bigint;
|
|
3456
4043
|
order_price: string | number;
|
|
@@ -3497,7 +4084,7 @@ export declare const ResponseSchemas: {
|
|
|
3497
4084
|
perp_ledgers: Map<number, {
|
|
3498
4085
|
orders: Map<bigint, {
|
|
3499
4086
|
side: "Bid" | "Ask";
|
|
3500
|
-
|
|
4087
|
+
market_id: number;
|
|
3501
4088
|
order_id: bigint;
|
|
3502
4089
|
price: import("decimal.js").Decimal;
|
|
3503
4090
|
remaining_size: import("decimal.js").Decimal;
|
|
@@ -3519,7 +4106,7 @@ export declare const ResponseSchemas: {
|
|
|
3519
4106
|
user_selected_max_leverage: number;
|
|
3520
4107
|
tpsls: Map<bigint, {
|
|
3521
4108
|
side: "Bid" | "Ask";
|
|
3522
|
-
|
|
4109
|
+
market_id: number;
|
|
3523
4110
|
owner: string;
|
|
3524
4111
|
tpsl_order_id: bigint;
|
|
3525
4112
|
order_price: import("decimal.js").Decimal;
|
|
@@ -3566,7 +4153,7 @@ export declare const ResponseSchemas: {
|
|
|
3566
4153
|
perp_ledgers: Record<string, {
|
|
3567
4154
|
orders: Record<string, {
|
|
3568
4155
|
side: "Bid" | "Ask";
|
|
3569
|
-
|
|
4156
|
+
market_id: number;
|
|
3570
4157
|
order_id: bigint;
|
|
3571
4158
|
price: string | number;
|
|
3572
4159
|
remaining_size: string | number;
|
|
@@ -3588,7 +4175,7 @@ export declare const ResponseSchemas: {
|
|
|
3588
4175
|
user_selected_max_leverage: number;
|
|
3589
4176
|
tpsls: Record<string, {
|
|
3590
4177
|
side: "Bid" | "Ask";
|
|
3591
|
-
|
|
4178
|
+
market_id: number;
|
|
3592
4179
|
owner: string;
|
|
3593
4180
|
tpsl_order_id: bigint;
|
|
3594
4181
|
order_price: string | number;
|
|
@@ -3607,15 +4194,12 @@ export declare const ResponseSchemas: {
|
|
|
3607
4194
|
};
|
|
3608
4195
|
meta: Record<string, unknown> | null;
|
|
3609
4196
|
}>;
|
|
3610
|
-
readonly
|
|
4197
|
+
readonly BorrowLendMarkets: z.ZodObject<{
|
|
3611
4198
|
data: z.ZodObject<{
|
|
3612
|
-
|
|
3613
|
-
market: z.ZodObject<{
|
|
4199
|
+
value: z.ZodNullable<z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3614
4200
|
asset_id: z.ZodNumber;
|
|
3615
|
-
token_id: z.ZodString;
|
|
3616
4201
|
is_active: z.ZodBoolean;
|
|
3617
4202
|
last_update_timestamp: z.ZodBigInt;
|
|
3618
|
-
decimals: z.ZodNumber;
|
|
3619
4203
|
risk_params: z.ZodObject<{
|
|
3620
4204
|
weights: z.ZodObject<{
|
|
3621
4205
|
asset_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -3677,11 +4261,9 @@ export declare const ResponseSchemas: {
|
|
|
3677
4261
|
cumulative_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3678
4262
|
accumulated_protocol_fees: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3679
4263
|
}, "strip", z.ZodTypeAny, {
|
|
3680
|
-
token_id: string;
|
|
3681
|
-
asset_id: number;
|
|
3682
4264
|
last_update_timestamp: bigint;
|
|
4265
|
+
asset_id: number;
|
|
3683
4266
|
is_active: boolean;
|
|
3684
|
-
decimals: number;
|
|
3685
4267
|
risk_params: {
|
|
3686
4268
|
weights: {
|
|
3687
4269
|
asset_weight: import("decimal.js").Decimal;
|
|
@@ -3705,11 +4287,9 @@ export declare const ResponseSchemas: {
|
|
|
3705
4287
|
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
3706
4288
|
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
3707
4289
|
}, {
|
|
3708
|
-
token_id: string;
|
|
3709
|
-
asset_id: number;
|
|
3710
4290
|
last_update_timestamp: bigint;
|
|
4291
|
+
asset_id: number;
|
|
3711
4292
|
is_active: boolean;
|
|
3712
|
-
decimals: number;
|
|
3713
4293
|
risk_params: {
|
|
3714
4294
|
weights: {
|
|
3715
4295
|
asset_weight: string | number;
|
|
@@ -3732,15 +4312,10 @@ export declare const ResponseSchemas: {
|
|
|
3732
4312
|
cumulative_deposit_rate: string | number;
|
|
3733
4313
|
cumulative_borrow_rate: string | number;
|
|
3734
4314
|
accumulated_protocol_fees: string | number;
|
|
3735
|
-
}
|
|
3736
|
-
}, "strip", z.ZodTypeAny, {
|
|
3737
|
-
asset_id: number;
|
|
3738
|
-
market: {
|
|
3739
|
-
token_id: string;
|
|
3740
|
-
asset_id: number;
|
|
4315
|
+
}>>, Map<number, {
|
|
3741
4316
|
last_update_timestamp: bigint;
|
|
4317
|
+
asset_id: number;
|
|
3742
4318
|
is_active: boolean;
|
|
3743
|
-
decimals: number;
|
|
3744
4319
|
risk_params: {
|
|
3745
4320
|
weights: {
|
|
3746
4321
|
asset_weight: import("decimal.js").Decimal;
|
|
@@ -3763,15 +4338,10 @@ export declare const ResponseSchemas: {
|
|
|
3763
4338
|
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
3764
4339
|
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
3765
4340
|
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
3766
|
-
}
|
|
3767
|
-
}, {
|
|
3768
|
-
asset_id: number;
|
|
3769
|
-
market: {
|
|
3770
|
-
token_id: string;
|
|
3771
|
-
asset_id: number;
|
|
4341
|
+
}>, Record<string, {
|
|
3772
4342
|
last_update_timestamp: bigint;
|
|
4343
|
+
asset_id: number;
|
|
3773
4344
|
is_active: boolean;
|
|
3774
|
-
decimals: number;
|
|
3775
4345
|
risk_params: {
|
|
3776
4346
|
weights: {
|
|
3777
4347
|
asset_weight: string | number;
|
|
@@ -3794,18 +4364,12 @@ export declare const ResponseSchemas: {
|
|
|
3794
4364
|
cumulative_deposit_rate: string | number;
|
|
3795
4365
|
cumulative_borrow_rate: string | number;
|
|
3796
4366
|
accumulated_protocol_fees: string | number;
|
|
3797
|
-
}
|
|
3798
|
-
}
|
|
3799
|
-
|
|
3800
|
-
}, "strip", z.ZodTypeAny, {
|
|
3801
|
-
data: {
|
|
3802
|
-
asset_id: number;
|
|
3803
|
-
market: {
|
|
3804
|
-
token_id: string;
|
|
3805
|
-
asset_id: number;
|
|
4367
|
+
}>>>>;
|
|
4368
|
+
}, "strip", z.ZodTypeAny, {
|
|
4369
|
+
value: Map<number, {
|
|
3806
4370
|
last_update_timestamp: bigint;
|
|
4371
|
+
asset_id: number;
|
|
3807
4372
|
is_active: boolean;
|
|
3808
|
-
decimals: number;
|
|
3809
4373
|
risk_params: {
|
|
3810
4374
|
weights: {
|
|
3811
4375
|
asset_weight: import("decimal.js").Decimal;
|
|
@@ -3828,18 +4392,12 @@ export declare const ResponseSchemas: {
|
|
|
3828
4392
|
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
3829
4393
|
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
3830
4394
|
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
3831
|
-
};
|
|
3832
|
-
}
|
|
3833
|
-
|
|
3834
|
-
}, {
|
|
3835
|
-
data: {
|
|
3836
|
-
asset_id: number;
|
|
3837
|
-
market: {
|
|
3838
|
-
token_id: string;
|
|
3839
|
-
asset_id: number;
|
|
4395
|
+
}> | null;
|
|
4396
|
+
}, {
|
|
4397
|
+
value: Record<string, {
|
|
3840
4398
|
last_update_timestamp: bigint;
|
|
4399
|
+
asset_id: number;
|
|
3841
4400
|
is_active: boolean;
|
|
3842
|
-
decimals: number;
|
|
3843
4401
|
risk_params: {
|
|
3844
4402
|
weights: {
|
|
3845
4403
|
asset_weight: string | number;
|
|
@@ -3862,37 +4420,16 @@ export declare const ResponseSchemas: {
|
|
|
3862
4420
|
cumulative_deposit_rate: string | number;
|
|
3863
4421
|
cumulative_borrow_rate: string | number;
|
|
3864
4422
|
accumulated_protocol_fees: string | number;
|
|
3865
|
-
};
|
|
3866
|
-
}
|
|
3867
|
-
meta: Record<string, unknown
|
|
3868
|
-
}
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
asset_id:
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
last_update_timestamp: z.ZodBigInt;
|
|
3876
|
-
decimals: z.ZodNumber;
|
|
3877
|
-
risk_params: z.ZodObject<{
|
|
3878
|
-
weights: z.ZodObject<{
|
|
3879
|
-
asset_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3880
|
-
initial_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3881
|
-
maintenance_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3882
|
-
}, "strip", z.ZodTypeAny, {
|
|
3883
|
-
asset_weight: import("decimal.js").Decimal;
|
|
3884
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
3885
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3886
|
-
}, {
|
|
3887
|
-
asset_weight: string | number;
|
|
3888
|
-
initial_liability_weight: string | number;
|
|
3889
|
-
maintenance_liability_weight: string | number;
|
|
3890
|
-
}>;
|
|
3891
|
-
deposit_limit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3892
|
-
borrow_limit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3893
|
-
liquidation_reward_ratio: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3894
|
-
liability_liquidation_limit_ratio: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3895
|
-
}, "strip", z.ZodTypeAny, {
|
|
4423
|
+
}> | null;
|
|
4424
|
+
}>;
|
|
4425
|
+
meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
|
|
4426
|
+
}, "strip", z.ZodTypeAny, {
|
|
4427
|
+
data: {
|
|
4428
|
+
value: Map<number, {
|
|
4429
|
+
last_update_timestamp: bigint;
|
|
4430
|
+
asset_id: number;
|
|
4431
|
+
is_active: boolean;
|
|
4432
|
+
risk_params: {
|
|
3896
4433
|
weights: {
|
|
3897
4434
|
asset_weight: import("decimal.js").Decimal;
|
|
3898
4435
|
initial_liability_weight: import("decimal.js").Decimal;
|
|
@@ -3902,7 +4439,28 @@ export declare const ResponseSchemas: {
|
|
|
3902
4439
|
borrow_limit: import("decimal.js").Decimal;
|
|
3903
4440
|
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
3904
4441
|
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
3905
|
-
}
|
|
4442
|
+
};
|
|
4443
|
+
rate_params: {
|
|
4444
|
+
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
4445
|
+
min_borrow_rate: import("decimal.js").Decimal;
|
|
4446
|
+
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
4447
|
+
max_borrow_rate: import("decimal.js").Decimal;
|
|
4448
|
+
};
|
|
4449
|
+
available_amount: import("decimal.js").Decimal;
|
|
4450
|
+
borrowed_amount: import("decimal.js").Decimal;
|
|
4451
|
+
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
4452
|
+
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
4453
|
+
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
4454
|
+
}> | null;
|
|
4455
|
+
};
|
|
4456
|
+
meta: Map<unknown, unknown> | null;
|
|
4457
|
+
}, {
|
|
4458
|
+
data: {
|
|
4459
|
+
value: Record<string, {
|
|
4460
|
+
last_update_timestamp: bigint;
|
|
4461
|
+
asset_id: number;
|
|
4462
|
+
is_active: boolean;
|
|
4463
|
+
risk_params: {
|
|
3906
4464
|
weights: {
|
|
3907
4465
|
asset_weight: string | number;
|
|
3908
4466
|
initial_liability_weight: string | number;
|
|
@@ -3912,130 +4470,8 @@ export declare const ResponseSchemas: {
|
|
|
3912
4470
|
borrow_limit: string | number;
|
|
3913
4471
|
liquidation_reward_ratio: string | number;
|
|
3914
4472
|
liability_liquidation_limit_ratio: string | number;
|
|
3915
|
-
}
|
|
3916
|
-
rate_params:
|
|
3917
|
-
optimal_utilisation_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3918
|
-
min_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3919
|
-
optimal_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3920
|
-
max_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3921
|
-
}, "strip", z.ZodTypeAny, {
|
|
3922
|
-
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
3923
|
-
min_borrow_rate: import("decimal.js").Decimal;
|
|
3924
|
-
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
3925
|
-
max_borrow_rate: import("decimal.js").Decimal;
|
|
3926
|
-
}, {
|
|
3927
|
-
optimal_utilisation_rate: string | number;
|
|
3928
|
-
min_borrow_rate: string | number;
|
|
3929
|
-
optimal_borrow_rate: string | number;
|
|
3930
|
-
max_borrow_rate: string | number;
|
|
3931
|
-
}>;
|
|
3932
|
-
available_amount: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3933
|
-
borrowed_amount: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3934
|
-
cumulative_deposit_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3935
|
-
cumulative_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3936
|
-
accumulated_protocol_fees: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3937
|
-
}, "strip", z.ZodTypeAny, {
|
|
3938
|
-
token_id: string;
|
|
3939
|
-
asset_id: number;
|
|
3940
|
-
last_update_timestamp: bigint;
|
|
3941
|
-
is_active: boolean;
|
|
3942
|
-
decimals: number;
|
|
3943
|
-
risk_params: {
|
|
3944
|
-
weights: {
|
|
3945
|
-
asset_weight: import("decimal.js").Decimal;
|
|
3946
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
3947
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3948
|
-
};
|
|
3949
|
-
deposit_limit: import("decimal.js").Decimal;
|
|
3950
|
-
borrow_limit: import("decimal.js").Decimal;
|
|
3951
|
-
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
3952
|
-
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
3953
|
-
};
|
|
3954
|
-
rate_params: {
|
|
3955
|
-
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
3956
|
-
min_borrow_rate: import("decimal.js").Decimal;
|
|
3957
|
-
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
3958
|
-
max_borrow_rate: import("decimal.js").Decimal;
|
|
3959
|
-
};
|
|
3960
|
-
available_amount: import("decimal.js").Decimal;
|
|
3961
|
-
borrowed_amount: import("decimal.js").Decimal;
|
|
3962
|
-
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
3963
|
-
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
3964
|
-
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
3965
|
-
}, {
|
|
3966
|
-
token_id: string;
|
|
3967
|
-
asset_id: number;
|
|
3968
|
-
last_update_timestamp: bigint;
|
|
3969
|
-
is_active: boolean;
|
|
3970
|
-
decimals: number;
|
|
3971
|
-
risk_params: {
|
|
3972
|
-
weights: {
|
|
3973
|
-
asset_weight: string | number;
|
|
3974
|
-
initial_liability_weight: string | number;
|
|
3975
|
-
maintenance_liability_weight: string | number;
|
|
3976
|
-
};
|
|
3977
|
-
deposit_limit: string | number;
|
|
3978
|
-
borrow_limit: string | number;
|
|
3979
|
-
liquidation_reward_ratio: string | number;
|
|
3980
|
-
liability_liquidation_limit_ratio: string | number;
|
|
3981
|
-
};
|
|
3982
|
-
rate_params: {
|
|
3983
|
-
optimal_utilisation_rate: string | number;
|
|
3984
|
-
min_borrow_rate: string | number;
|
|
3985
|
-
optimal_borrow_rate: string | number;
|
|
3986
|
-
max_borrow_rate: string | number;
|
|
3987
|
-
};
|
|
3988
|
-
available_amount: string | number;
|
|
3989
|
-
borrowed_amount: string | number;
|
|
3990
|
-
cumulative_deposit_rate: string | number;
|
|
3991
|
-
cumulative_borrow_rate: string | number;
|
|
3992
|
-
accumulated_protocol_fees: string | number;
|
|
3993
|
-
}>>, Map<number, {
|
|
3994
|
-
token_id: string;
|
|
3995
|
-
asset_id: number;
|
|
3996
|
-
last_update_timestamp: bigint;
|
|
3997
|
-
is_active: boolean;
|
|
3998
|
-
decimals: number;
|
|
3999
|
-
risk_params: {
|
|
4000
|
-
weights: {
|
|
4001
|
-
asset_weight: import("decimal.js").Decimal;
|
|
4002
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
4003
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
4004
|
-
};
|
|
4005
|
-
deposit_limit: import("decimal.js").Decimal;
|
|
4006
|
-
borrow_limit: import("decimal.js").Decimal;
|
|
4007
|
-
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
4008
|
-
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
4009
|
-
};
|
|
4010
|
-
rate_params: {
|
|
4011
|
-
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
4012
|
-
min_borrow_rate: import("decimal.js").Decimal;
|
|
4013
|
-
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
4014
|
-
max_borrow_rate: import("decimal.js").Decimal;
|
|
4015
|
-
};
|
|
4016
|
-
available_amount: import("decimal.js").Decimal;
|
|
4017
|
-
borrowed_amount: import("decimal.js").Decimal;
|
|
4018
|
-
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
4019
|
-
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
4020
|
-
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
4021
|
-
}>, Record<string, {
|
|
4022
|
-
token_id: string;
|
|
4023
|
-
asset_id: number;
|
|
4024
|
-
last_update_timestamp: bigint;
|
|
4025
|
-
is_active: boolean;
|
|
4026
|
-
decimals: number;
|
|
4027
|
-
risk_params: {
|
|
4028
|
-
weights: {
|
|
4029
|
-
asset_weight: string | number;
|
|
4030
|
-
initial_liability_weight: string | number;
|
|
4031
|
-
maintenance_liability_weight: string | number;
|
|
4032
|
-
};
|
|
4033
|
-
deposit_limit: string | number;
|
|
4034
|
-
borrow_limit: string | number;
|
|
4035
|
-
liquidation_reward_ratio: string | number;
|
|
4036
|
-
liability_liquidation_limit_ratio: string | number;
|
|
4037
|
-
};
|
|
4038
|
-
rate_params: {
|
|
4473
|
+
};
|
|
4474
|
+
rate_params: {
|
|
4039
4475
|
optimal_utilisation_rate: string | number;
|
|
4040
4476
|
min_borrow_rate: string | number;
|
|
4041
4477
|
optimal_borrow_rate: string | number;
|
|
@@ -4046,150 +4482,19 @@ export declare const ResponseSchemas: {
|
|
|
4046
4482
|
cumulative_deposit_rate: string | number;
|
|
4047
4483
|
cumulative_borrow_rate: string | number;
|
|
4048
4484
|
accumulated_protocol_fees: string | number;
|
|
4049
|
-
}
|
|
4050
|
-
not_found: z.ZodArray<z.ZodNumber, "many">;
|
|
4051
|
-
}, "strip", z.ZodTypeAny, {
|
|
4052
|
-
found: Map<number, {
|
|
4053
|
-
token_id: string;
|
|
4054
|
-
asset_id: number;
|
|
4055
|
-
last_update_timestamp: bigint;
|
|
4056
|
-
is_active: boolean;
|
|
4057
|
-
decimals: number;
|
|
4058
|
-
risk_params: {
|
|
4059
|
-
weights: {
|
|
4060
|
-
asset_weight: import("decimal.js").Decimal;
|
|
4061
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
4062
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
4063
|
-
};
|
|
4064
|
-
deposit_limit: import("decimal.js").Decimal;
|
|
4065
|
-
borrow_limit: import("decimal.js").Decimal;
|
|
4066
|
-
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
4067
|
-
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
4068
|
-
};
|
|
4069
|
-
rate_params: {
|
|
4070
|
-
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
4071
|
-
min_borrow_rate: import("decimal.js").Decimal;
|
|
4072
|
-
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
4073
|
-
max_borrow_rate: import("decimal.js").Decimal;
|
|
4074
|
-
};
|
|
4075
|
-
available_amount: import("decimal.js").Decimal;
|
|
4076
|
-
borrowed_amount: import("decimal.js").Decimal;
|
|
4077
|
-
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
4078
|
-
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
4079
|
-
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
4080
|
-
}>;
|
|
4081
|
-
not_found: number[];
|
|
4082
|
-
}, {
|
|
4083
|
-
found: Record<string, {
|
|
4084
|
-
token_id: string;
|
|
4085
|
-
asset_id: number;
|
|
4086
|
-
last_update_timestamp: bigint;
|
|
4087
|
-
is_active: boolean;
|
|
4088
|
-
decimals: number;
|
|
4089
|
-
risk_params: {
|
|
4090
|
-
weights: {
|
|
4091
|
-
asset_weight: string | number;
|
|
4092
|
-
initial_liability_weight: string | number;
|
|
4093
|
-
maintenance_liability_weight: string | number;
|
|
4094
|
-
};
|
|
4095
|
-
deposit_limit: string | number;
|
|
4096
|
-
borrow_limit: string | number;
|
|
4097
|
-
liquidation_reward_ratio: string | number;
|
|
4098
|
-
liability_liquidation_limit_ratio: string | number;
|
|
4099
|
-
};
|
|
4100
|
-
rate_params: {
|
|
4101
|
-
optimal_utilisation_rate: string | number;
|
|
4102
|
-
min_borrow_rate: string | number;
|
|
4103
|
-
optimal_borrow_rate: string | number;
|
|
4104
|
-
max_borrow_rate: string | number;
|
|
4105
|
-
};
|
|
4106
|
-
available_amount: string | number;
|
|
4107
|
-
borrowed_amount: string | number;
|
|
4108
|
-
cumulative_deposit_rate: string | number;
|
|
4109
|
-
cumulative_borrow_rate: string | number;
|
|
4110
|
-
accumulated_protocol_fees: string | number;
|
|
4111
|
-
}>;
|
|
4112
|
-
not_found: number[];
|
|
4113
|
-
}>;
|
|
4114
|
-
meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
|
|
4115
|
-
}, "strip", z.ZodTypeAny, {
|
|
4116
|
-
data: {
|
|
4117
|
-
found: Map<number, {
|
|
4118
|
-
token_id: string;
|
|
4119
|
-
asset_id: number;
|
|
4120
|
-
last_update_timestamp: bigint;
|
|
4121
|
-
is_active: boolean;
|
|
4122
|
-
decimals: number;
|
|
4123
|
-
risk_params: {
|
|
4124
|
-
weights: {
|
|
4125
|
-
asset_weight: import("decimal.js").Decimal;
|
|
4126
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
4127
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
4128
|
-
};
|
|
4129
|
-
deposit_limit: import("decimal.js").Decimal;
|
|
4130
|
-
borrow_limit: import("decimal.js").Decimal;
|
|
4131
|
-
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
4132
|
-
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
4133
|
-
};
|
|
4134
|
-
rate_params: {
|
|
4135
|
-
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
4136
|
-
min_borrow_rate: import("decimal.js").Decimal;
|
|
4137
|
-
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
4138
|
-
max_borrow_rate: import("decimal.js").Decimal;
|
|
4139
|
-
};
|
|
4140
|
-
available_amount: import("decimal.js").Decimal;
|
|
4141
|
-
borrowed_amount: import("decimal.js").Decimal;
|
|
4142
|
-
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
4143
|
-
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
4144
|
-
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
4145
|
-
}>;
|
|
4146
|
-
not_found: number[];
|
|
4147
|
-
};
|
|
4148
|
-
meta: Map<unknown, unknown> | null;
|
|
4149
|
-
}, {
|
|
4150
|
-
data: {
|
|
4151
|
-
found: Record<string, {
|
|
4152
|
-
token_id: string;
|
|
4153
|
-
asset_id: number;
|
|
4154
|
-
last_update_timestamp: bigint;
|
|
4155
|
-
is_active: boolean;
|
|
4156
|
-
decimals: number;
|
|
4157
|
-
risk_params: {
|
|
4158
|
-
weights: {
|
|
4159
|
-
asset_weight: string | number;
|
|
4160
|
-
initial_liability_weight: string | number;
|
|
4161
|
-
maintenance_liability_weight: string | number;
|
|
4162
|
-
};
|
|
4163
|
-
deposit_limit: string | number;
|
|
4164
|
-
borrow_limit: string | number;
|
|
4165
|
-
liquidation_reward_ratio: string | number;
|
|
4166
|
-
liability_liquidation_limit_ratio: string | number;
|
|
4167
|
-
};
|
|
4168
|
-
rate_params: {
|
|
4169
|
-
optimal_utilisation_rate: string | number;
|
|
4170
|
-
min_borrow_rate: string | number;
|
|
4171
|
-
optimal_borrow_rate: string | number;
|
|
4172
|
-
max_borrow_rate: string | number;
|
|
4173
|
-
};
|
|
4174
|
-
available_amount: string | number;
|
|
4175
|
-
borrowed_amount: string | number;
|
|
4176
|
-
cumulative_deposit_rate: string | number;
|
|
4177
|
-
cumulative_borrow_rate: string | number;
|
|
4178
|
-
accumulated_protocol_fees: string | number;
|
|
4179
|
-
}>;
|
|
4180
|
-
not_found: number[];
|
|
4485
|
+
}> | null;
|
|
4181
4486
|
};
|
|
4182
4487
|
meta: Record<string, unknown> | null;
|
|
4183
4488
|
}>;
|
|
4184
4489
|
readonly PerpMarket: z.ZodObject<{
|
|
4185
4490
|
data: z.ZodObject<{
|
|
4186
|
-
|
|
4491
|
+
market_id: z.ZodNumber;
|
|
4187
4492
|
market: z.ZodObject<{
|
|
4188
|
-
|
|
4493
|
+
market_id: z.ZodNumber;
|
|
4189
4494
|
is_active: z.ZodBoolean;
|
|
4190
4495
|
min_tick_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4191
4496
|
min_lot_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4192
|
-
|
|
4497
|
+
funding_parameters: z.ZodObject<{
|
|
4193
4498
|
interest_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4194
4499
|
min_interest_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4195
4500
|
max_interest_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -4209,12 +4514,68 @@ export declare const ResponseSchemas: {
|
|
|
4209
4514
|
max_funding_rate_clamp: string | number;
|
|
4210
4515
|
}>;
|
|
4211
4516
|
impact_margin: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4517
|
+
orderbook: z.ZodObject<{
|
|
4518
|
+
market_id: z.ZodNumber;
|
|
4519
|
+
bids: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4520
|
+
order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
4521
|
+
total_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4522
|
+
}, "strip", z.ZodTypeAny, {
|
|
4523
|
+
order_ids: bigint[];
|
|
4524
|
+
total_size: import("decimal.js").Decimal;
|
|
4525
|
+
}, {
|
|
4526
|
+
order_ids: bigint[];
|
|
4527
|
+
total_size: string | number;
|
|
4528
|
+
}>>, Map<string, {
|
|
4529
|
+
order_ids: bigint[];
|
|
4530
|
+
total_size: import("decimal.js").Decimal;
|
|
4531
|
+
}>, Record<string, {
|
|
4532
|
+
order_ids: bigint[];
|
|
4533
|
+
total_size: string | number;
|
|
4534
|
+
}>>;
|
|
4535
|
+
asks: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4536
|
+
order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
4537
|
+
total_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4538
|
+
}, "strip", z.ZodTypeAny, {
|
|
4539
|
+
order_ids: bigint[];
|
|
4540
|
+
total_size: import("decimal.js").Decimal;
|
|
4541
|
+
}, {
|
|
4542
|
+
order_ids: bigint[];
|
|
4543
|
+
total_size: string | number;
|
|
4544
|
+
}>>, Map<string, {
|
|
4545
|
+
order_ids: bigint[];
|
|
4546
|
+
total_size: import("decimal.js").Decimal;
|
|
4547
|
+
}>, Record<string, {
|
|
4548
|
+
order_ids: bigint[];
|
|
4549
|
+
total_size: string | number;
|
|
4550
|
+
}>>;
|
|
4551
|
+
}, "strip", z.ZodTypeAny, {
|
|
4552
|
+
market_id: number;
|
|
4553
|
+
bids: Map<string, {
|
|
4554
|
+
order_ids: bigint[];
|
|
4555
|
+
total_size: import("decimal.js").Decimal;
|
|
4556
|
+
}>;
|
|
4557
|
+
asks: Map<string, {
|
|
4558
|
+
order_ids: bigint[];
|
|
4559
|
+
total_size: import("decimal.js").Decimal;
|
|
4560
|
+
}>;
|
|
4561
|
+
}, {
|
|
4562
|
+
market_id: number;
|
|
4563
|
+
bids: Record<string, {
|
|
4564
|
+
order_ids: bigint[];
|
|
4565
|
+
total_size: string | number;
|
|
4566
|
+
}>;
|
|
4567
|
+
asks: Record<string, {
|
|
4568
|
+
order_ids: bigint[];
|
|
4569
|
+
total_size: string | number;
|
|
4570
|
+
}>;
|
|
4571
|
+
}>;
|
|
4572
|
+
last_trade_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4212
4573
|
}, "strip", z.ZodTypeAny, {
|
|
4213
|
-
|
|
4574
|
+
market_id: number;
|
|
4214
4575
|
is_active: boolean;
|
|
4215
4576
|
min_tick_size: import("decimal.js").Decimal;
|
|
4216
4577
|
min_lot_size: import("decimal.js").Decimal;
|
|
4217
|
-
|
|
4578
|
+
funding_parameters: {
|
|
4218
4579
|
interest_rate: import("decimal.js").Decimal;
|
|
4219
4580
|
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4220
4581
|
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
@@ -4222,12 +4583,24 @@ export declare const ResponseSchemas: {
|
|
|
4222
4583
|
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4223
4584
|
};
|
|
4224
4585
|
impact_margin: import("decimal.js").Decimal;
|
|
4586
|
+
orderbook: {
|
|
4587
|
+
market_id: number;
|
|
4588
|
+
bids: Map<string, {
|
|
4589
|
+
order_ids: bigint[];
|
|
4590
|
+
total_size: import("decimal.js").Decimal;
|
|
4591
|
+
}>;
|
|
4592
|
+
asks: Map<string, {
|
|
4593
|
+
order_ids: bigint[];
|
|
4594
|
+
total_size: import("decimal.js").Decimal;
|
|
4595
|
+
}>;
|
|
4596
|
+
};
|
|
4597
|
+
last_trade_price: import("decimal.js").Decimal;
|
|
4225
4598
|
}, {
|
|
4226
|
-
|
|
4599
|
+
market_id: number;
|
|
4227
4600
|
is_active: boolean;
|
|
4228
4601
|
min_tick_size: string | number;
|
|
4229
4602
|
min_lot_size: string | number;
|
|
4230
|
-
|
|
4603
|
+
funding_parameters: {
|
|
4231
4604
|
interest_rate: string | number;
|
|
4232
4605
|
min_interest_rate_clamp: string | number;
|
|
4233
4606
|
max_interest_rate_clamp: string | number;
|
|
@@ -4235,15 +4608,27 @@ export declare const ResponseSchemas: {
|
|
|
4235
4608
|
max_funding_rate_clamp: string | number;
|
|
4236
4609
|
};
|
|
4237
4610
|
impact_margin: string | number;
|
|
4611
|
+
orderbook: {
|
|
4612
|
+
market_id: number;
|
|
4613
|
+
bids: Record<string, {
|
|
4614
|
+
order_ids: bigint[];
|
|
4615
|
+
total_size: string | number;
|
|
4616
|
+
}>;
|
|
4617
|
+
asks: Record<string, {
|
|
4618
|
+
order_ids: bigint[];
|
|
4619
|
+
total_size: string | number;
|
|
4620
|
+
}>;
|
|
4621
|
+
};
|
|
4622
|
+
last_trade_price: string | number;
|
|
4238
4623
|
}>;
|
|
4239
4624
|
}, "strip", z.ZodTypeAny, {
|
|
4240
|
-
|
|
4625
|
+
market_id: number;
|
|
4241
4626
|
market: {
|
|
4242
|
-
|
|
4627
|
+
market_id: number;
|
|
4243
4628
|
is_active: boolean;
|
|
4244
4629
|
min_tick_size: import("decimal.js").Decimal;
|
|
4245
4630
|
min_lot_size: import("decimal.js").Decimal;
|
|
4246
|
-
|
|
4631
|
+
funding_parameters: {
|
|
4247
4632
|
interest_rate: import("decimal.js").Decimal;
|
|
4248
4633
|
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4249
4634
|
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
@@ -4251,15 +4636,27 @@ export declare const ResponseSchemas: {
|
|
|
4251
4636
|
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4252
4637
|
};
|
|
4253
4638
|
impact_margin: import("decimal.js").Decimal;
|
|
4639
|
+
orderbook: {
|
|
4640
|
+
market_id: number;
|
|
4641
|
+
bids: Map<string, {
|
|
4642
|
+
order_ids: bigint[];
|
|
4643
|
+
total_size: import("decimal.js").Decimal;
|
|
4644
|
+
}>;
|
|
4645
|
+
asks: Map<string, {
|
|
4646
|
+
order_ids: bigint[];
|
|
4647
|
+
total_size: import("decimal.js").Decimal;
|
|
4648
|
+
}>;
|
|
4649
|
+
};
|
|
4650
|
+
last_trade_price: import("decimal.js").Decimal;
|
|
4254
4651
|
};
|
|
4255
4652
|
}, {
|
|
4256
|
-
|
|
4653
|
+
market_id: number;
|
|
4257
4654
|
market: {
|
|
4258
|
-
|
|
4655
|
+
market_id: number;
|
|
4259
4656
|
is_active: boolean;
|
|
4260
4657
|
min_tick_size: string | number;
|
|
4261
4658
|
min_lot_size: string | number;
|
|
4262
|
-
|
|
4659
|
+
funding_parameters: {
|
|
4263
4660
|
interest_rate: string | number;
|
|
4264
4661
|
min_interest_rate_clamp: string | number;
|
|
4265
4662
|
max_interest_rate_clamp: string | number;
|
|
@@ -4267,18 +4664,30 @@ export declare const ResponseSchemas: {
|
|
|
4267
4664
|
max_funding_rate_clamp: string | number;
|
|
4268
4665
|
};
|
|
4269
4666
|
impact_margin: string | number;
|
|
4667
|
+
orderbook: {
|
|
4668
|
+
market_id: number;
|
|
4669
|
+
bids: Record<string, {
|
|
4670
|
+
order_ids: bigint[];
|
|
4671
|
+
total_size: string | number;
|
|
4672
|
+
}>;
|
|
4673
|
+
asks: Record<string, {
|
|
4674
|
+
order_ids: bigint[];
|
|
4675
|
+
total_size: string | number;
|
|
4676
|
+
}>;
|
|
4677
|
+
};
|
|
4678
|
+
last_trade_price: string | number;
|
|
4270
4679
|
};
|
|
4271
4680
|
}>;
|
|
4272
4681
|
meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
|
|
4273
4682
|
}, "strip", z.ZodTypeAny, {
|
|
4274
4683
|
data: {
|
|
4275
|
-
|
|
4684
|
+
market_id: number;
|
|
4276
4685
|
market: {
|
|
4277
|
-
|
|
4686
|
+
market_id: number;
|
|
4278
4687
|
is_active: boolean;
|
|
4279
4688
|
min_tick_size: import("decimal.js").Decimal;
|
|
4280
4689
|
min_lot_size: import("decimal.js").Decimal;
|
|
4281
|
-
|
|
4690
|
+
funding_parameters: {
|
|
4282
4691
|
interest_rate: import("decimal.js").Decimal;
|
|
4283
4692
|
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4284
4693
|
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
@@ -4286,18 +4695,30 @@ export declare const ResponseSchemas: {
|
|
|
4286
4695
|
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4287
4696
|
};
|
|
4288
4697
|
impact_margin: import("decimal.js").Decimal;
|
|
4698
|
+
orderbook: {
|
|
4699
|
+
market_id: number;
|
|
4700
|
+
bids: Map<string, {
|
|
4701
|
+
order_ids: bigint[];
|
|
4702
|
+
total_size: import("decimal.js").Decimal;
|
|
4703
|
+
}>;
|
|
4704
|
+
asks: Map<string, {
|
|
4705
|
+
order_ids: bigint[];
|
|
4706
|
+
total_size: import("decimal.js").Decimal;
|
|
4707
|
+
}>;
|
|
4708
|
+
};
|
|
4709
|
+
last_trade_price: import("decimal.js").Decimal;
|
|
4289
4710
|
};
|
|
4290
4711
|
};
|
|
4291
4712
|
meta: Map<unknown, unknown> | null;
|
|
4292
4713
|
}, {
|
|
4293
4714
|
data: {
|
|
4294
|
-
|
|
4715
|
+
market_id: number;
|
|
4295
4716
|
market: {
|
|
4296
|
-
|
|
4717
|
+
market_id: number;
|
|
4297
4718
|
is_active: boolean;
|
|
4298
4719
|
min_tick_size: string | number;
|
|
4299
4720
|
min_lot_size: string | number;
|
|
4300
|
-
|
|
4721
|
+
funding_parameters: {
|
|
4301
4722
|
interest_rate: string | number;
|
|
4302
4723
|
min_interest_rate_clamp: string | number;
|
|
4303
4724
|
max_interest_rate_clamp: string | number;
|
|
@@ -4305,6 +4726,18 @@ export declare const ResponseSchemas: {
|
|
|
4305
4726
|
max_funding_rate_clamp: string | number;
|
|
4306
4727
|
};
|
|
4307
4728
|
impact_margin: string | number;
|
|
4729
|
+
orderbook: {
|
|
4730
|
+
market_id: number;
|
|
4731
|
+
bids: Record<string, {
|
|
4732
|
+
order_ids: bigint[];
|
|
4733
|
+
total_size: string | number;
|
|
4734
|
+
}>;
|
|
4735
|
+
asks: Record<string, {
|
|
4736
|
+
order_ids: bigint[];
|
|
4737
|
+
total_size: string | number;
|
|
4738
|
+
}>;
|
|
4739
|
+
};
|
|
4740
|
+
last_trade_price: string | number;
|
|
4308
4741
|
};
|
|
4309
4742
|
};
|
|
4310
4743
|
meta: Record<string, unknown> | null;
|
|
@@ -4312,11 +4745,11 @@ export declare const ResponseSchemas: {
|
|
|
4312
4745
|
readonly PerpMarketBulk: z.ZodObject<{
|
|
4313
4746
|
data: z.ZodObject<{
|
|
4314
4747
|
found: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4315
|
-
|
|
4748
|
+
market_id: z.ZodNumber;
|
|
4316
4749
|
is_active: z.ZodBoolean;
|
|
4317
4750
|
min_tick_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4318
4751
|
min_lot_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4319
|
-
|
|
4752
|
+
funding_parameters: z.ZodObject<{
|
|
4320
4753
|
interest_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4321
4754
|
min_interest_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4322
4755
|
max_interest_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -4336,12 +4769,68 @@ export declare const ResponseSchemas: {
|
|
|
4336
4769
|
max_funding_rate_clamp: string | number;
|
|
4337
4770
|
}>;
|
|
4338
4771
|
impact_margin: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4772
|
+
orderbook: z.ZodObject<{
|
|
4773
|
+
market_id: z.ZodNumber;
|
|
4774
|
+
bids: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4775
|
+
order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
4776
|
+
total_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4777
|
+
}, "strip", z.ZodTypeAny, {
|
|
4778
|
+
order_ids: bigint[];
|
|
4779
|
+
total_size: import("decimal.js").Decimal;
|
|
4780
|
+
}, {
|
|
4781
|
+
order_ids: bigint[];
|
|
4782
|
+
total_size: string | number;
|
|
4783
|
+
}>>, Map<string, {
|
|
4784
|
+
order_ids: bigint[];
|
|
4785
|
+
total_size: import("decimal.js").Decimal;
|
|
4786
|
+
}>, Record<string, {
|
|
4787
|
+
order_ids: bigint[];
|
|
4788
|
+
total_size: string | number;
|
|
4789
|
+
}>>;
|
|
4790
|
+
asks: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4791
|
+
order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
4792
|
+
total_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4793
|
+
}, "strip", z.ZodTypeAny, {
|
|
4794
|
+
order_ids: bigint[];
|
|
4795
|
+
total_size: import("decimal.js").Decimal;
|
|
4796
|
+
}, {
|
|
4797
|
+
order_ids: bigint[];
|
|
4798
|
+
total_size: string | number;
|
|
4799
|
+
}>>, Map<string, {
|
|
4800
|
+
order_ids: bigint[];
|
|
4801
|
+
total_size: import("decimal.js").Decimal;
|
|
4802
|
+
}>, Record<string, {
|
|
4803
|
+
order_ids: bigint[];
|
|
4804
|
+
total_size: string | number;
|
|
4805
|
+
}>>;
|
|
4806
|
+
}, "strip", z.ZodTypeAny, {
|
|
4807
|
+
market_id: number;
|
|
4808
|
+
bids: Map<string, {
|
|
4809
|
+
order_ids: bigint[];
|
|
4810
|
+
total_size: import("decimal.js").Decimal;
|
|
4811
|
+
}>;
|
|
4812
|
+
asks: Map<string, {
|
|
4813
|
+
order_ids: bigint[];
|
|
4814
|
+
total_size: import("decimal.js").Decimal;
|
|
4815
|
+
}>;
|
|
4816
|
+
}, {
|
|
4817
|
+
market_id: number;
|
|
4818
|
+
bids: Record<string, {
|
|
4819
|
+
order_ids: bigint[];
|
|
4820
|
+
total_size: string | number;
|
|
4821
|
+
}>;
|
|
4822
|
+
asks: Record<string, {
|
|
4823
|
+
order_ids: bigint[];
|
|
4824
|
+
total_size: string | number;
|
|
4825
|
+
}>;
|
|
4826
|
+
}>;
|
|
4827
|
+
last_trade_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4339
4828
|
}, "strip", z.ZodTypeAny, {
|
|
4340
|
-
|
|
4829
|
+
market_id: number;
|
|
4341
4830
|
is_active: boolean;
|
|
4342
4831
|
min_tick_size: import("decimal.js").Decimal;
|
|
4343
4832
|
min_lot_size: import("decimal.js").Decimal;
|
|
4344
|
-
|
|
4833
|
+
funding_parameters: {
|
|
4345
4834
|
interest_rate: import("decimal.js").Decimal;
|
|
4346
4835
|
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4347
4836
|
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
@@ -4349,12 +4838,24 @@ export declare const ResponseSchemas: {
|
|
|
4349
4838
|
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4350
4839
|
};
|
|
4351
4840
|
impact_margin: import("decimal.js").Decimal;
|
|
4841
|
+
orderbook: {
|
|
4842
|
+
market_id: number;
|
|
4843
|
+
bids: Map<string, {
|
|
4844
|
+
order_ids: bigint[];
|
|
4845
|
+
total_size: import("decimal.js").Decimal;
|
|
4846
|
+
}>;
|
|
4847
|
+
asks: Map<string, {
|
|
4848
|
+
order_ids: bigint[];
|
|
4849
|
+
total_size: import("decimal.js").Decimal;
|
|
4850
|
+
}>;
|
|
4851
|
+
};
|
|
4852
|
+
last_trade_price: import("decimal.js").Decimal;
|
|
4352
4853
|
}, {
|
|
4353
|
-
|
|
4854
|
+
market_id: number;
|
|
4354
4855
|
is_active: boolean;
|
|
4355
4856
|
min_tick_size: string | number;
|
|
4356
4857
|
min_lot_size: string | number;
|
|
4357
|
-
|
|
4858
|
+
funding_parameters: {
|
|
4358
4859
|
interest_rate: string | number;
|
|
4359
4860
|
min_interest_rate_clamp: string | number;
|
|
4360
4861
|
max_interest_rate_clamp: string | number;
|
|
@@ -4362,12 +4863,24 @@ export declare const ResponseSchemas: {
|
|
|
4362
4863
|
max_funding_rate_clamp: string | number;
|
|
4363
4864
|
};
|
|
4364
4865
|
impact_margin: string | number;
|
|
4866
|
+
orderbook: {
|
|
4867
|
+
market_id: number;
|
|
4868
|
+
bids: Record<string, {
|
|
4869
|
+
order_ids: bigint[];
|
|
4870
|
+
total_size: string | number;
|
|
4871
|
+
}>;
|
|
4872
|
+
asks: Record<string, {
|
|
4873
|
+
order_ids: bigint[];
|
|
4874
|
+
total_size: string | number;
|
|
4875
|
+
}>;
|
|
4876
|
+
};
|
|
4877
|
+
last_trade_price: string | number;
|
|
4365
4878
|
}>>, Map<number, {
|
|
4366
|
-
|
|
4879
|
+
market_id: number;
|
|
4367
4880
|
is_active: boolean;
|
|
4368
4881
|
min_tick_size: import("decimal.js").Decimal;
|
|
4369
4882
|
min_lot_size: import("decimal.js").Decimal;
|
|
4370
|
-
|
|
4883
|
+
funding_parameters: {
|
|
4371
4884
|
interest_rate: import("decimal.js").Decimal;
|
|
4372
4885
|
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4373
4886
|
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
@@ -4375,12 +4888,24 @@ export declare const ResponseSchemas: {
|
|
|
4375
4888
|
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4376
4889
|
};
|
|
4377
4890
|
impact_margin: import("decimal.js").Decimal;
|
|
4891
|
+
orderbook: {
|
|
4892
|
+
market_id: number;
|
|
4893
|
+
bids: Map<string, {
|
|
4894
|
+
order_ids: bigint[];
|
|
4895
|
+
total_size: import("decimal.js").Decimal;
|
|
4896
|
+
}>;
|
|
4897
|
+
asks: Map<string, {
|
|
4898
|
+
order_ids: bigint[];
|
|
4899
|
+
total_size: import("decimal.js").Decimal;
|
|
4900
|
+
}>;
|
|
4901
|
+
};
|
|
4902
|
+
last_trade_price: import("decimal.js").Decimal;
|
|
4378
4903
|
}>, Record<string, {
|
|
4379
|
-
|
|
4904
|
+
market_id: number;
|
|
4380
4905
|
is_active: boolean;
|
|
4381
4906
|
min_tick_size: string | number;
|
|
4382
4907
|
min_lot_size: string | number;
|
|
4383
|
-
|
|
4908
|
+
funding_parameters: {
|
|
4384
4909
|
interest_rate: string | number;
|
|
4385
4910
|
min_interest_rate_clamp: string | number;
|
|
4386
4911
|
max_interest_rate_clamp: string | number;
|
|
@@ -4388,15 +4913,27 @@ export declare const ResponseSchemas: {
|
|
|
4388
4913
|
max_funding_rate_clamp: string | number;
|
|
4389
4914
|
};
|
|
4390
4915
|
impact_margin: string | number;
|
|
4916
|
+
orderbook: {
|
|
4917
|
+
market_id: number;
|
|
4918
|
+
bids: Record<string, {
|
|
4919
|
+
order_ids: bigint[];
|
|
4920
|
+
total_size: string | number;
|
|
4921
|
+
}>;
|
|
4922
|
+
asks: Record<string, {
|
|
4923
|
+
order_ids: bigint[];
|
|
4924
|
+
total_size: string | number;
|
|
4925
|
+
}>;
|
|
4926
|
+
};
|
|
4927
|
+
last_trade_price: string | number;
|
|
4391
4928
|
}>>;
|
|
4392
4929
|
not_found: z.ZodArray<z.ZodNumber, "many">;
|
|
4393
4930
|
}, "strip", z.ZodTypeAny, {
|
|
4394
4931
|
found: Map<number, {
|
|
4395
|
-
|
|
4932
|
+
market_id: number;
|
|
4396
4933
|
is_active: boolean;
|
|
4397
4934
|
min_tick_size: import("decimal.js").Decimal;
|
|
4398
4935
|
min_lot_size: import("decimal.js").Decimal;
|
|
4399
|
-
|
|
4936
|
+
funding_parameters: {
|
|
4400
4937
|
interest_rate: import("decimal.js").Decimal;
|
|
4401
4938
|
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4402
4939
|
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
@@ -4404,15 +4941,27 @@ export declare const ResponseSchemas: {
|
|
|
4404
4941
|
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4405
4942
|
};
|
|
4406
4943
|
impact_margin: import("decimal.js").Decimal;
|
|
4944
|
+
orderbook: {
|
|
4945
|
+
market_id: number;
|
|
4946
|
+
bids: Map<string, {
|
|
4947
|
+
order_ids: bigint[];
|
|
4948
|
+
total_size: import("decimal.js").Decimal;
|
|
4949
|
+
}>;
|
|
4950
|
+
asks: Map<string, {
|
|
4951
|
+
order_ids: bigint[];
|
|
4952
|
+
total_size: import("decimal.js").Decimal;
|
|
4953
|
+
}>;
|
|
4954
|
+
};
|
|
4955
|
+
last_trade_price: import("decimal.js").Decimal;
|
|
4407
4956
|
}>;
|
|
4408
4957
|
not_found: number[];
|
|
4409
4958
|
}, {
|
|
4410
4959
|
found: Record<string, {
|
|
4411
|
-
|
|
4960
|
+
market_id: number;
|
|
4412
4961
|
is_active: boolean;
|
|
4413
4962
|
min_tick_size: string | number;
|
|
4414
4963
|
min_lot_size: string | number;
|
|
4415
|
-
|
|
4964
|
+
funding_parameters: {
|
|
4416
4965
|
interest_rate: string | number;
|
|
4417
4966
|
min_interest_rate_clamp: string | number;
|
|
4418
4967
|
max_interest_rate_clamp: string | number;
|
|
@@ -4420,6 +4969,18 @@ export declare const ResponseSchemas: {
|
|
|
4420
4969
|
max_funding_rate_clamp: string | number;
|
|
4421
4970
|
};
|
|
4422
4971
|
impact_margin: string | number;
|
|
4972
|
+
orderbook: {
|
|
4973
|
+
market_id: number;
|
|
4974
|
+
bids: Record<string, {
|
|
4975
|
+
order_ids: bigint[];
|
|
4976
|
+
total_size: string | number;
|
|
4977
|
+
}>;
|
|
4978
|
+
asks: Record<string, {
|
|
4979
|
+
order_ids: bigint[];
|
|
4980
|
+
total_size: string | number;
|
|
4981
|
+
}>;
|
|
4982
|
+
};
|
|
4983
|
+
last_trade_price: string | number;
|
|
4423
4984
|
}>;
|
|
4424
4985
|
not_found: number[];
|
|
4425
4986
|
}>;
|
|
@@ -4427,11 +4988,11 @@ export declare const ResponseSchemas: {
|
|
|
4427
4988
|
}, "strip", z.ZodTypeAny, {
|
|
4428
4989
|
data: {
|
|
4429
4990
|
found: Map<number, {
|
|
4430
|
-
|
|
4991
|
+
market_id: number;
|
|
4431
4992
|
is_active: boolean;
|
|
4432
4993
|
min_tick_size: import("decimal.js").Decimal;
|
|
4433
4994
|
min_lot_size: import("decimal.js").Decimal;
|
|
4434
|
-
|
|
4995
|
+
funding_parameters: {
|
|
4435
4996
|
interest_rate: import("decimal.js").Decimal;
|
|
4436
4997
|
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4437
4998
|
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
@@ -4439,6 +5000,18 @@ export declare const ResponseSchemas: {
|
|
|
4439
5000
|
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4440
5001
|
};
|
|
4441
5002
|
impact_margin: import("decimal.js").Decimal;
|
|
5003
|
+
orderbook: {
|
|
5004
|
+
market_id: number;
|
|
5005
|
+
bids: Map<string, {
|
|
5006
|
+
order_ids: bigint[];
|
|
5007
|
+
total_size: import("decimal.js").Decimal;
|
|
5008
|
+
}>;
|
|
5009
|
+
asks: Map<string, {
|
|
5010
|
+
order_ids: bigint[];
|
|
5011
|
+
total_size: import("decimal.js").Decimal;
|
|
5012
|
+
}>;
|
|
5013
|
+
};
|
|
5014
|
+
last_trade_price: import("decimal.js").Decimal;
|
|
4442
5015
|
}>;
|
|
4443
5016
|
not_found: number[];
|
|
4444
5017
|
};
|
|
@@ -4446,11 +5019,11 @@ export declare const ResponseSchemas: {
|
|
|
4446
5019
|
}, {
|
|
4447
5020
|
data: {
|
|
4448
5021
|
found: Record<string, {
|
|
4449
|
-
|
|
5022
|
+
market_id: number;
|
|
4450
5023
|
is_active: boolean;
|
|
4451
5024
|
min_tick_size: string | number;
|
|
4452
5025
|
min_lot_size: string | number;
|
|
4453
|
-
|
|
5026
|
+
funding_parameters: {
|
|
4454
5027
|
interest_rate: string | number;
|
|
4455
5028
|
min_interest_rate_clamp: string | number;
|
|
4456
5029
|
max_interest_rate_clamp: string | number;
|
|
@@ -4458,6 +5031,18 @@ export declare const ResponseSchemas: {
|
|
|
4458
5031
|
max_funding_rate_clamp: string | number;
|
|
4459
5032
|
};
|
|
4460
5033
|
impact_margin: string | number;
|
|
5034
|
+
orderbook: {
|
|
5035
|
+
market_id: number;
|
|
5036
|
+
bids: Record<string, {
|
|
5037
|
+
order_ids: bigint[];
|
|
5038
|
+
total_size: string | number;
|
|
5039
|
+
}>;
|
|
5040
|
+
asks: Record<string, {
|
|
5041
|
+
order_ids: bigint[];
|
|
5042
|
+
total_size: string | number;
|
|
5043
|
+
}>;
|
|
5044
|
+
};
|
|
5045
|
+
last_trade_price: string | number;
|
|
4461
5046
|
}>;
|
|
4462
5047
|
not_found: number[];
|
|
4463
5048
|
};
|
|
@@ -4630,26 +5215,6 @@ export declare const ResponseSchemas: {
|
|
|
4630
5215
|
};
|
|
4631
5216
|
meta: Record<string, unknown> | null;
|
|
4632
5217
|
}>;
|
|
4633
|
-
readonly Assets: z.ZodObject<{
|
|
4634
|
-
data: z.ZodObject<{
|
|
4635
|
-
assets: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Map<number, string>, Record<string, string>>;
|
|
4636
|
-
}, "strip", z.ZodTypeAny, {
|
|
4637
|
-
assets: Map<number, string>;
|
|
4638
|
-
}, {
|
|
4639
|
-
assets: Record<string, string>;
|
|
4640
|
-
}>;
|
|
4641
|
-
meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
|
|
4642
|
-
}, "strip", z.ZodTypeAny, {
|
|
4643
|
-
data: {
|
|
4644
|
-
assets: Map<number, string>;
|
|
4645
|
-
};
|
|
4646
|
-
meta: Map<unknown, unknown> | null;
|
|
4647
|
-
}, {
|
|
4648
|
-
data: {
|
|
4649
|
-
assets: Record<string, string>;
|
|
4650
|
-
};
|
|
4651
|
-
meta: Record<string, unknown> | null;
|
|
4652
|
-
}>;
|
|
4653
5218
|
};
|
|
4654
5219
|
export type DummyValue = z.infer<typeof Schemas.DummyValue>;
|
|
4655
5220
|
export type Order = z.infer<typeof Order>;
|
|
@@ -4660,10 +5225,11 @@ export type OraclePrices = z.infer<typeof Schemas.OraclePrices>;
|
|
|
4660
5225
|
export type PerpPrices = z.infer<typeof Schemas.PerpPrices>;
|
|
4661
5226
|
export type UsdcPnlPool = z.infer<typeof Schemas.UsdcPnlPool>;
|
|
4662
5227
|
export type UsdcInsuranceFund = z.infer<typeof Schemas.UsdcInsuranceFund>;
|
|
4663
|
-
export type
|
|
5228
|
+
export type AssetRegistry = z.infer<typeof Schemas.AssetRegistry>;
|
|
5229
|
+
export type MarketRegistry = z.infer<typeof Schemas.MarketRegistry>;
|
|
5230
|
+
export type BorrowLendMarkets = z.infer<typeof Schemas.BorrowLendMarkets>;
|
|
4664
5231
|
export type PerpMarket = z.infer<typeof Schemas.PerpMarket>;
|
|
4665
5232
|
export type MarginConfig = z.infer<typeof Schemas.MarginConfig>;
|
|
4666
|
-
export type Assets = z.infer<typeof Schemas.Assets>;
|
|
4667
5233
|
export type Tpsl = z.infer<typeof Tpsl>;
|
|
4668
5234
|
export type AccountAddresses = z.infer<typeof Schemas.AccountAddresses>;
|
|
4669
5235
|
export type BorrowLendRiskWeights = z.infer<typeof BorrowLendRiskWeights>;
|