@crypticdot/defituna-api 1.3.4 → 1.3.6

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 CHANGED
@@ -1133,6 +1133,7 @@ declare const TunaSpotPosition$1: z.ZodObject<{
1133
1133
  amount: number;
1134
1134
  bps: number;
1135
1135
  }>;
1136
+ leverage: z.ZodNumber;
1136
1137
  openedAt: z.ZodDate;
1137
1138
  openedAtSlot: z.ZodBigInt;
1138
1139
  updatedAtSlot: z.ZodBigInt;
@@ -1174,6 +1175,7 @@ declare const TunaSpotPosition$1: z.ZodObject<{
1174
1175
  amount: bigint;
1175
1176
  usd: number;
1176
1177
  };
1178
+ leverage: number;
1177
1179
  openedAtSlot: bigint;
1178
1180
  }, {
1179
1181
  total: {
@@ -1212,6 +1214,7 @@ declare const TunaSpotPosition$1: z.ZodObject<{
1212
1214
  amount: bigint;
1213
1215
  usd: number;
1214
1216
  };
1217
+ leverage: number;
1215
1218
  openedAtSlot: bigint;
1216
1219
  }>;
1217
1220
  declare const PoolSwap$1: z.ZodObject<{
@@ -3741,6 +3744,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3741
3744
  amount: number;
3742
3745
  bps: number;
3743
3746
  }>;
3747
+ leverage: z.ZodNumber;
3744
3748
  openedAt: z.ZodDate;
3745
3749
  openedAtSlot: z.ZodBigInt;
3746
3750
  updatedAtSlot: z.ZodBigInt;
@@ -3782,6 +3786,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3782
3786
  amount: bigint;
3783
3787
  usd: number;
3784
3788
  };
3789
+ leverage: number;
3785
3790
  openedAtSlot: bigint;
3786
3791
  }, {
3787
3792
  total: {
@@ -3820,6 +3825,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3820
3825
  amount: bigint;
3821
3826
  usd: number;
3822
3827
  };
3828
+ leverage: number;
3823
3829
  openedAtSlot: bigint;
3824
3830
  }>;
3825
3831
  id: z.ZodString;
@@ -3892,6 +3898,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3892
3898
  amount: number;
3893
3899
  bps: number;
3894
3900
  }>;
3901
+ leverage: z.ZodNumber;
3895
3902
  openedAt: z.ZodDate;
3896
3903
  openedAtSlot: z.ZodBigInt;
3897
3904
  updatedAtSlot: z.ZodBigInt;
@@ -3933,6 +3940,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3933
3940
  amount: bigint;
3934
3941
  usd: number;
3935
3942
  };
3943
+ leverage: number;
3936
3944
  openedAtSlot: bigint;
3937
3945
  }, {
3938
3946
  total: {
@@ -3971,6 +3979,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3971
3979
  amount: bigint;
3972
3980
  usd: number;
3973
3981
  };
3982
+ leverage: number;
3974
3983
  openedAtSlot: bigint;
3975
3984
  }>;
3976
3985
  id: z.ZodString;
@@ -4016,6 +4025,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
4016
4025
  amount: bigint;
4017
4026
  usd: number;
4018
4027
  };
4028
+ leverage: number;
4019
4029
  openedAtSlot: bigint;
4020
4030
  };
4021
4031
  entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
@@ -4061,6 +4071,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
4061
4071
  amount: bigint;
4062
4072
  usd: number;
4063
4073
  };
4074
+ leverage: number;
4064
4075
  openedAtSlot: bigint;
4065
4076
  };
4066
4077
  entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
@@ -4106,6 +4117,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
4106
4117
  amount: bigint;
4107
4118
  usd: number;
4108
4119
  };
4120
+ leverage: number;
4109
4121
  openedAtSlot: bigint;
4110
4122
  };
4111
4123
  entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
@@ -4151,6 +4163,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
4151
4163
  amount: bigint;
4152
4164
  usd: number;
4153
4165
  };
4166
+ leverage: number;
4154
4167
  openedAtSlot: bigint;
4155
4168
  };
4156
4169
  entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
package/dist/index.d.ts CHANGED
@@ -1133,6 +1133,7 @@ declare const TunaSpotPosition$1: z.ZodObject<{
1133
1133
  amount: number;
1134
1134
  bps: number;
1135
1135
  }>;
1136
+ leverage: z.ZodNumber;
1136
1137
  openedAt: z.ZodDate;
1137
1138
  openedAtSlot: z.ZodBigInt;
1138
1139
  updatedAtSlot: z.ZodBigInt;
@@ -1174,6 +1175,7 @@ declare const TunaSpotPosition$1: z.ZodObject<{
1174
1175
  amount: bigint;
1175
1176
  usd: number;
1176
1177
  };
1178
+ leverage: number;
1177
1179
  openedAtSlot: bigint;
1178
1180
  }, {
1179
1181
  total: {
@@ -1212,6 +1214,7 @@ declare const TunaSpotPosition$1: z.ZodObject<{
1212
1214
  amount: bigint;
1213
1215
  usd: number;
1214
1216
  };
1217
+ leverage: number;
1215
1218
  openedAtSlot: bigint;
1216
1219
  }>;
1217
1220
  declare const PoolSwap$1: z.ZodObject<{
@@ -3741,6 +3744,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3741
3744
  amount: number;
3742
3745
  bps: number;
3743
3746
  }>;
3747
+ leverage: z.ZodNumber;
3744
3748
  openedAt: z.ZodDate;
3745
3749
  openedAtSlot: z.ZodBigInt;
3746
3750
  updatedAtSlot: z.ZodBigInt;
@@ -3782,6 +3786,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3782
3786
  amount: bigint;
3783
3787
  usd: number;
3784
3788
  };
3789
+ leverage: number;
3785
3790
  openedAtSlot: bigint;
3786
3791
  }, {
3787
3792
  total: {
@@ -3820,6 +3825,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3820
3825
  amount: bigint;
3821
3826
  usd: number;
3822
3827
  };
3828
+ leverage: number;
3823
3829
  openedAtSlot: bigint;
3824
3830
  }>;
3825
3831
  id: z.ZodString;
@@ -3892,6 +3898,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3892
3898
  amount: number;
3893
3899
  bps: number;
3894
3900
  }>;
3901
+ leverage: z.ZodNumber;
3895
3902
  openedAt: z.ZodDate;
3896
3903
  openedAtSlot: z.ZodBigInt;
3897
3904
  updatedAtSlot: z.ZodBigInt;
@@ -3933,6 +3940,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3933
3940
  amount: bigint;
3934
3941
  usd: number;
3935
3942
  };
3943
+ leverage: number;
3936
3944
  openedAtSlot: bigint;
3937
3945
  }, {
3938
3946
  total: {
@@ -3971,6 +3979,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3971
3979
  amount: bigint;
3972
3980
  usd: number;
3973
3981
  };
3982
+ leverage: number;
3974
3983
  openedAtSlot: bigint;
3975
3984
  }>;
3976
3985
  id: z.ZodString;
@@ -4016,6 +4025,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
4016
4025
  amount: bigint;
4017
4026
  usd: number;
4018
4027
  };
4028
+ leverage: number;
4019
4029
  openedAtSlot: bigint;
4020
4030
  };
4021
4031
  entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
@@ -4061,6 +4071,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
4061
4071
  amount: bigint;
4062
4072
  usd: number;
4063
4073
  };
4074
+ leverage: number;
4064
4075
  openedAtSlot: bigint;
4065
4076
  };
4066
4077
  entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
@@ -4106,6 +4117,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
4106
4117
  amount: bigint;
4107
4118
  usd: number;
4108
4119
  };
4120
+ leverage: number;
4109
4121
  openedAtSlot: bigint;
4110
4122
  };
4111
4123
  entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
@@ -4151,6 +4163,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
4151
4163
  amount: bigint;
4152
4164
  usd: number;
4153
4165
  };
4166
+ leverage: number;
4154
4167
  openedAtSlot: bigint;
4155
4168
  };
4156
4169
  entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
package/dist/index.js CHANGED
@@ -416,6 +416,7 @@ var TunaSpotPosition = import_zod.z.object({
416
416
  currentLoan: amountWithUsd,
417
417
  total: amountWithUsd,
418
418
  pnlUsd: usdPnl,
419
+ leverage: import_zod.z.number(),
419
420
  openedAt: import_zod.z.coerce.date(),
420
421
  openedAtSlot: import_zod.z.coerce.bigint(),
421
422
  updatedAtSlot: import_zod.z.coerce.bigint(),
@@ -831,7 +832,7 @@ var TunaApiClient = class {
831
832
  query.pool = options.pool.join(",");
832
833
  }
833
834
  if (options.action?.length) {
834
- query.status = options.action.join(",");
835
+ query.action = options.action.join(",");
835
836
  }
836
837
  if (options.uiDirection?.length) {
837
838
  query.ui_direction = options.uiDirection.join(",");
package/dist/index.mjs CHANGED
@@ -381,6 +381,7 @@ var TunaSpotPosition = z.object({
381
381
  currentLoan: amountWithUsd,
382
382
  total: amountWithUsd,
383
383
  pnlUsd: usdPnl,
384
+ leverage: z.number(),
384
385
  openedAt: z.coerce.date(),
385
386
  openedAtSlot: z.coerce.bigint(),
386
387
  updatedAtSlot: z.coerce.bigint(),
@@ -796,7 +797,7 @@ var TunaApiClient = class {
796
797
  query.pool = options.pool.join(",");
797
798
  }
798
799
  if (options.action?.length) {
799
- query.status = options.action.join(",");
800
+ query.action = options.action.join(",");
800
801
  }
801
802
  if (options.uiDirection?.length) {
802
803
  query.ui_direction = options.uiDirection.join(",");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crypticdot/defituna-api",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",