@bulletxyz/bullet-sdk 0.16.1-rc.2 → 0.17.3-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +135 -35
- package/dist/browser/index.js.map +2 -2
- package/dist/node/index.js +135 -35
- package/dist/node/index.js.map +2 -2
- package/dist/types/browser.d.ts +1 -0
- package/dist/types/calc.d.ts +13 -1
- package/dist/types/exchange.d.ts +3 -3
- package/dist/types/index.d.ts +1 -0
- package/dist/types/zod-types/index.d.ts +2 -1
- package/dist/types/zod-types/rest.d.ts +334 -493
- package/dist/types/zod-types/wasm.d.ts +44 -0
- package/package.json +1 -1
|
@@ -934,21 +934,21 @@ export declare const Schemas: {
|
|
|
934
934
|
duration_sum: z.ZodBigInt;
|
|
935
935
|
last_update_timestamp: z.ZodNullable<z.ZodBigInt>;
|
|
936
936
|
}, "strip", z.ZodTypeAny, {
|
|
937
|
-
last_update_timestamp: bigint | null;
|
|
938
937
|
weighted_premium_sum: import("decimal.js").Decimal;
|
|
939
938
|
duration_sum: bigint;
|
|
940
|
-
}, {
|
|
941
939
|
last_update_timestamp: bigint | null;
|
|
940
|
+
}, {
|
|
942
941
|
weighted_premium_sum: string | number;
|
|
943
942
|
duration_sum: bigint;
|
|
944
|
-
}>>, Map<number, {
|
|
945
943
|
last_update_timestamp: bigint | null;
|
|
944
|
+
}>>, Map<number, {
|
|
946
945
|
weighted_premium_sum: import("decimal.js").Decimal;
|
|
947
946
|
duration_sum: bigint;
|
|
948
|
-
}>, Record<string, {
|
|
949
947
|
last_update_timestamp: bigint | null;
|
|
948
|
+
}>, Record<string, {
|
|
950
949
|
weighted_premium_sum: string | number;
|
|
951
950
|
duration_sum: bigint;
|
|
951
|
+
last_update_timestamp: bigint | null;
|
|
952
952
|
}>>;
|
|
953
953
|
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]>>;
|
|
954
954
|
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]>>;
|
|
@@ -960,9 +960,9 @@ export declare const Schemas: {
|
|
|
960
960
|
publish_timestamp: bigint;
|
|
961
961
|
}>;
|
|
962
962
|
premium_index: Map<number, {
|
|
963
|
-
last_update_timestamp: bigint | null;
|
|
964
963
|
weighted_premium_sum: import("decimal.js").Decimal;
|
|
965
964
|
duration_sum: bigint;
|
|
965
|
+
last_update_timestamp: bigint | null;
|
|
966
966
|
}>;
|
|
967
967
|
funding_rates: Map<number, [import("decimal.js").Decimal, bigint]>;
|
|
968
968
|
accum_funding_per_lot: Map<number, [import("decimal.js").Decimal, bigint]>;
|
|
@@ -974,196 +974,129 @@ export declare const Schemas: {
|
|
|
974
974
|
publish_timestamp: bigint;
|
|
975
975
|
}>;
|
|
976
976
|
premium_index: Record<string, {
|
|
977
|
-
last_update_timestamp: bigint | null;
|
|
978
977
|
weighted_premium_sum: string | number;
|
|
979
978
|
duration_sum: bigint;
|
|
979
|
+
last_update_timestamp: bigint | null;
|
|
980
980
|
}>;
|
|
981
981
|
funding_rates: Record<string, [string | number, bigint]>;
|
|
982
982
|
accum_funding_per_lot: Record<string, [string | number, bigint]>;
|
|
983
983
|
}>;
|
|
984
|
-
readonly
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
maintenance_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
994
|
-
}, "strip", z.ZodTypeAny, {
|
|
995
|
-
asset_weight: import("decimal.js").Decimal;
|
|
996
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
997
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
998
|
-
}, {
|
|
999
|
-
asset_weight: string | number;
|
|
1000
|
-
initial_liability_weight: string | number;
|
|
1001
|
-
maintenance_liability_weight: string | number;
|
|
1002
|
-
}>;
|
|
1003
|
-
deposit_limit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1004
|
-
borrow_limit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1005
|
-
liquidation_reward_ratio: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1006
|
-
liability_liquidation_limit_ratio: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1007
|
-
}, "strip", z.ZodTypeAny, {
|
|
1008
|
-
weights: {
|
|
1009
|
-
asset_weight: import("decimal.js").Decimal;
|
|
1010
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
1011
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
1012
|
-
};
|
|
1013
|
-
deposit_limit: import("decimal.js").Decimal;
|
|
1014
|
-
borrow_limit: import("decimal.js").Decimal;
|
|
1015
|
-
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
1016
|
-
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
1017
|
-
}, {
|
|
1018
|
-
weights: {
|
|
1019
|
-
asset_weight: string | number;
|
|
1020
|
-
initial_liability_weight: string | number;
|
|
1021
|
-
maintenance_liability_weight: string | number;
|
|
1022
|
-
};
|
|
1023
|
-
deposit_limit: string | number;
|
|
1024
|
-
borrow_limit: string | number;
|
|
1025
|
-
liquidation_reward_ratio: string | number;
|
|
1026
|
-
liability_liquidation_limit_ratio: string | number;
|
|
1027
|
-
}>;
|
|
1028
|
-
rate_params: z.ZodObject<{
|
|
1029
|
-
optimal_utilisation_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1030
|
-
min_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1031
|
-
optimal_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1032
|
-
max_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
984
|
+
readonly BorrowLendMarket: z.ZodObject<{
|
|
985
|
+
is_active: z.ZodBoolean;
|
|
986
|
+
last_update_timestamp: z.ZodBigInt;
|
|
987
|
+
decimals: z.ZodNumber;
|
|
988
|
+
risk_params: z.ZodObject<{
|
|
989
|
+
weights: z.ZodObject<{
|
|
990
|
+
asset_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
991
|
+
initial_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
992
|
+
maintenance_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1033
993
|
}, "strip", z.ZodTypeAny, {
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
max_borrow_rate: import("decimal.js").Decimal;
|
|
994
|
+
asset_weight: import("decimal.js").Decimal;
|
|
995
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
996
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
1038
997
|
}, {
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
max_borrow_rate: string | number;
|
|
998
|
+
asset_weight: string | number;
|
|
999
|
+
initial_liability_weight: string | number;
|
|
1000
|
+
maintenance_liability_weight: string | number;
|
|
1043
1001
|
}>;
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
accumulated_protocol_fees: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1002
|
+
deposit_limit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1003
|
+
borrow_limit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1004
|
+
liquidation_reward_ratio: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1005
|
+
liability_liquidation_limit_ratio: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1049
1006
|
}, "strip", z.ZodTypeAny, {
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
weights: {
|
|
1055
|
-
asset_weight: import("decimal.js").Decimal;
|
|
1056
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
1057
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
1058
|
-
};
|
|
1059
|
-
deposit_limit: import("decimal.js").Decimal;
|
|
1060
|
-
borrow_limit: import("decimal.js").Decimal;
|
|
1061
|
-
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
1062
|
-
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
1063
|
-
};
|
|
1064
|
-
rate_params: {
|
|
1065
|
-
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
1066
|
-
min_borrow_rate: import("decimal.js").Decimal;
|
|
1067
|
-
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
1068
|
-
max_borrow_rate: import("decimal.js").Decimal;
|
|
1007
|
+
weights: {
|
|
1008
|
+
asset_weight: import("decimal.js").Decimal;
|
|
1009
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
1010
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
1069
1011
|
};
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
1012
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
1013
|
+
borrow_limit: import("decimal.js").Decimal;
|
|
1014
|
+
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
1015
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
1075
1016
|
}, {
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
weights: {
|
|
1081
|
-
asset_weight: string | number;
|
|
1082
|
-
initial_liability_weight: string | number;
|
|
1083
|
-
maintenance_liability_weight: string | number;
|
|
1084
|
-
};
|
|
1085
|
-
deposit_limit: string | number;
|
|
1086
|
-
borrow_limit: string | number;
|
|
1087
|
-
liquidation_reward_ratio: string | number;
|
|
1088
|
-
liability_liquidation_limit_ratio: string | number;
|
|
1089
|
-
};
|
|
1090
|
-
rate_params: {
|
|
1091
|
-
optimal_utilisation_rate: string | number;
|
|
1092
|
-
min_borrow_rate: string | number;
|
|
1093
|
-
optimal_borrow_rate: string | number;
|
|
1094
|
-
max_borrow_rate: string | number;
|
|
1017
|
+
weights: {
|
|
1018
|
+
asset_weight: string | number;
|
|
1019
|
+
initial_liability_weight: string | number;
|
|
1020
|
+
maintenance_liability_weight: string | number;
|
|
1095
1021
|
};
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1022
|
+
deposit_limit: string | number;
|
|
1023
|
+
borrow_limit: string | number;
|
|
1024
|
+
liquidation_reward_ratio: string | number;
|
|
1025
|
+
liability_liquidation_limit_ratio: string | number;
|
|
1026
|
+
}>;
|
|
1027
|
+
rate_params: z.ZodObject<{
|
|
1028
|
+
optimal_utilisation_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1029
|
+
min_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1030
|
+
optimal_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1031
|
+
max_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1032
|
+
}, "strip", z.ZodTypeAny, {
|
|
1033
|
+
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
1034
|
+
min_borrow_rate: import("decimal.js").Decimal;
|
|
1035
|
+
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
1036
|
+
max_borrow_rate: import("decimal.js").Decimal;
|
|
1037
|
+
}, {
|
|
1038
|
+
optimal_utilisation_rate: string | number;
|
|
1039
|
+
min_borrow_rate: string | number;
|
|
1040
|
+
optimal_borrow_rate: string | number;
|
|
1041
|
+
max_borrow_rate: string | number;
|
|
1101
1042
|
}>;
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1043
|
+
available_amount: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1044
|
+
borrowed_amount: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1045
|
+
cumulative_deposit_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1046
|
+
cumulative_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1047
|
+
accumulated_protocol_fees: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1105
1048
|
}, "strip", z.ZodTypeAny, {
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
1115
|
-
};
|
|
1116
|
-
deposit_limit: import("decimal.js").Decimal;
|
|
1117
|
-
borrow_limit: import("decimal.js").Decimal;
|
|
1118
|
-
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
1119
|
-
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
1120
|
-
};
|
|
1121
|
-
rate_params: {
|
|
1122
|
-
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
1123
|
-
min_borrow_rate: import("decimal.js").Decimal;
|
|
1124
|
-
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
1125
|
-
max_borrow_rate: import("decimal.js").Decimal;
|
|
1049
|
+
last_update_timestamp: bigint;
|
|
1050
|
+
is_active: boolean;
|
|
1051
|
+
decimals: number;
|
|
1052
|
+
risk_params: {
|
|
1053
|
+
weights: {
|
|
1054
|
+
asset_weight: import("decimal.js").Decimal;
|
|
1055
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
1056
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
1126
1057
|
};
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1058
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
1059
|
+
borrow_limit: import("decimal.js").Decimal;
|
|
1060
|
+
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
1061
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
1062
|
+
};
|
|
1063
|
+
rate_params: {
|
|
1064
|
+
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
1065
|
+
min_borrow_rate: import("decimal.js").Decimal;
|
|
1066
|
+
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
1067
|
+
max_borrow_rate: import("decimal.js").Decimal;
|
|
1132
1068
|
};
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1069
|
+
available_amount: import("decimal.js").Decimal;
|
|
1070
|
+
borrowed_amount: import("decimal.js").Decimal;
|
|
1071
|
+
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
1072
|
+
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
1073
|
+
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
1136
1074
|
}, {
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
maintenance_liability_weight: string | number;
|
|
1146
|
-
};
|
|
1147
|
-
deposit_limit: string | number;
|
|
1148
|
-
borrow_limit: string | number;
|
|
1149
|
-
liquidation_reward_ratio: string | number;
|
|
1150
|
-
liability_liquidation_limit_ratio: string | number;
|
|
1151
|
-
};
|
|
1152
|
-
rate_params: {
|
|
1153
|
-
optimal_utilisation_rate: string | number;
|
|
1154
|
-
min_borrow_rate: string | number;
|
|
1155
|
-
optimal_borrow_rate: string | number;
|
|
1156
|
-
max_borrow_rate: string | number;
|
|
1075
|
+
last_update_timestamp: bigint;
|
|
1076
|
+
is_active: boolean;
|
|
1077
|
+
decimals: number;
|
|
1078
|
+
risk_params: {
|
|
1079
|
+
weights: {
|
|
1080
|
+
asset_weight: string | number;
|
|
1081
|
+
initial_liability_weight: string | number;
|
|
1082
|
+
maintenance_liability_weight: string | number;
|
|
1157
1083
|
};
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
accumulated_protocol_fees: string | number;
|
|
1084
|
+
deposit_limit: string | number;
|
|
1085
|
+
borrow_limit: string | number;
|
|
1086
|
+
liquidation_reward_ratio: string | number;
|
|
1087
|
+
liability_liquidation_limit_ratio: string | number;
|
|
1163
1088
|
};
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1089
|
+
rate_params: {
|
|
1090
|
+
optimal_utilisation_rate: string | number;
|
|
1091
|
+
min_borrow_rate: string | number;
|
|
1092
|
+
optimal_borrow_rate: string | number;
|
|
1093
|
+
max_borrow_rate: string | number;
|
|
1094
|
+
};
|
|
1095
|
+
available_amount: string | number;
|
|
1096
|
+
borrowed_amount: string | number;
|
|
1097
|
+
cumulative_deposit_rate: string | number;
|
|
1098
|
+
cumulative_borrow_rate: string | number;
|
|
1099
|
+
accumulated_protocol_fees: string | number;
|
|
1167
1100
|
}>;
|
|
1168
1101
|
readonly PerpMarket: z.ZodObject<{
|
|
1169
1102
|
is_active: z.ZodBoolean;
|
|
@@ -2219,21 +2152,21 @@ export declare const ResponseSchemas: {
|
|
|
2219
2152
|
duration_sum: z.ZodBigInt;
|
|
2220
2153
|
last_update_timestamp: z.ZodNullable<z.ZodBigInt>;
|
|
2221
2154
|
}, "strip", z.ZodTypeAny, {
|
|
2222
|
-
last_update_timestamp: bigint | null;
|
|
2223
2155
|
weighted_premium_sum: import("decimal.js").Decimal;
|
|
2224
2156
|
duration_sum: bigint;
|
|
2225
|
-
}, {
|
|
2226
2157
|
last_update_timestamp: bigint | null;
|
|
2158
|
+
}, {
|
|
2227
2159
|
weighted_premium_sum: string | number;
|
|
2228
2160
|
duration_sum: bigint;
|
|
2229
|
-
}>>, Map<number, {
|
|
2230
2161
|
last_update_timestamp: bigint | null;
|
|
2162
|
+
}>>, Map<number, {
|
|
2231
2163
|
weighted_premium_sum: import("decimal.js").Decimal;
|
|
2232
2164
|
duration_sum: bigint;
|
|
2233
|
-
}>, Record<string, {
|
|
2234
2165
|
last_update_timestamp: bigint | null;
|
|
2166
|
+
}>, Record<string, {
|
|
2235
2167
|
weighted_premium_sum: string | number;
|
|
2236
2168
|
duration_sum: bigint;
|
|
2169
|
+
last_update_timestamp: bigint | null;
|
|
2237
2170
|
}>>;
|
|
2238
2171
|
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]>>;
|
|
2239
2172
|
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]>>;
|
|
@@ -2245,9 +2178,9 @@ export declare const ResponseSchemas: {
|
|
|
2245
2178
|
publish_timestamp: bigint;
|
|
2246
2179
|
}>;
|
|
2247
2180
|
premium_index: Map<number, {
|
|
2248
|
-
last_update_timestamp: bigint | null;
|
|
2249
2181
|
weighted_premium_sum: import("decimal.js").Decimal;
|
|
2250
2182
|
duration_sum: bigint;
|
|
2183
|
+
last_update_timestamp: bigint | null;
|
|
2251
2184
|
}>;
|
|
2252
2185
|
funding_rates: Map<number, [import("decimal.js").Decimal, bigint]>;
|
|
2253
2186
|
accum_funding_per_lot: Map<number, [import("decimal.js").Decimal, bigint]>;
|
|
@@ -2259,9 +2192,9 @@ export declare const ResponseSchemas: {
|
|
|
2259
2192
|
publish_timestamp: bigint;
|
|
2260
2193
|
}>;
|
|
2261
2194
|
premium_index: Record<string, {
|
|
2262
|
-
last_update_timestamp: bigint | null;
|
|
2263
2195
|
weighted_premium_sum: string | number;
|
|
2264
2196
|
duration_sum: bigint;
|
|
2197
|
+
last_update_timestamp: bigint | null;
|
|
2265
2198
|
}>;
|
|
2266
2199
|
funding_rates: Record<string, [string | number, bigint]>;
|
|
2267
2200
|
accum_funding_per_lot: Record<string, [string | number, bigint]>;
|
|
@@ -2275,9 +2208,9 @@ export declare const ResponseSchemas: {
|
|
|
2275
2208
|
publish_timestamp: bigint;
|
|
2276
2209
|
}>;
|
|
2277
2210
|
premium_index: Map<number, {
|
|
2278
|
-
last_update_timestamp: bigint | null;
|
|
2279
2211
|
weighted_premium_sum: import("decimal.js").Decimal;
|
|
2280
2212
|
duration_sum: bigint;
|
|
2213
|
+
last_update_timestamp: bigint | null;
|
|
2281
2214
|
}>;
|
|
2282
2215
|
funding_rates: Map<number, [import("decimal.js").Decimal, bigint]>;
|
|
2283
2216
|
accum_funding_per_lot: Map<number, [import("decimal.js").Decimal, bigint]>;
|
|
@@ -2291,9 +2224,9 @@ export declare const ResponseSchemas: {
|
|
|
2291
2224
|
publish_timestamp: bigint;
|
|
2292
2225
|
}>;
|
|
2293
2226
|
premium_index: Record<string, {
|
|
2294
|
-
last_update_timestamp: bigint | null;
|
|
2295
2227
|
weighted_premium_sum: string | number;
|
|
2296
2228
|
duration_sum: bigint;
|
|
2229
|
+
last_update_timestamp: bigint | null;
|
|
2297
2230
|
}>;
|
|
2298
2231
|
funding_rates: Record<string, [string | number, bigint]>;
|
|
2299
2232
|
accum_funding_per_lot: Record<string, [string | number, bigint]>;
|
|
@@ -2310,9 +2243,9 @@ export declare const ResponseSchemas: {
|
|
|
2310
2243
|
publish_timestamp: bigint;
|
|
2311
2244
|
}>;
|
|
2312
2245
|
premium_index: Map<number, {
|
|
2313
|
-
last_update_timestamp: bigint | null;
|
|
2314
2246
|
weighted_premium_sum: import("decimal.js").Decimal;
|
|
2315
2247
|
duration_sum: bigint;
|
|
2248
|
+
last_update_timestamp: bigint | null;
|
|
2316
2249
|
}>;
|
|
2317
2250
|
funding_rates: Map<number, [import("decimal.js").Decimal, bigint]>;
|
|
2318
2251
|
accum_funding_per_lot: Map<number, [import("decimal.js").Decimal, bigint]>;
|
|
@@ -2329,9 +2262,9 @@ export declare const ResponseSchemas: {
|
|
|
2329
2262
|
publish_timestamp: bigint;
|
|
2330
2263
|
}>;
|
|
2331
2264
|
premium_index: Record<string, {
|
|
2332
|
-
last_update_timestamp: bigint | null;
|
|
2333
2265
|
weighted_premium_sum: string | number;
|
|
2334
2266
|
duration_sum: bigint;
|
|
2267
|
+
last_update_timestamp: bigint | null;
|
|
2335
2268
|
}>;
|
|
2336
2269
|
funding_rates: Record<string, [string | number, bigint]>;
|
|
2337
2270
|
accum_funding_per_lot: Record<string, [string | number, bigint]>;
|
|
@@ -2428,337 +2361,249 @@ export declare const ResponseSchemas: {
|
|
|
2428
2361
|
};
|
|
2429
2362
|
meta?: Record<string, unknown> | undefined;
|
|
2430
2363
|
}>;
|
|
2431
|
-
readonly
|
|
2364
|
+
readonly BorrowLendMarkets: z.ZodObject<{
|
|
2432
2365
|
data: z.ZodObject<{
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
maintenance_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2443
|
-
}, "strip", z.ZodTypeAny, {
|
|
2444
|
-
asset_weight: import("decimal.js").Decimal;
|
|
2445
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
2446
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
2447
|
-
}, {
|
|
2448
|
-
asset_weight: string | number;
|
|
2449
|
-
initial_liability_weight: string | number;
|
|
2450
|
-
maintenance_liability_weight: string | number;
|
|
2451
|
-
}>;
|
|
2452
|
-
deposit_limit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2453
|
-
borrow_limit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2454
|
-
liquidation_reward_ratio: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2455
|
-
liability_liquidation_limit_ratio: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2456
|
-
}, "strip", z.ZodTypeAny, {
|
|
2457
|
-
weights: {
|
|
2458
|
-
asset_weight: import("decimal.js").Decimal;
|
|
2459
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
2460
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
2461
|
-
};
|
|
2462
|
-
deposit_limit: import("decimal.js").Decimal;
|
|
2463
|
-
borrow_limit: import("decimal.js").Decimal;
|
|
2464
|
-
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
2465
|
-
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
2466
|
-
}, {
|
|
2467
|
-
weights: {
|
|
2468
|
-
asset_weight: string | number;
|
|
2469
|
-
initial_liability_weight: string | number;
|
|
2470
|
-
maintenance_liability_weight: string | number;
|
|
2471
|
-
};
|
|
2472
|
-
deposit_limit: string | number;
|
|
2473
|
-
borrow_limit: string | number;
|
|
2474
|
-
liquidation_reward_ratio: string | number;
|
|
2475
|
-
liability_liquidation_limit_ratio: string | number;
|
|
2476
|
-
}>;
|
|
2477
|
-
rate_params: z.ZodObject<{
|
|
2478
|
-
optimal_utilisation_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2479
|
-
min_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2480
|
-
optimal_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2481
|
-
max_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2366
|
+
markets: z.ZodArray<z.ZodObject<{
|
|
2367
|
+
is_active: z.ZodBoolean;
|
|
2368
|
+
last_update_timestamp: z.ZodBigInt;
|
|
2369
|
+
decimals: z.ZodNumber;
|
|
2370
|
+
risk_params: z.ZodObject<{
|
|
2371
|
+
weights: z.ZodObject<{
|
|
2372
|
+
asset_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2373
|
+
initial_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2374
|
+
maintenance_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2482
2375
|
}, "strip", z.ZodTypeAny, {
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
max_borrow_rate: import("decimal.js").Decimal;
|
|
2376
|
+
asset_weight: import("decimal.js").Decimal;
|
|
2377
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
2378
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
2487
2379
|
}, {
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
max_borrow_rate: string | number;
|
|
2380
|
+
asset_weight: string | number;
|
|
2381
|
+
initial_liability_weight: string | number;
|
|
2382
|
+
maintenance_liability_weight: string | number;
|
|
2492
2383
|
}>;
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
accumulated_protocol_fees: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2384
|
+
deposit_limit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2385
|
+
borrow_limit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2386
|
+
liquidation_reward_ratio: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2387
|
+
liability_liquidation_limit_ratio: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2498
2388
|
}, "strip", z.ZodTypeAny, {
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
weights: {
|
|
2504
|
-
asset_weight: import("decimal.js").Decimal;
|
|
2505
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
2506
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
2507
|
-
};
|
|
2508
|
-
deposit_limit: import("decimal.js").Decimal;
|
|
2509
|
-
borrow_limit: import("decimal.js").Decimal;
|
|
2510
|
-
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
2511
|
-
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
2512
|
-
};
|
|
2513
|
-
rate_params: {
|
|
2514
|
-
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
2515
|
-
min_borrow_rate: import("decimal.js").Decimal;
|
|
2516
|
-
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
2517
|
-
max_borrow_rate: import("decimal.js").Decimal;
|
|
2389
|
+
weights: {
|
|
2390
|
+
asset_weight: import("decimal.js").Decimal;
|
|
2391
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
2392
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
2518
2393
|
};
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
2394
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
2395
|
+
borrow_limit: import("decimal.js").Decimal;
|
|
2396
|
+
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
2397
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
2524
2398
|
}, {
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
weights: {
|
|
2530
|
-
asset_weight: string | number;
|
|
2531
|
-
initial_liability_weight: string | number;
|
|
2532
|
-
maintenance_liability_weight: string | number;
|
|
2533
|
-
};
|
|
2534
|
-
deposit_limit: string | number;
|
|
2535
|
-
borrow_limit: string | number;
|
|
2536
|
-
liquidation_reward_ratio: string | number;
|
|
2537
|
-
liability_liquidation_limit_ratio: string | number;
|
|
2538
|
-
};
|
|
2539
|
-
rate_params: {
|
|
2540
|
-
optimal_utilisation_rate: string | number;
|
|
2541
|
-
min_borrow_rate: string | number;
|
|
2542
|
-
optimal_borrow_rate: string | number;
|
|
2543
|
-
max_borrow_rate: string | number;
|
|
2399
|
+
weights: {
|
|
2400
|
+
asset_weight: string | number;
|
|
2401
|
+
initial_liability_weight: string | number;
|
|
2402
|
+
maintenance_liability_weight: string | number;
|
|
2544
2403
|
};
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2404
|
+
deposit_limit: string | number;
|
|
2405
|
+
borrow_limit: string | number;
|
|
2406
|
+
liquidation_reward_ratio: string | number;
|
|
2407
|
+
liability_liquidation_limit_ratio: string | number;
|
|
2408
|
+
}>;
|
|
2409
|
+
rate_params: z.ZodObject<{
|
|
2410
|
+
optimal_utilisation_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2411
|
+
min_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2412
|
+
optimal_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2413
|
+
max_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2414
|
+
}, "strip", z.ZodTypeAny, {
|
|
2415
|
+
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
2416
|
+
min_borrow_rate: import("decimal.js").Decimal;
|
|
2417
|
+
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
2418
|
+
max_borrow_rate: import("decimal.js").Decimal;
|
|
2419
|
+
}, {
|
|
2420
|
+
optimal_utilisation_rate: string | number;
|
|
2421
|
+
min_borrow_rate: string | number;
|
|
2422
|
+
optimal_borrow_rate: string | number;
|
|
2423
|
+
max_borrow_rate: string | number;
|
|
2550
2424
|
}>;
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2425
|
+
available_amount: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2426
|
+
borrowed_amount: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2427
|
+
cumulative_deposit_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2428
|
+
cumulative_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2429
|
+
accumulated_protocol_fees: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2554
2430
|
}, "strip", z.ZodTypeAny, {
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
2564
|
-
};
|
|
2565
|
-
deposit_limit: import("decimal.js").Decimal;
|
|
2566
|
-
borrow_limit: import("decimal.js").Decimal;
|
|
2567
|
-
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
2568
|
-
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
2569
|
-
};
|
|
2570
|
-
rate_params: {
|
|
2571
|
-
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
2572
|
-
min_borrow_rate: import("decimal.js").Decimal;
|
|
2573
|
-
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
2574
|
-
max_borrow_rate: import("decimal.js").Decimal;
|
|
2431
|
+
last_update_timestamp: bigint;
|
|
2432
|
+
is_active: boolean;
|
|
2433
|
+
decimals: number;
|
|
2434
|
+
risk_params: {
|
|
2435
|
+
weights: {
|
|
2436
|
+
asset_weight: import("decimal.js").Decimal;
|
|
2437
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
2438
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
2575
2439
|
};
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
2440
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
2441
|
+
borrow_limit: import("decimal.js").Decimal;
|
|
2442
|
+
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
2443
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
2581
2444
|
};
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2445
|
+
rate_params: {
|
|
2446
|
+
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
2447
|
+
min_borrow_rate: import("decimal.js").Decimal;
|
|
2448
|
+
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
2449
|
+
max_borrow_rate: import("decimal.js").Decimal;
|
|
2450
|
+
};
|
|
2451
|
+
available_amount: import("decimal.js").Decimal;
|
|
2452
|
+
borrowed_amount: import("decimal.js").Decimal;
|
|
2453
|
+
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
2454
|
+
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
2455
|
+
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
2585
2456
|
}, {
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
maintenance_liability_weight: string | number;
|
|
2595
|
-
};
|
|
2596
|
-
deposit_limit: string | number;
|
|
2597
|
-
borrow_limit: string | number;
|
|
2598
|
-
liquidation_reward_ratio: string | number;
|
|
2599
|
-
liability_liquidation_limit_ratio: string | number;
|
|
2600
|
-
};
|
|
2601
|
-
rate_params: {
|
|
2602
|
-
optimal_utilisation_rate: string | number;
|
|
2603
|
-
min_borrow_rate: string | number;
|
|
2604
|
-
optimal_borrow_rate: string | number;
|
|
2605
|
-
max_borrow_rate: string | number;
|
|
2457
|
+
last_update_timestamp: bigint;
|
|
2458
|
+
is_active: boolean;
|
|
2459
|
+
decimals: number;
|
|
2460
|
+
risk_params: {
|
|
2461
|
+
weights: {
|
|
2462
|
+
asset_weight: string | number;
|
|
2463
|
+
initial_liability_weight: string | number;
|
|
2464
|
+
maintenance_liability_weight: string | number;
|
|
2606
2465
|
};
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
accumulated_protocol_fees: string | number;
|
|
2466
|
+
deposit_limit: string | number;
|
|
2467
|
+
borrow_limit: string | number;
|
|
2468
|
+
liquidation_reward_ratio: string | number;
|
|
2469
|
+
liability_liquidation_limit_ratio: string | number;
|
|
2612
2470
|
};
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2471
|
+
rate_params: {
|
|
2472
|
+
optimal_utilisation_rate: string | number;
|
|
2473
|
+
min_borrow_rate: string | number;
|
|
2474
|
+
optimal_borrow_rate: string | number;
|
|
2475
|
+
max_borrow_rate: string | number;
|
|
2476
|
+
};
|
|
2477
|
+
available_amount: string | number;
|
|
2478
|
+
borrowed_amount: string | number;
|
|
2479
|
+
cumulative_deposit_rate: string | number;
|
|
2480
|
+
cumulative_borrow_rate: string | number;
|
|
2481
|
+
accumulated_protocol_fees: string | number;
|
|
2482
|
+
}>, "many">;
|
|
2617
2483
|
}, "strip", z.ZodTypeAny, {
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
2628
|
-
};
|
|
2629
|
-
deposit_limit: import("decimal.js").Decimal;
|
|
2630
|
-
borrow_limit: import("decimal.js").Decimal;
|
|
2631
|
-
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
2632
|
-
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
2633
|
-
};
|
|
2634
|
-
rate_params: {
|
|
2635
|
-
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
2636
|
-
min_borrow_rate: import("decimal.js").Decimal;
|
|
2637
|
-
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
2638
|
-
max_borrow_rate: import("decimal.js").Decimal;
|
|
2484
|
+
markets: {
|
|
2485
|
+
last_update_timestamp: bigint;
|
|
2486
|
+
is_active: boolean;
|
|
2487
|
+
decimals: number;
|
|
2488
|
+
risk_params: {
|
|
2489
|
+
weights: {
|
|
2490
|
+
asset_weight: import("decimal.js").Decimal;
|
|
2491
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
2492
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
2639
2493
|
};
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
2494
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
2495
|
+
borrow_limit: import("decimal.js").Decimal;
|
|
2496
|
+
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
2497
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
2645
2498
|
};
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2499
|
+
rate_params: {
|
|
2500
|
+
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
2501
|
+
min_borrow_rate: import("decimal.js").Decimal;
|
|
2502
|
+
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
2503
|
+
max_borrow_rate: import("decimal.js").Decimal;
|
|
2504
|
+
};
|
|
2505
|
+
available_amount: import("decimal.js").Decimal;
|
|
2506
|
+
borrowed_amount: import("decimal.js").Decimal;
|
|
2507
|
+
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
2508
|
+
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
2509
|
+
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
2510
|
+
}[];
|
|
2650
2511
|
}, {
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
maintenance_liability_weight: string | number;
|
|
2661
|
-
};
|
|
2662
|
-
deposit_limit: string | number;
|
|
2663
|
-
borrow_limit: string | number;
|
|
2664
|
-
liquidation_reward_ratio: string | number;
|
|
2665
|
-
liability_liquidation_limit_ratio: string | number;
|
|
2666
|
-
};
|
|
2667
|
-
rate_params: {
|
|
2668
|
-
optimal_utilisation_rate: string | number;
|
|
2669
|
-
min_borrow_rate: string | number;
|
|
2670
|
-
optimal_borrow_rate: string | number;
|
|
2671
|
-
max_borrow_rate: string | number;
|
|
2512
|
+
markets: {
|
|
2513
|
+
last_update_timestamp: bigint;
|
|
2514
|
+
is_active: boolean;
|
|
2515
|
+
decimals: number;
|
|
2516
|
+
risk_params: {
|
|
2517
|
+
weights: {
|
|
2518
|
+
asset_weight: string | number;
|
|
2519
|
+
initial_liability_weight: string | number;
|
|
2520
|
+
maintenance_liability_weight: string | number;
|
|
2672
2521
|
};
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
accumulated_protocol_fees: string | number;
|
|
2522
|
+
deposit_limit: string | number;
|
|
2523
|
+
borrow_limit: string | number;
|
|
2524
|
+
liquidation_reward_ratio: string | number;
|
|
2525
|
+
liability_liquidation_limit_ratio: string | number;
|
|
2678
2526
|
};
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2527
|
+
rate_params: {
|
|
2528
|
+
optimal_utilisation_rate: string | number;
|
|
2529
|
+
min_borrow_rate: string | number;
|
|
2530
|
+
optimal_borrow_rate: string | number;
|
|
2531
|
+
max_borrow_rate: string | number;
|
|
2532
|
+
};
|
|
2533
|
+
available_amount: string | number;
|
|
2534
|
+
borrowed_amount: string | number;
|
|
2535
|
+
cumulative_deposit_rate: string | number;
|
|
2536
|
+
cumulative_borrow_rate: string | number;
|
|
2537
|
+
accumulated_protocol_fees: string | number;
|
|
2538
|
+
}[];
|
|
2683
2539
|
}>;
|
|
2684
2540
|
meta: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
|
|
2685
2541
|
}, "strip", z.ZodTypeAny, {
|
|
2686
2542
|
data: {
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
2697
|
-
};
|
|
2698
|
-
deposit_limit: import("decimal.js").Decimal;
|
|
2699
|
-
borrow_limit: import("decimal.js").Decimal;
|
|
2700
|
-
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
2701
|
-
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
2702
|
-
};
|
|
2703
|
-
rate_params: {
|
|
2704
|
-
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
2705
|
-
min_borrow_rate: import("decimal.js").Decimal;
|
|
2706
|
-
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
2707
|
-
max_borrow_rate: import("decimal.js").Decimal;
|
|
2543
|
+
markets: {
|
|
2544
|
+
last_update_timestamp: bigint;
|
|
2545
|
+
is_active: boolean;
|
|
2546
|
+
decimals: number;
|
|
2547
|
+
risk_params: {
|
|
2548
|
+
weights: {
|
|
2549
|
+
asset_weight: import("decimal.js").Decimal;
|
|
2550
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
2551
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
2708
2552
|
};
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
2553
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
2554
|
+
borrow_limit: import("decimal.js").Decimal;
|
|
2555
|
+
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
2556
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
2714
2557
|
};
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2558
|
+
rate_params: {
|
|
2559
|
+
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
2560
|
+
min_borrow_rate: import("decimal.js").Decimal;
|
|
2561
|
+
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
2562
|
+
max_borrow_rate: import("decimal.js").Decimal;
|
|
2563
|
+
};
|
|
2564
|
+
available_amount: import("decimal.js").Decimal;
|
|
2565
|
+
borrowed_amount: import("decimal.js").Decimal;
|
|
2566
|
+
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
2567
|
+
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
2568
|
+
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
2569
|
+
}[];
|
|
2719
2570
|
};
|
|
2720
2571
|
meta?: Map<unknown, unknown> | undefined;
|
|
2721
2572
|
}, {
|
|
2722
2573
|
data: {
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
maintenance_liability_weight: string | number;
|
|
2733
|
-
};
|
|
2734
|
-
deposit_limit: string | number;
|
|
2735
|
-
borrow_limit: string | number;
|
|
2736
|
-
liquidation_reward_ratio: string | number;
|
|
2737
|
-
liability_liquidation_limit_ratio: string | number;
|
|
2738
|
-
};
|
|
2739
|
-
rate_params: {
|
|
2740
|
-
optimal_utilisation_rate: string | number;
|
|
2741
|
-
min_borrow_rate: string | number;
|
|
2742
|
-
optimal_borrow_rate: string | number;
|
|
2743
|
-
max_borrow_rate: string | number;
|
|
2574
|
+
markets: {
|
|
2575
|
+
last_update_timestamp: bigint;
|
|
2576
|
+
is_active: boolean;
|
|
2577
|
+
decimals: number;
|
|
2578
|
+
risk_params: {
|
|
2579
|
+
weights: {
|
|
2580
|
+
asset_weight: string | number;
|
|
2581
|
+
initial_liability_weight: string | number;
|
|
2582
|
+
maintenance_liability_weight: string | number;
|
|
2744
2583
|
};
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
accumulated_protocol_fees: string | number;
|
|
2584
|
+
deposit_limit: string | number;
|
|
2585
|
+
borrow_limit: string | number;
|
|
2586
|
+
liquidation_reward_ratio: string | number;
|
|
2587
|
+
liability_liquidation_limit_ratio: string | number;
|
|
2750
2588
|
};
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2589
|
+
rate_params: {
|
|
2590
|
+
optimal_utilisation_rate: string | number;
|
|
2591
|
+
min_borrow_rate: string | number;
|
|
2592
|
+
optimal_borrow_rate: string | number;
|
|
2593
|
+
max_borrow_rate: string | number;
|
|
2594
|
+
};
|
|
2595
|
+
available_amount: string | number;
|
|
2596
|
+
borrowed_amount: string | number;
|
|
2597
|
+
cumulative_deposit_rate: string | number;
|
|
2598
|
+
cumulative_borrow_rate: string | number;
|
|
2599
|
+
accumulated_protocol_fees: string | number;
|
|
2600
|
+
}[];
|
|
2755
2601
|
};
|
|
2756
2602
|
meta?: Record<string, unknown> | undefined;
|
|
2757
2603
|
}>;
|
|
2758
|
-
readonly
|
|
2604
|
+
readonly PerpMarkets: z.ZodObject<{
|
|
2759
2605
|
data: z.ZodObject<{
|
|
2760
|
-
|
|
2761
|
-
value: z.ZodNullable<z.ZodObject<{
|
|
2606
|
+
markets: z.ZodArray<z.ZodObject<{
|
|
2762
2607
|
is_active: z.ZodBoolean;
|
|
2763
2608
|
min_tick_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2764
2609
|
min_lot_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -2788,9 +2633,9 @@ export declare const ResponseSchemas: {
|
|
|
2788
2633
|
max_funding_rate_clamp: string | number;
|
|
2789
2634
|
impact_margin: string | number;
|
|
2790
2635
|
interest_rate: string | number;
|
|
2791
|
-
}
|
|
2636
|
+
}>, "many">;
|
|
2792
2637
|
}, "strip", z.ZodTypeAny, {
|
|
2793
|
-
|
|
2638
|
+
markets: {
|
|
2794
2639
|
is_active: boolean;
|
|
2795
2640
|
min_tick_size: import("decimal.js").Decimal;
|
|
2796
2641
|
min_lot_size: import("decimal.js").Decimal;
|
|
@@ -2800,10 +2645,9 @@ export declare const ResponseSchemas: {
|
|
|
2800
2645
|
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
2801
2646
|
impact_margin: import("decimal.js").Decimal;
|
|
2802
2647
|
interest_rate: import("decimal.js").Decimal;
|
|
2803
|
-
}
|
|
2804
|
-
key: number;
|
|
2648
|
+
}[];
|
|
2805
2649
|
}, {
|
|
2806
|
-
|
|
2650
|
+
markets: {
|
|
2807
2651
|
is_active: boolean;
|
|
2808
2652
|
min_tick_size: string | number;
|
|
2809
2653
|
min_lot_size: string | number;
|
|
@@ -2813,13 +2657,12 @@ export declare const ResponseSchemas: {
|
|
|
2813
2657
|
max_funding_rate_clamp: string | number;
|
|
2814
2658
|
impact_margin: string | number;
|
|
2815
2659
|
interest_rate: string | number;
|
|
2816
|
-
}
|
|
2817
|
-
key: number;
|
|
2660
|
+
}[];
|
|
2818
2661
|
}>;
|
|
2819
2662
|
meta: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
|
|
2820
2663
|
}, "strip", z.ZodTypeAny, {
|
|
2821
2664
|
data: {
|
|
2822
|
-
|
|
2665
|
+
markets: {
|
|
2823
2666
|
is_active: boolean;
|
|
2824
2667
|
min_tick_size: import("decimal.js").Decimal;
|
|
2825
2668
|
min_lot_size: import("decimal.js").Decimal;
|
|
@@ -2829,13 +2672,12 @@ export declare const ResponseSchemas: {
|
|
|
2829
2672
|
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
2830
2673
|
impact_margin: import("decimal.js").Decimal;
|
|
2831
2674
|
interest_rate: import("decimal.js").Decimal;
|
|
2832
|
-
}
|
|
2833
|
-
key: number;
|
|
2675
|
+
}[];
|
|
2834
2676
|
};
|
|
2835
2677
|
meta?: Map<unknown, unknown> | undefined;
|
|
2836
2678
|
}, {
|
|
2837
2679
|
data: {
|
|
2838
|
-
|
|
2680
|
+
markets: {
|
|
2839
2681
|
is_active: boolean;
|
|
2840
2682
|
min_tick_size: string | number;
|
|
2841
2683
|
min_lot_size: string | number;
|
|
@@ -2845,8 +2687,7 @@ export declare const ResponseSchemas: {
|
|
|
2845
2687
|
max_funding_rate_clamp: string | number;
|
|
2846
2688
|
impact_margin: string | number;
|
|
2847
2689
|
interest_rate: string | number;
|
|
2848
|
-
}
|
|
2849
|
-
key: number;
|
|
2690
|
+
}[];
|
|
2850
2691
|
};
|
|
2851
2692
|
meta?: Record<string, unknown> | undefined;
|
|
2852
2693
|
}>;
|
|
@@ -3035,7 +2876,7 @@ export type UserAccount = z.infer<typeof Schemas.UserAccount>;
|
|
|
3035
2876
|
export type Pricing = z.infer<typeof Schemas.Pricing>;
|
|
3036
2877
|
export type UsdcPnlPool = z.infer<typeof Schemas.UsdcPnlPool>;
|
|
3037
2878
|
export type UsdcInsuranceFund = z.infer<typeof Schemas.UsdcInsuranceFund>;
|
|
3038
|
-
export type
|
|
2879
|
+
export type BorrowLendMarket = z.infer<typeof Schemas.BorrowLendMarket>;
|
|
3039
2880
|
export type PerpMarket = z.infer<typeof Schemas.PerpMarket>;
|
|
3040
2881
|
export type MarginConfig = z.infer<typeof Schemas.MarginConfig>;
|
|
3041
2882
|
export type Assets = z.infer<typeof Schemas.Assets>;
|