@crypticdot/defituna-api 1.1.49 → 1.1.51
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/index.d.mts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +6 -2
- package/dist/index.mjs +6 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -79,10 +79,13 @@ declare const Market$1: z.ZodObject<{
|
|
|
79
79
|
poolFeeRate: z.ZodNumber;
|
|
80
80
|
provider: z.ZodEnum<["orca", ...("orca" | "fusion")[]]>;
|
|
81
81
|
maxLeverage: z.ZodNumber;
|
|
82
|
+
maxSwapSlippage: z.ZodNumber;
|
|
82
83
|
protocolFee: z.ZodNumber;
|
|
84
|
+
rebalanceProtocolFee: z.ZodNumber;
|
|
83
85
|
protocolFeeOnCollateral: z.ZodNumber;
|
|
84
86
|
liquidationFee: z.ZodNumber;
|
|
85
87
|
liquidationThreshold: z.ZodNumber;
|
|
88
|
+
oraclePriceDeviationThreshold: z.ZodNumber;
|
|
86
89
|
limitOrderExecutionFee: z.ZodNumber;
|
|
87
90
|
borrowedFundsA: z.ZodObject<{
|
|
88
91
|
amount: z.ZodBigInt;
|
|
@@ -152,10 +155,13 @@ declare const Market$1: z.ZodObject<{
|
|
|
152
155
|
poolFeeRate: number;
|
|
153
156
|
provider: "orca" | "fusion";
|
|
154
157
|
maxLeverage: number;
|
|
158
|
+
maxSwapSlippage: number;
|
|
155
159
|
protocolFee: number;
|
|
160
|
+
rebalanceProtocolFee: number;
|
|
156
161
|
protocolFeeOnCollateral: number;
|
|
157
162
|
liquidationFee: number;
|
|
158
163
|
liquidationThreshold: number;
|
|
164
|
+
oraclePriceDeviationThreshold: number;
|
|
159
165
|
limitOrderExecutionFee: number;
|
|
160
166
|
borrowedFundsA: {
|
|
161
167
|
amount: bigint;
|
|
@@ -189,10 +195,13 @@ declare const Market$1: z.ZodObject<{
|
|
|
189
195
|
poolFeeRate: number;
|
|
190
196
|
provider: "orca" | "fusion";
|
|
191
197
|
maxLeverage: number;
|
|
198
|
+
maxSwapSlippage: number;
|
|
192
199
|
protocolFee: number;
|
|
200
|
+
rebalanceProtocolFee: number;
|
|
193
201
|
protocolFeeOnCollateral: number;
|
|
194
202
|
liquidationFee: number;
|
|
195
203
|
liquidationThreshold: number;
|
|
204
|
+
oraclePriceDeviationThreshold: number;
|
|
196
205
|
limitOrderExecutionFee: number;
|
|
197
206
|
borrowedFundsA: {
|
|
198
207
|
amount: bigint;
|
|
@@ -273,6 +282,7 @@ declare const Vault$1: z.ZodObject<{
|
|
|
273
282
|
depositedShares: z.ZodBigInt;
|
|
274
283
|
supplyApy: z.ZodNumber;
|
|
275
284
|
borrowApy: z.ZodNumber;
|
|
285
|
+
interestRate: z.ZodBigInt;
|
|
276
286
|
utilization: z.ZodNumber;
|
|
277
287
|
pythOracleFeedId: z.ZodString;
|
|
278
288
|
pythOraclePriceUpdate: z.ZodString;
|
|
@@ -295,6 +305,7 @@ declare const Vault$1: z.ZodObject<{
|
|
|
295
305
|
depositedShares: bigint;
|
|
296
306
|
supplyApy: number;
|
|
297
307
|
borrowApy: number;
|
|
308
|
+
interestRate: bigint;
|
|
298
309
|
utilization: number;
|
|
299
310
|
pythOracleFeedId: string;
|
|
300
311
|
pythOraclePriceUpdate: string;
|
|
@@ -317,6 +328,7 @@ declare const Vault$1: z.ZodObject<{
|
|
|
317
328
|
depositedShares: bigint;
|
|
318
329
|
supplyApy: number;
|
|
319
330
|
borrowApy: number;
|
|
331
|
+
interestRate: bigint;
|
|
320
332
|
utilization: number;
|
|
321
333
|
pythOracleFeedId: string;
|
|
322
334
|
pythOraclePriceUpdate: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -79,10 +79,13 @@ declare const Market$1: z.ZodObject<{
|
|
|
79
79
|
poolFeeRate: z.ZodNumber;
|
|
80
80
|
provider: z.ZodEnum<["orca", ...("orca" | "fusion")[]]>;
|
|
81
81
|
maxLeverage: z.ZodNumber;
|
|
82
|
+
maxSwapSlippage: z.ZodNumber;
|
|
82
83
|
protocolFee: z.ZodNumber;
|
|
84
|
+
rebalanceProtocolFee: z.ZodNumber;
|
|
83
85
|
protocolFeeOnCollateral: z.ZodNumber;
|
|
84
86
|
liquidationFee: z.ZodNumber;
|
|
85
87
|
liquidationThreshold: z.ZodNumber;
|
|
88
|
+
oraclePriceDeviationThreshold: z.ZodNumber;
|
|
86
89
|
limitOrderExecutionFee: z.ZodNumber;
|
|
87
90
|
borrowedFundsA: z.ZodObject<{
|
|
88
91
|
amount: z.ZodBigInt;
|
|
@@ -152,10 +155,13 @@ declare const Market$1: z.ZodObject<{
|
|
|
152
155
|
poolFeeRate: number;
|
|
153
156
|
provider: "orca" | "fusion";
|
|
154
157
|
maxLeverage: number;
|
|
158
|
+
maxSwapSlippage: number;
|
|
155
159
|
protocolFee: number;
|
|
160
|
+
rebalanceProtocolFee: number;
|
|
156
161
|
protocolFeeOnCollateral: number;
|
|
157
162
|
liquidationFee: number;
|
|
158
163
|
liquidationThreshold: number;
|
|
164
|
+
oraclePriceDeviationThreshold: number;
|
|
159
165
|
limitOrderExecutionFee: number;
|
|
160
166
|
borrowedFundsA: {
|
|
161
167
|
amount: bigint;
|
|
@@ -189,10 +195,13 @@ declare const Market$1: z.ZodObject<{
|
|
|
189
195
|
poolFeeRate: number;
|
|
190
196
|
provider: "orca" | "fusion";
|
|
191
197
|
maxLeverage: number;
|
|
198
|
+
maxSwapSlippage: number;
|
|
192
199
|
protocolFee: number;
|
|
200
|
+
rebalanceProtocolFee: number;
|
|
193
201
|
protocolFeeOnCollateral: number;
|
|
194
202
|
liquidationFee: number;
|
|
195
203
|
liquidationThreshold: number;
|
|
204
|
+
oraclePriceDeviationThreshold: number;
|
|
196
205
|
limitOrderExecutionFee: number;
|
|
197
206
|
borrowedFundsA: {
|
|
198
207
|
amount: bigint;
|
|
@@ -273,6 +282,7 @@ declare const Vault$1: z.ZodObject<{
|
|
|
273
282
|
depositedShares: z.ZodBigInt;
|
|
274
283
|
supplyApy: z.ZodNumber;
|
|
275
284
|
borrowApy: z.ZodNumber;
|
|
285
|
+
interestRate: z.ZodBigInt;
|
|
276
286
|
utilization: z.ZodNumber;
|
|
277
287
|
pythOracleFeedId: z.ZodString;
|
|
278
288
|
pythOraclePriceUpdate: z.ZodString;
|
|
@@ -295,6 +305,7 @@ declare const Vault$1: z.ZodObject<{
|
|
|
295
305
|
depositedShares: bigint;
|
|
296
306
|
supplyApy: number;
|
|
297
307
|
borrowApy: number;
|
|
308
|
+
interestRate: bigint;
|
|
298
309
|
utilization: number;
|
|
299
310
|
pythOracleFeedId: string;
|
|
300
311
|
pythOraclePriceUpdate: string;
|
|
@@ -317,6 +328,7 @@ declare const Vault$1: z.ZodObject<{
|
|
|
317
328
|
depositedShares: bigint;
|
|
318
329
|
supplyApy: number;
|
|
319
330
|
borrowApy: number;
|
|
331
|
+
interestRate: bigint;
|
|
320
332
|
utilization: number;
|
|
321
333
|
pythOracleFeedId: string;
|
|
322
334
|
pythOraclePriceUpdate: string;
|
package/dist/index.js
CHANGED
|
@@ -187,10 +187,13 @@ var Market = import_zod.z.object({
|
|
|
187
187
|
poolFeeRate: import_zod.z.number(),
|
|
188
188
|
provider: PoolProviderSchema,
|
|
189
189
|
maxLeverage: import_zod.z.number(),
|
|
190
|
+
maxSwapSlippage: import_zod.z.number(),
|
|
190
191
|
protocolFee: import_zod.z.number(),
|
|
192
|
+
rebalanceProtocolFee: import_zod.z.number(),
|
|
191
193
|
protocolFeeOnCollateral: import_zod.z.number(),
|
|
192
194
|
liquidationFee: import_zod.z.number(),
|
|
193
195
|
liquidationThreshold: import_zod.z.number(),
|
|
196
|
+
oraclePriceDeviationThreshold: import_zod.z.number(),
|
|
194
197
|
limitOrderExecutionFee: import_zod.z.number(),
|
|
195
198
|
borrowedFundsA: amountWithUsd,
|
|
196
199
|
borrowedFundsB: amountWithUsd,
|
|
@@ -216,6 +219,7 @@ var Vault = import_zod.z.object({
|
|
|
216
219
|
depositedShares: import_zod.z.coerce.bigint(),
|
|
217
220
|
supplyApy: import_zod.z.number(),
|
|
218
221
|
borrowApy: import_zod.z.number(),
|
|
222
|
+
interestRate: import_zod.z.coerce.bigint(),
|
|
219
223
|
utilization: import_zod.z.number(),
|
|
220
224
|
pythOracleFeedId: import_zod.z.string(),
|
|
221
225
|
pythOraclePriceUpdate: import_zod.z.string()
|
|
@@ -680,8 +684,8 @@ var TunaApiClient = class {
|
|
|
680
684
|
async getStakingRevenueStats(from, to) {
|
|
681
685
|
const url = this.buildURL(`stats/staking/revenue`);
|
|
682
686
|
this.appendUrlSearchParams(url, {
|
|
683
|
-
from: from.toISOString(),
|
|
684
|
-
to: to.toISOString()
|
|
687
|
+
from: from.toISOString().split("T")[0],
|
|
688
|
+
to: to.toISOString().split("T")[0]
|
|
685
689
|
});
|
|
686
690
|
return await this.httpRequest(url.toString(), StakingRevenueStatsGroup.array());
|
|
687
691
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -152,10 +152,13 @@ var Market = z.object({
|
|
|
152
152
|
poolFeeRate: z.number(),
|
|
153
153
|
provider: PoolProviderSchema,
|
|
154
154
|
maxLeverage: z.number(),
|
|
155
|
+
maxSwapSlippage: z.number(),
|
|
155
156
|
protocolFee: z.number(),
|
|
157
|
+
rebalanceProtocolFee: z.number(),
|
|
156
158
|
protocolFeeOnCollateral: z.number(),
|
|
157
159
|
liquidationFee: z.number(),
|
|
158
160
|
liquidationThreshold: z.number(),
|
|
161
|
+
oraclePriceDeviationThreshold: z.number(),
|
|
159
162
|
limitOrderExecutionFee: z.number(),
|
|
160
163
|
borrowedFundsA: amountWithUsd,
|
|
161
164
|
borrowedFundsB: amountWithUsd,
|
|
@@ -181,6 +184,7 @@ var Vault = z.object({
|
|
|
181
184
|
depositedShares: z.coerce.bigint(),
|
|
182
185
|
supplyApy: z.number(),
|
|
183
186
|
borrowApy: z.number(),
|
|
187
|
+
interestRate: z.coerce.bigint(),
|
|
184
188
|
utilization: z.number(),
|
|
185
189
|
pythOracleFeedId: z.string(),
|
|
186
190
|
pythOraclePriceUpdate: z.string()
|
|
@@ -645,8 +649,8 @@ var TunaApiClient = class {
|
|
|
645
649
|
async getStakingRevenueStats(from, to) {
|
|
646
650
|
const url = this.buildURL(`stats/staking/revenue`);
|
|
647
651
|
this.appendUrlSearchParams(url, {
|
|
648
|
-
from: from.toISOString(),
|
|
649
|
-
to: to.toISOString()
|
|
652
|
+
from: from.toISOString().split("T")[0],
|
|
653
|
+
to: to.toISOString().split("T")[0]
|
|
650
654
|
});
|
|
651
655
|
return await this.httpRequest(url.toString(), StakingRevenueStatsGroup.array());
|
|
652
656
|
}
|