@crypticdot/defituna-api 4.0.1 → 4.0.3
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.cjs +131 -80
- package/dist/index.d.cts +123 -14
- package/dist/index.d.ts +123 -14
- package/dist/index.js +126 -80
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -184,6 +184,7 @@ interface StreamEvent<TData = unknown> {
|
|
|
184
184
|
type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
|
|
185
185
|
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
186
186
|
};
|
|
187
|
+
declare const createSseClient: <TData = unknown>({ onRequest, onSseError, onSseEvent, responseTransformer, responseValidator, sseDefaultRetryDelay, sseMaxRetryAttempts, sseMaxRetryDelay, sseSleepFn, url, ...options }: ServerSentEventsOptions) => ServerSentEventsResult<TData>;
|
|
187
188
|
|
|
188
189
|
type ErrInterceptor<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
|
|
189
190
|
type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
|
|
@@ -1131,10 +1132,12 @@ type TunaLpPositionActionComposite = {
|
|
|
1131
1132
|
position?: null | TunaLpPositionValue;
|
|
1132
1133
|
prices?: null | TunaLpPositionTokenPrices;
|
|
1133
1134
|
protocolFees?: null | TunaLpPositionTransfer;
|
|
1135
|
+
swaps?: null | TunaLpPositionInnerSwaps;
|
|
1134
1136
|
toLending?: null | TunaLpPositionTransfer;
|
|
1135
1137
|
toOwner?: null | TunaLpPositionTransfer;
|
|
1136
1138
|
toParameters?: null | TunaLpPositionParameters;
|
|
1137
1139
|
toPosition?: null | TunaLpPositionValue;
|
|
1140
|
+
triggerOrder?: null | TunaLpPositionTriggerOrder;
|
|
1138
1141
|
withdrawPercent?: number | null;
|
|
1139
1142
|
};
|
|
1140
1143
|
type TunaLpPositionActionDto = {
|
|
@@ -1183,6 +1186,14 @@ type TunaLpPositionFlags = {
|
|
|
1183
1186
|
lowerLimitOrderSwapToToken?: null | TunaPositionPoolToken;
|
|
1184
1187
|
upperLimitOrderSwapToToken?: null | TunaPositionPoolToken;
|
|
1185
1188
|
};
|
|
1189
|
+
type TunaLpPositionInnerSwaps = {
|
|
1190
|
+
aToB: boolean;
|
|
1191
|
+
amountIn: number;
|
|
1192
|
+
amountOut: number;
|
|
1193
|
+
feeA: number;
|
|
1194
|
+
feeB: number;
|
|
1195
|
+
feeUsd: number;
|
|
1196
|
+
};
|
|
1186
1197
|
declare const TunaLpPositionLimitOrderSwap: {
|
|
1187
1198
|
readonly NO_SWAP: "no_swap";
|
|
1188
1199
|
readonly SWAP_TO_TOKEN_A: "swap_to_token_a";
|
|
@@ -1206,15 +1217,27 @@ declare const TunaLpPositionRebalance: {
|
|
|
1206
1217
|
};
|
|
1207
1218
|
type TunaLpPositionRebalance = typeof TunaLpPositionRebalance[keyof typeof TunaLpPositionRebalance];
|
|
1208
1219
|
type TunaLpPositionTokenPrices = {
|
|
1209
|
-
|
|
1210
|
-
|
|
1220
|
+
poolPrice?: number | null;
|
|
1221
|
+
priceUsdA: number;
|
|
1222
|
+
priceUsdB: number;
|
|
1211
1223
|
};
|
|
1212
1224
|
type TunaLpPositionTransfer = {
|
|
1213
1225
|
amountA: number;
|
|
1214
1226
|
amountB: number;
|
|
1215
1227
|
amountUsd: number;
|
|
1216
1228
|
};
|
|
1229
|
+
type TunaLpPositionTriggerOrder = {
|
|
1230
|
+
triggerPrice?: number | null;
|
|
1231
|
+
triggerType: TunaLpPositionTriggerOrderType;
|
|
1232
|
+
};
|
|
1233
|
+
declare const TunaLpPositionTriggerOrderType: {
|
|
1234
|
+
readonly LOWER_LIMIT_ORDER: "lower_limit_order";
|
|
1235
|
+
readonly UPPER_LIMIT_ORDER: "upper_limit_order";
|
|
1236
|
+
readonly LIQUIDATION: "liquidation";
|
|
1237
|
+
};
|
|
1238
|
+
type TunaLpPositionTriggerOrderType = typeof TunaLpPositionTriggerOrderType[keyof typeof TunaLpPositionTriggerOrderType];
|
|
1217
1239
|
type TunaLpPositionValue = {
|
|
1240
|
+
closed: boolean;
|
|
1218
1241
|
leverage: number;
|
|
1219
1242
|
loanFundsA: number;
|
|
1220
1243
|
loanFundsB: number;
|
|
@@ -1633,7 +1656,7 @@ type GetPoolsData = {
|
|
|
1633
1656
|
body?: never;
|
|
1634
1657
|
path?: never;
|
|
1635
1658
|
query?: {
|
|
1636
|
-
provider?:
|
|
1659
|
+
provider?: null | PoolProvider;
|
|
1637
1660
|
};
|
|
1638
1661
|
url: '/v1/pools';
|
|
1639
1662
|
};
|
|
@@ -2754,7 +2777,7 @@ declare class TunaBackendSdk extends HeyApiClient {
|
|
|
2754
2777
|
* Request all pools
|
|
2755
2778
|
*/
|
|
2756
2779
|
getPools<ThrowOnError extends boolean = false>(parameters?: {
|
|
2757
|
-
provider?:
|
|
2780
|
+
provider?: null | PoolProvider;
|
|
2758
2781
|
}, options?: Options<never, ThrowOnError>): RequestResult<GetPoolsResponses, GetPoolsErrors, ThrowOnError, "fields">;
|
|
2759
2782
|
/**
|
|
2760
2783
|
* Request pool data
|
|
@@ -3552,6 +3575,14 @@ declare const zTunaLpPositionAutoCompounding: z.ZodEnum<{
|
|
|
3552
3575
|
with_leverage: "with_leverage";
|
|
3553
3576
|
without_leverage: "without_leverage";
|
|
3554
3577
|
}>;
|
|
3578
|
+
declare const zTunaLpPositionInnerSwaps: z.ZodObject<{
|
|
3579
|
+
aToB: z.ZodBoolean;
|
|
3580
|
+
amountIn: z.ZodNumber;
|
|
3581
|
+
amountOut: z.ZodNumber;
|
|
3582
|
+
feeA: z.ZodNumber;
|
|
3583
|
+
feeB: z.ZodNumber;
|
|
3584
|
+
feeUsd: z.ZodNumber;
|
|
3585
|
+
}, z.core.$strip>;
|
|
3555
3586
|
declare const zTunaLpPositionLimitOrderSwap: z.ZodEnum<{
|
|
3556
3587
|
no_swap: "no_swap";
|
|
3557
3588
|
swap_to_token_a: "swap_to_token_a";
|
|
@@ -3588,15 +3619,30 @@ declare const zTunaLpPositionParameters: z.ZodObject<{
|
|
|
3588
3619
|
upperPrice: z.ZodNumber;
|
|
3589
3620
|
}, z.core.$strip>;
|
|
3590
3621
|
declare const zTunaLpPositionTokenPrices: z.ZodObject<{
|
|
3591
|
-
|
|
3592
|
-
|
|
3622
|
+
poolPrice: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3623
|
+
priceUsdA: z.ZodNumber;
|
|
3624
|
+
priceUsdB: z.ZodNumber;
|
|
3593
3625
|
}, z.core.$strip>;
|
|
3594
3626
|
declare const zTunaLpPositionTransfer: z.ZodObject<{
|
|
3595
3627
|
amountA: z.ZodNumber;
|
|
3596
3628
|
amountB: z.ZodNumber;
|
|
3597
3629
|
amountUsd: z.ZodNumber;
|
|
3598
3630
|
}, z.core.$strip>;
|
|
3631
|
+
declare const zTunaLpPositionTriggerOrderType: z.ZodEnum<{
|
|
3632
|
+
liquidation: "liquidation";
|
|
3633
|
+
lower_limit_order: "lower_limit_order";
|
|
3634
|
+
upper_limit_order: "upper_limit_order";
|
|
3635
|
+
}>;
|
|
3636
|
+
declare const zTunaLpPositionTriggerOrder: z.ZodObject<{
|
|
3637
|
+
triggerPrice: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3638
|
+
triggerType: z.ZodEnum<{
|
|
3639
|
+
liquidation: "liquidation";
|
|
3640
|
+
lower_limit_order: "lower_limit_order";
|
|
3641
|
+
upper_limit_order: "upper_limit_order";
|
|
3642
|
+
}>;
|
|
3643
|
+
}, z.core.$strip>;
|
|
3599
3644
|
declare const zTunaLpPositionValue: z.ZodObject<{
|
|
3645
|
+
closed: z.ZodBoolean;
|
|
3600
3646
|
leverage: z.ZodNumber;
|
|
3601
3647
|
loanFundsA: z.ZodNumber;
|
|
3602
3648
|
loanFundsB: z.ZodNumber;
|
|
@@ -3649,6 +3695,7 @@ declare const zTunaLpPositionActionComposite: z.ZodObject<{
|
|
|
3649
3695
|
upperPrice: z.ZodNumber;
|
|
3650
3696
|
}, z.core.$strip>]>>;
|
|
3651
3697
|
fromPosition: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
3698
|
+
closed: z.ZodBoolean;
|
|
3652
3699
|
leverage: z.ZodNumber;
|
|
3653
3700
|
loanFundsA: z.ZodNumber;
|
|
3654
3701
|
loanFundsB: z.ZodNumber;
|
|
@@ -3684,6 +3731,7 @@ declare const zTunaLpPositionActionComposite: z.ZodObject<{
|
|
|
3684
3731
|
upperPrice: z.ZodNumber;
|
|
3685
3732
|
}, z.core.$strip>]>>;
|
|
3686
3733
|
position: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
3734
|
+
closed: z.ZodBoolean;
|
|
3687
3735
|
leverage: z.ZodNumber;
|
|
3688
3736
|
loanFundsA: z.ZodNumber;
|
|
3689
3737
|
loanFundsB: z.ZodNumber;
|
|
@@ -3693,14 +3741,23 @@ declare const zTunaLpPositionActionComposite: z.ZodObject<{
|
|
|
3693
3741
|
totalValueUsd: z.ZodNumber;
|
|
3694
3742
|
}, z.core.$strip>]>>;
|
|
3695
3743
|
prices: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
3696
|
-
|
|
3697
|
-
|
|
3744
|
+
poolPrice: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3745
|
+
priceUsdA: z.ZodNumber;
|
|
3746
|
+
priceUsdB: z.ZodNumber;
|
|
3698
3747
|
}, z.core.$strip>]>>;
|
|
3699
3748
|
protocolFees: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
3700
3749
|
amountA: z.ZodNumber;
|
|
3701
3750
|
amountB: z.ZodNumber;
|
|
3702
3751
|
amountUsd: z.ZodNumber;
|
|
3703
3752
|
}, z.core.$strip>]>>;
|
|
3753
|
+
swaps: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
3754
|
+
aToB: z.ZodBoolean;
|
|
3755
|
+
amountIn: z.ZodNumber;
|
|
3756
|
+
amountOut: z.ZodNumber;
|
|
3757
|
+
feeA: z.ZodNumber;
|
|
3758
|
+
feeB: z.ZodNumber;
|
|
3759
|
+
feeUsd: z.ZodNumber;
|
|
3760
|
+
}, z.core.$strip>]>>;
|
|
3704
3761
|
toLending: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
3705
3762
|
amountA: z.ZodNumber;
|
|
3706
3763
|
amountB: z.ZodNumber;
|
|
@@ -3738,6 +3795,7 @@ declare const zTunaLpPositionActionComposite: z.ZodObject<{
|
|
|
3738
3795
|
upperPrice: z.ZodNumber;
|
|
3739
3796
|
}, z.core.$strip>]>>;
|
|
3740
3797
|
toPosition: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
3798
|
+
closed: z.ZodBoolean;
|
|
3741
3799
|
leverage: z.ZodNumber;
|
|
3742
3800
|
loanFundsA: z.ZodNumber;
|
|
3743
3801
|
loanFundsB: z.ZodNumber;
|
|
@@ -3746,6 +3804,14 @@ declare const zTunaLpPositionActionComposite: z.ZodObject<{
|
|
|
3746
3804
|
totalValueB: z.ZodNumber;
|
|
3747
3805
|
totalValueUsd: z.ZodNumber;
|
|
3748
3806
|
}, z.core.$strip>]>>;
|
|
3807
|
+
triggerOrder: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
3808
|
+
triggerPrice: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3809
|
+
triggerType: z.ZodEnum<{
|
|
3810
|
+
liquidation: "liquidation";
|
|
3811
|
+
lower_limit_order: "lower_limit_order";
|
|
3812
|
+
upper_limit_order: "upper_limit_order";
|
|
3813
|
+
}>;
|
|
3814
|
+
}, z.core.$strip>]>>;
|
|
3749
3815
|
withdrawPercent: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3750
3816
|
}, z.core.$strip>;
|
|
3751
3817
|
declare const zTunaLpPositionsActionType: z.ZodEnum<{
|
|
@@ -3825,6 +3891,7 @@ declare const zTunaLpPositionActionDto: z.ZodObject<{
|
|
|
3825
3891
|
upperPrice: z.ZodNumber;
|
|
3826
3892
|
}, z.core.$strip>]>>;
|
|
3827
3893
|
fromPosition: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
3894
|
+
closed: z.ZodBoolean;
|
|
3828
3895
|
leverage: z.ZodNumber;
|
|
3829
3896
|
loanFundsA: z.ZodNumber;
|
|
3830
3897
|
loanFundsB: z.ZodNumber;
|
|
@@ -3860,6 +3927,7 @@ declare const zTunaLpPositionActionDto: z.ZodObject<{
|
|
|
3860
3927
|
upperPrice: z.ZodNumber;
|
|
3861
3928
|
}, z.core.$strip>]>>;
|
|
3862
3929
|
position: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
3930
|
+
closed: z.ZodBoolean;
|
|
3863
3931
|
leverage: z.ZodNumber;
|
|
3864
3932
|
loanFundsA: z.ZodNumber;
|
|
3865
3933
|
loanFundsB: z.ZodNumber;
|
|
@@ -3869,14 +3937,23 @@ declare const zTunaLpPositionActionDto: z.ZodObject<{
|
|
|
3869
3937
|
totalValueUsd: z.ZodNumber;
|
|
3870
3938
|
}, z.core.$strip>]>>;
|
|
3871
3939
|
prices: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
3872
|
-
|
|
3873
|
-
|
|
3940
|
+
poolPrice: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3941
|
+
priceUsdA: z.ZodNumber;
|
|
3942
|
+
priceUsdB: z.ZodNumber;
|
|
3874
3943
|
}, z.core.$strip>]>>;
|
|
3875
3944
|
protocolFees: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
3876
3945
|
amountA: z.ZodNumber;
|
|
3877
3946
|
amountB: z.ZodNumber;
|
|
3878
3947
|
amountUsd: z.ZodNumber;
|
|
3879
3948
|
}, z.core.$strip>]>>;
|
|
3949
|
+
swaps: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
3950
|
+
aToB: z.ZodBoolean;
|
|
3951
|
+
amountIn: z.ZodNumber;
|
|
3952
|
+
amountOut: z.ZodNumber;
|
|
3953
|
+
feeA: z.ZodNumber;
|
|
3954
|
+
feeB: z.ZodNumber;
|
|
3955
|
+
feeUsd: z.ZodNumber;
|
|
3956
|
+
}, z.core.$strip>]>>;
|
|
3880
3957
|
toLending: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
3881
3958
|
amountA: z.ZodNumber;
|
|
3882
3959
|
amountB: z.ZodNumber;
|
|
@@ -3914,6 +3991,7 @@ declare const zTunaLpPositionActionDto: z.ZodObject<{
|
|
|
3914
3991
|
upperPrice: z.ZodNumber;
|
|
3915
3992
|
}, z.core.$strip>]>>;
|
|
3916
3993
|
toPosition: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
3994
|
+
closed: z.ZodBoolean;
|
|
3917
3995
|
leverage: z.ZodNumber;
|
|
3918
3996
|
loanFundsA: z.ZodNumber;
|
|
3919
3997
|
loanFundsB: z.ZodNumber;
|
|
@@ -3922,6 +4000,14 @@ declare const zTunaLpPositionActionDto: z.ZodObject<{
|
|
|
3922
4000
|
totalValueB: z.ZodNumber;
|
|
3923
4001
|
totalValueUsd: z.ZodNumber;
|
|
3924
4002
|
}, z.core.$strip>]>>;
|
|
4003
|
+
triggerOrder: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
4004
|
+
triggerPrice: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
4005
|
+
triggerType: z.ZodEnum<{
|
|
4006
|
+
liquidation: "liquidation";
|
|
4007
|
+
lower_limit_order: "lower_limit_order";
|
|
4008
|
+
upper_limit_order: "upper_limit_order";
|
|
4009
|
+
}>;
|
|
4010
|
+
}, z.core.$strip>]>>;
|
|
3925
4011
|
withdrawPercent: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
3926
4012
|
}, z.core.$strip>;
|
|
3927
4013
|
txSignature: z.ZodString;
|
|
@@ -8061,7 +8147,10 @@ declare const zGetPoolsData: z.ZodObject<{
|
|
|
8061
8147
|
body: z.ZodOptional<z.ZodNever>;
|
|
8062
8148
|
path: z.ZodOptional<z.ZodNever>;
|
|
8063
8149
|
query: z.ZodOptional<z.ZodObject<{
|
|
8064
|
-
provider: z.ZodOptional<z.
|
|
8150
|
+
provider: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
|
|
8151
|
+
orca: "orca";
|
|
8152
|
+
fusion: "fusion";
|
|
8153
|
+
}>]>>;
|
|
8065
8154
|
}, z.core.$strip>>;
|
|
8066
8155
|
}, z.core.$strip>;
|
|
8067
8156
|
declare const zGetPoolsResponse: z.ZodObject<{
|
|
@@ -9826,6 +9915,7 @@ declare const zGetLpPositionActionsResponse: z.ZodObject<{
|
|
|
9826
9915
|
upperPrice: z.ZodNumber;
|
|
9827
9916
|
}, z.core.$strip>]>>;
|
|
9828
9917
|
fromPosition: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
9918
|
+
closed: z.ZodBoolean;
|
|
9829
9919
|
leverage: z.ZodNumber;
|
|
9830
9920
|
loanFundsA: z.ZodNumber;
|
|
9831
9921
|
loanFundsB: z.ZodNumber;
|
|
@@ -9861,6 +9951,7 @@ declare const zGetLpPositionActionsResponse: z.ZodObject<{
|
|
|
9861
9951
|
upperPrice: z.ZodNumber;
|
|
9862
9952
|
}, z.core.$strip>]>>;
|
|
9863
9953
|
position: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
9954
|
+
closed: z.ZodBoolean;
|
|
9864
9955
|
leverage: z.ZodNumber;
|
|
9865
9956
|
loanFundsA: z.ZodNumber;
|
|
9866
9957
|
loanFundsB: z.ZodNumber;
|
|
@@ -9870,14 +9961,23 @@ declare const zGetLpPositionActionsResponse: z.ZodObject<{
|
|
|
9870
9961
|
totalValueUsd: z.ZodNumber;
|
|
9871
9962
|
}, z.core.$strip>]>>;
|
|
9872
9963
|
prices: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
9873
|
-
|
|
9874
|
-
|
|
9964
|
+
poolPrice: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
9965
|
+
priceUsdA: z.ZodNumber;
|
|
9966
|
+
priceUsdB: z.ZodNumber;
|
|
9875
9967
|
}, z.core.$strip>]>>;
|
|
9876
9968
|
protocolFees: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
9877
9969
|
amountA: z.ZodNumber;
|
|
9878
9970
|
amountB: z.ZodNumber;
|
|
9879
9971
|
amountUsd: z.ZodNumber;
|
|
9880
9972
|
}, z.core.$strip>]>>;
|
|
9973
|
+
swaps: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
9974
|
+
aToB: z.ZodBoolean;
|
|
9975
|
+
amountIn: z.ZodNumber;
|
|
9976
|
+
amountOut: z.ZodNumber;
|
|
9977
|
+
feeA: z.ZodNumber;
|
|
9978
|
+
feeB: z.ZodNumber;
|
|
9979
|
+
feeUsd: z.ZodNumber;
|
|
9980
|
+
}, z.core.$strip>]>>;
|
|
9881
9981
|
toLending: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
9882
9982
|
amountA: z.ZodNumber;
|
|
9883
9983
|
amountB: z.ZodNumber;
|
|
@@ -9915,6 +10015,7 @@ declare const zGetLpPositionActionsResponse: z.ZodObject<{
|
|
|
9915
10015
|
upperPrice: z.ZodNumber;
|
|
9916
10016
|
}, z.core.$strip>]>>;
|
|
9917
10017
|
toPosition: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
10018
|
+
closed: z.ZodBoolean;
|
|
9918
10019
|
leverage: z.ZodNumber;
|
|
9919
10020
|
loanFundsA: z.ZodNumber;
|
|
9920
10021
|
loanFundsB: z.ZodNumber;
|
|
@@ -9923,6 +10024,14 @@ declare const zGetLpPositionActionsResponse: z.ZodObject<{
|
|
|
9923
10024
|
totalValueB: z.ZodNumber;
|
|
9924
10025
|
totalValueUsd: z.ZodNumber;
|
|
9925
10026
|
}, z.core.$strip>]>>;
|
|
10027
|
+
triggerOrder: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
10028
|
+
triggerPrice: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
10029
|
+
triggerType: z.ZodEnum<{
|
|
10030
|
+
liquidation: "liquidation";
|
|
10031
|
+
lower_limit_order: "lower_limit_order";
|
|
10032
|
+
upper_limit_order: "upper_limit_order";
|
|
10033
|
+
}>;
|
|
10034
|
+
}, z.core.$strip>]>>;
|
|
9926
10035
|
withdrawPercent: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
9927
10036
|
}, z.core.$strip>;
|
|
9928
10037
|
txSignature: z.ZodString;
|
|
@@ -10867,4 +10976,4 @@ declare class TunaBackendSdkError<TCause = unknown> extends Error {
|
|
|
10867
10976
|
declare const tunaSdkErrorInterceptor: (error: unknown, response?: Response) => TunaBackendSdkError<unknown>;
|
|
10868
10977
|
declare const isTunaSdkError: <TCause = unknown>(error: unknown) => error is TunaBackendSdkError<TCause>;
|
|
10869
10978
|
|
|
10870
|
-
export { type BadRequestErrorCodeErrorBody, type ClientOptions, type CloseSpotPositionQuoteDto, type DecreaseSpotPositionQuoteDto, type FeeAmountWithUsd, type FeesStatsGroupDto, type FieldError, type FusionFeesStatsGroupDto, type GetCloseSpotPositionQuoteData, type GetCloseSpotPositionQuoteError, type GetCloseSpotPositionQuoteErrors, type GetCloseSpotPositionQuoteResponse, type GetCloseSpotPositionQuoteResponseZodType, type GetCloseSpotPositionQuoteResponses, type GetDecreaseSpotPositionQuoteData, type GetDecreaseSpotPositionQuoteError, type GetDecreaseSpotPositionQuoteErrors, type GetDecreaseSpotPositionQuoteResponse, type GetDecreaseSpotPositionQuoteResponseZodType, type GetDecreaseSpotPositionQuoteResponses, type GetFeesStatsData, type GetFeesStatsError, type GetFeesStatsErrors, type GetFeesStatsResponse, type GetFeesStatsResponseZodType, type GetFeesStatsResponses, type GetFusionFeesStatsData, type GetFusionFeesStatsError, type GetFusionFeesStatsErrors, type GetFusionFeesStatsResponse, type GetFusionFeesStatsResponseZodType, type GetFusionFeesStatsResponses, type GetIncreaseSpotPositionQuoteData, type GetIncreaseSpotPositionQuoteError, type GetIncreaseSpotPositionQuoteErrors, type GetIncreaseSpotPositionQuoteResponse, type GetIncreaseSpotPositionQuoteResponseZodType, type GetIncreaseSpotPositionQuoteResponses, type GetLendingPositionData, type GetLendingPositionError, type GetLendingPositionErrors, type GetLendingPositionResponse, type GetLendingPositionResponseZodType, type GetLendingPositionResponses, type GetLendingPositionsData, type GetLendingPositionsError, type GetLendingPositionsErrors, type GetLendingPositionsResponse, type GetLendingPositionsResponseZodType, type GetLendingPositionsResponses, type GetLimitOrderData, type GetLimitOrderError, type GetLimitOrderError404Error, type GetLimitOrderError500Error, type GetLimitOrderErrors, type GetLimitOrderQuoteByInputData, type GetLimitOrderQuoteByInputError, type GetLimitOrderQuoteByInputErrors, type GetLimitOrderQuoteByInputResponse, type GetLimitOrderQuoteByInputResponseZodType, type GetLimitOrderQuoteByInputResponses, type GetLimitOrderQuoteByOutputData, type GetLimitOrderQuoteByOutputError, type GetLimitOrderQuoteByOutputErrors, type GetLimitOrderQuoteByOutputResponse, type GetLimitOrderQuoteByOutputResponseZodType, type GetLimitOrderQuoteByOutputResponses, type GetLimitOrderResponse, type GetLimitOrderResponseZodType, type GetLimitOrderResponses, type GetLimitOrdersData, type GetLimitOrdersError, type GetLimitOrdersErrors, type GetLimitOrdersResponse, type GetLimitOrdersResponseZodType, type GetLimitOrdersResponses, type GetLpPositionActionsData, type GetLpPositionActionsError, type GetLpPositionActionsErrors, type GetLpPositionActionsResponse, type GetLpPositionActionsResponseZodType, type GetLpPositionActionsResponses, type GetLpPositionsData, type GetLpPositionsError, type GetLpPositionsErrors, type GetLpPositionsResponse, type GetLpPositionsResponseZodType, type GetLpPositionsResponses, type GetLpSpotLeaderboardData, type GetLpSpotLeaderboardError, type GetLpSpotLeaderboardErrors, type GetLpSpotLeaderboardResponse, type GetLpSpotLeaderboardResponseZodType, type GetLpSpotLeaderboardResponses, type GetMarketData, type GetMarketError, type GetMarketErrors, type GetMarketResponse, type GetMarketResponseZodType, type GetMarketResponses, type GetMarketsData, type GetMarketsError, type GetMarketsErrors, type GetMarketsResponse, type GetMarketsResponseZodType, type GetMarketsResponses, type GetMintData, type GetMintError, type GetMintErrors, type GetMintResponse, type GetMintResponseZodType, type GetMintResponses, type GetMintsData, type GetMintsError, type GetMintsErrors, type GetMintsResponse, type GetMintsResponseZodType, type GetMintsResponses, type GetOraclePriceData, type GetOraclePriceError, type GetOraclePriceErrors, type GetOraclePriceResponse, type GetOraclePriceResponseZodType, type GetOraclePriceResponses, type GetOraclePricesData, type GetOraclePricesError, type GetOraclePricesErrors, type GetOraclePricesResponse, type GetOraclePricesResponseZodType, type GetOraclePricesResponses, type GetOrderHistoryData, type GetOrderHistoryError, type GetOrderHistoryErrors, type GetOrderHistoryResponse, type GetOrderHistoryResponseZodType, type GetOrderHistoryResponses, type GetPoolCandlesData, type GetPoolCandlesError, type GetPoolCandlesErrors, type GetPoolCandlesResponse, type GetPoolCandlesResponseZodType, type GetPoolCandlesResponses, type GetPoolData, type GetPoolError, type GetPoolErrors, type GetPoolOrderBookData, type GetPoolOrderBookError, type GetPoolOrderBookErrors, type GetPoolOrderBookResponse, type GetPoolOrderBookResponseZodType, type GetPoolOrderBookResponses, type GetPoolResponse, type GetPoolResponseZodType, type GetPoolResponses, type GetPoolSwapsData, type GetPoolSwapsError, type GetPoolSwapsErrors, type GetPoolSwapsResponse, type GetPoolSwapsResponseZodType, type GetPoolSwapsResponses, type GetPoolTicksData, type GetPoolTicksError, type GetPoolTicksErrors, type GetPoolTicksResponse, type GetPoolTicksResponseZodType, type GetPoolTicksResponses, type GetPoolsData, type GetPoolsError, type GetPoolsErrors, type GetPoolsResponse, type GetPoolsResponseZodType, type GetPoolsResponses, type GetPositionsStatsData, type GetPositionsStatsError, type GetPositionsStatsErrors, type GetPositionsStatsResponse, type GetPositionsStatsResponseZodType, type GetPositionsStatsResponses, type GetPositionsTotalData, type GetPositionsTotalError, type GetPositionsTotalErrors, type GetPositionsTotalResponse, type GetPositionsTotalResponseZodType, type GetPositionsTotalResponses, type GetSpotPositionData, type GetSpotPositionError, type GetSpotPositionErrors, type GetSpotPositionResponse, type GetSpotPositionResponseZodType, type GetSpotPositionResponses, type GetSpotPositionsData, type GetSpotPositionsError, type GetSpotPositionsErrors, type GetSpotPositionsResponse, type GetSpotPositionsResponseZodType, type GetSpotPositionsResponses, type GetStakingLeaderboardData, type GetStakingLeaderboardError, type GetStakingLeaderboardErrors, type GetStakingLeaderboardResponse, type GetStakingLeaderboardResponseZodType, type GetStakingLeaderboardResponses, type GetStakingRevenueStatsData, type GetStakingRevenueStatsError, type GetStakingRevenueStatsErrors, type GetStakingRevenueStatsResponse, type GetStakingRevenueStatsResponseZodType, type GetStakingRevenueStatsResponses, type GetStakingTreasuryData, type GetStakingTreasuryError, type GetStakingTreasuryErrors, type GetStakingTreasuryResponse, type GetStakingTreasuryResponseZodType, type GetStakingTreasuryResponses, type GetSwapQuoteByInputData, type GetSwapQuoteByInputError, type GetSwapQuoteByInputErrors, type GetSwapQuoteByInputResponse, type GetSwapQuoteByInputResponseZodType, type GetSwapQuoteByInputResponses, type GetSwapQuoteByOutputData, type GetSwapQuoteByOutputError, type GetSwapQuoteByOutputErrors, type GetSwapQuoteByOutputResponse, type GetSwapQuoteByOutputResponseZodType, type GetSwapQuoteByOutputResponses, type GetTradableAmountData, type GetTradableAmountError, type GetTradableAmountErrors, type GetTradableAmountResponse, type GetTradableAmountResponseZodType, type GetTradableAmountResponses, type GetTradeHistoryData, type GetTradeHistoryError, type GetTradeHistoryErrors, type GetTradeHistoryResponse, type GetTradeHistoryResponseZodType, type GetTradeHistoryResponses, type GetTunaPositionData, type GetTunaPositionError, type GetTunaPositionErrors, type GetTunaPositionResponse, type GetTunaPositionResponseZodType, type GetTunaPositionResponses, type GetTunaPositionsData, type GetTunaPositionsError, type GetTunaPositionsErrors, type GetTunaPositionsResponse, type GetTunaPositionsResponseZodType, type GetTunaPositionsResponses, type GetUserStakingPositionData, type GetUserStakingPositionError, type GetUserStakingPositionErrors, type GetUserStakingPositionHistoryData, type GetUserStakingPositionHistoryError, type GetUserStakingPositionHistoryErrors, type GetUserStakingPositionHistoryResponse, type GetUserStakingPositionHistoryResponseZodType, type GetUserStakingPositionHistoryResponses, type GetUserStakingPositionResponse, type GetUserStakingPositionResponseZodType, type GetUserStakingPositionResponses, type GetVaultData, type GetVaultError, type GetVaultErrors, type GetVaultHistoryData, type GetVaultHistoryError, type GetVaultHistoryErrors, type GetVaultHistoryResponse, type GetVaultHistoryResponseZodType, type GetVaultHistoryResponses, type GetVaultResponse, type GetVaultResponseZodType, type GetVaultResponses, type GetVaultsData, type GetVaultsError, type GetVaultsErrors, type GetVaultsResponse, type GetVaultsResponseZodType, type GetVaultsResponses, type HttpStatusData, type I128Dto, type I64Dto, type IncreaseSpotPositionQuoteDto, type InternalErrorCodeErrorBody, type LeaderboardError400BadRequest, type LeaderboardError400Error, type LeaderboardError500Error, type LeaderboardItemDto, LeaderboardPeriod, LeaderboardSortBy, type LendingPositionDto, type LimitOrderDto, type LimitOrderQuoteByInputDto, type LimitOrderQuoteByOutputDto, LimitOrderStatus, type LpPositionsError400BadRequest, type LpPositionsError400Error, type LpPositionsError500Error, type MarketDto, type MarketError404Error, type MarketError500Error, type MintDto, type MintError404Error, type MintError500Error, NotificationAction, NotificationEntity, type Options, type OraclePriceDto, type OraclePriceError404Error, type OraclePriceError500Error, type OrderBookDto, type OrderBookEntryDto, type OrderBookWrapper, type OrderHistoryEntryDto, OrderHistoryStatus, OrderHistoryType, OrderHistoryUiDirection, type PaginationMeta, type PoolDto, type PoolPriceCandleDto, PoolProvider, type PoolStatsDto, type PoolStatsGroupDto, type PoolStatsGroupEntryDto, type PoolSubscription, PoolSubscriptionTopic, type PoolSwapDto, type PoolTicksDto, type PoolsError400BadRequest, type PoolsError400Error, type PoolsError404Error, type PoolsError500Error, type PubkeyDto, type Snapshot, type SnapshotContainer, type SpotPositionError404Error, type SpotPositionError500Error, type SseData, type SseErrors, type SseResponse, type SseResponse2, type SseResponseInitialMessage, type SseResponseLendingPosition, type SseResponseLendingPositionPayload, type SseResponseOrderHistoryEntry, type SseResponseOrderHistoryEntryPayload, type SseResponsePoolSwap, type SseResponsePoolSwapPayload, type SseResponseSnapshot, type SseResponseStakingPosition, type SseResponseStakingPositionPayload, type SseResponseTradeHistoryEntry, type SseResponseTradeHistoryEntryPayload, type SseResponseZodType, type SseResponses, type StakingDepositsStatsDto, type StakingError400BadRequest, type StakingError400Error, type StakingError500Error, type StakingLeaderboardPositionDto, type StakingPositionActionDto, StakingPositionActionType, type StakingPositionDto, type StatsError400BadRequest, type StatsError400Error, type StatsError500Error, type StreamInitalMessage, type SubscriptionOptions, type SwapQuoteByInputDto, type SwapQuoteByOutputDto, type TickDto, type TokenAmountWithUsd, type TradableAmountDto, TradeHistoryAction, type TradeHistoryEntryDto, type TradeHistoryEntryPnlUsd, TradeHistoryUiDirection, type TreasuryDto, TunaBackendSdk, TunaBackendSdkError, type TunaLpPositionActionComposite, type TunaLpPositionActionDto, TunaLpPositionAutoCompound, TunaLpPositionAutoCompounding, type TunaLpPositionDto, type TunaLpPositionFlags, TunaLpPositionLimitOrderSwap, type TunaLpPositionParameters, TunaLpPositionRebalance, type TunaLpPositionTokenPrices, type TunaLpPositionTransfer, type TunaLpPositionValue, TunaLpPositionsActionType, type TunaLpPositionsStats, type TunaPositionDto, TunaPositionDtoState, TunaPositionMarketMaker, TunaPositionPoolToken, type TunaPositionTokenDepositedCollateral, type TunaPositionTokenPnl, type TunaPositionUsdPnl, type TunaSpotPositionDto, TunaSpotPositionDtoState, type U128Dto, type U64Dto, type UpdateStreamSubscriptionData, type UpdateStreamSubscriptionError, type UpdateStreamSubscriptionError404Error, type UpdateStreamSubscriptionError500Error, type UpdateStreamSubscriptionErrors, type UpdateStreamSubscriptionResponse, type UpdateStreamSubscriptionResponseZodType, type UpdateStreamSubscriptionResponses, type ValidationErrorCodeErrorBody, type ValidationErrorCodeValidationDetailsErrorBody, type VaultDto, type VaultError400BadRequest, type VaultError400Error, type VaultError404Error, type VaultError500Error, type VaultStatsDto, type VestingDto, type WalletSubscription, WalletSubscriptionTopic, createClient, isTunaSdkError, tunaSdkErrorInterceptor, unwrap, zBadRequestErrorCodeErrorBody, zCloseSpotPositionQuoteDto, zDecreaseSpotPositionQuoteDto, zFeeAmountWithUsd, zFeesStatsGroupDto, zFieldError, zFusionFeesStatsGroupDto, zGetCloseSpotPositionQuoteData, zGetCloseSpotPositionQuoteResponse, zGetDecreaseSpotPositionQuoteData, zGetDecreaseSpotPositionQuoteResponse, zGetFeesStatsData, zGetFeesStatsResponse, zGetFusionFeesStatsData, zGetFusionFeesStatsResponse, zGetIncreaseSpotPositionQuoteData, zGetIncreaseSpotPositionQuoteResponse, zGetLendingPositionData, zGetLendingPositionResponse, zGetLendingPositionsData, zGetLendingPositionsResponse, zGetLimitOrderData, zGetLimitOrderError404Error, zGetLimitOrderError500Error, zGetLimitOrderQuoteByInputData, zGetLimitOrderQuoteByInputResponse, zGetLimitOrderQuoteByOutputData, zGetLimitOrderQuoteByOutputResponse, zGetLimitOrderResponse, zGetLimitOrdersData, zGetLimitOrdersResponse, zGetLpPositionActionsData, zGetLpPositionActionsResponse, zGetLpPositionsData, zGetLpPositionsResponse, zGetLpSpotLeaderboardData, zGetLpSpotLeaderboardResponse, zGetMarketData, zGetMarketResponse, zGetMarketsData, zGetMarketsResponse, zGetMintData, zGetMintResponse, zGetMintsData, zGetMintsResponse, zGetOraclePriceData, zGetOraclePriceResponse, zGetOraclePricesData, zGetOraclePricesResponse, zGetOrderHistoryData, zGetOrderHistoryResponse, zGetPoolCandlesData, zGetPoolCandlesResponse, zGetPoolData, zGetPoolOrderBookData, zGetPoolOrderBookResponse, zGetPoolResponse, zGetPoolSwapsData, zGetPoolSwapsResponse, zGetPoolTicksData, zGetPoolTicksResponse, zGetPoolsData, zGetPoolsResponse, zGetPositionsStatsData, zGetPositionsStatsResponse, zGetPositionsTotalData, zGetPositionsTotalResponse, zGetSpotPositionData, zGetSpotPositionResponse, zGetSpotPositionsData, zGetSpotPositionsResponse, zGetStakingLeaderboardData, zGetStakingLeaderboardResponse, zGetStakingRevenueStatsData, zGetStakingRevenueStatsResponse, zGetStakingTreasuryData, zGetStakingTreasuryResponse, zGetSwapQuoteByInputData, zGetSwapQuoteByInputResponse, zGetSwapQuoteByOutputData, zGetSwapQuoteByOutputResponse, zGetTradableAmountData, zGetTradableAmountResponse, zGetTradeHistoryData, zGetTradeHistoryResponse, zGetTunaPositionData, zGetTunaPositionResponse, zGetTunaPositionsData, zGetTunaPositionsResponse, zGetUserStakingPositionData, zGetUserStakingPositionHistoryData, zGetUserStakingPositionHistoryResponse, zGetUserStakingPositionResponse, zGetVaultData, zGetVaultHistoryData, zGetVaultHistoryResponse, zGetVaultResponse, zGetVaultsData, zGetVaultsResponse, zHttpStatusData, zI128Dto, zI64Dto, zIncreaseSpotPositionQuoteDto, zInternalErrorCodeErrorBody, zLeaderboardError400BadRequest, zLeaderboardError400Error, zLeaderboardError500Error, zLeaderboardItemDto, zLeaderboardPeriod, zLeaderboardSortBy, zLendingPositionDto, zLimitOrderDto, zLimitOrderQuoteByInputDto, zLimitOrderQuoteByOutputDto, zLimitOrderStatus, zLpPositionsError400BadRequest, zLpPositionsError400Error, zLpPositionsError500Error, zMarketDto, zMarketError404Error, zMarketError500Error, zMintDto, zMintError404Error, zMintError500Error, zNotificationAction, zNotificationEntity, zOraclePriceDto, zOraclePriceError404Error, zOraclePriceError500Error, zOrderBookDto, zOrderBookEntryDto, zOrderBookWrapper, zOrderHistoryEntryDto, zOrderHistoryStatus, zOrderHistoryType, zOrderHistoryUiDirection, zPaginationMeta, zPoolDto, zPoolPriceCandleDto, zPoolProvider, zPoolStatsDto, zPoolStatsGroupDto, zPoolStatsGroupEntryDto, zPoolSubscription, zPoolSubscriptionTopic, zPoolSwapDto, zPoolTicksDto, zPoolsError400BadRequest, zPoolsError400Error, zPoolsError404Error, zPoolsError500Error, zPubkeyDto, zSnapshot, zSnapshotContainer, zSpotPositionError404Error, zSpotPositionError500Error, zSseData, zSseResponse, zSseResponse2, zSseResponseInitialMessage, zSseResponseLendingPosition, zSseResponseLendingPositionPayload, zSseResponseOrderHistoryEntry, zSseResponseOrderHistoryEntryPayload, zSseResponsePoolSwap, zSseResponsePoolSwapPayload, zSseResponseSnapshot, zSseResponseStakingPosition, zSseResponseStakingPositionPayload, zSseResponseTradeHistoryEntry, zSseResponseTradeHistoryEntryPayload, zStakingDepositsStatsDto, zStakingError400BadRequest, zStakingError400Error, zStakingError500Error, zStakingLeaderboardPositionDto, zStakingPositionActionDto, zStakingPositionActionType, zStakingPositionDto, zStatsError400BadRequest, zStatsError400Error, zStatsError500Error, zStreamInitalMessage, zSubscriptionOptions, zSwapQuoteByInputDto, zSwapQuoteByOutputDto, zTickDto, zTokenAmountWithUsd, zTradableAmountDto, zTradeHistoryAction, zTradeHistoryEntryDto, zTradeHistoryEntryPnlUsd, zTradeHistoryUiDirection, zTreasuryDto, zTunaLpPositionActionComposite, zTunaLpPositionActionDto, zTunaLpPositionAutoCompound, zTunaLpPositionAutoCompounding, zTunaLpPositionDto, zTunaLpPositionFlags, zTunaLpPositionLimitOrderSwap, zTunaLpPositionParameters, zTunaLpPositionRebalance, zTunaLpPositionTokenPrices, zTunaLpPositionTransfer, zTunaLpPositionValue, zTunaLpPositionsActionType, zTunaLpPositionsStats, zTunaPositionDto, zTunaPositionDtoState, zTunaPositionMarketMaker, zTunaPositionPoolToken, zTunaPositionTokenDepositedCollateral, zTunaPositionTokenPnl, zTunaPositionUsdPnl, zTunaSpotPositionDto, zTunaSpotPositionDtoState, zU128Dto, zU64Dto, zUpdateStreamSubscriptionData, zUpdateStreamSubscriptionError404Error, zUpdateStreamSubscriptionError500Error, zUpdateStreamSubscriptionResponse, zValidationErrorCodeErrorBody, zValidationErrorCodeValidationDetailsErrorBody, zVaultDto, zVaultError400BadRequest, zVaultError400Error, zVaultError404Error, zVaultError500Error, zVaultStatsDto, zVestingDto, zWalletSubscription, zWalletSubscriptionTopic };
|
|
10979
|
+
export { type BadRequestErrorCodeErrorBody, type ClientOptions, type CloseSpotPositionQuoteDto, type DecreaseSpotPositionQuoteDto, type FeeAmountWithUsd, type FeesStatsGroupDto, type FieldError, type FusionFeesStatsGroupDto, type GetCloseSpotPositionQuoteData, type GetCloseSpotPositionQuoteError, type GetCloseSpotPositionQuoteErrors, type GetCloseSpotPositionQuoteResponse, type GetCloseSpotPositionQuoteResponseZodType, type GetCloseSpotPositionQuoteResponses, type GetDecreaseSpotPositionQuoteData, type GetDecreaseSpotPositionQuoteError, type GetDecreaseSpotPositionQuoteErrors, type GetDecreaseSpotPositionQuoteResponse, type GetDecreaseSpotPositionQuoteResponseZodType, type GetDecreaseSpotPositionQuoteResponses, type GetFeesStatsData, type GetFeesStatsError, type GetFeesStatsErrors, type GetFeesStatsResponse, type GetFeesStatsResponseZodType, type GetFeesStatsResponses, type GetFusionFeesStatsData, type GetFusionFeesStatsError, type GetFusionFeesStatsErrors, type GetFusionFeesStatsResponse, type GetFusionFeesStatsResponseZodType, type GetFusionFeesStatsResponses, type GetIncreaseSpotPositionQuoteData, type GetIncreaseSpotPositionQuoteError, type GetIncreaseSpotPositionQuoteErrors, type GetIncreaseSpotPositionQuoteResponse, type GetIncreaseSpotPositionQuoteResponseZodType, type GetIncreaseSpotPositionQuoteResponses, type GetLendingPositionData, type GetLendingPositionError, type GetLendingPositionErrors, type GetLendingPositionResponse, type GetLendingPositionResponseZodType, type GetLendingPositionResponses, type GetLendingPositionsData, type GetLendingPositionsError, type GetLendingPositionsErrors, type GetLendingPositionsResponse, type GetLendingPositionsResponseZodType, type GetLendingPositionsResponses, type GetLimitOrderData, type GetLimitOrderError, type GetLimitOrderError404Error, type GetLimitOrderError500Error, type GetLimitOrderErrors, type GetLimitOrderQuoteByInputData, type GetLimitOrderQuoteByInputError, type GetLimitOrderQuoteByInputErrors, type GetLimitOrderQuoteByInputResponse, type GetLimitOrderQuoteByInputResponseZodType, type GetLimitOrderQuoteByInputResponses, type GetLimitOrderQuoteByOutputData, type GetLimitOrderQuoteByOutputError, type GetLimitOrderQuoteByOutputErrors, type GetLimitOrderQuoteByOutputResponse, type GetLimitOrderQuoteByOutputResponseZodType, type GetLimitOrderQuoteByOutputResponses, type GetLimitOrderResponse, type GetLimitOrderResponseZodType, type GetLimitOrderResponses, type GetLimitOrdersData, type GetLimitOrdersError, type GetLimitOrdersErrors, type GetLimitOrdersResponse, type GetLimitOrdersResponseZodType, type GetLimitOrdersResponses, type GetLpPositionActionsData, type GetLpPositionActionsError, type GetLpPositionActionsErrors, type GetLpPositionActionsResponse, type GetLpPositionActionsResponseZodType, type GetLpPositionActionsResponses, type GetLpPositionsData, type GetLpPositionsError, type GetLpPositionsErrors, type GetLpPositionsResponse, type GetLpPositionsResponseZodType, type GetLpPositionsResponses, type GetLpSpotLeaderboardData, type GetLpSpotLeaderboardError, type GetLpSpotLeaderboardErrors, type GetLpSpotLeaderboardResponse, type GetLpSpotLeaderboardResponseZodType, type GetLpSpotLeaderboardResponses, type GetMarketData, type GetMarketError, type GetMarketErrors, type GetMarketResponse, type GetMarketResponseZodType, type GetMarketResponses, type GetMarketsData, type GetMarketsError, type GetMarketsErrors, type GetMarketsResponse, type GetMarketsResponseZodType, type GetMarketsResponses, type GetMintData, type GetMintError, type GetMintErrors, type GetMintResponse, type GetMintResponseZodType, type GetMintResponses, type GetMintsData, type GetMintsError, type GetMintsErrors, type GetMintsResponse, type GetMintsResponseZodType, type GetMintsResponses, type GetOraclePriceData, type GetOraclePriceError, type GetOraclePriceErrors, type GetOraclePriceResponse, type GetOraclePriceResponseZodType, type GetOraclePriceResponses, type GetOraclePricesData, type GetOraclePricesError, type GetOraclePricesErrors, type GetOraclePricesResponse, type GetOraclePricesResponseZodType, type GetOraclePricesResponses, type GetOrderHistoryData, type GetOrderHistoryError, type GetOrderHistoryErrors, type GetOrderHistoryResponse, type GetOrderHistoryResponseZodType, type GetOrderHistoryResponses, type GetPoolCandlesData, type GetPoolCandlesError, type GetPoolCandlesErrors, type GetPoolCandlesResponse, type GetPoolCandlesResponseZodType, type GetPoolCandlesResponses, type GetPoolData, type GetPoolError, type GetPoolErrors, type GetPoolOrderBookData, type GetPoolOrderBookError, type GetPoolOrderBookErrors, type GetPoolOrderBookResponse, type GetPoolOrderBookResponseZodType, type GetPoolOrderBookResponses, type GetPoolResponse, type GetPoolResponseZodType, type GetPoolResponses, type GetPoolSwapsData, type GetPoolSwapsError, type GetPoolSwapsErrors, type GetPoolSwapsResponse, type GetPoolSwapsResponseZodType, type GetPoolSwapsResponses, type GetPoolTicksData, type GetPoolTicksError, type GetPoolTicksErrors, type GetPoolTicksResponse, type GetPoolTicksResponseZodType, type GetPoolTicksResponses, type GetPoolsData, type GetPoolsError, type GetPoolsErrors, type GetPoolsResponse, type GetPoolsResponseZodType, type GetPoolsResponses, type GetPositionsStatsData, type GetPositionsStatsError, type GetPositionsStatsErrors, type GetPositionsStatsResponse, type GetPositionsStatsResponseZodType, type GetPositionsStatsResponses, type GetPositionsTotalData, type GetPositionsTotalError, type GetPositionsTotalErrors, type GetPositionsTotalResponse, type GetPositionsTotalResponseZodType, type GetPositionsTotalResponses, type GetSpotPositionData, type GetSpotPositionError, type GetSpotPositionErrors, type GetSpotPositionResponse, type GetSpotPositionResponseZodType, type GetSpotPositionResponses, type GetSpotPositionsData, type GetSpotPositionsError, type GetSpotPositionsErrors, type GetSpotPositionsResponse, type GetSpotPositionsResponseZodType, type GetSpotPositionsResponses, type GetStakingLeaderboardData, type GetStakingLeaderboardError, type GetStakingLeaderboardErrors, type GetStakingLeaderboardResponse, type GetStakingLeaderboardResponseZodType, type GetStakingLeaderboardResponses, type GetStakingRevenueStatsData, type GetStakingRevenueStatsError, type GetStakingRevenueStatsErrors, type GetStakingRevenueStatsResponse, type GetStakingRevenueStatsResponseZodType, type GetStakingRevenueStatsResponses, type GetStakingTreasuryData, type GetStakingTreasuryError, type GetStakingTreasuryErrors, type GetStakingTreasuryResponse, type GetStakingTreasuryResponseZodType, type GetStakingTreasuryResponses, type GetSwapQuoteByInputData, type GetSwapQuoteByInputError, type GetSwapQuoteByInputErrors, type GetSwapQuoteByInputResponse, type GetSwapQuoteByInputResponseZodType, type GetSwapQuoteByInputResponses, type GetSwapQuoteByOutputData, type GetSwapQuoteByOutputError, type GetSwapQuoteByOutputErrors, type GetSwapQuoteByOutputResponse, type GetSwapQuoteByOutputResponseZodType, type GetSwapQuoteByOutputResponses, type GetTradableAmountData, type GetTradableAmountError, type GetTradableAmountErrors, type GetTradableAmountResponse, type GetTradableAmountResponseZodType, type GetTradableAmountResponses, type GetTradeHistoryData, type GetTradeHistoryError, type GetTradeHistoryErrors, type GetTradeHistoryResponse, type GetTradeHistoryResponseZodType, type GetTradeHistoryResponses, type GetTunaPositionData, type GetTunaPositionError, type GetTunaPositionErrors, type GetTunaPositionResponse, type GetTunaPositionResponseZodType, type GetTunaPositionResponses, type GetTunaPositionsData, type GetTunaPositionsError, type GetTunaPositionsErrors, type GetTunaPositionsResponse, type GetTunaPositionsResponseZodType, type GetTunaPositionsResponses, type GetUserStakingPositionData, type GetUserStakingPositionError, type GetUserStakingPositionErrors, type GetUserStakingPositionHistoryData, type GetUserStakingPositionHistoryError, type GetUserStakingPositionHistoryErrors, type GetUserStakingPositionHistoryResponse, type GetUserStakingPositionHistoryResponseZodType, type GetUserStakingPositionHistoryResponses, type GetUserStakingPositionResponse, type GetUserStakingPositionResponseZodType, type GetUserStakingPositionResponses, type GetVaultData, type GetVaultError, type GetVaultErrors, type GetVaultHistoryData, type GetVaultHistoryError, type GetVaultHistoryErrors, type GetVaultHistoryResponse, type GetVaultHistoryResponseZodType, type GetVaultHistoryResponses, type GetVaultResponse, type GetVaultResponseZodType, type GetVaultResponses, type GetVaultsData, type GetVaultsError, type GetVaultsErrors, type GetVaultsResponse, type GetVaultsResponseZodType, type GetVaultsResponses, type HttpStatusData, type I128Dto, type I64Dto, type IncreaseSpotPositionQuoteDto, type InternalErrorCodeErrorBody, type LeaderboardError400BadRequest, type LeaderboardError400Error, type LeaderboardError500Error, type LeaderboardItemDto, LeaderboardPeriod, LeaderboardSortBy, type LendingPositionDto, type LimitOrderDto, type LimitOrderQuoteByInputDto, type LimitOrderQuoteByOutputDto, LimitOrderStatus, type LpPositionsError400BadRequest, type LpPositionsError400Error, type LpPositionsError500Error, type MarketDto, type MarketError404Error, type MarketError500Error, type MintDto, type MintError404Error, type MintError500Error, NotificationAction, NotificationEntity, type Options, type OraclePriceDto, type OraclePriceError404Error, type OraclePriceError500Error, type OrderBookDto, type OrderBookEntryDto, type OrderBookWrapper, type OrderHistoryEntryDto, OrderHistoryStatus, OrderHistoryType, OrderHistoryUiDirection, type PaginationMeta, type PoolDto, type PoolPriceCandleDto, PoolProvider, type PoolStatsDto, type PoolStatsGroupDto, type PoolStatsGroupEntryDto, type PoolSubscription, PoolSubscriptionTopic, type PoolSwapDto, type PoolTicksDto, type PoolsError400BadRequest, type PoolsError400Error, type PoolsError404Error, type PoolsError500Error, type PubkeyDto, type ServerSentEventsOptions, type ServerSentEventsResult, type Snapshot, type SnapshotContainer, type SpotPositionError404Error, type SpotPositionError500Error, type SseData, type SseErrors, type SseResponse, type SseResponse2, type SseResponseInitialMessage, type SseResponseLendingPosition, type SseResponseLendingPositionPayload, type SseResponseOrderHistoryEntry, type SseResponseOrderHistoryEntryPayload, type SseResponsePoolSwap, type SseResponsePoolSwapPayload, type SseResponseSnapshot, type SseResponseStakingPosition, type SseResponseStakingPositionPayload, type SseResponseTradeHistoryEntry, type SseResponseTradeHistoryEntryPayload, type SseResponseZodType, type SseResponses, type StakingDepositsStatsDto, type StakingError400BadRequest, type StakingError400Error, type StakingError500Error, type StakingLeaderboardPositionDto, type StakingPositionActionDto, StakingPositionActionType, type StakingPositionDto, type StatsError400BadRequest, type StatsError400Error, type StatsError500Error, type StreamEvent, type StreamInitalMessage, type SubscriptionOptions, type SwapQuoteByInputDto, type SwapQuoteByOutputDto, type TickDto, type TokenAmountWithUsd, type TradableAmountDto, TradeHistoryAction, type TradeHistoryEntryDto, type TradeHistoryEntryPnlUsd, TradeHistoryUiDirection, type TreasuryDto, TunaBackendSdk, TunaBackendSdkError, type TunaLpPositionActionComposite, type TunaLpPositionActionDto, TunaLpPositionAutoCompound, TunaLpPositionAutoCompounding, type TunaLpPositionDto, type TunaLpPositionFlags, type TunaLpPositionInnerSwaps, TunaLpPositionLimitOrderSwap, type TunaLpPositionParameters, TunaLpPositionRebalance, type TunaLpPositionTokenPrices, type TunaLpPositionTransfer, type TunaLpPositionTriggerOrder, TunaLpPositionTriggerOrderType, type TunaLpPositionValue, TunaLpPositionsActionType, type TunaLpPositionsStats, type TunaPositionDto, TunaPositionDtoState, TunaPositionMarketMaker, TunaPositionPoolToken, type TunaPositionTokenDepositedCollateral, type TunaPositionTokenPnl, type TunaPositionUsdPnl, type TunaSpotPositionDto, TunaSpotPositionDtoState, type U128Dto, type U64Dto, type UpdateStreamSubscriptionData, type UpdateStreamSubscriptionError, type UpdateStreamSubscriptionError404Error, type UpdateStreamSubscriptionError500Error, type UpdateStreamSubscriptionErrors, type UpdateStreamSubscriptionResponse, type UpdateStreamSubscriptionResponseZodType, type UpdateStreamSubscriptionResponses, type ValidationErrorCodeErrorBody, type ValidationErrorCodeValidationDetailsErrorBody, type VaultDto, type VaultError400BadRequest, type VaultError400Error, type VaultError404Error, type VaultError500Error, type VaultStatsDto, type VestingDto, type WalletSubscription, WalletSubscriptionTopic, createClient, createSseClient, isTunaSdkError, tunaSdkErrorInterceptor, unwrap, zBadRequestErrorCodeErrorBody, zCloseSpotPositionQuoteDto, zDecreaseSpotPositionQuoteDto, zFeeAmountWithUsd, zFeesStatsGroupDto, zFieldError, zFusionFeesStatsGroupDto, zGetCloseSpotPositionQuoteData, zGetCloseSpotPositionQuoteResponse, zGetDecreaseSpotPositionQuoteData, zGetDecreaseSpotPositionQuoteResponse, zGetFeesStatsData, zGetFeesStatsResponse, zGetFusionFeesStatsData, zGetFusionFeesStatsResponse, zGetIncreaseSpotPositionQuoteData, zGetIncreaseSpotPositionQuoteResponse, zGetLendingPositionData, zGetLendingPositionResponse, zGetLendingPositionsData, zGetLendingPositionsResponse, zGetLimitOrderData, zGetLimitOrderError404Error, zGetLimitOrderError500Error, zGetLimitOrderQuoteByInputData, zGetLimitOrderQuoteByInputResponse, zGetLimitOrderQuoteByOutputData, zGetLimitOrderQuoteByOutputResponse, zGetLimitOrderResponse, zGetLimitOrdersData, zGetLimitOrdersResponse, zGetLpPositionActionsData, zGetLpPositionActionsResponse, zGetLpPositionsData, zGetLpPositionsResponse, zGetLpSpotLeaderboardData, zGetLpSpotLeaderboardResponse, zGetMarketData, zGetMarketResponse, zGetMarketsData, zGetMarketsResponse, zGetMintData, zGetMintResponse, zGetMintsData, zGetMintsResponse, zGetOraclePriceData, zGetOraclePriceResponse, zGetOraclePricesData, zGetOraclePricesResponse, zGetOrderHistoryData, zGetOrderHistoryResponse, zGetPoolCandlesData, zGetPoolCandlesResponse, zGetPoolData, zGetPoolOrderBookData, zGetPoolOrderBookResponse, zGetPoolResponse, zGetPoolSwapsData, zGetPoolSwapsResponse, zGetPoolTicksData, zGetPoolTicksResponse, zGetPoolsData, zGetPoolsResponse, zGetPositionsStatsData, zGetPositionsStatsResponse, zGetPositionsTotalData, zGetPositionsTotalResponse, zGetSpotPositionData, zGetSpotPositionResponse, zGetSpotPositionsData, zGetSpotPositionsResponse, zGetStakingLeaderboardData, zGetStakingLeaderboardResponse, zGetStakingRevenueStatsData, zGetStakingRevenueStatsResponse, zGetStakingTreasuryData, zGetStakingTreasuryResponse, zGetSwapQuoteByInputData, zGetSwapQuoteByInputResponse, zGetSwapQuoteByOutputData, zGetSwapQuoteByOutputResponse, zGetTradableAmountData, zGetTradableAmountResponse, zGetTradeHistoryData, zGetTradeHistoryResponse, zGetTunaPositionData, zGetTunaPositionResponse, zGetTunaPositionsData, zGetTunaPositionsResponse, zGetUserStakingPositionData, zGetUserStakingPositionHistoryData, zGetUserStakingPositionHistoryResponse, zGetUserStakingPositionResponse, zGetVaultData, zGetVaultHistoryData, zGetVaultHistoryResponse, zGetVaultResponse, zGetVaultsData, zGetVaultsResponse, zHttpStatusData, zI128Dto, zI64Dto, zIncreaseSpotPositionQuoteDto, zInternalErrorCodeErrorBody, zLeaderboardError400BadRequest, zLeaderboardError400Error, zLeaderboardError500Error, zLeaderboardItemDto, zLeaderboardPeriod, zLeaderboardSortBy, zLendingPositionDto, zLimitOrderDto, zLimitOrderQuoteByInputDto, zLimitOrderQuoteByOutputDto, zLimitOrderStatus, zLpPositionsError400BadRequest, zLpPositionsError400Error, zLpPositionsError500Error, zMarketDto, zMarketError404Error, zMarketError500Error, zMintDto, zMintError404Error, zMintError500Error, zNotificationAction, zNotificationEntity, zOraclePriceDto, zOraclePriceError404Error, zOraclePriceError500Error, zOrderBookDto, zOrderBookEntryDto, zOrderBookWrapper, zOrderHistoryEntryDto, zOrderHistoryStatus, zOrderHistoryType, zOrderHistoryUiDirection, zPaginationMeta, zPoolDto, zPoolPriceCandleDto, zPoolProvider, zPoolStatsDto, zPoolStatsGroupDto, zPoolStatsGroupEntryDto, zPoolSubscription, zPoolSubscriptionTopic, zPoolSwapDto, zPoolTicksDto, zPoolsError400BadRequest, zPoolsError400Error, zPoolsError404Error, zPoolsError500Error, zPubkeyDto, zSnapshot, zSnapshotContainer, zSpotPositionError404Error, zSpotPositionError500Error, zSseData, zSseResponse, zSseResponse2, zSseResponseInitialMessage, zSseResponseLendingPosition, zSseResponseLendingPositionPayload, zSseResponseOrderHistoryEntry, zSseResponseOrderHistoryEntryPayload, zSseResponsePoolSwap, zSseResponsePoolSwapPayload, zSseResponseSnapshot, zSseResponseStakingPosition, zSseResponseStakingPositionPayload, zSseResponseTradeHistoryEntry, zSseResponseTradeHistoryEntryPayload, zStakingDepositsStatsDto, zStakingError400BadRequest, zStakingError400Error, zStakingError500Error, zStakingLeaderboardPositionDto, zStakingPositionActionDto, zStakingPositionActionType, zStakingPositionDto, zStatsError400BadRequest, zStatsError400Error, zStatsError500Error, zStreamInitalMessage, zSubscriptionOptions, zSwapQuoteByInputDto, zSwapQuoteByOutputDto, zTickDto, zTokenAmountWithUsd, zTradableAmountDto, zTradeHistoryAction, zTradeHistoryEntryDto, zTradeHistoryEntryPnlUsd, zTradeHistoryUiDirection, zTreasuryDto, zTunaLpPositionActionComposite, zTunaLpPositionActionDto, zTunaLpPositionAutoCompound, zTunaLpPositionAutoCompounding, zTunaLpPositionDto, zTunaLpPositionFlags, zTunaLpPositionInnerSwaps, zTunaLpPositionLimitOrderSwap, zTunaLpPositionParameters, zTunaLpPositionRebalance, zTunaLpPositionTokenPrices, zTunaLpPositionTransfer, zTunaLpPositionTriggerOrder, zTunaLpPositionTriggerOrderType, zTunaLpPositionValue, zTunaLpPositionsActionType, zTunaLpPositionsStats, zTunaPositionDto, zTunaPositionDtoState, zTunaPositionMarketMaker, zTunaPositionPoolToken, zTunaPositionTokenDepositedCollateral, zTunaPositionTokenPnl, zTunaPositionUsdPnl, zTunaSpotPositionDto, zTunaSpotPositionDtoState, zU128Dto, zU64Dto, zUpdateStreamSubscriptionData, zUpdateStreamSubscriptionError404Error, zUpdateStreamSubscriptionError500Error, zUpdateStreamSubscriptionResponse, zValidationErrorCodeErrorBody, zValidationErrorCodeValidationDetailsErrorBody, zVaultDto, zVaultError400BadRequest, zVaultError400Error, zVaultError404Error, zVaultError500Error, zVaultStatsDto, zVestingDto, zWalletSubscription, zWalletSubscriptionTopic };
|