@crypticdot/defituna-api 3.0.2 → 3.0.4
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 +43 -11
- package/dist/index.d.cts +120 -108
- package/dist/index.d.ts +120 -108
- package/dist/index.js +37 -10
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -19,10 +19,13 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
// src/index.ts
|
|
20
20
|
var index_exports = {};
|
|
21
21
|
__export(index_exports, {
|
|
22
|
+
BadRequestErrorCodeErrorBodyCode: () => BadRequestErrorCodeErrorBodyCode,
|
|
23
|
+
GetLimitOrderError404ErrorCode: () => GetLimitOrderError404ErrorCode,
|
|
24
|
+
GetLimitOrderError500ErrorCode: () => GetLimitOrderError500ErrorCode,
|
|
25
|
+
InternalErrorCodeErrorBodyCode: () => InternalErrorCodeErrorBodyCode,
|
|
22
26
|
LeaderboardPeriod: () => LeaderboardPeriod,
|
|
23
27
|
LeaderboardSortBy: () => LeaderboardSortBy,
|
|
24
28
|
LimitOrderStatus: () => LimitOrderStatus,
|
|
25
|
-
LpPositionsHistoryQueryFilter: () => LpPositionsHistoryQueryFilter,
|
|
26
29
|
NotificationAction: () => NotificationAction,
|
|
27
30
|
NotificationEntity: () => NotificationEntity,
|
|
28
31
|
OrderHistoryStatus: () => OrderHistoryStatus,
|
|
@@ -42,6 +45,8 @@ __export(index_exports, {
|
|
|
42
45
|
TunaPositionMarketMaker: () => TunaPositionMarketMaker,
|
|
43
46
|
TunaPositionPoolToken: () => TunaPositionPoolToken,
|
|
44
47
|
TunaSpotPositionDtoState: () => TunaSpotPositionDtoState,
|
|
48
|
+
ValidationErrorCodeErrorBodyCode: () => ValidationErrorCodeErrorBodyCode,
|
|
49
|
+
ValidationErrorCodeValidationDetailsErrorBodyCode: () => ValidationErrorCodeValidationDetailsErrorBodyCode,
|
|
45
50
|
WalletSubscriptionTopic: () => WalletSubscriptionTopic,
|
|
46
51
|
eventIsInitialMessage: () => eventIsInitialMessage,
|
|
47
52
|
eventIsLendingPosition: () => eventIsLendingPosition,
|
|
@@ -254,6 +259,20 @@ async function customFetch(url, init) {
|
|
|
254
259
|
}
|
|
255
260
|
|
|
256
261
|
// src/gen/defiTunaAPI.ts
|
|
262
|
+
var BadRequestErrorCodeErrorBodyCode = {
|
|
263
|
+
invalidPath: "invalid_path",
|
|
264
|
+
invalidQuery: "invalid_query",
|
|
265
|
+
invalidBody: "invalid_body"
|
|
266
|
+
};
|
|
267
|
+
var GetLimitOrderError404ErrorCode = {
|
|
268
|
+
notFound: "not_found"
|
|
269
|
+
};
|
|
270
|
+
var GetLimitOrderError500ErrorCode = {
|
|
271
|
+
internalError: "internal_error"
|
|
272
|
+
};
|
|
273
|
+
var InternalErrorCodeErrorBodyCode = {
|
|
274
|
+
internalError: "internal_error"
|
|
275
|
+
};
|
|
257
276
|
var LeaderboardPeriod = {
|
|
258
277
|
week: "week"
|
|
259
278
|
};
|
|
@@ -268,11 +287,6 @@ var LimitOrderStatus = {
|
|
|
268
287
|
complete: "complete",
|
|
269
288
|
cancelled: "cancelled"
|
|
270
289
|
};
|
|
271
|
-
var LpPositionsHistoryQueryFilter = {
|
|
272
|
-
opened: "opened",
|
|
273
|
-
closed: "closed",
|
|
274
|
-
all: "all"
|
|
275
|
-
};
|
|
276
290
|
var NotificationAction = {
|
|
277
291
|
create: "create",
|
|
278
292
|
update: "update"
|
|
@@ -398,6 +412,12 @@ var TunaSpotPositionDtoState = {
|
|
|
398
412
|
open: "open",
|
|
399
413
|
closed: "closed"
|
|
400
414
|
};
|
|
415
|
+
var ValidationErrorCodeErrorBodyCode = {
|
|
416
|
+
validationFailed: "validation_failed"
|
|
417
|
+
};
|
|
418
|
+
var ValidationErrorCodeValidationDetailsErrorBodyCode = {
|
|
419
|
+
validationFailed: "validation_failed"
|
|
420
|
+
};
|
|
401
421
|
var WalletSubscriptionTopic = {
|
|
402
422
|
tunaPositions: "tuna_positions",
|
|
403
423
|
tunaSpotPositions: "tuna_spot_positions",
|
|
@@ -955,12 +975,19 @@ var getLimitOrder = async (userAddress, limitOrderAddress, options) => {
|
|
|
955
975
|
var getGetLpPositionsUrl = (userAddress, params) => {
|
|
956
976
|
const normalizedParams = new URLSearchParams();
|
|
957
977
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
978
|
+
const explodeParameters = ["liquidityPool", "state"];
|
|
979
|
+
if (Array.isArray(value) && explodeParameters.includes(key)) {
|
|
980
|
+
value.forEach((v) => {
|
|
981
|
+
normalizedParams.append(key, v === null ? "null" : v.toString());
|
|
982
|
+
});
|
|
983
|
+
return;
|
|
984
|
+
}
|
|
958
985
|
if (value !== void 0) {
|
|
959
|
-
normalizedParams.append(key, value === null ? "null" : value
|
|
986
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
960
987
|
}
|
|
961
988
|
});
|
|
962
989
|
const stringifiedParams = normalizedParams.toString();
|
|
963
|
-
return stringifiedParams.length > 0 ? `/v1/users/${userAddress}/lp-positions?${stringifiedParams}` : `/v1/users/${userAddress}/lp-positions`;
|
|
990
|
+
return stringifiedParams.length > 0 ? `/v1/users/${userAddress}/lp-positions-history?${stringifiedParams}` : `/v1/users/${userAddress}/lp-positions-history`;
|
|
964
991
|
};
|
|
965
992
|
var getLpPositions = async (userAddress, params, options) => {
|
|
966
993
|
return customFetch(
|
|
@@ -972,7 +999,7 @@ var getLpPositions = async (userAddress, params, options) => {
|
|
|
972
999
|
);
|
|
973
1000
|
};
|
|
974
1001
|
var getGetLpPositionActionsUrl = (userAddress, positionAddress) => {
|
|
975
|
-
return `/v1/users/${userAddress}/lp-positions/${positionAddress}/actions`;
|
|
1002
|
+
return `/v1/users/${userAddress}/lp-positions-history/${positionAddress}/actions`;
|
|
976
1003
|
};
|
|
977
1004
|
var getLpPositionActions = async (userAddress, positionAddress, options) => {
|
|
978
1005
|
return customFetch(
|
|
@@ -1160,7 +1187,7 @@ function unwrapData(data) {
|
|
|
1160
1187
|
}
|
|
1161
1188
|
async function unwrap(promise) {
|
|
1162
1189
|
const res = await promise;
|
|
1163
|
-
if (res.status
|
|
1190
|
+
if (res.status !== 200) {
|
|
1164
1191
|
throw {
|
|
1165
1192
|
message: String(res.data),
|
|
1166
1193
|
status: res.status
|
|
@@ -1597,10 +1624,13 @@ function eventIsStateSnapshot(event) {
|
|
|
1597
1624
|
}
|
|
1598
1625
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1599
1626
|
0 && (module.exports = {
|
|
1627
|
+
BadRequestErrorCodeErrorBodyCode,
|
|
1628
|
+
GetLimitOrderError404ErrorCode,
|
|
1629
|
+
GetLimitOrderError500ErrorCode,
|
|
1630
|
+
InternalErrorCodeErrorBodyCode,
|
|
1600
1631
|
LeaderboardPeriod,
|
|
1601
1632
|
LeaderboardSortBy,
|
|
1602
1633
|
LimitOrderStatus,
|
|
1603
|
-
LpPositionsHistoryQueryFilter,
|
|
1604
1634
|
NotificationAction,
|
|
1605
1635
|
NotificationEntity,
|
|
1606
1636
|
OrderHistoryStatus,
|
|
@@ -1620,6 +1650,8 @@ function eventIsStateSnapshot(event) {
|
|
|
1620
1650
|
TunaPositionMarketMaker,
|
|
1621
1651
|
TunaPositionPoolToken,
|
|
1622
1652
|
TunaSpotPositionDtoState,
|
|
1653
|
+
ValidationErrorCodeErrorBodyCode,
|
|
1654
|
+
ValidationErrorCodeValidationDetailsErrorBodyCode,
|
|
1623
1655
|
WalletSubscriptionTopic,
|
|
1624
1656
|
eventIsInitialMessage,
|
|
1625
1657
|
eventIsLendingPosition,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { EventSource } from 'eventsource';
|
|
2
2
|
|
|
3
|
+
type BadRequestErrorCodeErrorBodyCode = typeof BadRequestErrorCodeErrorBodyCode[keyof typeof BadRequestErrorCodeErrorBodyCode];
|
|
4
|
+
declare const BadRequestErrorCodeErrorBodyCode: {
|
|
5
|
+
readonly invalidPath: "invalid_path";
|
|
6
|
+
readonly invalidQuery: "invalid_query";
|
|
7
|
+
readonly invalidBody: "invalid_body";
|
|
8
|
+
};
|
|
9
|
+
interface BadRequestErrorCodeErrorBody {
|
|
10
|
+
code: BadRequestErrorCodeErrorBodyCode;
|
|
11
|
+
}
|
|
3
12
|
interface CloseSpotPositionQuoteDto {
|
|
4
13
|
/** Confirmed position decrease percentage (100% = 1.0) */
|
|
5
14
|
decreasePercent: number;
|
|
@@ -67,6 +76,12 @@ interface FeesStatsGroupDto {
|
|
|
67
76
|
totalYieldCompoundingNetworkFees: number;
|
|
68
77
|
yieldCompoundingFees: number;
|
|
69
78
|
}
|
|
79
|
+
interface FieldError {
|
|
80
|
+
/** Field name in request. */
|
|
81
|
+
field: string;
|
|
82
|
+
/** Validation error message. */
|
|
83
|
+
message: string;
|
|
84
|
+
}
|
|
70
85
|
interface FusionFeesStatsGroupDto {
|
|
71
86
|
/** Solana public key (base58) */
|
|
72
87
|
pool: string;
|
|
@@ -174,13 +189,6 @@ type GenericHttpResponseIncreaseSpotPositionQuoteDtoData = {
|
|
|
174
189
|
interface GenericHttpResponseIncreaseSpotPositionQuoteDto {
|
|
175
190
|
data: GenericHttpResponseIncreaseSpotPositionQuoteDtoData;
|
|
176
191
|
}
|
|
177
|
-
type GenericHttpResponseLimitOrderQuoteByInputDtoData = {
|
|
178
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
179
|
-
amountOut: bigint;
|
|
180
|
-
};
|
|
181
|
-
interface GenericHttpResponseLimitOrderQuoteByInputDto {
|
|
182
|
-
data: GenericHttpResponseLimitOrderQuoteByInputDtoData;
|
|
183
|
-
}
|
|
184
192
|
type GenericHttpResponseLimitOrderQuoteByOutputDtoData = {
|
|
185
193
|
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
186
194
|
amountIn: bigint;
|
|
@@ -253,32 +261,6 @@ type GenericHttpResponseOptionLendingPositionDtoData = null | GenericHttpRespons
|
|
|
253
261
|
interface GenericHttpResponseOptionLendingPositionDto {
|
|
254
262
|
data: GenericHttpResponseOptionLendingPositionDtoData;
|
|
255
263
|
}
|
|
256
|
-
type GenericHttpResponseOptionLimitOrderDtoDataOneOfCloseTxSignature = string | null;
|
|
257
|
-
type GenericHttpResponseOptionLimitOrderDtoDataOneOfClosedAt = Date | null;
|
|
258
|
-
type GenericHttpResponseOptionLimitOrderDtoDataOneOf = {
|
|
259
|
-
aToB: boolean;
|
|
260
|
-
/** Solana public key (base58) */
|
|
261
|
-
address: string;
|
|
262
|
-
amountIn: TokenAmountWithUsd;
|
|
263
|
-
amountOut: TokenAmountWithUsd;
|
|
264
|
-
/** Solana public key (base58) */
|
|
265
|
-
authority: string;
|
|
266
|
-
closeTxSignature?: GenericHttpResponseOptionLimitOrderDtoDataOneOfCloseTxSignature;
|
|
267
|
-
closedAt?: GenericHttpResponseOptionLimitOrderDtoDataOneOfClosedAt;
|
|
268
|
-
fillRatio: number;
|
|
269
|
-
id: string;
|
|
270
|
-
openTxSignature: string;
|
|
271
|
-
openedAt: Date;
|
|
272
|
-
/** Solana public key (base58) */
|
|
273
|
-
orderMint: string;
|
|
274
|
-
pool: PoolDto;
|
|
275
|
-
state: LimitOrderStatus;
|
|
276
|
-
tickIndex: number;
|
|
277
|
-
};
|
|
278
|
-
type GenericHttpResponseOptionLimitOrderDtoData = null | GenericHttpResponseOptionLimitOrderDtoDataOneOf;
|
|
279
|
-
interface GenericHttpResponseOptionLimitOrderDto {
|
|
280
|
-
data: GenericHttpResponseOptionLimitOrderDtoData;
|
|
281
|
-
}
|
|
282
264
|
type GenericHttpResponseOptionTunaPositionDtoDataOneOfClosedAt = Date | null;
|
|
283
265
|
type GenericHttpResponseOptionTunaPositionDtoDataOneOf = {
|
|
284
266
|
/** Solana public key (base58) */
|
|
@@ -901,8 +883,7 @@ type GenericHttpResponseVecTunaLpPositionDtoDataItem = {
|
|
|
901
883
|
lowerPrice: number;
|
|
902
884
|
marketMaker: PoolProvider;
|
|
903
885
|
openedAt: Date;
|
|
904
|
-
|
|
905
|
-
pool: string;
|
|
886
|
+
pool: PoolDto;
|
|
906
887
|
/** Solana public key (base58) */
|
|
907
888
|
positionAddress: string;
|
|
908
889
|
state: TunaPositionDtoState;
|
|
@@ -1034,6 +1015,20 @@ interface GenericHttpResponseVecVaultStatsDto {
|
|
|
1034
1015
|
interface GenericHttpResponseI64 {
|
|
1035
1016
|
data: number;
|
|
1036
1017
|
}
|
|
1018
|
+
type GetLimitOrderError404ErrorCode = typeof GetLimitOrderError404ErrorCode[keyof typeof GetLimitOrderError404ErrorCode];
|
|
1019
|
+
declare const GetLimitOrderError404ErrorCode: {
|
|
1020
|
+
readonly notFound: "not_found";
|
|
1021
|
+
};
|
|
1022
|
+
interface GetLimitOrderError404Error {
|
|
1023
|
+
code: GetLimitOrderError404ErrorCode;
|
|
1024
|
+
}
|
|
1025
|
+
type GetLimitOrderError500ErrorCode = typeof GetLimitOrderError500ErrorCode[keyof typeof GetLimitOrderError500ErrorCode];
|
|
1026
|
+
declare const GetLimitOrderError500ErrorCode: {
|
|
1027
|
+
readonly internalError: "internal_error";
|
|
1028
|
+
};
|
|
1029
|
+
interface GetLimitOrderError500Error {
|
|
1030
|
+
code: GetLimitOrderError500ErrorCode;
|
|
1031
|
+
}
|
|
1037
1032
|
interface HashMap {
|
|
1038
1033
|
[key: string]: {
|
|
1039
1034
|
feesUsd: number;
|
|
@@ -1064,6 +1059,13 @@ interface IncreaseSpotPositionQuoteDto {
|
|
|
1064
1059
|
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
1065
1060
|
swapInputAmount: bigint;
|
|
1066
1061
|
}
|
|
1062
|
+
type InternalErrorCodeErrorBodyCode = typeof InternalErrorCodeErrorBodyCode[keyof typeof InternalErrorCodeErrorBodyCode];
|
|
1063
|
+
declare const InternalErrorCodeErrorBodyCode: {
|
|
1064
|
+
readonly internalError: "internal_error";
|
|
1065
|
+
};
|
|
1066
|
+
interface InternalErrorCodeErrorBody {
|
|
1067
|
+
code: InternalErrorCodeErrorBodyCode;
|
|
1068
|
+
}
|
|
1067
1069
|
interface LeaderboardItemDto {
|
|
1068
1070
|
/** Solana public key (base58) */
|
|
1069
1071
|
authority: string;
|
|
@@ -1145,12 +1147,6 @@ declare const LimitOrderStatus: {
|
|
|
1145
1147
|
readonly complete: "complete";
|
|
1146
1148
|
readonly cancelled: "cancelled";
|
|
1147
1149
|
};
|
|
1148
|
-
type LpPositionsHistoryQueryFilter = typeof LpPositionsHistoryQueryFilter[keyof typeof LpPositionsHistoryQueryFilter];
|
|
1149
|
-
declare const LpPositionsHistoryQueryFilter: {
|
|
1150
|
-
readonly opened: "opened";
|
|
1151
|
-
readonly closed: "closed";
|
|
1152
|
-
readonly all: "all";
|
|
1153
|
-
};
|
|
1154
1150
|
interface MarketDto {
|
|
1155
1151
|
/** Solana public key (base58) */
|
|
1156
1152
|
address: string;
|
|
@@ -1611,6 +1607,14 @@ interface PoolTicksDto {
|
|
|
1611
1607
|
tickSpacing: number;
|
|
1612
1608
|
ticks: TickDto[];
|
|
1613
1609
|
}
|
|
1610
|
+
/**
|
|
1611
|
+
* Pubkey represented as base58 string in JSON and OpenAPI.
|
|
1612
|
+
|
|
1613
|
+
- JSON: `"11111111111111111111111111111111"`
|
|
1614
|
+
- OpenAPI: `type: string`, pattern for base58, optional format
|
|
1615
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]+$
|
|
1616
|
+
*/
|
|
1617
|
+
type PubkeyDto = string;
|
|
1614
1618
|
type SnapshotFusionLimitOrders = LimitOrderDto[] | null;
|
|
1615
1619
|
type SnapshotMarkets = MarketDto[] | null;
|
|
1616
1620
|
type SnapshotOraclePricesAnyOf = {
|
|
@@ -1902,8 +1906,7 @@ interface TunaLpPositionDto {
|
|
|
1902
1906
|
lowerPrice: number;
|
|
1903
1907
|
marketMaker: PoolProvider;
|
|
1904
1908
|
openedAt: Date;
|
|
1905
|
-
|
|
1906
|
-
pool: string;
|
|
1909
|
+
pool: PoolDto;
|
|
1907
1910
|
/** Solana public key (base58) */
|
|
1908
1911
|
positionAddress: string;
|
|
1909
1912
|
state: TunaPositionDtoState;
|
|
@@ -2118,6 +2121,28 @@ declare const TunaSpotPositionDtoState: {
|
|
|
2118
2121
|
readonly open: "open";
|
|
2119
2122
|
readonly closed: "closed";
|
|
2120
2123
|
};
|
|
2124
|
+
type ValidationErrorCodeErrorBodyCode = typeof ValidationErrorCodeErrorBodyCode[keyof typeof ValidationErrorCodeErrorBodyCode];
|
|
2125
|
+
declare const ValidationErrorCodeErrorBodyCode: {
|
|
2126
|
+
readonly validationFailed: "validation_failed";
|
|
2127
|
+
};
|
|
2128
|
+
type ValidationErrorCodeErrorBodyData = {
|
|
2129
|
+
errors: FieldError[];
|
|
2130
|
+
};
|
|
2131
|
+
interface ValidationErrorCodeErrorBody {
|
|
2132
|
+
code: ValidationErrorCodeErrorBodyCode;
|
|
2133
|
+
data?: ValidationErrorCodeErrorBodyData;
|
|
2134
|
+
}
|
|
2135
|
+
type ValidationErrorCodeValidationDetailsErrorBodyCode = typeof ValidationErrorCodeValidationDetailsErrorBodyCode[keyof typeof ValidationErrorCodeValidationDetailsErrorBodyCode];
|
|
2136
|
+
declare const ValidationErrorCodeValidationDetailsErrorBodyCode: {
|
|
2137
|
+
readonly validationFailed: "validation_failed";
|
|
2138
|
+
};
|
|
2139
|
+
type ValidationErrorCodeValidationDetailsErrorBodyData = {
|
|
2140
|
+
errors: FieldError[];
|
|
2141
|
+
};
|
|
2142
|
+
interface ValidationErrorCodeValidationDetailsErrorBody {
|
|
2143
|
+
code: ValidationErrorCodeValidationDetailsErrorBodyCode;
|
|
2144
|
+
data?: ValidationErrorCodeValidationDetailsErrorBodyData;
|
|
2145
|
+
}
|
|
2121
2146
|
interface VaultDto {
|
|
2122
2147
|
/** Solana public key (base58) */
|
|
2123
2148
|
address: string;
|
|
@@ -2226,10 +2251,7 @@ type GetPoolOrderBookParams = {
|
|
|
2226
2251
|
inverted?: boolean;
|
|
2227
2252
|
};
|
|
2228
2253
|
type GetCloseSpotPositionQuoteParams = {
|
|
2229
|
-
|
|
2230
|
-
* Solana public key (base58)
|
|
2231
|
-
*/
|
|
2232
|
-
market?: string;
|
|
2254
|
+
market: PubkeyDto;
|
|
2233
2255
|
/**
|
|
2234
2256
|
* @minimum 0
|
|
2235
2257
|
*/
|
|
@@ -2256,10 +2278,7 @@ type GetCloseSpotPositionQuoteParams = {
|
|
|
2256
2278
|
positionDebt?: bigint;
|
|
2257
2279
|
};
|
|
2258
2280
|
type GetDecreaseSpotPositionQuoteParams = {
|
|
2259
|
-
|
|
2260
|
-
* Solana public key (base58)
|
|
2261
|
-
*/
|
|
2262
|
-
market?: string;
|
|
2281
|
+
market: PubkeyDto;
|
|
2263
2282
|
/**
|
|
2264
2283
|
* Unsigned 64-bit integer encoded as a decimal string
|
|
2265
2284
|
*/
|
|
@@ -2288,10 +2307,7 @@ type GetDecreaseSpotPositionQuoteParams = {
|
|
|
2288
2307
|
positionDebt?: bigint;
|
|
2289
2308
|
};
|
|
2290
2309
|
type GetIncreaseSpotPositionQuoteParams = {
|
|
2291
|
-
|
|
2292
|
-
* Solana public key (base58)
|
|
2293
|
-
*/
|
|
2294
|
-
market?: string;
|
|
2310
|
+
market: PubkeyDto;
|
|
2295
2311
|
/**
|
|
2296
2312
|
* Unsigned 64-bit integer encoded as a decimal string
|
|
2297
2313
|
*/
|
|
@@ -2319,10 +2335,7 @@ type GetIncreaseSpotPositionQuoteParams = {
|
|
|
2319
2335
|
positionDebt?: bigint;
|
|
2320
2336
|
};
|
|
2321
2337
|
type GetLimitOrderQuoteByInputParams = {
|
|
2322
|
-
|
|
2323
|
-
* Solana public key (base58)
|
|
2324
|
-
*/
|
|
2325
|
-
pool?: string;
|
|
2338
|
+
pool: PubkeyDto;
|
|
2326
2339
|
/**
|
|
2327
2340
|
* Unsigned 64-bit integer encoded as a decimal string
|
|
2328
2341
|
*/
|
|
@@ -2330,11 +2343,11 @@ type GetLimitOrderQuoteByInputParams = {
|
|
|
2330
2343
|
aToB: boolean;
|
|
2331
2344
|
tickIndex: number;
|
|
2332
2345
|
};
|
|
2346
|
+
type GetLimitOrderQuoteByInput200 = {
|
|
2347
|
+
data: LimitOrderQuoteByInputDto;
|
|
2348
|
+
};
|
|
2333
2349
|
type GetLimitOrderQuoteByOutputParams = {
|
|
2334
|
-
|
|
2335
|
-
* Solana public key (base58)
|
|
2336
|
-
*/
|
|
2337
|
-
pool?: string;
|
|
2350
|
+
pool: PubkeyDto;
|
|
2338
2351
|
/**
|
|
2339
2352
|
* Unsigned 64-bit integer encoded as a decimal string
|
|
2340
2353
|
*/
|
|
@@ -2343,10 +2356,7 @@ type GetLimitOrderQuoteByOutputParams = {
|
|
|
2343
2356
|
tickIndex: number;
|
|
2344
2357
|
};
|
|
2345
2358
|
type GetSwapQuoteByInputParams = {
|
|
2346
|
-
|
|
2347
|
-
* Solana public key (base58)
|
|
2348
|
-
*/
|
|
2349
|
-
pool?: string;
|
|
2359
|
+
pool: PubkeyDto;
|
|
2350
2360
|
/**
|
|
2351
2361
|
* Unsigned 64-bit integer encoded as a decimal string
|
|
2352
2362
|
*/
|
|
@@ -2358,10 +2368,7 @@ type GetSwapQuoteByInputParams = {
|
|
|
2358
2368
|
slippageTolerance?: number;
|
|
2359
2369
|
};
|
|
2360
2370
|
type GetSwapQuoteByOutputParams = {
|
|
2361
|
-
|
|
2362
|
-
* Solana public key (base58)
|
|
2363
|
-
*/
|
|
2364
|
-
pool?: string;
|
|
2371
|
+
pool: PubkeyDto;
|
|
2365
2372
|
/**
|
|
2366
2373
|
* Unsigned 64-bit integer encoded as a decimal string
|
|
2367
2374
|
*/
|
|
@@ -2373,10 +2380,7 @@ type GetSwapQuoteByOutputParams = {
|
|
|
2373
2380
|
slippageTolerance?: number;
|
|
2374
2381
|
};
|
|
2375
2382
|
type GetTradableAmountParams = {
|
|
2376
|
-
|
|
2377
|
-
* Solana public key (base58)
|
|
2378
|
-
*/
|
|
2379
|
-
market?: string;
|
|
2383
|
+
market: PubkeyDto;
|
|
2380
2384
|
/**
|
|
2381
2385
|
* @minimum 0
|
|
2382
2386
|
*/
|
|
@@ -2462,31 +2466,22 @@ type GetLimitOrdersParams = {
|
|
|
2462
2466
|
*/
|
|
2463
2467
|
limit?: number;
|
|
2464
2468
|
};
|
|
2469
|
+
type GetLimitOrder200 = {
|
|
2470
|
+
data: LimitOrderDto;
|
|
2471
|
+
};
|
|
2465
2472
|
type GetLpPositionsParams = {
|
|
2473
|
+
/**
|
|
2474
|
+
* Filter by pool
|
|
2475
|
+
*/
|
|
2476
|
+
liquidityPool?: string[];
|
|
2466
2477
|
/**
|
|
2467
2478
|
* Filter by state
|
|
2468
2479
|
*/
|
|
2469
|
-
|
|
2480
|
+
state?: TunaPositionDtoState[];
|
|
2470
2481
|
/**
|
|
2471
2482
|
* Address of the position after which to start fetching results
|
|
2472
2483
|
*/
|
|
2473
2484
|
afterPosition?: string;
|
|
2474
|
-
/**
|
|
2475
|
-
* Minimal opened at time
|
|
2476
|
-
*/
|
|
2477
|
-
openedAtMin?: Date;
|
|
2478
|
-
/**
|
|
2479
|
-
* Maximal opened at time
|
|
2480
|
-
*/
|
|
2481
|
-
openedAtMax?: Date;
|
|
2482
|
-
/**
|
|
2483
|
-
* Minimal closed at time
|
|
2484
|
-
*/
|
|
2485
|
-
closedAtMin?: Date;
|
|
2486
|
-
/**
|
|
2487
|
-
* Maximal closed at time
|
|
2488
|
-
*/
|
|
2489
|
-
closedAtMax?: Date;
|
|
2490
2485
|
/**
|
|
2491
2486
|
* Limit the number of results returned (default: 1000, max: 1000)
|
|
2492
2487
|
* @minimum 0
|
|
@@ -2947,17 +2942,25 @@ declare const getIncreaseSpotPositionQuote: (params: GetIncreaseSpotPositionQuot
|
|
|
2947
2942
|
* @summary Request limit order quote by input amount
|
|
2948
2943
|
*/
|
|
2949
2944
|
type getLimitOrderQuoteByInputResponse200 = {
|
|
2950
|
-
data:
|
|
2945
|
+
data: GetLimitOrderQuoteByInput200;
|
|
2951
2946
|
status: 200;
|
|
2952
2947
|
};
|
|
2953
2948
|
type getLimitOrderQuoteByInputResponse400 = {
|
|
2954
|
-
data:
|
|
2949
|
+
data: BadRequestErrorCodeErrorBody;
|
|
2955
2950
|
status: 400;
|
|
2956
2951
|
};
|
|
2952
|
+
type getLimitOrderQuoteByInputResponse422 = {
|
|
2953
|
+
data: ValidationErrorCodeErrorBody;
|
|
2954
|
+
status: 422;
|
|
2955
|
+
};
|
|
2956
|
+
type getLimitOrderQuoteByInputResponse500 = {
|
|
2957
|
+
data: InternalErrorCodeErrorBody;
|
|
2958
|
+
status: 500;
|
|
2959
|
+
};
|
|
2957
2960
|
type getLimitOrderQuoteByInputResponseSuccess = (getLimitOrderQuoteByInputResponse200) & {
|
|
2958
2961
|
headers: Headers;
|
|
2959
2962
|
};
|
|
2960
|
-
type getLimitOrderQuoteByInputResponseError = (getLimitOrderQuoteByInputResponse400) & {
|
|
2963
|
+
type getLimitOrderQuoteByInputResponseError = (getLimitOrderQuoteByInputResponse400 | getLimitOrderQuoteByInputResponse422 | getLimitOrderQuoteByInputResponse500) & {
|
|
2961
2964
|
headers: Headers;
|
|
2962
2965
|
};
|
|
2963
2966
|
type getLimitOrderQuoteByInputResponse = (getLimitOrderQuoteByInputResponseSuccess | getLimitOrderQuoteByInputResponseError);
|
|
@@ -3319,26 +3322,34 @@ declare const getLimitOrders: (userAddress: string, params?: GetLimitOrdersParam
|
|
|
3319
3322
|
* @summary Request limit order data by position address
|
|
3320
3323
|
*/
|
|
3321
3324
|
type getLimitOrderResponse200 = {
|
|
3322
|
-
data:
|
|
3325
|
+
data: GetLimitOrder200;
|
|
3323
3326
|
status: 200;
|
|
3324
3327
|
};
|
|
3325
3328
|
type getLimitOrderResponse400 = {
|
|
3326
|
-
data:
|
|
3329
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3327
3330
|
status: 400;
|
|
3328
3331
|
};
|
|
3332
|
+
type getLimitOrderResponse404 = {
|
|
3333
|
+
data: GetLimitOrderError404Error;
|
|
3334
|
+
status: 404;
|
|
3335
|
+
};
|
|
3336
|
+
type getLimitOrderResponse422 = {
|
|
3337
|
+
data: ValidationErrorCodeErrorBody;
|
|
3338
|
+
status: 422;
|
|
3339
|
+
};
|
|
3329
3340
|
type getLimitOrderResponse500 = {
|
|
3330
|
-
data:
|
|
3341
|
+
data: GetLimitOrderError500Error;
|
|
3331
3342
|
status: 500;
|
|
3332
3343
|
};
|
|
3333
3344
|
type getLimitOrderResponseSuccess = (getLimitOrderResponse200) & {
|
|
3334
3345
|
headers: Headers;
|
|
3335
3346
|
};
|
|
3336
|
-
type getLimitOrderResponseError = (getLimitOrderResponse400 | getLimitOrderResponse500) & {
|
|
3347
|
+
type getLimitOrderResponseError = (getLimitOrderResponse400 | getLimitOrderResponse404 | getLimitOrderResponse422 | getLimitOrderResponse500) & {
|
|
3337
3348
|
headers: Headers;
|
|
3338
3349
|
};
|
|
3339
3350
|
type getLimitOrderResponse = (getLimitOrderResponseSuccess | getLimitOrderResponseError);
|
|
3340
|
-
declare const getGetLimitOrderUrl: (userAddress:
|
|
3341
|
-
declare const getLimitOrder: (userAddress:
|
|
3351
|
+
declare const getGetLimitOrderUrl: (userAddress: PubkeyDto, limitOrderAddress: PubkeyDto) => string;
|
|
3352
|
+
declare const getLimitOrder: (userAddress: PubkeyDto, limitOrderAddress: PubkeyDto, options?: RequestInit) => Promise<getLimitOrderResponse>;
|
|
3342
3353
|
/**
|
|
3343
3354
|
* @summary Request historical LP positions data
|
|
3344
3355
|
*/
|
|
@@ -3666,18 +3677,19 @@ type ApiError = {
|
|
|
3666
3677
|
message: string;
|
|
3667
3678
|
status: number;
|
|
3668
3679
|
};
|
|
3669
|
-
type
|
|
3680
|
+
type HttpLikeResponse = {
|
|
3670
3681
|
status: number;
|
|
3671
|
-
data:
|
|
3672
|
-
} | {
|
|
3673
|
-
status: number;
|
|
3674
|
-
data: E | void;
|
|
3682
|
+
data: unknown;
|
|
3675
3683
|
};
|
|
3684
|
+
type ExtractSuccessData<R> = R extends {
|
|
3685
|
+
status: 200;
|
|
3686
|
+
data: infer T;
|
|
3687
|
+
} ? T : never;
|
|
3676
3688
|
type HasOnlyDataKey<T> = T extends object ? (Exclude<keyof T, "data"> extends never ? true : false) : false;
|
|
3677
3689
|
type UnwrapData<T> = T extends {
|
|
3678
3690
|
data: infer U;
|
|
3679
3691
|
} ? (HasOnlyDataKey<T> extends true ? U : T) : T;
|
|
3680
|
-
declare function unwrap<
|
|
3692
|
+
declare function unwrap<R extends HttpLikeResponse>(promise: Promise<R>): Promise<UnwrapData<ExtractSuccessData<R>>>;
|
|
3681
3693
|
|
|
3682
3694
|
/**
|
|
3683
3695
|
* =========================
|
|
@@ -3699,4 +3711,4 @@ declare function eventIsTradeHistory(event: SseResponse): event is NotificationD
|
|
|
3699
3711
|
declare function eventIsOrderHistory(event: SseResponse): event is NotificationDtoOrderHistoryEntryDto;
|
|
3700
3712
|
declare function eventIsStateSnapshot(event: SseResponse): event is SnapshotContainer;
|
|
3701
3713
|
|
|
3702
|
-
export { type ApiError, type CloseSpotPositionQuoteDto, type DecreaseSpotPositionQuoteDto, type FeeAmountWithUsd, type FeesStatsGroupDto, type FusionFeesStatsGroupDto, type GenericHttpResponseCloseSpotPositionQuoteDto, type GenericHttpResponseCloseSpotPositionQuoteDtoData, type GenericHttpResponseDecreaseSpotPositionQuoteDto, type GenericHttpResponseDecreaseSpotPositionQuoteDtoData, type GenericHttpResponseHttpStatusData, type GenericHttpResponseHttpStatusDataData, type GenericHttpResponseI64, type GenericHttpResponseIncreaseSpotPositionQuoteDto, type GenericHttpResponseIncreaseSpotPositionQuoteDtoData, type GenericHttpResponseLimitOrderQuoteByInputDto, type GenericHttpResponseLimitOrderQuoteByInputDtoData, type GenericHttpResponseLimitOrderQuoteByOutputDto, type GenericHttpResponseLimitOrderQuoteByOutputDtoData, type GenericHttpResponseMarketDto, type GenericHttpResponseMarketDtoData, type GenericHttpResponseMintDto, type GenericHttpResponseMintDtoData, type GenericHttpResponseOptionLendingPositionDto, type GenericHttpResponseOptionLendingPositionDtoData, type GenericHttpResponseOptionLendingPositionDtoDataOneOf, type GenericHttpResponseOptionLimitOrderDto, type GenericHttpResponseOptionLimitOrderDtoData, type GenericHttpResponseOptionLimitOrderDtoDataOneOf, type GenericHttpResponseOptionLimitOrderDtoDataOneOfCloseTxSignature, type GenericHttpResponseOptionLimitOrderDtoDataOneOfClosedAt, type GenericHttpResponseOptionTunaPositionDto, type GenericHttpResponseOptionTunaPositionDtoData, type GenericHttpResponseOptionTunaPositionDtoDataOneOf, type GenericHttpResponseOptionTunaPositionDtoDataOneOfClosedAt, type GenericHttpResponseOraclePriceDto, type GenericHttpResponseOraclePriceDtoData, type GenericHttpResponseOrderBookDto, type GenericHttpResponseOrderBookDtoData, type GenericHttpResponsePoolDto, type GenericHttpResponsePoolDtoData, type GenericHttpResponsePoolDtoDataOlpFeeRate, type GenericHttpResponsePoolDtoDataStats, type GenericHttpResponsePoolTicksDto, type GenericHttpResponsePoolTicksDtoData, type GenericHttpResponseSseResponse, type GenericHttpResponseSseResponseData, type GenericHttpResponseStakingPositionDto, type GenericHttpResponseStakingPositionDtoData, type GenericHttpResponseStakingPositionDtoDataLastUnstakedAt, type GenericHttpResponseStakingPositionDtoDataRank, type GenericHttpResponseStakingPositionDtoDataWithdrawAvailableAt, type GenericHttpResponseSwapQuoteByInputDto, type GenericHttpResponseSwapQuoteByInputDtoData, type GenericHttpResponseSwapQuoteByOutputDto, type GenericHttpResponseSwapQuoteByOutputDtoData, type GenericHttpResponseTradableAmountDto, type GenericHttpResponseTradableAmountDtoData, type GenericHttpResponseTreasuryDto, type GenericHttpResponseTreasuryDtoData, type GenericHttpResponseTunaSpotPositionDto, type GenericHttpResponseTunaSpotPositionDtoData, type GenericHttpResponseTunaSpotPositionDtoDataClosedAt, type GenericHttpResponseVaultDto, type GenericHttpResponseVaultDtoData, type GenericHttpResponseVecFeesStatsGroupDto, type GenericHttpResponseVecFeesStatsGroupDtoDataItem, type GenericHttpResponseVecFusionFeesStatsGroupDto, type GenericHttpResponseVecFusionFeesStatsGroupDtoDataItem, type GenericHttpResponseVecLendingPositionDto, type GenericHttpResponseVecLendingPositionDtoDataItem, type GenericHttpResponseVecLimitOrderDto, type GenericHttpResponseVecLimitOrderDtoDataItem, type GenericHttpResponseVecLimitOrderDtoDataItemCloseTxSignature, type GenericHttpResponseVecLimitOrderDtoDataItemClosedAt, type GenericHttpResponseVecMarketDto, type GenericHttpResponseVecMarketDtoDataItem, type GenericHttpResponseVecMintDto, type GenericHttpResponseVecMintDtoDataItem, type GenericHttpResponseVecOraclePriceDto, type GenericHttpResponseVecOraclePriceDtoDataItem, type GenericHttpResponseVecOrderHistoryEntryDto, type GenericHttpResponseVecOrderHistoryEntryDtoDataItem, type GenericHttpResponseVecOrderHistoryEntryDtoDataItemBaseTokenConsumedAmount, type GenericHttpResponseVecOrderHistoryEntryDtoDataItemIxIndex, type GenericHttpResponseVecOrderHistoryEntryDtoDataItemQuoteTokenFilledAmount, type GenericHttpResponseVecOrderHistoryEntryDtoDataItemTxSignature, type GenericHttpResponseVecOrderHistoryEntryDtoDataItemUiExecutionPrice, type GenericHttpResponseVecOrderHistoryEntryDtoDataItemUiPrice, type GenericHttpResponseVecPoolDto, type GenericHttpResponseVecPoolDtoDataItem, type GenericHttpResponseVecPoolDtoDataItemOlpFeeRate, type GenericHttpResponseVecPoolDtoDataItemStats, type GenericHttpResponseVecPoolPriceCandleDto, type GenericHttpResponseVecPoolPriceCandleDtoDataItem, type GenericHttpResponseVecPoolSwapDto, type GenericHttpResponseVecPoolSwapDtoDataItem, type GenericHttpResponseVecStakingDepositsStatsDto, type GenericHttpResponseVecStakingDepositsStatsDtoDataItem, type GenericHttpResponseVecStakingPositionActionDto, type GenericHttpResponseVecStakingPositionActionDtoDataItem, type GenericHttpResponseVecTradeHistoryEntryDto, type GenericHttpResponseVecTradeHistoryEntryDtoDataItem, type GenericHttpResponseVecTradeHistoryEntryDtoDataItemIxIndex, type GenericHttpResponseVecTradeHistoryEntryDtoDataItemPnl, type GenericHttpResponseVecTradeHistoryEntryDtoDataItemTxSignature, type GenericHttpResponseVecTunaLpPositionActionDto, type GenericHttpResponseVecTunaLpPositionActionDtoDataItem, type GenericHttpResponseVecTunaLpPositionDto, type GenericHttpResponseVecTunaLpPositionDtoDataItem, type GenericHttpResponseVecTunaLpPositionDtoDataItemClosedAt, type GenericHttpResponseVecTunaLpPositionDtoDataItemExitPrice, type GenericHttpResponseVecTunaLpPositionDtoDataItemLowerLimitOrder, type GenericHttpResponseVecTunaLpPositionDtoDataItemUpperLimitOrder, type GenericHttpResponseVecTunaPositionDto, type GenericHttpResponseVecTunaPositionDtoDataItem, type GenericHttpResponseVecTunaPositionDtoDataItemClosedAt, type GenericHttpResponseVecTunaSpotPositionDto, type GenericHttpResponseVecTunaSpotPositionDtoDataItem, type GenericHttpResponseVecTunaSpotPositionDtoDataItemClosedAt, type GenericHttpResponseVecVaultDto, type GenericHttpResponseVecVaultDtoDataItem, type GenericHttpResponseVecVaultStatsDto, type GenericHttpResponseVecVaultStatsDtoDataItem, type GenericHttpResponseWithMetaVecLeaderboardItemDtoPaginationMeta, type GenericHttpResponseWithMetaVecLeaderboardItemDtoPaginationMetaDataItem, type GenericHttpResponseWithMetaVecLeaderboardItemDtoPaginationMetaMeta, type GenericHttpResponseWithMetaVecStakingLeaderboardPositionDtoPaginationMeta, type GenericHttpResponseWithMetaVecStakingLeaderboardPositionDtoPaginationMetaDataItem, type GenericHttpResponseWithMetaVecStakingLeaderboardPositionDtoPaginationMetaMeta, type GetCloseSpotPositionQuoteParams, type GetDecreaseSpotPositionQuoteParams, type GetFeesStatsParams, type GetFusionFeesStatsParams, type GetIncreaseSpotPositionQuoteParams, type GetLimitOrderQuoteByInputParams, type GetLimitOrderQuoteByOutputParams, type GetLimitOrdersParams, type GetLpPositionsParams, type GetLpSpotLeaderboardParams, type GetOrderHistoryParams, type GetPoolCandlesParams, type GetPoolOrderBookParams, type GetPoolsParams, type GetPositionsStatsParams, type GetStakingLeaderboardParams, type GetStakingRevenueStatsParams, type GetSwapQuoteByInputParams, type GetSwapQuoteByOutputParams, type GetTradableAmountParams, type GetTradeHistoryParams, type GetVaultHistoryParams, type HashMap, type HttpStatusData, type IncreaseSpotPositionQuoteDto, type LeaderboardItemDto, LeaderboardPeriod, LeaderboardSortBy, type LendingPositionDto, type LimitOrderDto, type LimitOrderDtoCloseTxSignature, type LimitOrderDtoClosedAt, type LimitOrderQuoteByInputDto, type LimitOrderQuoteByOutputDto, LimitOrderStatus, LpPositionsHistoryQueryFilter, type MarketDto, type MintDto, NotificationAction, type NotificationDtoLendingPositionDto, type NotificationDtoLendingPositionDtoData, type NotificationDtoOrderHistoryEntryDto, type NotificationDtoOrderHistoryEntryDtoData, type NotificationDtoOrderHistoryEntryDtoDataBaseTokenConsumedAmount, type NotificationDtoOrderHistoryEntryDtoDataIxIndex, type NotificationDtoOrderHistoryEntryDtoDataQuoteTokenFilledAmount, type NotificationDtoOrderHistoryEntryDtoDataTxSignature, type NotificationDtoOrderHistoryEntryDtoDataUiExecutionPrice, type NotificationDtoOrderHistoryEntryDtoDataUiPrice, type NotificationDtoPoolSwapDto, type NotificationDtoPoolSwapDtoData, type NotificationDtoStakingPositionDto, type NotificationDtoStakingPositionDtoData, type NotificationDtoStakingPositionDtoDataLastUnstakedAt, type NotificationDtoStakingPositionDtoDataRank, type NotificationDtoStakingPositionDtoDataWithdrawAvailableAt, type NotificationDtoTradeHistoryEntryDto, type NotificationDtoTradeHistoryEntryDtoData, type NotificationDtoTradeHistoryEntryDtoDataIxIndex, type NotificationDtoTradeHistoryEntryDtoDataPnl, type NotificationDtoTradeHistoryEntryDtoDataTxSignature, NotificationEntity, type OraclePriceDto, type OrderBookDto, type OrderBookEntryDto, type OrderBookWrapper, type OrderHistoryEntryDto, type OrderHistoryEntryDtoBaseTokenConsumedAmount, type OrderHistoryEntryDtoIxIndex, type OrderHistoryEntryDtoQuoteTokenFilledAmount, type OrderHistoryEntryDtoTxSignature, type OrderHistoryEntryDtoUiExecutionPrice, type OrderHistoryEntryDtoUiPrice, OrderHistoryStatus, OrderHistoryType, OrderHistoryUIDirection, type PaginationMeta, type PoolDto, type PoolDtoOlpFeeRate, type PoolDtoStats, type PoolPriceCandleDto, PoolProvider, type PoolStatsDto, type PoolSubscription, type PoolSubscriptionIsInverted, type PoolSubscriptionOrderBookPriceStep, PoolSubscriptionTopic, type PoolSwapDto, type PoolTicksDto, type Snapshot, type SnapshotContainer, type SnapshotFusionLimitOrders, type SnapshotMarkets, type SnapshotOraclePrices, type SnapshotOraclePricesAnyOf, type SnapshotOrderBooks, type SnapshotTunaLpPositions, type SnapshotTunaSpotPositions, type SseResponse, type StakingDepositsStatsDto, type StakingLeaderboardPositionDto, type StakingPositionActionDto, StakingPositionActionType, type StakingPositionDto, type StakingPositionDtoLastUnstakedAt, type StakingPositionDtoRank, type StakingPositionDtoWithdrawAvailableAt, type StreamInitalMessage, type SubscriptionOptions, type SubscriptionOptionsMarkets, type SubscriptionOptionsMints, type SubscriptionOptionsPools, type SubscriptionOptionsWallet, type SwapQuoteByInputDto, type SwapQuoteByOutputDto, type TickDto, type TokenAmountWithUsd, type TradableAmountDto, TradeHistoryAction, type TradeHistoryEntryDto, type TradeHistoryEntryDtoIxIndex, type TradeHistoryEntryDtoPnl, type TradeHistoryEntryDtoTxSignature, type TradeHistoryEntryPnlUsd, TradeHistoryUIDirection, type TreasuryDto, type TunaLpPositionActionComposite, type TunaLpPositionActionCompositeClosedPnlUsd, type TunaLpPositionActionCompositeCollectedFees, type TunaLpPositionActionCompositeFromLending, type TunaLpPositionActionCompositeFromOwner, type TunaLpPositionActionCompositeFromParameters, type TunaLpPositionActionCompositeFromPosition, type TunaLpPositionActionCompositeParameters, type TunaLpPositionActionCompositePosition, type TunaLpPositionActionCompositePrices, type TunaLpPositionActionCompositeProtocolFees, type TunaLpPositionActionCompositeToLending, type TunaLpPositionActionCompositeToOwner, type TunaLpPositionActionCompositeToParameters, type TunaLpPositionActionCompositeToPosition, type TunaLpPositionActionCompositeWithdrawPercent, type TunaLpPositionActionDto, TunaLpPositionAutoCompound, TunaLpPositionAutoCompounding, type TunaLpPositionDto, type TunaLpPositionDtoClosedAt, type TunaLpPositionDtoExitPrice, type TunaLpPositionDtoLowerLimitOrder, type TunaLpPositionDtoUpperLimitOrder, type TunaLpPositionFlags, type TunaLpPositionFlagsAutoCompounding, type TunaLpPositionFlagsLowerLimitOrderSwapToToken, type TunaLpPositionFlagsUpperLimitOrderSwapToToken, TunaLpPositionLimitOrderSwap, type TunaLpPositionParameters, type TunaLpPositionParametersLowerLimitOrder, type TunaLpPositionParametersUpperLimitOrder, TunaLpPositionRebalance, type TunaLpPositionTokenPrices, type TunaLpPositionTransfer, type TunaLpPositionValue, TunaLpPositionsActionType, type TunaLpPositionsStats, type TunaLpPositionsStatsFusionClosedByLimitOrderCount, type TunaLpPositionsStatsFusionLiquidatedCount, type TunaLpPositionsStatsFusionOpenCount, type TunaLpPositionsStatsOrcaClosedByLimitOrderCount, type TunaLpPositionsStatsOrcaLiquidatedCount, type TunaLpPositionsStatsOrcaOpenCount, type TunaPositionDto, type TunaPositionDtoClosedAt, TunaPositionDtoState, TunaPositionMarketMaker, TunaPositionPoolToken, type TunaPositionTokenDepositedCollateral, type TunaPositionTokenPnl, type TunaPositionUsdPnl, type TunaSpotPositionDto, type TunaSpotPositionDtoClosedAt, TunaSpotPositionDtoState, type VaultDto, type VaultStatsDto, type VestingDto, type VestingDtoLockedAt, type WalletSubscription, WalletSubscriptionTopic, eventIsInitialMessage, eventIsLendingPosition, eventIsOrderHistory, eventIsPoolSwap, eventIsStakingPosition, eventIsStateSnapshot, eventIsTradeHistory, getCloseSpotPositionQuote, type getCloseSpotPositionQuoteResponse, type getCloseSpotPositionQuoteResponse200, type getCloseSpotPositionQuoteResponse400, type getCloseSpotPositionQuoteResponseError, type getCloseSpotPositionQuoteResponseSuccess, getDecreaseSpotPositionQuote, type getDecreaseSpotPositionQuoteResponse, type getDecreaseSpotPositionQuoteResponse200, type getDecreaseSpotPositionQuoteResponse400, type getDecreaseSpotPositionQuoteResponseError, type getDecreaseSpotPositionQuoteResponseSuccess, getFeesStats, type getFeesStatsResponse, type getFeesStatsResponse200, type getFeesStatsResponse400, type getFeesStatsResponse500, type getFeesStatsResponseError, type getFeesStatsResponseSuccess, getFusionFeesStats, type getFusionFeesStatsResponse, type getFusionFeesStatsResponse200, type getFusionFeesStatsResponse400, type getFusionFeesStatsResponse500, type getFusionFeesStatsResponseError, type getFusionFeesStatsResponseSuccess, getGetCloseSpotPositionQuoteUrl, getGetDecreaseSpotPositionQuoteUrl, getGetFeesStatsUrl, getGetFusionFeesStatsUrl, getGetIncreaseSpotPositionQuoteUrl, getGetLendingPositionUrl, getGetLendingPositionsUrl, getGetLimitOrderQuoteByInputUrl, getGetLimitOrderQuoteByOutputUrl, getGetLimitOrderUrl, getGetLimitOrdersUrl, getGetLpPositionActionsUrl, getGetLpPositionsUrl, getGetLpSpotLeaderboardUrl, getGetMarketUrl, getGetMarketsUrl, getGetMintUrl, getGetMintsUrl, getGetOraclePriceUrl, getGetOraclePricesUrl, getGetOrderHistoryUrl, getGetPoolCandlesUrl, getGetPoolOrderBookUrl, getGetPoolSwapsUrl, getGetPoolTicksUrl, getGetPoolUrl, getGetPoolsUrl, getGetPositionsStatsUrl, getGetPositionsTotalUrl, getGetSpotPositionUrl, getGetSpotPositionsUrl, getGetStakingLeaderboardUrl, getGetStakingRevenueStatsUrl, getGetStakingTreasuryUrl, getGetSwapQuoteByInputUrl, getGetSwapQuoteByOutputUrl, getGetTradableAmountUrl, getGetTradeHistoryUrl, getGetTunaPositionUrl, getGetTunaPositionsUrl, getGetUserStakingPositionHistoryUrl, getGetUserStakingPositionUrl, getGetVaultHistoryUrl, getGetVaultUrl, getGetVaultsUrl, getIncreaseSpotPositionQuote, type getIncreaseSpotPositionQuoteResponse, type getIncreaseSpotPositionQuoteResponse200, type getIncreaseSpotPositionQuoteResponse400, type getIncreaseSpotPositionQuoteResponseError, type getIncreaseSpotPositionQuoteResponseSuccess, getLendingPosition, type getLendingPositionResponse, type getLendingPositionResponse200, type getLendingPositionResponse400, type getLendingPositionResponse500, type getLendingPositionResponseError, type getLendingPositionResponseSuccess, getLendingPositions, type getLendingPositionsResponse, type getLendingPositionsResponse200, type getLendingPositionsResponse400, type getLendingPositionsResponse500, type getLendingPositionsResponseError, type getLendingPositionsResponseSuccess, getLimitOrder, getLimitOrderQuoteByInput, type getLimitOrderQuoteByInputResponse, type getLimitOrderQuoteByInputResponse200, type getLimitOrderQuoteByInputResponse400, type getLimitOrderQuoteByInputResponseError, type getLimitOrderQuoteByInputResponseSuccess, getLimitOrderQuoteByOutput, type getLimitOrderQuoteByOutputResponse, type getLimitOrderQuoteByOutputResponse200, type getLimitOrderQuoteByOutputResponse400, type getLimitOrderQuoteByOutputResponseError, type getLimitOrderQuoteByOutputResponseSuccess, type getLimitOrderResponse, type getLimitOrderResponse200, type getLimitOrderResponse400, type getLimitOrderResponse500, type getLimitOrderResponseError, type getLimitOrderResponseSuccess, getLimitOrders, type getLimitOrdersResponse, type getLimitOrdersResponse200, type getLimitOrdersResponse400, type getLimitOrdersResponse500, type getLimitOrdersResponseError, type getLimitOrdersResponseSuccess, getLpPositionActions, type getLpPositionActionsResponse, type getLpPositionActionsResponse200, type getLpPositionActionsResponse400, type getLpPositionActionsResponse500, type getLpPositionActionsResponseError, type getLpPositionActionsResponseSuccess, getLpPositions, type getLpPositionsResponse, type getLpPositionsResponse200, type getLpPositionsResponse400, type getLpPositionsResponse500, type getLpPositionsResponseError, type getLpPositionsResponseSuccess, getLpSpotLeaderboard, type getLpSpotLeaderboardResponse, type getLpSpotLeaderboardResponse200, type getLpSpotLeaderboardResponse400, type getLpSpotLeaderboardResponse500, type getLpSpotLeaderboardResponseError, type getLpSpotLeaderboardResponseSuccess, getMarket, type getMarketResponse, type getMarketResponse200, type getMarketResponse400, type getMarketResponse404, type getMarketResponse500, type getMarketResponseError, type getMarketResponseSuccess, getMarkets, type getMarketsResponse, type getMarketsResponse200, type getMarketsResponse500, type getMarketsResponseError, type getMarketsResponseSuccess, getMint, type getMintResponse, type getMintResponse200, type getMintResponse400, type getMintResponse404, type getMintResponse500, type getMintResponseError, type getMintResponseSuccess, getMints, type getMintsResponse, type getMintsResponse200, type getMintsResponse500, type getMintsResponseError, type getMintsResponseSuccess, getOraclePrice, type getOraclePriceResponse, type getOraclePriceResponse200, type getOraclePriceResponse400, type getOraclePriceResponse404, type getOraclePriceResponse500, type getOraclePriceResponseError, type getOraclePriceResponseSuccess, getOraclePrices, type getOraclePricesResponse, type getOraclePricesResponse200, type getOraclePricesResponse500, type getOraclePricesResponseError, type getOraclePricesResponseSuccess, getOrderHistory, type getOrderHistoryResponse, type getOrderHistoryResponse200, type getOrderHistoryResponse400, type getOrderHistoryResponse500, type getOrderHistoryResponseError, type getOrderHistoryResponseSuccess, getPool, getPoolCandles, type getPoolCandlesResponse, type getPoolCandlesResponse200, type getPoolCandlesResponse400, type getPoolCandlesResponse500, type getPoolCandlesResponseError, type getPoolCandlesResponseSuccess, getPoolOrderBook, type getPoolOrderBookResponse, type getPoolOrderBookResponse200, type getPoolOrderBookResponse400, type getPoolOrderBookResponse404, type getPoolOrderBookResponse500, type getPoolOrderBookResponseError, type getPoolOrderBookResponseSuccess, type getPoolResponse, type getPoolResponse200, type getPoolResponse400, type getPoolResponse404, type getPoolResponse500, type getPoolResponseError, type getPoolResponseSuccess, getPoolSwaps, type getPoolSwapsResponse, type getPoolSwapsResponse200, type getPoolSwapsResponse400, type getPoolSwapsResponse404, type getPoolSwapsResponse500, type getPoolSwapsResponseError, type getPoolSwapsResponseSuccess, getPoolTicks, type getPoolTicksResponse, type getPoolTicksResponse200, type getPoolTicksResponse400, type getPoolTicksResponse404, type getPoolTicksResponse500, type getPoolTicksResponseError, type getPoolTicksResponseSuccess, getPools, type getPoolsResponse, type getPoolsResponse200, type getPoolsResponse500, type getPoolsResponseError, type getPoolsResponseSuccess, getPositionsStats, type getPositionsStatsResponse, type getPositionsStatsResponse200, type getPositionsStatsResponse500, type getPositionsStatsResponseError, type getPositionsStatsResponseSuccess, getPositionsTotal, type getPositionsTotalResponse, type getPositionsTotalResponse200, type getPositionsTotalResponse500, type getPositionsTotalResponseError, type getPositionsTotalResponseSuccess, getSpotPosition, type getSpotPositionResponse, type getSpotPositionResponse200, type getSpotPositionResponse400, type getSpotPositionResponse404, type getSpotPositionResponse500, type getSpotPositionResponseError, type getSpotPositionResponseSuccess, getSpotPositions, type getSpotPositionsResponse, type getSpotPositionsResponse200, type getSpotPositionsResponse400, type getSpotPositionsResponse500, type getSpotPositionsResponseError, type getSpotPositionsResponseSuccess, getSseUpdatesStream, getSseUrl, getStakingLeaderboard, type getStakingLeaderboardResponse, type getStakingLeaderboardResponse200, type getStakingLeaderboardResponse400, type getStakingLeaderboardResponse500, type getStakingLeaderboardResponseError, type getStakingLeaderboardResponseSuccess, getStakingRevenueStats, type getStakingRevenueStatsResponse, type getStakingRevenueStatsResponse200, type getStakingRevenueStatsResponse400, type getStakingRevenueStatsResponse500, type getStakingRevenueStatsResponseError, type getStakingRevenueStatsResponseSuccess, getStakingTreasury, type getStakingTreasuryResponse, type getStakingTreasuryResponse200, type getStakingTreasuryResponse500, type getStakingTreasuryResponseError, type getStakingTreasuryResponseSuccess, getSwapQuoteByInput, type getSwapQuoteByInputResponse, type getSwapQuoteByInputResponse200, type getSwapQuoteByInputResponse400, type getSwapQuoteByInputResponseError, type getSwapQuoteByInputResponseSuccess, getSwapQuoteByOutput, type getSwapQuoteByOutputResponse, type getSwapQuoteByOutputResponse200, type getSwapQuoteByOutputResponse400, type getSwapQuoteByOutputResponseError, type getSwapQuoteByOutputResponseSuccess, getTradableAmount, type getTradableAmountResponse, type getTradableAmountResponse200, type getTradableAmountResponse400, type getTradableAmountResponseError, type getTradableAmountResponseSuccess, getTradeHistory, type getTradeHistoryResponse, type getTradeHistoryResponse200, type getTradeHistoryResponse400, type getTradeHistoryResponse500, type getTradeHistoryResponseError, type getTradeHistoryResponseSuccess, getTunaPosition, type getTunaPositionResponse, type getTunaPositionResponse200, type getTunaPositionResponse400, type getTunaPositionResponse500, type getTunaPositionResponseError, type getTunaPositionResponseSuccess, getTunaPositions, type getTunaPositionsResponse, type getTunaPositionsResponse200, type getTunaPositionsResponse400, type getTunaPositionsResponse500, type getTunaPositionsResponseError, type getTunaPositionsResponseSuccess, getUpdateStreamSubscriptionUrl, getUserStakingPosition, getUserStakingPositionHistory, type getUserStakingPositionHistoryResponse, type getUserStakingPositionHistoryResponse200, type getUserStakingPositionHistoryResponse400, type getUserStakingPositionHistoryResponse500, type getUserStakingPositionHistoryResponseError, type getUserStakingPositionHistoryResponseSuccess, type getUserStakingPositionResponse, type getUserStakingPositionResponse200, type getUserStakingPositionResponse400, type getUserStakingPositionResponse500, type getUserStakingPositionResponseError, type getUserStakingPositionResponseSuccess, getVault, getVaultHistory, type getVaultHistoryResponse, type getVaultHistoryResponse200, type getVaultHistoryResponse400, type getVaultHistoryResponse404, type getVaultHistoryResponse500, type getVaultHistoryResponseError, type getVaultHistoryResponseSuccess, type getVaultResponse, type getVaultResponse200, type getVaultResponse400, type getVaultResponse404, type getVaultResponse500, type getVaultResponseError, type getVaultResponseSuccess, getVaults, type getVaultsResponse, type getVaultsResponse200, type getVaultsResponse500, type getVaultsResponseError, type getVaultsResponseSuccess, normalizeResponseJson, setTunaBaseUrl, sse, type sseResponse, type sseResponse200, type sseResponse500, type sseResponseError, type sseResponseSuccess, unwrap, updateStreamSubscription, type updateStreamSubscriptionResponse, type updateStreamSubscriptionResponse200, type updateStreamSubscriptionResponse400, type updateStreamSubscriptionResponse500, type updateStreamSubscriptionResponseError, type updateStreamSubscriptionResponseSuccess };
|
|
3714
|
+
export { type ApiError, type BadRequestErrorCodeErrorBody, BadRequestErrorCodeErrorBodyCode, type CloseSpotPositionQuoteDto, type DecreaseSpotPositionQuoteDto, type FeeAmountWithUsd, type FeesStatsGroupDto, type FieldError, type FusionFeesStatsGroupDto, type GenericHttpResponseCloseSpotPositionQuoteDto, type GenericHttpResponseCloseSpotPositionQuoteDtoData, type GenericHttpResponseDecreaseSpotPositionQuoteDto, type GenericHttpResponseDecreaseSpotPositionQuoteDtoData, type GenericHttpResponseHttpStatusData, type GenericHttpResponseHttpStatusDataData, type GenericHttpResponseI64, type GenericHttpResponseIncreaseSpotPositionQuoteDto, type GenericHttpResponseIncreaseSpotPositionQuoteDtoData, type GenericHttpResponseLimitOrderQuoteByOutputDto, type GenericHttpResponseLimitOrderQuoteByOutputDtoData, type GenericHttpResponseMarketDto, type GenericHttpResponseMarketDtoData, type GenericHttpResponseMintDto, type GenericHttpResponseMintDtoData, type GenericHttpResponseOptionLendingPositionDto, type GenericHttpResponseOptionLendingPositionDtoData, type GenericHttpResponseOptionLendingPositionDtoDataOneOf, type GenericHttpResponseOptionTunaPositionDto, type GenericHttpResponseOptionTunaPositionDtoData, type GenericHttpResponseOptionTunaPositionDtoDataOneOf, type GenericHttpResponseOptionTunaPositionDtoDataOneOfClosedAt, type GenericHttpResponseOraclePriceDto, type GenericHttpResponseOraclePriceDtoData, type GenericHttpResponseOrderBookDto, type GenericHttpResponseOrderBookDtoData, type GenericHttpResponsePoolDto, type GenericHttpResponsePoolDtoData, type GenericHttpResponsePoolDtoDataOlpFeeRate, type GenericHttpResponsePoolDtoDataStats, type GenericHttpResponsePoolTicksDto, type GenericHttpResponsePoolTicksDtoData, type GenericHttpResponseSseResponse, type GenericHttpResponseSseResponseData, type GenericHttpResponseStakingPositionDto, type GenericHttpResponseStakingPositionDtoData, type GenericHttpResponseStakingPositionDtoDataLastUnstakedAt, type GenericHttpResponseStakingPositionDtoDataRank, type GenericHttpResponseStakingPositionDtoDataWithdrawAvailableAt, type GenericHttpResponseSwapQuoteByInputDto, type GenericHttpResponseSwapQuoteByInputDtoData, type GenericHttpResponseSwapQuoteByOutputDto, type GenericHttpResponseSwapQuoteByOutputDtoData, type GenericHttpResponseTradableAmountDto, type GenericHttpResponseTradableAmountDtoData, type GenericHttpResponseTreasuryDto, type GenericHttpResponseTreasuryDtoData, type GenericHttpResponseTunaSpotPositionDto, type GenericHttpResponseTunaSpotPositionDtoData, type GenericHttpResponseTunaSpotPositionDtoDataClosedAt, type GenericHttpResponseVaultDto, type GenericHttpResponseVaultDtoData, type GenericHttpResponseVecFeesStatsGroupDto, type GenericHttpResponseVecFeesStatsGroupDtoDataItem, type GenericHttpResponseVecFusionFeesStatsGroupDto, type GenericHttpResponseVecFusionFeesStatsGroupDtoDataItem, type GenericHttpResponseVecLendingPositionDto, type GenericHttpResponseVecLendingPositionDtoDataItem, type GenericHttpResponseVecLimitOrderDto, type GenericHttpResponseVecLimitOrderDtoDataItem, type GenericHttpResponseVecLimitOrderDtoDataItemCloseTxSignature, type GenericHttpResponseVecLimitOrderDtoDataItemClosedAt, type GenericHttpResponseVecMarketDto, type GenericHttpResponseVecMarketDtoDataItem, type GenericHttpResponseVecMintDto, type GenericHttpResponseVecMintDtoDataItem, type GenericHttpResponseVecOraclePriceDto, type GenericHttpResponseVecOraclePriceDtoDataItem, type GenericHttpResponseVecOrderHistoryEntryDto, type GenericHttpResponseVecOrderHistoryEntryDtoDataItem, type GenericHttpResponseVecOrderHistoryEntryDtoDataItemBaseTokenConsumedAmount, type GenericHttpResponseVecOrderHistoryEntryDtoDataItemIxIndex, type GenericHttpResponseVecOrderHistoryEntryDtoDataItemQuoteTokenFilledAmount, type GenericHttpResponseVecOrderHistoryEntryDtoDataItemTxSignature, type GenericHttpResponseVecOrderHistoryEntryDtoDataItemUiExecutionPrice, type GenericHttpResponseVecOrderHistoryEntryDtoDataItemUiPrice, type GenericHttpResponseVecPoolDto, type GenericHttpResponseVecPoolDtoDataItem, type GenericHttpResponseVecPoolDtoDataItemOlpFeeRate, type GenericHttpResponseVecPoolDtoDataItemStats, type GenericHttpResponseVecPoolPriceCandleDto, type GenericHttpResponseVecPoolPriceCandleDtoDataItem, type GenericHttpResponseVecPoolSwapDto, type GenericHttpResponseVecPoolSwapDtoDataItem, type GenericHttpResponseVecStakingDepositsStatsDto, type GenericHttpResponseVecStakingDepositsStatsDtoDataItem, type GenericHttpResponseVecStakingPositionActionDto, type GenericHttpResponseVecStakingPositionActionDtoDataItem, type GenericHttpResponseVecTradeHistoryEntryDto, type GenericHttpResponseVecTradeHistoryEntryDtoDataItem, type GenericHttpResponseVecTradeHistoryEntryDtoDataItemIxIndex, type GenericHttpResponseVecTradeHistoryEntryDtoDataItemPnl, type GenericHttpResponseVecTradeHistoryEntryDtoDataItemTxSignature, type GenericHttpResponseVecTunaLpPositionActionDto, type GenericHttpResponseVecTunaLpPositionActionDtoDataItem, type GenericHttpResponseVecTunaLpPositionDto, type GenericHttpResponseVecTunaLpPositionDtoDataItem, type GenericHttpResponseVecTunaLpPositionDtoDataItemClosedAt, type GenericHttpResponseVecTunaLpPositionDtoDataItemExitPrice, type GenericHttpResponseVecTunaLpPositionDtoDataItemLowerLimitOrder, type GenericHttpResponseVecTunaLpPositionDtoDataItemUpperLimitOrder, type GenericHttpResponseVecTunaPositionDto, type GenericHttpResponseVecTunaPositionDtoDataItem, type GenericHttpResponseVecTunaPositionDtoDataItemClosedAt, type GenericHttpResponseVecTunaSpotPositionDto, type GenericHttpResponseVecTunaSpotPositionDtoDataItem, type GenericHttpResponseVecTunaSpotPositionDtoDataItemClosedAt, type GenericHttpResponseVecVaultDto, type GenericHttpResponseVecVaultDtoDataItem, type GenericHttpResponseVecVaultStatsDto, type GenericHttpResponseVecVaultStatsDtoDataItem, type GenericHttpResponseWithMetaVecLeaderboardItemDtoPaginationMeta, type GenericHttpResponseWithMetaVecLeaderboardItemDtoPaginationMetaDataItem, type GenericHttpResponseWithMetaVecLeaderboardItemDtoPaginationMetaMeta, type GenericHttpResponseWithMetaVecStakingLeaderboardPositionDtoPaginationMeta, type GenericHttpResponseWithMetaVecStakingLeaderboardPositionDtoPaginationMetaDataItem, type GenericHttpResponseWithMetaVecStakingLeaderboardPositionDtoPaginationMetaMeta, type GetCloseSpotPositionQuoteParams, type GetDecreaseSpotPositionQuoteParams, type GetFeesStatsParams, type GetFusionFeesStatsParams, type GetIncreaseSpotPositionQuoteParams, type GetLimitOrder200, type GetLimitOrderError404Error, GetLimitOrderError404ErrorCode, type GetLimitOrderError500Error, GetLimitOrderError500ErrorCode, type GetLimitOrderQuoteByInput200, type GetLimitOrderQuoteByInputParams, type GetLimitOrderQuoteByOutputParams, type GetLimitOrdersParams, type GetLpPositionsParams, type GetLpSpotLeaderboardParams, type GetOrderHistoryParams, type GetPoolCandlesParams, type GetPoolOrderBookParams, type GetPoolsParams, type GetPositionsStatsParams, type GetStakingLeaderboardParams, type GetStakingRevenueStatsParams, type GetSwapQuoteByInputParams, type GetSwapQuoteByOutputParams, type GetTradableAmountParams, type GetTradeHistoryParams, type GetVaultHistoryParams, type HashMap, type HttpStatusData, type IncreaseSpotPositionQuoteDto, type InternalErrorCodeErrorBody, InternalErrorCodeErrorBodyCode, type LeaderboardItemDto, LeaderboardPeriod, LeaderboardSortBy, type LendingPositionDto, type LimitOrderDto, type LimitOrderDtoCloseTxSignature, type LimitOrderDtoClosedAt, type LimitOrderQuoteByInputDto, type LimitOrderQuoteByOutputDto, LimitOrderStatus, type MarketDto, type MintDto, NotificationAction, type NotificationDtoLendingPositionDto, type NotificationDtoLendingPositionDtoData, type NotificationDtoOrderHistoryEntryDto, type NotificationDtoOrderHistoryEntryDtoData, type NotificationDtoOrderHistoryEntryDtoDataBaseTokenConsumedAmount, type NotificationDtoOrderHistoryEntryDtoDataIxIndex, type NotificationDtoOrderHistoryEntryDtoDataQuoteTokenFilledAmount, type NotificationDtoOrderHistoryEntryDtoDataTxSignature, type NotificationDtoOrderHistoryEntryDtoDataUiExecutionPrice, type NotificationDtoOrderHistoryEntryDtoDataUiPrice, type NotificationDtoPoolSwapDto, type NotificationDtoPoolSwapDtoData, type NotificationDtoStakingPositionDto, type NotificationDtoStakingPositionDtoData, type NotificationDtoStakingPositionDtoDataLastUnstakedAt, type NotificationDtoStakingPositionDtoDataRank, type NotificationDtoStakingPositionDtoDataWithdrawAvailableAt, type NotificationDtoTradeHistoryEntryDto, type NotificationDtoTradeHistoryEntryDtoData, type NotificationDtoTradeHistoryEntryDtoDataIxIndex, type NotificationDtoTradeHistoryEntryDtoDataPnl, type NotificationDtoTradeHistoryEntryDtoDataTxSignature, NotificationEntity, type OraclePriceDto, type OrderBookDto, type OrderBookEntryDto, type OrderBookWrapper, type OrderHistoryEntryDto, type OrderHistoryEntryDtoBaseTokenConsumedAmount, type OrderHistoryEntryDtoIxIndex, type OrderHistoryEntryDtoQuoteTokenFilledAmount, type OrderHistoryEntryDtoTxSignature, type OrderHistoryEntryDtoUiExecutionPrice, type OrderHistoryEntryDtoUiPrice, OrderHistoryStatus, OrderHistoryType, OrderHistoryUIDirection, type PaginationMeta, type PoolDto, type PoolDtoOlpFeeRate, type PoolDtoStats, type PoolPriceCandleDto, PoolProvider, type PoolStatsDto, type PoolSubscription, type PoolSubscriptionIsInverted, type PoolSubscriptionOrderBookPriceStep, PoolSubscriptionTopic, type PoolSwapDto, type PoolTicksDto, type PubkeyDto, type Snapshot, type SnapshotContainer, type SnapshotFusionLimitOrders, type SnapshotMarkets, type SnapshotOraclePrices, type SnapshotOraclePricesAnyOf, type SnapshotOrderBooks, type SnapshotTunaLpPositions, type SnapshotTunaSpotPositions, type SseResponse, type StakingDepositsStatsDto, type StakingLeaderboardPositionDto, type StakingPositionActionDto, StakingPositionActionType, type StakingPositionDto, type StakingPositionDtoLastUnstakedAt, type StakingPositionDtoRank, type StakingPositionDtoWithdrawAvailableAt, type StreamInitalMessage, type SubscriptionOptions, type SubscriptionOptionsMarkets, type SubscriptionOptionsMints, type SubscriptionOptionsPools, type SubscriptionOptionsWallet, type SwapQuoteByInputDto, type SwapQuoteByOutputDto, type TickDto, type TokenAmountWithUsd, type TradableAmountDto, TradeHistoryAction, type TradeHistoryEntryDto, type TradeHistoryEntryDtoIxIndex, type TradeHistoryEntryDtoPnl, type TradeHistoryEntryDtoTxSignature, type TradeHistoryEntryPnlUsd, TradeHistoryUIDirection, type TreasuryDto, type TunaLpPositionActionComposite, type TunaLpPositionActionCompositeClosedPnlUsd, type TunaLpPositionActionCompositeCollectedFees, type TunaLpPositionActionCompositeFromLending, type TunaLpPositionActionCompositeFromOwner, type TunaLpPositionActionCompositeFromParameters, type TunaLpPositionActionCompositeFromPosition, type TunaLpPositionActionCompositeParameters, type TunaLpPositionActionCompositePosition, type TunaLpPositionActionCompositePrices, type TunaLpPositionActionCompositeProtocolFees, type TunaLpPositionActionCompositeToLending, type TunaLpPositionActionCompositeToOwner, type TunaLpPositionActionCompositeToParameters, type TunaLpPositionActionCompositeToPosition, type TunaLpPositionActionCompositeWithdrawPercent, type TunaLpPositionActionDto, TunaLpPositionAutoCompound, TunaLpPositionAutoCompounding, type TunaLpPositionDto, type TunaLpPositionDtoClosedAt, type TunaLpPositionDtoExitPrice, type TunaLpPositionDtoLowerLimitOrder, type TunaLpPositionDtoUpperLimitOrder, type TunaLpPositionFlags, type TunaLpPositionFlagsAutoCompounding, type TunaLpPositionFlagsLowerLimitOrderSwapToToken, type TunaLpPositionFlagsUpperLimitOrderSwapToToken, TunaLpPositionLimitOrderSwap, type TunaLpPositionParameters, type TunaLpPositionParametersLowerLimitOrder, type TunaLpPositionParametersUpperLimitOrder, TunaLpPositionRebalance, type TunaLpPositionTokenPrices, type TunaLpPositionTransfer, type TunaLpPositionValue, TunaLpPositionsActionType, type TunaLpPositionsStats, type TunaLpPositionsStatsFusionClosedByLimitOrderCount, type TunaLpPositionsStatsFusionLiquidatedCount, type TunaLpPositionsStatsFusionOpenCount, type TunaLpPositionsStatsOrcaClosedByLimitOrderCount, type TunaLpPositionsStatsOrcaLiquidatedCount, type TunaLpPositionsStatsOrcaOpenCount, type TunaPositionDto, type TunaPositionDtoClosedAt, TunaPositionDtoState, TunaPositionMarketMaker, TunaPositionPoolToken, type TunaPositionTokenDepositedCollateral, type TunaPositionTokenPnl, type TunaPositionUsdPnl, type TunaSpotPositionDto, type TunaSpotPositionDtoClosedAt, TunaSpotPositionDtoState, type ValidationErrorCodeErrorBody, ValidationErrorCodeErrorBodyCode, type ValidationErrorCodeErrorBodyData, type ValidationErrorCodeValidationDetailsErrorBody, ValidationErrorCodeValidationDetailsErrorBodyCode, type ValidationErrorCodeValidationDetailsErrorBodyData, type VaultDto, type VaultStatsDto, type VestingDto, type VestingDtoLockedAt, type WalletSubscription, WalletSubscriptionTopic, eventIsInitialMessage, eventIsLendingPosition, eventIsOrderHistory, eventIsPoolSwap, eventIsStakingPosition, eventIsStateSnapshot, eventIsTradeHistory, getCloseSpotPositionQuote, type getCloseSpotPositionQuoteResponse, type getCloseSpotPositionQuoteResponse200, type getCloseSpotPositionQuoteResponse400, type getCloseSpotPositionQuoteResponseError, type getCloseSpotPositionQuoteResponseSuccess, getDecreaseSpotPositionQuote, type getDecreaseSpotPositionQuoteResponse, type getDecreaseSpotPositionQuoteResponse200, type getDecreaseSpotPositionQuoteResponse400, type getDecreaseSpotPositionQuoteResponseError, type getDecreaseSpotPositionQuoteResponseSuccess, getFeesStats, type getFeesStatsResponse, type getFeesStatsResponse200, type getFeesStatsResponse400, type getFeesStatsResponse500, type getFeesStatsResponseError, type getFeesStatsResponseSuccess, getFusionFeesStats, type getFusionFeesStatsResponse, type getFusionFeesStatsResponse200, type getFusionFeesStatsResponse400, type getFusionFeesStatsResponse500, type getFusionFeesStatsResponseError, type getFusionFeesStatsResponseSuccess, getGetCloseSpotPositionQuoteUrl, getGetDecreaseSpotPositionQuoteUrl, getGetFeesStatsUrl, getGetFusionFeesStatsUrl, getGetIncreaseSpotPositionQuoteUrl, getGetLendingPositionUrl, getGetLendingPositionsUrl, getGetLimitOrderQuoteByInputUrl, getGetLimitOrderQuoteByOutputUrl, getGetLimitOrderUrl, getGetLimitOrdersUrl, getGetLpPositionActionsUrl, getGetLpPositionsUrl, getGetLpSpotLeaderboardUrl, getGetMarketUrl, getGetMarketsUrl, getGetMintUrl, getGetMintsUrl, getGetOraclePriceUrl, getGetOraclePricesUrl, getGetOrderHistoryUrl, getGetPoolCandlesUrl, getGetPoolOrderBookUrl, getGetPoolSwapsUrl, getGetPoolTicksUrl, getGetPoolUrl, getGetPoolsUrl, getGetPositionsStatsUrl, getGetPositionsTotalUrl, getGetSpotPositionUrl, getGetSpotPositionsUrl, getGetStakingLeaderboardUrl, getGetStakingRevenueStatsUrl, getGetStakingTreasuryUrl, getGetSwapQuoteByInputUrl, getGetSwapQuoteByOutputUrl, getGetTradableAmountUrl, getGetTradeHistoryUrl, getGetTunaPositionUrl, getGetTunaPositionsUrl, getGetUserStakingPositionHistoryUrl, getGetUserStakingPositionUrl, getGetVaultHistoryUrl, getGetVaultUrl, getGetVaultsUrl, getIncreaseSpotPositionQuote, type getIncreaseSpotPositionQuoteResponse, type getIncreaseSpotPositionQuoteResponse200, type getIncreaseSpotPositionQuoteResponse400, type getIncreaseSpotPositionQuoteResponseError, type getIncreaseSpotPositionQuoteResponseSuccess, getLendingPosition, type getLendingPositionResponse, type getLendingPositionResponse200, type getLendingPositionResponse400, type getLendingPositionResponse500, type getLendingPositionResponseError, type getLendingPositionResponseSuccess, getLendingPositions, type getLendingPositionsResponse, type getLendingPositionsResponse200, type getLendingPositionsResponse400, type getLendingPositionsResponse500, type getLendingPositionsResponseError, type getLendingPositionsResponseSuccess, getLimitOrder, getLimitOrderQuoteByInput, type getLimitOrderQuoteByInputResponse, type getLimitOrderQuoteByInputResponse200, type getLimitOrderQuoteByInputResponse400, type getLimitOrderQuoteByInputResponse422, type getLimitOrderQuoteByInputResponse500, type getLimitOrderQuoteByInputResponseError, type getLimitOrderQuoteByInputResponseSuccess, getLimitOrderQuoteByOutput, type getLimitOrderQuoteByOutputResponse, type getLimitOrderQuoteByOutputResponse200, type getLimitOrderQuoteByOutputResponse400, type getLimitOrderQuoteByOutputResponseError, type getLimitOrderQuoteByOutputResponseSuccess, type getLimitOrderResponse, type getLimitOrderResponse200, type getLimitOrderResponse400, type getLimitOrderResponse404, type getLimitOrderResponse422, type getLimitOrderResponse500, type getLimitOrderResponseError, type getLimitOrderResponseSuccess, getLimitOrders, type getLimitOrdersResponse, type getLimitOrdersResponse200, type getLimitOrdersResponse400, type getLimitOrdersResponse500, type getLimitOrdersResponseError, type getLimitOrdersResponseSuccess, getLpPositionActions, type getLpPositionActionsResponse, type getLpPositionActionsResponse200, type getLpPositionActionsResponse400, type getLpPositionActionsResponse500, type getLpPositionActionsResponseError, type getLpPositionActionsResponseSuccess, getLpPositions, type getLpPositionsResponse, type getLpPositionsResponse200, type getLpPositionsResponse400, type getLpPositionsResponse500, type getLpPositionsResponseError, type getLpPositionsResponseSuccess, getLpSpotLeaderboard, type getLpSpotLeaderboardResponse, type getLpSpotLeaderboardResponse200, type getLpSpotLeaderboardResponse400, type getLpSpotLeaderboardResponse500, type getLpSpotLeaderboardResponseError, type getLpSpotLeaderboardResponseSuccess, getMarket, type getMarketResponse, type getMarketResponse200, type getMarketResponse400, type getMarketResponse404, type getMarketResponse500, type getMarketResponseError, type getMarketResponseSuccess, getMarkets, type getMarketsResponse, type getMarketsResponse200, type getMarketsResponse500, type getMarketsResponseError, type getMarketsResponseSuccess, getMint, type getMintResponse, type getMintResponse200, type getMintResponse400, type getMintResponse404, type getMintResponse500, type getMintResponseError, type getMintResponseSuccess, getMints, type getMintsResponse, type getMintsResponse200, type getMintsResponse500, type getMintsResponseError, type getMintsResponseSuccess, getOraclePrice, type getOraclePriceResponse, type getOraclePriceResponse200, type getOraclePriceResponse400, type getOraclePriceResponse404, type getOraclePriceResponse500, type getOraclePriceResponseError, type getOraclePriceResponseSuccess, getOraclePrices, type getOraclePricesResponse, type getOraclePricesResponse200, type getOraclePricesResponse500, type getOraclePricesResponseError, type getOraclePricesResponseSuccess, getOrderHistory, type getOrderHistoryResponse, type getOrderHistoryResponse200, type getOrderHistoryResponse400, type getOrderHistoryResponse500, type getOrderHistoryResponseError, type getOrderHistoryResponseSuccess, getPool, getPoolCandles, type getPoolCandlesResponse, type getPoolCandlesResponse200, type getPoolCandlesResponse400, type getPoolCandlesResponse500, type getPoolCandlesResponseError, type getPoolCandlesResponseSuccess, getPoolOrderBook, type getPoolOrderBookResponse, type getPoolOrderBookResponse200, type getPoolOrderBookResponse400, type getPoolOrderBookResponse404, type getPoolOrderBookResponse500, type getPoolOrderBookResponseError, type getPoolOrderBookResponseSuccess, type getPoolResponse, type getPoolResponse200, type getPoolResponse400, type getPoolResponse404, type getPoolResponse500, type getPoolResponseError, type getPoolResponseSuccess, getPoolSwaps, type getPoolSwapsResponse, type getPoolSwapsResponse200, type getPoolSwapsResponse400, type getPoolSwapsResponse404, type getPoolSwapsResponse500, type getPoolSwapsResponseError, type getPoolSwapsResponseSuccess, getPoolTicks, type getPoolTicksResponse, type getPoolTicksResponse200, type getPoolTicksResponse400, type getPoolTicksResponse404, type getPoolTicksResponse500, type getPoolTicksResponseError, type getPoolTicksResponseSuccess, getPools, type getPoolsResponse, type getPoolsResponse200, type getPoolsResponse500, type getPoolsResponseError, type getPoolsResponseSuccess, getPositionsStats, type getPositionsStatsResponse, type getPositionsStatsResponse200, type getPositionsStatsResponse500, type getPositionsStatsResponseError, type getPositionsStatsResponseSuccess, getPositionsTotal, type getPositionsTotalResponse, type getPositionsTotalResponse200, type getPositionsTotalResponse500, type getPositionsTotalResponseError, type getPositionsTotalResponseSuccess, getSpotPosition, type getSpotPositionResponse, type getSpotPositionResponse200, type getSpotPositionResponse400, type getSpotPositionResponse404, type getSpotPositionResponse500, type getSpotPositionResponseError, type getSpotPositionResponseSuccess, getSpotPositions, type getSpotPositionsResponse, type getSpotPositionsResponse200, type getSpotPositionsResponse400, type getSpotPositionsResponse500, type getSpotPositionsResponseError, type getSpotPositionsResponseSuccess, getSseUpdatesStream, getSseUrl, getStakingLeaderboard, type getStakingLeaderboardResponse, type getStakingLeaderboardResponse200, type getStakingLeaderboardResponse400, type getStakingLeaderboardResponse500, type getStakingLeaderboardResponseError, type getStakingLeaderboardResponseSuccess, getStakingRevenueStats, type getStakingRevenueStatsResponse, type getStakingRevenueStatsResponse200, type getStakingRevenueStatsResponse400, type getStakingRevenueStatsResponse500, type getStakingRevenueStatsResponseError, type getStakingRevenueStatsResponseSuccess, getStakingTreasury, type getStakingTreasuryResponse, type getStakingTreasuryResponse200, type getStakingTreasuryResponse500, type getStakingTreasuryResponseError, type getStakingTreasuryResponseSuccess, getSwapQuoteByInput, type getSwapQuoteByInputResponse, type getSwapQuoteByInputResponse200, type getSwapQuoteByInputResponse400, type getSwapQuoteByInputResponseError, type getSwapQuoteByInputResponseSuccess, getSwapQuoteByOutput, type getSwapQuoteByOutputResponse, type getSwapQuoteByOutputResponse200, type getSwapQuoteByOutputResponse400, type getSwapQuoteByOutputResponseError, type getSwapQuoteByOutputResponseSuccess, getTradableAmount, type getTradableAmountResponse, type getTradableAmountResponse200, type getTradableAmountResponse400, type getTradableAmountResponseError, type getTradableAmountResponseSuccess, getTradeHistory, type getTradeHistoryResponse, type getTradeHistoryResponse200, type getTradeHistoryResponse400, type getTradeHistoryResponse500, type getTradeHistoryResponseError, type getTradeHistoryResponseSuccess, getTunaPosition, type getTunaPositionResponse, type getTunaPositionResponse200, type getTunaPositionResponse400, type getTunaPositionResponse500, type getTunaPositionResponseError, type getTunaPositionResponseSuccess, getTunaPositions, type getTunaPositionsResponse, type getTunaPositionsResponse200, type getTunaPositionsResponse400, type getTunaPositionsResponse500, type getTunaPositionsResponseError, type getTunaPositionsResponseSuccess, getUpdateStreamSubscriptionUrl, getUserStakingPosition, getUserStakingPositionHistory, type getUserStakingPositionHistoryResponse, type getUserStakingPositionHistoryResponse200, type getUserStakingPositionHistoryResponse400, type getUserStakingPositionHistoryResponse500, type getUserStakingPositionHistoryResponseError, type getUserStakingPositionHistoryResponseSuccess, type getUserStakingPositionResponse, type getUserStakingPositionResponse200, type getUserStakingPositionResponse400, type getUserStakingPositionResponse500, type getUserStakingPositionResponseError, type getUserStakingPositionResponseSuccess, getVault, getVaultHistory, type getVaultHistoryResponse, type getVaultHistoryResponse200, type getVaultHistoryResponse400, type getVaultHistoryResponse404, type getVaultHistoryResponse500, type getVaultHistoryResponseError, type getVaultHistoryResponseSuccess, type getVaultResponse, type getVaultResponse200, type getVaultResponse400, type getVaultResponse404, type getVaultResponse500, type getVaultResponseError, type getVaultResponseSuccess, getVaults, type getVaultsResponse, type getVaultsResponse200, type getVaultsResponse500, type getVaultsResponseError, type getVaultsResponseSuccess, normalizeResponseJson, setTunaBaseUrl, sse, type sseResponse, type sseResponse200, type sseResponse500, type sseResponseError, type sseResponseSuccess, unwrap, updateStreamSubscription, type updateStreamSubscriptionResponse, type updateStreamSubscriptionResponse200, type updateStreamSubscriptionResponse400, type updateStreamSubscriptionResponse500, type updateStreamSubscriptionResponseError, type updateStreamSubscriptionResponseSuccess };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { EventSource } from 'eventsource';
|
|
2
2
|
|
|
3
|
+
type BadRequestErrorCodeErrorBodyCode = typeof BadRequestErrorCodeErrorBodyCode[keyof typeof BadRequestErrorCodeErrorBodyCode];
|
|
4
|
+
declare const BadRequestErrorCodeErrorBodyCode: {
|
|
5
|
+
readonly invalidPath: "invalid_path";
|
|
6
|
+
readonly invalidQuery: "invalid_query";
|
|
7
|
+
readonly invalidBody: "invalid_body";
|
|
8
|
+
};
|
|
9
|
+
interface BadRequestErrorCodeErrorBody {
|
|
10
|
+
code: BadRequestErrorCodeErrorBodyCode;
|
|
11
|
+
}
|
|
3
12
|
interface CloseSpotPositionQuoteDto {
|
|
4
13
|
/** Confirmed position decrease percentage (100% = 1.0) */
|
|
5
14
|
decreasePercent: number;
|
|
@@ -67,6 +76,12 @@ interface FeesStatsGroupDto {
|
|
|
67
76
|
totalYieldCompoundingNetworkFees: number;
|
|
68
77
|
yieldCompoundingFees: number;
|
|
69
78
|
}
|
|
79
|
+
interface FieldError {
|
|
80
|
+
/** Field name in request. */
|
|
81
|
+
field: string;
|
|
82
|
+
/** Validation error message. */
|
|
83
|
+
message: string;
|
|
84
|
+
}
|
|
70
85
|
interface FusionFeesStatsGroupDto {
|
|
71
86
|
/** Solana public key (base58) */
|
|
72
87
|
pool: string;
|
|
@@ -174,13 +189,6 @@ type GenericHttpResponseIncreaseSpotPositionQuoteDtoData = {
|
|
|
174
189
|
interface GenericHttpResponseIncreaseSpotPositionQuoteDto {
|
|
175
190
|
data: GenericHttpResponseIncreaseSpotPositionQuoteDtoData;
|
|
176
191
|
}
|
|
177
|
-
type GenericHttpResponseLimitOrderQuoteByInputDtoData = {
|
|
178
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
179
|
-
amountOut: bigint;
|
|
180
|
-
};
|
|
181
|
-
interface GenericHttpResponseLimitOrderQuoteByInputDto {
|
|
182
|
-
data: GenericHttpResponseLimitOrderQuoteByInputDtoData;
|
|
183
|
-
}
|
|
184
192
|
type GenericHttpResponseLimitOrderQuoteByOutputDtoData = {
|
|
185
193
|
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
186
194
|
amountIn: bigint;
|
|
@@ -253,32 +261,6 @@ type GenericHttpResponseOptionLendingPositionDtoData = null | GenericHttpRespons
|
|
|
253
261
|
interface GenericHttpResponseOptionLendingPositionDto {
|
|
254
262
|
data: GenericHttpResponseOptionLendingPositionDtoData;
|
|
255
263
|
}
|
|
256
|
-
type GenericHttpResponseOptionLimitOrderDtoDataOneOfCloseTxSignature = string | null;
|
|
257
|
-
type GenericHttpResponseOptionLimitOrderDtoDataOneOfClosedAt = Date | null;
|
|
258
|
-
type GenericHttpResponseOptionLimitOrderDtoDataOneOf = {
|
|
259
|
-
aToB: boolean;
|
|
260
|
-
/** Solana public key (base58) */
|
|
261
|
-
address: string;
|
|
262
|
-
amountIn: TokenAmountWithUsd;
|
|
263
|
-
amountOut: TokenAmountWithUsd;
|
|
264
|
-
/** Solana public key (base58) */
|
|
265
|
-
authority: string;
|
|
266
|
-
closeTxSignature?: GenericHttpResponseOptionLimitOrderDtoDataOneOfCloseTxSignature;
|
|
267
|
-
closedAt?: GenericHttpResponseOptionLimitOrderDtoDataOneOfClosedAt;
|
|
268
|
-
fillRatio: number;
|
|
269
|
-
id: string;
|
|
270
|
-
openTxSignature: string;
|
|
271
|
-
openedAt: Date;
|
|
272
|
-
/** Solana public key (base58) */
|
|
273
|
-
orderMint: string;
|
|
274
|
-
pool: PoolDto;
|
|
275
|
-
state: LimitOrderStatus;
|
|
276
|
-
tickIndex: number;
|
|
277
|
-
};
|
|
278
|
-
type GenericHttpResponseOptionLimitOrderDtoData = null | GenericHttpResponseOptionLimitOrderDtoDataOneOf;
|
|
279
|
-
interface GenericHttpResponseOptionLimitOrderDto {
|
|
280
|
-
data: GenericHttpResponseOptionLimitOrderDtoData;
|
|
281
|
-
}
|
|
282
264
|
type GenericHttpResponseOptionTunaPositionDtoDataOneOfClosedAt = Date | null;
|
|
283
265
|
type GenericHttpResponseOptionTunaPositionDtoDataOneOf = {
|
|
284
266
|
/** Solana public key (base58) */
|
|
@@ -901,8 +883,7 @@ type GenericHttpResponseVecTunaLpPositionDtoDataItem = {
|
|
|
901
883
|
lowerPrice: number;
|
|
902
884
|
marketMaker: PoolProvider;
|
|
903
885
|
openedAt: Date;
|
|
904
|
-
|
|
905
|
-
pool: string;
|
|
886
|
+
pool: PoolDto;
|
|
906
887
|
/** Solana public key (base58) */
|
|
907
888
|
positionAddress: string;
|
|
908
889
|
state: TunaPositionDtoState;
|
|
@@ -1034,6 +1015,20 @@ interface GenericHttpResponseVecVaultStatsDto {
|
|
|
1034
1015
|
interface GenericHttpResponseI64 {
|
|
1035
1016
|
data: number;
|
|
1036
1017
|
}
|
|
1018
|
+
type GetLimitOrderError404ErrorCode = typeof GetLimitOrderError404ErrorCode[keyof typeof GetLimitOrderError404ErrorCode];
|
|
1019
|
+
declare const GetLimitOrderError404ErrorCode: {
|
|
1020
|
+
readonly notFound: "not_found";
|
|
1021
|
+
};
|
|
1022
|
+
interface GetLimitOrderError404Error {
|
|
1023
|
+
code: GetLimitOrderError404ErrorCode;
|
|
1024
|
+
}
|
|
1025
|
+
type GetLimitOrderError500ErrorCode = typeof GetLimitOrderError500ErrorCode[keyof typeof GetLimitOrderError500ErrorCode];
|
|
1026
|
+
declare const GetLimitOrderError500ErrorCode: {
|
|
1027
|
+
readonly internalError: "internal_error";
|
|
1028
|
+
};
|
|
1029
|
+
interface GetLimitOrderError500Error {
|
|
1030
|
+
code: GetLimitOrderError500ErrorCode;
|
|
1031
|
+
}
|
|
1037
1032
|
interface HashMap {
|
|
1038
1033
|
[key: string]: {
|
|
1039
1034
|
feesUsd: number;
|
|
@@ -1064,6 +1059,13 @@ interface IncreaseSpotPositionQuoteDto {
|
|
|
1064
1059
|
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
1065
1060
|
swapInputAmount: bigint;
|
|
1066
1061
|
}
|
|
1062
|
+
type InternalErrorCodeErrorBodyCode = typeof InternalErrorCodeErrorBodyCode[keyof typeof InternalErrorCodeErrorBodyCode];
|
|
1063
|
+
declare const InternalErrorCodeErrorBodyCode: {
|
|
1064
|
+
readonly internalError: "internal_error";
|
|
1065
|
+
};
|
|
1066
|
+
interface InternalErrorCodeErrorBody {
|
|
1067
|
+
code: InternalErrorCodeErrorBodyCode;
|
|
1068
|
+
}
|
|
1067
1069
|
interface LeaderboardItemDto {
|
|
1068
1070
|
/** Solana public key (base58) */
|
|
1069
1071
|
authority: string;
|
|
@@ -1145,12 +1147,6 @@ declare const LimitOrderStatus: {
|
|
|
1145
1147
|
readonly complete: "complete";
|
|
1146
1148
|
readonly cancelled: "cancelled";
|
|
1147
1149
|
};
|
|
1148
|
-
type LpPositionsHistoryQueryFilter = typeof LpPositionsHistoryQueryFilter[keyof typeof LpPositionsHistoryQueryFilter];
|
|
1149
|
-
declare const LpPositionsHistoryQueryFilter: {
|
|
1150
|
-
readonly opened: "opened";
|
|
1151
|
-
readonly closed: "closed";
|
|
1152
|
-
readonly all: "all";
|
|
1153
|
-
};
|
|
1154
1150
|
interface MarketDto {
|
|
1155
1151
|
/** Solana public key (base58) */
|
|
1156
1152
|
address: string;
|
|
@@ -1611,6 +1607,14 @@ interface PoolTicksDto {
|
|
|
1611
1607
|
tickSpacing: number;
|
|
1612
1608
|
ticks: TickDto[];
|
|
1613
1609
|
}
|
|
1610
|
+
/**
|
|
1611
|
+
* Pubkey represented as base58 string in JSON and OpenAPI.
|
|
1612
|
+
|
|
1613
|
+
- JSON: `"11111111111111111111111111111111"`
|
|
1614
|
+
- OpenAPI: `type: string`, pattern for base58, optional format
|
|
1615
|
+
* @pattern ^[1-9A-HJ-NP-Za-km-z]+$
|
|
1616
|
+
*/
|
|
1617
|
+
type PubkeyDto = string;
|
|
1614
1618
|
type SnapshotFusionLimitOrders = LimitOrderDto[] | null;
|
|
1615
1619
|
type SnapshotMarkets = MarketDto[] | null;
|
|
1616
1620
|
type SnapshotOraclePricesAnyOf = {
|
|
@@ -1902,8 +1906,7 @@ interface TunaLpPositionDto {
|
|
|
1902
1906
|
lowerPrice: number;
|
|
1903
1907
|
marketMaker: PoolProvider;
|
|
1904
1908
|
openedAt: Date;
|
|
1905
|
-
|
|
1906
|
-
pool: string;
|
|
1909
|
+
pool: PoolDto;
|
|
1907
1910
|
/** Solana public key (base58) */
|
|
1908
1911
|
positionAddress: string;
|
|
1909
1912
|
state: TunaPositionDtoState;
|
|
@@ -2118,6 +2121,28 @@ declare const TunaSpotPositionDtoState: {
|
|
|
2118
2121
|
readonly open: "open";
|
|
2119
2122
|
readonly closed: "closed";
|
|
2120
2123
|
};
|
|
2124
|
+
type ValidationErrorCodeErrorBodyCode = typeof ValidationErrorCodeErrorBodyCode[keyof typeof ValidationErrorCodeErrorBodyCode];
|
|
2125
|
+
declare const ValidationErrorCodeErrorBodyCode: {
|
|
2126
|
+
readonly validationFailed: "validation_failed";
|
|
2127
|
+
};
|
|
2128
|
+
type ValidationErrorCodeErrorBodyData = {
|
|
2129
|
+
errors: FieldError[];
|
|
2130
|
+
};
|
|
2131
|
+
interface ValidationErrorCodeErrorBody {
|
|
2132
|
+
code: ValidationErrorCodeErrorBodyCode;
|
|
2133
|
+
data?: ValidationErrorCodeErrorBodyData;
|
|
2134
|
+
}
|
|
2135
|
+
type ValidationErrorCodeValidationDetailsErrorBodyCode = typeof ValidationErrorCodeValidationDetailsErrorBodyCode[keyof typeof ValidationErrorCodeValidationDetailsErrorBodyCode];
|
|
2136
|
+
declare const ValidationErrorCodeValidationDetailsErrorBodyCode: {
|
|
2137
|
+
readonly validationFailed: "validation_failed";
|
|
2138
|
+
};
|
|
2139
|
+
type ValidationErrorCodeValidationDetailsErrorBodyData = {
|
|
2140
|
+
errors: FieldError[];
|
|
2141
|
+
};
|
|
2142
|
+
interface ValidationErrorCodeValidationDetailsErrorBody {
|
|
2143
|
+
code: ValidationErrorCodeValidationDetailsErrorBodyCode;
|
|
2144
|
+
data?: ValidationErrorCodeValidationDetailsErrorBodyData;
|
|
2145
|
+
}
|
|
2121
2146
|
interface VaultDto {
|
|
2122
2147
|
/** Solana public key (base58) */
|
|
2123
2148
|
address: string;
|
|
@@ -2226,10 +2251,7 @@ type GetPoolOrderBookParams = {
|
|
|
2226
2251
|
inverted?: boolean;
|
|
2227
2252
|
};
|
|
2228
2253
|
type GetCloseSpotPositionQuoteParams = {
|
|
2229
|
-
|
|
2230
|
-
* Solana public key (base58)
|
|
2231
|
-
*/
|
|
2232
|
-
market?: string;
|
|
2254
|
+
market: PubkeyDto;
|
|
2233
2255
|
/**
|
|
2234
2256
|
* @minimum 0
|
|
2235
2257
|
*/
|
|
@@ -2256,10 +2278,7 @@ type GetCloseSpotPositionQuoteParams = {
|
|
|
2256
2278
|
positionDebt?: bigint;
|
|
2257
2279
|
};
|
|
2258
2280
|
type GetDecreaseSpotPositionQuoteParams = {
|
|
2259
|
-
|
|
2260
|
-
* Solana public key (base58)
|
|
2261
|
-
*/
|
|
2262
|
-
market?: string;
|
|
2281
|
+
market: PubkeyDto;
|
|
2263
2282
|
/**
|
|
2264
2283
|
* Unsigned 64-bit integer encoded as a decimal string
|
|
2265
2284
|
*/
|
|
@@ -2288,10 +2307,7 @@ type GetDecreaseSpotPositionQuoteParams = {
|
|
|
2288
2307
|
positionDebt?: bigint;
|
|
2289
2308
|
};
|
|
2290
2309
|
type GetIncreaseSpotPositionQuoteParams = {
|
|
2291
|
-
|
|
2292
|
-
* Solana public key (base58)
|
|
2293
|
-
*/
|
|
2294
|
-
market?: string;
|
|
2310
|
+
market: PubkeyDto;
|
|
2295
2311
|
/**
|
|
2296
2312
|
* Unsigned 64-bit integer encoded as a decimal string
|
|
2297
2313
|
*/
|
|
@@ -2319,10 +2335,7 @@ type GetIncreaseSpotPositionQuoteParams = {
|
|
|
2319
2335
|
positionDebt?: bigint;
|
|
2320
2336
|
};
|
|
2321
2337
|
type GetLimitOrderQuoteByInputParams = {
|
|
2322
|
-
|
|
2323
|
-
* Solana public key (base58)
|
|
2324
|
-
*/
|
|
2325
|
-
pool?: string;
|
|
2338
|
+
pool: PubkeyDto;
|
|
2326
2339
|
/**
|
|
2327
2340
|
* Unsigned 64-bit integer encoded as a decimal string
|
|
2328
2341
|
*/
|
|
@@ -2330,11 +2343,11 @@ type GetLimitOrderQuoteByInputParams = {
|
|
|
2330
2343
|
aToB: boolean;
|
|
2331
2344
|
tickIndex: number;
|
|
2332
2345
|
};
|
|
2346
|
+
type GetLimitOrderQuoteByInput200 = {
|
|
2347
|
+
data: LimitOrderQuoteByInputDto;
|
|
2348
|
+
};
|
|
2333
2349
|
type GetLimitOrderQuoteByOutputParams = {
|
|
2334
|
-
|
|
2335
|
-
* Solana public key (base58)
|
|
2336
|
-
*/
|
|
2337
|
-
pool?: string;
|
|
2350
|
+
pool: PubkeyDto;
|
|
2338
2351
|
/**
|
|
2339
2352
|
* Unsigned 64-bit integer encoded as a decimal string
|
|
2340
2353
|
*/
|
|
@@ -2343,10 +2356,7 @@ type GetLimitOrderQuoteByOutputParams = {
|
|
|
2343
2356
|
tickIndex: number;
|
|
2344
2357
|
};
|
|
2345
2358
|
type GetSwapQuoteByInputParams = {
|
|
2346
|
-
|
|
2347
|
-
* Solana public key (base58)
|
|
2348
|
-
*/
|
|
2349
|
-
pool?: string;
|
|
2359
|
+
pool: PubkeyDto;
|
|
2350
2360
|
/**
|
|
2351
2361
|
* Unsigned 64-bit integer encoded as a decimal string
|
|
2352
2362
|
*/
|
|
@@ -2358,10 +2368,7 @@ type GetSwapQuoteByInputParams = {
|
|
|
2358
2368
|
slippageTolerance?: number;
|
|
2359
2369
|
};
|
|
2360
2370
|
type GetSwapQuoteByOutputParams = {
|
|
2361
|
-
|
|
2362
|
-
* Solana public key (base58)
|
|
2363
|
-
*/
|
|
2364
|
-
pool?: string;
|
|
2371
|
+
pool: PubkeyDto;
|
|
2365
2372
|
/**
|
|
2366
2373
|
* Unsigned 64-bit integer encoded as a decimal string
|
|
2367
2374
|
*/
|
|
@@ -2373,10 +2380,7 @@ type GetSwapQuoteByOutputParams = {
|
|
|
2373
2380
|
slippageTolerance?: number;
|
|
2374
2381
|
};
|
|
2375
2382
|
type GetTradableAmountParams = {
|
|
2376
|
-
|
|
2377
|
-
* Solana public key (base58)
|
|
2378
|
-
*/
|
|
2379
|
-
market?: string;
|
|
2383
|
+
market: PubkeyDto;
|
|
2380
2384
|
/**
|
|
2381
2385
|
* @minimum 0
|
|
2382
2386
|
*/
|
|
@@ -2462,31 +2466,22 @@ type GetLimitOrdersParams = {
|
|
|
2462
2466
|
*/
|
|
2463
2467
|
limit?: number;
|
|
2464
2468
|
};
|
|
2469
|
+
type GetLimitOrder200 = {
|
|
2470
|
+
data: LimitOrderDto;
|
|
2471
|
+
};
|
|
2465
2472
|
type GetLpPositionsParams = {
|
|
2473
|
+
/**
|
|
2474
|
+
* Filter by pool
|
|
2475
|
+
*/
|
|
2476
|
+
liquidityPool?: string[];
|
|
2466
2477
|
/**
|
|
2467
2478
|
* Filter by state
|
|
2468
2479
|
*/
|
|
2469
|
-
|
|
2480
|
+
state?: TunaPositionDtoState[];
|
|
2470
2481
|
/**
|
|
2471
2482
|
* Address of the position after which to start fetching results
|
|
2472
2483
|
*/
|
|
2473
2484
|
afterPosition?: string;
|
|
2474
|
-
/**
|
|
2475
|
-
* Minimal opened at time
|
|
2476
|
-
*/
|
|
2477
|
-
openedAtMin?: Date;
|
|
2478
|
-
/**
|
|
2479
|
-
* Maximal opened at time
|
|
2480
|
-
*/
|
|
2481
|
-
openedAtMax?: Date;
|
|
2482
|
-
/**
|
|
2483
|
-
* Minimal closed at time
|
|
2484
|
-
*/
|
|
2485
|
-
closedAtMin?: Date;
|
|
2486
|
-
/**
|
|
2487
|
-
* Maximal closed at time
|
|
2488
|
-
*/
|
|
2489
|
-
closedAtMax?: Date;
|
|
2490
2485
|
/**
|
|
2491
2486
|
* Limit the number of results returned (default: 1000, max: 1000)
|
|
2492
2487
|
* @minimum 0
|
|
@@ -2947,17 +2942,25 @@ declare const getIncreaseSpotPositionQuote: (params: GetIncreaseSpotPositionQuot
|
|
|
2947
2942
|
* @summary Request limit order quote by input amount
|
|
2948
2943
|
*/
|
|
2949
2944
|
type getLimitOrderQuoteByInputResponse200 = {
|
|
2950
|
-
data:
|
|
2945
|
+
data: GetLimitOrderQuoteByInput200;
|
|
2951
2946
|
status: 200;
|
|
2952
2947
|
};
|
|
2953
2948
|
type getLimitOrderQuoteByInputResponse400 = {
|
|
2954
|
-
data:
|
|
2949
|
+
data: BadRequestErrorCodeErrorBody;
|
|
2955
2950
|
status: 400;
|
|
2956
2951
|
};
|
|
2952
|
+
type getLimitOrderQuoteByInputResponse422 = {
|
|
2953
|
+
data: ValidationErrorCodeErrorBody;
|
|
2954
|
+
status: 422;
|
|
2955
|
+
};
|
|
2956
|
+
type getLimitOrderQuoteByInputResponse500 = {
|
|
2957
|
+
data: InternalErrorCodeErrorBody;
|
|
2958
|
+
status: 500;
|
|
2959
|
+
};
|
|
2957
2960
|
type getLimitOrderQuoteByInputResponseSuccess = (getLimitOrderQuoteByInputResponse200) & {
|
|
2958
2961
|
headers: Headers;
|
|
2959
2962
|
};
|
|
2960
|
-
type getLimitOrderQuoteByInputResponseError = (getLimitOrderQuoteByInputResponse400) & {
|
|
2963
|
+
type getLimitOrderQuoteByInputResponseError = (getLimitOrderQuoteByInputResponse400 | getLimitOrderQuoteByInputResponse422 | getLimitOrderQuoteByInputResponse500) & {
|
|
2961
2964
|
headers: Headers;
|
|
2962
2965
|
};
|
|
2963
2966
|
type getLimitOrderQuoteByInputResponse = (getLimitOrderQuoteByInputResponseSuccess | getLimitOrderQuoteByInputResponseError);
|
|
@@ -3319,26 +3322,34 @@ declare const getLimitOrders: (userAddress: string, params?: GetLimitOrdersParam
|
|
|
3319
3322
|
* @summary Request limit order data by position address
|
|
3320
3323
|
*/
|
|
3321
3324
|
type getLimitOrderResponse200 = {
|
|
3322
|
-
data:
|
|
3325
|
+
data: GetLimitOrder200;
|
|
3323
3326
|
status: 200;
|
|
3324
3327
|
};
|
|
3325
3328
|
type getLimitOrderResponse400 = {
|
|
3326
|
-
data:
|
|
3329
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3327
3330
|
status: 400;
|
|
3328
3331
|
};
|
|
3332
|
+
type getLimitOrderResponse404 = {
|
|
3333
|
+
data: GetLimitOrderError404Error;
|
|
3334
|
+
status: 404;
|
|
3335
|
+
};
|
|
3336
|
+
type getLimitOrderResponse422 = {
|
|
3337
|
+
data: ValidationErrorCodeErrorBody;
|
|
3338
|
+
status: 422;
|
|
3339
|
+
};
|
|
3329
3340
|
type getLimitOrderResponse500 = {
|
|
3330
|
-
data:
|
|
3341
|
+
data: GetLimitOrderError500Error;
|
|
3331
3342
|
status: 500;
|
|
3332
3343
|
};
|
|
3333
3344
|
type getLimitOrderResponseSuccess = (getLimitOrderResponse200) & {
|
|
3334
3345
|
headers: Headers;
|
|
3335
3346
|
};
|
|
3336
|
-
type getLimitOrderResponseError = (getLimitOrderResponse400 | getLimitOrderResponse500) & {
|
|
3347
|
+
type getLimitOrderResponseError = (getLimitOrderResponse400 | getLimitOrderResponse404 | getLimitOrderResponse422 | getLimitOrderResponse500) & {
|
|
3337
3348
|
headers: Headers;
|
|
3338
3349
|
};
|
|
3339
3350
|
type getLimitOrderResponse = (getLimitOrderResponseSuccess | getLimitOrderResponseError);
|
|
3340
|
-
declare const getGetLimitOrderUrl: (userAddress:
|
|
3341
|
-
declare const getLimitOrder: (userAddress:
|
|
3351
|
+
declare const getGetLimitOrderUrl: (userAddress: PubkeyDto, limitOrderAddress: PubkeyDto) => string;
|
|
3352
|
+
declare const getLimitOrder: (userAddress: PubkeyDto, limitOrderAddress: PubkeyDto, options?: RequestInit) => Promise<getLimitOrderResponse>;
|
|
3342
3353
|
/**
|
|
3343
3354
|
* @summary Request historical LP positions data
|
|
3344
3355
|
*/
|
|
@@ -3666,18 +3677,19 @@ type ApiError = {
|
|
|
3666
3677
|
message: string;
|
|
3667
3678
|
status: number;
|
|
3668
3679
|
};
|
|
3669
|
-
type
|
|
3680
|
+
type HttpLikeResponse = {
|
|
3670
3681
|
status: number;
|
|
3671
|
-
data:
|
|
3672
|
-
} | {
|
|
3673
|
-
status: number;
|
|
3674
|
-
data: E | void;
|
|
3682
|
+
data: unknown;
|
|
3675
3683
|
};
|
|
3684
|
+
type ExtractSuccessData<R> = R extends {
|
|
3685
|
+
status: 200;
|
|
3686
|
+
data: infer T;
|
|
3687
|
+
} ? T : never;
|
|
3676
3688
|
type HasOnlyDataKey<T> = T extends object ? (Exclude<keyof T, "data"> extends never ? true : false) : false;
|
|
3677
3689
|
type UnwrapData<T> = T extends {
|
|
3678
3690
|
data: infer U;
|
|
3679
3691
|
} ? (HasOnlyDataKey<T> extends true ? U : T) : T;
|
|
3680
|
-
declare function unwrap<
|
|
3692
|
+
declare function unwrap<R extends HttpLikeResponse>(promise: Promise<R>): Promise<UnwrapData<ExtractSuccessData<R>>>;
|
|
3681
3693
|
|
|
3682
3694
|
/**
|
|
3683
3695
|
* =========================
|
|
@@ -3699,4 +3711,4 @@ declare function eventIsTradeHistory(event: SseResponse): event is NotificationD
|
|
|
3699
3711
|
declare function eventIsOrderHistory(event: SseResponse): event is NotificationDtoOrderHistoryEntryDto;
|
|
3700
3712
|
declare function eventIsStateSnapshot(event: SseResponse): event is SnapshotContainer;
|
|
3701
3713
|
|
|
3702
|
-
export { type ApiError, type CloseSpotPositionQuoteDto, type DecreaseSpotPositionQuoteDto, type FeeAmountWithUsd, type FeesStatsGroupDto, type FusionFeesStatsGroupDto, type GenericHttpResponseCloseSpotPositionQuoteDto, type GenericHttpResponseCloseSpotPositionQuoteDtoData, type GenericHttpResponseDecreaseSpotPositionQuoteDto, type GenericHttpResponseDecreaseSpotPositionQuoteDtoData, type GenericHttpResponseHttpStatusData, type GenericHttpResponseHttpStatusDataData, type GenericHttpResponseI64, type GenericHttpResponseIncreaseSpotPositionQuoteDto, type GenericHttpResponseIncreaseSpotPositionQuoteDtoData, type GenericHttpResponseLimitOrderQuoteByInputDto, type GenericHttpResponseLimitOrderQuoteByInputDtoData, type GenericHttpResponseLimitOrderQuoteByOutputDto, type GenericHttpResponseLimitOrderQuoteByOutputDtoData, type GenericHttpResponseMarketDto, type GenericHttpResponseMarketDtoData, type GenericHttpResponseMintDto, type GenericHttpResponseMintDtoData, type GenericHttpResponseOptionLendingPositionDto, type GenericHttpResponseOptionLendingPositionDtoData, type GenericHttpResponseOptionLendingPositionDtoDataOneOf, type GenericHttpResponseOptionLimitOrderDto, type GenericHttpResponseOptionLimitOrderDtoData, type GenericHttpResponseOptionLimitOrderDtoDataOneOf, type GenericHttpResponseOptionLimitOrderDtoDataOneOfCloseTxSignature, type GenericHttpResponseOptionLimitOrderDtoDataOneOfClosedAt, type GenericHttpResponseOptionTunaPositionDto, type GenericHttpResponseOptionTunaPositionDtoData, type GenericHttpResponseOptionTunaPositionDtoDataOneOf, type GenericHttpResponseOptionTunaPositionDtoDataOneOfClosedAt, type GenericHttpResponseOraclePriceDto, type GenericHttpResponseOraclePriceDtoData, type GenericHttpResponseOrderBookDto, type GenericHttpResponseOrderBookDtoData, type GenericHttpResponsePoolDto, type GenericHttpResponsePoolDtoData, type GenericHttpResponsePoolDtoDataOlpFeeRate, type GenericHttpResponsePoolDtoDataStats, type GenericHttpResponsePoolTicksDto, type GenericHttpResponsePoolTicksDtoData, type GenericHttpResponseSseResponse, type GenericHttpResponseSseResponseData, type GenericHttpResponseStakingPositionDto, type GenericHttpResponseStakingPositionDtoData, type GenericHttpResponseStakingPositionDtoDataLastUnstakedAt, type GenericHttpResponseStakingPositionDtoDataRank, type GenericHttpResponseStakingPositionDtoDataWithdrawAvailableAt, type GenericHttpResponseSwapQuoteByInputDto, type GenericHttpResponseSwapQuoteByInputDtoData, type GenericHttpResponseSwapQuoteByOutputDto, type GenericHttpResponseSwapQuoteByOutputDtoData, type GenericHttpResponseTradableAmountDto, type GenericHttpResponseTradableAmountDtoData, type GenericHttpResponseTreasuryDto, type GenericHttpResponseTreasuryDtoData, type GenericHttpResponseTunaSpotPositionDto, type GenericHttpResponseTunaSpotPositionDtoData, type GenericHttpResponseTunaSpotPositionDtoDataClosedAt, type GenericHttpResponseVaultDto, type GenericHttpResponseVaultDtoData, type GenericHttpResponseVecFeesStatsGroupDto, type GenericHttpResponseVecFeesStatsGroupDtoDataItem, type GenericHttpResponseVecFusionFeesStatsGroupDto, type GenericHttpResponseVecFusionFeesStatsGroupDtoDataItem, type GenericHttpResponseVecLendingPositionDto, type GenericHttpResponseVecLendingPositionDtoDataItem, type GenericHttpResponseVecLimitOrderDto, type GenericHttpResponseVecLimitOrderDtoDataItem, type GenericHttpResponseVecLimitOrderDtoDataItemCloseTxSignature, type GenericHttpResponseVecLimitOrderDtoDataItemClosedAt, type GenericHttpResponseVecMarketDto, type GenericHttpResponseVecMarketDtoDataItem, type GenericHttpResponseVecMintDto, type GenericHttpResponseVecMintDtoDataItem, type GenericHttpResponseVecOraclePriceDto, type GenericHttpResponseVecOraclePriceDtoDataItem, type GenericHttpResponseVecOrderHistoryEntryDto, type GenericHttpResponseVecOrderHistoryEntryDtoDataItem, type GenericHttpResponseVecOrderHistoryEntryDtoDataItemBaseTokenConsumedAmount, type GenericHttpResponseVecOrderHistoryEntryDtoDataItemIxIndex, type GenericHttpResponseVecOrderHistoryEntryDtoDataItemQuoteTokenFilledAmount, type GenericHttpResponseVecOrderHistoryEntryDtoDataItemTxSignature, type GenericHttpResponseVecOrderHistoryEntryDtoDataItemUiExecutionPrice, type GenericHttpResponseVecOrderHistoryEntryDtoDataItemUiPrice, type GenericHttpResponseVecPoolDto, type GenericHttpResponseVecPoolDtoDataItem, type GenericHttpResponseVecPoolDtoDataItemOlpFeeRate, type GenericHttpResponseVecPoolDtoDataItemStats, type GenericHttpResponseVecPoolPriceCandleDto, type GenericHttpResponseVecPoolPriceCandleDtoDataItem, type GenericHttpResponseVecPoolSwapDto, type GenericHttpResponseVecPoolSwapDtoDataItem, type GenericHttpResponseVecStakingDepositsStatsDto, type GenericHttpResponseVecStakingDepositsStatsDtoDataItem, type GenericHttpResponseVecStakingPositionActionDto, type GenericHttpResponseVecStakingPositionActionDtoDataItem, type GenericHttpResponseVecTradeHistoryEntryDto, type GenericHttpResponseVecTradeHistoryEntryDtoDataItem, type GenericHttpResponseVecTradeHistoryEntryDtoDataItemIxIndex, type GenericHttpResponseVecTradeHistoryEntryDtoDataItemPnl, type GenericHttpResponseVecTradeHistoryEntryDtoDataItemTxSignature, type GenericHttpResponseVecTunaLpPositionActionDto, type GenericHttpResponseVecTunaLpPositionActionDtoDataItem, type GenericHttpResponseVecTunaLpPositionDto, type GenericHttpResponseVecTunaLpPositionDtoDataItem, type GenericHttpResponseVecTunaLpPositionDtoDataItemClosedAt, type GenericHttpResponseVecTunaLpPositionDtoDataItemExitPrice, type GenericHttpResponseVecTunaLpPositionDtoDataItemLowerLimitOrder, type GenericHttpResponseVecTunaLpPositionDtoDataItemUpperLimitOrder, type GenericHttpResponseVecTunaPositionDto, type GenericHttpResponseVecTunaPositionDtoDataItem, type GenericHttpResponseVecTunaPositionDtoDataItemClosedAt, type GenericHttpResponseVecTunaSpotPositionDto, type GenericHttpResponseVecTunaSpotPositionDtoDataItem, type GenericHttpResponseVecTunaSpotPositionDtoDataItemClosedAt, type GenericHttpResponseVecVaultDto, type GenericHttpResponseVecVaultDtoDataItem, type GenericHttpResponseVecVaultStatsDto, type GenericHttpResponseVecVaultStatsDtoDataItem, type GenericHttpResponseWithMetaVecLeaderboardItemDtoPaginationMeta, type GenericHttpResponseWithMetaVecLeaderboardItemDtoPaginationMetaDataItem, type GenericHttpResponseWithMetaVecLeaderboardItemDtoPaginationMetaMeta, type GenericHttpResponseWithMetaVecStakingLeaderboardPositionDtoPaginationMeta, type GenericHttpResponseWithMetaVecStakingLeaderboardPositionDtoPaginationMetaDataItem, type GenericHttpResponseWithMetaVecStakingLeaderboardPositionDtoPaginationMetaMeta, type GetCloseSpotPositionQuoteParams, type GetDecreaseSpotPositionQuoteParams, type GetFeesStatsParams, type GetFusionFeesStatsParams, type GetIncreaseSpotPositionQuoteParams, type GetLimitOrderQuoteByInputParams, type GetLimitOrderQuoteByOutputParams, type GetLimitOrdersParams, type GetLpPositionsParams, type GetLpSpotLeaderboardParams, type GetOrderHistoryParams, type GetPoolCandlesParams, type GetPoolOrderBookParams, type GetPoolsParams, type GetPositionsStatsParams, type GetStakingLeaderboardParams, type GetStakingRevenueStatsParams, type GetSwapQuoteByInputParams, type GetSwapQuoteByOutputParams, type GetTradableAmountParams, type GetTradeHistoryParams, type GetVaultHistoryParams, type HashMap, type HttpStatusData, type IncreaseSpotPositionQuoteDto, type LeaderboardItemDto, LeaderboardPeriod, LeaderboardSortBy, type LendingPositionDto, type LimitOrderDto, type LimitOrderDtoCloseTxSignature, type LimitOrderDtoClosedAt, type LimitOrderQuoteByInputDto, type LimitOrderQuoteByOutputDto, LimitOrderStatus, LpPositionsHistoryQueryFilter, type MarketDto, type MintDto, NotificationAction, type NotificationDtoLendingPositionDto, type NotificationDtoLendingPositionDtoData, type NotificationDtoOrderHistoryEntryDto, type NotificationDtoOrderHistoryEntryDtoData, type NotificationDtoOrderHistoryEntryDtoDataBaseTokenConsumedAmount, type NotificationDtoOrderHistoryEntryDtoDataIxIndex, type NotificationDtoOrderHistoryEntryDtoDataQuoteTokenFilledAmount, type NotificationDtoOrderHistoryEntryDtoDataTxSignature, type NotificationDtoOrderHistoryEntryDtoDataUiExecutionPrice, type NotificationDtoOrderHistoryEntryDtoDataUiPrice, type NotificationDtoPoolSwapDto, type NotificationDtoPoolSwapDtoData, type NotificationDtoStakingPositionDto, type NotificationDtoStakingPositionDtoData, type NotificationDtoStakingPositionDtoDataLastUnstakedAt, type NotificationDtoStakingPositionDtoDataRank, type NotificationDtoStakingPositionDtoDataWithdrawAvailableAt, type NotificationDtoTradeHistoryEntryDto, type NotificationDtoTradeHistoryEntryDtoData, type NotificationDtoTradeHistoryEntryDtoDataIxIndex, type NotificationDtoTradeHistoryEntryDtoDataPnl, type NotificationDtoTradeHistoryEntryDtoDataTxSignature, NotificationEntity, type OraclePriceDto, type OrderBookDto, type OrderBookEntryDto, type OrderBookWrapper, type OrderHistoryEntryDto, type OrderHistoryEntryDtoBaseTokenConsumedAmount, type OrderHistoryEntryDtoIxIndex, type OrderHistoryEntryDtoQuoteTokenFilledAmount, type OrderHistoryEntryDtoTxSignature, type OrderHistoryEntryDtoUiExecutionPrice, type OrderHistoryEntryDtoUiPrice, OrderHistoryStatus, OrderHistoryType, OrderHistoryUIDirection, type PaginationMeta, type PoolDto, type PoolDtoOlpFeeRate, type PoolDtoStats, type PoolPriceCandleDto, PoolProvider, type PoolStatsDto, type PoolSubscription, type PoolSubscriptionIsInverted, type PoolSubscriptionOrderBookPriceStep, PoolSubscriptionTopic, type PoolSwapDto, type PoolTicksDto, type Snapshot, type SnapshotContainer, type SnapshotFusionLimitOrders, type SnapshotMarkets, type SnapshotOraclePrices, type SnapshotOraclePricesAnyOf, type SnapshotOrderBooks, type SnapshotTunaLpPositions, type SnapshotTunaSpotPositions, type SseResponse, type StakingDepositsStatsDto, type StakingLeaderboardPositionDto, type StakingPositionActionDto, StakingPositionActionType, type StakingPositionDto, type StakingPositionDtoLastUnstakedAt, type StakingPositionDtoRank, type StakingPositionDtoWithdrawAvailableAt, type StreamInitalMessage, type SubscriptionOptions, type SubscriptionOptionsMarkets, type SubscriptionOptionsMints, type SubscriptionOptionsPools, type SubscriptionOptionsWallet, type SwapQuoteByInputDto, type SwapQuoteByOutputDto, type TickDto, type TokenAmountWithUsd, type TradableAmountDto, TradeHistoryAction, type TradeHistoryEntryDto, type TradeHistoryEntryDtoIxIndex, type TradeHistoryEntryDtoPnl, type TradeHistoryEntryDtoTxSignature, type TradeHistoryEntryPnlUsd, TradeHistoryUIDirection, type TreasuryDto, type TunaLpPositionActionComposite, type TunaLpPositionActionCompositeClosedPnlUsd, type TunaLpPositionActionCompositeCollectedFees, type TunaLpPositionActionCompositeFromLending, type TunaLpPositionActionCompositeFromOwner, type TunaLpPositionActionCompositeFromParameters, type TunaLpPositionActionCompositeFromPosition, type TunaLpPositionActionCompositeParameters, type TunaLpPositionActionCompositePosition, type TunaLpPositionActionCompositePrices, type TunaLpPositionActionCompositeProtocolFees, type TunaLpPositionActionCompositeToLending, type TunaLpPositionActionCompositeToOwner, type TunaLpPositionActionCompositeToParameters, type TunaLpPositionActionCompositeToPosition, type TunaLpPositionActionCompositeWithdrawPercent, type TunaLpPositionActionDto, TunaLpPositionAutoCompound, TunaLpPositionAutoCompounding, type TunaLpPositionDto, type TunaLpPositionDtoClosedAt, type TunaLpPositionDtoExitPrice, type TunaLpPositionDtoLowerLimitOrder, type TunaLpPositionDtoUpperLimitOrder, type TunaLpPositionFlags, type TunaLpPositionFlagsAutoCompounding, type TunaLpPositionFlagsLowerLimitOrderSwapToToken, type TunaLpPositionFlagsUpperLimitOrderSwapToToken, TunaLpPositionLimitOrderSwap, type TunaLpPositionParameters, type TunaLpPositionParametersLowerLimitOrder, type TunaLpPositionParametersUpperLimitOrder, TunaLpPositionRebalance, type TunaLpPositionTokenPrices, type TunaLpPositionTransfer, type TunaLpPositionValue, TunaLpPositionsActionType, type TunaLpPositionsStats, type TunaLpPositionsStatsFusionClosedByLimitOrderCount, type TunaLpPositionsStatsFusionLiquidatedCount, type TunaLpPositionsStatsFusionOpenCount, type TunaLpPositionsStatsOrcaClosedByLimitOrderCount, type TunaLpPositionsStatsOrcaLiquidatedCount, type TunaLpPositionsStatsOrcaOpenCount, type TunaPositionDto, type TunaPositionDtoClosedAt, TunaPositionDtoState, TunaPositionMarketMaker, TunaPositionPoolToken, type TunaPositionTokenDepositedCollateral, type TunaPositionTokenPnl, type TunaPositionUsdPnl, type TunaSpotPositionDto, type TunaSpotPositionDtoClosedAt, TunaSpotPositionDtoState, type VaultDto, type VaultStatsDto, type VestingDto, type VestingDtoLockedAt, type WalletSubscription, WalletSubscriptionTopic, eventIsInitialMessage, eventIsLendingPosition, eventIsOrderHistory, eventIsPoolSwap, eventIsStakingPosition, eventIsStateSnapshot, eventIsTradeHistory, getCloseSpotPositionQuote, type getCloseSpotPositionQuoteResponse, type getCloseSpotPositionQuoteResponse200, type getCloseSpotPositionQuoteResponse400, type getCloseSpotPositionQuoteResponseError, type getCloseSpotPositionQuoteResponseSuccess, getDecreaseSpotPositionQuote, type getDecreaseSpotPositionQuoteResponse, type getDecreaseSpotPositionQuoteResponse200, type getDecreaseSpotPositionQuoteResponse400, type getDecreaseSpotPositionQuoteResponseError, type getDecreaseSpotPositionQuoteResponseSuccess, getFeesStats, type getFeesStatsResponse, type getFeesStatsResponse200, type getFeesStatsResponse400, type getFeesStatsResponse500, type getFeesStatsResponseError, type getFeesStatsResponseSuccess, getFusionFeesStats, type getFusionFeesStatsResponse, type getFusionFeesStatsResponse200, type getFusionFeesStatsResponse400, type getFusionFeesStatsResponse500, type getFusionFeesStatsResponseError, type getFusionFeesStatsResponseSuccess, getGetCloseSpotPositionQuoteUrl, getGetDecreaseSpotPositionQuoteUrl, getGetFeesStatsUrl, getGetFusionFeesStatsUrl, getGetIncreaseSpotPositionQuoteUrl, getGetLendingPositionUrl, getGetLendingPositionsUrl, getGetLimitOrderQuoteByInputUrl, getGetLimitOrderQuoteByOutputUrl, getGetLimitOrderUrl, getGetLimitOrdersUrl, getGetLpPositionActionsUrl, getGetLpPositionsUrl, getGetLpSpotLeaderboardUrl, getGetMarketUrl, getGetMarketsUrl, getGetMintUrl, getGetMintsUrl, getGetOraclePriceUrl, getGetOraclePricesUrl, getGetOrderHistoryUrl, getGetPoolCandlesUrl, getGetPoolOrderBookUrl, getGetPoolSwapsUrl, getGetPoolTicksUrl, getGetPoolUrl, getGetPoolsUrl, getGetPositionsStatsUrl, getGetPositionsTotalUrl, getGetSpotPositionUrl, getGetSpotPositionsUrl, getGetStakingLeaderboardUrl, getGetStakingRevenueStatsUrl, getGetStakingTreasuryUrl, getGetSwapQuoteByInputUrl, getGetSwapQuoteByOutputUrl, getGetTradableAmountUrl, getGetTradeHistoryUrl, getGetTunaPositionUrl, getGetTunaPositionsUrl, getGetUserStakingPositionHistoryUrl, getGetUserStakingPositionUrl, getGetVaultHistoryUrl, getGetVaultUrl, getGetVaultsUrl, getIncreaseSpotPositionQuote, type getIncreaseSpotPositionQuoteResponse, type getIncreaseSpotPositionQuoteResponse200, type getIncreaseSpotPositionQuoteResponse400, type getIncreaseSpotPositionQuoteResponseError, type getIncreaseSpotPositionQuoteResponseSuccess, getLendingPosition, type getLendingPositionResponse, type getLendingPositionResponse200, type getLendingPositionResponse400, type getLendingPositionResponse500, type getLendingPositionResponseError, type getLendingPositionResponseSuccess, getLendingPositions, type getLendingPositionsResponse, type getLendingPositionsResponse200, type getLendingPositionsResponse400, type getLendingPositionsResponse500, type getLendingPositionsResponseError, type getLendingPositionsResponseSuccess, getLimitOrder, getLimitOrderQuoteByInput, type getLimitOrderQuoteByInputResponse, type getLimitOrderQuoteByInputResponse200, type getLimitOrderQuoteByInputResponse400, type getLimitOrderQuoteByInputResponseError, type getLimitOrderQuoteByInputResponseSuccess, getLimitOrderQuoteByOutput, type getLimitOrderQuoteByOutputResponse, type getLimitOrderQuoteByOutputResponse200, type getLimitOrderQuoteByOutputResponse400, type getLimitOrderQuoteByOutputResponseError, type getLimitOrderQuoteByOutputResponseSuccess, type getLimitOrderResponse, type getLimitOrderResponse200, type getLimitOrderResponse400, type getLimitOrderResponse500, type getLimitOrderResponseError, type getLimitOrderResponseSuccess, getLimitOrders, type getLimitOrdersResponse, type getLimitOrdersResponse200, type getLimitOrdersResponse400, type getLimitOrdersResponse500, type getLimitOrdersResponseError, type getLimitOrdersResponseSuccess, getLpPositionActions, type getLpPositionActionsResponse, type getLpPositionActionsResponse200, type getLpPositionActionsResponse400, type getLpPositionActionsResponse500, type getLpPositionActionsResponseError, type getLpPositionActionsResponseSuccess, getLpPositions, type getLpPositionsResponse, type getLpPositionsResponse200, type getLpPositionsResponse400, type getLpPositionsResponse500, type getLpPositionsResponseError, type getLpPositionsResponseSuccess, getLpSpotLeaderboard, type getLpSpotLeaderboardResponse, type getLpSpotLeaderboardResponse200, type getLpSpotLeaderboardResponse400, type getLpSpotLeaderboardResponse500, type getLpSpotLeaderboardResponseError, type getLpSpotLeaderboardResponseSuccess, getMarket, type getMarketResponse, type getMarketResponse200, type getMarketResponse400, type getMarketResponse404, type getMarketResponse500, type getMarketResponseError, type getMarketResponseSuccess, getMarkets, type getMarketsResponse, type getMarketsResponse200, type getMarketsResponse500, type getMarketsResponseError, type getMarketsResponseSuccess, getMint, type getMintResponse, type getMintResponse200, type getMintResponse400, type getMintResponse404, type getMintResponse500, type getMintResponseError, type getMintResponseSuccess, getMints, type getMintsResponse, type getMintsResponse200, type getMintsResponse500, type getMintsResponseError, type getMintsResponseSuccess, getOraclePrice, type getOraclePriceResponse, type getOraclePriceResponse200, type getOraclePriceResponse400, type getOraclePriceResponse404, type getOraclePriceResponse500, type getOraclePriceResponseError, type getOraclePriceResponseSuccess, getOraclePrices, type getOraclePricesResponse, type getOraclePricesResponse200, type getOraclePricesResponse500, type getOraclePricesResponseError, type getOraclePricesResponseSuccess, getOrderHistory, type getOrderHistoryResponse, type getOrderHistoryResponse200, type getOrderHistoryResponse400, type getOrderHistoryResponse500, type getOrderHistoryResponseError, type getOrderHistoryResponseSuccess, getPool, getPoolCandles, type getPoolCandlesResponse, type getPoolCandlesResponse200, type getPoolCandlesResponse400, type getPoolCandlesResponse500, type getPoolCandlesResponseError, type getPoolCandlesResponseSuccess, getPoolOrderBook, type getPoolOrderBookResponse, type getPoolOrderBookResponse200, type getPoolOrderBookResponse400, type getPoolOrderBookResponse404, type getPoolOrderBookResponse500, type getPoolOrderBookResponseError, type getPoolOrderBookResponseSuccess, type getPoolResponse, type getPoolResponse200, type getPoolResponse400, type getPoolResponse404, type getPoolResponse500, type getPoolResponseError, type getPoolResponseSuccess, getPoolSwaps, type getPoolSwapsResponse, type getPoolSwapsResponse200, type getPoolSwapsResponse400, type getPoolSwapsResponse404, type getPoolSwapsResponse500, type getPoolSwapsResponseError, type getPoolSwapsResponseSuccess, getPoolTicks, type getPoolTicksResponse, type getPoolTicksResponse200, type getPoolTicksResponse400, type getPoolTicksResponse404, type getPoolTicksResponse500, type getPoolTicksResponseError, type getPoolTicksResponseSuccess, getPools, type getPoolsResponse, type getPoolsResponse200, type getPoolsResponse500, type getPoolsResponseError, type getPoolsResponseSuccess, getPositionsStats, type getPositionsStatsResponse, type getPositionsStatsResponse200, type getPositionsStatsResponse500, type getPositionsStatsResponseError, type getPositionsStatsResponseSuccess, getPositionsTotal, type getPositionsTotalResponse, type getPositionsTotalResponse200, type getPositionsTotalResponse500, type getPositionsTotalResponseError, type getPositionsTotalResponseSuccess, getSpotPosition, type getSpotPositionResponse, type getSpotPositionResponse200, type getSpotPositionResponse400, type getSpotPositionResponse404, type getSpotPositionResponse500, type getSpotPositionResponseError, type getSpotPositionResponseSuccess, getSpotPositions, type getSpotPositionsResponse, type getSpotPositionsResponse200, type getSpotPositionsResponse400, type getSpotPositionsResponse500, type getSpotPositionsResponseError, type getSpotPositionsResponseSuccess, getSseUpdatesStream, getSseUrl, getStakingLeaderboard, type getStakingLeaderboardResponse, type getStakingLeaderboardResponse200, type getStakingLeaderboardResponse400, type getStakingLeaderboardResponse500, type getStakingLeaderboardResponseError, type getStakingLeaderboardResponseSuccess, getStakingRevenueStats, type getStakingRevenueStatsResponse, type getStakingRevenueStatsResponse200, type getStakingRevenueStatsResponse400, type getStakingRevenueStatsResponse500, type getStakingRevenueStatsResponseError, type getStakingRevenueStatsResponseSuccess, getStakingTreasury, type getStakingTreasuryResponse, type getStakingTreasuryResponse200, type getStakingTreasuryResponse500, type getStakingTreasuryResponseError, type getStakingTreasuryResponseSuccess, getSwapQuoteByInput, type getSwapQuoteByInputResponse, type getSwapQuoteByInputResponse200, type getSwapQuoteByInputResponse400, type getSwapQuoteByInputResponseError, type getSwapQuoteByInputResponseSuccess, getSwapQuoteByOutput, type getSwapQuoteByOutputResponse, type getSwapQuoteByOutputResponse200, type getSwapQuoteByOutputResponse400, type getSwapQuoteByOutputResponseError, type getSwapQuoteByOutputResponseSuccess, getTradableAmount, type getTradableAmountResponse, type getTradableAmountResponse200, type getTradableAmountResponse400, type getTradableAmountResponseError, type getTradableAmountResponseSuccess, getTradeHistory, type getTradeHistoryResponse, type getTradeHistoryResponse200, type getTradeHistoryResponse400, type getTradeHistoryResponse500, type getTradeHistoryResponseError, type getTradeHistoryResponseSuccess, getTunaPosition, type getTunaPositionResponse, type getTunaPositionResponse200, type getTunaPositionResponse400, type getTunaPositionResponse500, type getTunaPositionResponseError, type getTunaPositionResponseSuccess, getTunaPositions, type getTunaPositionsResponse, type getTunaPositionsResponse200, type getTunaPositionsResponse400, type getTunaPositionsResponse500, type getTunaPositionsResponseError, type getTunaPositionsResponseSuccess, getUpdateStreamSubscriptionUrl, getUserStakingPosition, getUserStakingPositionHistory, type getUserStakingPositionHistoryResponse, type getUserStakingPositionHistoryResponse200, type getUserStakingPositionHistoryResponse400, type getUserStakingPositionHistoryResponse500, type getUserStakingPositionHistoryResponseError, type getUserStakingPositionHistoryResponseSuccess, type getUserStakingPositionResponse, type getUserStakingPositionResponse200, type getUserStakingPositionResponse400, type getUserStakingPositionResponse500, type getUserStakingPositionResponseError, type getUserStakingPositionResponseSuccess, getVault, getVaultHistory, type getVaultHistoryResponse, type getVaultHistoryResponse200, type getVaultHistoryResponse400, type getVaultHistoryResponse404, type getVaultHistoryResponse500, type getVaultHistoryResponseError, type getVaultHistoryResponseSuccess, type getVaultResponse, type getVaultResponse200, type getVaultResponse400, type getVaultResponse404, type getVaultResponse500, type getVaultResponseError, type getVaultResponseSuccess, getVaults, type getVaultsResponse, type getVaultsResponse200, type getVaultsResponse500, type getVaultsResponseError, type getVaultsResponseSuccess, normalizeResponseJson, setTunaBaseUrl, sse, type sseResponse, type sseResponse200, type sseResponse500, type sseResponseError, type sseResponseSuccess, unwrap, updateStreamSubscription, type updateStreamSubscriptionResponse, type updateStreamSubscriptionResponse200, type updateStreamSubscriptionResponse400, type updateStreamSubscriptionResponse500, type updateStreamSubscriptionResponseError, type updateStreamSubscriptionResponseSuccess };
|
|
3714
|
+
export { type ApiError, type BadRequestErrorCodeErrorBody, BadRequestErrorCodeErrorBodyCode, type CloseSpotPositionQuoteDto, type DecreaseSpotPositionQuoteDto, type FeeAmountWithUsd, type FeesStatsGroupDto, type FieldError, type FusionFeesStatsGroupDto, type GenericHttpResponseCloseSpotPositionQuoteDto, type GenericHttpResponseCloseSpotPositionQuoteDtoData, type GenericHttpResponseDecreaseSpotPositionQuoteDto, type GenericHttpResponseDecreaseSpotPositionQuoteDtoData, type GenericHttpResponseHttpStatusData, type GenericHttpResponseHttpStatusDataData, type GenericHttpResponseI64, type GenericHttpResponseIncreaseSpotPositionQuoteDto, type GenericHttpResponseIncreaseSpotPositionQuoteDtoData, type GenericHttpResponseLimitOrderQuoteByOutputDto, type GenericHttpResponseLimitOrderQuoteByOutputDtoData, type GenericHttpResponseMarketDto, type GenericHttpResponseMarketDtoData, type GenericHttpResponseMintDto, type GenericHttpResponseMintDtoData, type GenericHttpResponseOptionLendingPositionDto, type GenericHttpResponseOptionLendingPositionDtoData, type GenericHttpResponseOptionLendingPositionDtoDataOneOf, type GenericHttpResponseOptionTunaPositionDto, type GenericHttpResponseOptionTunaPositionDtoData, type GenericHttpResponseOptionTunaPositionDtoDataOneOf, type GenericHttpResponseOptionTunaPositionDtoDataOneOfClosedAt, type GenericHttpResponseOraclePriceDto, type GenericHttpResponseOraclePriceDtoData, type GenericHttpResponseOrderBookDto, type GenericHttpResponseOrderBookDtoData, type GenericHttpResponsePoolDto, type GenericHttpResponsePoolDtoData, type GenericHttpResponsePoolDtoDataOlpFeeRate, type GenericHttpResponsePoolDtoDataStats, type GenericHttpResponsePoolTicksDto, type GenericHttpResponsePoolTicksDtoData, type GenericHttpResponseSseResponse, type GenericHttpResponseSseResponseData, type GenericHttpResponseStakingPositionDto, type GenericHttpResponseStakingPositionDtoData, type GenericHttpResponseStakingPositionDtoDataLastUnstakedAt, type GenericHttpResponseStakingPositionDtoDataRank, type GenericHttpResponseStakingPositionDtoDataWithdrawAvailableAt, type GenericHttpResponseSwapQuoteByInputDto, type GenericHttpResponseSwapQuoteByInputDtoData, type GenericHttpResponseSwapQuoteByOutputDto, type GenericHttpResponseSwapQuoteByOutputDtoData, type GenericHttpResponseTradableAmountDto, type GenericHttpResponseTradableAmountDtoData, type GenericHttpResponseTreasuryDto, type GenericHttpResponseTreasuryDtoData, type GenericHttpResponseTunaSpotPositionDto, type GenericHttpResponseTunaSpotPositionDtoData, type GenericHttpResponseTunaSpotPositionDtoDataClosedAt, type GenericHttpResponseVaultDto, type GenericHttpResponseVaultDtoData, type GenericHttpResponseVecFeesStatsGroupDto, type GenericHttpResponseVecFeesStatsGroupDtoDataItem, type GenericHttpResponseVecFusionFeesStatsGroupDto, type GenericHttpResponseVecFusionFeesStatsGroupDtoDataItem, type GenericHttpResponseVecLendingPositionDto, type GenericHttpResponseVecLendingPositionDtoDataItem, type GenericHttpResponseVecLimitOrderDto, type GenericHttpResponseVecLimitOrderDtoDataItem, type GenericHttpResponseVecLimitOrderDtoDataItemCloseTxSignature, type GenericHttpResponseVecLimitOrderDtoDataItemClosedAt, type GenericHttpResponseVecMarketDto, type GenericHttpResponseVecMarketDtoDataItem, type GenericHttpResponseVecMintDto, type GenericHttpResponseVecMintDtoDataItem, type GenericHttpResponseVecOraclePriceDto, type GenericHttpResponseVecOraclePriceDtoDataItem, type GenericHttpResponseVecOrderHistoryEntryDto, type GenericHttpResponseVecOrderHistoryEntryDtoDataItem, type GenericHttpResponseVecOrderHistoryEntryDtoDataItemBaseTokenConsumedAmount, type GenericHttpResponseVecOrderHistoryEntryDtoDataItemIxIndex, type GenericHttpResponseVecOrderHistoryEntryDtoDataItemQuoteTokenFilledAmount, type GenericHttpResponseVecOrderHistoryEntryDtoDataItemTxSignature, type GenericHttpResponseVecOrderHistoryEntryDtoDataItemUiExecutionPrice, type GenericHttpResponseVecOrderHistoryEntryDtoDataItemUiPrice, type GenericHttpResponseVecPoolDto, type GenericHttpResponseVecPoolDtoDataItem, type GenericHttpResponseVecPoolDtoDataItemOlpFeeRate, type GenericHttpResponseVecPoolDtoDataItemStats, type GenericHttpResponseVecPoolPriceCandleDto, type GenericHttpResponseVecPoolPriceCandleDtoDataItem, type GenericHttpResponseVecPoolSwapDto, type GenericHttpResponseVecPoolSwapDtoDataItem, type GenericHttpResponseVecStakingDepositsStatsDto, type GenericHttpResponseVecStakingDepositsStatsDtoDataItem, type GenericHttpResponseVecStakingPositionActionDto, type GenericHttpResponseVecStakingPositionActionDtoDataItem, type GenericHttpResponseVecTradeHistoryEntryDto, type GenericHttpResponseVecTradeHistoryEntryDtoDataItem, type GenericHttpResponseVecTradeHistoryEntryDtoDataItemIxIndex, type GenericHttpResponseVecTradeHistoryEntryDtoDataItemPnl, type GenericHttpResponseVecTradeHistoryEntryDtoDataItemTxSignature, type GenericHttpResponseVecTunaLpPositionActionDto, type GenericHttpResponseVecTunaLpPositionActionDtoDataItem, type GenericHttpResponseVecTunaLpPositionDto, type GenericHttpResponseVecTunaLpPositionDtoDataItem, type GenericHttpResponseVecTunaLpPositionDtoDataItemClosedAt, type GenericHttpResponseVecTunaLpPositionDtoDataItemExitPrice, type GenericHttpResponseVecTunaLpPositionDtoDataItemLowerLimitOrder, type GenericHttpResponseVecTunaLpPositionDtoDataItemUpperLimitOrder, type GenericHttpResponseVecTunaPositionDto, type GenericHttpResponseVecTunaPositionDtoDataItem, type GenericHttpResponseVecTunaPositionDtoDataItemClosedAt, type GenericHttpResponseVecTunaSpotPositionDto, type GenericHttpResponseVecTunaSpotPositionDtoDataItem, type GenericHttpResponseVecTunaSpotPositionDtoDataItemClosedAt, type GenericHttpResponseVecVaultDto, type GenericHttpResponseVecVaultDtoDataItem, type GenericHttpResponseVecVaultStatsDto, type GenericHttpResponseVecVaultStatsDtoDataItem, type GenericHttpResponseWithMetaVecLeaderboardItemDtoPaginationMeta, type GenericHttpResponseWithMetaVecLeaderboardItemDtoPaginationMetaDataItem, type GenericHttpResponseWithMetaVecLeaderboardItemDtoPaginationMetaMeta, type GenericHttpResponseWithMetaVecStakingLeaderboardPositionDtoPaginationMeta, type GenericHttpResponseWithMetaVecStakingLeaderboardPositionDtoPaginationMetaDataItem, type GenericHttpResponseWithMetaVecStakingLeaderboardPositionDtoPaginationMetaMeta, type GetCloseSpotPositionQuoteParams, type GetDecreaseSpotPositionQuoteParams, type GetFeesStatsParams, type GetFusionFeesStatsParams, type GetIncreaseSpotPositionQuoteParams, type GetLimitOrder200, type GetLimitOrderError404Error, GetLimitOrderError404ErrorCode, type GetLimitOrderError500Error, GetLimitOrderError500ErrorCode, type GetLimitOrderQuoteByInput200, type GetLimitOrderQuoteByInputParams, type GetLimitOrderQuoteByOutputParams, type GetLimitOrdersParams, type GetLpPositionsParams, type GetLpSpotLeaderboardParams, type GetOrderHistoryParams, type GetPoolCandlesParams, type GetPoolOrderBookParams, type GetPoolsParams, type GetPositionsStatsParams, type GetStakingLeaderboardParams, type GetStakingRevenueStatsParams, type GetSwapQuoteByInputParams, type GetSwapQuoteByOutputParams, type GetTradableAmountParams, type GetTradeHistoryParams, type GetVaultHistoryParams, type HashMap, type HttpStatusData, type IncreaseSpotPositionQuoteDto, type InternalErrorCodeErrorBody, InternalErrorCodeErrorBodyCode, type LeaderboardItemDto, LeaderboardPeriod, LeaderboardSortBy, type LendingPositionDto, type LimitOrderDto, type LimitOrderDtoCloseTxSignature, type LimitOrderDtoClosedAt, type LimitOrderQuoteByInputDto, type LimitOrderQuoteByOutputDto, LimitOrderStatus, type MarketDto, type MintDto, NotificationAction, type NotificationDtoLendingPositionDto, type NotificationDtoLendingPositionDtoData, type NotificationDtoOrderHistoryEntryDto, type NotificationDtoOrderHistoryEntryDtoData, type NotificationDtoOrderHistoryEntryDtoDataBaseTokenConsumedAmount, type NotificationDtoOrderHistoryEntryDtoDataIxIndex, type NotificationDtoOrderHistoryEntryDtoDataQuoteTokenFilledAmount, type NotificationDtoOrderHistoryEntryDtoDataTxSignature, type NotificationDtoOrderHistoryEntryDtoDataUiExecutionPrice, type NotificationDtoOrderHistoryEntryDtoDataUiPrice, type NotificationDtoPoolSwapDto, type NotificationDtoPoolSwapDtoData, type NotificationDtoStakingPositionDto, type NotificationDtoStakingPositionDtoData, type NotificationDtoStakingPositionDtoDataLastUnstakedAt, type NotificationDtoStakingPositionDtoDataRank, type NotificationDtoStakingPositionDtoDataWithdrawAvailableAt, type NotificationDtoTradeHistoryEntryDto, type NotificationDtoTradeHistoryEntryDtoData, type NotificationDtoTradeHistoryEntryDtoDataIxIndex, type NotificationDtoTradeHistoryEntryDtoDataPnl, type NotificationDtoTradeHistoryEntryDtoDataTxSignature, NotificationEntity, type OraclePriceDto, type OrderBookDto, type OrderBookEntryDto, type OrderBookWrapper, type OrderHistoryEntryDto, type OrderHistoryEntryDtoBaseTokenConsumedAmount, type OrderHistoryEntryDtoIxIndex, type OrderHistoryEntryDtoQuoteTokenFilledAmount, type OrderHistoryEntryDtoTxSignature, type OrderHistoryEntryDtoUiExecutionPrice, type OrderHistoryEntryDtoUiPrice, OrderHistoryStatus, OrderHistoryType, OrderHistoryUIDirection, type PaginationMeta, type PoolDto, type PoolDtoOlpFeeRate, type PoolDtoStats, type PoolPriceCandleDto, PoolProvider, type PoolStatsDto, type PoolSubscription, type PoolSubscriptionIsInverted, type PoolSubscriptionOrderBookPriceStep, PoolSubscriptionTopic, type PoolSwapDto, type PoolTicksDto, type PubkeyDto, type Snapshot, type SnapshotContainer, type SnapshotFusionLimitOrders, type SnapshotMarkets, type SnapshotOraclePrices, type SnapshotOraclePricesAnyOf, type SnapshotOrderBooks, type SnapshotTunaLpPositions, type SnapshotTunaSpotPositions, type SseResponse, type StakingDepositsStatsDto, type StakingLeaderboardPositionDto, type StakingPositionActionDto, StakingPositionActionType, type StakingPositionDto, type StakingPositionDtoLastUnstakedAt, type StakingPositionDtoRank, type StakingPositionDtoWithdrawAvailableAt, type StreamInitalMessage, type SubscriptionOptions, type SubscriptionOptionsMarkets, type SubscriptionOptionsMints, type SubscriptionOptionsPools, type SubscriptionOptionsWallet, type SwapQuoteByInputDto, type SwapQuoteByOutputDto, type TickDto, type TokenAmountWithUsd, type TradableAmountDto, TradeHistoryAction, type TradeHistoryEntryDto, type TradeHistoryEntryDtoIxIndex, type TradeHistoryEntryDtoPnl, type TradeHistoryEntryDtoTxSignature, type TradeHistoryEntryPnlUsd, TradeHistoryUIDirection, type TreasuryDto, type TunaLpPositionActionComposite, type TunaLpPositionActionCompositeClosedPnlUsd, type TunaLpPositionActionCompositeCollectedFees, type TunaLpPositionActionCompositeFromLending, type TunaLpPositionActionCompositeFromOwner, type TunaLpPositionActionCompositeFromParameters, type TunaLpPositionActionCompositeFromPosition, type TunaLpPositionActionCompositeParameters, type TunaLpPositionActionCompositePosition, type TunaLpPositionActionCompositePrices, type TunaLpPositionActionCompositeProtocolFees, type TunaLpPositionActionCompositeToLending, type TunaLpPositionActionCompositeToOwner, type TunaLpPositionActionCompositeToParameters, type TunaLpPositionActionCompositeToPosition, type TunaLpPositionActionCompositeWithdrawPercent, type TunaLpPositionActionDto, TunaLpPositionAutoCompound, TunaLpPositionAutoCompounding, type TunaLpPositionDto, type TunaLpPositionDtoClosedAt, type TunaLpPositionDtoExitPrice, type TunaLpPositionDtoLowerLimitOrder, type TunaLpPositionDtoUpperLimitOrder, type TunaLpPositionFlags, type TunaLpPositionFlagsAutoCompounding, type TunaLpPositionFlagsLowerLimitOrderSwapToToken, type TunaLpPositionFlagsUpperLimitOrderSwapToToken, TunaLpPositionLimitOrderSwap, type TunaLpPositionParameters, type TunaLpPositionParametersLowerLimitOrder, type TunaLpPositionParametersUpperLimitOrder, TunaLpPositionRebalance, type TunaLpPositionTokenPrices, type TunaLpPositionTransfer, type TunaLpPositionValue, TunaLpPositionsActionType, type TunaLpPositionsStats, type TunaLpPositionsStatsFusionClosedByLimitOrderCount, type TunaLpPositionsStatsFusionLiquidatedCount, type TunaLpPositionsStatsFusionOpenCount, type TunaLpPositionsStatsOrcaClosedByLimitOrderCount, type TunaLpPositionsStatsOrcaLiquidatedCount, type TunaLpPositionsStatsOrcaOpenCount, type TunaPositionDto, type TunaPositionDtoClosedAt, TunaPositionDtoState, TunaPositionMarketMaker, TunaPositionPoolToken, type TunaPositionTokenDepositedCollateral, type TunaPositionTokenPnl, type TunaPositionUsdPnl, type TunaSpotPositionDto, type TunaSpotPositionDtoClosedAt, TunaSpotPositionDtoState, type ValidationErrorCodeErrorBody, ValidationErrorCodeErrorBodyCode, type ValidationErrorCodeErrorBodyData, type ValidationErrorCodeValidationDetailsErrorBody, ValidationErrorCodeValidationDetailsErrorBodyCode, type ValidationErrorCodeValidationDetailsErrorBodyData, type VaultDto, type VaultStatsDto, type VestingDto, type VestingDtoLockedAt, type WalletSubscription, WalletSubscriptionTopic, eventIsInitialMessage, eventIsLendingPosition, eventIsOrderHistory, eventIsPoolSwap, eventIsStakingPosition, eventIsStateSnapshot, eventIsTradeHistory, getCloseSpotPositionQuote, type getCloseSpotPositionQuoteResponse, type getCloseSpotPositionQuoteResponse200, type getCloseSpotPositionQuoteResponse400, type getCloseSpotPositionQuoteResponseError, type getCloseSpotPositionQuoteResponseSuccess, getDecreaseSpotPositionQuote, type getDecreaseSpotPositionQuoteResponse, type getDecreaseSpotPositionQuoteResponse200, type getDecreaseSpotPositionQuoteResponse400, type getDecreaseSpotPositionQuoteResponseError, type getDecreaseSpotPositionQuoteResponseSuccess, getFeesStats, type getFeesStatsResponse, type getFeesStatsResponse200, type getFeesStatsResponse400, type getFeesStatsResponse500, type getFeesStatsResponseError, type getFeesStatsResponseSuccess, getFusionFeesStats, type getFusionFeesStatsResponse, type getFusionFeesStatsResponse200, type getFusionFeesStatsResponse400, type getFusionFeesStatsResponse500, type getFusionFeesStatsResponseError, type getFusionFeesStatsResponseSuccess, getGetCloseSpotPositionQuoteUrl, getGetDecreaseSpotPositionQuoteUrl, getGetFeesStatsUrl, getGetFusionFeesStatsUrl, getGetIncreaseSpotPositionQuoteUrl, getGetLendingPositionUrl, getGetLendingPositionsUrl, getGetLimitOrderQuoteByInputUrl, getGetLimitOrderQuoteByOutputUrl, getGetLimitOrderUrl, getGetLimitOrdersUrl, getGetLpPositionActionsUrl, getGetLpPositionsUrl, getGetLpSpotLeaderboardUrl, getGetMarketUrl, getGetMarketsUrl, getGetMintUrl, getGetMintsUrl, getGetOraclePriceUrl, getGetOraclePricesUrl, getGetOrderHistoryUrl, getGetPoolCandlesUrl, getGetPoolOrderBookUrl, getGetPoolSwapsUrl, getGetPoolTicksUrl, getGetPoolUrl, getGetPoolsUrl, getGetPositionsStatsUrl, getGetPositionsTotalUrl, getGetSpotPositionUrl, getGetSpotPositionsUrl, getGetStakingLeaderboardUrl, getGetStakingRevenueStatsUrl, getGetStakingTreasuryUrl, getGetSwapQuoteByInputUrl, getGetSwapQuoteByOutputUrl, getGetTradableAmountUrl, getGetTradeHistoryUrl, getGetTunaPositionUrl, getGetTunaPositionsUrl, getGetUserStakingPositionHistoryUrl, getGetUserStakingPositionUrl, getGetVaultHistoryUrl, getGetVaultUrl, getGetVaultsUrl, getIncreaseSpotPositionQuote, type getIncreaseSpotPositionQuoteResponse, type getIncreaseSpotPositionQuoteResponse200, type getIncreaseSpotPositionQuoteResponse400, type getIncreaseSpotPositionQuoteResponseError, type getIncreaseSpotPositionQuoteResponseSuccess, getLendingPosition, type getLendingPositionResponse, type getLendingPositionResponse200, type getLendingPositionResponse400, type getLendingPositionResponse500, type getLendingPositionResponseError, type getLendingPositionResponseSuccess, getLendingPositions, type getLendingPositionsResponse, type getLendingPositionsResponse200, type getLendingPositionsResponse400, type getLendingPositionsResponse500, type getLendingPositionsResponseError, type getLendingPositionsResponseSuccess, getLimitOrder, getLimitOrderQuoteByInput, type getLimitOrderQuoteByInputResponse, type getLimitOrderQuoteByInputResponse200, type getLimitOrderQuoteByInputResponse400, type getLimitOrderQuoteByInputResponse422, type getLimitOrderQuoteByInputResponse500, type getLimitOrderQuoteByInputResponseError, type getLimitOrderQuoteByInputResponseSuccess, getLimitOrderQuoteByOutput, type getLimitOrderQuoteByOutputResponse, type getLimitOrderQuoteByOutputResponse200, type getLimitOrderQuoteByOutputResponse400, type getLimitOrderQuoteByOutputResponseError, type getLimitOrderQuoteByOutputResponseSuccess, type getLimitOrderResponse, type getLimitOrderResponse200, type getLimitOrderResponse400, type getLimitOrderResponse404, type getLimitOrderResponse422, type getLimitOrderResponse500, type getLimitOrderResponseError, type getLimitOrderResponseSuccess, getLimitOrders, type getLimitOrdersResponse, type getLimitOrdersResponse200, type getLimitOrdersResponse400, type getLimitOrdersResponse500, type getLimitOrdersResponseError, type getLimitOrdersResponseSuccess, getLpPositionActions, type getLpPositionActionsResponse, type getLpPositionActionsResponse200, type getLpPositionActionsResponse400, type getLpPositionActionsResponse500, type getLpPositionActionsResponseError, type getLpPositionActionsResponseSuccess, getLpPositions, type getLpPositionsResponse, type getLpPositionsResponse200, type getLpPositionsResponse400, type getLpPositionsResponse500, type getLpPositionsResponseError, type getLpPositionsResponseSuccess, getLpSpotLeaderboard, type getLpSpotLeaderboardResponse, type getLpSpotLeaderboardResponse200, type getLpSpotLeaderboardResponse400, type getLpSpotLeaderboardResponse500, type getLpSpotLeaderboardResponseError, type getLpSpotLeaderboardResponseSuccess, getMarket, type getMarketResponse, type getMarketResponse200, type getMarketResponse400, type getMarketResponse404, type getMarketResponse500, type getMarketResponseError, type getMarketResponseSuccess, getMarkets, type getMarketsResponse, type getMarketsResponse200, type getMarketsResponse500, type getMarketsResponseError, type getMarketsResponseSuccess, getMint, type getMintResponse, type getMintResponse200, type getMintResponse400, type getMintResponse404, type getMintResponse500, type getMintResponseError, type getMintResponseSuccess, getMints, type getMintsResponse, type getMintsResponse200, type getMintsResponse500, type getMintsResponseError, type getMintsResponseSuccess, getOraclePrice, type getOraclePriceResponse, type getOraclePriceResponse200, type getOraclePriceResponse400, type getOraclePriceResponse404, type getOraclePriceResponse500, type getOraclePriceResponseError, type getOraclePriceResponseSuccess, getOraclePrices, type getOraclePricesResponse, type getOraclePricesResponse200, type getOraclePricesResponse500, type getOraclePricesResponseError, type getOraclePricesResponseSuccess, getOrderHistory, type getOrderHistoryResponse, type getOrderHistoryResponse200, type getOrderHistoryResponse400, type getOrderHistoryResponse500, type getOrderHistoryResponseError, type getOrderHistoryResponseSuccess, getPool, getPoolCandles, type getPoolCandlesResponse, type getPoolCandlesResponse200, type getPoolCandlesResponse400, type getPoolCandlesResponse500, type getPoolCandlesResponseError, type getPoolCandlesResponseSuccess, getPoolOrderBook, type getPoolOrderBookResponse, type getPoolOrderBookResponse200, type getPoolOrderBookResponse400, type getPoolOrderBookResponse404, type getPoolOrderBookResponse500, type getPoolOrderBookResponseError, type getPoolOrderBookResponseSuccess, type getPoolResponse, type getPoolResponse200, type getPoolResponse400, type getPoolResponse404, type getPoolResponse500, type getPoolResponseError, type getPoolResponseSuccess, getPoolSwaps, type getPoolSwapsResponse, type getPoolSwapsResponse200, type getPoolSwapsResponse400, type getPoolSwapsResponse404, type getPoolSwapsResponse500, type getPoolSwapsResponseError, type getPoolSwapsResponseSuccess, getPoolTicks, type getPoolTicksResponse, type getPoolTicksResponse200, type getPoolTicksResponse400, type getPoolTicksResponse404, type getPoolTicksResponse500, type getPoolTicksResponseError, type getPoolTicksResponseSuccess, getPools, type getPoolsResponse, type getPoolsResponse200, type getPoolsResponse500, type getPoolsResponseError, type getPoolsResponseSuccess, getPositionsStats, type getPositionsStatsResponse, type getPositionsStatsResponse200, type getPositionsStatsResponse500, type getPositionsStatsResponseError, type getPositionsStatsResponseSuccess, getPositionsTotal, type getPositionsTotalResponse, type getPositionsTotalResponse200, type getPositionsTotalResponse500, type getPositionsTotalResponseError, type getPositionsTotalResponseSuccess, getSpotPosition, type getSpotPositionResponse, type getSpotPositionResponse200, type getSpotPositionResponse400, type getSpotPositionResponse404, type getSpotPositionResponse500, type getSpotPositionResponseError, type getSpotPositionResponseSuccess, getSpotPositions, type getSpotPositionsResponse, type getSpotPositionsResponse200, type getSpotPositionsResponse400, type getSpotPositionsResponse500, type getSpotPositionsResponseError, type getSpotPositionsResponseSuccess, getSseUpdatesStream, getSseUrl, getStakingLeaderboard, type getStakingLeaderboardResponse, type getStakingLeaderboardResponse200, type getStakingLeaderboardResponse400, type getStakingLeaderboardResponse500, type getStakingLeaderboardResponseError, type getStakingLeaderboardResponseSuccess, getStakingRevenueStats, type getStakingRevenueStatsResponse, type getStakingRevenueStatsResponse200, type getStakingRevenueStatsResponse400, type getStakingRevenueStatsResponse500, type getStakingRevenueStatsResponseError, type getStakingRevenueStatsResponseSuccess, getStakingTreasury, type getStakingTreasuryResponse, type getStakingTreasuryResponse200, type getStakingTreasuryResponse500, type getStakingTreasuryResponseError, type getStakingTreasuryResponseSuccess, getSwapQuoteByInput, type getSwapQuoteByInputResponse, type getSwapQuoteByInputResponse200, type getSwapQuoteByInputResponse400, type getSwapQuoteByInputResponseError, type getSwapQuoteByInputResponseSuccess, getSwapQuoteByOutput, type getSwapQuoteByOutputResponse, type getSwapQuoteByOutputResponse200, type getSwapQuoteByOutputResponse400, type getSwapQuoteByOutputResponseError, type getSwapQuoteByOutputResponseSuccess, getTradableAmount, type getTradableAmountResponse, type getTradableAmountResponse200, type getTradableAmountResponse400, type getTradableAmountResponseError, type getTradableAmountResponseSuccess, getTradeHistory, type getTradeHistoryResponse, type getTradeHistoryResponse200, type getTradeHistoryResponse400, type getTradeHistoryResponse500, type getTradeHistoryResponseError, type getTradeHistoryResponseSuccess, getTunaPosition, type getTunaPositionResponse, type getTunaPositionResponse200, type getTunaPositionResponse400, type getTunaPositionResponse500, type getTunaPositionResponseError, type getTunaPositionResponseSuccess, getTunaPositions, type getTunaPositionsResponse, type getTunaPositionsResponse200, type getTunaPositionsResponse400, type getTunaPositionsResponse500, type getTunaPositionsResponseError, type getTunaPositionsResponseSuccess, getUpdateStreamSubscriptionUrl, getUserStakingPosition, getUserStakingPositionHistory, type getUserStakingPositionHistoryResponse, type getUserStakingPositionHistoryResponse200, type getUserStakingPositionHistoryResponse400, type getUserStakingPositionHistoryResponse500, type getUserStakingPositionHistoryResponseError, type getUserStakingPositionHistoryResponseSuccess, type getUserStakingPositionResponse, type getUserStakingPositionResponse200, type getUserStakingPositionResponse400, type getUserStakingPositionResponse500, type getUserStakingPositionResponseError, type getUserStakingPositionResponseSuccess, getVault, getVaultHistory, type getVaultHistoryResponse, type getVaultHistoryResponse200, type getVaultHistoryResponse400, type getVaultHistoryResponse404, type getVaultHistoryResponse500, type getVaultHistoryResponseError, type getVaultHistoryResponseSuccess, type getVaultResponse, type getVaultResponse200, type getVaultResponse400, type getVaultResponse404, type getVaultResponse500, type getVaultResponseError, type getVaultResponseSuccess, getVaults, type getVaultsResponse, type getVaultsResponse200, type getVaultsResponse500, type getVaultsResponseError, type getVaultsResponseSuccess, normalizeResponseJson, setTunaBaseUrl, sse, type sseResponse, type sseResponse200, type sseResponse500, type sseResponseError, type sseResponseSuccess, unwrap, updateStreamSubscription, type updateStreamSubscriptionResponse, type updateStreamSubscriptionResponse200, type updateStreamSubscriptionResponse400, type updateStreamSubscriptionResponse500, type updateStreamSubscriptionResponseError, type updateStreamSubscriptionResponseSuccess };
|
package/dist/index.js
CHANGED
|
@@ -101,6 +101,20 @@ async function customFetch(url, init) {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
// src/gen/defiTunaAPI.ts
|
|
104
|
+
var BadRequestErrorCodeErrorBodyCode = {
|
|
105
|
+
invalidPath: "invalid_path",
|
|
106
|
+
invalidQuery: "invalid_query",
|
|
107
|
+
invalidBody: "invalid_body"
|
|
108
|
+
};
|
|
109
|
+
var GetLimitOrderError404ErrorCode = {
|
|
110
|
+
notFound: "not_found"
|
|
111
|
+
};
|
|
112
|
+
var GetLimitOrderError500ErrorCode = {
|
|
113
|
+
internalError: "internal_error"
|
|
114
|
+
};
|
|
115
|
+
var InternalErrorCodeErrorBodyCode = {
|
|
116
|
+
internalError: "internal_error"
|
|
117
|
+
};
|
|
104
118
|
var LeaderboardPeriod = {
|
|
105
119
|
week: "week"
|
|
106
120
|
};
|
|
@@ -115,11 +129,6 @@ var LimitOrderStatus = {
|
|
|
115
129
|
complete: "complete",
|
|
116
130
|
cancelled: "cancelled"
|
|
117
131
|
};
|
|
118
|
-
var LpPositionsHistoryQueryFilter = {
|
|
119
|
-
opened: "opened",
|
|
120
|
-
closed: "closed",
|
|
121
|
-
all: "all"
|
|
122
|
-
};
|
|
123
132
|
var NotificationAction = {
|
|
124
133
|
create: "create",
|
|
125
134
|
update: "update"
|
|
@@ -245,6 +254,12 @@ var TunaSpotPositionDtoState = {
|
|
|
245
254
|
open: "open",
|
|
246
255
|
closed: "closed"
|
|
247
256
|
};
|
|
257
|
+
var ValidationErrorCodeErrorBodyCode = {
|
|
258
|
+
validationFailed: "validation_failed"
|
|
259
|
+
};
|
|
260
|
+
var ValidationErrorCodeValidationDetailsErrorBodyCode = {
|
|
261
|
+
validationFailed: "validation_failed"
|
|
262
|
+
};
|
|
248
263
|
var WalletSubscriptionTopic = {
|
|
249
264
|
tunaPositions: "tuna_positions",
|
|
250
265
|
tunaSpotPositions: "tuna_spot_positions",
|
|
@@ -802,12 +817,19 @@ var getLimitOrder = async (userAddress, limitOrderAddress, options) => {
|
|
|
802
817
|
var getGetLpPositionsUrl = (userAddress, params) => {
|
|
803
818
|
const normalizedParams = new URLSearchParams();
|
|
804
819
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
820
|
+
const explodeParameters = ["liquidityPool", "state"];
|
|
821
|
+
if (Array.isArray(value) && explodeParameters.includes(key)) {
|
|
822
|
+
value.forEach((v) => {
|
|
823
|
+
normalizedParams.append(key, v === null ? "null" : v.toString());
|
|
824
|
+
});
|
|
825
|
+
return;
|
|
826
|
+
}
|
|
805
827
|
if (value !== void 0) {
|
|
806
|
-
normalizedParams.append(key, value === null ? "null" : value
|
|
828
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
807
829
|
}
|
|
808
830
|
});
|
|
809
831
|
const stringifiedParams = normalizedParams.toString();
|
|
810
|
-
return stringifiedParams.length > 0 ? `/v1/users/${userAddress}/lp-positions?${stringifiedParams}` : `/v1/users/${userAddress}/lp-positions`;
|
|
832
|
+
return stringifiedParams.length > 0 ? `/v1/users/${userAddress}/lp-positions-history?${stringifiedParams}` : `/v1/users/${userAddress}/lp-positions-history`;
|
|
811
833
|
};
|
|
812
834
|
var getLpPositions = async (userAddress, params, options) => {
|
|
813
835
|
return customFetch(
|
|
@@ -819,7 +841,7 @@ var getLpPositions = async (userAddress, params, options) => {
|
|
|
819
841
|
);
|
|
820
842
|
};
|
|
821
843
|
var getGetLpPositionActionsUrl = (userAddress, positionAddress) => {
|
|
822
|
-
return `/v1/users/${userAddress}/lp-positions/${positionAddress}/actions`;
|
|
844
|
+
return `/v1/users/${userAddress}/lp-positions-history/${positionAddress}/actions`;
|
|
823
845
|
};
|
|
824
846
|
var getLpPositionActions = async (userAddress, positionAddress, options) => {
|
|
825
847
|
return customFetch(
|
|
@@ -1007,7 +1029,7 @@ function unwrapData(data) {
|
|
|
1007
1029
|
}
|
|
1008
1030
|
async function unwrap(promise) {
|
|
1009
1031
|
const res = await promise;
|
|
1010
|
-
if (res.status
|
|
1032
|
+
if (res.status !== 200) {
|
|
1011
1033
|
throw {
|
|
1012
1034
|
message: String(res.data),
|
|
1013
1035
|
status: res.status
|
|
@@ -1443,10 +1465,13 @@ function eventIsStateSnapshot(event) {
|
|
|
1443
1465
|
return "entity" in event && event.entity === NotificationEntity.stateSnapshot;
|
|
1444
1466
|
}
|
|
1445
1467
|
export {
|
|
1468
|
+
BadRequestErrorCodeErrorBodyCode,
|
|
1469
|
+
GetLimitOrderError404ErrorCode,
|
|
1470
|
+
GetLimitOrderError500ErrorCode,
|
|
1471
|
+
InternalErrorCodeErrorBodyCode,
|
|
1446
1472
|
LeaderboardPeriod,
|
|
1447
1473
|
LeaderboardSortBy,
|
|
1448
1474
|
LimitOrderStatus,
|
|
1449
|
-
LpPositionsHistoryQueryFilter,
|
|
1450
1475
|
NotificationAction,
|
|
1451
1476
|
NotificationEntity,
|
|
1452
1477
|
OrderHistoryStatus,
|
|
@@ -1466,6 +1491,8 @@ export {
|
|
|
1466
1491
|
TunaPositionMarketMaker,
|
|
1467
1492
|
TunaPositionPoolToken,
|
|
1468
1493
|
TunaSpotPositionDtoState,
|
|
1494
|
+
ValidationErrorCodeErrorBodyCode,
|
|
1495
|
+
ValidationErrorCodeValidationDetailsErrorBodyCode,
|
|
1469
1496
|
WalletSubscriptionTopic,
|
|
1470
1497
|
eventIsInitialMessage,
|
|
1471
1498
|
eventIsLendingPosition,
|