@crypticdot/defituna-api 1.3.7 → 1.3.9
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 -98
- package/dist/index.d.ts +19 -98
- package/dist/index.js +6 -14
- package/dist/index.mjs +6 -14
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -693,22 +693,9 @@ declare const TunaPosition$1: z.ZodObject<{
|
|
|
693
693
|
liquidity: z.ZodBigInt;
|
|
694
694
|
tickLowerIndex: z.ZodNumber;
|
|
695
695
|
tickUpperIndex: z.ZodNumber;
|
|
696
|
-
/**
|
|
697
|
-
* @deprecated Use entrySqrtPrice
|
|
698
|
-
*/
|
|
699
|
-
tickEntryIndex: z.ZodNumber;
|
|
700
|
-
/**
|
|
701
|
-
* @deprecated Use lowerLimitOrderSqrtPrice
|
|
702
|
-
*/
|
|
703
|
-
tickStopLossIndex: z.ZodNumber;
|
|
704
|
-
/**
|
|
705
|
-
* @deprecated Use upperLimitOrderSqrtPrice
|
|
706
|
-
*/
|
|
707
|
-
tickTakeProfitIndex: z.ZodNumber;
|
|
708
696
|
entrySqrtPrice: z.ZodBigInt;
|
|
709
697
|
lowerLimitOrderSqrtPrice: z.ZodBigInt;
|
|
710
698
|
upperLimitOrderSqrtPrice: z.ZodBigInt;
|
|
711
|
-
swapToTokenOnLimitOrder: z.ZodNumber;
|
|
712
699
|
flags: z.ZodNumber;
|
|
713
700
|
pool: z.ZodString;
|
|
714
701
|
poolSqrtPrice: z.ZodBigInt;
|
|
@@ -895,13 +882,9 @@ declare const TunaPosition$1: z.ZodObject<{
|
|
|
895
882
|
positionMint: string;
|
|
896
883
|
tickLowerIndex: number;
|
|
897
884
|
tickUpperIndex: number;
|
|
898
|
-
tickEntryIndex: number;
|
|
899
|
-
tickStopLossIndex: number;
|
|
900
|
-
tickTakeProfitIndex: number;
|
|
901
885
|
entrySqrtPrice: bigint;
|
|
902
886
|
lowerLimitOrderSqrtPrice: bigint;
|
|
903
887
|
upperLimitOrderSqrtPrice: bigint;
|
|
904
|
-
swapToTokenOnLimitOrder: number;
|
|
905
888
|
flags: number;
|
|
906
889
|
pool: string;
|
|
907
890
|
poolSqrtPrice: bigint;
|
|
@@ -986,13 +969,9 @@ declare const TunaPosition$1: z.ZodObject<{
|
|
|
986
969
|
positionMint: string;
|
|
987
970
|
tickLowerIndex: number;
|
|
988
971
|
tickUpperIndex: number;
|
|
989
|
-
tickEntryIndex: number;
|
|
990
|
-
tickStopLossIndex: number;
|
|
991
|
-
tickTakeProfitIndex: number;
|
|
992
972
|
entrySqrtPrice: bigint;
|
|
993
973
|
lowerLimitOrderSqrtPrice: bigint;
|
|
994
974
|
upperLimitOrderSqrtPrice: bigint;
|
|
995
|
-
swapToTokenOnLimitOrder: number;
|
|
996
975
|
flags: number;
|
|
997
976
|
pool: string;
|
|
998
977
|
poolSqrtPrice: bigint;
|
|
@@ -1469,13 +1448,13 @@ declare const TradeHistoryEntry$1: z.ZodObject<{
|
|
|
1469
1448
|
usd: number;
|
|
1470
1449
|
}>;
|
|
1471
1450
|
pnl: z.ZodNullable<z.ZodObject<{
|
|
1472
|
-
|
|
1451
|
+
usd: z.ZodNumber;
|
|
1473
1452
|
bps: z.ZodNumber;
|
|
1474
1453
|
}, "strip", z.ZodTypeAny, {
|
|
1475
|
-
|
|
1454
|
+
usd: number;
|
|
1476
1455
|
bps: number;
|
|
1477
1456
|
}, {
|
|
1478
|
-
|
|
1457
|
+
usd: number;
|
|
1479
1458
|
bps: number;
|
|
1480
1459
|
}>>;
|
|
1481
1460
|
txSignature: z.ZodNullable<z.ZodString>;
|
|
@@ -1503,7 +1482,7 @@ declare const TradeHistoryEntry$1: z.ZodObject<{
|
|
|
1503
1482
|
usd: number;
|
|
1504
1483
|
};
|
|
1505
1484
|
pnl: {
|
|
1506
|
-
|
|
1485
|
+
usd: number;
|
|
1507
1486
|
bps: number;
|
|
1508
1487
|
} | null;
|
|
1509
1488
|
txSignature: string | null;
|
|
@@ -1531,7 +1510,7 @@ declare const TradeHistoryEntry$1: z.ZodObject<{
|
|
|
1531
1510
|
usd: number;
|
|
1532
1511
|
};
|
|
1533
1512
|
pnl: {
|
|
1534
|
-
|
|
1513
|
+
usd: number;
|
|
1535
1514
|
bps: number;
|
|
1536
1515
|
} | null;
|
|
1537
1516
|
txSignature: string | null;
|
|
@@ -2529,22 +2508,9 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
2529
2508
|
liquidity: z.ZodBigInt;
|
|
2530
2509
|
tickLowerIndex: z.ZodNumber;
|
|
2531
2510
|
tickUpperIndex: z.ZodNumber;
|
|
2532
|
-
/**
|
|
2533
|
-
* @deprecated Use entrySqrtPrice
|
|
2534
|
-
*/
|
|
2535
|
-
tickEntryIndex: z.ZodNumber;
|
|
2536
|
-
/**
|
|
2537
|
-
* @deprecated Use lowerLimitOrderSqrtPrice
|
|
2538
|
-
*/
|
|
2539
|
-
tickStopLossIndex: z.ZodNumber;
|
|
2540
|
-
/**
|
|
2541
|
-
* @deprecated Use upperLimitOrderSqrtPrice
|
|
2542
|
-
*/
|
|
2543
|
-
tickTakeProfitIndex: z.ZodNumber;
|
|
2544
2511
|
entrySqrtPrice: z.ZodBigInt;
|
|
2545
2512
|
lowerLimitOrderSqrtPrice: z.ZodBigInt;
|
|
2546
2513
|
upperLimitOrderSqrtPrice: z.ZodBigInt;
|
|
2547
|
-
swapToTokenOnLimitOrder: z.ZodNumber;
|
|
2548
2514
|
flags: z.ZodNumber;
|
|
2549
2515
|
pool: z.ZodString;
|
|
2550
2516
|
poolSqrtPrice: z.ZodBigInt;
|
|
@@ -2731,13 +2697,9 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
2731
2697
|
positionMint: string;
|
|
2732
2698
|
tickLowerIndex: number;
|
|
2733
2699
|
tickUpperIndex: number;
|
|
2734
|
-
tickEntryIndex: number;
|
|
2735
|
-
tickStopLossIndex: number;
|
|
2736
|
-
tickTakeProfitIndex: number;
|
|
2737
2700
|
entrySqrtPrice: bigint;
|
|
2738
2701
|
lowerLimitOrderSqrtPrice: bigint;
|
|
2739
2702
|
upperLimitOrderSqrtPrice: bigint;
|
|
2740
|
-
swapToTokenOnLimitOrder: number;
|
|
2741
2703
|
flags: number;
|
|
2742
2704
|
pool: string;
|
|
2743
2705
|
poolSqrtPrice: bigint;
|
|
@@ -2822,13 +2784,9 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
2822
2784
|
positionMint: string;
|
|
2823
2785
|
tickLowerIndex: number;
|
|
2824
2786
|
tickUpperIndex: number;
|
|
2825
|
-
tickEntryIndex: number;
|
|
2826
|
-
tickStopLossIndex: number;
|
|
2827
|
-
tickTakeProfitIndex: number;
|
|
2828
2787
|
entrySqrtPrice: bigint;
|
|
2829
2788
|
lowerLimitOrderSqrtPrice: bigint;
|
|
2830
2789
|
upperLimitOrderSqrtPrice: bigint;
|
|
2831
|
-
swapToTokenOnLimitOrder: number;
|
|
2832
2790
|
flags: number;
|
|
2833
2791
|
pool: string;
|
|
2834
2792
|
poolSqrtPrice: bigint;
|
|
@@ -2920,22 +2878,9 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
2920
2878
|
liquidity: z.ZodBigInt;
|
|
2921
2879
|
tickLowerIndex: z.ZodNumber;
|
|
2922
2880
|
tickUpperIndex: z.ZodNumber;
|
|
2923
|
-
/**
|
|
2924
|
-
* @deprecated Use entrySqrtPrice
|
|
2925
|
-
*/
|
|
2926
|
-
tickEntryIndex: z.ZodNumber;
|
|
2927
|
-
/**
|
|
2928
|
-
* @deprecated Use lowerLimitOrderSqrtPrice
|
|
2929
|
-
*/
|
|
2930
|
-
tickStopLossIndex: z.ZodNumber;
|
|
2931
|
-
/**
|
|
2932
|
-
* @deprecated Use upperLimitOrderSqrtPrice
|
|
2933
|
-
*/
|
|
2934
|
-
tickTakeProfitIndex: z.ZodNumber;
|
|
2935
2881
|
entrySqrtPrice: z.ZodBigInt;
|
|
2936
2882
|
lowerLimitOrderSqrtPrice: z.ZodBigInt;
|
|
2937
2883
|
upperLimitOrderSqrtPrice: z.ZodBigInt;
|
|
2938
|
-
swapToTokenOnLimitOrder: z.ZodNumber;
|
|
2939
2884
|
flags: z.ZodNumber;
|
|
2940
2885
|
pool: z.ZodString;
|
|
2941
2886
|
poolSqrtPrice: z.ZodBigInt;
|
|
@@ -3122,13 +3067,9 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3122
3067
|
positionMint: string;
|
|
3123
3068
|
tickLowerIndex: number;
|
|
3124
3069
|
tickUpperIndex: number;
|
|
3125
|
-
tickEntryIndex: number;
|
|
3126
|
-
tickStopLossIndex: number;
|
|
3127
|
-
tickTakeProfitIndex: number;
|
|
3128
3070
|
entrySqrtPrice: bigint;
|
|
3129
3071
|
lowerLimitOrderSqrtPrice: bigint;
|
|
3130
3072
|
upperLimitOrderSqrtPrice: bigint;
|
|
3131
|
-
swapToTokenOnLimitOrder: number;
|
|
3132
3073
|
flags: number;
|
|
3133
3074
|
pool: string;
|
|
3134
3075
|
poolSqrtPrice: bigint;
|
|
@@ -3213,13 +3154,9 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3213
3154
|
positionMint: string;
|
|
3214
3155
|
tickLowerIndex: number;
|
|
3215
3156
|
tickUpperIndex: number;
|
|
3216
|
-
tickEntryIndex: number;
|
|
3217
|
-
tickStopLossIndex: number;
|
|
3218
|
-
tickTakeProfitIndex: number;
|
|
3219
3157
|
entrySqrtPrice: bigint;
|
|
3220
3158
|
lowerLimitOrderSqrtPrice: bigint;
|
|
3221
3159
|
upperLimitOrderSqrtPrice: bigint;
|
|
3222
|
-
swapToTokenOnLimitOrder: number;
|
|
3223
3160
|
flags: number;
|
|
3224
3161
|
pool: string;
|
|
3225
3162
|
poolSqrtPrice: bigint;
|
|
@@ -3311,13 +3248,9 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3311
3248
|
positionMint: string;
|
|
3312
3249
|
tickLowerIndex: number;
|
|
3313
3250
|
tickUpperIndex: number;
|
|
3314
|
-
tickEntryIndex: number;
|
|
3315
|
-
tickStopLossIndex: number;
|
|
3316
|
-
tickTakeProfitIndex: number;
|
|
3317
3251
|
entrySqrtPrice: bigint;
|
|
3318
3252
|
lowerLimitOrderSqrtPrice: bigint;
|
|
3319
3253
|
upperLimitOrderSqrtPrice: bigint;
|
|
3320
|
-
swapToTokenOnLimitOrder: number;
|
|
3321
3254
|
flags: number;
|
|
3322
3255
|
pool: string;
|
|
3323
3256
|
poolSqrtPrice: bigint;
|
|
@@ -3409,13 +3342,9 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3409
3342
|
positionMint: string;
|
|
3410
3343
|
tickLowerIndex: number;
|
|
3411
3344
|
tickUpperIndex: number;
|
|
3412
|
-
tickEntryIndex: number;
|
|
3413
|
-
tickStopLossIndex: number;
|
|
3414
|
-
tickTakeProfitIndex: number;
|
|
3415
3345
|
entrySqrtPrice: bigint;
|
|
3416
3346
|
lowerLimitOrderSqrtPrice: bigint;
|
|
3417
3347
|
upperLimitOrderSqrtPrice: bigint;
|
|
3418
|
-
swapToTokenOnLimitOrder: number;
|
|
3419
3348
|
flags: number;
|
|
3420
3349
|
pool: string;
|
|
3421
3350
|
poolSqrtPrice: bigint;
|
|
@@ -3507,13 +3436,9 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3507
3436
|
positionMint: string;
|
|
3508
3437
|
tickLowerIndex: number;
|
|
3509
3438
|
tickUpperIndex: number;
|
|
3510
|
-
tickEntryIndex: number;
|
|
3511
|
-
tickStopLossIndex: number;
|
|
3512
|
-
tickTakeProfitIndex: number;
|
|
3513
3439
|
entrySqrtPrice: bigint;
|
|
3514
3440
|
lowerLimitOrderSqrtPrice: bigint;
|
|
3515
3441
|
upperLimitOrderSqrtPrice: bigint;
|
|
3516
|
-
swapToTokenOnLimitOrder: number;
|
|
3517
3442
|
flags: number;
|
|
3518
3443
|
pool: string;
|
|
3519
3444
|
poolSqrtPrice: bigint;
|
|
@@ -3605,13 +3530,9 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3605
3530
|
positionMint: string;
|
|
3606
3531
|
tickLowerIndex: number;
|
|
3607
3532
|
tickUpperIndex: number;
|
|
3608
|
-
tickEntryIndex: number;
|
|
3609
|
-
tickStopLossIndex: number;
|
|
3610
|
-
tickTakeProfitIndex: number;
|
|
3611
3533
|
entrySqrtPrice: bigint;
|
|
3612
3534
|
lowerLimitOrderSqrtPrice: bigint;
|
|
3613
3535
|
upperLimitOrderSqrtPrice: bigint;
|
|
3614
|
-
swapToTokenOnLimitOrder: number;
|
|
3615
3536
|
flags: number;
|
|
3616
3537
|
pool: string;
|
|
3617
3538
|
poolSqrtPrice: bigint;
|
|
@@ -4701,13 +4622,13 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4701
4622
|
usd: number;
|
|
4702
4623
|
}>;
|
|
4703
4624
|
pnl: z.ZodNullable<z.ZodObject<{
|
|
4704
|
-
|
|
4625
|
+
usd: z.ZodNumber;
|
|
4705
4626
|
bps: z.ZodNumber;
|
|
4706
4627
|
}, "strip", z.ZodTypeAny, {
|
|
4707
|
-
|
|
4628
|
+
usd: number;
|
|
4708
4629
|
bps: number;
|
|
4709
4630
|
}, {
|
|
4710
|
-
|
|
4631
|
+
usd: number;
|
|
4711
4632
|
bps: number;
|
|
4712
4633
|
}>>;
|
|
4713
4634
|
txSignature: z.ZodNullable<z.ZodString>;
|
|
@@ -4735,7 +4656,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4735
4656
|
usd: number;
|
|
4736
4657
|
};
|
|
4737
4658
|
pnl: {
|
|
4738
|
-
|
|
4659
|
+
usd: number;
|
|
4739
4660
|
bps: number;
|
|
4740
4661
|
} | null;
|
|
4741
4662
|
txSignature: string | null;
|
|
@@ -4763,7 +4684,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4763
4684
|
usd: number;
|
|
4764
4685
|
};
|
|
4765
4686
|
pnl: {
|
|
4766
|
-
|
|
4687
|
+
usd: number;
|
|
4767
4688
|
bps: number;
|
|
4768
4689
|
} | null;
|
|
4769
4690
|
txSignature: string | null;
|
|
@@ -4816,13 +4737,13 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4816
4737
|
usd: number;
|
|
4817
4738
|
}>;
|
|
4818
4739
|
pnl: z.ZodNullable<z.ZodObject<{
|
|
4819
|
-
|
|
4740
|
+
usd: z.ZodNumber;
|
|
4820
4741
|
bps: z.ZodNumber;
|
|
4821
4742
|
}, "strip", z.ZodTypeAny, {
|
|
4822
|
-
|
|
4743
|
+
usd: number;
|
|
4823
4744
|
bps: number;
|
|
4824
4745
|
}, {
|
|
4825
|
-
|
|
4746
|
+
usd: number;
|
|
4826
4747
|
bps: number;
|
|
4827
4748
|
}>>;
|
|
4828
4749
|
txSignature: z.ZodNullable<z.ZodString>;
|
|
@@ -4850,7 +4771,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4850
4771
|
usd: number;
|
|
4851
4772
|
};
|
|
4852
4773
|
pnl: {
|
|
4853
|
-
|
|
4774
|
+
usd: number;
|
|
4854
4775
|
bps: number;
|
|
4855
4776
|
} | null;
|
|
4856
4777
|
txSignature: string | null;
|
|
@@ -4878,7 +4799,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4878
4799
|
usd: number;
|
|
4879
4800
|
};
|
|
4880
4801
|
pnl: {
|
|
4881
|
-
|
|
4802
|
+
usd: number;
|
|
4882
4803
|
bps: number;
|
|
4883
4804
|
} | null;
|
|
4884
4805
|
txSignature: string | null;
|
|
@@ -4913,7 +4834,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4913
4834
|
usd: number;
|
|
4914
4835
|
};
|
|
4915
4836
|
pnl: {
|
|
4916
|
-
|
|
4837
|
+
usd: number;
|
|
4917
4838
|
bps: number;
|
|
4918
4839
|
} | null;
|
|
4919
4840
|
txSignature: string | null;
|
|
@@ -4948,7 +4869,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4948
4869
|
usd: number;
|
|
4949
4870
|
};
|
|
4950
4871
|
pnl: {
|
|
4951
|
-
|
|
4872
|
+
usd: number;
|
|
4952
4873
|
bps: number;
|
|
4953
4874
|
} | null;
|
|
4954
4875
|
txSignature: string | null;
|
|
@@ -4983,7 +4904,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4983
4904
|
usd: number;
|
|
4984
4905
|
};
|
|
4985
4906
|
pnl: {
|
|
4986
|
-
|
|
4907
|
+
usd: number;
|
|
4987
4908
|
bps: number;
|
|
4988
4909
|
} | null;
|
|
4989
4910
|
txSignature: string | null;
|
|
@@ -5018,7 +4939,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
5018
4939
|
usd: number;
|
|
5019
4940
|
};
|
|
5020
4941
|
pnl: {
|
|
5021
|
-
|
|
4942
|
+
usd: number;
|
|
5022
4943
|
bps: number;
|
|
5023
4944
|
} | null;
|
|
5024
4945
|
txSignature: string | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -693,22 +693,9 @@ declare const TunaPosition$1: z.ZodObject<{
|
|
|
693
693
|
liquidity: z.ZodBigInt;
|
|
694
694
|
tickLowerIndex: z.ZodNumber;
|
|
695
695
|
tickUpperIndex: z.ZodNumber;
|
|
696
|
-
/**
|
|
697
|
-
* @deprecated Use entrySqrtPrice
|
|
698
|
-
*/
|
|
699
|
-
tickEntryIndex: z.ZodNumber;
|
|
700
|
-
/**
|
|
701
|
-
* @deprecated Use lowerLimitOrderSqrtPrice
|
|
702
|
-
*/
|
|
703
|
-
tickStopLossIndex: z.ZodNumber;
|
|
704
|
-
/**
|
|
705
|
-
* @deprecated Use upperLimitOrderSqrtPrice
|
|
706
|
-
*/
|
|
707
|
-
tickTakeProfitIndex: z.ZodNumber;
|
|
708
696
|
entrySqrtPrice: z.ZodBigInt;
|
|
709
697
|
lowerLimitOrderSqrtPrice: z.ZodBigInt;
|
|
710
698
|
upperLimitOrderSqrtPrice: z.ZodBigInt;
|
|
711
|
-
swapToTokenOnLimitOrder: z.ZodNumber;
|
|
712
699
|
flags: z.ZodNumber;
|
|
713
700
|
pool: z.ZodString;
|
|
714
701
|
poolSqrtPrice: z.ZodBigInt;
|
|
@@ -895,13 +882,9 @@ declare const TunaPosition$1: z.ZodObject<{
|
|
|
895
882
|
positionMint: string;
|
|
896
883
|
tickLowerIndex: number;
|
|
897
884
|
tickUpperIndex: number;
|
|
898
|
-
tickEntryIndex: number;
|
|
899
|
-
tickStopLossIndex: number;
|
|
900
|
-
tickTakeProfitIndex: number;
|
|
901
885
|
entrySqrtPrice: bigint;
|
|
902
886
|
lowerLimitOrderSqrtPrice: bigint;
|
|
903
887
|
upperLimitOrderSqrtPrice: bigint;
|
|
904
|
-
swapToTokenOnLimitOrder: number;
|
|
905
888
|
flags: number;
|
|
906
889
|
pool: string;
|
|
907
890
|
poolSqrtPrice: bigint;
|
|
@@ -986,13 +969,9 @@ declare const TunaPosition$1: z.ZodObject<{
|
|
|
986
969
|
positionMint: string;
|
|
987
970
|
tickLowerIndex: number;
|
|
988
971
|
tickUpperIndex: number;
|
|
989
|
-
tickEntryIndex: number;
|
|
990
|
-
tickStopLossIndex: number;
|
|
991
|
-
tickTakeProfitIndex: number;
|
|
992
972
|
entrySqrtPrice: bigint;
|
|
993
973
|
lowerLimitOrderSqrtPrice: bigint;
|
|
994
974
|
upperLimitOrderSqrtPrice: bigint;
|
|
995
|
-
swapToTokenOnLimitOrder: number;
|
|
996
975
|
flags: number;
|
|
997
976
|
pool: string;
|
|
998
977
|
poolSqrtPrice: bigint;
|
|
@@ -1469,13 +1448,13 @@ declare const TradeHistoryEntry$1: z.ZodObject<{
|
|
|
1469
1448
|
usd: number;
|
|
1470
1449
|
}>;
|
|
1471
1450
|
pnl: z.ZodNullable<z.ZodObject<{
|
|
1472
|
-
|
|
1451
|
+
usd: z.ZodNumber;
|
|
1473
1452
|
bps: z.ZodNumber;
|
|
1474
1453
|
}, "strip", z.ZodTypeAny, {
|
|
1475
|
-
|
|
1454
|
+
usd: number;
|
|
1476
1455
|
bps: number;
|
|
1477
1456
|
}, {
|
|
1478
|
-
|
|
1457
|
+
usd: number;
|
|
1479
1458
|
bps: number;
|
|
1480
1459
|
}>>;
|
|
1481
1460
|
txSignature: z.ZodNullable<z.ZodString>;
|
|
@@ -1503,7 +1482,7 @@ declare const TradeHistoryEntry$1: z.ZodObject<{
|
|
|
1503
1482
|
usd: number;
|
|
1504
1483
|
};
|
|
1505
1484
|
pnl: {
|
|
1506
|
-
|
|
1485
|
+
usd: number;
|
|
1507
1486
|
bps: number;
|
|
1508
1487
|
} | null;
|
|
1509
1488
|
txSignature: string | null;
|
|
@@ -1531,7 +1510,7 @@ declare const TradeHistoryEntry$1: z.ZodObject<{
|
|
|
1531
1510
|
usd: number;
|
|
1532
1511
|
};
|
|
1533
1512
|
pnl: {
|
|
1534
|
-
|
|
1513
|
+
usd: number;
|
|
1535
1514
|
bps: number;
|
|
1536
1515
|
} | null;
|
|
1537
1516
|
txSignature: string | null;
|
|
@@ -2529,22 +2508,9 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
2529
2508
|
liquidity: z.ZodBigInt;
|
|
2530
2509
|
tickLowerIndex: z.ZodNumber;
|
|
2531
2510
|
tickUpperIndex: z.ZodNumber;
|
|
2532
|
-
/**
|
|
2533
|
-
* @deprecated Use entrySqrtPrice
|
|
2534
|
-
*/
|
|
2535
|
-
tickEntryIndex: z.ZodNumber;
|
|
2536
|
-
/**
|
|
2537
|
-
* @deprecated Use lowerLimitOrderSqrtPrice
|
|
2538
|
-
*/
|
|
2539
|
-
tickStopLossIndex: z.ZodNumber;
|
|
2540
|
-
/**
|
|
2541
|
-
* @deprecated Use upperLimitOrderSqrtPrice
|
|
2542
|
-
*/
|
|
2543
|
-
tickTakeProfitIndex: z.ZodNumber;
|
|
2544
2511
|
entrySqrtPrice: z.ZodBigInt;
|
|
2545
2512
|
lowerLimitOrderSqrtPrice: z.ZodBigInt;
|
|
2546
2513
|
upperLimitOrderSqrtPrice: z.ZodBigInt;
|
|
2547
|
-
swapToTokenOnLimitOrder: z.ZodNumber;
|
|
2548
2514
|
flags: z.ZodNumber;
|
|
2549
2515
|
pool: z.ZodString;
|
|
2550
2516
|
poolSqrtPrice: z.ZodBigInt;
|
|
@@ -2731,13 +2697,9 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
2731
2697
|
positionMint: string;
|
|
2732
2698
|
tickLowerIndex: number;
|
|
2733
2699
|
tickUpperIndex: number;
|
|
2734
|
-
tickEntryIndex: number;
|
|
2735
|
-
tickStopLossIndex: number;
|
|
2736
|
-
tickTakeProfitIndex: number;
|
|
2737
2700
|
entrySqrtPrice: bigint;
|
|
2738
2701
|
lowerLimitOrderSqrtPrice: bigint;
|
|
2739
2702
|
upperLimitOrderSqrtPrice: bigint;
|
|
2740
|
-
swapToTokenOnLimitOrder: number;
|
|
2741
2703
|
flags: number;
|
|
2742
2704
|
pool: string;
|
|
2743
2705
|
poolSqrtPrice: bigint;
|
|
@@ -2822,13 +2784,9 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
2822
2784
|
positionMint: string;
|
|
2823
2785
|
tickLowerIndex: number;
|
|
2824
2786
|
tickUpperIndex: number;
|
|
2825
|
-
tickEntryIndex: number;
|
|
2826
|
-
tickStopLossIndex: number;
|
|
2827
|
-
tickTakeProfitIndex: number;
|
|
2828
2787
|
entrySqrtPrice: bigint;
|
|
2829
2788
|
lowerLimitOrderSqrtPrice: bigint;
|
|
2830
2789
|
upperLimitOrderSqrtPrice: bigint;
|
|
2831
|
-
swapToTokenOnLimitOrder: number;
|
|
2832
2790
|
flags: number;
|
|
2833
2791
|
pool: string;
|
|
2834
2792
|
poolSqrtPrice: bigint;
|
|
@@ -2920,22 +2878,9 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
2920
2878
|
liquidity: z.ZodBigInt;
|
|
2921
2879
|
tickLowerIndex: z.ZodNumber;
|
|
2922
2880
|
tickUpperIndex: z.ZodNumber;
|
|
2923
|
-
/**
|
|
2924
|
-
* @deprecated Use entrySqrtPrice
|
|
2925
|
-
*/
|
|
2926
|
-
tickEntryIndex: z.ZodNumber;
|
|
2927
|
-
/**
|
|
2928
|
-
* @deprecated Use lowerLimitOrderSqrtPrice
|
|
2929
|
-
*/
|
|
2930
|
-
tickStopLossIndex: z.ZodNumber;
|
|
2931
|
-
/**
|
|
2932
|
-
* @deprecated Use upperLimitOrderSqrtPrice
|
|
2933
|
-
*/
|
|
2934
|
-
tickTakeProfitIndex: z.ZodNumber;
|
|
2935
2881
|
entrySqrtPrice: z.ZodBigInt;
|
|
2936
2882
|
lowerLimitOrderSqrtPrice: z.ZodBigInt;
|
|
2937
2883
|
upperLimitOrderSqrtPrice: z.ZodBigInt;
|
|
2938
|
-
swapToTokenOnLimitOrder: z.ZodNumber;
|
|
2939
2884
|
flags: z.ZodNumber;
|
|
2940
2885
|
pool: z.ZodString;
|
|
2941
2886
|
poolSqrtPrice: z.ZodBigInt;
|
|
@@ -3122,13 +3067,9 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3122
3067
|
positionMint: string;
|
|
3123
3068
|
tickLowerIndex: number;
|
|
3124
3069
|
tickUpperIndex: number;
|
|
3125
|
-
tickEntryIndex: number;
|
|
3126
|
-
tickStopLossIndex: number;
|
|
3127
|
-
tickTakeProfitIndex: number;
|
|
3128
3070
|
entrySqrtPrice: bigint;
|
|
3129
3071
|
lowerLimitOrderSqrtPrice: bigint;
|
|
3130
3072
|
upperLimitOrderSqrtPrice: bigint;
|
|
3131
|
-
swapToTokenOnLimitOrder: number;
|
|
3132
3073
|
flags: number;
|
|
3133
3074
|
pool: string;
|
|
3134
3075
|
poolSqrtPrice: bigint;
|
|
@@ -3213,13 +3154,9 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3213
3154
|
positionMint: string;
|
|
3214
3155
|
tickLowerIndex: number;
|
|
3215
3156
|
tickUpperIndex: number;
|
|
3216
|
-
tickEntryIndex: number;
|
|
3217
|
-
tickStopLossIndex: number;
|
|
3218
|
-
tickTakeProfitIndex: number;
|
|
3219
3157
|
entrySqrtPrice: bigint;
|
|
3220
3158
|
lowerLimitOrderSqrtPrice: bigint;
|
|
3221
3159
|
upperLimitOrderSqrtPrice: bigint;
|
|
3222
|
-
swapToTokenOnLimitOrder: number;
|
|
3223
3160
|
flags: number;
|
|
3224
3161
|
pool: string;
|
|
3225
3162
|
poolSqrtPrice: bigint;
|
|
@@ -3311,13 +3248,9 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3311
3248
|
positionMint: string;
|
|
3312
3249
|
tickLowerIndex: number;
|
|
3313
3250
|
tickUpperIndex: number;
|
|
3314
|
-
tickEntryIndex: number;
|
|
3315
|
-
tickStopLossIndex: number;
|
|
3316
|
-
tickTakeProfitIndex: number;
|
|
3317
3251
|
entrySqrtPrice: bigint;
|
|
3318
3252
|
lowerLimitOrderSqrtPrice: bigint;
|
|
3319
3253
|
upperLimitOrderSqrtPrice: bigint;
|
|
3320
|
-
swapToTokenOnLimitOrder: number;
|
|
3321
3254
|
flags: number;
|
|
3322
3255
|
pool: string;
|
|
3323
3256
|
poolSqrtPrice: bigint;
|
|
@@ -3409,13 +3342,9 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3409
3342
|
positionMint: string;
|
|
3410
3343
|
tickLowerIndex: number;
|
|
3411
3344
|
tickUpperIndex: number;
|
|
3412
|
-
tickEntryIndex: number;
|
|
3413
|
-
tickStopLossIndex: number;
|
|
3414
|
-
tickTakeProfitIndex: number;
|
|
3415
3345
|
entrySqrtPrice: bigint;
|
|
3416
3346
|
lowerLimitOrderSqrtPrice: bigint;
|
|
3417
3347
|
upperLimitOrderSqrtPrice: bigint;
|
|
3418
|
-
swapToTokenOnLimitOrder: number;
|
|
3419
3348
|
flags: number;
|
|
3420
3349
|
pool: string;
|
|
3421
3350
|
poolSqrtPrice: bigint;
|
|
@@ -3507,13 +3436,9 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3507
3436
|
positionMint: string;
|
|
3508
3437
|
tickLowerIndex: number;
|
|
3509
3438
|
tickUpperIndex: number;
|
|
3510
|
-
tickEntryIndex: number;
|
|
3511
|
-
tickStopLossIndex: number;
|
|
3512
|
-
tickTakeProfitIndex: number;
|
|
3513
3439
|
entrySqrtPrice: bigint;
|
|
3514
3440
|
lowerLimitOrderSqrtPrice: bigint;
|
|
3515
3441
|
upperLimitOrderSqrtPrice: bigint;
|
|
3516
|
-
swapToTokenOnLimitOrder: number;
|
|
3517
3442
|
flags: number;
|
|
3518
3443
|
pool: string;
|
|
3519
3444
|
poolSqrtPrice: bigint;
|
|
@@ -3605,13 +3530,9 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3605
3530
|
positionMint: string;
|
|
3606
3531
|
tickLowerIndex: number;
|
|
3607
3532
|
tickUpperIndex: number;
|
|
3608
|
-
tickEntryIndex: number;
|
|
3609
|
-
tickStopLossIndex: number;
|
|
3610
|
-
tickTakeProfitIndex: number;
|
|
3611
3533
|
entrySqrtPrice: bigint;
|
|
3612
3534
|
lowerLimitOrderSqrtPrice: bigint;
|
|
3613
3535
|
upperLimitOrderSqrtPrice: bigint;
|
|
3614
|
-
swapToTokenOnLimitOrder: number;
|
|
3615
3536
|
flags: number;
|
|
3616
3537
|
pool: string;
|
|
3617
3538
|
poolSqrtPrice: bigint;
|
|
@@ -4701,13 +4622,13 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4701
4622
|
usd: number;
|
|
4702
4623
|
}>;
|
|
4703
4624
|
pnl: z.ZodNullable<z.ZodObject<{
|
|
4704
|
-
|
|
4625
|
+
usd: z.ZodNumber;
|
|
4705
4626
|
bps: z.ZodNumber;
|
|
4706
4627
|
}, "strip", z.ZodTypeAny, {
|
|
4707
|
-
|
|
4628
|
+
usd: number;
|
|
4708
4629
|
bps: number;
|
|
4709
4630
|
}, {
|
|
4710
|
-
|
|
4631
|
+
usd: number;
|
|
4711
4632
|
bps: number;
|
|
4712
4633
|
}>>;
|
|
4713
4634
|
txSignature: z.ZodNullable<z.ZodString>;
|
|
@@ -4735,7 +4656,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4735
4656
|
usd: number;
|
|
4736
4657
|
};
|
|
4737
4658
|
pnl: {
|
|
4738
|
-
|
|
4659
|
+
usd: number;
|
|
4739
4660
|
bps: number;
|
|
4740
4661
|
} | null;
|
|
4741
4662
|
txSignature: string | null;
|
|
@@ -4763,7 +4684,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4763
4684
|
usd: number;
|
|
4764
4685
|
};
|
|
4765
4686
|
pnl: {
|
|
4766
|
-
|
|
4687
|
+
usd: number;
|
|
4767
4688
|
bps: number;
|
|
4768
4689
|
} | null;
|
|
4769
4690
|
txSignature: string | null;
|
|
@@ -4816,13 +4737,13 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4816
4737
|
usd: number;
|
|
4817
4738
|
}>;
|
|
4818
4739
|
pnl: z.ZodNullable<z.ZodObject<{
|
|
4819
|
-
|
|
4740
|
+
usd: z.ZodNumber;
|
|
4820
4741
|
bps: z.ZodNumber;
|
|
4821
4742
|
}, "strip", z.ZodTypeAny, {
|
|
4822
|
-
|
|
4743
|
+
usd: number;
|
|
4823
4744
|
bps: number;
|
|
4824
4745
|
}, {
|
|
4825
|
-
|
|
4746
|
+
usd: number;
|
|
4826
4747
|
bps: number;
|
|
4827
4748
|
}>>;
|
|
4828
4749
|
txSignature: z.ZodNullable<z.ZodString>;
|
|
@@ -4850,7 +4771,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4850
4771
|
usd: number;
|
|
4851
4772
|
};
|
|
4852
4773
|
pnl: {
|
|
4853
|
-
|
|
4774
|
+
usd: number;
|
|
4854
4775
|
bps: number;
|
|
4855
4776
|
} | null;
|
|
4856
4777
|
txSignature: string | null;
|
|
@@ -4878,7 +4799,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4878
4799
|
usd: number;
|
|
4879
4800
|
};
|
|
4880
4801
|
pnl: {
|
|
4881
|
-
|
|
4802
|
+
usd: number;
|
|
4882
4803
|
bps: number;
|
|
4883
4804
|
} | null;
|
|
4884
4805
|
txSignature: string | null;
|
|
@@ -4913,7 +4834,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4913
4834
|
usd: number;
|
|
4914
4835
|
};
|
|
4915
4836
|
pnl: {
|
|
4916
|
-
|
|
4837
|
+
usd: number;
|
|
4917
4838
|
bps: number;
|
|
4918
4839
|
} | null;
|
|
4919
4840
|
txSignature: string | null;
|
|
@@ -4948,7 +4869,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4948
4869
|
usd: number;
|
|
4949
4870
|
};
|
|
4950
4871
|
pnl: {
|
|
4951
|
-
|
|
4872
|
+
usd: number;
|
|
4952
4873
|
bps: number;
|
|
4953
4874
|
} | null;
|
|
4954
4875
|
txSignature: string | null;
|
|
@@ -4983,7 +4904,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
4983
4904
|
usd: number;
|
|
4984
4905
|
};
|
|
4985
4906
|
pnl: {
|
|
4986
|
-
|
|
4907
|
+
usd: number;
|
|
4987
4908
|
bps: number;
|
|
4988
4909
|
} | null;
|
|
4989
4910
|
txSignature: string | null;
|
|
@@ -5018,7 +4939,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
5018
4939
|
usd: number;
|
|
5019
4940
|
};
|
|
5020
4941
|
pnl: {
|
|
5021
|
-
|
|
4942
|
+
usd: number;
|
|
5022
4943
|
bps: number;
|
|
5023
4944
|
} | null;
|
|
5024
4945
|
txSignature: string | null;
|
package/dist/index.js
CHANGED
|
@@ -354,22 +354,9 @@ var TunaPosition = import_zod.z.object({
|
|
|
354
354
|
liquidity: import_zod.z.coerce.bigint(),
|
|
355
355
|
tickLowerIndex: import_zod.z.number(),
|
|
356
356
|
tickUpperIndex: import_zod.z.number(),
|
|
357
|
-
/**
|
|
358
|
-
* @deprecated Use entrySqrtPrice
|
|
359
|
-
*/
|
|
360
|
-
tickEntryIndex: import_zod.z.number(),
|
|
361
|
-
/**
|
|
362
|
-
* @deprecated Use lowerLimitOrderSqrtPrice
|
|
363
|
-
*/
|
|
364
|
-
tickStopLossIndex: import_zod.z.number(),
|
|
365
|
-
/**
|
|
366
|
-
* @deprecated Use upperLimitOrderSqrtPrice
|
|
367
|
-
*/
|
|
368
|
-
tickTakeProfitIndex: import_zod.z.number(),
|
|
369
357
|
entrySqrtPrice: import_zod.z.coerce.bigint(),
|
|
370
358
|
lowerLimitOrderSqrtPrice: import_zod.z.coerce.bigint(),
|
|
371
359
|
upperLimitOrderSqrtPrice: import_zod.z.coerce.bigint(),
|
|
372
|
-
swapToTokenOnLimitOrder: import_zod.z.number(),
|
|
373
360
|
flags: import_zod.z.number(),
|
|
374
361
|
pool: import_zod.z.string(),
|
|
375
362
|
poolSqrtPrice: import_zod.z.coerce.bigint(),
|
|
@@ -483,7 +470,12 @@ var TradeHistoryEntry = import_zod.z.object({
|
|
|
483
470
|
baseToken: amountWithUsd,
|
|
484
471
|
quoteToken: amountWithUsd,
|
|
485
472
|
fee: amountWithUsd,
|
|
486
|
-
pnl: import_zod.z.nullable(
|
|
473
|
+
pnl: import_zod.z.nullable(
|
|
474
|
+
import_zod.z.object({
|
|
475
|
+
usd: import_zod.z.number(),
|
|
476
|
+
bps: import_zod.z.number()
|
|
477
|
+
})
|
|
478
|
+
),
|
|
487
479
|
txSignature: import_zod.z.nullable(import_zod.z.string()),
|
|
488
480
|
positionAddress: import_zod.z.nullable(import_zod.z.string()),
|
|
489
481
|
slot: import_zod.z.coerce.bigint(),
|
package/dist/index.mjs
CHANGED
|
@@ -319,22 +319,9 @@ var TunaPosition = z.object({
|
|
|
319
319
|
liquidity: z.coerce.bigint(),
|
|
320
320
|
tickLowerIndex: z.number(),
|
|
321
321
|
tickUpperIndex: z.number(),
|
|
322
|
-
/**
|
|
323
|
-
* @deprecated Use entrySqrtPrice
|
|
324
|
-
*/
|
|
325
|
-
tickEntryIndex: z.number(),
|
|
326
|
-
/**
|
|
327
|
-
* @deprecated Use lowerLimitOrderSqrtPrice
|
|
328
|
-
*/
|
|
329
|
-
tickStopLossIndex: z.number(),
|
|
330
|
-
/**
|
|
331
|
-
* @deprecated Use upperLimitOrderSqrtPrice
|
|
332
|
-
*/
|
|
333
|
-
tickTakeProfitIndex: z.number(),
|
|
334
322
|
entrySqrtPrice: z.coerce.bigint(),
|
|
335
323
|
lowerLimitOrderSqrtPrice: z.coerce.bigint(),
|
|
336
324
|
upperLimitOrderSqrtPrice: z.coerce.bigint(),
|
|
337
|
-
swapToTokenOnLimitOrder: z.number(),
|
|
338
325
|
flags: z.number(),
|
|
339
326
|
pool: z.string(),
|
|
340
327
|
poolSqrtPrice: z.coerce.bigint(),
|
|
@@ -448,7 +435,12 @@ var TradeHistoryEntry = z.object({
|
|
|
448
435
|
baseToken: amountWithUsd,
|
|
449
436
|
quoteToken: amountWithUsd,
|
|
450
437
|
fee: amountWithUsd,
|
|
451
|
-
pnl: z.nullable(
|
|
438
|
+
pnl: z.nullable(
|
|
439
|
+
z.object({
|
|
440
|
+
usd: z.number(),
|
|
441
|
+
bps: z.number()
|
|
442
|
+
})
|
|
443
|
+
),
|
|
452
444
|
txSignature: z.nullable(z.string()),
|
|
453
445
|
positionAddress: z.nullable(z.string()),
|
|
454
446
|
slot: z.coerce.bigint(),
|