@crypticdot/defituna-api 3.0.4 → 3.1.1
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 +126 -6
- package/dist/index.d.cts +828 -1273
- package/dist/index.d.ts +828 -1273
- package/dist/index.js +102 -6
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2,9 +2,9 @@ import { EventSource } from 'eventsource';
|
|
|
2
2
|
|
|
3
3
|
type BadRequestErrorCodeErrorBodyCode = typeof BadRequestErrorCodeErrorBodyCode[keyof typeof BadRequestErrorCodeErrorBodyCode];
|
|
4
4
|
declare const BadRequestErrorCodeErrorBodyCode: {
|
|
5
|
+
readonly invalidBody: "invalid_body";
|
|
5
6
|
readonly invalidPath: "invalid_path";
|
|
6
7
|
readonly invalidQuery: "invalid_query";
|
|
7
|
-
readonly invalidBody: "invalid_body";
|
|
8
8
|
};
|
|
9
9
|
interface BadRequestErrorCodeErrorBody {
|
|
10
10
|
code: BadRequestErrorCodeErrorBodyCode;
|
|
@@ -13,1007 +13,81 @@ interface CloseSpotPositionQuoteDto {
|
|
|
13
13
|
/** Confirmed position decrease percentage (100% = 1.0) */
|
|
14
14
|
decreasePercent: number;
|
|
15
15
|
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
16
|
-
estimatedWithdrawnCollateral: bigint;
|
|
17
|
-
/** Price impact in percents (100% = 1.0) */
|
|
18
|
-
priceImpact: number;
|
|
19
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
20
|
-
requiredSwapAmount: bigint;
|
|
21
|
-
}
|
|
22
|
-
interface DecreaseSpotPositionQuoteDto {
|
|
23
|
-
/** Position decrease percentage */
|
|
24
|
-
decreasePercent: number;
|
|
25
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
26
|
-
estimatedAmount: bigint;
|
|
27
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
28
|
-
estimatedWithdrawnCollateral: bigint;
|
|
29
|
-
/** Liquidation price */
|
|
30
|
-
liquidationPrice: number;
|
|
31
|
-
/** Price impact in percents (100% = 1.0) */
|
|
32
|
-
priceImpact: number;
|
|
33
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
34
|
-
requiredSwapAmount: bigint;
|
|
35
|
-
}
|
|
36
|
-
interface FeeAmountWithUsd {
|
|
37
|
-
/** Signed 64-bit integer encoded as a decimal string */
|
|
38
|
-
amount: bigint;
|
|
39
|
-
usd: number;
|
|
40
|
-
}
|
|
41
|
-
interface FeesStatsGroupDto {
|
|
42
|
-
addLiquidityFees: number;
|
|
43
|
-
failedNetworkFees: number;
|
|
44
|
-
jitoLimitOrderFees: number;
|
|
45
|
-
jitoLiquidationFees: number;
|
|
46
|
-
jitoRebalanceFees: number;
|
|
47
|
-
jitoYieldCompoundingFees: number;
|
|
48
|
-
limitOrderFees: number;
|
|
49
|
-
liquidationFees: number;
|
|
50
|
-
processedNetworkFees: number;
|
|
51
|
-
rebalanceFees: number;
|
|
52
|
-
runningAddLiquidityFees: number;
|
|
53
|
-
runningFailedNetworkFees: number;
|
|
54
|
-
runningJitoLimitOrderFees: number;
|
|
55
|
-
runningJitoLiquidationFees: number;
|
|
56
|
-
runningJitoRebalanceFees: number;
|
|
57
|
-
runningJitoYieldCompoundingFees: number;
|
|
58
|
-
runningLimitOrderFees: number;
|
|
59
|
-
runningLiquidationFees: number;
|
|
60
|
-
runningProcessedNetworkFees: number;
|
|
61
|
-
runningRebalanceFees: number;
|
|
62
|
-
runningTotalCollectedFees: number;
|
|
63
|
-
runningTotalFusionFees: number;
|
|
64
|
-
runningTotalLimitOrdersNetworkFees: number;
|
|
65
|
-
runningTotalLiquidationsNetworkFees: number;
|
|
66
|
-
runningTotalNetworkFees: number;
|
|
67
|
-
runningTotalYieldCompoundingNetworkFees: number;
|
|
68
|
-
runningYieldCompoundingFees: number;
|
|
69
|
-
time: Date;
|
|
70
|
-
totalCollectedFees: number;
|
|
71
|
-
totalFusionFees: number;
|
|
72
|
-
totalLimitOrdersNetworkFees: number;
|
|
73
|
-
totalLiquidationsNetworkFees: number;
|
|
74
|
-
totalNetworkFees: number;
|
|
75
|
-
totalRebalanceNetworkFees: number;
|
|
76
|
-
totalYieldCompoundingNetworkFees: number;
|
|
77
|
-
yieldCompoundingFees: number;
|
|
78
|
-
}
|
|
79
|
-
interface FieldError {
|
|
80
|
-
/** Field name in request. */
|
|
81
|
-
field: string;
|
|
82
|
-
/** Validation error message. */
|
|
83
|
-
message: string;
|
|
84
|
-
}
|
|
85
|
-
interface FusionFeesStatsGroupDto {
|
|
86
|
-
/** Solana public key (base58) */
|
|
87
|
-
pool: string;
|
|
88
|
-
runningTotalCollectedFees: number;
|
|
89
|
-
time: Date;
|
|
90
|
-
totalCollectedFees: number;
|
|
91
|
-
}
|
|
92
|
-
type GenericHttpResponseWithMetaVecLeaderboardItemDtoPaginationMetaDataItem = {
|
|
93
|
-
/** Solana public key (base58) */
|
|
94
|
-
authority: string;
|
|
95
|
-
lpBaseValueUsd: number;
|
|
96
|
-
lpPeriodPnlPercent: number;
|
|
97
|
-
lpPeriodPnlUsd: number;
|
|
98
|
-
/** @minimum 0 */
|
|
99
|
-
lpPositionsCount: number;
|
|
100
|
-
/** @minimum 0 */
|
|
101
|
-
rank: number;
|
|
102
|
-
spotBaseValueUsd: number;
|
|
103
|
-
spotPeriodPnlPercent: number;
|
|
104
|
-
spotPeriodPnlUsd: number;
|
|
105
|
-
/** @minimum 0 */
|
|
106
|
-
spotPositionsCount: number;
|
|
107
|
-
totalPeriodPnlPercent: number;
|
|
108
|
-
totalPeriodPnlUsd: number;
|
|
109
|
-
};
|
|
110
|
-
type GenericHttpResponseWithMetaVecLeaderboardItemDtoPaginationMetaMeta = {
|
|
111
|
-
total: number;
|
|
112
|
-
};
|
|
113
|
-
interface GenericHttpResponseWithMetaVecLeaderboardItemDtoPaginationMeta {
|
|
114
|
-
data: GenericHttpResponseWithMetaVecLeaderboardItemDtoPaginationMetaDataItem[];
|
|
115
|
-
meta: GenericHttpResponseWithMetaVecLeaderboardItemDtoPaginationMetaMeta;
|
|
116
|
-
}
|
|
117
|
-
type GenericHttpResponseWithMetaVecStakingLeaderboardPositionDtoPaginationMetaDataItem = {
|
|
118
|
-
/** Solana public key (base58) */
|
|
119
|
-
address: string;
|
|
120
|
-
/** Solana public key (base58) */
|
|
121
|
-
owner: string;
|
|
122
|
-
/** @minimum 0 */
|
|
123
|
-
rank: number;
|
|
124
|
-
staked: TokenAmountWithUsd;
|
|
125
|
-
};
|
|
126
|
-
type GenericHttpResponseWithMetaVecStakingLeaderboardPositionDtoPaginationMetaMeta = {
|
|
127
|
-
total: number;
|
|
128
|
-
};
|
|
129
|
-
interface GenericHttpResponseWithMetaVecStakingLeaderboardPositionDtoPaginationMeta {
|
|
130
|
-
data: GenericHttpResponseWithMetaVecStakingLeaderboardPositionDtoPaginationMetaDataItem[];
|
|
131
|
-
meta: GenericHttpResponseWithMetaVecStakingLeaderboardPositionDtoPaginationMetaMeta;
|
|
132
|
-
}
|
|
133
|
-
type GenericHttpResponseCloseSpotPositionQuoteDtoData = {
|
|
134
|
-
/** Confirmed position decrease percentage (100% = 1.0) */
|
|
135
|
-
decreasePercent: number;
|
|
136
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
137
|
-
estimatedWithdrawnCollateral: bigint;
|
|
138
|
-
/** Price impact in percents (100% = 1.0) */
|
|
139
|
-
priceImpact: number;
|
|
140
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
141
|
-
requiredSwapAmount: bigint;
|
|
142
|
-
};
|
|
143
|
-
interface GenericHttpResponseCloseSpotPositionQuoteDto {
|
|
144
|
-
data: GenericHttpResponseCloseSpotPositionQuoteDtoData;
|
|
145
|
-
}
|
|
146
|
-
type GenericHttpResponseDecreaseSpotPositionQuoteDtoData = {
|
|
147
|
-
/** Position decrease percentage */
|
|
148
|
-
decreasePercent: number;
|
|
149
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
150
|
-
estimatedAmount: bigint;
|
|
151
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
152
|
-
estimatedWithdrawnCollateral: bigint;
|
|
153
|
-
/** Liquidation price */
|
|
154
|
-
liquidationPrice: number;
|
|
155
|
-
/** Price impact in percents (100% = 1.0) */
|
|
156
|
-
priceImpact: number;
|
|
157
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
158
|
-
requiredSwapAmount: bigint;
|
|
159
|
-
};
|
|
160
|
-
interface GenericHttpResponseDecreaseSpotPositionQuoteDto {
|
|
161
|
-
data: GenericHttpResponseDecreaseSpotPositionQuoteDtoData;
|
|
162
|
-
}
|
|
163
|
-
type GenericHttpResponseHttpStatusDataData = {
|
|
164
|
-
status: string;
|
|
165
|
-
};
|
|
166
|
-
interface GenericHttpResponseHttpStatusData {
|
|
167
|
-
data: GenericHttpResponseHttpStatusDataData;
|
|
168
|
-
}
|
|
169
|
-
type GenericHttpResponseIncreaseSpotPositionQuoteDtoData = {
|
|
170
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
171
|
-
borrowAmount: bigint;
|
|
172
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
173
|
-
collateralAmount: bigint;
|
|
174
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
175
|
-
estimatedAmount: bigint;
|
|
176
|
-
/** Liquidation price */
|
|
177
|
-
liquidationPrice: number;
|
|
178
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
179
|
-
minSwapOutputAmount: bigint;
|
|
180
|
-
/** Price impact in percents */
|
|
181
|
-
priceImpact: number;
|
|
182
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
183
|
-
protocolFeeA: bigint;
|
|
184
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
185
|
-
protocolFeeB: bigint;
|
|
186
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
187
|
-
swapInputAmount: bigint;
|
|
188
|
-
};
|
|
189
|
-
interface GenericHttpResponseIncreaseSpotPositionQuoteDto {
|
|
190
|
-
data: GenericHttpResponseIncreaseSpotPositionQuoteDtoData;
|
|
191
|
-
}
|
|
192
|
-
type GenericHttpResponseLimitOrderQuoteByOutputDtoData = {
|
|
193
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
194
|
-
amountIn: bigint;
|
|
195
|
-
};
|
|
196
|
-
interface GenericHttpResponseLimitOrderQuoteByOutputDto {
|
|
197
|
-
data: GenericHttpResponseLimitOrderQuoteByOutputDtoData;
|
|
198
|
-
}
|
|
199
|
-
type GenericHttpResponseMarketDtoData = {
|
|
200
|
-
/** Solana public key (base58) */
|
|
201
|
-
address: string;
|
|
202
|
-
/** Solana public key (base58) */
|
|
203
|
-
addressLookupTable: string;
|
|
204
|
-
borrowLimitA: TokenAmountWithUsd;
|
|
205
|
-
borrowLimitB: TokenAmountWithUsd;
|
|
206
|
-
borrowedFundsA: TokenAmountWithUsd;
|
|
207
|
-
borrowedFundsB: TokenAmountWithUsd;
|
|
208
|
-
createdAt: Date;
|
|
209
|
-
disabled: boolean;
|
|
210
|
-
/** @minimum 0 */
|
|
211
|
-
liquidationFee: number;
|
|
212
|
-
/** @minimum 0 */
|
|
213
|
-
liquidationThreshold: number;
|
|
214
|
-
/** @minimum 0 */
|
|
215
|
-
maxLeverage: number;
|
|
216
|
-
maxSpotPositionSizeA: TokenAmountWithUsd;
|
|
217
|
-
maxSpotPositionSizeB: TokenAmountWithUsd;
|
|
218
|
-
/** @minimum 0 */
|
|
219
|
-
maxSwapSlippage: number;
|
|
220
|
-
/** @minimum 0 */
|
|
221
|
-
oraclePriceDeviationThreshold: number;
|
|
222
|
-
pool: PoolDto;
|
|
223
|
-
/** @minimum 0 */
|
|
224
|
-
protocolFee: number;
|
|
225
|
-
/** @minimum 0 */
|
|
226
|
-
protocolFeeOnCollateral: number;
|
|
227
|
-
/** @minimum 0 */
|
|
228
|
-
rebalanceProtocolFee: number;
|
|
229
|
-
};
|
|
230
|
-
interface GenericHttpResponseMarketDto {
|
|
231
|
-
data: GenericHttpResponseMarketDtoData;
|
|
232
|
-
}
|
|
233
|
-
type GenericHttpResponseMintDtoData = {
|
|
234
|
-
/** Solana public key (base58) */
|
|
235
|
-
address: string;
|
|
236
|
-
decimals: number;
|
|
237
|
-
logo: string;
|
|
238
|
-
name: string;
|
|
239
|
-
symbol: string;
|
|
240
|
-
};
|
|
241
|
-
interface GenericHttpResponseMintDto {
|
|
242
|
-
data: GenericHttpResponseMintDtoData;
|
|
243
|
-
}
|
|
244
|
-
type GenericHttpResponseOptionLendingPositionDtoDataOneOf = {
|
|
245
|
-
/** Solana public key (base58) */
|
|
246
|
-
address: string;
|
|
247
|
-
/** Solana public key (base58) */
|
|
248
|
-
authority: string;
|
|
249
|
-
earned: TokenAmountWithUsd;
|
|
250
|
-
funds: TokenAmountWithUsd;
|
|
251
|
-
/** Solana public key (base58) */
|
|
252
|
-
mint: string;
|
|
253
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
254
|
-
shares: bigint;
|
|
255
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
256
|
-
updatedAtSlot: bigint;
|
|
257
|
-
/** Solana public key (base58) */
|
|
258
|
-
vault: string;
|
|
259
|
-
};
|
|
260
|
-
type GenericHttpResponseOptionLendingPositionDtoData = null | GenericHttpResponseOptionLendingPositionDtoDataOneOf;
|
|
261
|
-
interface GenericHttpResponseOptionLendingPositionDto {
|
|
262
|
-
data: GenericHttpResponseOptionLendingPositionDtoData;
|
|
263
|
-
}
|
|
264
|
-
type GenericHttpResponseOptionTunaPositionDtoDataOneOfClosedAt = Date | null;
|
|
265
|
-
type GenericHttpResponseOptionTunaPositionDtoDataOneOf = {
|
|
266
|
-
/** Solana public key (base58) */
|
|
267
|
-
address: string;
|
|
268
|
-
/** Solana public key (base58) */
|
|
269
|
-
authority: string;
|
|
270
|
-
closedAt?: GenericHttpResponseOptionTunaPositionDtoDataOneOfClosedAt;
|
|
271
|
-
compoundedYieldA: TokenAmountWithUsd;
|
|
272
|
-
compoundedYieldB: TokenAmountWithUsd;
|
|
273
|
-
currentDebtA: TokenAmountWithUsd;
|
|
274
|
-
currentDebtB: TokenAmountWithUsd;
|
|
275
|
-
depositedCollateralA: TunaPositionTokenDepositedCollateral;
|
|
276
|
-
depositedCollateralB: TunaPositionTokenDepositedCollateral;
|
|
277
|
-
entryPrice: number;
|
|
278
|
-
flags: TunaLpPositionFlags;
|
|
279
|
-
initialDebtA: TokenAmountWithUsd;
|
|
280
|
-
initialDebtB: TokenAmountWithUsd;
|
|
281
|
-
leftoversA: TokenAmountWithUsd;
|
|
282
|
-
leftoversB: TokenAmountWithUsd;
|
|
283
|
-
leverage: number;
|
|
284
|
-
liquidationPriceLower: number;
|
|
285
|
-
liquidationPriceUpper: number;
|
|
286
|
-
/** Unsigned 128-bit integer encoded as a decimal string */
|
|
287
|
-
liquidity: bigint;
|
|
288
|
-
lowerLimitOrderPrice: number;
|
|
289
|
-
marketMaker: TunaPositionMarketMaker;
|
|
290
|
-
maxLeverage: number;
|
|
291
|
-
openedAt: Date;
|
|
292
|
-
/** Total PnL denominated/expressed in token A */
|
|
293
|
-
pnlA: TunaPositionTokenPnl;
|
|
294
|
-
/** Total PnL denominated/expressed in token B */
|
|
295
|
-
pnlB: TunaPositionTokenPnl;
|
|
296
|
-
pnlUsd: TunaPositionUsdPnl;
|
|
297
|
-
pool: PoolDto;
|
|
298
|
-
/** Solana public key (base58) */
|
|
299
|
-
positionMint: string;
|
|
300
|
-
state: TunaPositionDtoState;
|
|
301
|
-
tickLowerIndex: number;
|
|
302
|
-
tickUpperIndex: number;
|
|
303
|
-
totalA: TokenAmountWithUsd;
|
|
304
|
-
totalB: TokenAmountWithUsd;
|
|
305
|
-
upperLimitOrderPrice: number;
|
|
306
|
-
/** @minimum 0 */
|
|
307
|
-
version: number;
|
|
308
|
-
yieldA: TokenAmountWithUsd;
|
|
309
|
-
yieldB: TokenAmountWithUsd;
|
|
310
|
-
};
|
|
311
|
-
type GenericHttpResponseOptionTunaPositionDtoData = null | GenericHttpResponseOptionTunaPositionDtoDataOneOf;
|
|
312
|
-
interface GenericHttpResponseOptionTunaPositionDto {
|
|
313
|
-
data: GenericHttpResponseOptionTunaPositionDtoData;
|
|
314
|
-
}
|
|
315
|
-
type GenericHttpResponseOraclePriceDtoData = {
|
|
316
|
-
decimals: number;
|
|
317
|
-
/** Solana public key (base58) */
|
|
318
|
-
mint: string;
|
|
319
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
320
|
-
price: bigint;
|
|
321
|
-
time: Date;
|
|
322
|
-
};
|
|
323
|
-
interface GenericHttpResponseOraclePriceDto {
|
|
324
|
-
data: GenericHttpResponseOraclePriceDtoData;
|
|
325
|
-
}
|
|
326
|
-
type GenericHttpResponseOrderBookDtoData = {
|
|
327
|
-
entries: OrderBookEntryDto[];
|
|
328
|
-
/** Solana public key (base58) */
|
|
329
|
-
poolAddress: string;
|
|
330
|
-
poolPrice: number;
|
|
331
|
-
};
|
|
332
|
-
interface GenericHttpResponseOrderBookDto {
|
|
333
|
-
data: GenericHttpResponseOrderBookDtoData;
|
|
334
|
-
}
|
|
335
|
-
type GenericHttpResponsePoolDtoDataOlpFeeRate = number | null;
|
|
336
|
-
type GenericHttpResponsePoolDtoDataStats = null | PoolStatsDto;
|
|
337
|
-
type GenericHttpResponsePoolDtoData = {
|
|
338
|
-
/** Solana public key (base58) */
|
|
339
|
-
address: string;
|
|
340
|
-
/** @minimum 0 */
|
|
341
|
-
feeRate: number;
|
|
342
|
-
/** Unsigned 128-bit integer encoded as a decimal string */
|
|
343
|
-
liquidity: bigint;
|
|
344
|
-
mintA: MintDto;
|
|
345
|
-
mintB: MintDto;
|
|
346
|
-
olpFeeRate?: GenericHttpResponsePoolDtoDataOlpFeeRate;
|
|
347
|
-
price: number;
|
|
348
|
-
/** @minimum 0 */
|
|
349
|
-
protocolFeeRate: number;
|
|
350
|
-
provider: PoolProvider;
|
|
351
|
-
/** Unsigned 128-bit integer encoded as a decimal string */
|
|
352
|
-
sqrtPrice: bigint;
|
|
353
|
-
stats?: GenericHttpResponsePoolDtoDataStats;
|
|
354
|
-
tickCurrentIndex: number;
|
|
355
|
-
/** @minimum 0 */
|
|
356
|
-
tickSpacing: number;
|
|
357
|
-
/** Solana public key (base58) */
|
|
358
|
-
tokenAVault: string;
|
|
359
|
-
/** Solana public key (base58) */
|
|
360
|
-
tokenBVault: string;
|
|
361
|
-
};
|
|
362
|
-
interface GenericHttpResponsePoolDto {
|
|
363
|
-
data: GenericHttpResponsePoolDtoData;
|
|
364
|
-
}
|
|
365
|
-
type GenericHttpResponsePoolTicksDtoData = {
|
|
366
|
-
/** @minimum 0 */
|
|
367
|
-
tickSpacing: number;
|
|
368
|
-
ticks: TickDto[];
|
|
369
|
-
};
|
|
370
|
-
interface GenericHttpResponsePoolTicksDto {
|
|
371
|
-
data: GenericHttpResponsePoolTicksDtoData;
|
|
372
|
-
}
|
|
373
|
-
type GenericHttpResponseSseResponseData = StreamInitalMessage | NotificationDtoPoolSwapDto | NotificationDtoStakingPositionDto | NotificationDtoLendingPositionDto | NotificationDtoTradeHistoryEntryDto | NotificationDtoOrderHistoryEntryDto | SnapshotContainer;
|
|
374
|
-
interface GenericHttpResponseSseResponse {
|
|
375
|
-
data: GenericHttpResponseSseResponseData;
|
|
376
|
-
}
|
|
377
|
-
type GenericHttpResponseStakingPositionDtoDataLastUnstakedAt = Date | null;
|
|
378
|
-
/**
|
|
379
|
-
* @minimum 0
|
|
380
|
-
*/
|
|
381
|
-
type GenericHttpResponseStakingPositionDtoDataRank = number | null;
|
|
382
|
-
type GenericHttpResponseStakingPositionDtoDataWithdrawAvailableAt = Date | null;
|
|
383
|
-
type GenericHttpResponseStakingPositionDtoData = {
|
|
384
|
-
/** Solana public key (base58) */
|
|
385
|
-
address: string;
|
|
386
|
-
claimedReward: TokenAmountWithUsd;
|
|
387
|
-
lastUnstakedAt?: GenericHttpResponseStakingPositionDtoDataLastUnstakedAt;
|
|
388
|
-
/** Solana public key (base58) */
|
|
389
|
-
owner: string;
|
|
390
|
-
/** @minimum 0 */
|
|
391
|
-
rank?: GenericHttpResponseStakingPositionDtoDataRank;
|
|
392
|
-
staked: TokenAmountWithUsd;
|
|
393
|
-
unclaimedReward: TokenAmountWithUsd;
|
|
394
|
-
unstaked: TokenAmountWithUsd;
|
|
395
|
-
vesting: VestingDto;
|
|
396
|
-
withdrawAvailableAt?: GenericHttpResponseStakingPositionDtoDataWithdrawAvailableAt;
|
|
397
|
-
};
|
|
398
|
-
interface GenericHttpResponseStakingPositionDto {
|
|
399
|
-
data: GenericHttpResponseStakingPositionDtoData;
|
|
400
|
-
}
|
|
401
|
-
type GenericHttpResponseSwapQuoteByInputDtoData = {
|
|
402
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
403
|
-
estimatedAmountOut: bigint;
|
|
404
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
405
|
-
feeAmount: bigint;
|
|
406
|
-
feeUsd: number;
|
|
407
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
408
|
-
minAmountOut: bigint;
|
|
409
|
-
/** Price impact in percents */
|
|
410
|
-
priceImpact: number;
|
|
411
|
-
};
|
|
412
|
-
interface GenericHttpResponseSwapQuoteByInputDto {
|
|
413
|
-
data: GenericHttpResponseSwapQuoteByInputDtoData;
|
|
414
|
-
}
|
|
415
|
-
type GenericHttpResponseSwapQuoteByOutputDtoData = {
|
|
416
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
417
|
-
estimatedAmountIn: bigint;
|
|
418
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
419
|
-
feeAmount: bigint;
|
|
420
|
-
feeUsd: number;
|
|
421
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
422
|
-
maxAmountIn: bigint;
|
|
423
|
-
/** Price impact in percents */
|
|
424
|
-
priceImpact: number;
|
|
425
|
-
};
|
|
426
|
-
interface GenericHttpResponseSwapQuoteByOutputDto {
|
|
427
|
-
data: GenericHttpResponseSwapQuoteByOutputDtoData;
|
|
428
|
-
}
|
|
429
|
-
type GenericHttpResponseTradableAmountDtoData = {
|
|
430
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
431
|
-
amount: bigint;
|
|
432
|
-
usd: number;
|
|
433
|
-
};
|
|
434
|
-
interface GenericHttpResponseTradableAmountDto {
|
|
435
|
-
data: GenericHttpResponseTradableAmountDtoData;
|
|
436
|
-
}
|
|
437
|
-
type GenericHttpResponseTreasuryDtoData = {
|
|
438
|
-
/** Solana public key (base58) */
|
|
439
|
-
address: string;
|
|
440
|
-
apy: number;
|
|
441
|
-
isStakingEnabled: boolean;
|
|
442
|
-
isUnstakingEnabled: boolean;
|
|
443
|
-
isWithdrawEnabled: boolean;
|
|
444
|
-
/** Solana public key (base58) */
|
|
445
|
-
rewardTokenMint: string;
|
|
446
|
-
/** Solana public key (base58) */
|
|
447
|
-
stakedTokenMint: string;
|
|
448
|
-
totalReward: TokenAmountWithUsd;
|
|
449
|
-
totalStaked: TokenAmountWithUsd;
|
|
450
|
-
/** @minimum 0 */
|
|
451
|
-
uniqueStakers: number;
|
|
452
|
-
/**
|
|
453
|
-
* The minimum required interval in seconds between the last staking and a possible withdrawal.
|
|
454
|
-
* @minimum 0
|
|
455
|
-
*/
|
|
456
|
-
unstakeCooldownSeconds: number;
|
|
457
|
-
};
|
|
458
|
-
interface GenericHttpResponseTreasuryDto {
|
|
459
|
-
data: GenericHttpResponseTreasuryDtoData;
|
|
460
|
-
}
|
|
461
|
-
type GenericHttpResponseTunaSpotPositionDtoDataClosedAt = Date | null;
|
|
462
|
-
type GenericHttpResponseTunaSpotPositionDtoData = {
|
|
463
|
-
/** Solana public key (base58) */
|
|
464
|
-
address: string;
|
|
465
|
-
/** Solana public key (base58) */
|
|
466
|
-
authority: string;
|
|
467
|
-
closedAt?: GenericHttpResponseTunaSpotPositionDtoDataClosedAt;
|
|
468
|
-
collateralToken: TunaPositionPoolToken;
|
|
469
|
-
currentDebt: TokenAmountWithUsd;
|
|
470
|
-
depositedCollateral: TokenAmountWithUsd;
|
|
471
|
-
entryPrice: number;
|
|
472
|
-
initialDebt: TokenAmountWithUsd;
|
|
473
|
-
leverage: number;
|
|
474
|
-
liquidationPrice: number;
|
|
475
|
-
lowerLimitOrderPrice: number;
|
|
476
|
-
marketMaker: TunaPositionMarketMaker;
|
|
477
|
-
maxLeverage: number;
|
|
478
|
-
openedAt: Date;
|
|
479
|
-
pnlUsd: TunaPositionUsdPnl;
|
|
480
|
-
pool: PoolDto;
|
|
481
|
-
positionToken: TunaPositionPoolToken;
|
|
482
|
-
state: TunaSpotPositionDtoState;
|
|
483
|
-
total: TokenAmountWithUsd;
|
|
484
|
-
upperLimitOrderPrice: number;
|
|
485
|
-
/** @minimum 0 */
|
|
486
|
-
version: number;
|
|
487
|
-
};
|
|
488
|
-
interface GenericHttpResponseTunaSpotPositionDto {
|
|
489
|
-
data: GenericHttpResponseTunaSpotPositionDtoData;
|
|
490
|
-
}
|
|
491
|
-
type GenericHttpResponseVaultDtoData = {
|
|
492
|
-
/** Solana public key (base58) */
|
|
493
|
-
address: string;
|
|
494
|
-
borrowApy: number;
|
|
495
|
-
borrowedFunds: TokenAmountWithUsd;
|
|
496
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
497
|
-
borrowedShares: bigint;
|
|
498
|
-
depositedFunds: TokenAmountWithUsd;
|
|
499
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
500
|
-
depositedShares: bigint;
|
|
501
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
502
|
-
interestRate: bigint;
|
|
503
|
-
/** Solana public key (base58) */
|
|
504
|
-
mint: string;
|
|
505
|
-
/** Solana public key (base58) */
|
|
506
|
-
pythOracleFeedId: string;
|
|
507
|
-
/** Solana public key (base58) */
|
|
508
|
-
pythOraclePriceUpdate: string;
|
|
509
|
-
supplyApy: number;
|
|
510
|
-
supplyLimit: TokenAmountWithUsd;
|
|
511
|
-
utilization: number;
|
|
512
|
-
};
|
|
513
|
-
interface GenericHttpResponseVaultDto {
|
|
514
|
-
data: GenericHttpResponseVaultDtoData;
|
|
515
|
-
}
|
|
516
|
-
type GenericHttpResponseVecFeesStatsGroupDtoDataItem = {
|
|
517
|
-
addLiquidityFees: number;
|
|
518
|
-
failedNetworkFees: number;
|
|
519
|
-
jitoLimitOrderFees: number;
|
|
520
|
-
jitoLiquidationFees: number;
|
|
521
|
-
jitoRebalanceFees: number;
|
|
522
|
-
jitoYieldCompoundingFees: number;
|
|
523
|
-
limitOrderFees: number;
|
|
524
|
-
liquidationFees: number;
|
|
525
|
-
processedNetworkFees: number;
|
|
526
|
-
rebalanceFees: number;
|
|
527
|
-
runningAddLiquidityFees: number;
|
|
528
|
-
runningFailedNetworkFees: number;
|
|
529
|
-
runningJitoLimitOrderFees: number;
|
|
530
|
-
runningJitoLiquidationFees: number;
|
|
531
|
-
runningJitoRebalanceFees: number;
|
|
532
|
-
runningJitoYieldCompoundingFees: number;
|
|
533
|
-
runningLimitOrderFees: number;
|
|
534
|
-
runningLiquidationFees: number;
|
|
535
|
-
runningProcessedNetworkFees: number;
|
|
536
|
-
runningRebalanceFees: number;
|
|
537
|
-
runningTotalCollectedFees: number;
|
|
538
|
-
runningTotalFusionFees: number;
|
|
539
|
-
runningTotalLimitOrdersNetworkFees: number;
|
|
540
|
-
runningTotalLiquidationsNetworkFees: number;
|
|
541
|
-
runningTotalNetworkFees: number;
|
|
542
|
-
runningTotalYieldCompoundingNetworkFees: number;
|
|
543
|
-
runningYieldCompoundingFees: number;
|
|
544
|
-
time: Date;
|
|
545
|
-
totalCollectedFees: number;
|
|
546
|
-
totalFusionFees: number;
|
|
547
|
-
totalLimitOrdersNetworkFees: number;
|
|
548
|
-
totalLiquidationsNetworkFees: number;
|
|
549
|
-
totalNetworkFees: number;
|
|
550
|
-
totalRebalanceNetworkFees: number;
|
|
551
|
-
totalYieldCompoundingNetworkFees: number;
|
|
552
|
-
yieldCompoundingFees: number;
|
|
553
|
-
};
|
|
554
|
-
interface GenericHttpResponseVecFeesStatsGroupDto {
|
|
555
|
-
data: GenericHttpResponseVecFeesStatsGroupDtoDataItem[];
|
|
556
|
-
}
|
|
557
|
-
type GenericHttpResponseVecFusionFeesStatsGroupDtoDataItem = {
|
|
558
|
-
/** Solana public key (base58) */
|
|
559
|
-
pool: string;
|
|
560
|
-
runningTotalCollectedFees: number;
|
|
561
|
-
time: Date;
|
|
562
|
-
totalCollectedFees: number;
|
|
563
|
-
};
|
|
564
|
-
interface GenericHttpResponseVecFusionFeesStatsGroupDto {
|
|
565
|
-
data: GenericHttpResponseVecFusionFeesStatsGroupDtoDataItem[];
|
|
566
|
-
}
|
|
567
|
-
type GenericHttpResponseVecLendingPositionDtoDataItem = {
|
|
568
|
-
/** Solana public key (base58) */
|
|
569
|
-
address: string;
|
|
570
|
-
/** Solana public key (base58) */
|
|
571
|
-
authority: string;
|
|
572
|
-
earned: TokenAmountWithUsd;
|
|
573
|
-
funds: TokenAmountWithUsd;
|
|
574
|
-
/** Solana public key (base58) */
|
|
575
|
-
mint: string;
|
|
576
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
577
|
-
shares: bigint;
|
|
578
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
579
|
-
updatedAtSlot: bigint;
|
|
580
|
-
/** Solana public key (base58) */
|
|
581
|
-
vault: string;
|
|
582
|
-
};
|
|
583
|
-
interface GenericHttpResponseVecLendingPositionDto {
|
|
584
|
-
data: GenericHttpResponseVecLendingPositionDtoDataItem[];
|
|
585
|
-
}
|
|
586
|
-
type GenericHttpResponseVecLimitOrderDtoDataItemCloseTxSignature = string | null;
|
|
587
|
-
type GenericHttpResponseVecLimitOrderDtoDataItemClosedAt = Date | null;
|
|
588
|
-
type GenericHttpResponseVecLimitOrderDtoDataItem = {
|
|
589
|
-
aToB: boolean;
|
|
590
|
-
/** Solana public key (base58) */
|
|
591
|
-
address: string;
|
|
592
|
-
amountIn: TokenAmountWithUsd;
|
|
593
|
-
amountOut: TokenAmountWithUsd;
|
|
594
|
-
/** Solana public key (base58) */
|
|
595
|
-
authority: string;
|
|
596
|
-
closeTxSignature?: GenericHttpResponseVecLimitOrderDtoDataItemCloseTxSignature;
|
|
597
|
-
closedAt?: GenericHttpResponseVecLimitOrderDtoDataItemClosedAt;
|
|
598
|
-
fillRatio: number;
|
|
599
|
-
id: string;
|
|
600
|
-
openTxSignature: string;
|
|
601
|
-
openedAt: Date;
|
|
602
|
-
/** Solana public key (base58) */
|
|
603
|
-
orderMint: string;
|
|
604
|
-
pool: PoolDto;
|
|
605
|
-
state: LimitOrderStatus;
|
|
606
|
-
tickIndex: number;
|
|
607
|
-
};
|
|
608
|
-
interface GenericHttpResponseVecLimitOrderDto {
|
|
609
|
-
data: GenericHttpResponseVecLimitOrderDtoDataItem[];
|
|
610
|
-
}
|
|
611
|
-
type GenericHttpResponseVecMarketDtoDataItem = {
|
|
612
|
-
/** Solana public key (base58) */
|
|
613
|
-
address: string;
|
|
614
|
-
/** Solana public key (base58) */
|
|
615
|
-
addressLookupTable: string;
|
|
616
|
-
borrowLimitA: TokenAmountWithUsd;
|
|
617
|
-
borrowLimitB: TokenAmountWithUsd;
|
|
618
|
-
borrowedFundsA: TokenAmountWithUsd;
|
|
619
|
-
borrowedFundsB: TokenAmountWithUsd;
|
|
620
|
-
createdAt: Date;
|
|
621
|
-
disabled: boolean;
|
|
622
|
-
/** @minimum 0 */
|
|
623
|
-
liquidationFee: number;
|
|
624
|
-
/** @minimum 0 */
|
|
625
|
-
liquidationThreshold: number;
|
|
626
|
-
/** @minimum 0 */
|
|
627
|
-
maxLeverage: number;
|
|
628
|
-
maxSpotPositionSizeA: TokenAmountWithUsd;
|
|
629
|
-
maxSpotPositionSizeB: TokenAmountWithUsd;
|
|
630
|
-
/** @minimum 0 */
|
|
631
|
-
maxSwapSlippage: number;
|
|
632
|
-
/** @minimum 0 */
|
|
633
|
-
oraclePriceDeviationThreshold: number;
|
|
634
|
-
pool: PoolDto;
|
|
635
|
-
/** @minimum 0 */
|
|
636
|
-
protocolFee: number;
|
|
637
|
-
/** @minimum 0 */
|
|
638
|
-
protocolFeeOnCollateral: number;
|
|
639
|
-
/** @minimum 0 */
|
|
640
|
-
rebalanceProtocolFee: number;
|
|
641
|
-
};
|
|
642
|
-
interface GenericHttpResponseVecMarketDto {
|
|
643
|
-
data: GenericHttpResponseVecMarketDtoDataItem[];
|
|
644
|
-
}
|
|
645
|
-
type GenericHttpResponseVecMintDtoDataItem = {
|
|
646
|
-
/** Solana public key (base58) */
|
|
647
|
-
address: string;
|
|
648
|
-
decimals: number;
|
|
649
|
-
logo: string;
|
|
650
|
-
name: string;
|
|
651
|
-
symbol: string;
|
|
652
|
-
};
|
|
653
|
-
interface GenericHttpResponseVecMintDto {
|
|
654
|
-
data: GenericHttpResponseVecMintDtoDataItem[];
|
|
655
|
-
}
|
|
656
|
-
type GenericHttpResponseVecOraclePriceDtoDataItem = {
|
|
657
|
-
decimals: number;
|
|
658
|
-
/** Solana public key (base58) */
|
|
659
|
-
mint: string;
|
|
660
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
661
|
-
price: bigint;
|
|
662
|
-
time: Date;
|
|
663
|
-
};
|
|
664
|
-
interface GenericHttpResponseVecOraclePriceDto {
|
|
665
|
-
data: GenericHttpResponseVecOraclePriceDtoDataItem[];
|
|
666
|
-
}
|
|
667
|
-
type GenericHttpResponseVecOrderHistoryEntryDtoDataItemBaseTokenConsumedAmount = null | TokenAmountWithUsd;
|
|
668
|
-
/**
|
|
669
|
-
* Filled for swaps (spot)
|
|
670
|
-
Flatten transaction instruction index
|
|
671
|
-
*/
|
|
672
|
-
type GenericHttpResponseVecOrderHistoryEntryDtoDataItemIxIndex = number | null;
|
|
673
|
-
type GenericHttpResponseVecOrderHistoryEntryDtoDataItemQuoteTokenFilledAmount = null | TokenAmountWithUsd;
|
|
674
|
-
/**
|
|
675
|
-
* Filled for swaps (spot) and margin positions
|
|
676
|
-
*/
|
|
677
|
-
type GenericHttpResponseVecOrderHistoryEntryDtoDataItemTxSignature = string | null;
|
|
678
|
-
/**
|
|
679
|
-
* A decimal price based on the action.
|
|
680
|
-
For market (swaps + margin) orders, displays average execution price for the order excluding the fee
|
|
681
|
-
*/
|
|
682
|
-
type GenericHttpResponseVecOrderHistoryEntryDtoDataItemUiExecutionPrice = number | null;
|
|
683
|
-
/**
|
|
684
|
-
* A decimal price based on the action.
|
|
685
|
-
Only for limit orders & trigger actions.
|
|
686
|
-
|
|
687
|
-
* For limit order fills - price derived from order tick_index
|
|
688
|
-
* For take profit / stop loss / liquidation - trigger price
|
|
689
|
-
*/
|
|
690
|
-
type GenericHttpResponseVecOrderHistoryEntryDtoDataItemUiPrice = number | null;
|
|
691
|
-
type GenericHttpResponseVecOrderHistoryEntryDtoDataItem = {
|
|
692
|
-
/** Mints (Tokens) Pair direction in pool
|
|
693
|
-
When TRUE - Base token is Mint A, Quote token is Mint B
|
|
694
|
-
WHEN FALSE - Base token is Mint B, Quote token is MInt A */
|
|
695
|
-
aToB: boolean;
|
|
696
|
-
/** Solana public key (base58) */
|
|
697
|
-
authority: string;
|
|
698
|
-
baseToken: TokenAmountWithUsd;
|
|
699
|
-
baseTokenConsumedAmount?: GenericHttpResponseVecOrderHistoryEntryDtoDataItemBaseTokenConsumedAmount;
|
|
700
|
-
id: string;
|
|
701
|
-
isReduceOnly: boolean;
|
|
702
|
-
/** Filled for swaps (spot)
|
|
703
|
-
Flatten transaction instruction index */
|
|
704
|
-
ixIndex?: GenericHttpResponseVecOrderHistoryEntryDtoDataItemIxIndex;
|
|
705
|
-
orderType: OrderHistoryType;
|
|
706
|
-
pool: PoolDto;
|
|
707
|
-
/** Solana public key (base58) */
|
|
708
|
-
positionAddress?: string;
|
|
709
|
-
quoteToken: TokenAmountWithUsd;
|
|
710
|
-
quoteTokenFilledAmount?: GenericHttpResponseVecOrderHistoryEntryDtoDataItemQuoteTokenFilledAmount;
|
|
711
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
712
|
-
slot: bigint;
|
|
713
|
-
status: OrderHistoryStatus;
|
|
714
|
-
/** Block time of slot this entry was create from */
|
|
715
|
-
ts: Date;
|
|
716
|
-
/** Filled for swaps (spot) and margin positions */
|
|
717
|
-
txSignature?: GenericHttpResponseVecOrderHistoryEntryDtoDataItemTxSignature;
|
|
718
|
-
uiDirection: OrderHistoryUIDirection;
|
|
719
|
-
/** A decimal price based on the action.
|
|
720
|
-
For market (swaps + margin) orders, displays average execution price for the order excluding the fee */
|
|
721
|
-
uiExecutionPrice?: GenericHttpResponseVecOrderHistoryEntryDtoDataItemUiExecutionPrice;
|
|
722
|
-
/** A decimal price based on the action.
|
|
723
|
-
Only for limit orders & trigger actions.
|
|
724
|
-
|
|
725
|
-
* For limit order fills - price derived from order tick_index
|
|
726
|
-
* For take profit / stop loss / liquidation - trigger price */
|
|
727
|
-
uiPrice?: GenericHttpResponseVecOrderHistoryEntryDtoDataItemUiPrice;
|
|
728
|
-
};
|
|
729
|
-
interface GenericHttpResponseVecOrderHistoryEntryDto {
|
|
730
|
-
data: GenericHttpResponseVecOrderHistoryEntryDtoDataItem[];
|
|
731
|
-
}
|
|
732
|
-
type GenericHttpResponseVecPoolDtoDataItemOlpFeeRate = number | null;
|
|
733
|
-
type GenericHttpResponseVecPoolDtoDataItemStats = null | PoolStatsDto;
|
|
734
|
-
type GenericHttpResponseVecPoolDtoDataItem = {
|
|
735
|
-
/** Solana public key (base58) */
|
|
736
|
-
address: string;
|
|
737
|
-
/** @minimum 0 */
|
|
738
|
-
feeRate: number;
|
|
739
|
-
/** Unsigned 128-bit integer encoded as a decimal string */
|
|
740
|
-
liquidity: bigint;
|
|
741
|
-
mintA: MintDto;
|
|
742
|
-
mintB: MintDto;
|
|
743
|
-
olpFeeRate?: GenericHttpResponseVecPoolDtoDataItemOlpFeeRate;
|
|
744
|
-
price: number;
|
|
745
|
-
/** @minimum 0 */
|
|
746
|
-
protocolFeeRate: number;
|
|
747
|
-
provider: PoolProvider;
|
|
748
|
-
/** Unsigned 128-bit integer encoded as a decimal string */
|
|
749
|
-
sqrtPrice: bigint;
|
|
750
|
-
stats?: GenericHttpResponseVecPoolDtoDataItemStats;
|
|
751
|
-
tickCurrentIndex: number;
|
|
752
|
-
/** @minimum 0 */
|
|
753
|
-
tickSpacing: number;
|
|
754
|
-
/** Solana public key (base58) */
|
|
755
|
-
tokenAVault: string;
|
|
756
|
-
/** Solana public key (base58) */
|
|
757
|
-
tokenBVault: string;
|
|
758
|
-
};
|
|
759
|
-
interface GenericHttpResponseVecPoolDto {
|
|
760
|
-
data: GenericHttpResponseVecPoolDtoDataItem[];
|
|
761
|
-
}
|
|
762
|
-
type GenericHttpResponseVecPoolPriceCandleDtoDataItem = {
|
|
763
|
-
close: number;
|
|
764
|
-
high: number;
|
|
765
|
-
low: number;
|
|
766
|
-
open: number;
|
|
767
|
-
time: number;
|
|
768
|
-
volume: number;
|
|
769
|
-
};
|
|
770
|
-
interface GenericHttpResponseVecPoolPriceCandleDto {
|
|
771
|
-
data: GenericHttpResponseVecPoolPriceCandleDtoDataItem[];
|
|
772
|
-
}
|
|
773
|
-
type GenericHttpResponseVecPoolSwapDtoDataItem = {
|
|
774
|
-
aToB: boolean;
|
|
775
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
776
|
-
amountIn: bigint;
|
|
777
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
778
|
-
amountOut: bigint;
|
|
779
|
-
amountUsd: number;
|
|
780
|
-
id: string;
|
|
781
|
-
/** Solana public key (base58) */
|
|
782
|
-
pool: string;
|
|
783
|
-
time: Date;
|
|
784
|
-
txSignature: string;
|
|
785
|
-
};
|
|
786
|
-
interface GenericHttpResponseVecPoolSwapDto {
|
|
787
|
-
data: GenericHttpResponseVecPoolSwapDtoDataItem[];
|
|
788
|
-
}
|
|
789
|
-
type GenericHttpResponseVecStakingDepositsStatsDtoDataItem = {
|
|
790
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
791
|
-
runningTotalDepositsSol: bigint;
|
|
792
|
-
runningTotalDepositsUsd: number;
|
|
793
|
-
time: Date;
|
|
794
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
795
|
-
totalDepositsSol: bigint;
|
|
796
|
-
totalDepositsUsd: number;
|
|
797
|
-
};
|
|
798
|
-
interface GenericHttpResponseVecStakingDepositsStatsDto {
|
|
799
|
-
data: GenericHttpResponseVecStakingDepositsStatsDtoDataItem[];
|
|
800
|
-
}
|
|
801
|
-
type GenericHttpResponseVecStakingPositionActionDtoDataItem = {
|
|
802
|
-
action: StakingPositionActionType;
|
|
803
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
804
|
-
amount: bigint;
|
|
805
|
-
/** Solana public key (base58) */
|
|
806
|
-
position: string;
|
|
807
|
-
time: Date;
|
|
808
|
-
txSignature: string;
|
|
809
|
-
};
|
|
810
|
-
interface GenericHttpResponseVecStakingPositionActionDto {
|
|
811
|
-
data: GenericHttpResponseVecStakingPositionActionDtoDataItem[];
|
|
812
|
-
}
|
|
813
|
-
/**
|
|
814
|
-
* Filled for swaps (spot)
|
|
815
|
-
Flatten transaction instruction index
|
|
816
|
-
*/
|
|
817
|
-
type GenericHttpResponseVecTradeHistoryEntryDtoDataItemIxIndex = number | null;
|
|
818
|
-
type GenericHttpResponseVecTradeHistoryEntryDtoDataItemPnl = null | TradeHistoryEntryPnlUsd;
|
|
819
|
-
/**
|
|
820
|
-
* Filled for swaps (spot) and margin positions
|
|
821
|
-
*/
|
|
822
|
-
type GenericHttpResponseVecTradeHistoryEntryDtoDataItemTxSignature = string | null;
|
|
823
|
-
type GenericHttpResponseVecTradeHistoryEntryDtoDataItem = {
|
|
824
|
-
/** Mints (Tokens) Pair direction in pool
|
|
825
|
-
When TRUE - Base token is Mint A, Quote token is Mint B
|
|
826
|
-
WHEN FALSE - Base token is Mint B, Quote token is MInt A */
|
|
827
|
-
aToB: boolean;
|
|
828
|
-
action: TradeHistoryAction;
|
|
829
|
-
/** Solana public key (base58) */
|
|
830
|
-
authority: string;
|
|
831
|
-
baseToken: TokenAmountWithUsd;
|
|
832
|
-
/** Positive for taker trades (swaps + spot) and negative for maker trades (limit orders)
|
|
833
|
-
Measured in quote tokens for limit orders */
|
|
834
|
-
fee: FeeAmountWithUsd;
|
|
835
|
-
id: string;
|
|
836
|
-
/** Filled for swaps (spot)
|
|
837
|
-
Flatten transaction instruction index */
|
|
838
|
-
ixIndex?: GenericHttpResponseVecTradeHistoryEntryDtoDataItemIxIndex;
|
|
839
|
-
pnl?: GenericHttpResponseVecTradeHistoryEntryDtoDataItemPnl;
|
|
840
|
-
pool: PoolDto;
|
|
841
|
-
/** Solana public key (base58) */
|
|
842
|
-
positionAddress?: string;
|
|
843
|
-
quoteToken: TokenAmountWithUsd;
|
|
844
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
845
|
-
slot: bigint;
|
|
846
|
-
ts: Date;
|
|
847
|
-
/** Filled for swaps (spot) and margin positions */
|
|
848
|
-
txSignature?: GenericHttpResponseVecTradeHistoryEntryDtoDataItemTxSignature;
|
|
849
|
-
uiDirection: TradeHistoryUIDirection;
|
|
850
|
-
/** A decimal price based on the action.
|
|
851
|
-
|
|
852
|
-
* For spot and margin positions - average execution price excluding the fee.
|
|
853
|
-
* For limit order fills - price derived from order tick_index. */
|
|
854
|
-
uiPrice: number;
|
|
855
|
-
};
|
|
856
|
-
interface GenericHttpResponseVecTradeHistoryEntryDto {
|
|
857
|
-
data: GenericHttpResponseVecTradeHistoryEntryDtoDataItem[];
|
|
858
|
-
}
|
|
859
|
-
type GenericHttpResponseVecTunaLpPositionActionDtoDataItem = {
|
|
860
|
-
action: TunaLpPositionsActionType;
|
|
861
|
-
data: TunaLpPositionActionComposite;
|
|
862
|
-
txSignature: string;
|
|
863
|
-
txTimestamp: Date;
|
|
864
|
-
};
|
|
865
|
-
interface GenericHttpResponseVecTunaLpPositionActionDto {
|
|
866
|
-
data: GenericHttpResponseVecTunaLpPositionActionDtoDataItem[];
|
|
867
|
-
}
|
|
868
|
-
type GenericHttpResponseVecTunaLpPositionDtoDataItemClosedAt = Date | null;
|
|
869
|
-
type GenericHttpResponseVecTunaLpPositionDtoDataItemExitPrice = number | null;
|
|
870
|
-
type GenericHttpResponseVecTunaLpPositionDtoDataItemLowerLimitOrder = number | null;
|
|
871
|
-
type GenericHttpResponseVecTunaLpPositionDtoDataItemUpperLimitOrder = number | null;
|
|
872
|
-
type GenericHttpResponseVecTunaLpPositionDtoDataItem = {
|
|
873
|
-
/** Solana public key (base58) */
|
|
874
|
-
authority: string;
|
|
875
|
-
closedAt?: GenericHttpResponseVecTunaLpPositionDtoDataItemClosedAt;
|
|
876
|
-
closedPnlSumUsd: number;
|
|
877
|
-
entryPrice: number;
|
|
878
|
-
exitPrice?: GenericHttpResponseVecTunaLpPositionDtoDataItemExitPrice;
|
|
879
|
-
feesSumUsd: number;
|
|
880
|
-
initialLeverage: number;
|
|
881
|
-
leverage: number;
|
|
882
|
-
lowerLimitOrder?: GenericHttpResponseVecTunaLpPositionDtoDataItemLowerLimitOrder;
|
|
883
|
-
lowerPrice: number;
|
|
884
|
-
marketMaker: PoolProvider;
|
|
885
|
-
openedAt: Date;
|
|
886
|
-
pool: PoolDto;
|
|
887
|
-
/** Solana public key (base58) */
|
|
888
|
-
positionAddress: string;
|
|
889
|
-
state: TunaPositionDtoState;
|
|
890
|
-
totalDepositUsd: number;
|
|
891
|
-
totalValueUsd: number;
|
|
892
|
-
totalWithdrawnUsd: number;
|
|
893
|
-
updatedAt: Date;
|
|
894
|
-
upperLimitOrder?: GenericHttpResponseVecTunaLpPositionDtoDataItemUpperLimitOrder;
|
|
895
|
-
upperPrice: number;
|
|
896
|
-
};
|
|
897
|
-
interface GenericHttpResponseVecTunaLpPositionDto {
|
|
898
|
-
data: GenericHttpResponseVecTunaLpPositionDtoDataItem[];
|
|
899
|
-
}
|
|
900
|
-
type GenericHttpResponseVecTunaPositionDtoDataItemClosedAt = Date | null;
|
|
901
|
-
type GenericHttpResponseVecTunaPositionDtoDataItem = {
|
|
902
|
-
/** Solana public key (base58) */
|
|
903
|
-
address: string;
|
|
904
|
-
/** Solana public key (base58) */
|
|
905
|
-
authority: string;
|
|
906
|
-
closedAt?: GenericHttpResponseVecTunaPositionDtoDataItemClosedAt;
|
|
907
|
-
compoundedYieldA: TokenAmountWithUsd;
|
|
908
|
-
compoundedYieldB: TokenAmountWithUsd;
|
|
909
|
-
currentDebtA: TokenAmountWithUsd;
|
|
910
|
-
currentDebtB: TokenAmountWithUsd;
|
|
911
|
-
depositedCollateralA: TunaPositionTokenDepositedCollateral;
|
|
912
|
-
depositedCollateralB: TunaPositionTokenDepositedCollateral;
|
|
913
|
-
entryPrice: number;
|
|
914
|
-
flags: TunaLpPositionFlags;
|
|
915
|
-
initialDebtA: TokenAmountWithUsd;
|
|
916
|
-
initialDebtB: TokenAmountWithUsd;
|
|
917
|
-
leftoversA: TokenAmountWithUsd;
|
|
918
|
-
leftoversB: TokenAmountWithUsd;
|
|
919
|
-
leverage: number;
|
|
920
|
-
liquidationPriceLower: number;
|
|
921
|
-
liquidationPriceUpper: number;
|
|
922
|
-
/** Unsigned 128-bit integer encoded as a decimal string */
|
|
923
|
-
liquidity: bigint;
|
|
924
|
-
lowerLimitOrderPrice: number;
|
|
925
|
-
marketMaker: TunaPositionMarketMaker;
|
|
926
|
-
maxLeverage: number;
|
|
927
|
-
openedAt: Date;
|
|
928
|
-
/** Total PnL denominated/expressed in token A */
|
|
929
|
-
pnlA: TunaPositionTokenPnl;
|
|
930
|
-
/** Total PnL denominated/expressed in token B */
|
|
931
|
-
pnlB: TunaPositionTokenPnl;
|
|
932
|
-
pnlUsd: TunaPositionUsdPnl;
|
|
933
|
-
pool: PoolDto;
|
|
934
|
-
/** Solana public key (base58) */
|
|
935
|
-
positionMint: string;
|
|
936
|
-
state: TunaPositionDtoState;
|
|
937
|
-
tickLowerIndex: number;
|
|
938
|
-
tickUpperIndex: number;
|
|
939
|
-
totalA: TokenAmountWithUsd;
|
|
940
|
-
totalB: TokenAmountWithUsd;
|
|
941
|
-
upperLimitOrderPrice: number;
|
|
942
|
-
/** @minimum 0 */
|
|
943
|
-
version: number;
|
|
944
|
-
yieldA: TokenAmountWithUsd;
|
|
945
|
-
yieldB: TokenAmountWithUsd;
|
|
946
|
-
};
|
|
947
|
-
interface GenericHttpResponseVecTunaPositionDto {
|
|
948
|
-
data: GenericHttpResponseVecTunaPositionDtoDataItem[];
|
|
949
|
-
}
|
|
950
|
-
type GenericHttpResponseVecTunaSpotPositionDtoDataItemClosedAt = Date | null;
|
|
951
|
-
type GenericHttpResponseVecTunaSpotPositionDtoDataItem = {
|
|
952
|
-
/** Solana public key (base58) */
|
|
953
|
-
address: string;
|
|
954
|
-
/** Solana public key (base58) */
|
|
955
|
-
authority: string;
|
|
956
|
-
closedAt?: GenericHttpResponseVecTunaSpotPositionDtoDataItemClosedAt;
|
|
957
|
-
collateralToken: TunaPositionPoolToken;
|
|
958
|
-
currentDebt: TokenAmountWithUsd;
|
|
959
|
-
depositedCollateral: TokenAmountWithUsd;
|
|
960
|
-
entryPrice: number;
|
|
961
|
-
initialDebt: TokenAmountWithUsd;
|
|
962
|
-
leverage: number;
|
|
963
|
-
liquidationPrice: number;
|
|
964
|
-
lowerLimitOrderPrice: number;
|
|
965
|
-
marketMaker: TunaPositionMarketMaker;
|
|
966
|
-
maxLeverage: number;
|
|
967
|
-
openedAt: Date;
|
|
968
|
-
pnlUsd: TunaPositionUsdPnl;
|
|
969
|
-
pool: PoolDto;
|
|
970
|
-
positionToken: TunaPositionPoolToken;
|
|
971
|
-
state: TunaSpotPositionDtoState;
|
|
972
|
-
total: TokenAmountWithUsd;
|
|
973
|
-
upperLimitOrderPrice: number;
|
|
974
|
-
/** @minimum 0 */
|
|
975
|
-
version: number;
|
|
976
|
-
};
|
|
977
|
-
interface GenericHttpResponseVecTunaSpotPositionDto {
|
|
978
|
-
data: GenericHttpResponseVecTunaSpotPositionDtoDataItem[];
|
|
16
|
+
estimatedWithdrawnCollateral: bigint;
|
|
17
|
+
/** Price impact in percents (100% = 1.0) */
|
|
18
|
+
priceImpact: number;
|
|
19
|
+
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
20
|
+
requiredSwapAmount: bigint;
|
|
979
21
|
}
|
|
980
|
-
|
|
981
|
-
/**
|
|
982
|
-
|
|
983
|
-
borrowApy: number;
|
|
984
|
-
borrowedFunds: TokenAmountWithUsd;
|
|
22
|
+
interface DecreaseSpotPositionQuoteDto {
|
|
23
|
+
/** Position decrease percentage */
|
|
24
|
+
decreasePercent: number;
|
|
985
25
|
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
986
|
-
|
|
987
|
-
depositedFunds: TokenAmountWithUsd;
|
|
26
|
+
estimatedAmount: bigint;
|
|
988
27
|
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
989
|
-
|
|
28
|
+
estimatedWithdrawnCollateral: bigint;
|
|
29
|
+
/** Liquidation price */
|
|
30
|
+
liquidationPrice: number;
|
|
31
|
+
/** Price impact in percents (100% = 1.0) */
|
|
32
|
+
priceImpact: number;
|
|
990
33
|
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
991
|
-
|
|
992
|
-
/** Solana public key (base58) */
|
|
993
|
-
mint: string;
|
|
994
|
-
/** Solana public key (base58) */
|
|
995
|
-
pythOracleFeedId: string;
|
|
996
|
-
/** Solana public key (base58) */
|
|
997
|
-
pythOraclePriceUpdate: string;
|
|
998
|
-
supplyApy: number;
|
|
999
|
-
supplyLimit: TokenAmountWithUsd;
|
|
1000
|
-
utilization: number;
|
|
1001
|
-
};
|
|
1002
|
-
interface GenericHttpResponseVecVaultDto {
|
|
1003
|
-
data: GenericHttpResponseVecVaultDtoDataItem[];
|
|
34
|
+
requiredSwapAmount: bigint;
|
|
1004
35
|
}
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
36
|
+
interface FeeAmountWithUsd {
|
|
37
|
+
/** Signed 64-bit integer encoded as a decimal string */
|
|
38
|
+
amount: bigint;
|
|
39
|
+
usd: number;
|
|
40
|
+
}
|
|
41
|
+
interface FeesStatsGroupDto {
|
|
42
|
+
addLiquidityFees: number;
|
|
43
|
+
failedNetworkFees: number;
|
|
44
|
+
jitoLimitOrderFees: number;
|
|
45
|
+
jitoLiquidationFees: number;
|
|
46
|
+
jitoRebalanceFees: number;
|
|
47
|
+
jitoYieldCompoundingFees: number;
|
|
48
|
+
limitOrderFees: number;
|
|
49
|
+
liquidationFees: number;
|
|
50
|
+
processedNetworkFees: number;
|
|
51
|
+
rebalanceFees: number;
|
|
52
|
+
runningAddLiquidityFees: number;
|
|
53
|
+
runningFailedNetworkFees: number;
|
|
54
|
+
runningJitoLimitOrderFees: number;
|
|
55
|
+
runningJitoLiquidationFees: number;
|
|
56
|
+
runningJitoRebalanceFees: number;
|
|
57
|
+
runningJitoYieldCompoundingFees: number;
|
|
58
|
+
runningLimitOrderFees: number;
|
|
59
|
+
runningLiquidationFees: number;
|
|
60
|
+
runningProcessedNetworkFees: number;
|
|
61
|
+
runningRebalanceFees: number;
|
|
62
|
+
runningTotalCollectedFees: number;
|
|
63
|
+
runningTotalFusionFees: number;
|
|
64
|
+
runningTotalLimitOrdersNetworkFees: number;
|
|
65
|
+
runningTotalLiquidationsNetworkFees: number;
|
|
66
|
+
runningTotalNetworkFees: number;
|
|
67
|
+
runningTotalYieldCompoundingNetworkFees: number;
|
|
68
|
+
runningYieldCompoundingFees: number;
|
|
69
|
+
time: Date;
|
|
70
|
+
totalCollectedFees: number;
|
|
71
|
+
totalFusionFees: number;
|
|
72
|
+
totalLimitOrdersNetworkFees: number;
|
|
73
|
+
totalLiquidationsNetworkFees: number;
|
|
74
|
+
totalNetworkFees: number;
|
|
75
|
+
totalRebalanceNetworkFees: number;
|
|
76
|
+
totalYieldCompoundingNetworkFees: number;
|
|
77
|
+
yieldCompoundingFees: number;
|
|
78
|
+
}
|
|
79
|
+
interface FieldError {
|
|
80
|
+
/** Field name in request. */
|
|
81
|
+
field: string;
|
|
82
|
+
/** Validation error message. */
|
|
83
|
+
message: string;
|
|
1014
84
|
}
|
|
1015
|
-
interface
|
|
1016
|
-
|
|
85
|
+
interface FusionFeesStatsGroupDto {
|
|
86
|
+
/** Solana public key (base58) */
|
|
87
|
+
pool: string;
|
|
88
|
+
runningTotalCollectedFees: number;
|
|
89
|
+
time: Date;
|
|
90
|
+
totalCollectedFees: number;
|
|
1017
91
|
}
|
|
1018
92
|
type GetLimitOrderError404ErrorCode = typeof GetLimitOrderError404ErrorCode[keyof typeof GetLimitOrderError404ErrorCode];
|
|
1019
93
|
declare const GetLimitOrderError404ErrorCode: {
|
|
@@ -1029,16 +103,17 @@ declare const GetLimitOrderError500ErrorCode: {
|
|
|
1029
103
|
interface GetLimitOrderError500Error {
|
|
1030
104
|
code: GetLimitOrderError500ErrorCode;
|
|
1031
105
|
}
|
|
1032
|
-
interface HashMap {
|
|
1033
|
-
[key: string]: {
|
|
1034
|
-
feesUsd: number;
|
|
1035
|
-
priceChange: number;
|
|
1036
|
-
volumeUsd: number;
|
|
1037
|
-
};
|
|
1038
|
-
}
|
|
1039
106
|
interface HttpStatusData {
|
|
1040
107
|
status: string;
|
|
1041
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* Signed 128-bit integer represented as decimal string in JSON and OpenAPI.
|
|
111
|
+
*/
|
|
112
|
+
type I128Dto = bigint;
|
|
113
|
+
/**
|
|
114
|
+
* Signed 64-bit integer represented as decimal string in JSON and OpenAPI.
|
|
115
|
+
*/
|
|
116
|
+
type I64Dto = bigint;
|
|
1042
117
|
interface IncreaseSpotPositionQuoteDto {
|
|
1043
118
|
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
1044
119
|
borrowAmount: bigint;
|
|
@@ -1066,6 +141,21 @@ declare const InternalErrorCodeErrorBodyCode: {
|
|
|
1066
141
|
interface InternalErrorCodeErrorBody {
|
|
1067
142
|
code: InternalErrorCodeErrorBodyCode;
|
|
1068
143
|
}
|
|
144
|
+
type LeaderboardError400BadRequestCode = typeof LeaderboardError400BadRequestCode[keyof typeof LeaderboardError400BadRequestCode];
|
|
145
|
+
declare const LeaderboardError400BadRequestCode: {
|
|
146
|
+
readonly badRequest: "bad_request";
|
|
147
|
+
};
|
|
148
|
+
interface LeaderboardError400BadRequest {
|
|
149
|
+
code: LeaderboardError400BadRequestCode;
|
|
150
|
+
}
|
|
151
|
+
type LeaderboardError400Error = LeaderboardError400BadRequest | BadRequestErrorCodeErrorBody;
|
|
152
|
+
type LeaderboardError500ErrorCode = typeof LeaderboardError500ErrorCode[keyof typeof LeaderboardError500ErrorCode];
|
|
153
|
+
declare const LeaderboardError500ErrorCode: {
|
|
154
|
+
readonly internalError: "internal_error";
|
|
155
|
+
};
|
|
156
|
+
interface LeaderboardError500Error {
|
|
157
|
+
code: LeaderboardError500ErrorCode;
|
|
158
|
+
}
|
|
1069
159
|
interface LeaderboardItemDto {
|
|
1070
160
|
/** Solana public key (base58) */
|
|
1071
161
|
authority: string;
|
|
@@ -1147,6 +237,21 @@ declare const LimitOrderStatus: {
|
|
|
1147
237
|
readonly complete: "complete";
|
|
1148
238
|
readonly cancelled: "cancelled";
|
|
1149
239
|
};
|
|
240
|
+
type LpPositionsError400BadRequestCode = typeof LpPositionsError400BadRequestCode[keyof typeof LpPositionsError400BadRequestCode];
|
|
241
|
+
declare const LpPositionsError400BadRequestCode: {
|
|
242
|
+
readonly badRequest: "bad_request";
|
|
243
|
+
};
|
|
244
|
+
interface LpPositionsError400BadRequest {
|
|
245
|
+
code: LpPositionsError400BadRequestCode;
|
|
246
|
+
}
|
|
247
|
+
type LpPositionsError400Error = LpPositionsError400BadRequest | BadRequestErrorCodeErrorBody;
|
|
248
|
+
type LpPositionsError500ErrorCode = typeof LpPositionsError500ErrorCode[keyof typeof LpPositionsError500ErrorCode];
|
|
249
|
+
declare const LpPositionsError500ErrorCode: {
|
|
250
|
+
readonly internalError: "internal_error";
|
|
251
|
+
};
|
|
252
|
+
interface LpPositionsError500Error {
|
|
253
|
+
code: LpPositionsError500ErrorCode;
|
|
254
|
+
}
|
|
1150
255
|
interface MarketDto {
|
|
1151
256
|
/** Solana public key (base58) */
|
|
1152
257
|
address: string;
|
|
@@ -1178,6 +283,20 @@ interface MarketDto {
|
|
|
1178
283
|
/** @minimum 0 */
|
|
1179
284
|
rebalanceProtocolFee: number;
|
|
1180
285
|
}
|
|
286
|
+
type MarketError404ErrorCode = typeof MarketError404ErrorCode[keyof typeof MarketError404ErrorCode];
|
|
287
|
+
declare const MarketError404ErrorCode: {
|
|
288
|
+
readonly notFound: "not_found";
|
|
289
|
+
};
|
|
290
|
+
interface MarketError404Error {
|
|
291
|
+
code: MarketError404ErrorCode;
|
|
292
|
+
}
|
|
293
|
+
type MarketError500ErrorCode = typeof MarketError500ErrorCode[keyof typeof MarketError500ErrorCode];
|
|
294
|
+
declare const MarketError500ErrorCode: {
|
|
295
|
+
readonly internalError: "internal_error";
|
|
296
|
+
};
|
|
297
|
+
interface MarketError500Error {
|
|
298
|
+
code: MarketError500ErrorCode;
|
|
299
|
+
}
|
|
1181
300
|
interface MintDto {
|
|
1182
301
|
/** Solana public key (base58) */
|
|
1183
302
|
address: string;
|
|
@@ -1186,6 +305,20 @@ interface MintDto {
|
|
|
1186
305
|
name: string;
|
|
1187
306
|
symbol: string;
|
|
1188
307
|
}
|
|
308
|
+
type MintError404ErrorCode = typeof MintError404ErrorCode[keyof typeof MintError404ErrorCode];
|
|
309
|
+
declare const MintError404ErrorCode: {
|
|
310
|
+
readonly notFound: "not_found";
|
|
311
|
+
};
|
|
312
|
+
interface MintError404Error {
|
|
313
|
+
code: MintError404ErrorCode;
|
|
314
|
+
}
|
|
315
|
+
type MintError500ErrorCode = typeof MintError500ErrorCode[keyof typeof MintError500ErrorCode];
|
|
316
|
+
declare const MintError500ErrorCode: {
|
|
317
|
+
readonly internalError: "internal_error";
|
|
318
|
+
};
|
|
319
|
+
interface MintError500Error {
|
|
320
|
+
code: MintError500ErrorCode;
|
|
321
|
+
}
|
|
1189
322
|
type NotificationAction = typeof NotificationAction[keyof typeof NotificationAction];
|
|
1190
323
|
declare const NotificationAction: {
|
|
1191
324
|
readonly create: "create";
|
|
@@ -1410,6 +543,20 @@ interface OraclePriceDto {
|
|
|
1410
543
|
price: bigint;
|
|
1411
544
|
time: Date;
|
|
1412
545
|
}
|
|
546
|
+
type OraclePriceError404ErrorCode = typeof OraclePriceError404ErrorCode[keyof typeof OraclePriceError404ErrorCode];
|
|
547
|
+
declare const OraclePriceError404ErrorCode: {
|
|
548
|
+
readonly notFound: "not_found";
|
|
549
|
+
};
|
|
550
|
+
interface OraclePriceError404Error {
|
|
551
|
+
code: OraclePriceError404ErrorCode;
|
|
552
|
+
}
|
|
553
|
+
type OraclePriceError500ErrorCode = typeof OraclePriceError500ErrorCode[keyof typeof OraclePriceError500ErrorCode];
|
|
554
|
+
declare const OraclePriceError500ErrorCode: {
|
|
555
|
+
readonly internalError: "internal_error";
|
|
556
|
+
};
|
|
557
|
+
interface OraclePriceError500Error {
|
|
558
|
+
code: OraclePriceError500ErrorCode;
|
|
559
|
+
}
|
|
1413
560
|
interface OrderBookDto {
|
|
1414
561
|
entries: OrderBookEntryDto[];
|
|
1415
562
|
/** Solana public key (base58) */
|
|
@@ -1572,9 +719,17 @@ declare const PoolProvider: {
|
|
|
1572
719
|
readonly fusion: "fusion";
|
|
1573
720
|
};
|
|
1574
721
|
interface PoolStatsDto {
|
|
1575
|
-
groups:
|
|
722
|
+
groups: PoolStatsGroupDto;
|
|
1576
723
|
tvlUsd: number;
|
|
1577
724
|
}
|
|
725
|
+
interface PoolStatsGroupDto {
|
|
726
|
+
[key: string]: PoolStatsGroupEntryDto;
|
|
727
|
+
}
|
|
728
|
+
interface PoolStatsGroupEntryDto {
|
|
729
|
+
feesUsd: number;
|
|
730
|
+
priceChange: number;
|
|
731
|
+
volumeUsd: number;
|
|
732
|
+
}
|
|
1578
733
|
type PoolSubscriptionIsInverted = boolean | null;
|
|
1579
734
|
type PoolSubscriptionOrderBookPriceStep = number | null;
|
|
1580
735
|
interface PoolSubscription {
|
|
@@ -1607,6 +762,28 @@ interface PoolTicksDto {
|
|
|
1607
762
|
tickSpacing: number;
|
|
1608
763
|
ticks: TickDto[];
|
|
1609
764
|
}
|
|
765
|
+
type PoolsError400BadRequestCode = typeof PoolsError400BadRequestCode[keyof typeof PoolsError400BadRequestCode];
|
|
766
|
+
declare const PoolsError400BadRequestCode: {
|
|
767
|
+
readonly badRequest: "bad_request";
|
|
768
|
+
};
|
|
769
|
+
interface PoolsError400BadRequest {
|
|
770
|
+
code: PoolsError400BadRequestCode;
|
|
771
|
+
}
|
|
772
|
+
type PoolsError400Error = PoolsError400BadRequest | BadRequestErrorCodeErrorBody;
|
|
773
|
+
type PoolsError404ErrorCode = typeof PoolsError404ErrorCode[keyof typeof PoolsError404ErrorCode];
|
|
774
|
+
declare const PoolsError404ErrorCode: {
|
|
775
|
+
readonly notFound: "not_found";
|
|
776
|
+
};
|
|
777
|
+
interface PoolsError404Error {
|
|
778
|
+
code: PoolsError404ErrorCode;
|
|
779
|
+
}
|
|
780
|
+
type PoolsError500ErrorCode = typeof PoolsError500ErrorCode[keyof typeof PoolsError500ErrorCode];
|
|
781
|
+
declare const PoolsError500ErrorCode: {
|
|
782
|
+
readonly internalError: "internal_error";
|
|
783
|
+
};
|
|
784
|
+
interface PoolsError500Error {
|
|
785
|
+
code: PoolsError500ErrorCode;
|
|
786
|
+
}
|
|
1610
787
|
/**
|
|
1611
788
|
* Pubkey represented as base58 string in JSON and OpenAPI.
|
|
1612
789
|
|
|
@@ -1641,6 +818,20 @@ interface SnapshotContainer {
|
|
|
1641
818
|
entity: string;
|
|
1642
819
|
id: string;
|
|
1643
820
|
}
|
|
821
|
+
type SpotPositionError404ErrorCode = typeof SpotPositionError404ErrorCode[keyof typeof SpotPositionError404ErrorCode];
|
|
822
|
+
declare const SpotPositionError404ErrorCode: {
|
|
823
|
+
readonly notFound: "not_found";
|
|
824
|
+
};
|
|
825
|
+
interface SpotPositionError404Error {
|
|
826
|
+
code: SpotPositionError404ErrorCode;
|
|
827
|
+
}
|
|
828
|
+
type SpotPositionError500ErrorCode = typeof SpotPositionError500ErrorCode[keyof typeof SpotPositionError500ErrorCode];
|
|
829
|
+
declare const SpotPositionError500ErrorCode: {
|
|
830
|
+
readonly internalError: "internal_error";
|
|
831
|
+
};
|
|
832
|
+
interface SpotPositionError500Error {
|
|
833
|
+
code: SpotPositionError500ErrorCode;
|
|
834
|
+
}
|
|
1644
835
|
type SseResponse = StreamInitalMessage | NotificationDtoPoolSwapDto | NotificationDtoStakingPositionDto | NotificationDtoLendingPositionDto | NotificationDtoTradeHistoryEntryDto | NotificationDtoOrderHistoryEntryDto | SnapshotContainer;
|
|
1645
836
|
interface StakingDepositsStatsDto {
|
|
1646
837
|
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
@@ -1651,6 +842,21 @@ interface StakingDepositsStatsDto {
|
|
|
1651
842
|
totalDepositsSol: bigint;
|
|
1652
843
|
totalDepositsUsd: number;
|
|
1653
844
|
}
|
|
845
|
+
type StakingError400BadRequestCode = typeof StakingError400BadRequestCode[keyof typeof StakingError400BadRequestCode];
|
|
846
|
+
declare const StakingError400BadRequestCode: {
|
|
847
|
+
readonly badRequest: "bad_request";
|
|
848
|
+
};
|
|
849
|
+
interface StakingError400BadRequest {
|
|
850
|
+
code: StakingError400BadRequestCode;
|
|
851
|
+
}
|
|
852
|
+
type StakingError400Error = StakingError400BadRequest | BadRequestErrorCodeErrorBody;
|
|
853
|
+
type StakingError500ErrorCode = typeof StakingError500ErrorCode[keyof typeof StakingError500ErrorCode];
|
|
854
|
+
declare const StakingError500ErrorCode: {
|
|
855
|
+
readonly internalError: "internal_error";
|
|
856
|
+
};
|
|
857
|
+
interface StakingError500Error {
|
|
858
|
+
code: StakingError500ErrorCode;
|
|
859
|
+
}
|
|
1654
860
|
interface StakingLeaderboardPositionDto {
|
|
1655
861
|
/** Solana public key (base58) */
|
|
1656
862
|
address: string;
|
|
@@ -1698,6 +904,21 @@ interface StakingPositionDto {
|
|
|
1698
904
|
vesting: VestingDto;
|
|
1699
905
|
withdrawAvailableAt?: StakingPositionDtoWithdrawAvailableAt;
|
|
1700
906
|
}
|
|
907
|
+
type StatsError400BadRequestCode = typeof StatsError400BadRequestCode[keyof typeof StatsError400BadRequestCode];
|
|
908
|
+
declare const StatsError400BadRequestCode: {
|
|
909
|
+
readonly badRequest: "bad_request";
|
|
910
|
+
};
|
|
911
|
+
interface StatsError400BadRequest {
|
|
912
|
+
code: StatsError400BadRequestCode;
|
|
913
|
+
}
|
|
914
|
+
type StatsError400Error = StatsError400BadRequest | BadRequestErrorCodeErrorBody;
|
|
915
|
+
type StatsError500ErrorCode = typeof StatsError500ErrorCode[keyof typeof StatsError500ErrorCode];
|
|
916
|
+
declare const StatsError500ErrorCode: {
|
|
917
|
+
readonly internalError: "internal_error";
|
|
918
|
+
};
|
|
919
|
+
interface StatsError500Error {
|
|
920
|
+
code: StatsError500ErrorCode;
|
|
921
|
+
}
|
|
1701
922
|
/**
|
|
1702
923
|
* First message sent to the client containing stream id for subscription updates
|
|
1703
924
|
*/
|
|
@@ -2121,6 +1342,28 @@ declare const TunaSpotPositionDtoState: {
|
|
|
2121
1342
|
readonly open: "open";
|
|
2122
1343
|
readonly closed: "closed";
|
|
2123
1344
|
};
|
|
1345
|
+
/**
|
|
1346
|
+
* Unsigned 128-bit integer represented as decimal string in JSON and OpenAPI.
|
|
1347
|
+
*/
|
|
1348
|
+
type U128Dto = bigint;
|
|
1349
|
+
/**
|
|
1350
|
+
* Unsigned 64-bit integer represented as decimal string in JSON and OpenAPI.
|
|
1351
|
+
*/
|
|
1352
|
+
type U64Dto = bigint;
|
|
1353
|
+
type UpdateStreamSubscriptionError404ErrorCode = typeof UpdateStreamSubscriptionError404ErrorCode[keyof typeof UpdateStreamSubscriptionError404ErrorCode];
|
|
1354
|
+
declare const UpdateStreamSubscriptionError404ErrorCode: {
|
|
1355
|
+
readonly notFound: "not_found";
|
|
1356
|
+
};
|
|
1357
|
+
interface UpdateStreamSubscriptionError404Error {
|
|
1358
|
+
code: UpdateStreamSubscriptionError404ErrorCode;
|
|
1359
|
+
}
|
|
1360
|
+
type UpdateStreamSubscriptionError500ErrorCode = typeof UpdateStreamSubscriptionError500ErrorCode[keyof typeof UpdateStreamSubscriptionError500ErrorCode];
|
|
1361
|
+
declare const UpdateStreamSubscriptionError500ErrorCode: {
|
|
1362
|
+
readonly internalError: "internal_error";
|
|
1363
|
+
};
|
|
1364
|
+
interface UpdateStreamSubscriptionError500Error {
|
|
1365
|
+
code: UpdateStreamSubscriptionError500ErrorCode;
|
|
1366
|
+
}
|
|
2124
1367
|
type ValidationErrorCodeErrorBodyCode = typeof ValidationErrorCodeErrorBodyCode[keyof typeof ValidationErrorCodeErrorBodyCode];
|
|
2125
1368
|
declare const ValidationErrorCodeErrorBodyCode: {
|
|
2126
1369
|
readonly validationFailed: "validation_failed";
|
|
@@ -2165,6 +1408,28 @@ interface VaultDto {
|
|
|
2165
1408
|
supplyLimit: TokenAmountWithUsd;
|
|
2166
1409
|
utilization: number;
|
|
2167
1410
|
}
|
|
1411
|
+
type VaultError400BadRequestCode = typeof VaultError400BadRequestCode[keyof typeof VaultError400BadRequestCode];
|
|
1412
|
+
declare const VaultError400BadRequestCode: {
|
|
1413
|
+
readonly badRequest: "bad_request";
|
|
1414
|
+
};
|
|
1415
|
+
interface VaultError400BadRequest {
|
|
1416
|
+
code: VaultError400BadRequestCode;
|
|
1417
|
+
}
|
|
1418
|
+
type VaultError400Error = VaultError400BadRequest | BadRequestErrorCodeErrorBody;
|
|
1419
|
+
type VaultError404ErrorCode = typeof VaultError404ErrorCode[keyof typeof VaultError404ErrorCode];
|
|
1420
|
+
declare const VaultError404ErrorCode: {
|
|
1421
|
+
readonly notFound: "not_found";
|
|
1422
|
+
};
|
|
1423
|
+
interface VaultError404Error {
|
|
1424
|
+
code: VaultError404ErrorCode;
|
|
1425
|
+
}
|
|
1426
|
+
type VaultError500ErrorCode = typeof VaultError500ErrorCode[keyof typeof VaultError500ErrorCode];
|
|
1427
|
+
declare const VaultError500ErrorCode: {
|
|
1428
|
+
readonly internalError: "internal_error";
|
|
1429
|
+
};
|
|
1430
|
+
interface VaultError500Error {
|
|
1431
|
+
code: VaultError500ErrorCode;
|
|
1432
|
+
}
|
|
2168
1433
|
interface VaultStatsDto {
|
|
2169
1434
|
borrow: TokenAmountWithUsd;
|
|
2170
1435
|
borrowApr: number;
|
|
@@ -2234,9 +1499,37 @@ type GetLpSpotLeaderboardParams = {
|
|
|
2234
1499
|
*/
|
|
2235
1500
|
pageSize?: number;
|
|
2236
1501
|
};
|
|
1502
|
+
type GetLpSpotLeaderboard200 = {
|
|
1503
|
+
data: LeaderboardItemDto[];
|
|
1504
|
+
meta: PaginationMeta;
|
|
1505
|
+
};
|
|
1506
|
+
type GetMarkets200 = {
|
|
1507
|
+
data: MarketDto[];
|
|
1508
|
+
};
|
|
1509
|
+
type GetMarket200 = {
|
|
1510
|
+
data: MarketDto;
|
|
1511
|
+
};
|
|
1512
|
+
type GetMints200 = {
|
|
1513
|
+
data: MintDto[];
|
|
1514
|
+
};
|
|
1515
|
+
type GetMint200 = {
|
|
1516
|
+
data: MintDto;
|
|
1517
|
+
};
|
|
1518
|
+
type GetOraclePrices200 = {
|
|
1519
|
+
data: OraclePriceDto[];
|
|
1520
|
+
};
|
|
1521
|
+
type GetOraclePrice200 = {
|
|
1522
|
+
data: OraclePriceDto;
|
|
1523
|
+
};
|
|
2237
1524
|
type GetPoolsParams = {
|
|
2238
1525
|
provider?: string;
|
|
2239
1526
|
};
|
|
1527
|
+
type GetPools200 = {
|
|
1528
|
+
data: PoolDto[];
|
|
1529
|
+
};
|
|
1530
|
+
type GetPool200 = {
|
|
1531
|
+
data: PoolDto;
|
|
1532
|
+
};
|
|
2240
1533
|
type GetPoolCandlesParams = {
|
|
2241
1534
|
from: Date;
|
|
2242
1535
|
to: Date;
|
|
@@ -2246,10 +1539,22 @@ type GetPoolCandlesParams = {
|
|
|
2246
1539
|
candles: number;
|
|
2247
1540
|
interval: string;
|
|
2248
1541
|
};
|
|
1542
|
+
type GetPoolCandles200 = {
|
|
1543
|
+
data: PoolPriceCandleDto[];
|
|
1544
|
+
};
|
|
2249
1545
|
type GetPoolOrderBookParams = {
|
|
2250
1546
|
priceStep: number;
|
|
2251
1547
|
inverted?: boolean;
|
|
2252
1548
|
};
|
|
1549
|
+
type GetPoolOrderBook200 = {
|
|
1550
|
+
data: OrderBookDto;
|
|
1551
|
+
};
|
|
1552
|
+
type GetPoolSwaps200 = {
|
|
1553
|
+
data: PoolSwapDto[];
|
|
1554
|
+
};
|
|
1555
|
+
type GetPoolTicks200 = {
|
|
1556
|
+
data: PoolTicksDto;
|
|
1557
|
+
};
|
|
2253
1558
|
type GetCloseSpotPositionQuoteParams = {
|
|
2254
1559
|
market: PubkeyDto;
|
|
2255
1560
|
/**
|
|
@@ -2268,21 +1573,15 @@ type GetCloseSpotPositionQuoteParams = {
|
|
|
2268
1573
|
* @minimum 0
|
|
2269
1574
|
*/
|
|
2270
1575
|
positionToken: number;
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
* Unsigned 64-bit integer encoded as a decimal string
|
|
2277
|
-
*/
|
|
2278
|
-
positionDebt?: bigint;
|
|
1576
|
+
positionAmount: U64Dto;
|
|
1577
|
+
positionDebt: U64Dto;
|
|
1578
|
+
};
|
|
1579
|
+
type GetCloseSpotPositionQuote200 = {
|
|
1580
|
+
data: CloseSpotPositionQuoteDto;
|
|
2279
1581
|
};
|
|
2280
1582
|
type GetDecreaseSpotPositionQuoteParams = {
|
|
2281
1583
|
market: PubkeyDto;
|
|
2282
|
-
|
|
2283
|
-
* Unsigned 64-bit integer encoded as a decimal string
|
|
2284
|
-
*/
|
|
2285
|
-
decreaseAmount?: bigint;
|
|
1584
|
+
decreaseAmount: U64Dto;
|
|
2286
1585
|
/**
|
|
2287
1586
|
* @minimum 0
|
|
2288
1587
|
*/
|
|
@@ -2297,21 +1596,15 @@ type GetDecreaseSpotPositionQuoteParams = {
|
|
|
2297
1596
|
* @minimum 0
|
|
2298
1597
|
*/
|
|
2299
1598
|
positionToken: number;
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
* Unsigned 64-bit integer encoded as a decimal string
|
|
2306
|
-
*/
|
|
2307
|
-
positionDebt?: bigint;
|
|
1599
|
+
positionAmount: U64Dto;
|
|
1600
|
+
positionDebt: U64Dto;
|
|
1601
|
+
};
|
|
1602
|
+
type GetDecreaseSpotPositionQuote200 = {
|
|
1603
|
+
data: DecreaseSpotPositionQuoteDto;
|
|
2308
1604
|
};
|
|
2309
1605
|
type GetIncreaseSpotPositionQuoteParams = {
|
|
2310
1606
|
market: PubkeyDto;
|
|
2311
|
-
|
|
2312
|
-
* Unsigned 64-bit integer encoded as a decimal string
|
|
2313
|
-
*/
|
|
2314
|
-
increaseAmount?: bigint;
|
|
1607
|
+
increaseAmount: U64Dto;
|
|
2315
1608
|
/**
|
|
2316
1609
|
* @minimum 0
|
|
2317
1610
|
*/
|
|
@@ -2325,21 +1618,15 @@ type GetIncreaseSpotPositionQuoteParams = {
|
|
|
2325
1618
|
* @minimum 0
|
|
2326
1619
|
*/
|
|
2327
1620
|
slippageTolerance?: number;
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
* Unsigned 64-bit integer encoded as a decimal string
|
|
2334
|
-
*/
|
|
2335
|
-
positionDebt?: bigint;
|
|
1621
|
+
positionAmount?: U64Dto;
|
|
1622
|
+
positionDebt?: U64Dto;
|
|
1623
|
+
};
|
|
1624
|
+
type GetIncreaseSpotPositionQuote200 = {
|
|
1625
|
+
data: IncreaseSpotPositionQuoteDto;
|
|
2336
1626
|
};
|
|
2337
1627
|
type GetLimitOrderQuoteByInputParams = {
|
|
2338
1628
|
pool: PubkeyDto;
|
|
2339
|
-
|
|
2340
|
-
* Unsigned 64-bit integer encoded as a decimal string
|
|
2341
|
-
*/
|
|
2342
|
-
amountIn?: bigint;
|
|
1629
|
+
amountIn: U64Dto;
|
|
2343
1630
|
aToB: boolean;
|
|
2344
1631
|
tickIndex: number;
|
|
2345
1632
|
};
|
|
@@ -2348,58 +1635,55 @@ type GetLimitOrderQuoteByInput200 = {
|
|
|
2348
1635
|
};
|
|
2349
1636
|
type GetLimitOrderQuoteByOutputParams = {
|
|
2350
1637
|
pool: PubkeyDto;
|
|
2351
|
-
|
|
2352
|
-
* Unsigned 64-bit integer encoded as a decimal string
|
|
2353
|
-
*/
|
|
2354
|
-
amountOut?: bigint;
|
|
1638
|
+
amountOut: U64Dto;
|
|
2355
1639
|
aToB: boolean;
|
|
2356
1640
|
tickIndex: number;
|
|
2357
1641
|
};
|
|
1642
|
+
type GetLimitOrderQuoteByOutput200 = {
|
|
1643
|
+
data: LimitOrderQuoteByOutputDto;
|
|
1644
|
+
};
|
|
2358
1645
|
type GetSwapQuoteByInputParams = {
|
|
2359
1646
|
pool: PubkeyDto;
|
|
2360
|
-
|
|
2361
|
-
* Unsigned 64-bit integer encoded as a decimal string
|
|
2362
|
-
*/
|
|
2363
|
-
amountIn?: bigint;
|
|
1647
|
+
amountIn: U64Dto;
|
|
2364
1648
|
aToB: boolean;
|
|
2365
1649
|
/**
|
|
2366
1650
|
* @minimum 0
|
|
2367
1651
|
*/
|
|
2368
1652
|
slippageTolerance?: number;
|
|
2369
1653
|
};
|
|
1654
|
+
type GetSwapQuoteByInput200 = {
|
|
1655
|
+
data: SwapQuoteByInputDto;
|
|
1656
|
+
};
|
|
2370
1657
|
type GetSwapQuoteByOutputParams = {
|
|
2371
1658
|
pool: PubkeyDto;
|
|
2372
|
-
|
|
2373
|
-
* Unsigned 64-bit integer encoded as a decimal string
|
|
2374
|
-
*/
|
|
2375
|
-
amountOut?: bigint;
|
|
1659
|
+
amountOut: U64Dto;
|
|
2376
1660
|
aToB: boolean;
|
|
2377
1661
|
/**
|
|
2378
1662
|
* @minimum 0
|
|
2379
1663
|
*/
|
|
2380
1664
|
slippageTolerance?: number;
|
|
2381
1665
|
};
|
|
1666
|
+
type GetSwapQuoteByOutput200 = {
|
|
1667
|
+
data: SwapQuoteByOutputDto;
|
|
1668
|
+
};
|
|
2382
1669
|
type GetTradableAmountParams = {
|
|
2383
1670
|
market: PubkeyDto;
|
|
2384
1671
|
/**
|
|
2385
1672
|
* @minimum 0
|
|
2386
1673
|
*/
|
|
2387
1674
|
collateralToken: number;
|
|
2388
|
-
|
|
2389
|
-
* Unsigned 64-bit integer encoded as a decimal string
|
|
2390
|
-
*/
|
|
2391
|
-
availableBalance?: bigint;
|
|
1675
|
+
availableBalance: U64Dto;
|
|
2392
1676
|
leverage: number;
|
|
2393
1677
|
/**
|
|
2394
1678
|
* @minimum 0
|
|
2395
1679
|
*/
|
|
2396
1680
|
positionToken: number;
|
|
2397
|
-
|
|
2398
|
-
* Unsigned 64-bit integer encoded as a decimal string
|
|
2399
|
-
*/
|
|
2400
|
-
positionAmount?: bigint;
|
|
1681
|
+
positionAmount: U64Dto;
|
|
2401
1682
|
increase: boolean;
|
|
2402
1683
|
};
|
|
1684
|
+
type GetTradableAmount200 = {
|
|
1685
|
+
data: TradableAmountDto;
|
|
1686
|
+
};
|
|
2403
1687
|
type GetStakingLeaderboardParams = {
|
|
2404
1688
|
/**
|
|
2405
1689
|
* @minimum 0
|
|
@@ -2411,16 +1695,29 @@ type GetStakingLeaderboardParams = {
|
|
|
2411
1695
|
pageSize?: number;
|
|
2412
1696
|
search?: string;
|
|
2413
1697
|
};
|
|
1698
|
+
type GetStakingLeaderboard200 = {
|
|
1699
|
+
data: StakingLeaderboardPositionDto[];
|
|
1700
|
+
meta: PaginationMeta;
|
|
1701
|
+
};
|
|
1702
|
+
type GetStakingTreasury200 = {
|
|
1703
|
+
data: TreasuryDto;
|
|
1704
|
+
};
|
|
2414
1705
|
type GetFeesStatsParams = {
|
|
2415
1706
|
from: Date;
|
|
2416
1707
|
to: Date;
|
|
2417
1708
|
interval?: string;
|
|
2418
1709
|
};
|
|
1710
|
+
type GetFeesStats200 = {
|
|
1711
|
+
data: FeesStatsGroupDto[];
|
|
1712
|
+
};
|
|
2419
1713
|
type GetFusionFeesStatsParams = {
|
|
2420
1714
|
from: Date;
|
|
2421
1715
|
to: Date;
|
|
2422
1716
|
interval?: string;
|
|
2423
1717
|
};
|
|
1718
|
+
type GetFusionFeesStats200 = {
|
|
1719
|
+
data: FusionFeesStatsGroupDto[];
|
|
1720
|
+
};
|
|
2424
1721
|
type GetPositionsStatsParams = {
|
|
2425
1722
|
from: Date;
|
|
2426
1723
|
to: Date;
|
|
@@ -2431,10 +1728,29 @@ type GetPositionsStatsParams = {
|
|
|
2431
1728
|
*/
|
|
2432
1729
|
Unused?: string;
|
|
2433
1730
|
};
|
|
1731
|
+
type GetPositionsStats200 = {
|
|
1732
|
+
data: TunaLpPositionsStats[];
|
|
1733
|
+
};
|
|
1734
|
+
type GetPositionsTotal200 = {
|
|
1735
|
+
data: bigint;
|
|
1736
|
+
};
|
|
2434
1737
|
type GetStakingRevenueStatsParams = {
|
|
2435
1738
|
from: string;
|
|
2436
1739
|
to: string;
|
|
2437
1740
|
};
|
|
1741
|
+
type GetStakingRevenueStats200 = {
|
|
1742
|
+
data: StakingDepositsStatsDto[];
|
|
1743
|
+
};
|
|
1744
|
+
type UpdateStreamSubscription200 = {
|
|
1745
|
+
data: HttpStatusData;
|
|
1746
|
+
};
|
|
1747
|
+
type GetLendingPositions200 = {
|
|
1748
|
+
data: LendingPositionDto[];
|
|
1749
|
+
};
|
|
1750
|
+
type GetLendingPosition200Data = null | LendingPositionDto;
|
|
1751
|
+
type GetLendingPosition200 = {
|
|
1752
|
+
data: GetLendingPosition200Data;
|
|
1753
|
+
};
|
|
2438
1754
|
type GetLimitOrdersParams = {
|
|
2439
1755
|
/**
|
|
2440
1756
|
* List of pool public keys to filter by
|
|
@@ -2466,6 +1782,9 @@ type GetLimitOrdersParams = {
|
|
|
2466
1782
|
*/
|
|
2467
1783
|
limit?: number;
|
|
2468
1784
|
};
|
|
1785
|
+
type GetLimitOrders200 = {
|
|
1786
|
+
data: LimitOrderDto[];
|
|
1787
|
+
};
|
|
2469
1788
|
type GetLimitOrder200 = {
|
|
2470
1789
|
data: LimitOrderDto;
|
|
2471
1790
|
};
|
|
@@ -2488,6 +1807,12 @@ type GetLpPositionsParams = {
|
|
|
2488
1807
|
*/
|
|
2489
1808
|
limit?: number;
|
|
2490
1809
|
};
|
|
1810
|
+
type GetLpPositions200 = {
|
|
1811
|
+
data: TunaLpPositionDto[];
|
|
1812
|
+
};
|
|
1813
|
+
type GetLpPositionActions200 = {
|
|
1814
|
+
data: TunaLpPositionActionDto[];
|
|
1815
|
+
};
|
|
2491
1816
|
type GetOrderHistoryParams = {
|
|
2492
1817
|
pool?: string[];
|
|
2493
1818
|
orderType?: OrderHistoryType[];
|
|
@@ -2519,6 +1844,21 @@ type GetOrderHistoryParams = {
|
|
|
2519
1844
|
*/
|
|
2520
1845
|
limit?: number;
|
|
2521
1846
|
};
|
|
1847
|
+
type GetOrderHistory200 = {
|
|
1848
|
+
data: OrderHistoryEntryDto[];
|
|
1849
|
+
};
|
|
1850
|
+
type GetSpotPositions200 = {
|
|
1851
|
+
data: TunaSpotPositionDto[];
|
|
1852
|
+
};
|
|
1853
|
+
type GetSpotPosition200 = {
|
|
1854
|
+
data: TunaSpotPositionDto;
|
|
1855
|
+
};
|
|
1856
|
+
type GetUserStakingPosition200 = {
|
|
1857
|
+
data: StakingPositionDto;
|
|
1858
|
+
};
|
|
1859
|
+
type GetUserStakingPositionHistory200 = {
|
|
1860
|
+
data: StakingPositionActionDto[];
|
|
1861
|
+
};
|
|
2522
1862
|
type GetTradeHistoryParams = {
|
|
2523
1863
|
pool?: string[];
|
|
2524
1864
|
action?: TradeHistoryAction[];
|
|
@@ -2550,29 +1890,52 @@ type GetTradeHistoryParams = {
|
|
|
2550
1890
|
*/
|
|
2551
1891
|
limit?: number;
|
|
2552
1892
|
};
|
|
1893
|
+
type GetTradeHistory200 = {
|
|
1894
|
+
data: TradeHistoryEntryDto[];
|
|
1895
|
+
};
|
|
1896
|
+
type GetTunaPositions200 = {
|
|
1897
|
+
data: TunaPositionDto[];
|
|
1898
|
+
};
|
|
1899
|
+
type GetTunaPosition200Data = null | TunaPositionDto;
|
|
1900
|
+
type GetTunaPosition200 = {
|
|
1901
|
+
data: GetTunaPosition200Data;
|
|
1902
|
+
};
|
|
1903
|
+
type GetVaults200 = {
|
|
1904
|
+
data: VaultDto[];
|
|
1905
|
+
};
|
|
1906
|
+
type GetVault200 = {
|
|
1907
|
+
data: VaultDto;
|
|
1908
|
+
};
|
|
2553
1909
|
type GetVaultHistoryParams = {
|
|
2554
1910
|
from: string;
|
|
2555
1911
|
to: string;
|
|
2556
1912
|
};
|
|
1913
|
+
type GetVaultHistory200 = {
|
|
1914
|
+
data: VaultStatsDto[];
|
|
1915
|
+
};
|
|
2557
1916
|
/**
|
|
2558
1917
|
* @summary Request LP and Spot leaderboard
|
|
2559
1918
|
*/
|
|
2560
1919
|
type getLpSpotLeaderboardResponse200 = {
|
|
2561
|
-
data:
|
|
1920
|
+
data: GetLpSpotLeaderboard200;
|
|
2562
1921
|
status: 200;
|
|
2563
1922
|
};
|
|
2564
1923
|
type getLpSpotLeaderboardResponse400 = {
|
|
2565
|
-
data:
|
|
1924
|
+
data: LeaderboardError400Error;
|
|
2566
1925
|
status: 400;
|
|
2567
1926
|
};
|
|
1927
|
+
type getLpSpotLeaderboardResponse422 = {
|
|
1928
|
+
data: ValidationErrorCodeErrorBody;
|
|
1929
|
+
status: 422;
|
|
1930
|
+
};
|
|
2568
1931
|
type getLpSpotLeaderboardResponse500 = {
|
|
2569
|
-
data:
|
|
1932
|
+
data: LeaderboardError500Error;
|
|
2570
1933
|
status: 500;
|
|
2571
1934
|
};
|
|
2572
1935
|
type getLpSpotLeaderboardResponseSuccess = (getLpSpotLeaderboardResponse200) & {
|
|
2573
1936
|
headers: Headers;
|
|
2574
1937
|
};
|
|
2575
|
-
type getLpSpotLeaderboardResponseError = (getLpSpotLeaderboardResponse400 | getLpSpotLeaderboardResponse500) & {
|
|
1938
|
+
type getLpSpotLeaderboardResponseError = (getLpSpotLeaderboardResponse400 | getLpSpotLeaderboardResponse422 | getLpSpotLeaderboardResponse500) & {
|
|
2576
1939
|
headers: Headers;
|
|
2577
1940
|
};
|
|
2578
1941
|
type getLpSpotLeaderboardResponse = (getLpSpotLeaderboardResponseSuccess | getLpSpotLeaderboardResponseError);
|
|
@@ -2582,11 +1945,11 @@ declare const getLpSpotLeaderboard: (params?: GetLpSpotLeaderboardParams, option
|
|
|
2582
1945
|
* @summary Request all markets
|
|
2583
1946
|
*/
|
|
2584
1947
|
type getMarketsResponse200 = {
|
|
2585
|
-
data:
|
|
1948
|
+
data: GetMarkets200;
|
|
2586
1949
|
status: 200;
|
|
2587
1950
|
};
|
|
2588
1951
|
type getMarketsResponse500 = {
|
|
2589
|
-
data:
|
|
1952
|
+
data: InternalErrorCodeErrorBody;
|
|
2590
1953
|
status: 500;
|
|
2591
1954
|
};
|
|
2592
1955
|
type getMarketsResponseSuccess = (getMarketsResponse200) & {
|
|
@@ -2602,39 +1965,43 @@ declare const getMarkets: (options?: RequestInit) => Promise<getMarketsResponse>
|
|
|
2602
1965
|
* @summary Request market data
|
|
2603
1966
|
*/
|
|
2604
1967
|
type getMarketResponse200 = {
|
|
2605
|
-
data:
|
|
1968
|
+
data: GetMarket200;
|
|
2606
1969
|
status: 200;
|
|
2607
1970
|
};
|
|
2608
1971
|
type getMarketResponse400 = {
|
|
2609
|
-
data:
|
|
1972
|
+
data: BadRequestErrorCodeErrorBody;
|
|
2610
1973
|
status: 400;
|
|
2611
1974
|
};
|
|
2612
1975
|
type getMarketResponse404 = {
|
|
2613
|
-
data:
|
|
1976
|
+
data: MarketError404Error;
|
|
2614
1977
|
status: 404;
|
|
2615
1978
|
};
|
|
1979
|
+
type getMarketResponse422 = {
|
|
1980
|
+
data: ValidationErrorCodeErrorBody;
|
|
1981
|
+
status: 422;
|
|
1982
|
+
};
|
|
2616
1983
|
type getMarketResponse500 = {
|
|
2617
|
-
data:
|
|
1984
|
+
data: MarketError500Error;
|
|
2618
1985
|
status: 500;
|
|
2619
1986
|
};
|
|
2620
1987
|
type getMarketResponseSuccess = (getMarketResponse200) & {
|
|
2621
1988
|
headers: Headers;
|
|
2622
1989
|
};
|
|
2623
|
-
type getMarketResponseError = (getMarketResponse400 | getMarketResponse404 | getMarketResponse500) & {
|
|
1990
|
+
type getMarketResponseError = (getMarketResponse400 | getMarketResponse404 | getMarketResponse422 | getMarketResponse500) & {
|
|
2624
1991
|
headers: Headers;
|
|
2625
1992
|
};
|
|
2626
1993
|
type getMarketResponse = (getMarketResponseSuccess | getMarketResponseError);
|
|
2627
|
-
declare const getGetMarketUrl: (marketAddress:
|
|
2628
|
-
declare const getMarket: (marketAddress:
|
|
1994
|
+
declare const getGetMarketUrl: (marketAddress: PubkeyDto) => string;
|
|
1995
|
+
declare const getMarket: (marketAddress: PubkeyDto, options?: RequestInit) => Promise<getMarketResponse>;
|
|
2629
1996
|
/**
|
|
2630
1997
|
* @summary Request all mints
|
|
2631
1998
|
*/
|
|
2632
1999
|
type getMintsResponse200 = {
|
|
2633
|
-
data:
|
|
2000
|
+
data: GetMints200;
|
|
2634
2001
|
status: 200;
|
|
2635
2002
|
};
|
|
2636
2003
|
type getMintsResponse500 = {
|
|
2637
|
-
data:
|
|
2004
|
+
data: InternalErrorCodeErrorBody;
|
|
2638
2005
|
status: 500;
|
|
2639
2006
|
};
|
|
2640
2007
|
type getMintsResponseSuccess = (getMintsResponse200) & {
|
|
@@ -2650,39 +2017,43 @@ declare const getMints: (options?: RequestInit) => Promise<getMintsResponse>;
|
|
|
2650
2017
|
* @summary Request mint data
|
|
2651
2018
|
*/
|
|
2652
2019
|
type getMintResponse200 = {
|
|
2653
|
-
data:
|
|
2020
|
+
data: GetMint200;
|
|
2654
2021
|
status: 200;
|
|
2655
2022
|
};
|
|
2656
2023
|
type getMintResponse400 = {
|
|
2657
|
-
data:
|
|
2024
|
+
data: BadRequestErrorCodeErrorBody;
|
|
2658
2025
|
status: 400;
|
|
2659
2026
|
};
|
|
2660
2027
|
type getMintResponse404 = {
|
|
2661
|
-
data:
|
|
2028
|
+
data: MintError404Error;
|
|
2662
2029
|
status: 404;
|
|
2663
2030
|
};
|
|
2031
|
+
type getMintResponse422 = {
|
|
2032
|
+
data: ValidationErrorCodeErrorBody;
|
|
2033
|
+
status: 422;
|
|
2034
|
+
};
|
|
2664
2035
|
type getMintResponse500 = {
|
|
2665
|
-
data:
|
|
2036
|
+
data: MintError500Error;
|
|
2666
2037
|
status: 500;
|
|
2667
2038
|
};
|
|
2668
2039
|
type getMintResponseSuccess = (getMintResponse200) & {
|
|
2669
2040
|
headers: Headers;
|
|
2670
2041
|
};
|
|
2671
|
-
type getMintResponseError = (getMintResponse400 | getMintResponse404 | getMintResponse500) & {
|
|
2042
|
+
type getMintResponseError = (getMintResponse400 | getMintResponse404 | getMintResponse422 | getMintResponse500) & {
|
|
2672
2043
|
headers: Headers;
|
|
2673
2044
|
};
|
|
2674
2045
|
type getMintResponse = (getMintResponseSuccess | getMintResponseError);
|
|
2675
|
-
declare const getGetMintUrl: (mintAddress:
|
|
2676
|
-
declare const getMint: (mintAddress:
|
|
2046
|
+
declare const getGetMintUrl: (mintAddress: PubkeyDto) => string;
|
|
2047
|
+
declare const getMint: (mintAddress: PubkeyDto, options?: RequestInit) => Promise<getMintResponse>;
|
|
2677
2048
|
/**
|
|
2678
2049
|
* @summary Request all Oracle prices
|
|
2679
2050
|
*/
|
|
2680
2051
|
type getOraclePricesResponse200 = {
|
|
2681
|
-
data:
|
|
2052
|
+
data: GetOraclePrices200;
|
|
2682
2053
|
status: 200;
|
|
2683
2054
|
};
|
|
2684
2055
|
type getOraclePricesResponse500 = {
|
|
2685
|
-
data:
|
|
2056
|
+
data: InternalErrorCodeErrorBody;
|
|
2686
2057
|
status: 500;
|
|
2687
2058
|
};
|
|
2688
2059
|
type getOraclePricesResponseSuccess = (getOraclePricesResponse200) & {
|
|
@@ -2698,45 +2069,57 @@ declare const getOraclePrices: (options?: RequestInit) => Promise<getOraclePrice
|
|
|
2698
2069
|
* @summary Request Oracle price for mint
|
|
2699
2070
|
*/
|
|
2700
2071
|
type getOraclePriceResponse200 = {
|
|
2701
|
-
data:
|
|
2072
|
+
data: GetOraclePrice200;
|
|
2702
2073
|
status: 200;
|
|
2703
2074
|
};
|
|
2704
2075
|
type getOraclePriceResponse400 = {
|
|
2705
|
-
data:
|
|
2076
|
+
data: BadRequestErrorCodeErrorBody;
|
|
2706
2077
|
status: 400;
|
|
2707
2078
|
};
|
|
2708
2079
|
type getOraclePriceResponse404 = {
|
|
2709
|
-
data:
|
|
2080
|
+
data: OraclePriceError404Error;
|
|
2710
2081
|
status: 404;
|
|
2711
2082
|
};
|
|
2083
|
+
type getOraclePriceResponse422 = {
|
|
2084
|
+
data: ValidationErrorCodeErrorBody;
|
|
2085
|
+
status: 422;
|
|
2086
|
+
};
|
|
2712
2087
|
type getOraclePriceResponse500 = {
|
|
2713
|
-
data:
|
|
2088
|
+
data: OraclePriceError500Error;
|
|
2714
2089
|
status: 500;
|
|
2715
2090
|
};
|
|
2716
2091
|
type getOraclePriceResponseSuccess = (getOraclePriceResponse200) & {
|
|
2717
2092
|
headers: Headers;
|
|
2718
2093
|
};
|
|
2719
|
-
type getOraclePriceResponseError = (getOraclePriceResponse400 | getOraclePriceResponse404 | getOraclePriceResponse500) & {
|
|
2094
|
+
type getOraclePriceResponseError = (getOraclePriceResponse400 | getOraclePriceResponse404 | getOraclePriceResponse422 | getOraclePriceResponse500) & {
|
|
2720
2095
|
headers: Headers;
|
|
2721
2096
|
};
|
|
2722
2097
|
type getOraclePriceResponse = (getOraclePriceResponseSuccess | getOraclePriceResponseError);
|
|
2723
|
-
declare const getGetOraclePriceUrl: (mintAddress:
|
|
2724
|
-
declare const getOraclePrice: (mintAddress:
|
|
2098
|
+
declare const getGetOraclePriceUrl: (mintAddress: PubkeyDto) => string;
|
|
2099
|
+
declare const getOraclePrice: (mintAddress: PubkeyDto, options?: RequestInit) => Promise<getOraclePriceResponse>;
|
|
2725
2100
|
/**
|
|
2726
2101
|
* @summary Request all pools
|
|
2727
2102
|
*/
|
|
2728
2103
|
type getPoolsResponse200 = {
|
|
2729
|
-
data:
|
|
2104
|
+
data: GetPools200;
|
|
2730
2105
|
status: 200;
|
|
2731
2106
|
};
|
|
2107
|
+
type getPoolsResponse400 = {
|
|
2108
|
+
data: BadRequestErrorCodeErrorBody;
|
|
2109
|
+
status: 400;
|
|
2110
|
+
};
|
|
2111
|
+
type getPoolsResponse422 = {
|
|
2112
|
+
data: ValidationErrorCodeErrorBody;
|
|
2113
|
+
status: 422;
|
|
2114
|
+
};
|
|
2732
2115
|
type getPoolsResponse500 = {
|
|
2733
|
-
data:
|
|
2116
|
+
data: InternalErrorCodeErrorBody;
|
|
2734
2117
|
status: 500;
|
|
2735
2118
|
};
|
|
2736
2119
|
type getPoolsResponseSuccess = (getPoolsResponse200) & {
|
|
2737
2120
|
headers: Headers;
|
|
2738
2121
|
};
|
|
2739
|
-
type getPoolsResponseError = (getPoolsResponse500) & {
|
|
2122
|
+
type getPoolsResponseError = (getPoolsResponse400 | getPoolsResponse422 | getPoolsResponse500) & {
|
|
2740
2123
|
headers: Headers;
|
|
2741
2124
|
};
|
|
2742
2125
|
type getPoolsResponse = (getPoolsResponseSuccess | getPoolsResponseError);
|
|
@@ -2746,153 +2129,185 @@ declare const getPools: (params?: GetPoolsParams, options?: RequestInit) => Prom
|
|
|
2746
2129
|
* @summary Request pool data
|
|
2747
2130
|
*/
|
|
2748
2131
|
type getPoolResponse200 = {
|
|
2749
|
-
data:
|
|
2132
|
+
data: GetPool200;
|
|
2750
2133
|
status: 200;
|
|
2751
2134
|
};
|
|
2752
2135
|
type getPoolResponse400 = {
|
|
2753
|
-
data:
|
|
2136
|
+
data: PoolsError400Error;
|
|
2754
2137
|
status: 400;
|
|
2755
2138
|
};
|
|
2756
2139
|
type getPoolResponse404 = {
|
|
2757
|
-
data:
|
|
2140
|
+
data: PoolsError404Error;
|
|
2758
2141
|
status: 404;
|
|
2759
2142
|
};
|
|
2143
|
+
type getPoolResponse422 = {
|
|
2144
|
+
data: ValidationErrorCodeErrorBody;
|
|
2145
|
+
status: 422;
|
|
2146
|
+
};
|
|
2760
2147
|
type getPoolResponse500 = {
|
|
2761
|
-
data:
|
|
2148
|
+
data: PoolsError500Error;
|
|
2762
2149
|
status: 500;
|
|
2763
2150
|
};
|
|
2764
2151
|
type getPoolResponseSuccess = (getPoolResponse200) & {
|
|
2765
2152
|
headers: Headers;
|
|
2766
2153
|
};
|
|
2767
|
-
type getPoolResponseError = (getPoolResponse400 | getPoolResponse404 | getPoolResponse500) & {
|
|
2154
|
+
type getPoolResponseError = (getPoolResponse400 | getPoolResponse404 | getPoolResponse422 | getPoolResponse500) & {
|
|
2768
2155
|
headers: Headers;
|
|
2769
2156
|
};
|
|
2770
2157
|
type getPoolResponse = (getPoolResponseSuccess | getPoolResponseError);
|
|
2771
|
-
declare const getGetPoolUrl: (poolAddress:
|
|
2772
|
-
declare const getPool: (poolAddress:
|
|
2158
|
+
declare const getGetPoolUrl: (poolAddress: PubkeyDto) => string;
|
|
2159
|
+
declare const getPool: (poolAddress: PubkeyDto, options?: RequestInit) => Promise<getPoolResponse>;
|
|
2773
2160
|
/**
|
|
2774
2161
|
* @summary Request pool candles
|
|
2775
2162
|
*/
|
|
2776
2163
|
type getPoolCandlesResponse200 = {
|
|
2777
|
-
data:
|
|
2164
|
+
data: GetPoolCandles200;
|
|
2778
2165
|
status: 200;
|
|
2779
2166
|
};
|
|
2780
2167
|
type getPoolCandlesResponse400 = {
|
|
2781
|
-
data:
|
|
2168
|
+
data: PoolsError400Error;
|
|
2782
2169
|
status: 400;
|
|
2783
2170
|
};
|
|
2171
|
+
type getPoolCandlesResponse404 = {
|
|
2172
|
+
data: PoolsError404Error;
|
|
2173
|
+
status: 404;
|
|
2174
|
+
};
|
|
2175
|
+
type getPoolCandlesResponse422 = {
|
|
2176
|
+
data: ValidationErrorCodeErrorBody;
|
|
2177
|
+
status: 422;
|
|
2178
|
+
};
|
|
2784
2179
|
type getPoolCandlesResponse500 = {
|
|
2785
|
-
data:
|
|
2180
|
+
data: PoolsError500Error;
|
|
2786
2181
|
status: 500;
|
|
2787
2182
|
};
|
|
2788
2183
|
type getPoolCandlesResponseSuccess = (getPoolCandlesResponse200) & {
|
|
2789
2184
|
headers: Headers;
|
|
2790
2185
|
};
|
|
2791
|
-
type getPoolCandlesResponseError = (getPoolCandlesResponse400 | getPoolCandlesResponse500) & {
|
|
2186
|
+
type getPoolCandlesResponseError = (getPoolCandlesResponse400 | getPoolCandlesResponse404 | getPoolCandlesResponse422 | getPoolCandlesResponse500) & {
|
|
2792
2187
|
headers: Headers;
|
|
2793
2188
|
};
|
|
2794
2189
|
type getPoolCandlesResponse = (getPoolCandlesResponseSuccess | getPoolCandlesResponseError);
|
|
2795
|
-
declare const getGetPoolCandlesUrl: (poolAddress:
|
|
2796
|
-
declare const getPoolCandles: (poolAddress:
|
|
2190
|
+
declare const getGetPoolCandlesUrl: (poolAddress: PubkeyDto, params: GetPoolCandlesParams) => string;
|
|
2191
|
+
declare const getPoolCandles: (poolAddress: PubkeyDto, params: GetPoolCandlesParams, options?: RequestInit) => Promise<getPoolCandlesResponse>;
|
|
2797
2192
|
/**
|
|
2798
2193
|
* @summary Request pool order book
|
|
2799
2194
|
*/
|
|
2800
2195
|
type getPoolOrderBookResponse200 = {
|
|
2801
|
-
data:
|
|
2196
|
+
data: GetPoolOrderBook200;
|
|
2802
2197
|
status: 200;
|
|
2803
2198
|
};
|
|
2804
2199
|
type getPoolOrderBookResponse400 = {
|
|
2805
|
-
data:
|
|
2200
|
+
data: PoolsError400Error;
|
|
2806
2201
|
status: 400;
|
|
2807
2202
|
};
|
|
2808
2203
|
type getPoolOrderBookResponse404 = {
|
|
2809
|
-
data:
|
|
2204
|
+
data: PoolsError404Error;
|
|
2810
2205
|
status: 404;
|
|
2811
2206
|
};
|
|
2207
|
+
type getPoolOrderBookResponse422 = {
|
|
2208
|
+
data: ValidationErrorCodeErrorBody;
|
|
2209
|
+
status: 422;
|
|
2210
|
+
};
|
|
2812
2211
|
type getPoolOrderBookResponse500 = {
|
|
2813
|
-
data:
|
|
2212
|
+
data: PoolsError500Error;
|
|
2814
2213
|
status: 500;
|
|
2815
2214
|
};
|
|
2816
2215
|
type getPoolOrderBookResponseSuccess = (getPoolOrderBookResponse200) & {
|
|
2817
2216
|
headers: Headers;
|
|
2818
2217
|
};
|
|
2819
|
-
type getPoolOrderBookResponseError = (getPoolOrderBookResponse400 | getPoolOrderBookResponse404 | getPoolOrderBookResponse500) & {
|
|
2218
|
+
type getPoolOrderBookResponseError = (getPoolOrderBookResponse400 | getPoolOrderBookResponse404 | getPoolOrderBookResponse422 | getPoolOrderBookResponse500) & {
|
|
2820
2219
|
headers: Headers;
|
|
2821
2220
|
};
|
|
2822
2221
|
type getPoolOrderBookResponse = (getPoolOrderBookResponseSuccess | getPoolOrderBookResponseError);
|
|
2823
|
-
declare const getGetPoolOrderBookUrl: (poolAddress:
|
|
2824
|
-
declare const getPoolOrderBook: (poolAddress:
|
|
2222
|
+
declare const getGetPoolOrderBookUrl: (poolAddress: PubkeyDto, params: GetPoolOrderBookParams) => string;
|
|
2223
|
+
declare const getPoolOrderBook: (poolAddress: PubkeyDto, params: GetPoolOrderBookParams, options?: RequestInit) => Promise<getPoolOrderBookResponse>;
|
|
2825
2224
|
/**
|
|
2826
2225
|
* @summary Request pool swaps
|
|
2827
2226
|
*/
|
|
2828
2227
|
type getPoolSwapsResponse200 = {
|
|
2829
|
-
data:
|
|
2228
|
+
data: GetPoolSwaps200;
|
|
2830
2229
|
status: 200;
|
|
2831
2230
|
};
|
|
2832
2231
|
type getPoolSwapsResponse400 = {
|
|
2833
|
-
data:
|
|
2232
|
+
data: PoolsError400Error;
|
|
2834
2233
|
status: 400;
|
|
2835
2234
|
};
|
|
2836
2235
|
type getPoolSwapsResponse404 = {
|
|
2837
|
-
data:
|
|
2236
|
+
data: PoolsError404Error;
|
|
2838
2237
|
status: 404;
|
|
2839
2238
|
};
|
|
2239
|
+
type getPoolSwapsResponse422 = {
|
|
2240
|
+
data: ValidationErrorCodeErrorBody;
|
|
2241
|
+
status: 422;
|
|
2242
|
+
};
|
|
2840
2243
|
type getPoolSwapsResponse500 = {
|
|
2841
|
-
data:
|
|
2244
|
+
data: PoolsError500Error;
|
|
2842
2245
|
status: 500;
|
|
2843
2246
|
};
|
|
2844
2247
|
type getPoolSwapsResponseSuccess = (getPoolSwapsResponse200) & {
|
|
2845
2248
|
headers: Headers;
|
|
2846
2249
|
};
|
|
2847
|
-
type getPoolSwapsResponseError = (getPoolSwapsResponse400 | getPoolSwapsResponse404 | getPoolSwapsResponse500) & {
|
|
2250
|
+
type getPoolSwapsResponseError = (getPoolSwapsResponse400 | getPoolSwapsResponse404 | getPoolSwapsResponse422 | getPoolSwapsResponse500) & {
|
|
2848
2251
|
headers: Headers;
|
|
2849
2252
|
};
|
|
2850
2253
|
type getPoolSwapsResponse = (getPoolSwapsResponseSuccess | getPoolSwapsResponseError);
|
|
2851
|
-
declare const getGetPoolSwapsUrl: (poolAddress:
|
|
2852
|
-
declare const getPoolSwaps: (poolAddress:
|
|
2254
|
+
declare const getGetPoolSwapsUrl: (poolAddress: PubkeyDto) => string;
|
|
2255
|
+
declare const getPoolSwaps: (poolAddress: PubkeyDto, options?: RequestInit) => Promise<getPoolSwapsResponse>;
|
|
2853
2256
|
/**
|
|
2854
2257
|
* @summary Request pool ticks
|
|
2855
2258
|
*/
|
|
2856
2259
|
type getPoolTicksResponse200 = {
|
|
2857
|
-
data:
|
|
2260
|
+
data: GetPoolTicks200;
|
|
2858
2261
|
status: 200;
|
|
2859
2262
|
};
|
|
2860
2263
|
type getPoolTicksResponse400 = {
|
|
2861
|
-
data:
|
|
2264
|
+
data: PoolsError400Error;
|
|
2862
2265
|
status: 400;
|
|
2863
2266
|
};
|
|
2864
2267
|
type getPoolTicksResponse404 = {
|
|
2865
|
-
data:
|
|
2268
|
+
data: PoolsError404Error;
|
|
2866
2269
|
status: 404;
|
|
2867
2270
|
};
|
|
2271
|
+
type getPoolTicksResponse422 = {
|
|
2272
|
+
data: ValidationErrorCodeErrorBody;
|
|
2273
|
+
status: 422;
|
|
2274
|
+
};
|
|
2868
2275
|
type getPoolTicksResponse500 = {
|
|
2869
|
-
data:
|
|
2276
|
+
data: PoolsError500Error;
|
|
2870
2277
|
status: 500;
|
|
2871
2278
|
};
|
|
2872
2279
|
type getPoolTicksResponseSuccess = (getPoolTicksResponse200) & {
|
|
2873
2280
|
headers: Headers;
|
|
2874
2281
|
};
|
|
2875
|
-
type getPoolTicksResponseError = (getPoolTicksResponse400 | getPoolTicksResponse404 | getPoolTicksResponse500) & {
|
|
2282
|
+
type getPoolTicksResponseError = (getPoolTicksResponse400 | getPoolTicksResponse404 | getPoolTicksResponse422 | getPoolTicksResponse500) & {
|
|
2876
2283
|
headers: Headers;
|
|
2877
2284
|
};
|
|
2878
2285
|
type getPoolTicksResponse = (getPoolTicksResponseSuccess | getPoolTicksResponseError);
|
|
2879
|
-
declare const getGetPoolTicksUrl: (poolAddress:
|
|
2880
|
-
declare const getPoolTicks: (poolAddress:
|
|
2286
|
+
declare const getGetPoolTicksUrl: (poolAddress: PubkeyDto) => string;
|
|
2287
|
+
declare const getPoolTicks: (poolAddress: PubkeyDto, options?: RequestInit) => Promise<getPoolTicksResponse>;
|
|
2881
2288
|
/**
|
|
2882
2289
|
* @summary Request quote to close spot position
|
|
2883
2290
|
*/
|
|
2884
2291
|
type getCloseSpotPositionQuoteResponse200 = {
|
|
2885
|
-
data:
|
|
2292
|
+
data: GetCloseSpotPositionQuote200;
|
|
2886
2293
|
status: 200;
|
|
2887
2294
|
};
|
|
2888
2295
|
type getCloseSpotPositionQuoteResponse400 = {
|
|
2889
|
-
data:
|
|
2296
|
+
data: BadRequestErrorCodeErrorBody;
|
|
2890
2297
|
status: 400;
|
|
2891
2298
|
};
|
|
2299
|
+
type getCloseSpotPositionQuoteResponse422 = {
|
|
2300
|
+
data: ValidationErrorCodeErrorBody;
|
|
2301
|
+
status: 422;
|
|
2302
|
+
};
|
|
2303
|
+
type getCloseSpotPositionQuoteResponse500 = {
|
|
2304
|
+
data: InternalErrorCodeErrorBody;
|
|
2305
|
+
status: 500;
|
|
2306
|
+
};
|
|
2892
2307
|
type getCloseSpotPositionQuoteResponseSuccess = (getCloseSpotPositionQuoteResponse200) & {
|
|
2893
2308
|
headers: Headers;
|
|
2894
2309
|
};
|
|
2895
|
-
type getCloseSpotPositionQuoteResponseError = (getCloseSpotPositionQuoteResponse400) & {
|
|
2310
|
+
type getCloseSpotPositionQuoteResponseError = (getCloseSpotPositionQuoteResponse400 | getCloseSpotPositionQuoteResponse422 | getCloseSpotPositionQuoteResponse500) & {
|
|
2896
2311
|
headers: Headers;
|
|
2897
2312
|
};
|
|
2898
2313
|
type getCloseSpotPositionQuoteResponse = (getCloseSpotPositionQuoteResponseSuccess | getCloseSpotPositionQuoteResponseError);
|
|
@@ -2902,17 +2317,25 @@ declare const getCloseSpotPositionQuote: (params: GetCloseSpotPositionQuoteParam
|
|
|
2902
2317
|
* @summary Request quote to decrease spot position
|
|
2903
2318
|
*/
|
|
2904
2319
|
type getDecreaseSpotPositionQuoteResponse200 = {
|
|
2905
|
-
data:
|
|
2320
|
+
data: GetDecreaseSpotPositionQuote200;
|
|
2906
2321
|
status: 200;
|
|
2907
2322
|
};
|
|
2908
2323
|
type getDecreaseSpotPositionQuoteResponse400 = {
|
|
2909
|
-
data:
|
|
2324
|
+
data: BadRequestErrorCodeErrorBody;
|
|
2910
2325
|
status: 400;
|
|
2911
2326
|
};
|
|
2327
|
+
type getDecreaseSpotPositionQuoteResponse422 = {
|
|
2328
|
+
data: ValidationErrorCodeErrorBody;
|
|
2329
|
+
status: 422;
|
|
2330
|
+
};
|
|
2331
|
+
type getDecreaseSpotPositionQuoteResponse500 = {
|
|
2332
|
+
data: InternalErrorCodeErrorBody;
|
|
2333
|
+
status: 500;
|
|
2334
|
+
};
|
|
2912
2335
|
type getDecreaseSpotPositionQuoteResponseSuccess = (getDecreaseSpotPositionQuoteResponse200) & {
|
|
2913
2336
|
headers: Headers;
|
|
2914
2337
|
};
|
|
2915
|
-
type getDecreaseSpotPositionQuoteResponseError = (getDecreaseSpotPositionQuoteResponse400) & {
|
|
2338
|
+
type getDecreaseSpotPositionQuoteResponseError = (getDecreaseSpotPositionQuoteResponse400 | getDecreaseSpotPositionQuoteResponse422 | getDecreaseSpotPositionQuoteResponse500) & {
|
|
2916
2339
|
headers: Headers;
|
|
2917
2340
|
};
|
|
2918
2341
|
type getDecreaseSpotPositionQuoteResponse = (getDecreaseSpotPositionQuoteResponseSuccess | getDecreaseSpotPositionQuoteResponseError);
|
|
@@ -2922,17 +2345,25 @@ declare const getDecreaseSpotPositionQuote: (params: GetDecreaseSpotPositionQuot
|
|
|
2922
2345
|
* @summary Request quote to increase spot position
|
|
2923
2346
|
*/
|
|
2924
2347
|
type getIncreaseSpotPositionQuoteResponse200 = {
|
|
2925
|
-
data:
|
|
2348
|
+
data: GetIncreaseSpotPositionQuote200;
|
|
2926
2349
|
status: 200;
|
|
2927
2350
|
};
|
|
2928
2351
|
type getIncreaseSpotPositionQuoteResponse400 = {
|
|
2929
|
-
data:
|
|
2352
|
+
data: BadRequestErrorCodeErrorBody;
|
|
2930
2353
|
status: 400;
|
|
2931
2354
|
};
|
|
2355
|
+
type getIncreaseSpotPositionQuoteResponse422 = {
|
|
2356
|
+
data: ValidationErrorCodeErrorBody;
|
|
2357
|
+
status: 422;
|
|
2358
|
+
};
|
|
2359
|
+
type getIncreaseSpotPositionQuoteResponse500 = {
|
|
2360
|
+
data: InternalErrorCodeErrorBody;
|
|
2361
|
+
status: 500;
|
|
2362
|
+
};
|
|
2932
2363
|
type getIncreaseSpotPositionQuoteResponseSuccess = (getIncreaseSpotPositionQuoteResponse200) & {
|
|
2933
2364
|
headers: Headers;
|
|
2934
2365
|
};
|
|
2935
|
-
type getIncreaseSpotPositionQuoteResponseError = (getIncreaseSpotPositionQuoteResponse400) & {
|
|
2366
|
+
type getIncreaseSpotPositionQuoteResponseError = (getIncreaseSpotPositionQuoteResponse400 | getIncreaseSpotPositionQuoteResponse422 | getIncreaseSpotPositionQuoteResponse500) & {
|
|
2936
2367
|
headers: Headers;
|
|
2937
2368
|
};
|
|
2938
2369
|
type getIncreaseSpotPositionQuoteResponse = (getIncreaseSpotPositionQuoteResponseSuccess | getIncreaseSpotPositionQuoteResponseError);
|
|
@@ -2970,17 +2401,25 @@ declare const getLimitOrderQuoteByInput: (params: GetLimitOrderQuoteByInputParam
|
|
|
2970
2401
|
* @summary Request limit order quote by output amount
|
|
2971
2402
|
*/
|
|
2972
2403
|
type getLimitOrderQuoteByOutputResponse200 = {
|
|
2973
|
-
data:
|
|
2404
|
+
data: GetLimitOrderQuoteByOutput200;
|
|
2974
2405
|
status: 200;
|
|
2975
2406
|
};
|
|
2976
2407
|
type getLimitOrderQuoteByOutputResponse400 = {
|
|
2977
|
-
data:
|
|
2408
|
+
data: BadRequestErrorCodeErrorBody;
|
|
2978
2409
|
status: 400;
|
|
2979
2410
|
};
|
|
2411
|
+
type getLimitOrderQuoteByOutputResponse422 = {
|
|
2412
|
+
data: ValidationErrorCodeErrorBody;
|
|
2413
|
+
status: 422;
|
|
2414
|
+
};
|
|
2415
|
+
type getLimitOrderQuoteByOutputResponse500 = {
|
|
2416
|
+
data: InternalErrorCodeErrorBody;
|
|
2417
|
+
status: 500;
|
|
2418
|
+
};
|
|
2980
2419
|
type getLimitOrderQuoteByOutputResponseSuccess = (getLimitOrderQuoteByOutputResponse200) & {
|
|
2981
2420
|
headers: Headers;
|
|
2982
2421
|
};
|
|
2983
|
-
type getLimitOrderQuoteByOutputResponseError = (getLimitOrderQuoteByOutputResponse400) & {
|
|
2422
|
+
type getLimitOrderQuoteByOutputResponseError = (getLimitOrderQuoteByOutputResponse400 | getLimitOrderQuoteByOutputResponse422 | getLimitOrderQuoteByOutputResponse500) & {
|
|
2984
2423
|
headers: Headers;
|
|
2985
2424
|
};
|
|
2986
2425
|
type getLimitOrderQuoteByOutputResponse = (getLimitOrderQuoteByOutputResponseSuccess | getLimitOrderQuoteByOutputResponseError);
|
|
@@ -2990,17 +2429,25 @@ declare const getLimitOrderQuoteByOutput: (params: GetLimitOrderQuoteByOutputPar
|
|
|
2990
2429
|
* @summary Request swap quote by input amount
|
|
2991
2430
|
*/
|
|
2992
2431
|
type getSwapQuoteByInputResponse200 = {
|
|
2993
|
-
data:
|
|
2432
|
+
data: GetSwapQuoteByInput200;
|
|
2994
2433
|
status: 200;
|
|
2995
2434
|
};
|
|
2996
2435
|
type getSwapQuoteByInputResponse400 = {
|
|
2997
|
-
data:
|
|
2436
|
+
data: BadRequestErrorCodeErrorBody;
|
|
2998
2437
|
status: 400;
|
|
2999
2438
|
};
|
|
2439
|
+
type getSwapQuoteByInputResponse422 = {
|
|
2440
|
+
data: ValidationErrorCodeErrorBody;
|
|
2441
|
+
status: 422;
|
|
2442
|
+
};
|
|
2443
|
+
type getSwapQuoteByInputResponse500 = {
|
|
2444
|
+
data: InternalErrorCodeErrorBody;
|
|
2445
|
+
status: 500;
|
|
2446
|
+
};
|
|
3000
2447
|
type getSwapQuoteByInputResponseSuccess = (getSwapQuoteByInputResponse200) & {
|
|
3001
2448
|
headers: Headers;
|
|
3002
2449
|
};
|
|
3003
|
-
type getSwapQuoteByInputResponseError = (getSwapQuoteByInputResponse400) & {
|
|
2450
|
+
type getSwapQuoteByInputResponseError = (getSwapQuoteByInputResponse400 | getSwapQuoteByInputResponse422 | getSwapQuoteByInputResponse500) & {
|
|
3004
2451
|
headers: Headers;
|
|
3005
2452
|
};
|
|
3006
2453
|
type getSwapQuoteByInputResponse = (getSwapQuoteByInputResponseSuccess | getSwapQuoteByInputResponseError);
|
|
@@ -3010,17 +2457,25 @@ declare const getSwapQuoteByInput: (params: GetSwapQuoteByInputParams, options?:
|
|
|
3010
2457
|
* @summary Request swap quote by output amount
|
|
3011
2458
|
*/
|
|
3012
2459
|
type getSwapQuoteByOutputResponse200 = {
|
|
3013
|
-
data:
|
|
2460
|
+
data: GetSwapQuoteByOutput200;
|
|
3014
2461
|
status: 200;
|
|
3015
2462
|
};
|
|
3016
2463
|
type getSwapQuoteByOutputResponse400 = {
|
|
3017
|
-
data:
|
|
2464
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3018
2465
|
status: 400;
|
|
3019
2466
|
};
|
|
2467
|
+
type getSwapQuoteByOutputResponse422 = {
|
|
2468
|
+
data: ValidationErrorCodeErrorBody;
|
|
2469
|
+
status: 422;
|
|
2470
|
+
};
|
|
2471
|
+
type getSwapQuoteByOutputResponse500 = {
|
|
2472
|
+
data: InternalErrorCodeErrorBody;
|
|
2473
|
+
status: 500;
|
|
2474
|
+
};
|
|
3020
2475
|
type getSwapQuoteByOutputResponseSuccess = (getSwapQuoteByOutputResponse200) & {
|
|
3021
2476
|
headers: Headers;
|
|
3022
2477
|
};
|
|
3023
|
-
type getSwapQuoteByOutputResponseError = (getSwapQuoteByOutputResponse400) & {
|
|
2478
|
+
type getSwapQuoteByOutputResponseError = (getSwapQuoteByOutputResponse400 | getSwapQuoteByOutputResponse422 | getSwapQuoteByOutputResponse500) & {
|
|
3024
2479
|
headers: Headers;
|
|
3025
2480
|
};
|
|
3026
2481
|
type getSwapQuoteByOutputResponse = (getSwapQuoteByOutputResponseSuccess | getSwapQuoteByOutputResponseError);
|
|
@@ -3030,17 +2485,25 @@ declare const getSwapQuoteByOutput: (params: GetSwapQuoteByOutputParams, options
|
|
|
3030
2485
|
* @summary Request tradeable amount
|
|
3031
2486
|
*/
|
|
3032
2487
|
type getTradableAmountResponse200 = {
|
|
3033
|
-
data:
|
|
2488
|
+
data: GetTradableAmount200;
|
|
3034
2489
|
status: 200;
|
|
3035
2490
|
};
|
|
3036
2491
|
type getTradableAmountResponse400 = {
|
|
3037
|
-
data:
|
|
2492
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3038
2493
|
status: 400;
|
|
3039
2494
|
};
|
|
2495
|
+
type getTradableAmountResponse422 = {
|
|
2496
|
+
data: ValidationErrorCodeErrorBody;
|
|
2497
|
+
status: 422;
|
|
2498
|
+
};
|
|
2499
|
+
type getTradableAmountResponse500 = {
|
|
2500
|
+
data: InternalErrorCodeErrorBody;
|
|
2501
|
+
status: 500;
|
|
2502
|
+
};
|
|
3040
2503
|
type getTradableAmountResponseSuccess = (getTradableAmountResponse200) & {
|
|
3041
2504
|
headers: Headers;
|
|
3042
2505
|
};
|
|
3043
|
-
type getTradableAmountResponseError = (getTradableAmountResponse400) & {
|
|
2506
|
+
type getTradableAmountResponseError = (getTradableAmountResponse400 | getTradableAmountResponse422 | getTradableAmountResponse500) & {
|
|
3044
2507
|
headers: Headers;
|
|
3045
2508
|
};
|
|
3046
2509
|
type getTradableAmountResponse = (getTradableAmountResponseSuccess | getTradableAmountResponseError);
|
|
@@ -3050,21 +2513,25 @@ declare const getTradableAmount: (params: GetTradableAmountParams, options?: Req
|
|
|
3050
2513
|
* @summary Request staking leaderboard
|
|
3051
2514
|
*/
|
|
3052
2515
|
type getStakingLeaderboardResponse200 = {
|
|
3053
|
-
data:
|
|
2516
|
+
data: GetStakingLeaderboard200;
|
|
3054
2517
|
status: 200;
|
|
3055
2518
|
};
|
|
3056
2519
|
type getStakingLeaderboardResponse400 = {
|
|
3057
|
-
data:
|
|
2520
|
+
data: StakingError400Error;
|
|
3058
2521
|
status: 400;
|
|
3059
2522
|
};
|
|
2523
|
+
type getStakingLeaderboardResponse422 = {
|
|
2524
|
+
data: ValidationErrorCodeErrorBody;
|
|
2525
|
+
status: 422;
|
|
2526
|
+
};
|
|
3060
2527
|
type getStakingLeaderboardResponse500 = {
|
|
3061
|
-
data:
|
|
2528
|
+
data: StakingError500Error;
|
|
3062
2529
|
status: 500;
|
|
3063
2530
|
};
|
|
3064
2531
|
type getStakingLeaderboardResponseSuccess = (getStakingLeaderboardResponse200) & {
|
|
3065
2532
|
headers: Headers;
|
|
3066
2533
|
};
|
|
3067
|
-
type getStakingLeaderboardResponseError = (getStakingLeaderboardResponse400 | getStakingLeaderboardResponse500) & {
|
|
2534
|
+
type getStakingLeaderboardResponseError = (getStakingLeaderboardResponse400 | getStakingLeaderboardResponse422 | getStakingLeaderboardResponse500) & {
|
|
3068
2535
|
headers: Headers;
|
|
3069
2536
|
};
|
|
3070
2537
|
type getStakingLeaderboardResponse = (getStakingLeaderboardResponseSuccess | getStakingLeaderboardResponseError);
|
|
@@ -3074,11 +2541,11 @@ declare const getStakingLeaderboard: (params?: GetStakingLeaderboardParams, opti
|
|
|
3074
2541
|
* @summary Request treasury data
|
|
3075
2542
|
*/
|
|
3076
2543
|
type getStakingTreasuryResponse200 = {
|
|
3077
|
-
data:
|
|
2544
|
+
data: GetStakingTreasury200;
|
|
3078
2545
|
status: 200;
|
|
3079
2546
|
};
|
|
3080
2547
|
type getStakingTreasuryResponse500 = {
|
|
3081
|
-
data:
|
|
2548
|
+
data: InternalErrorCodeErrorBody;
|
|
3082
2549
|
status: 500;
|
|
3083
2550
|
};
|
|
3084
2551
|
type getStakingTreasuryResponseSuccess = (getStakingTreasuryResponse200) & {
|
|
@@ -3094,21 +2561,25 @@ declare const getStakingTreasury: (options?: RequestInit) => Promise<getStakingT
|
|
|
3094
2561
|
* @summary Request historical aggregated data about collected & paid fees
|
|
3095
2562
|
*/
|
|
3096
2563
|
type getFeesStatsResponse200 = {
|
|
3097
|
-
data:
|
|
2564
|
+
data: GetFeesStats200;
|
|
3098
2565
|
status: 200;
|
|
3099
2566
|
};
|
|
3100
2567
|
type getFeesStatsResponse400 = {
|
|
3101
|
-
data:
|
|
2568
|
+
data: StatsError400Error;
|
|
3102
2569
|
status: 400;
|
|
3103
2570
|
};
|
|
2571
|
+
type getFeesStatsResponse422 = {
|
|
2572
|
+
data: ValidationErrorCodeErrorBody;
|
|
2573
|
+
status: 422;
|
|
2574
|
+
};
|
|
3104
2575
|
type getFeesStatsResponse500 = {
|
|
3105
|
-
data:
|
|
2576
|
+
data: StatsError500Error;
|
|
3106
2577
|
status: 500;
|
|
3107
2578
|
};
|
|
3108
2579
|
type getFeesStatsResponseSuccess = (getFeesStatsResponse200) & {
|
|
3109
2580
|
headers: Headers;
|
|
3110
2581
|
};
|
|
3111
|
-
type getFeesStatsResponseError = (getFeesStatsResponse400 | getFeesStatsResponse500) & {
|
|
2582
|
+
type getFeesStatsResponseError = (getFeesStatsResponse400 | getFeesStatsResponse422 | getFeesStatsResponse500) & {
|
|
3112
2583
|
headers: Headers;
|
|
3113
2584
|
};
|
|
3114
2585
|
type getFeesStatsResponse = (getFeesStatsResponseSuccess | getFeesStatsResponseError);
|
|
@@ -3118,21 +2589,25 @@ declare const getFeesStats: (params: GetFeesStatsParams, options?: RequestInit)
|
|
|
3118
2589
|
* @summary Request historical aggregated data about Fusion collected & paid fees
|
|
3119
2590
|
*/
|
|
3120
2591
|
type getFusionFeesStatsResponse200 = {
|
|
3121
|
-
data:
|
|
2592
|
+
data: GetFusionFeesStats200;
|
|
3122
2593
|
status: 200;
|
|
3123
2594
|
};
|
|
3124
2595
|
type getFusionFeesStatsResponse400 = {
|
|
3125
|
-
data:
|
|
2596
|
+
data: StatsError400Error;
|
|
3126
2597
|
status: 400;
|
|
3127
2598
|
};
|
|
2599
|
+
type getFusionFeesStatsResponse422 = {
|
|
2600
|
+
data: ValidationErrorCodeErrorBody;
|
|
2601
|
+
status: 422;
|
|
2602
|
+
};
|
|
3128
2603
|
type getFusionFeesStatsResponse500 = {
|
|
3129
|
-
data:
|
|
2604
|
+
data: StatsError500Error;
|
|
3130
2605
|
status: 500;
|
|
3131
2606
|
};
|
|
3132
2607
|
type getFusionFeesStatsResponseSuccess = (getFusionFeesStatsResponse200) & {
|
|
3133
2608
|
headers: Headers;
|
|
3134
2609
|
};
|
|
3135
|
-
type getFusionFeesStatsResponseError = (getFusionFeesStatsResponse400 | getFusionFeesStatsResponse500) & {
|
|
2610
|
+
type getFusionFeesStatsResponseError = (getFusionFeesStatsResponse400 | getFusionFeesStatsResponse422 | getFusionFeesStatsResponse500) & {
|
|
3136
2611
|
headers: Headers;
|
|
3137
2612
|
};
|
|
3138
2613
|
type getFusionFeesStatsResponse = (getFusionFeesStatsResponseSuccess | getFusionFeesStatsResponseError);
|
|
@@ -3142,17 +2617,25 @@ declare const getFusionFeesStats: (params: GetFusionFeesStatsParams, options?: R
|
|
|
3142
2617
|
* @summary Request historical aggregated data about LP positions
|
|
3143
2618
|
*/
|
|
3144
2619
|
type getPositionsStatsResponse200 = {
|
|
3145
|
-
data:
|
|
2620
|
+
data: GetPositionsStats200;
|
|
3146
2621
|
status: 200;
|
|
3147
2622
|
};
|
|
2623
|
+
type getPositionsStatsResponse400 = {
|
|
2624
|
+
data: BadRequestErrorCodeErrorBody;
|
|
2625
|
+
status: 400;
|
|
2626
|
+
};
|
|
2627
|
+
type getPositionsStatsResponse422 = {
|
|
2628
|
+
data: ValidationErrorCodeErrorBody;
|
|
2629
|
+
status: 422;
|
|
2630
|
+
};
|
|
3148
2631
|
type getPositionsStatsResponse500 = {
|
|
3149
|
-
data:
|
|
2632
|
+
data: InternalErrorCodeErrorBody;
|
|
3150
2633
|
status: 500;
|
|
3151
2634
|
};
|
|
3152
2635
|
type getPositionsStatsResponseSuccess = (getPositionsStatsResponse200) & {
|
|
3153
2636
|
headers: Headers;
|
|
3154
2637
|
};
|
|
3155
|
-
type getPositionsStatsResponseError = (getPositionsStatsResponse500) & {
|
|
2638
|
+
type getPositionsStatsResponseError = (getPositionsStatsResponse400 | getPositionsStatsResponse422 | getPositionsStatsResponse500) & {
|
|
3156
2639
|
headers: Headers;
|
|
3157
2640
|
};
|
|
3158
2641
|
type getPositionsStatsResponse = (getPositionsStatsResponseSuccess | getPositionsStatsResponseError);
|
|
@@ -3162,11 +2645,11 @@ declare const getPositionsStats: (params: GetPositionsStatsParams, options?: Req
|
|
|
3162
2645
|
* @summary Request total number of LP positions
|
|
3163
2646
|
*/
|
|
3164
2647
|
type getPositionsTotalResponse200 = {
|
|
3165
|
-
data:
|
|
2648
|
+
data: GetPositionsTotal200;
|
|
3166
2649
|
status: 200;
|
|
3167
2650
|
};
|
|
3168
2651
|
type getPositionsTotalResponse500 = {
|
|
3169
|
-
data:
|
|
2652
|
+
data: InternalErrorCodeErrorBody;
|
|
3170
2653
|
status: 500;
|
|
3171
2654
|
};
|
|
3172
2655
|
type getPositionsTotalResponseSuccess = (getPositionsTotalResponse200) & {
|
|
@@ -3182,21 +2665,25 @@ declare const getPositionsTotal: (options?: RequestInit) => Promise<getPositions
|
|
|
3182
2665
|
* @summary Request daily staking revenue stats
|
|
3183
2666
|
*/
|
|
3184
2667
|
type getStakingRevenueStatsResponse200 = {
|
|
3185
|
-
data:
|
|
2668
|
+
data: GetStakingRevenueStats200;
|
|
3186
2669
|
status: 200;
|
|
3187
2670
|
};
|
|
3188
2671
|
type getStakingRevenueStatsResponse400 = {
|
|
3189
|
-
data:
|
|
2672
|
+
data: StatsError400Error;
|
|
3190
2673
|
status: 400;
|
|
3191
2674
|
};
|
|
2675
|
+
type getStakingRevenueStatsResponse422 = {
|
|
2676
|
+
data: ValidationErrorCodeErrorBody;
|
|
2677
|
+
status: 422;
|
|
2678
|
+
};
|
|
3192
2679
|
type getStakingRevenueStatsResponse500 = {
|
|
3193
|
-
data:
|
|
2680
|
+
data: StatsError500Error;
|
|
3194
2681
|
status: 500;
|
|
3195
2682
|
};
|
|
3196
2683
|
type getStakingRevenueStatsResponseSuccess = (getStakingRevenueStatsResponse200) & {
|
|
3197
2684
|
headers: Headers;
|
|
3198
2685
|
};
|
|
3199
|
-
type getStakingRevenueStatsResponseError = (getStakingRevenueStatsResponse400 | getStakingRevenueStatsResponse500) & {
|
|
2686
|
+
type getStakingRevenueStatsResponseError = (getStakingRevenueStatsResponse400 | getStakingRevenueStatsResponse422 | getStakingRevenueStatsResponse500) & {
|
|
3200
2687
|
headers: Headers;
|
|
3201
2688
|
};
|
|
3202
2689
|
type getStakingRevenueStatsResponse = (getStakingRevenueStatsResponseSuccess | getStakingRevenueStatsResponseError);
|
|
@@ -3206,7 +2693,7 @@ declare const getStakingRevenueStats: (params: GetStakingRevenueStatsParams, opt
|
|
|
3206
2693
|
* @summary Subscribe for SSE stream
|
|
3207
2694
|
*/
|
|
3208
2695
|
type sseResponse200 = {
|
|
3209
|
-
data:
|
|
2696
|
+
data: SseResponse;
|
|
3210
2697
|
status: 200;
|
|
3211
2698
|
};
|
|
3212
2699
|
type sseResponse500 = {
|
|
@@ -3226,21 +2713,29 @@ declare const sse: (options?: RequestInit) => Promise<sseResponse>;
|
|
|
3226
2713
|
* @summary Update SSE stream subscription
|
|
3227
2714
|
*/
|
|
3228
2715
|
type updateStreamSubscriptionResponse200 = {
|
|
3229
|
-
data:
|
|
2716
|
+
data: UpdateStreamSubscription200;
|
|
3230
2717
|
status: 200;
|
|
3231
2718
|
};
|
|
3232
2719
|
type updateStreamSubscriptionResponse400 = {
|
|
3233
|
-
data:
|
|
2720
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3234
2721
|
status: 400;
|
|
3235
2722
|
};
|
|
2723
|
+
type updateStreamSubscriptionResponse404 = {
|
|
2724
|
+
data: UpdateStreamSubscriptionError404Error;
|
|
2725
|
+
status: 404;
|
|
2726
|
+
};
|
|
2727
|
+
type updateStreamSubscriptionResponse422 = {
|
|
2728
|
+
data: ValidationErrorCodeErrorBody;
|
|
2729
|
+
status: 422;
|
|
2730
|
+
};
|
|
3236
2731
|
type updateStreamSubscriptionResponse500 = {
|
|
3237
|
-
data:
|
|
2732
|
+
data: UpdateStreamSubscriptionError500Error;
|
|
3238
2733
|
status: 500;
|
|
3239
2734
|
};
|
|
3240
2735
|
type updateStreamSubscriptionResponseSuccess = (updateStreamSubscriptionResponse200) & {
|
|
3241
2736
|
headers: Headers;
|
|
3242
2737
|
};
|
|
3243
|
-
type updateStreamSubscriptionResponseError = (updateStreamSubscriptionResponse400 | updateStreamSubscriptionResponse500) & {
|
|
2738
|
+
type updateStreamSubscriptionResponseError = (updateStreamSubscriptionResponse400 | updateStreamSubscriptionResponse404 | updateStreamSubscriptionResponse422 | updateStreamSubscriptionResponse500) & {
|
|
3244
2739
|
headers: Headers;
|
|
3245
2740
|
};
|
|
3246
2741
|
type updateStreamSubscriptionResponse = (updateStreamSubscriptionResponseSuccess | updateStreamSubscriptionResponseError);
|
|
@@ -3250,74 +2745,86 @@ declare const updateStreamSubscription: (streamId: string, subscriptionOptions:
|
|
|
3250
2745
|
* @summary Request all user lending positions
|
|
3251
2746
|
*/
|
|
3252
2747
|
type getLendingPositionsResponse200 = {
|
|
3253
|
-
data:
|
|
2748
|
+
data: GetLendingPositions200;
|
|
3254
2749
|
status: 200;
|
|
3255
2750
|
};
|
|
3256
2751
|
type getLendingPositionsResponse400 = {
|
|
3257
|
-
data:
|
|
2752
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3258
2753
|
status: 400;
|
|
3259
2754
|
};
|
|
2755
|
+
type getLendingPositionsResponse422 = {
|
|
2756
|
+
data: ValidationErrorCodeErrorBody;
|
|
2757
|
+
status: 422;
|
|
2758
|
+
};
|
|
3260
2759
|
type getLendingPositionsResponse500 = {
|
|
3261
|
-
data:
|
|
2760
|
+
data: InternalErrorCodeErrorBody;
|
|
3262
2761
|
status: 500;
|
|
3263
2762
|
};
|
|
3264
2763
|
type getLendingPositionsResponseSuccess = (getLendingPositionsResponse200) & {
|
|
3265
2764
|
headers: Headers;
|
|
3266
2765
|
};
|
|
3267
|
-
type getLendingPositionsResponseError = (getLendingPositionsResponse400 | getLendingPositionsResponse500) & {
|
|
2766
|
+
type getLendingPositionsResponseError = (getLendingPositionsResponse400 | getLendingPositionsResponse422 | getLendingPositionsResponse500) & {
|
|
3268
2767
|
headers: Headers;
|
|
3269
2768
|
};
|
|
3270
2769
|
type getLendingPositionsResponse = (getLendingPositionsResponseSuccess | getLendingPositionsResponseError);
|
|
3271
|
-
declare const getGetLendingPositionsUrl: (userAddress:
|
|
3272
|
-
declare const getLendingPositions: (userAddress:
|
|
2770
|
+
declare const getGetLendingPositionsUrl: (userAddress: PubkeyDto) => string;
|
|
2771
|
+
declare const getLendingPositions: (userAddress: PubkeyDto, options?: RequestInit) => Promise<getLendingPositionsResponse>;
|
|
3273
2772
|
/**
|
|
3274
2773
|
* @summary Request lending position data by position address
|
|
3275
2774
|
*/
|
|
3276
2775
|
type getLendingPositionResponse200 = {
|
|
3277
|
-
data:
|
|
2776
|
+
data: GetLendingPosition200;
|
|
3278
2777
|
status: 200;
|
|
3279
2778
|
};
|
|
3280
2779
|
type getLendingPositionResponse400 = {
|
|
3281
|
-
data:
|
|
2780
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3282
2781
|
status: 400;
|
|
3283
2782
|
};
|
|
2783
|
+
type getLendingPositionResponse422 = {
|
|
2784
|
+
data: ValidationErrorCodeErrorBody;
|
|
2785
|
+
status: 422;
|
|
2786
|
+
};
|
|
3284
2787
|
type getLendingPositionResponse500 = {
|
|
3285
|
-
data:
|
|
2788
|
+
data: InternalErrorCodeErrorBody;
|
|
3286
2789
|
status: 500;
|
|
3287
2790
|
};
|
|
3288
2791
|
type getLendingPositionResponseSuccess = (getLendingPositionResponse200) & {
|
|
3289
2792
|
headers: Headers;
|
|
3290
2793
|
};
|
|
3291
|
-
type getLendingPositionResponseError = (getLendingPositionResponse400 | getLendingPositionResponse500) & {
|
|
2794
|
+
type getLendingPositionResponseError = (getLendingPositionResponse400 | getLendingPositionResponse422 | getLendingPositionResponse500) & {
|
|
3292
2795
|
headers: Headers;
|
|
3293
2796
|
};
|
|
3294
2797
|
type getLendingPositionResponse = (getLendingPositionResponseSuccess | getLendingPositionResponseError);
|
|
3295
|
-
declare const getGetLendingPositionUrl: (userAddress:
|
|
3296
|
-
declare const getLendingPosition: (userAddress:
|
|
2798
|
+
declare const getGetLendingPositionUrl: (userAddress: PubkeyDto, lendingPositionAddress: PubkeyDto) => string;
|
|
2799
|
+
declare const getLendingPosition: (userAddress: PubkeyDto, lendingPositionAddress: PubkeyDto, options?: RequestInit) => Promise<getLendingPositionResponse>;
|
|
3297
2800
|
/**
|
|
3298
2801
|
* @summary Request all user limit orders
|
|
3299
2802
|
*/
|
|
3300
2803
|
type getLimitOrdersResponse200 = {
|
|
3301
|
-
data:
|
|
2804
|
+
data: GetLimitOrders200;
|
|
3302
2805
|
status: 200;
|
|
3303
2806
|
};
|
|
3304
2807
|
type getLimitOrdersResponse400 = {
|
|
3305
|
-
data:
|
|
2808
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3306
2809
|
status: 400;
|
|
3307
2810
|
};
|
|
2811
|
+
type getLimitOrdersResponse422 = {
|
|
2812
|
+
data: ValidationErrorCodeErrorBody;
|
|
2813
|
+
status: 422;
|
|
2814
|
+
};
|
|
3308
2815
|
type getLimitOrdersResponse500 = {
|
|
3309
|
-
data:
|
|
2816
|
+
data: InternalErrorCodeErrorBody;
|
|
3310
2817
|
status: 500;
|
|
3311
2818
|
};
|
|
3312
2819
|
type getLimitOrdersResponseSuccess = (getLimitOrdersResponse200) & {
|
|
3313
2820
|
headers: Headers;
|
|
3314
2821
|
};
|
|
3315
|
-
type getLimitOrdersResponseError = (getLimitOrdersResponse400 | getLimitOrdersResponse500) & {
|
|
2822
|
+
type getLimitOrdersResponseError = (getLimitOrdersResponse400 | getLimitOrdersResponse422 | getLimitOrdersResponse500) & {
|
|
3316
2823
|
headers: Headers;
|
|
3317
2824
|
};
|
|
3318
2825
|
type getLimitOrdersResponse = (getLimitOrdersResponseSuccess | getLimitOrdersResponseError);
|
|
3319
|
-
declare const getGetLimitOrdersUrl: (userAddress:
|
|
3320
|
-
declare const getLimitOrders: (userAddress:
|
|
2826
|
+
declare const getGetLimitOrdersUrl: (userAddress: PubkeyDto, params?: GetLimitOrdersParams) => string;
|
|
2827
|
+
declare const getLimitOrders: (userAddress: PubkeyDto, params?: GetLimitOrdersParams, options?: RequestInit) => Promise<getLimitOrdersResponse>;
|
|
3321
2828
|
/**
|
|
3322
2829
|
* @summary Request limit order data by position address
|
|
3323
2830
|
*/
|
|
@@ -3354,255 +2861,295 @@ declare const getLimitOrder: (userAddress: PubkeyDto, limitOrderAddress: PubkeyD
|
|
|
3354
2861
|
* @summary Request historical LP positions data
|
|
3355
2862
|
*/
|
|
3356
2863
|
type getLpPositionsResponse200 = {
|
|
3357
|
-
data:
|
|
2864
|
+
data: GetLpPositions200;
|
|
3358
2865
|
status: 200;
|
|
3359
2866
|
};
|
|
3360
2867
|
type getLpPositionsResponse400 = {
|
|
3361
|
-
data:
|
|
2868
|
+
data: LpPositionsError400Error;
|
|
3362
2869
|
status: 400;
|
|
3363
2870
|
};
|
|
2871
|
+
type getLpPositionsResponse422 = {
|
|
2872
|
+
data: ValidationErrorCodeErrorBody;
|
|
2873
|
+
status: 422;
|
|
2874
|
+
};
|
|
3364
2875
|
type getLpPositionsResponse500 = {
|
|
3365
|
-
data:
|
|
2876
|
+
data: LpPositionsError500Error;
|
|
3366
2877
|
status: 500;
|
|
3367
2878
|
};
|
|
3368
2879
|
type getLpPositionsResponseSuccess = (getLpPositionsResponse200) & {
|
|
3369
2880
|
headers: Headers;
|
|
3370
2881
|
};
|
|
3371
|
-
type getLpPositionsResponseError = (getLpPositionsResponse400 | getLpPositionsResponse500) & {
|
|
2882
|
+
type getLpPositionsResponseError = (getLpPositionsResponse400 | getLpPositionsResponse422 | getLpPositionsResponse500) & {
|
|
3372
2883
|
headers: Headers;
|
|
3373
2884
|
};
|
|
3374
2885
|
type getLpPositionsResponse = (getLpPositionsResponseSuccess | getLpPositionsResponseError);
|
|
3375
|
-
declare const getGetLpPositionsUrl: (userAddress:
|
|
3376
|
-
declare const getLpPositions: (userAddress:
|
|
2886
|
+
declare const getGetLpPositionsUrl: (userAddress: PubkeyDto, params?: GetLpPositionsParams) => string;
|
|
2887
|
+
declare const getLpPositions: (userAddress: PubkeyDto, params?: GetLpPositionsParams, options?: RequestInit) => Promise<getLpPositionsResponse>;
|
|
3377
2888
|
/**
|
|
3378
2889
|
* @summary Request LP position actions history
|
|
3379
2890
|
*/
|
|
3380
2891
|
type getLpPositionActionsResponse200 = {
|
|
3381
|
-
data:
|
|
2892
|
+
data: GetLpPositionActions200;
|
|
3382
2893
|
status: 200;
|
|
3383
2894
|
};
|
|
3384
2895
|
type getLpPositionActionsResponse400 = {
|
|
3385
|
-
data:
|
|
2896
|
+
data: LpPositionsError400Error;
|
|
3386
2897
|
status: 400;
|
|
3387
2898
|
};
|
|
2899
|
+
type getLpPositionActionsResponse422 = {
|
|
2900
|
+
data: ValidationErrorCodeErrorBody;
|
|
2901
|
+
status: 422;
|
|
2902
|
+
};
|
|
3388
2903
|
type getLpPositionActionsResponse500 = {
|
|
3389
|
-
data:
|
|
2904
|
+
data: LpPositionsError500Error;
|
|
3390
2905
|
status: 500;
|
|
3391
2906
|
};
|
|
3392
2907
|
type getLpPositionActionsResponseSuccess = (getLpPositionActionsResponse200) & {
|
|
3393
2908
|
headers: Headers;
|
|
3394
2909
|
};
|
|
3395
|
-
type getLpPositionActionsResponseError = (getLpPositionActionsResponse400 | getLpPositionActionsResponse500) & {
|
|
2910
|
+
type getLpPositionActionsResponseError = (getLpPositionActionsResponse400 | getLpPositionActionsResponse422 | getLpPositionActionsResponse500) & {
|
|
3396
2911
|
headers: Headers;
|
|
3397
2912
|
};
|
|
3398
2913
|
type getLpPositionActionsResponse = (getLpPositionActionsResponseSuccess | getLpPositionActionsResponseError);
|
|
3399
|
-
declare const getGetLpPositionActionsUrl: (userAddress:
|
|
3400
|
-
declare const getLpPositionActions: (userAddress:
|
|
2914
|
+
declare const getGetLpPositionActionsUrl: (userAddress: PubkeyDto, positionAddress: PubkeyDto) => string;
|
|
2915
|
+
declare const getLpPositionActions: (userAddress: PubkeyDto, positionAddress: PubkeyDto, options?: RequestInit) => Promise<getLpPositionActionsResponse>;
|
|
3401
2916
|
/**
|
|
3402
2917
|
* @summary Request user order history
|
|
3403
2918
|
*/
|
|
3404
2919
|
type getOrderHistoryResponse200 = {
|
|
3405
|
-
data:
|
|
2920
|
+
data: GetOrderHistory200;
|
|
3406
2921
|
status: 200;
|
|
3407
2922
|
};
|
|
3408
2923
|
type getOrderHistoryResponse400 = {
|
|
3409
|
-
data:
|
|
2924
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3410
2925
|
status: 400;
|
|
3411
2926
|
};
|
|
2927
|
+
type getOrderHistoryResponse422 = {
|
|
2928
|
+
data: ValidationErrorCodeErrorBody;
|
|
2929
|
+
status: 422;
|
|
2930
|
+
};
|
|
3412
2931
|
type getOrderHistoryResponse500 = {
|
|
3413
|
-
data:
|
|
2932
|
+
data: InternalErrorCodeErrorBody;
|
|
3414
2933
|
status: 500;
|
|
3415
2934
|
};
|
|
3416
2935
|
type getOrderHistoryResponseSuccess = (getOrderHistoryResponse200) & {
|
|
3417
2936
|
headers: Headers;
|
|
3418
2937
|
};
|
|
3419
|
-
type getOrderHistoryResponseError = (getOrderHistoryResponse400 | getOrderHistoryResponse500) & {
|
|
2938
|
+
type getOrderHistoryResponseError = (getOrderHistoryResponse400 | getOrderHistoryResponse422 | getOrderHistoryResponse500) & {
|
|
3420
2939
|
headers: Headers;
|
|
3421
2940
|
};
|
|
3422
2941
|
type getOrderHistoryResponse = (getOrderHistoryResponseSuccess | getOrderHistoryResponseError);
|
|
3423
|
-
declare const getGetOrderHistoryUrl: (userAddress:
|
|
3424
|
-
declare const getOrderHistory: (userAddress:
|
|
2942
|
+
declare const getGetOrderHistoryUrl: (userAddress: PubkeyDto, params?: GetOrderHistoryParams) => string;
|
|
2943
|
+
declare const getOrderHistory: (userAddress: PubkeyDto, params?: GetOrderHistoryParams, options?: RequestInit) => Promise<getOrderHistoryResponse>;
|
|
3425
2944
|
/**
|
|
3426
2945
|
* @summary Request all user spot positions
|
|
3427
2946
|
*/
|
|
3428
2947
|
type getSpotPositionsResponse200 = {
|
|
3429
|
-
data:
|
|
2948
|
+
data: GetSpotPositions200;
|
|
3430
2949
|
status: 200;
|
|
3431
2950
|
};
|
|
3432
2951
|
type getSpotPositionsResponse400 = {
|
|
3433
|
-
data:
|
|
2952
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3434
2953
|
status: 400;
|
|
3435
2954
|
};
|
|
2955
|
+
type getSpotPositionsResponse422 = {
|
|
2956
|
+
data: ValidationErrorCodeErrorBody;
|
|
2957
|
+
status: 422;
|
|
2958
|
+
};
|
|
3436
2959
|
type getSpotPositionsResponse500 = {
|
|
3437
|
-
data:
|
|
2960
|
+
data: InternalErrorCodeErrorBody;
|
|
3438
2961
|
status: 500;
|
|
3439
2962
|
};
|
|
3440
2963
|
type getSpotPositionsResponseSuccess = (getSpotPositionsResponse200) & {
|
|
3441
2964
|
headers: Headers;
|
|
3442
2965
|
};
|
|
3443
|
-
type getSpotPositionsResponseError = (getSpotPositionsResponse400 | getSpotPositionsResponse500) & {
|
|
2966
|
+
type getSpotPositionsResponseError = (getSpotPositionsResponse400 | getSpotPositionsResponse422 | getSpotPositionsResponse500) & {
|
|
3444
2967
|
headers: Headers;
|
|
3445
2968
|
};
|
|
3446
2969
|
type getSpotPositionsResponse = (getSpotPositionsResponseSuccess | getSpotPositionsResponseError);
|
|
3447
|
-
declare const getGetSpotPositionsUrl: (userAddress:
|
|
3448
|
-
declare const getSpotPositions: (userAddress:
|
|
2970
|
+
declare const getGetSpotPositionsUrl: (userAddress: PubkeyDto) => string;
|
|
2971
|
+
declare const getSpotPositions: (userAddress: PubkeyDto, options?: RequestInit) => Promise<getSpotPositionsResponse>;
|
|
3449
2972
|
/**
|
|
3450
2973
|
* @summary Request spot position data by position address
|
|
3451
2974
|
*/
|
|
3452
2975
|
type getSpotPositionResponse200 = {
|
|
3453
|
-
data:
|
|
2976
|
+
data: GetSpotPosition200;
|
|
3454
2977
|
status: 200;
|
|
3455
2978
|
};
|
|
3456
2979
|
type getSpotPositionResponse400 = {
|
|
3457
|
-
data:
|
|
2980
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3458
2981
|
status: 400;
|
|
3459
2982
|
};
|
|
3460
2983
|
type getSpotPositionResponse404 = {
|
|
3461
|
-
data:
|
|
2984
|
+
data: SpotPositionError404Error;
|
|
3462
2985
|
status: 404;
|
|
3463
2986
|
};
|
|
2987
|
+
type getSpotPositionResponse422 = {
|
|
2988
|
+
data: ValidationErrorCodeErrorBody;
|
|
2989
|
+
status: 422;
|
|
2990
|
+
};
|
|
3464
2991
|
type getSpotPositionResponse500 = {
|
|
3465
|
-
data:
|
|
2992
|
+
data: SpotPositionError500Error;
|
|
3466
2993
|
status: 500;
|
|
3467
2994
|
};
|
|
3468
2995
|
type getSpotPositionResponseSuccess = (getSpotPositionResponse200) & {
|
|
3469
2996
|
headers: Headers;
|
|
3470
2997
|
};
|
|
3471
|
-
type getSpotPositionResponseError = (getSpotPositionResponse400 | getSpotPositionResponse404 | getSpotPositionResponse500) & {
|
|
2998
|
+
type getSpotPositionResponseError = (getSpotPositionResponse400 | getSpotPositionResponse404 | getSpotPositionResponse422 | getSpotPositionResponse500) & {
|
|
3472
2999
|
headers: Headers;
|
|
3473
3000
|
};
|
|
3474
3001
|
type getSpotPositionResponse = (getSpotPositionResponseSuccess | getSpotPositionResponseError);
|
|
3475
|
-
declare const getGetSpotPositionUrl: (userAddress:
|
|
3476
|
-
declare const getSpotPosition: (userAddress:
|
|
3002
|
+
declare const getGetSpotPositionUrl: (userAddress: PubkeyDto, positionAddress: PubkeyDto) => string;
|
|
3003
|
+
declare const getSpotPosition: (userAddress: PubkeyDto, positionAddress: PubkeyDto, options?: RequestInit) => Promise<getSpotPositionResponse>;
|
|
3477
3004
|
/**
|
|
3478
3005
|
* @summary Request user staking position
|
|
3479
3006
|
*/
|
|
3480
3007
|
type getUserStakingPositionResponse200 = {
|
|
3481
|
-
data:
|
|
3008
|
+
data: GetUserStakingPosition200;
|
|
3482
3009
|
status: 200;
|
|
3483
3010
|
};
|
|
3484
3011
|
type getUserStakingPositionResponse400 = {
|
|
3485
|
-
data:
|
|
3012
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3486
3013
|
status: 400;
|
|
3487
3014
|
};
|
|
3015
|
+
type getUserStakingPositionResponse422 = {
|
|
3016
|
+
data: ValidationErrorCodeErrorBody;
|
|
3017
|
+
status: 422;
|
|
3018
|
+
};
|
|
3488
3019
|
type getUserStakingPositionResponse500 = {
|
|
3489
|
-
data:
|
|
3020
|
+
data: InternalErrorCodeErrorBody;
|
|
3490
3021
|
status: 500;
|
|
3491
3022
|
};
|
|
3492
3023
|
type getUserStakingPositionResponseSuccess = (getUserStakingPositionResponse200) & {
|
|
3493
3024
|
headers: Headers;
|
|
3494
3025
|
};
|
|
3495
|
-
type getUserStakingPositionResponseError = (getUserStakingPositionResponse400 | getUserStakingPositionResponse500) & {
|
|
3026
|
+
type getUserStakingPositionResponseError = (getUserStakingPositionResponse400 | getUserStakingPositionResponse422 | getUserStakingPositionResponse500) & {
|
|
3496
3027
|
headers: Headers;
|
|
3497
3028
|
};
|
|
3498
3029
|
type getUserStakingPositionResponse = (getUserStakingPositionResponseSuccess | getUserStakingPositionResponseError);
|
|
3499
|
-
declare const getGetUserStakingPositionUrl: (userAddress:
|
|
3500
|
-
declare const getUserStakingPosition: (userAddress:
|
|
3030
|
+
declare const getGetUserStakingPositionUrl: (userAddress: PubkeyDto) => string;
|
|
3031
|
+
declare const getUserStakingPosition: (userAddress: PubkeyDto, options?: RequestInit) => Promise<getUserStakingPositionResponse>;
|
|
3501
3032
|
/**
|
|
3502
3033
|
* @summary Request user staking position history
|
|
3503
3034
|
*/
|
|
3504
3035
|
type getUserStakingPositionHistoryResponse200 = {
|
|
3505
|
-
data:
|
|
3036
|
+
data: GetUserStakingPositionHistory200;
|
|
3506
3037
|
status: 200;
|
|
3507
3038
|
};
|
|
3508
3039
|
type getUserStakingPositionHistoryResponse400 = {
|
|
3509
|
-
data:
|
|
3040
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3510
3041
|
status: 400;
|
|
3511
3042
|
};
|
|
3043
|
+
type getUserStakingPositionHistoryResponse422 = {
|
|
3044
|
+
data: ValidationErrorCodeErrorBody;
|
|
3045
|
+
status: 422;
|
|
3046
|
+
};
|
|
3512
3047
|
type getUserStakingPositionHistoryResponse500 = {
|
|
3513
|
-
data:
|
|
3048
|
+
data: InternalErrorCodeErrorBody;
|
|
3514
3049
|
status: 500;
|
|
3515
3050
|
};
|
|
3516
3051
|
type getUserStakingPositionHistoryResponseSuccess = (getUserStakingPositionHistoryResponse200) & {
|
|
3517
3052
|
headers: Headers;
|
|
3518
3053
|
};
|
|
3519
|
-
type getUserStakingPositionHistoryResponseError = (getUserStakingPositionHistoryResponse400 | getUserStakingPositionHistoryResponse500) & {
|
|
3054
|
+
type getUserStakingPositionHistoryResponseError = (getUserStakingPositionHistoryResponse400 | getUserStakingPositionHistoryResponse422 | getUserStakingPositionHistoryResponse500) & {
|
|
3520
3055
|
headers: Headers;
|
|
3521
3056
|
};
|
|
3522
3057
|
type getUserStakingPositionHistoryResponse = (getUserStakingPositionHistoryResponseSuccess | getUserStakingPositionHistoryResponseError);
|
|
3523
|
-
declare const getGetUserStakingPositionHistoryUrl: (userAddress:
|
|
3524
|
-
declare const getUserStakingPositionHistory: (userAddress:
|
|
3058
|
+
declare const getGetUserStakingPositionHistoryUrl: (userAddress: PubkeyDto) => string;
|
|
3059
|
+
declare const getUserStakingPositionHistory: (userAddress: PubkeyDto, options?: RequestInit) => Promise<getUserStakingPositionHistoryResponse>;
|
|
3525
3060
|
/**
|
|
3526
3061
|
* @summary Request user trade history
|
|
3527
3062
|
*/
|
|
3528
3063
|
type getTradeHistoryResponse200 = {
|
|
3529
|
-
data:
|
|
3064
|
+
data: GetTradeHistory200;
|
|
3530
3065
|
status: 200;
|
|
3531
3066
|
};
|
|
3532
3067
|
type getTradeHistoryResponse400 = {
|
|
3533
|
-
data:
|
|
3068
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3534
3069
|
status: 400;
|
|
3535
3070
|
};
|
|
3071
|
+
type getTradeHistoryResponse422 = {
|
|
3072
|
+
data: ValidationErrorCodeErrorBody;
|
|
3073
|
+
status: 422;
|
|
3074
|
+
};
|
|
3536
3075
|
type getTradeHistoryResponse500 = {
|
|
3537
|
-
data:
|
|
3076
|
+
data: InternalErrorCodeErrorBody;
|
|
3538
3077
|
status: 500;
|
|
3539
3078
|
};
|
|
3540
3079
|
type getTradeHistoryResponseSuccess = (getTradeHistoryResponse200) & {
|
|
3541
3080
|
headers: Headers;
|
|
3542
3081
|
};
|
|
3543
|
-
type getTradeHistoryResponseError = (getTradeHistoryResponse400 | getTradeHistoryResponse500) & {
|
|
3082
|
+
type getTradeHistoryResponseError = (getTradeHistoryResponse400 | getTradeHistoryResponse422 | getTradeHistoryResponse500) & {
|
|
3544
3083
|
headers: Headers;
|
|
3545
3084
|
};
|
|
3546
3085
|
type getTradeHistoryResponse = (getTradeHistoryResponseSuccess | getTradeHistoryResponseError);
|
|
3547
|
-
declare const getGetTradeHistoryUrl: (userAddress:
|
|
3548
|
-
declare const getTradeHistory: (userAddress:
|
|
3086
|
+
declare const getGetTradeHistoryUrl: (userAddress: PubkeyDto, params?: GetTradeHistoryParams) => string;
|
|
3087
|
+
declare const getTradeHistory: (userAddress: PubkeyDto, params?: GetTradeHistoryParams, options?: RequestInit) => Promise<getTradeHistoryResponse>;
|
|
3549
3088
|
/**
|
|
3550
3089
|
* @summary Request all user LP positions
|
|
3551
3090
|
*/
|
|
3552
3091
|
type getTunaPositionsResponse200 = {
|
|
3553
|
-
data:
|
|
3092
|
+
data: GetTunaPositions200;
|
|
3554
3093
|
status: 200;
|
|
3555
3094
|
};
|
|
3556
3095
|
type getTunaPositionsResponse400 = {
|
|
3557
|
-
data:
|
|
3096
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3558
3097
|
status: 400;
|
|
3559
3098
|
};
|
|
3099
|
+
type getTunaPositionsResponse422 = {
|
|
3100
|
+
data: ValidationErrorCodeErrorBody;
|
|
3101
|
+
status: 422;
|
|
3102
|
+
};
|
|
3560
3103
|
type getTunaPositionsResponse500 = {
|
|
3561
|
-
data:
|
|
3104
|
+
data: InternalErrorCodeErrorBody;
|
|
3562
3105
|
status: 500;
|
|
3563
3106
|
};
|
|
3564
3107
|
type getTunaPositionsResponseSuccess = (getTunaPositionsResponse200) & {
|
|
3565
3108
|
headers: Headers;
|
|
3566
3109
|
};
|
|
3567
|
-
type getTunaPositionsResponseError = (getTunaPositionsResponse400 | getTunaPositionsResponse500) & {
|
|
3110
|
+
type getTunaPositionsResponseError = (getTunaPositionsResponse400 | getTunaPositionsResponse422 | getTunaPositionsResponse500) & {
|
|
3568
3111
|
headers: Headers;
|
|
3569
3112
|
};
|
|
3570
3113
|
type getTunaPositionsResponse = (getTunaPositionsResponseSuccess | getTunaPositionsResponseError);
|
|
3571
|
-
declare const getGetTunaPositionsUrl: (userAddress:
|
|
3572
|
-
declare const getTunaPositions: (userAddress:
|
|
3114
|
+
declare const getGetTunaPositionsUrl: (userAddress: PubkeyDto) => string;
|
|
3115
|
+
declare const getTunaPositions: (userAddress: PubkeyDto, options?: RequestInit) => Promise<getTunaPositionsResponse>;
|
|
3573
3116
|
/**
|
|
3574
3117
|
* @summary Request LP position data by position address
|
|
3575
3118
|
*/
|
|
3576
3119
|
type getTunaPositionResponse200 = {
|
|
3577
|
-
data:
|
|
3120
|
+
data: GetTunaPosition200;
|
|
3578
3121
|
status: 200;
|
|
3579
3122
|
};
|
|
3580
3123
|
type getTunaPositionResponse400 = {
|
|
3581
|
-
data:
|
|
3124
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3582
3125
|
status: 400;
|
|
3583
3126
|
};
|
|
3127
|
+
type getTunaPositionResponse422 = {
|
|
3128
|
+
data: ValidationErrorCodeErrorBody;
|
|
3129
|
+
status: 422;
|
|
3130
|
+
};
|
|
3584
3131
|
type getTunaPositionResponse500 = {
|
|
3585
|
-
data:
|
|
3132
|
+
data: InternalErrorCodeErrorBody;
|
|
3586
3133
|
status: 500;
|
|
3587
3134
|
};
|
|
3588
3135
|
type getTunaPositionResponseSuccess = (getTunaPositionResponse200) & {
|
|
3589
3136
|
headers: Headers;
|
|
3590
3137
|
};
|
|
3591
|
-
type getTunaPositionResponseError = (getTunaPositionResponse400 | getTunaPositionResponse500) & {
|
|
3138
|
+
type getTunaPositionResponseError = (getTunaPositionResponse400 | getTunaPositionResponse422 | getTunaPositionResponse500) & {
|
|
3592
3139
|
headers: Headers;
|
|
3593
3140
|
};
|
|
3594
3141
|
type getTunaPositionResponse = (getTunaPositionResponseSuccess | getTunaPositionResponseError);
|
|
3595
|
-
declare const getGetTunaPositionUrl: (userAddress:
|
|
3596
|
-
declare const getTunaPosition: (userAddress:
|
|
3142
|
+
declare const getGetTunaPositionUrl: (userAddress: PubkeyDto, positionAddress: PubkeyDto) => string;
|
|
3143
|
+
declare const getTunaPosition: (userAddress: PubkeyDto, positionAddress: PubkeyDto, options?: RequestInit) => Promise<getTunaPositionResponse>;
|
|
3597
3144
|
/**
|
|
3598
3145
|
* @summary Request all vaults data
|
|
3599
3146
|
*/
|
|
3600
3147
|
type getVaultsResponse200 = {
|
|
3601
|
-
data:
|
|
3148
|
+
data: GetVaults200;
|
|
3602
3149
|
status: 200;
|
|
3603
3150
|
};
|
|
3604
3151
|
type getVaultsResponse500 = {
|
|
3605
|
-
data:
|
|
3152
|
+
data: InternalErrorCodeErrorBody;
|
|
3606
3153
|
status: 500;
|
|
3607
3154
|
};
|
|
3608
3155
|
type getVaultsResponseSuccess = (getVaultsResponse200) & {
|
|
@@ -3618,58 +3165,66 @@ declare const getVaults: (options?: RequestInit) => Promise<getVaultsResponse>;
|
|
|
3618
3165
|
* @summary Request vault data
|
|
3619
3166
|
*/
|
|
3620
3167
|
type getVaultResponse200 = {
|
|
3621
|
-
data:
|
|
3168
|
+
data: GetVault200;
|
|
3622
3169
|
status: 200;
|
|
3623
3170
|
};
|
|
3624
3171
|
type getVaultResponse400 = {
|
|
3625
|
-
data:
|
|
3172
|
+
data: VaultError400Error;
|
|
3626
3173
|
status: 400;
|
|
3627
3174
|
};
|
|
3628
3175
|
type getVaultResponse404 = {
|
|
3629
|
-
data:
|
|
3176
|
+
data: VaultError404Error;
|
|
3630
3177
|
status: 404;
|
|
3631
3178
|
};
|
|
3179
|
+
type getVaultResponse422 = {
|
|
3180
|
+
data: ValidationErrorCodeErrorBody;
|
|
3181
|
+
status: 422;
|
|
3182
|
+
};
|
|
3632
3183
|
type getVaultResponse500 = {
|
|
3633
|
-
data:
|
|
3184
|
+
data: VaultError500Error;
|
|
3634
3185
|
status: 500;
|
|
3635
3186
|
};
|
|
3636
3187
|
type getVaultResponseSuccess = (getVaultResponse200) & {
|
|
3637
3188
|
headers: Headers;
|
|
3638
3189
|
};
|
|
3639
|
-
type getVaultResponseError = (getVaultResponse400 | getVaultResponse404 | getVaultResponse500) & {
|
|
3190
|
+
type getVaultResponseError = (getVaultResponse400 | getVaultResponse404 | getVaultResponse422 | getVaultResponse500) & {
|
|
3640
3191
|
headers: Headers;
|
|
3641
3192
|
};
|
|
3642
3193
|
type getVaultResponse = (getVaultResponseSuccess | getVaultResponseError);
|
|
3643
|
-
declare const getGetVaultUrl: (vaultAddress:
|
|
3644
|
-
declare const getVault: (vaultAddress:
|
|
3194
|
+
declare const getGetVaultUrl: (vaultAddress: PubkeyDto) => string;
|
|
3195
|
+
declare const getVault: (vaultAddress: PubkeyDto, options?: RequestInit) => Promise<getVaultResponse>;
|
|
3645
3196
|
/**
|
|
3646
3197
|
* @summary Request vault daily stats
|
|
3647
3198
|
*/
|
|
3648
3199
|
type getVaultHistoryResponse200 = {
|
|
3649
|
-
data:
|
|
3200
|
+
data: GetVaultHistory200;
|
|
3650
3201
|
status: 200;
|
|
3651
3202
|
};
|
|
3652
3203
|
type getVaultHistoryResponse400 = {
|
|
3653
|
-
data:
|
|
3204
|
+
data: VaultError400Error;
|
|
3654
3205
|
status: 400;
|
|
3655
3206
|
};
|
|
3656
3207
|
type getVaultHistoryResponse404 = {
|
|
3657
|
-
data:
|
|
3208
|
+
data: VaultError404Error;
|
|
3658
3209
|
status: 404;
|
|
3659
3210
|
};
|
|
3211
|
+
type getVaultHistoryResponse422 = {
|
|
3212
|
+
data: ValidationErrorCodeErrorBody;
|
|
3213
|
+
status: 422;
|
|
3214
|
+
};
|
|
3660
3215
|
type getVaultHistoryResponse500 = {
|
|
3661
|
-
data:
|
|
3216
|
+
data: VaultError500Error;
|
|
3662
3217
|
status: 500;
|
|
3663
3218
|
};
|
|
3664
3219
|
type getVaultHistoryResponseSuccess = (getVaultHistoryResponse200) & {
|
|
3665
3220
|
headers: Headers;
|
|
3666
3221
|
};
|
|
3667
|
-
type getVaultHistoryResponseError = (getVaultHistoryResponse400 | getVaultHistoryResponse404 | getVaultHistoryResponse500) & {
|
|
3222
|
+
type getVaultHistoryResponseError = (getVaultHistoryResponse400 | getVaultHistoryResponse404 | getVaultHistoryResponse422 | getVaultHistoryResponse500) & {
|
|
3668
3223
|
headers: Headers;
|
|
3669
3224
|
};
|
|
3670
3225
|
type getVaultHistoryResponse = (getVaultHistoryResponseSuccess | getVaultHistoryResponseError);
|
|
3671
|
-
declare const getGetVaultHistoryUrl: (vaultAddress:
|
|
3672
|
-
declare const getVaultHistory: (vaultAddress:
|
|
3226
|
+
declare const getGetVaultHistoryUrl: (vaultAddress: PubkeyDto, params: GetVaultHistoryParams) => string;
|
|
3227
|
+
declare const getVaultHistory: (vaultAddress: PubkeyDto, params: GetVaultHistoryParams, options?: RequestInit) => Promise<getVaultHistoryResponse>;
|
|
3673
3228
|
|
|
3674
3229
|
declare function setTunaBaseUrl(url: string): void;
|
|
3675
3230
|
|
|
@@ -3711,4 +3266,4 @@ declare function eventIsTradeHistory(event: SseResponse): event is NotificationD
|
|
|
3711
3266
|
declare function eventIsOrderHistory(event: SseResponse): event is NotificationDtoOrderHistoryEntryDto;
|
|
3712
3267
|
declare function eventIsStateSnapshot(event: SseResponse): event is SnapshotContainer;
|
|
3713
3268
|
|
|
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 };
|
|
3269
|
+
export { type ApiError, type BadRequestErrorCodeErrorBody, BadRequestErrorCodeErrorBodyCode, type CloseSpotPositionQuoteDto, type DecreaseSpotPositionQuoteDto, type FeeAmountWithUsd, type FeesStatsGroupDto, type FieldError, type FusionFeesStatsGroupDto, type GetCloseSpotPositionQuote200, type GetCloseSpotPositionQuoteParams, type GetDecreaseSpotPositionQuote200, type GetDecreaseSpotPositionQuoteParams, type GetFeesStats200, type GetFeesStatsParams, type GetFusionFeesStats200, type GetFusionFeesStatsParams, type GetIncreaseSpotPositionQuote200, type GetIncreaseSpotPositionQuoteParams, type GetLendingPosition200, type GetLendingPosition200Data, type GetLendingPositions200, type GetLimitOrder200, type GetLimitOrderError404Error, GetLimitOrderError404ErrorCode, type GetLimitOrderError500Error, GetLimitOrderError500ErrorCode, type GetLimitOrderQuoteByInput200, type GetLimitOrderQuoteByInputParams, type GetLimitOrderQuoteByOutput200, type GetLimitOrderQuoteByOutputParams, type GetLimitOrders200, type GetLimitOrdersParams, type GetLpPositionActions200, type GetLpPositions200, type GetLpPositionsParams, type GetLpSpotLeaderboard200, type GetLpSpotLeaderboardParams, type GetMarket200, type GetMarkets200, type GetMint200, type GetMints200, type GetOraclePrice200, type GetOraclePrices200, type GetOrderHistory200, type GetOrderHistoryParams, type GetPool200, type GetPoolCandles200, type GetPoolCandlesParams, type GetPoolOrderBook200, type GetPoolOrderBookParams, type GetPoolSwaps200, type GetPoolTicks200, type GetPools200, type GetPoolsParams, type GetPositionsStats200, type GetPositionsStatsParams, type GetPositionsTotal200, type GetSpotPosition200, type GetSpotPositions200, type GetStakingLeaderboard200, type GetStakingLeaderboardParams, type GetStakingRevenueStats200, type GetStakingRevenueStatsParams, type GetStakingTreasury200, type GetSwapQuoteByInput200, type GetSwapQuoteByInputParams, type GetSwapQuoteByOutput200, type GetSwapQuoteByOutputParams, type GetTradableAmount200, type GetTradableAmountParams, type GetTradeHistory200, type GetTradeHistoryParams, type GetTunaPosition200, type GetTunaPosition200Data, type GetTunaPositions200, type GetUserStakingPosition200, type GetUserStakingPositionHistory200, type GetVault200, type GetVaultHistory200, type GetVaultHistoryParams, type GetVaults200, type HttpStatusData, type I128Dto, type I64Dto, type IncreaseSpotPositionQuoteDto, type InternalErrorCodeErrorBody, InternalErrorCodeErrorBodyCode, type LeaderboardError400BadRequest, LeaderboardError400BadRequestCode, type LeaderboardError400Error, type LeaderboardError500Error, LeaderboardError500ErrorCode, type LeaderboardItemDto, LeaderboardPeriod, LeaderboardSortBy, type LendingPositionDto, type LimitOrderDto, type LimitOrderDtoCloseTxSignature, type LimitOrderDtoClosedAt, type LimitOrderQuoteByInputDto, type LimitOrderQuoteByOutputDto, LimitOrderStatus, type LpPositionsError400BadRequest, LpPositionsError400BadRequestCode, type LpPositionsError400Error, type LpPositionsError500Error, LpPositionsError500ErrorCode, type MarketDto, type MarketError404Error, MarketError404ErrorCode, type MarketError500Error, MarketError500ErrorCode, type MintDto, type MintError404Error, MintError404ErrorCode, type MintError500Error, MintError500ErrorCode, 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 OraclePriceError404Error, OraclePriceError404ErrorCode, type OraclePriceError500Error, OraclePriceError500ErrorCode, 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 PoolStatsGroupDto, type PoolStatsGroupEntryDto, type PoolSubscription, type PoolSubscriptionIsInverted, type PoolSubscriptionOrderBookPriceStep, PoolSubscriptionTopic, type PoolSwapDto, type PoolTicksDto, type PoolsError400BadRequest, PoolsError400BadRequestCode, type PoolsError400Error, type PoolsError404Error, PoolsError404ErrorCode, type PoolsError500Error, PoolsError500ErrorCode, type PubkeyDto, type Snapshot, type SnapshotContainer, type SnapshotFusionLimitOrders, type SnapshotMarkets, type SnapshotOraclePrices, type SnapshotOraclePricesAnyOf, type SnapshotOrderBooks, type SnapshotTunaLpPositions, type SnapshotTunaSpotPositions, type SpotPositionError404Error, SpotPositionError404ErrorCode, type SpotPositionError500Error, SpotPositionError500ErrorCode, type SseResponse, type StakingDepositsStatsDto, type StakingError400BadRequest, StakingError400BadRequestCode, type StakingError400Error, type StakingError500Error, StakingError500ErrorCode, type StakingLeaderboardPositionDto, type StakingPositionActionDto, StakingPositionActionType, type StakingPositionDto, type StakingPositionDtoLastUnstakedAt, type StakingPositionDtoRank, type StakingPositionDtoWithdrawAvailableAt, type StatsError400BadRequest, StatsError400BadRequestCode, type StatsError400Error, type StatsError500Error, StatsError500ErrorCode, 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 U128Dto, type U64Dto, type UpdateStreamSubscription200, type UpdateStreamSubscriptionError404Error, UpdateStreamSubscriptionError404ErrorCode, type UpdateStreamSubscriptionError500Error, UpdateStreamSubscriptionError500ErrorCode, type ValidationErrorCodeErrorBody, ValidationErrorCodeErrorBodyCode, type ValidationErrorCodeErrorBodyData, type ValidationErrorCodeValidationDetailsErrorBody, ValidationErrorCodeValidationDetailsErrorBodyCode, type ValidationErrorCodeValidationDetailsErrorBodyData, type VaultDto, type VaultError400BadRequest, VaultError400BadRequestCode, type VaultError400Error, type VaultError404Error, VaultError404ErrorCode, type VaultError500Error, VaultError500ErrorCode, type VaultStatsDto, type VestingDto, type VestingDtoLockedAt, type WalletSubscription, WalletSubscriptionTopic, eventIsInitialMessage, eventIsLendingPosition, eventIsOrderHistory, eventIsPoolSwap, eventIsStakingPosition, eventIsStateSnapshot, eventIsTradeHistory, getCloseSpotPositionQuote, type getCloseSpotPositionQuoteResponse, type getCloseSpotPositionQuoteResponse200, type getCloseSpotPositionQuoteResponse400, type getCloseSpotPositionQuoteResponse422, type getCloseSpotPositionQuoteResponse500, type getCloseSpotPositionQuoteResponseError, type getCloseSpotPositionQuoteResponseSuccess, getDecreaseSpotPositionQuote, type getDecreaseSpotPositionQuoteResponse, type getDecreaseSpotPositionQuoteResponse200, type getDecreaseSpotPositionQuoteResponse400, type getDecreaseSpotPositionQuoteResponse422, type getDecreaseSpotPositionQuoteResponse500, type getDecreaseSpotPositionQuoteResponseError, type getDecreaseSpotPositionQuoteResponseSuccess, getFeesStats, type getFeesStatsResponse, type getFeesStatsResponse200, type getFeesStatsResponse400, type getFeesStatsResponse422, type getFeesStatsResponse500, type getFeesStatsResponseError, type getFeesStatsResponseSuccess, getFusionFeesStats, type getFusionFeesStatsResponse, type getFusionFeesStatsResponse200, type getFusionFeesStatsResponse400, type getFusionFeesStatsResponse422, 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 getIncreaseSpotPositionQuoteResponse422, type getIncreaseSpotPositionQuoteResponse500, type getIncreaseSpotPositionQuoteResponseError, type getIncreaseSpotPositionQuoteResponseSuccess, getLendingPosition, type getLendingPositionResponse, type getLendingPositionResponse200, type getLendingPositionResponse400, type getLendingPositionResponse422, type getLendingPositionResponse500, type getLendingPositionResponseError, type getLendingPositionResponseSuccess, getLendingPositions, type getLendingPositionsResponse, type getLendingPositionsResponse200, type getLendingPositionsResponse400, type getLendingPositionsResponse422, 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 getLimitOrderQuoteByOutputResponse422, type getLimitOrderQuoteByOutputResponse500, 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 getLimitOrdersResponse422, type getLimitOrdersResponse500, type getLimitOrdersResponseError, type getLimitOrdersResponseSuccess, getLpPositionActions, type getLpPositionActionsResponse, type getLpPositionActionsResponse200, type getLpPositionActionsResponse400, type getLpPositionActionsResponse422, type getLpPositionActionsResponse500, type getLpPositionActionsResponseError, type getLpPositionActionsResponseSuccess, getLpPositions, type getLpPositionsResponse, type getLpPositionsResponse200, type getLpPositionsResponse400, type getLpPositionsResponse422, type getLpPositionsResponse500, type getLpPositionsResponseError, type getLpPositionsResponseSuccess, getLpSpotLeaderboard, type getLpSpotLeaderboardResponse, type getLpSpotLeaderboardResponse200, type getLpSpotLeaderboardResponse400, type getLpSpotLeaderboardResponse422, type getLpSpotLeaderboardResponse500, type getLpSpotLeaderboardResponseError, type getLpSpotLeaderboardResponseSuccess, getMarket, type getMarketResponse, type getMarketResponse200, type getMarketResponse400, type getMarketResponse404, type getMarketResponse422, 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 getMintResponse422, 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 getOraclePriceResponse422, 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 getOrderHistoryResponse422, type getOrderHistoryResponse500, type getOrderHistoryResponseError, type getOrderHistoryResponseSuccess, getPool, getPoolCandles, type getPoolCandlesResponse, type getPoolCandlesResponse200, type getPoolCandlesResponse400, type getPoolCandlesResponse404, type getPoolCandlesResponse422, type getPoolCandlesResponse500, type getPoolCandlesResponseError, type getPoolCandlesResponseSuccess, getPoolOrderBook, type getPoolOrderBookResponse, type getPoolOrderBookResponse200, type getPoolOrderBookResponse400, type getPoolOrderBookResponse404, type getPoolOrderBookResponse422, type getPoolOrderBookResponse500, type getPoolOrderBookResponseError, type getPoolOrderBookResponseSuccess, type getPoolResponse, type getPoolResponse200, type getPoolResponse400, type getPoolResponse404, type getPoolResponse422, type getPoolResponse500, type getPoolResponseError, type getPoolResponseSuccess, getPoolSwaps, type getPoolSwapsResponse, type getPoolSwapsResponse200, type getPoolSwapsResponse400, type getPoolSwapsResponse404, type getPoolSwapsResponse422, type getPoolSwapsResponse500, type getPoolSwapsResponseError, type getPoolSwapsResponseSuccess, getPoolTicks, type getPoolTicksResponse, type getPoolTicksResponse200, type getPoolTicksResponse400, type getPoolTicksResponse404, type getPoolTicksResponse422, type getPoolTicksResponse500, type getPoolTicksResponseError, type getPoolTicksResponseSuccess, getPools, type getPoolsResponse, type getPoolsResponse200, type getPoolsResponse400, type getPoolsResponse422, type getPoolsResponse500, type getPoolsResponseError, type getPoolsResponseSuccess, getPositionsStats, type getPositionsStatsResponse, type getPositionsStatsResponse200, type getPositionsStatsResponse400, type getPositionsStatsResponse422, 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 getSpotPositionResponse422, type getSpotPositionResponse500, type getSpotPositionResponseError, type getSpotPositionResponseSuccess, getSpotPositions, type getSpotPositionsResponse, type getSpotPositionsResponse200, type getSpotPositionsResponse400, type getSpotPositionsResponse422, type getSpotPositionsResponse500, type getSpotPositionsResponseError, type getSpotPositionsResponseSuccess, getSseUpdatesStream, getSseUrl, getStakingLeaderboard, type getStakingLeaderboardResponse, type getStakingLeaderboardResponse200, type getStakingLeaderboardResponse400, type getStakingLeaderboardResponse422, type getStakingLeaderboardResponse500, type getStakingLeaderboardResponseError, type getStakingLeaderboardResponseSuccess, getStakingRevenueStats, type getStakingRevenueStatsResponse, type getStakingRevenueStatsResponse200, type getStakingRevenueStatsResponse400, type getStakingRevenueStatsResponse422, 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 getSwapQuoteByInputResponse422, type getSwapQuoteByInputResponse500, type getSwapQuoteByInputResponseError, type getSwapQuoteByInputResponseSuccess, getSwapQuoteByOutput, type getSwapQuoteByOutputResponse, type getSwapQuoteByOutputResponse200, type getSwapQuoteByOutputResponse400, type getSwapQuoteByOutputResponse422, type getSwapQuoteByOutputResponse500, type getSwapQuoteByOutputResponseError, type getSwapQuoteByOutputResponseSuccess, getTradableAmount, type getTradableAmountResponse, type getTradableAmountResponse200, type getTradableAmountResponse400, type getTradableAmountResponse422, type getTradableAmountResponse500, type getTradableAmountResponseError, type getTradableAmountResponseSuccess, getTradeHistory, type getTradeHistoryResponse, type getTradeHistoryResponse200, type getTradeHistoryResponse400, type getTradeHistoryResponse422, type getTradeHistoryResponse500, type getTradeHistoryResponseError, type getTradeHistoryResponseSuccess, getTunaPosition, type getTunaPositionResponse, type getTunaPositionResponse200, type getTunaPositionResponse400, type getTunaPositionResponse422, type getTunaPositionResponse500, type getTunaPositionResponseError, type getTunaPositionResponseSuccess, getTunaPositions, type getTunaPositionsResponse, type getTunaPositionsResponse200, type getTunaPositionsResponse400, type getTunaPositionsResponse422, type getTunaPositionsResponse500, type getTunaPositionsResponseError, type getTunaPositionsResponseSuccess, getUpdateStreamSubscriptionUrl, getUserStakingPosition, getUserStakingPositionHistory, type getUserStakingPositionHistoryResponse, type getUserStakingPositionHistoryResponse200, type getUserStakingPositionHistoryResponse400, type getUserStakingPositionHistoryResponse422, type getUserStakingPositionHistoryResponse500, type getUserStakingPositionHistoryResponseError, type getUserStakingPositionHistoryResponseSuccess, type getUserStakingPositionResponse, type getUserStakingPositionResponse200, type getUserStakingPositionResponse400, type getUserStakingPositionResponse422, type getUserStakingPositionResponse500, type getUserStakingPositionResponseError, type getUserStakingPositionResponseSuccess, getVault, getVaultHistory, type getVaultHistoryResponse, type getVaultHistoryResponse200, type getVaultHistoryResponse400, type getVaultHistoryResponse404, type getVaultHistoryResponse422, type getVaultHistoryResponse500, type getVaultHistoryResponseError, type getVaultHistoryResponseSuccess, type getVaultResponse, type getVaultResponse200, type getVaultResponse400, type getVaultResponse404, type getVaultResponse422, 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 updateStreamSubscriptionResponse404, type updateStreamSubscriptionResponse422, type updateStreamSubscriptionResponse500, type updateStreamSubscriptionResponseError, type updateStreamSubscriptionResponseSuccess };
|