@crypticdot/defituna-api 1.3.7 → 1.3.8
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 +19 -19
- package/dist/index.d.ts +19 -19
- package/dist/index.js +6 -1
- package/dist/index.mjs +6 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1469,13 +1469,13 @@ declare const TradeHistoryEntry$1: z.ZodObject<{
|
|
|
1469
1469
|
usd: number;
|
|
1470
1470
|
}>;
|
|
1471
1471
|
pnl: z.ZodNullable<z.ZodObject<{
|
|
1472
|
-
|
|
1472
|
+
usd: z.ZodNumber;
|
|
1473
1473
|
bps: z.ZodNumber;
|
|
1474
1474
|
}, "strip", z.ZodTypeAny, {
|
|
1475
|
-
|
|
1475
|
+
usd: number;
|
|
1476
1476
|
bps: number;
|
|
1477
1477
|
}, {
|
|
1478
|
-
|
|
1478
|
+
usd: number;
|
|
1479
1479
|
bps: number;
|
|
1480
1480
|
}>>;
|
|
1481
1481
|
txSignature: z.ZodNullable<z.ZodString>;
|
|
@@ -1503,7 +1503,7 @@ declare const TradeHistoryEntry$1: z.ZodObject<{
|
|
|
1503
1503
|
usd: number;
|
|
1504
1504
|
};
|
|
1505
1505
|
pnl: {
|
|
1506
|
-
|
|
1506
|
+
usd: number;
|
|
1507
1507
|
bps: number;
|
|
1508
1508
|
} | null;
|
|
1509
1509
|
txSignature: string | null;
|
|
@@ -1531,7 +1531,7 @@ declare const TradeHistoryEntry$1: z.ZodObject<{
|
|
|
1531
1531
|
usd: number;
|
|
1532
1532
|
};
|
|
1533
1533
|
pnl: {
|
|
1534
|
-
|
|
1534
|
+
usd: number;
|
|
1535
1535
|
bps: number;
|
|
1536
1536
|
} | null;
|
|
1537
1537
|
txSignature: string | null;
|
|
@@ -4701,13 +4701,13 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4701
4701
|
usd: number;
|
|
4702
4702
|
}>;
|
|
4703
4703
|
pnl: z.ZodNullable<z.ZodObject<{
|
|
4704
|
-
|
|
4704
|
+
usd: z.ZodNumber;
|
|
4705
4705
|
bps: z.ZodNumber;
|
|
4706
4706
|
}, "strip", z.ZodTypeAny, {
|
|
4707
|
-
|
|
4707
|
+
usd: number;
|
|
4708
4708
|
bps: number;
|
|
4709
4709
|
}, {
|
|
4710
|
-
|
|
4710
|
+
usd: number;
|
|
4711
4711
|
bps: number;
|
|
4712
4712
|
}>>;
|
|
4713
4713
|
txSignature: z.ZodNullable<z.ZodString>;
|
|
@@ -4735,7 +4735,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4735
4735
|
usd: number;
|
|
4736
4736
|
};
|
|
4737
4737
|
pnl: {
|
|
4738
|
-
|
|
4738
|
+
usd: number;
|
|
4739
4739
|
bps: number;
|
|
4740
4740
|
} | null;
|
|
4741
4741
|
txSignature: string | null;
|
|
@@ -4763,7 +4763,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4763
4763
|
usd: number;
|
|
4764
4764
|
};
|
|
4765
4765
|
pnl: {
|
|
4766
|
-
|
|
4766
|
+
usd: number;
|
|
4767
4767
|
bps: number;
|
|
4768
4768
|
} | null;
|
|
4769
4769
|
txSignature: string | null;
|
|
@@ -4816,13 +4816,13 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4816
4816
|
usd: number;
|
|
4817
4817
|
}>;
|
|
4818
4818
|
pnl: z.ZodNullable<z.ZodObject<{
|
|
4819
|
-
|
|
4819
|
+
usd: z.ZodNumber;
|
|
4820
4820
|
bps: z.ZodNumber;
|
|
4821
4821
|
}, "strip", z.ZodTypeAny, {
|
|
4822
|
-
|
|
4822
|
+
usd: number;
|
|
4823
4823
|
bps: number;
|
|
4824
4824
|
}, {
|
|
4825
|
-
|
|
4825
|
+
usd: number;
|
|
4826
4826
|
bps: number;
|
|
4827
4827
|
}>>;
|
|
4828
4828
|
txSignature: z.ZodNullable<z.ZodString>;
|
|
@@ -4850,7 +4850,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4850
4850
|
usd: number;
|
|
4851
4851
|
};
|
|
4852
4852
|
pnl: {
|
|
4853
|
-
|
|
4853
|
+
usd: number;
|
|
4854
4854
|
bps: number;
|
|
4855
4855
|
} | null;
|
|
4856
4856
|
txSignature: string | null;
|
|
@@ -4878,7 +4878,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4878
4878
|
usd: number;
|
|
4879
4879
|
};
|
|
4880
4880
|
pnl: {
|
|
4881
|
-
|
|
4881
|
+
usd: number;
|
|
4882
4882
|
bps: number;
|
|
4883
4883
|
} | null;
|
|
4884
4884
|
txSignature: string | null;
|
|
@@ -4913,7 +4913,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4913
4913
|
usd: number;
|
|
4914
4914
|
};
|
|
4915
4915
|
pnl: {
|
|
4916
|
-
|
|
4916
|
+
usd: number;
|
|
4917
4917
|
bps: number;
|
|
4918
4918
|
} | null;
|
|
4919
4919
|
txSignature: string | null;
|
|
@@ -4948,7 +4948,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4948
4948
|
usd: number;
|
|
4949
4949
|
};
|
|
4950
4950
|
pnl: {
|
|
4951
|
-
|
|
4951
|
+
usd: number;
|
|
4952
4952
|
bps: number;
|
|
4953
4953
|
} | null;
|
|
4954
4954
|
txSignature: string | null;
|
|
@@ -4983,7 +4983,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4983
4983
|
usd: number;
|
|
4984
4984
|
};
|
|
4985
4985
|
pnl: {
|
|
4986
|
-
|
|
4986
|
+
usd: number;
|
|
4987
4987
|
bps: number;
|
|
4988
4988
|
} | null;
|
|
4989
4989
|
txSignature: string | null;
|
|
@@ -5018,7 +5018,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
5018
5018
|
usd: number;
|
|
5019
5019
|
};
|
|
5020
5020
|
pnl: {
|
|
5021
|
-
|
|
5021
|
+
usd: number;
|
|
5022
5022
|
bps: number;
|
|
5023
5023
|
} | null;
|
|
5024
5024
|
txSignature: string | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -1469,13 +1469,13 @@ declare const TradeHistoryEntry$1: z.ZodObject<{
|
|
|
1469
1469
|
usd: number;
|
|
1470
1470
|
}>;
|
|
1471
1471
|
pnl: z.ZodNullable<z.ZodObject<{
|
|
1472
|
-
|
|
1472
|
+
usd: z.ZodNumber;
|
|
1473
1473
|
bps: z.ZodNumber;
|
|
1474
1474
|
}, "strip", z.ZodTypeAny, {
|
|
1475
|
-
|
|
1475
|
+
usd: number;
|
|
1476
1476
|
bps: number;
|
|
1477
1477
|
}, {
|
|
1478
|
-
|
|
1478
|
+
usd: number;
|
|
1479
1479
|
bps: number;
|
|
1480
1480
|
}>>;
|
|
1481
1481
|
txSignature: z.ZodNullable<z.ZodString>;
|
|
@@ -1503,7 +1503,7 @@ declare const TradeHistoryEntry$1: z.ZodObject<{
|
|
|
1503
1503
|
usd: number;
|
|
1504
1504
|
};
|
|
1505
1505
|
pnl: {
|
|
1506
|
-
|
|
1506
|
+
usd: number;
|
|
1507
1507
|
bps: number;
|
|
1508
1508
|
} | null;
|
|
1509
1509
|
txSignature: string | null;
|
|
@@ -1531,7 +1531,7 @@ declare const TradeHistoryEntry$1: z.ZodObject<{
|
|
|
1531
1531
|
usd: number;
|
|
1532
1532
|
};
|
|
1533
1533
|
pnl: {
|
|
1534
|
-
|
|
1534
|
+
usd: number;
|
|
1535
1535
|
bps: number;
|
|
1536
1536
|
} | null;
|
|
1537
1537
|
txSignature: string | null;
|
|
@@ -4701,13 +4701,13 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4701
4701
|
usd: number;
|
|
4702
4702
|
}>;
|
|
4703
4703
|
pnl: z.ZodNullable<z.ZodObject<{
|
|
4704
|
-
|
|
4704
|
+
usd: z.ZodNumber;
|
|
4705
4705
|
bps: z.ZodNumber;
|
|
4706
4706
|
}, "strip", z.ZodTypeAny, {
|
|
4707
|
-
|
|
4707
|
+
usd: number;
|
|
4708
4708
|
bps: number;
|
|
4709
4709
|
}, {
|
|
4710
|
-
|
|
4710
|
+
usd: number;
|
|
4711
4711
|
bps: number;
|
|
4712
4712
|
}>>;
|
|
4713
4713
|
txSignature: z.ZodNullable<z.ZodString>;
|
|
@@ -4735,7 +4735,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4735
4735
|
usd: number;
|
|
4736
4736
|
};
|
|
4737
4737
|
pnl: {
|
|
4738
|
-
|
|
4738
|
+
usd: number;
|
|
4739
4739
|
bps: number;
|
|
4740
4740
|
} | null;
|
|
4741
4741
|
txSignature: string | null;
|
|
@@ -4763,7 +4763,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4763
4763
|
usd: number;
|
|
4764
4764
|
};
|
|
4765
4765
|
pnl: {
|
|
4766
|
-
|
|
4766
|
+
usd: number;
|
|
4767
4767
|
bps: number;
|
|
4768
4768
|
} | null;
|
|
4769
4769
|
txSignature: string | null;
|
|
@@ -4816,13 +4816,13 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4816
4816
|
usd: number;
|
|
4817
4817
|
}>;
|
|
4818
4818
|
pnl: z.ZodNullable<z.ZodObject<{
|
|
4819
|
-
|
|
4819
|
+
usd: z.ZodNumber;
|
|
4820
4820
|
bps: z.ZodNumber;
|
|
4821
4821
|
}, "strip", z.ZodTypeAny, {
|
|
4822
|
-
|
|
4822
|
+
usd: number;
|
|
4823
4823
|
bps: number;
|
|
4824
4824
|
}, {
|
|
4825
|
-
|
|
4825
|
+
usd: number;
|
|
4826
4826
|
bps: number;
|
|
4827
4827
|
}>>;
|
|
4828
4828
|
txSignature: z.ZodNullable<z.ZodString>;
|
|
@@ -4850,7 +4850,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4850
4850
|
usd: number;
|
|
4851
4851
|
};
|
|
4852
4852
|
pnl: {
|
|
4853
|
-
|
|
4853
|
+
usd: number;
|
|
4854
4854
|
bps: number;
|
|
4855
4855
|
} | null;
|
|
4856
4856
|
txSignature: string | null;
|
|
@@ -4878,7 +4878,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4878
4878
|
usd: number;
|
|
4879
4879
|
};
|
|
4880
4880
|
pnl: {
|
|
4881
|
-
|
|
4881
|
+
usd: number;
|
|
4882
4882
|
bps: number;
|
|
4883
4883
|
} | null;
|
|
4884
4884
|
txSignature: string | null;
|
|
@@ -4913,7 +4913,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4913
4913
|
usd: number;
|
|
4914
4914
|
};
|
|
4915
4915
|
pnl: {
|
|
4916
|
-
|
|
4916
|
+
usd: number;
|
|
4917
4917
|
bps: number;
|
|
4918
4918
|
} | null;
|
|
4919
4919
|
txSignature: string | null;
|
|
@@ -4948,7 +4948,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4948
4948
|
usd: number;
|
|
4949
4949
|
};
|
|
4950
4950
|
pnl: {
|
|
4951
|
-
|
|
4951
|
+
usd: number;
|
|
4952
4952
|
bps: number;
|
|
4953
4953
|
} | null;
|
|
4954
4954
|
txSignature: string | null;
|
|
@@ -4983,7 +4983,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4983
4983
|
usd: number;
|
|
4984
4984
|
};
|
|
4985
4985
|
pnl: {
|
|
4986
|
-
|
|
4986
|
+
usd: number;
|
|
4987
4987
|
bps: number;
|
|
4988
4988
|
} | null;
|
|
4989
4989
|
txSignature: string | null;
|
|
@@ -5018,7 +5018,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
5018
5018
|
usd: number;
|
|
5019
5019
|
};
|
|
5020
5020
|
pnl: {
|
|
5021
|
-
|
|
5021
|
+
usd: number;
|
|
5022
5022
|
bps: number;
|
|
5023
5023
|
} | null;
|
|
5024
5024
|
txSignature: string | null;
|
package/dist/index.js
CHANGED
|
@@ -483,7 +483,12 @@ var TradeHistoryEntry = import_zod.z.object({
|
|
|
483
483
|
baseToken: amountWithUsd,
|
|
484
484
|
quoteToken: amountWithUsd,
|
|
485
485
|
fee: amountWithUsd,
|
|
486
|
-
pnl: import_zod.z.nullable(
|
|
486
|
+
pnl: import_zod.z.nullable(
|
|
487
|
+
import_zod.z.object({
|
|
488
|
+
usd: import_zod.z.number(),
|
|
489
|
+
bps: import_zod.z.number()
|
|
490
|
+
})
|
|
491
|
+
),
|
|
487
492
|
txSignature: import_zod.z.nullable(import_zod.z.string()),
|
|
488
493
|
positionAddress: import_zod.z.nullable(import_zod.z.string()),
|
|
489
494
|
slot: import_zod.z.coerce.bigint(),
|
package/dist/index.mjs
CHANGED
|
@@ -448,7 +448,12 @@ var TradeHistoryEntry = z.object({
|
|
|
448
448
|
baseToken: amountWithUsd,
|
|
449
449
|
quoteToken: amountWithUsd,
|
|
450
450
|
fee: amountWithUsd,
|
|
451
|
-
pnl: z.nullable(
|
|
451
|
+
pnl: z.nullable(
|
|
452
|
+
z.object({
|
|
453
|
+
usd: z.number(),
|
|
454
|
+
bps: z.number()
|
|
455
|
+
})
|
|
456
|
+
),
|
|
452
457
|
txSignature: z.nullable(z.string()),
|
|
453
458
|
positionAddress: z.nullable(z.string()),
|
|
454
459
|
slot: z.coerce.bigint(),
|