@crypticdot/defituna-api 3.0.4 → 3.1.0
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 +822 -1268
- package/dist/index.d.ts +822 -1268
- package/dist/index.js +102 -6
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2,1018 +2,92 @@ 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;
|
|
11
11
|
}
|
|
12
12
|
interface CloseSpotPositionQuoteDto {
|
|
13
|
-
/** Confirmed position decrease percentage (100% = 1.0) */
|
|
14
|
-
decreasePercent: number;
|
|
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[];
|
|
13
|
+
/** Confirmed position decrease percentage (100% = 1.0) */
|
|
14
|
+
decreasePercent: number;
|
|
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;
|
|
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: {
|
|
@@ -1039,6 +113,14 @@ interface HashMap {
|
|
|
1039
113
|
interface HttpStatusData {
|
|
1040
114
|
status: string;
|
|
1041
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* Signed 128-bit integer represented as decimal string in JSON and OpenAPI.
|
|
118
|
+
*/
|
|
119
|
+
type I128Dto = bigint;
|
|
120
|
+
/**
|
|
121
|
+
* Signed 64-bit integer represented as decimal string in JSON and OpenAPI.
|
|
122
|
+
*/
|
|
123
|
+
type I64Dto = bigint;
|
|
1042
124
|
interface IncreaseSpotPositionQuoteDto {
|
|
1043
125
|
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
1044
126
|
borrowAmount: bigint;
|
|
@@ -1066,6 +148,21 @@ declare const InternalErrorCodeErrorBodyCode: {
|
|
|
1066
148
|
interface InternalErrorCodeErrorBody {
|
|
1067
149
|
code: InternalErrorCodeErrorBodyCode;
|
|
1068
150
|
}
|
|
151
|
+
type LeaderboardError400BadRequestCode = typeof LeaderboardError400BadRequestCode[keyof typeof LeaderboardError400BadRequestCode];
|
|
152
|
+
declare const LeaderboardError400BadRequestCode: {
|
|
153
|
+
readonly badRequest: "bad_request";
|
|
154
|
+
};
|
|
155
|
+
interface LeaderboardError400BadRequest {
|
|
156
|
+
code: LeaderboardError400BadRequestCode;
|
|
157
|
+
}
|
|
158
|
+
type LeaderboardError400Error = LeaderboardError400BadRequest | BadRequestErrorCodeErrorBody;
|
|
159
|
+
type LeaderboardError500ErrorCode = typeof LeaderboardError500ErrorCode[keyof typeof LeaderboardError500ErrorCode];
|
|
160
|
+
declare const LeaderboardError500ErrorCode: {
|
|
161
|
+
readonly internalError: "internal_error";
|
|
162
|
+
};
|
|
163
|
+
interface LeaderboardError500Error {
|
|
164
|
+
code: LeaderboardError500ErrorCode;
|
|
165
|
+
}
|
|
1069
166
|
interface LeaderboardItemDto {
|
|
1070
167
|
/** Solana public key (base58) */
|
|
1071
168
|
authority: string;
|
|
@@ -1147,6 +244,21 @@ declare const LimitOrderStatus: {
|
|
|
1147
244
|
readonly complete: "complete";
|
|
1148
245
|
readonly cancelled: "cancelled";
|
|
1149
246
|
};
|
|
247
|
+
type LpPositionsError400BadRequestCode = typeof LpPositionsError400BadRequestCode[keyof typeof LpPositionsError400BadRequestCode];
|
|
248
|
+
declare const LpPositionsError400BadRequestCode: {
|
|
249
|
+
readonly badRequest: "bad_request";
|
|
250
|
+
};
|
|
251
|
+
interface LpPositionsError400BadRequest {
|
|
252
|
+
code: LpPositionsError400BadRequestCode;
|
|
253
|
+
}
|
|
254
|
+
type LpPositionsError400Error = LpPositionsError400BadRequest | BadRequestErrorCodeErrorBody;
|
|
255
|
+
type LpPositionsError500ErrorCode = typeof LpPositionsError500ErrorCode[keyof typeof LpPositionsError500ErrorCode];
|
|
256
|
+
declare const LpPositionsError500ErrorCode: {
|
|
257
|
+
readonly internalError: "internal_error";
|
|
258
|
+
};
|
|
259
|
+
interface LpPositionsError500Error {
|
|
260
|
+
code: LpPositionsError500ErrorCode;
|
|
261
|
+
}
|
|
1150
262
|
interface MarketDto {
|
|
1151
263
|
/** Solana public key (base58) */
|
|
1152
264
|
address: string;
|
|
@@ -1178,6 +290,20 @@ interface MarketDto {
|
|
|
1178
290
|
/** @minimum 0 */
|
|
1179
291
|
rebalanceProtocolFee: number;
|
|
1180
292
|
}
|
|
293
|
+
type MarketError404ErrorCode = typeof MarketError404ErrorCode[keyof typeof MarketError404ErrorCode];
|
|
294
|
+
declare const MarketError404ErrorCode: {
|
|
295
|
+
readonly notFound: "not_found";
|
|
296
|
+
};
|
|
297
|
+
interface MarketError404Error {
|
|
298
|
+
code: MarketError404ErrorCode;
|
|
299
|
+
}
|
|
300
|
+
type MarketError500ErrorCode = typeof MarketError500ErrorCode[keyof typeof MarketError500ErrorCode];
|
|
301
|
+
declare const MarketError500ErrorCode: {
|
|
302
|
+
readonly internalError: "internal_error";
|
|
303
|
+
};
|
|
304
|
+
interface MarketError500Error {
|
|
305
|
+
code: MarketError500ErrorCode;
|
|
306
|
+
}
|
|
1181
307
|
interface MintDto {
|
|
1182
308
|
/** Solana public key (base58) */
|
|
1183
309
|
address: string;
|
|
@@ -1186,6 +312,20 @@ interface MintDto {
|
|
|
1186
312
|
name: string;
|
|
1187
313
|
symbol: string;
|
|
1188
314
|
}
|
|
315
|
+
type MintError404ErrorCode = typeof MintError404ErrorCode[keyof typeof MintError404ErrorCode];
|
|
316
|
+
declare const MintError404ErrorCode: {
|
|
317
|
+
readonly notFound: "not_found";
|
|
318
|
+
};
|
|
319
|
+
interface MintError404Error {
|
|
320
|
+
code: MintError404ErrorCode;
|
|
321
|
+
}
|
|
322
|
+
type MintError500ErrorCode = typeof MintError500ErrorCode[keyof typeof MintError500ErrorCode];
|
|
323
|
+
declare const MintError500ErrorCode: {
|
|
324
|
+
readonly internalError: "internal_error";
|
|
325
|
+
};
|
|
326
|
+
interface MintError500Error {
|
|
327
|
+
code: MintError500ErrorCode;
|
|
328
|
+
}
|
|
1189
329
|
type NotificationAction = typeof NotificationAction[keyof typeof NotificationAction];
|
|
1190
330
|
declare const NotificationAction: {
|
|
1191
331
|
readonly create: "create";
|
|
@@ -1410,6 +550,20 @@ interface OraclePriceDto {
|
|
|
1410
550
|
price: bigint;
|
|
1411
551
|
time: Date;
|
|
1412
552
|
}
|
|
553
|
+
type OraclePriceError404ErrorCode = typeof OraclePriceError404ErrorCode[keyof typeof OraclePriceError404ErrorCode];
|
|
554
|
+
declare const OraclePriceError404ErrorCode: {
|
|
555
|
+
readonly notFound: "not_found";
|
|
556
|
+
};
|
|
557
|
+
interface OraclePriceError404Error {
|
|
558
|
+
code: OraclePriceError404ErrorCode;
|
|
559
|
+
}
|
|
560
|
+
type OraclePriceError500ErrorCode = typeof OraclePriceError500ErrorCode[keyof typeof OraclePriceError500ErrorCode];
|
|
561
|
+
declare const OraclePriceError500ErrorCode: {
|
|
562
|
+
readonly internalError: "internal_error";
|
|
563
|
+
};
|
|
564
|
+
interface OraclePriceError500Error {
|
|
565
|
+
code: OraclePriceError500ErrorCode;
|
|
566
|
+
}
|
|
1413
567
|
interface OrderBookDto {
|
|
1414
568
|
entries: OrderBookEntryDto[];
|
|
1415
569
|
/** Solana public key (base58) */
|
|
@@ -1607,6 +761,28 @@ interface PoolTicksDto {
|
|
|
1607
761
|
tickSpacing: number;
|
|
1608
762
|
ticks: TickDto[];
|
|
1609
763
|
}
|
|
764
|
+
type PoolsError400BadRequestCode = typeof PoolsError400BadRequestCode[keyof typeof PoolsError400BadRequestCode];
|
|
765
|
+
declare const PoolsError400BadRequestCode: {
|
|
766
|
+
readonly badRequest: "bad_request";
|
|
767
|
+
};
|
|
768
|
+
interface PoolsError400BadRequest {
|
|
769
|
+
code: PoolsError400BadRequestCode;
|
|
770
|
+
}
|
|
771
|
+
type PoolsError400Error = PoolsError400BadRequest | BadRequestErrorCodeErrorBody;
|
|
772
|
+
type PoolsError404ErrorCode = typeof PoolsError404ErrorCode[keyof typeof PoolsError404ErrorCode];
|
|
773
|
+
declare const PoolsError404ErrorCode: {
|
|
774
|
+
readonly notFound: "not_found";
|
|
775
|
+
};
|
|
776
|
+
interface PoolsError404Error {
|
|
777
|
+
code: PoolsError404ErrorCode;
|
|
778
|
+
}
|
|
779
|
+
type PoolsError500ErrorCode = typeof PoolsError500ErrorCode[keyof typeof PoolsError500ErrorCode];
|
|
780
|
+
declare const PoolsError500ErrorCode: {
|
|
781
|
+
readonly internalError: "internal_error";
|
|
782
|
+
};
|
|
783
|
+
interface PoolsError500Error {
|
|
784
|
+
code: PoolsError500ErrorCode;
|
|
785
|
+
}
|
|
1610
786
|
/**
|
|
1611
787
|
* Pubkey represented as base58 string in JSON and OpenAPI.
|
|
1612
788
|
|
|
@@ -1641,6 +817,20 @@ interface SnapshotContainer {
|
|
|
1641
817
|
entity: string;
|
|
1642
818
|
id: string;
|
|
1643
819
|
}
|
|
820
|
+
type SpotPositionError404ErrorCode = typeof SpotPositionError404ErrorCode[keyof typeof SpotPositionError404ErrorCode];
|
|
821
|
+
declare const SpotPositionError404ErrorCode: {
|
|
822
|
+
readonly notFound: "not_found";
|
|
823
|
+
};
|
|
824
|
+
interface SpotPositionError404Error {
|
|
825
|
+
code: SpotPositionError404ErrorCode;
|
|
826
|
+
}
|
|
827
|
+
type SpotPositionError500ErrorCode = typeof SpotPositionError500ErrorCode[keyof typeof SpotPositionError500ErrorCode];
|
|
828
|
+
declare const SpotPositionError500ErrorCode: {
|
|
829
|
+
readonly internalError: "internal_error";
|
|
830
|
+
};
|
|
831
|
+
interface SpotPositionError500Error {
|
|
832
|
+
code: SpotPositionError500ErrorCode;
|
|
833
|
+
}
|
|
1644
834
|
type SseResponse = StreamInitalMessage | NotificationDtoPoolSwapDto | NotificationDtoStakingPositionDto | NotificationDtoLendingPositionDto | NotificationDtoTradeHistoryEntryDto | NotificationDtoOrderHistoryEntryDto | SnapshotContainer;
|
|
1645
835
|
interface StakingDepositsStatsDto {
|
|
1646
836
|
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
@@ -1651,6 +841,21 @@ interface StakingDepositsStatsDto {
|
|
|
1651
841
|
totalDepositsSol: bigint;
|
|
1652
842
|
totalDepositsUsd: number;
|
|
1653
843
|
}
|
|
844
|
+
type StakingError400BadRequestCode = typeof StakingError400BadRequestCode[keyof typeof StakingError400BadRequestCode];
|
|
845
|
+
declare const StakingError400BadRequestCode: {
|
|
846
|
+
readonly badRequest: "bad_request";
|
|
847
|
+
};
|
|
848
|
+
interface StakingError400BadRequest {
|
|
849
|
+
code: StakingError400BadRequestCode;
|
|
850
|
+
}
|
|
851
|
+
type StakingError400Error = StakingError400BadRequest | BadRequestErrorCodeErrorBody;
|
|
852
|
+
type StakingError500ErrorCode = typeof StakingError500ErrorCode[keyof typeof StakingError500ErrorCode];
|
|
853
|
+
declare const StakingError500ErrorCode: {
|
|
854
|
+
readonly internalError: "internal_error";
|
|
855
|
+
};
|
|
856
|
+
interface StakingError500Error {
|
|
857
|
+
code: StakingError500ErrorCode;
|
|
858
|
+
}
|
|
1654
859
|
interface StakingLeaderboardPositionDto {
|
|
1655
860
|
/** Solana public key (base58) */
|
|
1656
861
|
address: string;
|
|
@@ -1698,6 +903,21 @@ interface StakingPositionDto {
|
|
|
1698
903
|
vesting: VestingDto;
|
|
1699
904
|
withdrawAvailableAt?: StakingPositionDtoWithdrawAvailableAt;
|
|
1700
905
|
}
|
|
906
|
+
type StatsError400BadRequestCode = typeof StatsError400BadRequestCode[keyof typeof StatsError400BadRequestCode];
|
|
907
|
+
declare const StatsError400BadRequestCode: {
|
|
908
|
+
readonly badRequest: "bad_request";
|
|
909
|
+
};
|
|
910
|
+
interface StatsError400BadRequest {
|
|
911
|
+
code: StatsError400BadRequestCode;
|
|
912
|
+
}
|
|
913
|
+
type StatsError400Error = StatsError400BadRequest | BadRequestErrorCodeErrorBody;
|
|
914
|
+
type StatsError500ErrorCode = typeof StatsError500ErrorCode[keyof typeof StatsError500ErrorCode];
|
|
915
|
+
declare const StatsError500ErrorCode: {
|
|
916
|
+
readonly internalError: "internal_error";
|
|
917
|
+
};
|
|
918
|
+
interface StatsError500Error {
|
|
919
|
+
code: StatsError500ErrorCode;
|
|
920
|
+
}
|
|
1701
921
|
/**
|
|
1702
922
|
* First message sent to the client containing stream id for subscription updates
|
|
1703
923
|
*/
|
|
@@ -2121,6 +1341,28 @@ declare const TunaSpotPositionDtoState: {
|
|
|
2121
1341
|
readonly open: "open";
|
|
2122
1342
|
readonly closed: "closed";
|
|
2123
1343
|
};
|
|
1344
|
+
/**
|
|
1345
|
+
* Unsigned 128-bit integer represented as decimal string in JSON and OpenAPI.
|
|
1346
|
+
*/
|
|
1347
|
+
type U128Dto = bigint;
|
|
1348
|
+
/**
|
|
1349
|
+
* Unsigned 64-bit integer represented as decimal string in JSON and OpenAPI.
|
|
1350
|
+
*/
|
|
1351
|
+
type U64Dto = bigint;
|
|
1352
|
+
type UpdateStreamSubscriptionError404ErrorCode = typeof UpdateStreamSubscriptionError404ErrorCode[keyof typeof UpdateStreamSubscriptionError404ErrorCode];
|
|
1353
|
+
declare const UpdateStreamSubscriptionError404ErrorCode: {
|
|
1354
|
+
readonly notFound: "not_found";
|
|
1355
|
+
};
|
|
1356
|
+
interface UpdateStreamSubscriptionError404Error {
|
|
1357
|
+
code: UpdateStreamSubscriptionError404ErrorCode;
|
|
1358
|
+
}
|
|
1359
|
+
type UpdateStreamSubscriptionError500ErrorCode = typeof UpdateStreamSubscriptionError500ErrorCode[keyof typeof UpdateStreamSubscriptionError500ErrorCode];
|
|
1360
|
+
declare const UpdateStreamSubscriptionError500ErrorCode: {
|
|
1361
|
+
readonly internalError: "internal_error";
|
|
1362
|
+
};
|
|
1363
|
+
interface UpdateStreamSubscriptionError500Error {
|
|
1364
|
+
code: UpdateStreamSubscriptionError500ErrorCode;
|
|
1365
|
+
}
|
|
2124
1366
|
type ValidationErrorCodeErrorBodyCode = typeof ValidationErrorCodeErrorBodyCode[keyof typeof ValidationErrorCodeErrorBodyCode];
|
|
2125
1367
|
declare const ValidationErrorCodeErrorBodyCode: {
|
|
2126
1368
|
readonly validationFailed: "validation_failed";
|
|
@@ -2165,6 +1407,28 @@ interface VaultDto {
|
|
|
2165
1407
|
supplyLimit: TokenAmountWithUsd;
|
|
2166
1408
|
utilization: number;
|
|
2167
1409
|
}
|
|
1410
|
+
type VaultError400BadRequestCode = typeof VaultError400BadRequestCode[keyof typeof VaultError400BadRequestCode];
|
|
1411
|
+
declare const VaultError400BadRequestCode: {
|
|
1412
|
+
readonly badRequest: "bad_request";
|
|
1413
|
+
};
|
|
1414
|
+
interface VaultError400BadRequest {
|
|
1415
|
+
code: VaultError400BadRequestCode;
|
|
1416
|
+
}
|
|
1417
|
+
type VaultError400Error = VaultError400BadRequest | BadRequestErrorCodeErrorBody;
|
|
1418
|
+
type VaultError404ErrorCode = typeof VaultError404ErrorCode[keyof typeof VaultError404ErrorCode];
|
|
1419
|
+
declare const VaultError404ErrorCode: {
|
|
1420
|
+
readonly notFound: "not_found";
|
|
1421
|
+
};
|
|
1422
|
+
interface VaultError404Error {
|
|
1423
|
+
code: VaultError404ErrorCode;
|
|
1424
|
+
}
|
|
1425
|
+
type VaultError500ErrorCode = typeof VaultError500ErrorCode[keyof typeof VaultError500ErrorCode];
|
|
1426
|
+
declare const VaultError500ErrorCode: {
|
|
1427
|
+
readonly internalError: "internal_error";
|
|
1428
|
+
};
|
|
1429
|
+
interface VaultError500Error {
|
|
1430
|
+
code: VaultError500ErrorCode;
|
|
1431
|
+
}
|
|
2168
1432
|
interface VaultStatsDto {
|
|
2169
1433
|
borrow: TokenAmountWithUsd;
|
|
2170
1434
|
borrowApr: number;
|
|
@@ -2234,9 +1498,37 @@ type GetLpSpotLeaderboardParams = {
|
|
|
2234
1498
|
*/
|
|
2235
1499
|
pageSize?: number;
|
|
2236
1500
|
};
|
|
1501
|
+
type GetLpSpotLeaderboard200 = {
|
|
1502
|
+
data: LeaderboardItemDto[];
|
|
1503
|
+
meta: PaginationMeta;
|
|
1504
|
+
};
|
|
1505
|
+
type GetMarkets200 = {
|
|
1506
|
+
data: MarketDto[];
|
|
1507
|
+
};
|
|
1508
|
+
type GetMarket200 = {
|
|
1509
|
+
data: MarketDto;
|
|
1510
|
+
};
|
|
1511
|
+
type GetMints200 = {
|
|
1512
|
+
data: MintDto[];
|
|
1513
|
+
};
|
|
1514
|
+
type GetMint200 = {
|
|
1515
|
+
data: MintDto;
|
|
1516
|
+
};
|
|
1517
|
+
type GetOraclePrices200 = {
|
|
1518
|
+
data: OraclePriceDto[];
|
|
1519
|
+
};
|
|
1520
|
+
type GetOraclePrice200 = {
|
|
1521
|
+
data: OraclePriceDto;
|
|
1522
|
+
};
|
|
2237
1523
|
type GetPoolsParams = {
|
|
2238
1524
|
provider?: string;
|
|
2239
1525
|
};
|
|
1526
|
+
type GetPools200 = {
|
|
1527
|
+
data: PoolDto[];
|
|
1528
|
+
};
|
|
1529
|
+
type GetPool200 = {
|
|
1530
|
+
data: PoolDto;
|
|
1531
|
+
};
|
|
2240
1532
|
type GetPoolCandlesParams = {
|
|
2241
1533
|
from: Date;
|
|
2242
1534
|
to: Date;
|
|
@@ -2246,10 +1538,22 @@ type GetPoolCandlesParams = {
|
|
|
2246
1538
|
candles: number;
|
|
2247
1539
|
interval: string;
|
|
2248
1540
|
};
|
|
1541
|
+
type GetPoolCandles200 = {
|
|
1542
|
+
data: PoolPriceCandleDto[];
|
|
1543
|
+
};
|
|
2249
1544
|
type GetPoolOrderBookParams = {
|
|
2250
1545
|
priceStep: number;
|
|
2251
1546
|
inverted?: boolean;
|
|
2252
1547
|
};
|
|
1548
|
+
type GetPoolOrderBook200 = {
|
|
1549
|
+
data: OrderBookDto;
|
|
1550
|
+
};
|
|
1551
|
+
type GetPoolSwaps200 = {
|
|
1552
|
+
data: PoolSwapDto[];
|
|
1553
|
+
};
|
|
1554
|
+
type GetPoolTicks200 = {
|
|
1555
|
+
data: PoolTicksDto;
|
|
1556
|
+
};
|
|
2253
1557
|
type GetCloseSpotPositionQuoteParams = {
|
|
2254
1558
|
market: PubkeyDto;
|
|
2255
1559
|
/**
|
|
@@ -2268,21 +1572,15 @@ type GetCloseSpotPositionQuoteParams = {
|
|
|
2268
1572
|
* @minimum 0
|
|
2269
1573
|
*/
|
|
2270
1574
|
positionToken: number;
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
* Unsigned 64-bit integer encoded as a decimal string
|
|
2277
|
-
*/
|
|
2278
|
-
positionDebt?: bigint;
|
|
1575
|
+
positionAmount: U64Dto;
|
|
1576
|
+
positionDebt: U64Dto;
|
|
1577
|
+
};
|
|
1578
|
+
type GetCloseSpotPositionQuote200 = {
|
|
1579
|
+
data: CloseSpotPositionQuoteDto;
|
|
2279
1580
|
};
|
|
2280
1581
|
type GetDecreaseSpotPositionQuoteParams = {
|
|
2281
1582
|
market: PubkeyDto;
|
|
2282
|
-
|
|
2283
|
-
* Unsigned 64-bit integer encoded as a decimal string
|
|
2284
|
-
*/
|
|
2285
|
-
decreaseAmount?: bigint;
|
|
1583
|
+
decreaseAmount: U64Dto;
|
|
2286
1584
|
/**
|
|
2287
1585
|
* @minimum 0
|
|
2288
1586
|
*/
|
|
@@ -2297,21 +1595,15 @@ type GetDecreaseSpotPositionQuoteParams = {
|
|
|
2297
1595
|
* @minimum 0
|
|
2298
1596
|
*/
|
|
2299
1597
|
positionToken: number;
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
* Unsigned 64-bit integer encoded as a decimal string
|
|
2306
|
-
*/
|
|
2307
|
-
positionDebt?: bigint;
|
|
1598
|
+
positionAmount: U64Dto;
|
|
1599
|
+
positionDebt: U64Dto;
|
|
1600
|
+
};
|
|
1601
|
+
type GetDecreaseSpotPositionQuote200 = {
|
|
1602
|
+
data: DecreaseSpotPositionQuoteDto;
|
|
2308
1603
|
};
|
|
2309
1604
|
type GetIncreaseSpotPositionQuoteParams = {
|
|
2310
1605
|
market: PubkeyDto;
|
|
2311
|
-
|
|
2312
|
-
* Unsigned 64-bit integer encoded as a decimal string
|
|
2313
|
-
*/
|
|
2314
|
-
increaseAmount?: bigint;
|
|
1606
|
+
increaseAmount: U64Dto;
|
|
2315
1607
|
/**
|
|
2316
1608
|
* @minimum 0
|
|
2317
1609
|
*/
|
|
@@ -2325,21 +1617,15 @@ type GetIncreaseSpotPositionQuoteParams = {
|
|
|
2325
1617
|
* @minimum 0
|
|
2326
1618
|
*/
|
|
2327
1619
|
slippageTolerance?: number;
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
* Unsigned 64-bit integer encoded as a decimal string
|
|
2334
|
-
*/
|
|
2335
|
-
positionDebt?: bigint;
|
|
1620
|
+
positionAmount?: U64Dto;
|
|
1621
|
+
positionDebt?: U64Dto;
|
|
1622
|
+
};
|
|
1623
|
+
type GetIncreaseSpotPositionQuote200 = {
|
|
1624
|
+
data: IncreaseSpotPositionQuoteDto;
|
|
2336
1625
|
};
|
|
2337
1626
|
type GetLimitOrderQuoteByInputParams = {
|
|
2338
1627
|
pool: PubkeyDto;
|
|
2339
|
-
|
|
2340
|
-
* Unsigned 64-bit integer encoded as a decimal string
|
|
2341
|
-
*/
|
|
2342
|
-
amountIn?: bigint;
|
|
1628
|
+
amountIn: U64Dto;
|
|
2343
1629
|
aToB: boolean;
|
|
2344
1630
|
tickIndex: number;
|
|
2345
1631
|
};
|
|
@@ -2348,58 +1634,55 @@ type GetLimitOrderQuoteByInput200 = {
|
|
|
2348
1634
|
};
|
|
2349
1635
|
type GetLimitOrderQuoteByOutputParams = {
|
|
2350
1636
|
pool: PubkeyDto;
|
|
2351
|
-
|
|
2352
|
-
* Unsigned 64-bit integer encoded as a decimal string
|
|
2353
|
-
*/
|
|
2354
|
-
amountOut?: bigint;
|
|
1637
|
+
amountOut: U64Dto;
|
|
2355
1638
|
aToB: boolean;
|
|
2356
1639
|
tickIndex: number;
|
|
2357
1640
|
};
|
|
1641
|
+
type GetLimitOrderQuoteByOutput200 = {
|
|
1642
|
+
data: LimitOrderQuoteByOutputDto;
|
|
1643
|
+
};
|
|
2358
1644
|
type GetSwapQuoteByInputParams = {
|
|
2359
1645
|
pool: PubkeyDto;
|
|
2360
|
-
|
|
2361
|
-
* Unsigned 64-bit integer encoded as a decimal string
|
|
2362
|
-
*/
|
|
2363
|
-
amountIn?: bigint;
|
|
1646
|
+
amountIn: U64Dto;
|
|
2364
1647
|
aToB: boolean;
|
|
2365
1648
|
/**
|
|
2366
1649
|
* @minimum 0
|
|
2367
1650
|
*/
|
|
2368
1651
|
slippageTolerance?: number;
|
|
2369
1652
|
};
|
|
1653
|
+
type GetSwapQuoteByInput200 = {
|
|
1654
|
+
data: SwapQuoteByInputDto;
|
|
1655
|
+
};
|
|
2370
1656
|
type GetSwapQuoteByOutputParams = {
|
|
2371
1657
|
pool: PubkeyDto;
|
|
2372
|
-
|
|
2373
|
-
* Unsigned 64-bit integer encoded as a decimal string
|
|
2374
|
-
*/
|
|
2375
|
-
amountOut?: bigint;
|
|
1658
|
+
amountOut: U64Dto;
|
|
2376
1659
|
aToB: boolean;
|
|
2377
1660
|
/**
|
|
2378
1661
|
* @minimum 0
|
|
2379
1662
|
*/
|
|
2380
1663
|
slippageTolerance?: number;
|
|
2381
1664
|
};
|
|
1665
|
+
type GetSwapQuoteByOutput200 = {
|
|
1666
|
+
data: SwapQuoteByOutputDto;
|
|
1667
|
+
};
|
|
2382
1668
|
type GetTradableAmountParams = {
|
|
2383
1669
|
market: PubkeyDto;
|
|
2384
1670
|
/**
|
|
2385
1671
|
* @minimum 0
|
|
2386
1672
|
*/
|
|
2387
1673
|
collateralToken: number;
|
|
2388
|
-
|
|
2389
|
-
* Unsigned 64-bit integer encoded as a decimal string
|
|
2390
|
-
*/
|
|
2391
|
-
availableBalance?: bigint;
|
|
1674
|
+
availableBalance: U64Dto;
|
|
2392
1675
|
leverage: number;
|
|
2393
1676
|
/**
|
|
2394
1677
|
* @minimum 0
|
|
2395
1678
|
*/
|
|
2396
1679
|
positionToken: number;
|
|
2397
|
-
|
|
2398
|
-
* Unsigned 64-bit integer encoded as a decimal string
|
|
2399
|
-
*/
|
|
2400
|
-
positionAmount?: bigint;
|
|
1680
|
+
positionAmount: U64Dto;
|
|
2401
1681
|
increase: boolean;
|
|
2402
1682
|
};
|
|
1683
|
+
type GetTradableAmount200 = {
|
|
1684
|
+
data: TradableAmountDto;
|
|
1685
|
+
};
|
|
2403
1686
|
type GetStakingLeaderboardParams = {
|
|
2404
1687
|
/**
|
|
2405
1688
|
* @minimum 0
|
|
@@ -2411,16 +1694,29 @@ type GetStakingLeaderboardParams = {
|
|
|
2411
1694
|
pageSize?: number;
|
|
2412
1695
|
search?: string;
|
|
2413
1696
|
};
|
|
1697
|
+
type GetStakingLeaderboard200 = {
|
|
1698
|
+
data: StakingLeaderboardPositionDto[];
|
|
1699
|
+
meta: PaginationMeta;
|
|
1700
|
+
};
|
|
1701
|
+
type GetStakingTreasury200 = {
|
|
1702
|
+
data: TreasuryDto;
|
|
1703
|
+
};
|
|
2414
1704
|
type GetFeesStatsParams = {
|
|
2415
1705
|
from: Date;
|
|
2416
1706
|
to: Date;
|
|
2417
1707
|
interval?: string;
|
|
2418
1708
|
};
|
|
1709
|
+
type GetFeesStats200 = {
|
|
1710
|
+
data: FeesStatsGroupDto[];
|
|
1711
|
+
};
|
|
2419
1712
|
type GetFusionFeesStatsParams = {
|
|
2420
1713
|
from: Date;
|
|
2421
1714
|
to: Date;
|
|
2422
1715
|
interval?: string;
|
|
2423
1716
|
};
|
|
1717
|
+
type GetFusionFeesStats200 = {
|
|
1718
|
+
data: FusionFeesStatsGroupDto[];
|
|
1719
|
+
};
|
|
2424
1720
|
type GetPositionsStatsParams = {
|
|
2425
1721
|
from: Date;
|
|
2426
1722
|
to: Date;
|
|
@@ -2431,10 +1727,29 @@ type GetPositionsStatsParams = {
|
|
|
2431
1727
|
*/
|
|
2432
1728
|
Unused?: string;
|
|
2433
1729
|
};
|
|
1730
|
+
type GetPositionsStats200 = {
|
|
1731
|
+
data: TunaLpPositionsStats[];
|
|
1732
|
+
};
|
|
1733
|
+
type GetPositionsTotal200 = {
|
|
1734
|
+
data: bigint;
|
|
1735
|
+
};
|
|
2434
1736
|
type GetStakingRevenueStatsParams = {
|
|
2435
1737
|
from: string;
|
|
2436
1738
|
to: string;
|
|
2437
1739
|
};
|
|
1740
|
+
type GetStakingRevenueStats200 = {
|
|
1741
|
+
data: StakingDepositsStatsDto[];
|
|
1742
|
+
};
|
|
1743
|
+
type UpdateStreamSubscription200 = {
|
|
1744
|
+
data: HttpStatusData;
|
|
1745
|
+
};
|
|
1746
|
+
type GetLendingPositions200 = {
|
|
1747
|
+
data: LendingPositionDto[];
|
|
1748
|
+
};
|
|
1749
|
+
type GetLendingPosition200Data = null | LendingPositionDto;
|
|
1750
|
+
type GetLendingPosition200 = {
|
|
1751
|
+
data: GetLendingPosition200Data;
|
|
1752
|
+
};
|
|
2438
1753
|
type GetLimitOrdersParams = {
|
|
2439
1754
|
/**
|
|
2440
1755
|
* List of pool public keys to filter by
|
|
@@ -2466,6 +1781,9 @@ type GetLimitOrdersParams = {
|
|
|
2466
1781
|
*/
|
|
2467
1782
|
limit?: number;
|
|
2468
1783
|
};
|
|
1784
|
+
type GetLimitOrders200 = {
|
|
1785
|
+
data: LimitOrderDto[];
|
|
1786
|
+
};
|
|
2469
1787
|
type GetLimitOrder200 = {
|
|
2470
1788
|
data: LimitOrderDto;
|
|
2471
1789
|
};
|
|
@@ -2488,6 +1806,12 @@ type GetLpPositionsParams = {
|
|
|
2488
1806
|
*/
|
|
2489
1807
|
limit?: number;
|
|
2490
1808
|
};
|
|
1809
|
+
type GetLpPositions200 = {
|
|
1810
|
+
data: TunaLpPositionDto[];
|
|
1811
|
+
};
|
|
1812
|
+
type GetLpPositionActions200 = {
|
|
1813
|
+
data: TunaLpPositionActionDto[];
|
|
1814
|
+
};
|
|
2491
1815
|
type GetOrderHistoryParams = {
|
|
2492
1816
|
pool?: string[];
|
|
2493
1817
|
orderType?: OrderHistoryType[];
|
|
@@ -2519,6 +1843,21 @@ type GetOrderHistoryParams = {
|
|
|
2519
1843
|
*/
|
|
2520
1844
|
limit?: number;
|
|
2521
1845
|
};
|
|
1846
|
+
type GetOrderHistory200 = {
|
|
1847
|
+
data: OrderHistoryEntryDto[];
|
|
1848
|
+
};
|
|
1849
|
+
type GetSpotPositions200 = {
|
|
1850
|
+
data: TunaSpotPositionDto[];
|
|
1851
|
+
};
|
|
1852
|
+
type GetSpotPosition200 = {
|
|
1853
|
+
data: TunaSpotPositionDto;
|
|
1854
|
+
};
|
|
1855
|
+
type GetUserStakingPosition200 = {
|
|
1856
|
+
data: StakingPositionDto;
|
|
1857
|
+
};
|
|
1858
|
+
type GetUserStakingPositionHistory200 = {
|
|
1859
|
+
data: StakingPositionActionDto[];
|
|
1860
|
+
};
|
|
2522
1861
|
type GetTradeHistoryParams = {
|
|
2523
1862
|
pool?: string[];
|
|
2524
1863
|
action?: TradeHistoryAction[];
|
|
@@ -2550,29 +1889,52 @@ type GetTradeHistoryParams = {
|
|
|
2550
1889
|
*/
|
|
2551
1890
|
limit?: number;
|
|
2552
1891
|
};
|
|
1892
|
+
type GetTradeHistory200 = {
|
|
1893
|
+
data: TradeHistoryEntryDto[];
|
|
1894
|
+
};
|
|
1895
|
+
type GetTunaPositions200 = {
|
|
1896
|
+
data: TunaPositionDto[];
|
|
1897
|
+
};
|
|
1898
|
+
type GetTunaPosition200Data = null | TunaPositionDto;
|
|
1899
|
+
type GetTunaPosition200 = {
|
|
1900
|
+
data: GetTunaPosition200Data;
|
|
1901
|
+
};
|
|
1902
|
+
type GetVaults200 = {
|
|
1903
|
+
data: VaultDto[];
|
|
1904
|
+
};
|
|
1905
|
+
type GetVault200 = {
|
|
1906
|
+
data: VaultDto;
|
|
1907
|
+
};
|
|
2553
1908
|
type GetVaultHistoryParams = {
|
|
2554
1909
|
from: string;
|
|
2555
1910
|
to: string;
|
|
2556
1911
|
};
|
|
1912
|
+
type GetVaultHistory200 = {
|
|
1913
|
+
data: VaultStatsDto[];
|
|
1914
|
+
};
|
|
2557
1915
|
/**
|
|
2558
1916
|
* @summary Request LP and Spot leaderboard
|
|
2559
1917
|
*/
|
|
2560
1918
|
type getLpSpotLeaderboardResponse200 = {
|
|
2561
|
-
data:
|
|
1919
|
+
data: GetLpSpotLeaderboard200;
|
|
2562
1920
|
status: 200;
|
|
2563
1921
|
};
|
|
2564
1922
|
type getLpSpotLeaderboardResponse400 = {
|
|
2565
|
-
data:
|
|
1923
|
+
data: LeaderboardError400Error;
|
|
2566
1924
|
status: 400;
|
|
2567
1925
|
};
|
|
1926
|
+
type getLpSpotLeaderboardResponse422 = {
|
|
1927
|
+
data: ValidationErrorCodeErrorBody;
|
|
1928
|
+
status: 422;
|
|
1929
|
+
};
|
|
2568
1930
|
type getLpSpotLeaderboardResponse500 = {
|
|
2569
|
-
data:
|
|
1931
|
+
data: LeaderboardError500Error;
|
|
2570
1932
|
status: 500;
|
|
2571
1933
|
};
|
|
2572
1934
|
type getLpSpotLeaderboardResponseSuccess = (getLpSpotLeaderboardResponse200) & {
|
|
2573
1935
|
headers: Headers;
|
|
2574
1936
|
};
|
|
2575
|
-
type getLpSpotLeaderboardResponseError = (getLpSpotLeaderboardResponse400 | getLpSpotLeaderboardResponse500) & {
|
|
1937
|
+
type getLpSpotLeaderboardResponseError = (getLpSpotLeaderboardResponse400 | getLpSpotLeaderboardResponse422 | getLpSpotLeaderboardResponse500) & {
|
|
2576
1938
|
headers: Headers;
|
|
2577
1939
|
};
|
|
2578
1940
|
type getLpSpotLeaderboardResponse = (getLpSpotLeaderboardResponseSuccess | getLpSpotLeaderboardResponseError);
|
|
@@ -2582,11 +1944,11 @@ declare const getLpSpotLeaderboard: (params?: GetLpSpotLeaderboardParams, option
|
|
|
2582
1944
|
* @summary Request all markets
|
|
2583
1945
|
*/
|
|
2584
1946
|
type getMarketsResponse200 = {
|
|
2585
|
-
data:
|
|
1947
|
+
data: GetMarkets200;
|
|
2586
1948
|
status: 200;
|
|
2587
1949
|
};
|
|
2588
1950
|
type getMarketsResponse500 = {
|
|
2589
|
-
data:
|
|
1951
|
+
data: InternalErrorCodeErrorBody;
|
|
2590
1952
|
status: 500;
|
|
2591
1953
|
};
|
|
2592
1954
|
type getMarketsResponseSuccess = (getMarketsResponse200) & {
|
|
@@ -2602,39 +1964,43 @@ declare const getMarkets: (options?: RequestInit) => Promise<getMarketsResponse>
|
|
|
2602
1964
|
* @summary Request market data
|
|
2603
1965
|
*/
|
|
2604
1966
|
type getMarketResponse200 = {
|
|
2605
|
-
data:
|
|
1967
|
+
data: GetMarket200;
|
|
2606
1968
|
status: 200;
|
|
2607
1969
|
};
|
|
2608
1970
|
type getMarketResponse400 = {
|
|
2609
|
-
data:
|
|
1971
|
+
data: BadRequestErrorCodeErrorBody;
|
|
2610
1972
|
status: 400;
|
|
2611
1973
|
};
|
|
2612
1974
|
type getMarketResponse404 = {
|
|
2613
|
-
data:
|
|
1975
|
+
data: MarketError404Error;
|
|
2614
1976
|
status: 404;
|
|
2615
1977
|
};
|
|
1978
|
+
type getMarketResponse422 = {
|
|
1979
|
+
data: ValidationErrorCodeErrorBody;
|
|
1980
|
+
status: 422;
|
|
1981
|
+
};
|
|
2616
1982
|
type getMarketResponse500 = {
|
|
2617
|
-
data:
|
|
1983
|
+
data: MarketError500Error;
|
|
2618
1984
|
status: 500;
|
|
2619
1985
|
};
|
|
2620
1986
|
type getMarketResponseSuccess = (getMarketResponse200) & {
|
|
2621
1987
|
headers: Headers;
|
|
2622
1988
|
};
|
|
2623
|
-
type getMarketResponseError = (getMarketResponse400 | getMarketResponse404 | getMarketResponse500) & {
|
|
1989
|
+
type getMarketResponseError = (getMarketResponse400 | getMarketResponse404 | getMarketResponse422 | getMarketResponse500) & {
|
|
2624
1990
|
headers: Headers;
|
|
2625
1991
|
};
|
|
2626
1992
|
type getMarketResponse = (getMarketResponseSuccess | getMarketResponseError);
|
|
2627
|
-
declare const getGetMarketUrl: (marketAddress:
|
|
2628
|
-
declare const getMarket: (marketAddress:
|
|
1993
|
+
declare const getGetMarketUrl: (marketAddress: PubkeyDto) => string;
|
|
1994
|
+
declare const getMarket: (marketAddress: PubkeyDto, options?: RequestInit) => Promise<getMarketResponse>;
|
|
2629
1995
|
/**
|
|
2630
1996
|
* @summary Request all mints
|
|
2631
1997
|
*/
|
|
2632
1998
|
type getMintsResponse200 = {
|
|
2633
|
-
data:
|
|
1999
|
+
data: GetMints200;
|
|
2634
2000
|
status: 200;
|
|
2635
2001
|
};
|
|
2636
2002
|
type getMintsResponse500 = {
|
|
2637
|
-
data:
|
|
2003
|
+
data: InternalErrorCodeErrorBody;
|
|
2638
2004
|
status: 500;
|
|
2639
2005
|
};
|
|
2640
2006
|
type getMintsResponseSuccess = (getMintsResponse200) & {
|
|
@@ -2650,39 +2016,43 @@ declare const getMints: (options?: RequestInit) => Promise<getMintsResponse>;
|
|
|
2650
2016
|
* @summary Request mint data
|
|
2651
2017
|
*/
|
|
2652
2018
|
type getMintResponse200 = {
|
|
2653
|
-
data:
|
|
2019
|
+
data: GetMint200;
|
|
2654
2020
|
status: 200;
|
|
2655
2021
|
};
|
|
2656
2022
|
type getMintResponse400 = {
|
|
2657
|
-
data:
|
|
2023
|
+
data: BadRequestErrorCodeErrorBody;
|
|
2658
2024
|
status: 400;
|
|
2659
2025
|
};
|
|
2660
2026
|
type getMintResponse404 = {
|
|
2661
|
-
data:
|
|
2027
|
+
data: MintError404Error;
|
|
2662
2028
|
status: 404;
|
|
2663
2029
|
};
|
|
2030
|
+
type getMintResponse422 = {
|
|
2031
|
+
data: ValidationErrorCodeErrorBody;
|
|
2032
|
+
status: 422;
|
|
2033
|
+
};
|
|
2664
2034
|
type getMintResponse500 = {
|
|
2665
|
-
data:
|
|
2035
|
+
data: MintError500Error;
|
|
2666
2036
|
status: 500;
|
|
2667
2037
|
};
|
|
2668
2038
|
type getMintResponseSuccess = (getMintResponse200) & {
|
|
2669
2039
|
headers: Headers;
|
|
2670
2040
|
};
|
|
2671
|
-
type getMintResponseError = (getMintResponse400 | getMintResponse404 | getMintResponse500) & {
|
|
2041
|
+
type getMintResponseError = (getMintResponse400 | getMintResponse404 | getMintResponse422 | getMintResponse500) & {
|
|
2672
2042
|
headers: Headers;
|
|
2673
2043
|
};
|
|
2674
2044
|
type getMintResponse = (getMintResponseSuccess | getMintResponseError);
|
|
2675
|
-
declare const getGetMintUrl: (mintAddress:
|
|
2676
|
-
declare const getMint: (mintAddress:
|
|
2045
|
+
declare const getGetMintUrl: (mintAddress: PubkeyDto) => string;
|
|
2046
|
+
declare const getMint: (mintAddress: PubkeyDto, options?: RequestInit) => Promise<getMintResponse>;
|
|
2677
2047
|
/**
|
|
2678
2048
|
* @summary Request all Oracle prices
|
|
2679
2049
|
*/
|
|
2680
2050
|
type getOraclePricesResponse200 = {
|
|
2681
|
-
data:
|
|
2051
|
+
data: GetOraclePrices200;
|
|
2682
2052
|
status: 200;
|
|
2683
2053
|
};
|
|
2684
2054
|
type getOraclePricesResponse500 = {
|
|
2685
|
-
data:
|
|
2055
|
+
data: InternalErrorCodeErrorBody;
|
|
2686
2056
|
status: 500;
|
|
2687
2057
|
};
|
|
2688
2058
|
type getOraclePricesResponseSuccess = (getOraclePricesResponse200) & {
|
|
@@ -2698,45 +2068,57 @@ declare const getOraclePrices: (options?: RequestInit) => Promise<getOraclePrice
|
|
|
2698
2068
|
* @summary Request Oracle price for mint
|
|
2699
2069
|
*/
|
|
2700
2070
|
type getOraclePriceResponse200 = {
|
|
2701
|
-
data:
|
|
2071
|
+
data: GetOraclePrice200;
|
|
2702
2072
|
status: 200;
|
|
2703
2073
|
};
|
|
2704
2074
|
type getOraclePriceResponse400 = {
|
|
2705
|
-
data:
|
|
2075
|
+
data: BadRequestErrorCodeErrorBody;
|
|
2706
2076
|
status: 400;
|
|
2707
2077
|
};
|
|
2708
2078
|
type getOraclePriceResponse404 = {
|
|
2709
|
-
data:
|
|
2079
|
+
data: OraclePriceError404Error;
|
|
2710
2080
|
status: 404;
|
|
2711
2081
|
};
|
|
2082
|
+
type getOraclePriceResponse422 = {
|
|
2083
|
+
data: ValidationErrorCodeErrorBody;
|
|
2084
|
+
status: 422;
|
|
2085
|
+
};
|
|
2712
2086
|
type getOraclePriceResponse500 = {
|
|
2713
|
-
data:
|
|
2087
|
+
data: OraclePriceError500Error;
|
|
2714
2088
|
status: 500;
|
|
2715
2089
|
};
|
|
2716
2090
|
type getOraclePriceResponseSuccess = (getOraclePriceResponse200) & {
|
|
2717
2091
|
headers: Headers;
|
|
2718
2092
|
};
|
|
2719
|
-
type getOraclePriceResponseError = (getOraclePriceResponse400 | getOraclePriceResponse404 | getOraclePriceResponse500) & {
|
|
2093
|
+
type getOraclePriceResponseError = (getOraclePriceResponse400 | getOraclePriceResponse404 | getOraclePriceResponse422 | getOraclePriceResponse500) & {
|
|
2720
2094
|
headers: Headers;
|
|
2721
2095
|
};
|
|
2722
2096
|
type getOraclePriceResponse = (getOraclePriceResponseSuccess | getOraclePriceResponseError);
|
|
2723
|
-
declare const getGetOraclePriceUrl: (mintAddress:
|
|
2724
|
-
declare const getOraclePrice: (mintAddress:
|
|
2097
|
+
declare const getGetOraclePriceUrl: (mintAddress: PubkeyDto) => string;
|
|
2098
|
+
declare const getOraclePrice: (mintAddress: PubkeyDto, options?: RequestInit) => Promise<getOraclePriceResponse>;
|
|
2725
2099
|
/**
|
|
2726
2100
|
* @summary Request all pools
|
|
2727
2101
|
*/
|
|
2728
2102
|
type getPoolsResponse200 = {
|
|
2729
|
-
data:
|
|
2103
|
+
data: GetPools200;
|
|
2730
2104
|
status: 200;
|
|
2731
2105
|
};
|
|
2106
|
+
type getPoolsResponse400 = {
|
|
2107
|
+
data: BadRequestErrorCodeErrorBody;
|
|
2108
|
+
status: 400;
|
|
2109
|
+
};
|
|
2110
|
+
type getPoolsResponse422 = {
|
|
2111
|
+
data: ValidationErrorCodeErrorBody;
|
|
2112
|
+
status: 422;
|
|
2113
|
+
};
|
|
2732
2114
|
type getPoolsResponse500 = {
|
|
2733
|
-
data:
|
|
2115
|
+
data: InternalErrorCodeErrorBody;
|
|
2734
2116
|
status: 500;
|
|
2735
2117
|
};
|
|
2736
2118
|
type getPoolsResponseSuccess = (getPoolsResponse200) & {
|
|
2737
2119
|
headers: Headers;
|
|
2738
2120
|
};
|
|
2739
|
-
type getPoolsResponseError = (getPoolsResponse500) & {
|
|
2121
|
+
type getPoolsResponseError = (getPoolsResponse400 | getPoolsResponse422 | getPoolsResponse500) & {
|
|
2740
2122
|
headers: Headers;
|
|
2741
2123
|
};
|
|
2742
2124
|
type getPoolsResponse = (getPoolsResponseSuccess | getPoolsResponseError);
|
|
@@ -2746,153 +2128,185 @@ declare const getPools: (params?: GetPoolsParams, options?: RequestInit) => Prom
|
|
|
2746
2128
|
* @summary Request pool data
|
|
2747
2129
|
*/
|
|
2748
2130
|
type getPoolResponse200 = {
|
|
2749
|
-
data:
|
|
2131
|
+
data: GetPool200;
|
|
2750
2132
|
status: 200;
|
|
2751
2133
|
};
|
|
2752
2134
|
type getPoolResponse400 = {
|
|
2753
|
-
data:
|
|
2135
|
+
data: PoolsError400Error;
|
|
2754
2136
|
status: 400;
|
|
2755
2137
|
};
|
|
2756
2138
|
type getPoolResponse404 = {
|
|
2757
|
-
data:
|
|
2139
|
+
data: PoolsError404Error;
|
|
2758
2140
|
status: 404;
|
|
2759
2141
|
};
|
|
2142
|
+
type getPoolResponse422 = {
|
|
2143
|
+
data: ValidationErrorCodeErrorBody;
|
|
2144
|
+
status: 422;
|
|
2145
|
+
};
|
|
2760
2146
|
type getPoolResponse500 = {
|
|
2761
|
-
data:
|
|
2147
|
+
data: PoolsError500Error;
|
|
2762
2148
|
status: 500;
|
|
2763
2149
|
};
|
|
2764
2150
|
type getPoolResponseSuccess = (getPoolResponse200) & {
|
|
2765
2151
|
headers: Headers;
|
|
2766
2152
|
};
|
|
2767
|
-
type getPoolResponseError = (getPoolResponse400 | getPoolResponse404 | getPoolResponse500) & {
|
|
2153
|
+
type getPoolResponseError = (getPoolResponse400 | getPoolResponse404 | getPoolResponse422 | getPoolResponse500) & {
|
|
2768
2154
|
headers: Headers;
|
|
2769
2155
|
};
|
|
2770
2156
|
type getPoolResponse = (getPoolResponseSuccess | getPoolResponseError);
|
|
2771
|
-
declare const getGetPoolUrl: (poolAddress:
|
|
2772
|
-
declare const getPool: (poolAddress:
|
|
2157
|
+
declare const getGetPoolUrl: (poolAddress: PubkeyDto) => string;
|
|
2158
|
+
declare const getPool: (poolAddress: PubkeyDto, options?: RequestInit) => Promise<getPoolResponse>;
|
|
2773
2159
|
/**
|
|
2774
2160
|
* @summary Request pool candles
|
|
2775
2161
|
*/
|
|
2776
2162
|
type getPoolCandlesResponse200 = {
|
|
2777
|
-
data:
|
|
2163
|
+
data: GetPoolCandles200;
|
|
2778
2164
|
status: 200;
|
|
2779
2165
|
};
|
|
2780
2166
|
type getPoolCandlesResponse400 = {
|
|
2781
|
-
data:
|
|
2167
|
+
data: PoolsError400Error;
|
|
2782
2168
|
status: 400;
|
|
2783
2169
|
};
|
|
2170
|
+
type getPoolCandlesResponse404 = {
|
|
2171
|
+
data: PoolsError404Error;
|
|
2172
|
+
status: 404;
|
|
2173
|
+
};
|
|
2174
|
+
type getPoolCandlesResponse422 = {
|
|
2175
|
+
data: ValidationErrorCodeErrorBody;
|
|
2176
|
+
status: 422;
|
|
2177
|
+
};
|
|
2784
2178
|
type getPoolCandlesResponse500 = {
|
|
2785
|
-
data:
|
|
2179
|
+
data: PoolsError500Error;
|
|
2786
2180
|
status: 500;
|
|
2787
2181
|
};
|
|
2788
2182
|
type getPoolCandlesResponseSuccess = (getPoolCandlesResponse200) & {
|
|
2789
2183
|
headers: Headers;
|
|
2790
2184
|
};
|
|
2791
|
-
type getPoolCandlesResponseError = (getPoolCandlesResponse400 | getPoolCandlesResponse500) & {
|
|
2185
|
+
type getPoolCandlesResponseError = (getPoolCandlesResponse400 | getPoolCandlesResponse404 | getPoolCandlesResponse422 | getPoolCandlesResponse500) & {
|
|
2792
2186
|
headers: Headers;
|
|
2793
2187
|
};
|
|
2794
2188
|
type getPoolCandlesResponse = (getPoolCandlesResponseSuccess | getPoolCandlesResponseError);
|
|
2795
|
-
declare const getGetPoolCandlesUrl: (poolAddress:
|
|
2796
|
-
declare const getPoolCandles: (poolAddress:
|
|
2189
|
+
declare const getGetPoolCandlesUrl: (poolAddress: PubkeyDto, params: GetPoolCandlesParams) => string;
|
|
2190
|
+
declare const getPoolCandles: (poolAddress: PubkeyDto, params: GetPoolCandlesParams, options?: RequestInit) => Promise<getPoolCandlesResponse>;
|
|
2797
2191
|
/**
|
|
2798
2192
|
* @summary Request pool order book
|
|
2799
2193
|
*/
|
|
2800
2194
|
type getPoolOrderBookResponse200 = {
|
|
2801
|
-
data:
|
|
2195
|
+
data: GetPoolOrderBook200;
|
|
2802
2196
|
status: 200;
|
|
2803
2197
|
};
|
|
2804
2198
|
type getPoolOrderBookResponse400 = {
|
|
2805
|
-
data:
|
|
2199
|
+
data: PoolsError400Error;
|
|
2806
2200
|
status: 400;
|
|
2807
2201
|
};
|
|
2808
2202
|
type getPoolOrderBookResponse404 = {
|
|
2809
|
-
data:
|
|
2203
|
+
data: PoolsError404Error;
|
|
2810
2204
|
status: 404;
|
|
2811
2205
|
};
|
|
2206
|
+
type getPoolOrderBookResponse422 = {
|
|
2207
|
+
data: ValidationErrorCodeErrorBody;
|
|
2208
|
+
status: 422;
|
|
2209
|
+
};
|
|
2812
2210
|
type getPoolOrderBookResponse500 = {
|
|
2813
|
-
data:
|
|
2211
|
+
data: PoolsError500Error;
|
|
2814
2212
|
status: 500;
|
|
2815
2213
|
};
|
|
2816
2214
|
type getPoolOrderBookResponseSuccess = (getPoolOrderBookResponse200) & {
|
|
2817
2215
|
headers: Headers;
|
|
2818
2216
|
};
|
|
2819
|
-
type getPoolOrderBookResponseError = (getPoolOrderBookResponse400 | getPoolOrderBookResponse404 | getPoolOrderBookResponse500) & {
|
|
2217
|
+
type getPoolOrderBookResponseError = (getPoolOrderBookResponse400 | getPoolOrderBookResponse404 | getPoolOrderBookResponse422 | getPoolOrderBookResponse500) & {
|
|
2820
2218
|
headers: Headers;
|
|
2821
2219
|
};
|
|
2822
2220
|
type getPoolOrderBookResponse = (getPoolOrderBookResponseSuccess | getPoolOrderBookResponseError);
|
|
2823
|
-
declare const getGetPoolOrderBookUrl: (poolAddress:
|
|
2824
|
-
declare const getPoolOrderBook: (poolAddress:
|
|
2221
|
+
declare const getGetPoolOrderBookUrl: (poolAddress: PubkeyDto, params: GetPoolOrderBookParams) => string;
|
|
2222
|
+
declare const getPoolOrderBook: (poolAddress: PubkeyDto, params: GetPoolOrderBookParams, options?: RequestInit) => Promise<getPoolOrderBookResponse>;
|
|
2825
2223
|
/**
|
|
2826
2224
|
* @summary Request pool swaps
|
|
2827
2225
|
*/
|
|
2828
2226
|
type getPoolSwapsResponse200 = {
|
|
2829
|
-
data:
|
|
2227
|
+
data: GetPoolSwaps200;
|
|
2830
2228
|
status: 200;
|
|
2831
2229
|
};
|
|
2832
2230
|
type getPoolSwapsResponse400 = {
|
|
2833
|
-
data:
|
|
2231
|
+
data: PoolsError400Error;
|
|
2834
2232
|
status: 400;
|
|
2835
2233
|
};
|
|
2836
2234
|
type getPoolSwapsResponse404 = {
|
|
2837
|
-
data:
|
|
2235
|
+
data: PoolsError404Error;
|
|
2838
2236
|
status: 404;
|
|
2839
2237
|
};
|
|
2238
|
+
type getPoolSwapsResponse422 = {
|
|
2239
|
+
data: ValidationErrorCodeErrorBody;
|
|
2240
|
+
status: 422;
|
|
2241
|
+
};
|
|
2840
2242
|
type getPoolSwapsResponse500 = {
|
|
2841
|
-
data:
|
|
2243
|
+
data: PoolsError500Error;
|
|
2842
2244
|
status: 500;
|
|
2843
2245
|
};
|
|
2844
2246
|
type getPoolSwapsResponseSuccess = (getPoolSwapsResponse200) & {
|
|
2845
2247
|
headers: Headers;
|
|
2846
2248
|
};
|
|
2847
|
-
type getPoolSwapsResponseError = (getPoolSwapsResponse400 | getPoolSwapsResponse404 | getPoolSwapsResponse500) & {
|
|
2249
|
+
type getPoolSwapsResponseError = (getPoolSwapsResponse400 | getPoolSwapsResponse404 | getPoolSwapsResponse422 | getPoolSwapsResponse500) & {
|
|
2848
2250
|
headers: Headers;
|
|
2849
2251
|
};
|
|
2850
2252
|
type getPoolSwapsResponse = (getPoolSwapsResponseSuccess | getPoolSwapsResponseError);
|
|
2851
|
-
declare const getGetPoolSwapsUrl: (poolAddress:
|
|
2852
|
-
declare const getPoolSwaps: (poolAddress:
|
|
2253
|
+
declare const getGetPoolSwapsUrl: (poolAddress: PubkeyDto) => string;
|
|
2254
|
+
declare const getPoolSwaps: (poolAddress: PubkeyDto, options?: RequestInit) => Promise<getPoolSwapsResponse>;
|
|
2853
2255
|
/**
|
|
2854
2256
|
* @summary Request pool ticks
|
|
2855
2257
|
*/
|
|
2856
2258
|
type getPoolTicksResponse200 = {
|
|
2857
|
-
data:
|
|
2259
|
+
data: GetPoolTicks200;
|
|
2858
2260
|
status: 200;
|
|
2859
2261
|
};
|
|
2860
2262
|
type getPoolTicksResponse400 = {
|
|
2861
|
-
data:
|
|
2263
|
+
data: PoolsError400Error;
|
|
2862
2264
|
status: 400;
|
|
2863
2265
|
};
|
|
2864
2266
|
type getPoolTicksResponse404 = {
|
|
2865
|
-
data:
|
|
2267
|
+
data: PoolsError404Error;
|
|
2866
2268
|
status: 404;
|
|
2867
2269
|
};
|
|
2270
|
+
type getPoolTicksResponse422 = {
|
|
2271
|
+
data: ValidationErrorCodeErrorBody;
|
|
2272
|
+
status: 422;
|
|
2273
|
+
};
|
|
2868
2274
|
type getPoolTicksResponse500 = {
|
|
2869
|
-
data:
|
|
2275
|
+
data: PoolsError500Error;
|
|
2870
2276
|
status: 500;
|
|
2871
2277
|
};
|
|
2872
2278
|
type getPoolTicksResponseSuccess = (getPoolTicksResponse200) & {
|
|
2873
2279
|
headers: Headers;
|
|
2874
2280
|
};
|
|
2875
|
-
type getPoolTicksResponseError = (getPoolTicksResponse400 | getPoolTicksResponse404 | getPoolTicksResponse500) & {
|
|
2281
|
+
type getPoolTicksResponseError = (getPoolTicksResponse400 | getPoolTicksResponse404 | getPoolTicksResponse422 | getPoolTicksResponse500) & {
|
|
2876
2282
|
headers: Headers;
|
|
2877
2283
|
};
|
|
2878
2284
|
type getPoolTicksResponse = (getPoolTicksResponseSuccess | getPoolTicksResponseError);
|
|
2879
|
-
declare const getGetPoolTicksUrl: (poolAddress:
|
|
2880
|
-
declare const getPoolTicks: (poolAddress:
|
|
2285
|
+
declare const getGetPoolTicksUrl: (poolAddress: PubkeyDto) => string;
|
|
2286
|
+
declare const getPoolTicks: (poolAddress: PubkeyDto, options?: RequestInit) => Promise<getPoolTicksResponse>;
|
|
2881
2287
|
/**
|
|
2882
2288
|
* @summary Request quote to close spot position
|
|
2883
2289
|
*/
|
|
2884
2290
|
type getCloseSpotPositionQuoteResponse200 = {
|
|
2885
|
-
data:
|
|
2291
|
+
data: GetCloseSpotPositionQuote200;
|
|
2886
2292
|
status: 200;
|
|
2887
2293
|
};
|
|
2888
2294
|
type getCloseSpotPositionQuoteResponse400 = {
|
|
2889
|
-
data:
|
|
2295
|
+
data: BadRequestErrorCodeErrorBody;
|
|
2890
2296
|
status: 400;
|
|
2891
2297
|
};
|
|
2298
|
+
type getCloseSpotPositionQuoteResponse422 = {
|
|
2299
|
+
data: ValidationErrorCodeErrorBody;
|
|
2300
|
+
status: 422;
|
|
2301
|
+
};
|
|
2302
|
+
type getCloseSpotPositionQuoteResponse500 = {
|
|
2303
|
+
data: InternalErrorCodeErrorBody;
|
|
2304
|
+
status: 500;
|
|
2305
|
+
};
|
|
2892
2306
|
type getCloseSpotPositionQuoteResponseSuccess = (getCloseSpotPositionQuoteResponse200) & {
|
|
2893
2307
|
headers: Headers;
|
|
2894
2308
|
};
|
|
2895
|
-
type getCloseSpotPositionQuoteResponseError = (getCloseSpotPositionQuoteResponse400) & {
|
|
2309
|
+
type getCloseSpotPositionQuoteResponseError = (getCloseSpotPositionQuoteResponse400 | getCloseSpotPositionQuoteResponse422 | getCloseSpotPositionQuoteResponse500) & {
|
|
2896
2310
|
headers: Headers;
|
|
2897
2311
|
};
|
|
2898
2312
|
type getCloseSpotPositionQuoteResponse = (getCloseSpotPositionQuoteResponseSuccess | getCloseSpotPositionQuoteResponseError);
|
|
@@ -2902,17 +2316,25 @@ declare const getCloseSpotPositionQuote: (params: GetCloseSpotPositionQuoteParam
|
|
|
2902
2316
|
* @summary Request quote to decrease spot position
|
|
2903
2317
|
*/
|
|
2904
2318
|
type getDecreaseSpotPositionQuoteResponse200 = {
|
|
2905
|
-
data:
|
|
2319
|
+
data: GetDecreaseSpotPositionQuote200;
|
|
2906
2320
|
status: 200;
|
|
2907
2321
|
};
|
|
2908
2322
|
type getDecreaseSpotPositionQuoteResponse400 = {
|
|
2909
|
-
data:
|
|
2323
|
+
data: BadRequestErrorCodeErrorBody;
|
|
2910
2324
|
status: 400;
|
|
2911
2325
|
};
|
|
2326
|
+
type getDecreaseSpotPositionQuoteResponse422 = {
|
|
2327
|
+
data: ValidationErrorCodeErrorBody;
|
|
2328
|
+
status: 422;
|
|
2329
|
+
};
|
|
2330
|
+
type getDecreaseSpotPositionQuoteResponse500 = {
|
|
2331
|
+
data: InternalErrorCodeErrorBody;
|
|
2332
|
+
status: 500;
|
|
2333
|
+
};
|
|
2912
2334
|
type getDecreaseSpotPositionQuoteResponseSuccess = (getDecreaseSpotPositionQuoteResponse200) & {
|
|
2913
2335
|
headers: Headers;
|
|
2914
2336
|
};
|
|
2915
|
-
type getDecreaseSpotPositionQuoteResponseError = (getDecreaseSpotPositionQuoteResponse400) & {
|
|
2337
|
+
type getDecreaseSpotPositionQuoteResponseError = (getDecreaseSpotPositionQuoteResponse400 | getDecreaseSpotPositionQuoteResponse422 | getDecreaseSpotPositionQuoteResponse500) & {
|
|
2916
2338
|
headers: Headers;
|
|
2917
2339
|
};
|
|
2918
2340
|
type getDecreaseSpotPositionQuoteResponse = (getDecreaseSpotPositionQuoteResponseSuccess | getDecreaseSpotPositionQuoteResponseError);
|
|
@@ -2922,17 +2344,25 @@ declare const getDecreaseSpotPositionQuote: (params: GetDecreaseSpotPositionQuot
|
|
|
2922
2344
|
* @summary Request quote to increase spot position
|
|
2923
2345
|
*/
|
|
2924
2346
|
type getIncreaseSpotPositionQuoteResponse200 = {
|
|
2925
|
-
data:
|
|
2347
|
+
data: GetIncreaseSpotPositionQuote200;
|
|
2926
2348
|
status: 200;
|
|
2927
2349
|
};
|
|
2928
2350
|
type getIncreaseSpotPositionQuoteResponse400 = {
|
|
2929
|
-
data:
|
|
2351
|
+
data: BadRequestErrorCodeErrorBody;
|
|
2930
2352
|
status: 400;
|
|
2931
2353
|
};
|
|
2354
|
+
type getIncreaseSpotPositionQuoteResponse422 = {
|
|
2355
|
+
data: ValidationErrorCodeErrorBody;
|
|
2356
|
+
status: 422;
|
|
2357
|
+
};
|
|
2358
|
+
type getIncreaseSpotPositionQuoteResponse500 = {
|
|
2359
|
+
data: InternalErrorCodeErrorBody;
|
|
2360
|
+
status: 500;
|
|
2361
|
+
};
|
|
2932
2362
|
type getIncreaseSpotPositionQuoteResponseSuccess = (getIncreaseSpotPositionQuoteResponse200) & {
|
|
2933
2363
|
headers: Headers;
|
|
2934
2364
|
};
|
|
2935
|
-
type getIncreaseSpotPositionQuoteResponseError = (getIncreaseSpotPositionQuoteResponse400) & {
|
|
2365
|
+
type getIncreaseSpotPositionQuoteResponseError = (getIncreaseSpotPositionQuoteResponse400 | getIncreaseSpotPositionQuoteResponse422 | getIncreaseSpotPositionQuoteResponse500) & {
|
|
2936
2366
|
headers: Headers;
|
|
2937
2367
|
};
|
|
2938
2368
|
type getIncreaseSpotPositionQuoteResponse = (getIncreaseSpotPositionQuoteResponseSuccess | getIncreaseSpotPositionQuoteResponseError);
|
|
@@ -2970,17 +2400,25 @@ declare const getLimitOrderQuoteByInput: (params: GetLimitOrderQuoteByInputParam
|
|
|
2970
2400
|
* @summary Request limit order quote by output amount
|
|
2971
2401
|
*/
|
|
2972
2402
|
type getLimitOrderQuoteByOutputResponse200 = {
|
|
2973
|
-
data:
|
|
2403
|
+
data: GetLimitOrderQuoteByOutput200;
|
|
2974
2404
|
status: 200;
|
|
2975
2405
|
};
|
|
2976
2406
|
type getLimitOrderQuoteByOutputResponse400 = {
|
|
2977
|
-
data:
|
|
2407
|
+
data: BadRequestErrorCodeErrorBody;
|
|
2978
2408
|
status: 400;
|
|
2979
2409
|
};
|
|
2410
|
+
type getLimitOrderQuoteByOutputResponse422 = {
|
|
2411
|
+
data: ValidationErrorCodeErrorBody;
|
|
2412
|
+
status: 422;
|
|
2413
|
+
};
|
|
2414
|
+
type getLimitOrderQuoteByOutputResponse500 = {
|
|
2415
|
+
data: InternalErrorCodeErrorBody;
|
|
2416
|
+
status: 500;
|
|
2417
|
+
};
|
|
2980
2418
|
type getLimitOrderQuoteByOutputResponseSuccess = (getLimitOrderQuoteByOutputResponse200) & {
|
|
2981
2419
|
headers: Headers;
|
|
2982
2420
|
};
|
|
2983
|
-
type getLimitOrderQuoteByOutputResponseError = (getLimitOrderQuoteByOutputResponse400) & {
|
|
2421
|
+
type getLimitOrderQuoteByOutputResponseError = (getLimitOrderQuoteByOutputResponse400 | getLimitOrderQuoteByOutputResponse422 | getLimitOrderQuoteByOutputResponse500) & {
|
|
2984
2422
|
headers: Headers;
|
|
2985
2423
|
};
|
|
2986
2424
|
type getLimitOrderQuoteByOutputResponse = (getLimitOrderQuoteByOutputResponseSuccess | getLimitOrderQuoteByOutputResponseError);
|
|
@@ -2990,17 +2428,25 @@ declare const getLimitOrderQuoteByOutput: (params: GetLimitOrderQuoteByOutputPar
|
|
|
2990
2428
|
* @summary Request swap quote by input amount
|
|
2991
2429
|
*/
|
|
2992
2430
|
type getSwapQuoteByInputResponse200 = {
|
|
2993
|
-
data:
|
|
2431
|
+
data: GetSwapQuoteByInput200;
|
|
2994
2432
|
status: 200;
|
|
2995
2433
|
};
|
|
2996
2434
|
type getSwapQuoteByInputResponse400 = {
|
|
2997
|
-
data:
|
|
2435
|
+
data: BadRequestErrorCodeErrorBody;
|
|
2998
2436
|
status: 400;
|
|
2999
2437
|
};
|
|
2438
|
+
type getSwapQuoteByInputResponse422 = {
|
|
2439
|
+
data: ValidationErrorCodeErrorBody;
|
|
2440
|
+
status: 422;
|
|
2441
|
+
};
|
|
2442
|
+
type getSwapQuoteByInputResponse500 = {
|
|
2443
|
+
data: InternalErrorCodeErrorBody;
|
|
2444
|
+
status: 500;
|
|
2445
|
+
};
|
|
3000
2446
|
type getSwapQuoteByInputResponseSuccess = (getSwapQuoteByInputResponse200) & {
|
|
3001
2447
|
headers: Headers;
|
|
3002
2448
|
};
|
|
3003
|
-
type getSwapQuoteByInputResponseError = (getSwapQuoteByInputResponse400) & {
|
|
2449
|
+
type getSwapQuoteByInputResponseError = (getSwapQuoteByInputResponse400 | getSwapQuoteByInputResponse422 | getSwapQuoteByInputResponse500) & {
|
|
3004
2450
|
headers: Headers;
|
|
3005
2451
|
};
|
|
3006
2452
|
type getSwapQuoteByInputResponse = (getSwapQuoteByInputResponseSuccess | getSwapQuoteByInputResponseError);
|
|
@@ -3010,17 +2456,25 @@ declare const getSwapQuoteByInput: (params: GetSwapQuoteByInputParams, options?:
|
|
|
3010
2456
|
* @summary Request swap quote by output amount
|
|
3011
2457
|
*/
|
|
3012
2458
|
type getSwapQuoteByOutputResponse200 = {
|
|
3013
|
-
data:
|
|
2459
|
+
data: GetSwapQuoteByOutput200;
|
|
3014
2460
|
status: 200;
|
|
3015
2461
|
};
|
|
3016
2462
|
type getSwapQuoteByOutputResponse400 = {
|
|
3017
|
-
data:
|
|
2463
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3018
2464
|
status: 400;
|
|
3019
2465
|
};
|
|
2466
|
+
type getSwapQuoteByOutputResponse422 = {
|
|
2467
|
+
data: ValidationErrorCodeErrorBody;
|
|
2468
|
+
status: 422;
|
|
2469
|
+
};
|
|
2470
|
+
type getSwapQuoteByOutputResponse500 = {
|
|
2471
|
+
data: InternalErrorCodeErrorBody;
|
|
2472
|
+
status: 500;
|
|
2473
|
+
};
|
|
3020
2474
|
type getSwapQuoteByOutputResponseSuccess = (getSwapQuoteByOutputResponse200) & {
|
|
3021
2475
|
headers: Headers;
|
|
3022
2476
|
};
|
|
3023
|
-
type getSwapQuoteByOutputResponseError = (getSwapQuoteByOutputResponse400) & {
|
|
2477
|
+
type getSwapQuoteByOutputResponseError = (getSwapQuoteByOutputResponse400 | getSwapQuoteByOutputResponse422 | getSwapQuoteByOutputResponse500) & {
|
|
3024
2478
|
headers: Headers;
|
|
3025
2479
|
};
|
|
3026
2480
|
type getSwapQuoteByOutputResponse = (getSwapQuoteByOutputResponseSuccess | getSwapQuoteByOutputResponseError);
|
|
@@ -3030,17 +2484,25 @@ declare const getSwapQuoteByOutput: (params: GetSwapQuoteByOutputParams, options
|
|
|
3030
2484
|
* @summary Request tradeable amount
|
|
3031
2485
|
*/
|
|
3032
2486
|
type getTradableAmountResponse200 = {
|
|
3033
|
-
data:
|
|
2487
|
+
data: GetTradableAmount200;
|
|
3034
2488
|
status: 200;
|
|
3035
2489
|
};
|
|
3036
2490
|
type getTradableAmountResponse400 = {
|
|
3037
|
-
data:
|
|
2491
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3038
2492
|
status: 400;
|
|
3039
2493
|
};
|
|
2494
|
+
type getTradableAmountResponse422 = {
|
|
2495
|
+
data: ValidationErrorCodeErrorBody;
|
|
2496
|
+
status: 422;
|
|
2497
|
+
};
|
|
2498
|
+
type getTradableAmountResponse500 = {
|
|
2499
|
+
data: InternalErrorCodeErrorBody;
|
|
2500
|
+
status: 500;
|
|
2501
|
+
};
|
|
3040
2502
|
type getTradableAmountResponseSuccess = (getTradableAmountResponse200) & {
|
|
3041
2503
|
headers: Headers;
|
|
3042
2504
|
};
|
|
3043
|
-
type getTradableAmountResponseError = (getTradableAmountResponse400) & {
|
|
2505
|
+
type getTradableAmountResponseError = (getTradableAmountResponse400 | getTradableAmountResponse422 | getTradableAmountResponse500) & {
|
|
3044
2506
|
headers: Headers;
|
|
3045
2507
|
};
|
|
3046
2508
|
type getTradableAmountResponse = (getTradableAmountResponseSuccess | getTradableAmountResponseError);
|
|
@@ -3050,21 +2512,25 @@ declare const getTradableAmount: (params: GetTradableAmountParams, options?: Req
|
|
|
3050
2512
|
* @summary Request staking leaderboard
|
|
3051
2513
|
*/
|
|
3052
2514
|
type getStakingLeaderboardResponse200 = {
|
|
3053
|
-
data:
|
|
2515
|
+
data: GetStakingLeaderboard200;
|
|
3054
2516
|
status: 200;
|
|
3055
2517
|
};
|
|
3056
2518
|
type getStakingLeaderboardResponse400 = {
|
|
3057
|
-
data:
|
|
2519
|
+
data: StakingError400Error;
|
|
3058
2520
|
status: 400;
|
|
3059
2521
|
};
|
|
2522
|
+
type getStakingLeaderboardResponse422 = {
|
|
2523
|
+
data: ValidationErrorCodeErrorBody;
|
|
2524
|
+
status: 422;
|
|
2525
|
+
};
|
|
3060
2526
|
type getStakingLeaderboardResponse500 = {
|
|
3061
|
-
data:
|
|
2527
|
+
data: StakingError500Error;
|
|
3062
2528
|
status: 500;
|
|
3063
2529
|
};
|
|
3064
2530
|
type getStakingLeaderboardResponseSuccess = (getStakingLeaderboardResponse200) & {
|
|
3065
2531
|
headers: Headers;
|
|
3066
2532
|
};
|
|
3067
|
-
type getStakingLeaderboardResponseError = (getStakingLeaderboardResponse400 | getStakingLeaderboardResponse500) & {
|
|
2533
|
+
type getStakingLeaderboardResponseError = (getStakingLeaderboardResponse400 | getStakingLeaderboardResponse422 | getStakingLeaderboardResponse500) & {
|
|
3068
2534
|
headers: Headers;
|
|
3069
2535
|
};
|
|
3070
2536
|
type getStakingLeaderboardResponse = (getStakingLeaderboardResponseSuccess | getStakingLeaderboardResponseError);
|
|
@@ -3074,11 +2540,11 @@ declare const getStakingLeaderboard: (params?: GetStakingLeaderboardParams, opti
|
|
|
3074
2540
|
* @summary Request treasury data
|
|
3075
2541
|
*/
|
|
3076
2542
|
type getStakingTreasuryResponse200 = {
|
|
3077
|
-
data:
|
|
2543
|
+
data: GetStakingTreasury200;
|
|
3078
2544
|
status: 200;
|
|
3079
2545
|
};
|
|
3080
2546
|
type getStakingTreasuryResponse500 = {
|
|
3081
|
-
data:
|
|
2547
|
+
data: InternalErrorCodeErrorBody;
|
|
3082
2548
|
status: 500;
|
|
3083
2549
|
};
|
|
3084
2550
|
type getStakingTreasuryResponseSuccess = (getStakingTreasuryResponse200) & {
|
|
@@ -3094,21 +2560,25 @@ declare const getStakingTreasury: (options?: RequestInit) => Promise<getStakingT
|
|
|
3094
2560
|
* @summary Request historical aggregated data about collected & paid fees
|
|
3095
2561
|
*/
|
|
3096
2562
|
type getFeesStatsResponse200 = {
|
|
3097
|
-
data:
|
|
2563
|
+
data: GetFeesStats200;
|
|
3098
2564
|
status: 200;
|
|
3099
2565
|
};
|
|
3100
2566
|
type getFeesStatsResponse400 = {
|
|
3101
|
-
data:
|
|
2567
|
+
data: StatsError400Error;
|
|
3102
2568
|
status: 400;
|
|
3103
2569
|
};
|
|
2570
|
+
type getFeesStatsResponse422 = {
|
|
2571
|
+
data: ValidationErrorCodeErrorBody;
|
|
2572
|
+
status: 422;
|
|
2573
|
+
};
|
|
3104
2574
|
type getFeesStatsResponse500 = {
|
|
3105
|
-
data:
|
|
2575
|
+
data: StatsError500Error;
|
|
3106
2576
|
status: 500;
|
|
3107
2577
|
};
|
|
3108
2578
|
type getFeesStatsResponseSuccess = (getFeesStatsResponse200) & {
|
|
3109
2579
|
headers: Headers;
|
|
3110
2580
|
};
|
|
3111
|
-
type getFeesStatsResponseError = (getFeesStatsResponse400 | getFeesStatsResponse500) & {
|
|
2581
|
+
type getFeesStatsResponseError = (getFeesStatsResponse400 | getFeesStatsResponse422 | getFeesStatsResponse500) & {
|
|
3112
2582
|
headers: Headers;
|
|
3113
2583
|
};
|
|
3114
2584
|
type getFeesStatsResponse = (getFeesStatsResponseSuccess | getFeesStatsResponseError);
|
|
@@ -3118,21 +2588,25 @@ declare const getFeesStats: (params: GetFeesStatsParams, options?: RequestInit)
|
|
|
3118
2588
|
* @summary Request historical aggregated data about Fusion collected & paid fees
|
|
3119
2589
|
*/
|
|
3120
2590
|
type getFusionFeesStatsResponse200 = {
|
|
3121
|
-
data:
|
|
2591
|
+
data: GetFusionFeesStats200;
|
|
3122
2592
|
status: 200;
|
|
3123
2593
|
};
|
|
3124
2594
|
type getFusionFeesStatsResponse400 = {
|
|
3125
|
-
data:
|
|
2595
|
+
data: StatsError400Error;
|
|
3126
2596
|
status: 400;
|
|
3127
2597
|
};
|
|
2598
|
+
type getFusionFeesStatsResponse422 = {
|
|
2599
|
+
data: ValidationErrorCodeErrorBody;
|
|
2600
|
+
status: 422;
|
|
2601
|
+
};
|
|
3128
2602
|
type getFusionFeesStatsResponse500 = {
|
|
3129
|
-
data:
|
|
2603
|
+
data: StatsError500Error;
|
|
3130
2604
|
status: 500;
|
|
3131
2605
|
};
|
|
3132
2606
|
type getFusionFeesStatsResponseSuccess = (getFusionFeesStatsResponse200) & {
|
|
3133
2607
|
headers: Headers;
|
|
3134
2608
|
};
|
|
3135
|
-
type getFusionFeesStatsResponseError = (getFusionFeesStatsResponse400 | getFusionFeesStatsResponse500) & {
|
|
2609
|
+
type getFusionFeesStatsResponseError = (getFusionFeesStatsResponse400 | getFusionFeesStatsResponse422 | getFusionFeesStatsResponse500) & {
|
|
3136
2610
|
headers: Headers;
|
|
3137
2611
|
};
|
|
3138
2612
|
type getFusionFeesStatsResponse = (getFusionFeesStatsResponseSuccess | getFusionFeesStatsResponseError);
|
|
@@ -3142,17 +2616,25 @@ declare const getFusionFeesStats: (params: GetFusionFeesStatsParams, options?: R
|
|
|
3142
2616
|
* @summary Request historical aggregated data about LP positions
|
|
3143
2617
|
*/
|
|
3144
2618
|
type getPositionsStatsResponse200 = {
|
|
3145
|
-
data:
|
|
2619
|
+
data: GetPositionsStats200;
|
|
3146
2620
|
status: 200;
|
|
3147
2621
|
};
|
|
2622
|
+
type getPositionsStatsResponse400 = {
|
|
2623
|
+
data: BadRequestErrorCodeErrorBody;
|
|
2624
|
+
status: 400;
|
|
2625
|
+
};
|
|
2626
|
+
type getPositionsStatsResponse422 = {
|
|
2627
|
+
data: ValidationErrorCodeErrorBody;
|
|
2628
|
+
status: 422;
|
|
2629
|
+
};
|
|
3148
2630
|
type getPositionsStatsResponse500 = {
|
|
3149
|
-
data:
|
|
2631
|
+
data: InternalErrorCodeErrorBody;
|
|
3150
2632
|
status: 500;
|
|
3151
2633
|
};
|
|
3152
2634
|
type getPositionsStatsResponseSuccess = (getPositionsStatsResponse200) & {
|
|
3153
2635
|
headers: Headers;
|
|
3154
2636
|
};
|
|
3155
|
-
type getPositionsStatsResponseError = (getPositionsStatsResponse500) & {
|
|
2637
|
+
type getPositionsStatsResponseError = (getPositionsStatsResponse400 | getPositionsStatsResponse422 | getPositionsStatsResponse500) & {
|
|
3156
2638
|
headers: Headers;
|
|
3157
2639
|
};
|
|
3158
2640
|
type getPositionsStatsResponse = (getPositionsStatsResponseSuccess | getPositionsStatsResponseError);
|
|
@@ -3162,11 +2644,11 @@ declare const getPositionsStats: (params: GetPositionsStatsParams, options?: Req
|
|
|
3162
2644
|
* @summary Request total number of LP positions
|
|
3163
2645
|
*/
|
|
3164
2646
|
type getPositionsTotalResponse200 = {
|
|
3165
|
-
data:
|
|
2647
|
+
data: GetPositionsTotal200;
|
|
3166
2648
|
status: 200;
|
|
3167
2649
|
};
|
|
3168
2650
|
type getPositionsTotalResponse500 = {
|
|
3169
|
-
data:
|
|
2651
|
+
data: InternalErrorCodeErrorBody;
|
|
3170
2652
|
status: 500;
|
|
3171
2653
|
};
|
|
3172
2654
|
type getPositionsTotalResponseSuccess = (getPositionsTotalResponse200) & {
|
|
@@ -3182,21 +2664,25 @@ declare const getPositionsTotal: (options?: RequestInit) => Promise<getPositions
|
|
|
3182
2664
|
* @summary Request daily staking revenue stats
|
|
3183
2665
|
*/
|
|
3184
2666
|
type getStakingRevenueStatsResponse200 = {
|
|
3185
|
-
data:
|
|
2667
|
+
data: GetStakingRevenueStats200;
|
|
3186
2668
|
status: 200;
|
|
3187
2669
|
};
|
|
3188
2670
|
type getStakingRevenueStatsResponse400 = {
|
|
3189
|
-
data:
|
|
2671
|
+
data: StatsError400Error;
|
|
3190
2672
|
status: 400;
|
|
3191
2673
|
};
|
|
2674
|
+
type getStakingRevenueStatsResponse422 = {
|
|
2675
|
+
data: ValidationErrorCodeErrorBody;
|
|
2676
|
+
status: 422;
|
|
2677
|
+
};
|
|
3192
2678
|
type getStakingRevenueStatsResponse500 = {
|
|
3193
|
-
data:
|
|
2679
|
+
data: StatsError500Error;
|
|
3194
2680
|
status: 500;
|
|
3195
2681
|
};
|
|
3196
2682
|
type getStakingRevenueStatsResponseSuccess = (getStakingRevenueStatsResponse200) & {
|
|
3197
2683
|
headers: Headers;
|
|
3198
2684
|
};
|
|
3199
|
-
type getStakingRevenueStatsResponseError = (getStakingRevenueStatsResponse400 | getStakingRevenueStatsResponse500) & {
|
|
2685
|
+
type getStakingRevenueStatsResponseError = (getStakingRevenueStatsResponse400 | getStakingRevenueStatsResponse422 | getStakingRevenueStatsResponse500) & {
|
|
3200
2686
|
headers: Headers;
|
|
3201
2687
|
};
|
|
3202
2688
|
type getStakingRevenueStatsResponse = (getStakingRevenueStatsResponseSuccess | getStakingRevenueStatsResponseError);
|
|
@@ -3206,7 +2692,7 @@ declare const getStakingRevenueStats: (params: GetStakingRevenueStatsParams, opt
|
|
|
3206
2692
|
* @summary Subscribe for SSE stream
|
|
3207
2693
|
*/
|
|
3208
2694
|
type sseResponse200 = {
|
|
3209
|
-
data:
|
|
2695
|
+
data: SseResponse;
|
|
3210
2696
|
status: 200;
|
|
3211
2697
|
};
|
|
3212
2698
|
type sseResponse500 = {
|
|
@@ -3226,21 +2712,29 @@ declare const sse: (options?: RequestInit) => Promise<sseResponse>;
|
|
|
3226
2712
|
* @summary Update SSE stream subscription
|
|
3227
2713
|
*/
|
|
3228
2714
|
type updateStreamSubscriptionResponse200 = {
|
|
3229
|
-
data:
|
|
2715
|
+
data: UpdateStreamSubscription200;
|
|
3230
2716
|
status: 200;
|
|
3231
2717
|
};
|
|
3232
2718
|
type updateStreamSubscriptionResponse400 = {
|
|
3233
|
-
data:
|
|
2719
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3234
2720
|
status: 400;
|
|
3235
2721
|
};
|
|
2722
|
+
type updateStreamSubscriptionResponse404 = {
|
|
2723
|
+
data: UpdateStreamSubscriptionError404Error;
|
|
2724
|
+
status: 404;
|
|
2725
|
+
};
|
|
2726
|
+
type updateStreamSubscriptionResponse422 = {
|
|
2727
|
+
data: ValidationErrorCodeErrorBody;
|
|
2728
|
+
status: 422;
|
|
2729
|
+
};
|
|
3236
2730
|
type updateStreamSubscriptionResponse500 = {
|
|
3237
|
-
data:
|
|
2731
|
+
data: UpdateStreamSubscriptionError500Error;
|
|
3238
2732
|
status: 500;
|
|
3239
2733
|
};
|
|
3240
2734
|
type updateStreamSubscriptionResponseSuccess = (updateStreamSubscriptionResponse200) & {
|
|
3241
2735
|
headers: Headers;
|
|
3242
2736
|
};
|
|
3243
|
-
type updateStreamSubscriptionResponseError = (updateStreamSubscriptionResponse400 | updateStreamSubscriptionResponse500) & {
|
|
2737
|
+
type updateStreamSubscriptionResponseError = (updateStreamSubscriptionResponse400 | updateStreamSubscriptionResponse404 | updateStreamSubscriptionResponse422 | updateStreamSubscriptionResponse500) & {
|
|
3244
2738
|
headers: Headers;
|
|
3245
2739
|
};
|
|
3246
2740
|
type updateStreamSubscriptionResponse = (updateStreamSubscriptionResponseSuccess | updateStreamSubscriptionResponseError);
|
|
@@ -3250,74 +2744,86 @@ declare const updateStreamSubscription: (streamId: string, subscriptionOptions:
|
|
|
3250
2744
|
* @summary Request all user lending positions
|
|
3251
2745
|
*/
|
|
3252
2746
|
type getLendingPositionsResponse200 = {
|
|
3253
|
-
data:
|
|
2747
|
+
data: GetLendingPositions200;
|
|
3254
2748
|
status: 200;
|
|
3255
2749
|
};
|
|
3256
2750
|
type getLendingPositionsResponse400 = {
|
|
3257
|
-
data:
|
|
2751
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3258
2752
|
status: 400;
|
|
3259
2753
|
};
|
|
2754
|
+
type getLendingPositionsResponse422 = {
|
|
2755
|
+
data: ValidationErrorCodeErrorBody;
|
|
2756
|
+
status: 422;
|
|
2757
|
+
};
|
|
3260
2758
|
type getLendingPositionsResponse500 = {
|
|
3261
|
-
data:
|
|
2759
|
+
data: InternalErrorCodeErrorBody;
|
|
3262
2760
|
status: 500;
|
|
3263
2761
|
};
|
|
3264
2762
|
type getLendingPositionsResponseSuccess = (getLendingPositionsResponse200) & {
|
|
3265
2763
|
headers: Headers;
|
|
3266
2764
|
};
|
|
3267
|
-
type getLendingPositionsResponseError = (getLendingPositionsResponse400 | getLendingPositionsResponse500) & {
|
|
2765
|
+
type getLendingPositionsResponseError = (getLendingPositionsResponse400 | getLendingPositionsResponse422 | getLendingPositionsResponse500) & {
|
|
3268
2766
|
headers: Headers;
|
|
3269
2767
|
};
|
|
3270
2768
|
type getLendingPositionsResponse = (getLendingPositionsResponseSuccess | getLendingPositionsResponseError);
|
|
3271
|
-
declare const getGetLendingPositionsUrl: (userAddress:
|
|
3272
|
-
declare const getLendingPositions: (userAddress:
|
|
2769
|
+
declare const getGetLendingPositionsUrl: (userAddress: PubkeyDto) => string;
|
|
2770
|
+
declare const getLendingPositions: (userAddress: PubkeyDto, options?: RequestInit) => Promise<getLendingPositionsResponse>;
|
|
3273
2771
|
/**
|
|
3274
2772
|
* @summary Request lending position data by position address
|
|
3275
2773
|
*/
|
|
3276
2774
|
type getLendingPositionResponse200 = {
|
|
3277
|
-
data:
|
|
2775
|
+
data: GetLendingPosition200;
|
|
3278
2776
|
status: 200;
|
|
3279
2777
|
};
|
|
3280
2778
|
type getLendingPositionResponse400 = {
|
|
3281
|
-
data:
|
|
2779
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3282
2780
|
status: 400;
|
|
3283
2781
|
};
|
|
2782
|
+
type getLendingPositionResponse422 = {
|
|
2783
|
+
data: ValidationErrorCodeErrorBody;
|
|
2784
|
+
status: 422;
|
|
2785
|
+
};
|
|
3284
2786
|
type getLendingPositionResponse500 = {
|
|
3285
|
-
data:
|
|
2787
|
+
data: InternalErrorCodeErrorBody;
|
|
3286
2788
|
status: 500;
|
|
3287
2789
|
};
|
|
3288
2790
|
type getLendingPositionResponseSuccess = (getLendingPositionResponse200) & {
|
|
3289
2791
|
headers: Headers;
|
|
3290
2792
|
};
|
|
3291
|
-
type getLendingPositionResponseError = (getLendingPositionResponse400 | getLendingPositionResponse500) & {
|
|
2793
|
+
type getLendingPositionResponseError = (getLendingPositionResponse400 | getLendingPositionResponse422 | getLendingPositionResponse500) & {
|
|
3292
2794
|
headers: Headers;
|
|
3293
2795
|
};
|
|
3294
2796
|
type getLendingPositionResponse = (getLendingPositionResponseSuccess | getLendingPositionResponseError);
|
|
3295
|
-
declare const getGetLendingPositionUrl: (userAddress:
|
|
3296
|
-
declare const getLendingPosition: (userAddress:
|
|
2797
|
+
declare const getGetLendingPositionUrl: (userAddress: PubkeyDto, lendingPositionAddress: PubkeyDto) => string;
|
|
2798
|
+
declare const getLendingPosition: (userAddress: PubkeyDto, lendingPositionAddress: PubkeyDto, options?: RequestInit) => Promise<getLendingPositionResponse>;
|
|
3297
2799
|
/**
|
|
3298
2800
|
* @summary Request all user limit orders
|
|
3299
2801
|
*/
|
|
3300
2802
|
type getLimitOrdersResponse200 = {
|
|
3301
|
-
data:
|
|
2803
|
+
data: GetLimitOrders200;
|
|
3302
2804
|
status: 200;
|
|
3303
2805
|
};
|
|
3304
2806
|
type getLimitOrdersResponse400 = {
|
|
3305
|
-
data:
|
|
2807
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3306
2808
|
status: 400;
|
|
3307
2809
|
};
|
|
2810
|
+
type getLimitOrdersResponse422 = {
|
|
2811
|
+
data: ValidationErrorCodeErrorBody;
|
|
2812
|
+
status: 422;
|
|
2813
|
+
};
|
|
3308
2814
|
type getLimitOrdersResponse500 = {
|
|
3309
|
-
data:
|
|
2815
|
+
data: InternalErrorCodeErrorBody;
|
|
3310
2816
|
status: 500;
|
|
3311
2817
|
};
|
|
3312
2818
|
type getLimitOrdersResponseSuccess = (getLimitOrdersResponse200) & {
|
|
3313
2819
|
headers: Headers;
|
|
3314
2820
|
};
|
|
3315
|
-
type getLimitOrdersResponseError = (getLimitOrdersResponse400 | getLimitOrdersResponse500) & {
|
|
2821
|
+
type getLimitOrdersResponseError = (getLimitOrdersResponse400 | getLimitOrdersResponse422 | getLimitOrdersResponse500) & {
|
|
3316
2822
|
headers: Headers;
|
|
3317
2823
|
};
|
|
3318
2824
|
type getLimitOrdersResponse = (getLimitOrdersResponseSuccess | getLimitOrdersResponseError);
|
|
3319
|
-
declare const getGetLimitOrdersUrl: (userAddress:
|
|
3320
|
-
declare const getLimitOrders: (userAddress:
|
|
2825
|
+
declare const getGetLimitOrdersUrl: (userAddress: PubkeyDto, params?: GetLimitOrdersParams) => string;
|
|
2826
|
+
declare const getLimitOrders: (userAddress: PubkeyDto, params?: GetLimitOrdersParams, options?: RequestInit) => Promise<getLimitOrdersResponse>;
|
|
3321
2827
|
/**
|
|
3322
2828
|
* @summary Request limit order data by position address
|
|
3323
2829
|
*/
|
|
@@ -3354,255 +2860,295 @@ declare const getLimitOrder: (userAddress: PubkeyDto, limitOrderAddress: PubkeyD
|
|
|
3354
2860
|
* @summary Request historical LP positions data
|
|
3355
2861
|
*/
|
|
3356
2862
|
type getLpPositionsResponse200 = {
|
|
3357
|
-
data:
|
|
2863
|
+
data: GetLpPositions200;
|
|
3358
2864
|
status: 200;
|
|
3359
2865
|
};
|
|
3360
2866
|
type getLpPositionsResponse400 = {
|
|
3361
|
-
data:
|
|
2867
|
+
data: LpPositionsError400Error;
|
|
3362
2868
|
status: 400;
|
|
3363
2869
|
};
|
|
2870
|
+
type getLpPositionsResponse422 = {
|
|
2871
|
+
data: ValidationErrorCodeErrorBody;
|
|
2872
|
+
status: 422;
|
|
2873
|
+
};
|
|
3364
2874
|
type getLpPositionsResponse500 = {
|
|
3365
|
-
data:
|
|
2875
|
+
data: LpPositionsError500Error;
|
|
3366
2876
|
status: 500;
|
|
3367
2877
|
};
|
|
3368
2878
|
type getLpPositionsResponseSuccess = (getLpPositionsResponse200) & {
|
|
3369
2879
|
headers: Headers;
|
|
3370
2880
|
};
|
|
3371
|
-
type getLpPositionsResponseError = (getLpPositionsResponse400 | getLpPositionsResponse500) & {
|
|
2881
|
+
type getLpPositionsResponseError = (getLpPositionsResponse400 | getLpPositionsResponse422 | getLpPositionsResponse500) & {
|
|
3372
2882
|
headers: Headers;
|
|
3373
2883
|
};
|
|
3374
2884
|
type getLpPositionsResponse = (getLpPositionsResponseSuccess | getLpPositionsResponseError);
|
|
3375
|
-
declare const getGetLpPositionsUrl: (userAddress:
|
|
3376
|
-
declare const getLpPositions: (userAddress:
|
|
2885
|
+
declare const getGetLpPositionsUrl: (userAddress: PubkeyDto, params?: GetLpPositionsParams) => string;
|
|
2886
|
+
declare const getLpPositions: (userAddress: PubkeyDto, params?: GetLpPositionsParams, options?: RequestInit) => Promise<getLpPositionsResponse>;
|
|
3377
2887
|
/**
|
|
3378
2888
|
* @summary Request LP position actions history
|
|
3379
2889
|
*/
|
|
3380
2890
|
type getLpPositionActionsResponse200 = {
|
|
3381
|
-
data:
|
|
2891
|
+
data: GetLpPositionActions200;
|
|
3382
2892
|
status: 200;
|
|
3383
2893
|
};
|
|
3384
2894
|
type getLpPositionActionsResponse400 = {
|
|
3385
|
-
data:
|
|
2895
|
+
data: LpPositionsError400Error;
|
|
3386
2896
|
status: 400;
|
|
3387
2897
|
};
|
|
2898
|
+
type getLpPositionActionsResponse422 = {
|
|
2899
|
+
data: ValidationErrorCodeErrorBody;
|
|
2900
|
+
status: 422;
|
|
2901
|
+
};
|
|
3388
2902
|
type getLpPositionActionsResponse500 = {
|
|
3389
|
-
data:
|
|
2903
|
+
data: LpPositionsError500Error;
|
|
3390
2904
|
status: 500;
|
|
3391
2905
|
};
|
|
3392
2906
|
type getLpPositionActionsResponseSuccess = (getLpPositionActionsResponse200) & {
|
|
3393
2907
|
headers: Headers;
|
|
3394
2908
|
};
|
|
3395
|
-
type getLpPositionActionsResponseError = (getLpPositionActionsResponse400 | getLpPositionActionsResponse500) & {
|
|
2909
|
+
type getLpPositionActionsResponseError = (getLpPositionActionsResponse400 | getLpPositionActionsResponse422 | getLpPositionActionsResponse500) & {
|
|
3396
2910
|
headers: Headers;
|
|
3397
2911
|
};
|
|
3398
2912
|
type getLpPositionActionsResponse = (getLpPositionActionsResponseSuccess | getLpPositionActionsResponseError);
|
|
3399
|
-
declare const getGetLpPositionActionsUrl: (userAddress:
|
|
3400
|
-
declare const getLpPositionActions: (userAddress:
|
|
2913
|
+
declare const getGetLpPositionActionsUrl: (userAddress: PubkeyDto, positionAddress: PubkeyDto) => string;
|
|
2914
|
+
declare const getLpPositionActions: (userAddress: PubkeyDto, positionAddress: PubkeyDto, options?: RequestInit) => Promise<getLpPositionActionsResponse>;
|
|
3401
2915
|
/**
|
|
3402
2916
|
* @summary Request user order history
|
|
3403
2917
|
*/
|
|
3404
2918
|
type getOrderHistoryResponse200 = {
|
|
3405
|
-
data:
|
|
2919
|
+
data: GetOrderHistory200;
|
|
3406
2920
|
status: 200;
|
|
3407
2921
|
};
|
|
3408
2922
|
type getOrderHistoryResponse400 = {
|
|
3409
|
-
data:
|
|
2923
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3410
2924
|
status: 400;
|
|
3411
2925
|
};
|
|
2926
|
+
type getOrderHistoryResponse422 = {
|
|
2927
|
+
data: ValidationErrorCodeErrorBody;
|
|
2928
|
+
status: 422;
|
|
2929
|
+
};
|
|
3412
2930
|
type getOrderHistoryResponse500 = {
|
|
3413
|
-
data:
|
|
2931
|
+
data: InternalErrorCodeErrorBody;
|
|
3414
2932
|
status: 500;
|
|
3415
2933
|
};
|
|
3416
2934
|
type getOrderHistoryResponseSuccess = (getOrderHistoryResponse200) & {
|
|
3417
2935
|
headers: Headers;
|
|
3418
2936
|
};
|
|
3419
|
-
type getOrderHistoryResponseError = (getOrderHistoryResponse400 | getOrderHistoryResponse500) & {
|
|
2937
|
+
type getOrderHistoryResponseError = (getOrderHistoryResponse400 | getOrderHistoryResponse422 | getOrderHistoryResponse500) & {
|
|
3420
2938
|
headers: Headers;
|
|
3421
2939
|
};
|
|
3422
2940
|
type getOrderHistoryResponse = (getOrderHistoryResponseSuccess | getOrderHistoryResponseError);
|
|
3423
|
-
declare const getGetOrderHistoryUrl: (userAddress:
|
|
3424
|
-
declare const getOrderHistory: (userAddress:
|
|
2941
|
+
declare const getGetOrderHistoryUrl: (userAddress: PubkeyDto, params?: GetOrderHistoryParams) => string;
|
|
2942
|
+
declare const getOrderHistory: (userAddress: PubkeyDto, params?: GetOrderHistoryParams, options?: RequestInit) => Promise<getOrderHistoryResponse>;
|
|
3425
2943
|
/**
|
|
3426
2944
|
* @summary Request all user spot positions
|
|
3427
2945
|
*/
|
|
3428
2946
|
type getSpotPositionsResponse200 = {
|
|
3429
|
-
data:
|
|
2947
|
+
data: GetSpotPositions200;
|
|
3430
2948
|
status: 200;
|
|
3431
2949
|
};
|
|
3432
2950
|
type getSpotPositionsResponse400 = {
|
|
3433
|
-
data:
|
|
2951
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3434
2952
|
status: 400;
|
|
3435
2953
|
};
|
|
2954
|
+
type getSpotPositionsResponse422 = {
|
|
2955
|
+
data: ValidationErrorCodeErrorBody;
|
|
2956
|
+
status: 422;
|
|
2957
|
+
};
|
|
3436
2958
|
type getSpotPositionsResponse500 = {
|
|
3437
|
-
data:
|
|
2959
|
+
data: InternalErrorCodeErrorBody;
|
|
3438
2960
|
status: 500;
|
|
3439
2961
|
};
|
|
3440
2962
|
type getSpotPositionsResponseSuccess = (getSpotPositionsResponse200) & {
|
|
3441
2963
|
headers: Headers;
|
|
3442
2964
|
};
|
|
3443
|
-
type getSpotPositionsResponseError = (getSpotPositionsResponse400 | getSpotPositionsResponse500) & {
|
|
2965
|
+
type getSpotPositionsResponseError = (getSpotPositionsResponse400 | getSpotPositionsResponse422 | getSpotPositionsResponse500) & {
|
|
3444
2966
|
headers: Headers;
|
|
3445
2967
|
};
|
|
3446
2968
|
type getSpotPositionsResponse = (getSpotPositionsResponseSuccess | getSpotPositionsResponseError);
|
|
3447
|
-
declare const getGetSpotPositionsUrl: (userAddress:
|
|
3448
|
-
declare const getSpotPositions: (userAddress:
|
|
2969
|
+
declare const getGetSpotPositionsUrl: (userAddress: PubkeyDto) => string;
|
|
2970
|
+
declare const getSpotPositions: (userAddress: PubkeyDto, options?: RequestInit) => Promise<getSpotPositionsResponse>;
|
|
3449
2971
|
/**
|
|
3450
2972
|
* @summary Request spot position data by position address
|
|
3451
2973
|
*/
|
|
3452
2974
|
type getSpotPositionResponse200 = {
|
|
3453
|
-
data:
|
|
2975
|
+
data: GetSpotPosition200;
|
|
3454
2976
|
status: 200;
|
|
3455
2977
|
};
|
|
3456
2978
|
type getSpotPositionResponse400 = {
|
|
3457
|
-
data:
|
|
2979
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3458
2980
|
status: 400;
|
|
3459
2981
|
};
|
|
3460
2982
|
type getSpotPositionResponse404 = {
|
|
3461
|
-
data:
|
|
2983
|
+
data: SpotPositionError404Error;
|
|
3462
2984
|
status: 404;
|
|
3463
2985
|
};
|
|
2986
|
+
type getSpotPositionResponse422 = {
|
|
2987
|
+
data: ValidationErrorCodeErrorBody;
|
|
2988
|
+
status: 422;
|
|
2989
|
+
};
|
|
3464
2990
|
type getSpotPositionResponse500 = {
|
|
3465
|
-
data:
|
|
2991
|
+
data: SpotPositionError500Error;
|
|
3466
2992
|
status: 500;
|
|
3467
2993
|
};
|
|
3468
2994
|
type getSpotPositionResponseSuccess = (getSpotPositionResponse200) & {
|
|
3469
2995
|
headers: Headers;
|
|
3470
2996
|
};
|
|
3471
|
-
type getSpotPositionResponseError = (getSpotPositionResponse400 | getSpotPositionResponse404 | getSpotPositionResponse500) & {
|
|
2997
|
+
type getSpotPositionResponseError = (getSpotPositionResponse400 | getSpotPositionResponse404 | getSpotPositionResponse422 | getSpotPositionResponse500) & {
|
|
3472
2998
|
headers: Headers;
|
|
3473
2999
|
};
|
|
3474
3000
|
type getSpotPositionResponse = (getSpotPositionResponseSuccess | getSpotPositionResponseError);
|
|
3475
|
-
declare const getGetSpotPositionUrl: (userAddress:
|
|
3476
|
-
declare const getSpotPosition: (userAddress:
|
|
3001
|
+
declare const getGetSpotPositionUrl: (userAddress: PubkeyDto, positionAddress: PubkeyDto) => string;
|
|
3002
|
+
declare const getSpotPosition: (userAddress: PubkeyDto, positionAddress: PubkeyDto, options?: RequestInit) => Promise<getSpotPositionResponse>;
|
|
3477
3003
|
/**
|
|
3478
3004
|
* @summary Request user staking position
|
|
3479
3005
|
*/
|
|
3480
3006
|
type getUserStakingPositionResponse200 = {
|
|
3481
|
-
data:
|
|
3007
|
+
data: GetUserStakingPosition200;
|
|
3482
3008
|
status: 200;
|
|
3483
3009
|
};
|
|
3484
3010
|
type getUserStakingPositionResponse400 = {
|
|
3485
|
-
data:
|
|
3011
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3486
3012
|
status: 400;
|
|
3487
3013
|
};
|
|
3014
|
+
type getUserStakingPositionResponse422 = {
|
|
3015
|
+
data: ValidationErrorCodeErrorBody;
|
|
3016
|
+
status: 422;
|
|
3017
|
+
};
|
|
3488
3018
|
type getUserStakingPositionResponse500 = {
|
|
3489
|
-
data:
|
|
3019
|
+
data: InternalErrorCodeErrorBody;
|
|
3490
3020
|
status: 500;
|
|
3491
3021
|
};
|
|
3492
3022
|
type getUserStakingPositionResponseSuccess = (getUserStakingPositionResponse200) & {
|
|
3493
3023
|
headers: Headers;
|
|
3494
3024
|
};
|
|
3495
|
-
type getUserStakingPositionResponseError = (getUserStakingPositionResponse400 | getUserStakingPositionResponse500) & {
|
|
3025
|
+
type getUserStakingPositionResponseError = (getUserStakingPositionResponse400 | getUserStakingPositionResponse422 | getUserStakingPositionResponse500) & {
|
|
3496
3026
|
headers: Headers;
|
|
3497
3027
|
};
|
|
3498
3028
|
type getUserStakingPositionResponse = (getUserStakingPositionResponseSuccess | getUserStakingPositionResponseError);
|
|
3499
|
-
declare const getGetUserStakingPositionUrl: (userAddress:
|
|
3500
|
-
declare const getUserStakingPosition: (userAddress:
|
|
3029
|
+
declare const getGetUserStakingPositionUrl: (userAddress: PubkeyDto) => string;
|
|
3030
|
+
declare const getUserStakingPosition: (userAddress: PubkeyDto, options?: RequestInit) => Promise<getUserStakingPositionResponse>;
|
|
3501
3031
|
/**
|
|
3502
3032
|
* @summary Request user staking position history
|
|
3503
3033
|
*/
|
|
3504
3034
|
type getUserStakingPositionHistoryResponse200 = {
|
|
3505
|
-
data:
|
|
3035
|
+
data: GetUserStakingPositionHistory200;
|
|
3506
3036
|
status: 200;
|
|
3507
3037
|
};
|
|
3508
3038
|
type getUserStakingPositionHistoryResponse400 = {
|
|
3509
|
-
data:
|
|
3039
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3510
3040
|
status: 400;
|
|
3511
3041
|
};
|
|
3042
|
+
type getUserStakingPositionHistoryResponse422 = {
|
|
3043
|
+
data: ValidationErrorCodeErrorBody;
|
|
3044
|
+
status: 422;
|
|
3045
|
+
};
|
|
3512
3046
|
type getUserStakingPositionHistoryResponse500 = {
|
|
3513
|
-
data:
|
|
3047
|
+
data: InternalErrorCodeErrorBody;
|
|
3514
3048
|
status: 500;
|
|
3515
3049
|
};
|
|
3516
3050
|
type getUserStakingPositionHistoryResponseSuccess = (getUserStakingPositionHistoryResponse200) & {
|
|
3517
3051
|
headers: Headers;
|
|
3518
3052
|
};
|
|
3519
|
-
type getUserStakingPositionHistoryResponseError = (getUserStakingPositionHistoryResponse400 | getUserStakingPositionHistoryResponse500) & {
|
|
3053
|
+
type getUserStakingPositionHistoryResponseError = (getUserStakingPositionHistoryResponse400 | getUserStakingPositionHistoryResponse422 | getUserStakingPositionHistoryResponse500) & {
|
|
3520
3054
|
headers: Headers;
|
|
3521
3055
|
};
|
|
3522
3056
|
type getUserStakingPositionHistoryResponse = (getUserStakingPositionHistoryResponseSuccess | getUserStakingPositionHistoryResponseError);
|
|
3523
|
-
declare const getGetUserStakingPositionHistoryUrl: (userAddress:
|
|
3524
|
-
declare const getUserStakingPositionHistory: (userAddress:
|
|
3057
|
+
declare const getGetUserStakingPositionHistoryUrl: (userAddress: PubkeyDto) => string;
|
|
3058
|
+
declare const getUserStakingPositionHistory: (userAddress: PubkeyDto, options?: RequestInit) => Promise<getUserStakingPositionHistoryResponse>;
|
|
3525
3059
|
/**
|
|
3526
3060
|
* @summary Request user trade history
|
|
3527
3061
|
*/
|
|
3528
3062
|
type getTradeHistoryResponse200 = {
|
|
3529
|
-
data:
|
|
3063
|
+
data: GetTradeHistory200;
|
|
3530
3064
|
status: 200;
|
|
3531
3065
|
};
|
|
3532
3066
|
type getTradeHistoryResponse400 = {
|
|
3533
|
-
data:
|
|
3067
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3534
3068
|
status: 400;
|
|
3535
3069
|
};
|
|
3070
|
+
type getTradeHistoryResponse422 = {
|
|
3071
|
+
data: ValidationErrorCodeErrorBody;
|
|
3072
|
+
status: 422;
|
|
3073
|
+
};
|
|
3536
3074
|
type getTradeHistoryResponse500 = {
|
|
3537
|
-
data:
|
|
3075
|
+
data: InternalErrorCodeErrorBody;
|
|
3538
3076
|
status: 500;
|
|
3539
3077
|
};
|
|
3540
3078
|
type getTradeHistoryResponseSuccess = (getTradeHistoryResponse200) & {
|
|
3541
3079
|
headers: Headers;
|
|
3542
3080
|
};
|
|
3543
|
-
type getTradeHistoryResponseError = (getTradeHistoryResponse400 | getTradeHistoryResponse500) & {
|
|
3081
|
+
type getTradeHistoryResponseError = (getTradeHistoryResponse400 | getTradeHistoryResponse422 | getTradeHistoryResponse500) & {
|
|
3544
3082
|
headers: Headers;
|
|
3545
3083
|
};
|
|
3546
3084
|
type getTradeHistoryResponse = (getTradeHistoryResponseSuccess | getTradeHistoryResponseError);
|
|
3547
|
-
declare const getGetTradeHistoryUrl: (userAddress:
|
|
3548
|
-
declare const getTradeHistory: (userAddress:
|
|
3085
|
+
declare const getGetTradeHistoryUrl: (userAddress: PubkeyDto, params?: GetTradeHistoryParams) => string;
|
|
3086
|
+
declare const getTradeHistory: (userAddress: PubkeyDto, params?: GetTradeHistoryParams, options?: RequestInit) => Promise<getTradeHistoryResponse>;
|
|
3549
3087
|
/**
|
|
3550
3088
|
* @summary Request all user LP positions
|
|
3551
3089
|
*/
|
|
3552
3090
|
type getTunaPositionsResponse200 = {
|
|
3553
|
-
data:
|
|
3091
|
+
data: GetTunaPositions200;
|
|
3554
3092
|
status: 200;
|
|
3555
3093
|
};
|
|
3556
3094
|
type getTunaPositionsResponse400 = {
|
|
3557
|
-
data:
|
|
3095
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3558
3096
|
status: 400;
|
|
3559
3097
|
};
|
|
3098
|
+
type getTunaPositionsResponse422 = {
|
|
3099
|
+
data: ValidationErrorCodeErrorBody;
|
|
3100
|
+
status: 422;
|
|
3101
|
+
};
|
|
3560
3102
|
type getTunaPositionsResponse500 = {
|
|
3561
|
-
data:
|
|
3103
|
+
data: InternalErrorCodeErrorBody;
|
|
3562
3104
|
status: 500;
|
|
3563
3105
|
};
|
|
3564
3106
|
type getTunaPositionsResponseSuccess = (getTunaPositionsResponse200) & {
|
|
3565
3107
|
headers: Headers;
|
|
3566
3108
|
};
|
|
3567
|
-
type getTunaPositionsResponseError = (getTunaPositionsResponse400 | getTunaPositionsResponse500) & {
|
|
3109
|
+
type getTunaPositionsResponseError = (getTunaPositionsResponse400 | getTunaPositionsResponse422 | getTunaPositionsResponse500) & {
|
|
3568
3110
|
headers: Headers;
|
|
3569
3111
|
};
|
|
3570
3112
|
type getTunaPositionsResponse = (getTunaPositionsResponseSuccess | getTunaPositionsResponseError);
|
|
3571
|
-
declare const getGetTunaPositionsUrl: (userAddress:
|
|
3572
|
-
declare const getTunaPositions: (userAddress:
|
|
3113
|
+
declare const getGetTunaPositionsUrl: (userAddress: PubkeyDto) => string;
|
|
3114
|
+
declare const getTunaPositions: (userAddress: PubkeyDto, options?: RequestInit) => Promise<getTunaPositionsResponse>;
|
|
3573
3115
|
/**
|
|
3574
3116
|
* @summary Request LP position data by position address
|
|
3575
3117
|
*/
|
|
3576
3118
|
type getTunaPositionResponse200 = {
|
|
3577
|
-
data:
|
|
3119
|
+
data: GetTunaPosition200;
|
|
3578
3120
|
status: 200;
|
|
3579
3121
|
};
|
|
3580
3122
|
type getTunaPositionResponse400 = {
|
|
3581
|
-
data:
|
|
3123
|
+
data: BadRequestErrorCodeErrorBody;
|
|
3582
3124
|
status: 400;
|
|
3583
3125
|
};
|
|
3126
|
+
type getTunaPositionResponse422 = {
|
|
3127
|
+
data: ValidationErrorCodeErrorBody;
|
|
3128
|
+
status: 422;
|
|
3129
|
+
};
|
|
3584
3130
|
type getTunaPositionResponse500 = {
|
|
3585
|
-
data:
|
|
3131
|
+
data: InternalErrorCodeErrorBody;
|
|
3586
3132
|
status: 500;
|
|
3587
3133
|
};
|
|
3588
3134
|
type getTunaPositionResponseSuccess = (getTunaPositionResponse200) & {
|
|
3589
3135
|
headers: Headers;
|
|
3590
3136
|
};
|
|
3591
|
-
type getTunaPositionResponseError = (getTunaPositionResponse400 | getTunaPositionResponse500) & {
|
|
3137
|
+
type getTunaPositionResponseError = (getTunaPositionResponse400 | getTunaPositionResponse422 | getTunaPositionResponse500) & {
|
|
3592
3138
|
headers: Headers;
|
|
3593
3139
|
};
|
|
3594
3140
|
type getTunaPositionResponse = (getTunaPositionResponseSuccess | getTunaPositionResponseError);
|
|
3595
|
-
declare const getGetTunaPositionUrl: (userAddress:
|
|
3596
|
-
declare const getTunaPosition: (userAddress:
|
|
3141
|
+
declare const getGetTunaPositionUrl: (userAddress: PubkeyDto, positionAddress: PubkeyDto) => string;
|
|
3142
|
+
declare const getTunaPosition: (userAddress: PubkeyDto, positionAddress: PubkeyDto, options?: RequestInit) => Promise<getTunaPositionResponse>;
|
|
3597
3143
|
/**
|
|
3598
3144
|
* @summary Request all vaults data
|
|
3599
3145
|
*/
|
|
3600
3146
|
type getVaultsResponse200 = {
|
|
3601
|
-
data:
|
|
3147
|
+
data: GetVaults200;
|
|
3602
3148
|
status: 200;
|
|
3603
3149
|
};
|
|
3604
3150
|
type getVaultsResponse500 = {
|
|
3605
|
-
data:
|
|
3151
|
+
data: InternalErrorCodeErrorBody;
|
|
3606
3152
|
status: 500;
|
|
3607
3153
|
};
|
|
3608
3154
|
type getVaultsResponseSuccess = (getVaultsResponse200) & {
|
|
@@ -3618,58 +3164,66 @@ declare const getVaults: (options?: RequestInit) => Promise<getVaultsResponse>;
|
|
|
3618
3164
|
* @summary Request vault data
|
|
3619
3165
|
*/
|
|
3620
3166
|
type getVaultResponse200 = {
|
|
3621
|
-
data:
|
|
3167
|
+
data: GetVault200;
|
|
3622
3168
|
status: 200;
|
|
3623
3169
|
};
|
|
3624
3170
|
type getVaultResponse400 = {
|
|
3625
|
-
data:
|
|
3171
|
+
data: VaultError400Error;
|
|
3626
3172
|
status: 400;
|
|
3627
3173
|
};
|
|
3628
3174
|
type getVaultResponse404 = {
|
|
3629
|
-
data:
|
|
3175
|
+
data: VaultError404Error;
|
|
3630
3176
|
status: 404;
|
|
3631
3177
|
};
|
|
3178
|
+
type getVaultResponse422 = {
|
|
3179
|
+
data: ValidationErrorCodeErrorBody;
|
|
3180
|
+
status: 422;
|
|
3181
|
+
};
|
|
3632
3182
|
type getVaultResponse500 = {
|
|
3633
|
-
data:
|
|
3183
|
+
data: VaultError500Error;
|
|
3634
3184
|
status: 500;
|
|
3635
3185
|
};
|
|
3636
3186
|
type getVaultResponseSuccess = (getVaultResponse200) & {
|
|
3637
3187
|
headers: Headers;
|
|
3638
3188
|
};
|
|
3639
|
-
type getVaultResponseError = (getVaultResponse400 | getVaultResponse404 | getVaultResponse500) & {
|
|
3189
|
+
type getVaultResponseError = (getVaultResponse400 | getVaultResponse404 | getVaultResponse422 | getVaultResponse500) & {
|
|
3640
3190
|
headers: Headers;
|
|
3641
3191
|
};
|
|
3642
3192
|
type getVaultResponse = (getVaultResponseSuccess | getVaultResponseError);
|
|
3643
|
-
declare const getGetVaultUrl: (vaultAddress:
|
|
3644
|
-
declare const getVault: (vaultAddress:
|
|
3193
|
+
declare const getGetVaultUrl: (vaultAddress: PubkeyDto) => string;
|
|
3194
|
+
declare const getVault: (vaultAddress: PubkeyDto, options?: RequestInit) => Promise<getVaultResponse>;
|
|
3645
3195
|
/**
|
|
3646
3196
|
* @summary Request vault daily stats
|
|
3647
3197
|
*/
|
|
3648
3198
|
type getVaultHistoryResponse200 = {
|
|
3649
|
-
data:
|
|
3199
|
+
data: GetVaultHistory200;
|
|
3650
3200
|
status: 200;
|
|
3651
3201
|
};
|
|
3652
3202
|
type getVaultHistoryResponse400 = {
|
|
3653
|
-
data:
|
|
3203
|
+
data: VaultError400Error;
|
|
3654
3204
|
status: 400;
|
|
3655
3205
|
};
|
|
3656
3206
|
type getVaultHistoryResponse404 = {
|
|
3657
|
-
data:
|
|
3207
|
+
data: VaultError404Error;
|
|
3658
3208
|
status: 404;
|
|
3659
3209
|
};
|
|
3210
|
+
type getVaultHistoryResponse422 = {
|
|
3211
|
+
data: ValidationErrorCodeErrorBody;
|
|
3212
|
+
status: 422;
|
|
3213
|
+
};
|
|
3660
3214
|
type getVaultHistoryResponse500 = {
|
|
3661
|
-
data:
|
|
3215
|
+
data: VaultError500Error;
|
|
3662
3216
|
status: 500;
|
|
3663
3217
|
};
|
|
3664
3218
|
type getVaultHistoryResponseSuccess = (getVaultHistoryResponse200) & {
|
|
3665
3219
|
headers: Headers;
|
|
3666
3220
|
};
|
|
3667
|
-
type getVaultHistoryResponseError = (getVaultHistoryResponse400 | getVaultHistoryResponse404 | getVaultHistoryResponse500) & {
|
|
3221
|
+
type getVaultHistoryResponseError = (getVaultHistoryResponse400 | getVaultHistoryResponse404 | getVaultHistoryResponse422 | getVaultHistoryResponse500) & {
|
|
3668
3222
|
headers: Headers;
|
|
3669
3223
|
};
|
|
3670
3224
|
type getVaultHistoryResponse = (getVaultHistoryResponseSuccess | getVaultHistoryResponseError);
|
|
3671
|
-
declare const getGetVaultHistoryUrl: (vaultAddress:
|
|
3672
|
-
declare const getVaultHistory: (vaultAddress:
|
|
3225
|
+
declare const getGetVaultHistoryUrl: (vaultAddress: PubkeyDto, params: GetVaultHistoryParams) => string;
|
|
3226
|
+
declare const getVaultHistory: (vaultAddress: PubkeyDto, params: GetVaultHistoryParams, options?: RequestInit) => Promise<getVaultHistoryResponse>;
|
|
3673
3227
|
|
|
3674
3228
|
declare function setTunaBaseUrl(url: string): void;
|
|
3675
3229
|
|
|
@@ -3711,4 +3265,4 @@ declare function eventIsTradeHistory(event: SseResponse): event is NotificationD
|
|
|
3711
3265
|
declare function eventIsOrderHistory(event: SseResponse): event is NotificationDtoOrderHistoryEntryDto;
|
|
3712
3266
|
declare function eventIsStateSnapshot(event: SseResponse): event is SnapshotContainer;
|
|
3713
3267
|
|
|
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 };
|
|
3268
|
+
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 HashMap, 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 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 };
|