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