@crypticdot/defituna-api 3.1.0 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +70 -0
- package/dist/index.d.cts +273 -400
- package/dist/index.d.ts +273 -400
- package/dist/index.js +56 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -12,30 +12,31 @@ interface BadRequestErrorCodeErrorBody {
|
|
|
12
12
|
interface CloseSpotPositionQuoteDto {
|
|
13
13
|
/** Confirmed position decrease percentage (100% = 1.0) */
|
|
14
14
|
decreasePercent: number;
|
|
15
|
-
/**
|
|
16
|
-
estimatedWithdrawnCollateral:
|
|
15
|
+
/** Estimated amount of the withdrawn collateral */
|
|
16
|
+
estimatedWithdrawnCollateral: U64Dto;
|
|
17
17
|
/** Price impact in percents (100% = 1.0) */
|
|
18
18
|
priceImpact: number;
|
|
19
|
-
/**
|
|
20
|
-
|
|
19
|
+
/** The maximum acceptable swap input amount for position decrease according to the provided slippage
|
|
20
|
+
* (if collateral_token == position_token) OR the minimum swap output amount (if collateral_token != position_token). */
|
|
21
|
+
requiredSwapAmount: U64Dto;
|
|
21
22
|
}
|
|
22
23
|
interface DecreaseSpotPositionQuoteDto {
|
|
23
24
|
/** Position decrease percentage */
|
|
24
25
|
decreasePercent: number;
|
|
25
|
-
/**
|
|
26
|
-
estimatedAmount:
|
|
27
|
-
/**
|
|
28
|
-
estimatedWithdrawnCollateral:
|
|
26
|
+
/** Estimated total amount of the adjusted position */
|
|
27
|
+
estimatedAmount: U64Dto;
|
|
28
|
+
/** Estimated amount of the withdrawn collateral */
|
|
29
|
+
estimatedWithdrawnCollateral: U64Dto;
|
|
29
30
|
/** Liquidation price */
|
|
30
31
|
liquidationPrice: number;
|
|
31
32
|
/** Price impact in percents (100% = 1.0) */
|
|
32
33
|
priceImpact: number;
|
|
33
|
-
/**
|
|
34
|
-
|
|
34
|
+
/** The maximum acceptable swap input amount for position decrease according to the provided slippage
|
|
35
|
+
* (if collateral_token == position_token) OR the minimum swap output amount (if collateral_token != position_token). */
|
|
36
|
+
requiredSwapAmount: U64Dto;
|
|
35
37
|
}
|
|
36
38
|
interface FeeAmountWithUsd {
|
|
37
|
-
|
|
38
|
-
amount: bigint;
|
|
39
|
+
amount: I64Dto;
|
|
39
40
|
usd: number;
|
|
40
41
|
}
|
|
41
42
|
interface FeesStatsGroupDto {
|
|
@@ -83,8 +84,7 @@ interface FieldError {
|
|
|
83
84
|
message: string;
|
|
84
85
|
}
|
|
85
86
|
interface FusionFeesStatsGroupDto {
|
|
86
|
-
|
|
87
|
-
pool: string;
|
|
87
|
+
pool: PubkeyDto;
|
|
88
88
|
runningTotalCollectedFees: number;
|
|
89
89
|
time: Date;
|
|
90
90
|
totalCollectedFees: number;
|
|
@@ -103,43 +103,36 @@ declare const GetLimitOrderError500ErrorCode: {
|
|
|
103
103
|
interface GetLimitOrderError500Error {
|
|
104
104
|
code: GetLimitOrderError500ErrorCode;
|
|
105
105
|
}
|
|
106
|
-
interface HashMap {
|
|
107
|
-
[key: string]: {
|
|
108
|
-
feesUsd: number;
|
|
109
|
-
priceChange: number;
|
|
110
|
-
volumeUsd: number;
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
106
|
interface HttpStatusData {
|
|
114
107
|
status: string;
|
|
115
108
|
}
|
|
116
109
|
/**
|
|
117
|
-
* Signed 128-bit integer
|
|
110
|
+
* Signed 128-bit integer encoded as a decimal string.
|
|
118
111
|
*/
|
|
119
112
|
type I128Dto = bigint;
|
|
120
113
|
/**
|
|
121
|
-
* Signed 64-bit integer
|
|
114
|
+
* Signed 64-bit integer encoded as a decimal string.
|
|
122
115
|
*/
|
|
123
116
|
type I64Dto = bigint;
|
|
124
117
|
interface IncreaseSpotPositionQuoteDto {
|
|
125
|
-
/**
|
|
126
|
-
borrowAmount:
|
|
127
|
-
/**
|
|
128
|
-
collateralAmount:
|
|
129
|
-
/**
|
|
130
|
-
estimatedAmount:
|
|
118
|
+
/** Required amount to borrow */
|
|
119
|
+
borrowAmount: U64Dto;
|
|
120
|
+
/** Required collateral amount */
|
|
121
|
+
collateralAmount: U64Dto;
|
|
122
|
+
/** Estimated position size in the position token. */
|
|
123
|
+
estimatedAmount: U64Dto;
|
|
131
124
|
/** Liquidation price */
|
|
132
125
|
liquidationPrice: number;
|
|
133
|
-
/**
|
|
134
|
-
minSwapOutputAmount:
|
|
126
|
+
/** Minimum swap output amount according to the provided slippage. */
|
|
127
|
+
minSwapOutputAmount: U64Dto;
|
|
135
128
|
/** Price impact in percents */
|
|
136
129
|
priceImpact: number;
|
|
137
|
-
/**
|
|
138
|
-
protocolFeeA:
|
|
139
|
-
/**
|
|
140
|
-
protocolFeeB:
|
|
141
|
-
/**
|
|
142
|
-
swapInputAmount:
|
|
130
|
+
/** Protocol fee in token A */
|
|
131
|
+
protocolFeeA: U64Dto;
|
|
132
|
+
/** Protocol fee in token B */
|
|
133
|
+
protocolFeeB: U64Dto;
|
|
134
|
+
/** Swap input amount. */
|
|
135
|
+
swapInputAmount: U64Dto;
|
|
143
136
|
}
|
|
144
137
|
type InternalErrorCodeErrorBodyCode = typeof InternalErrorCodeErrorBodyCode[keyof typeof InternalErrorCodeErrorBodyCode];
|
|
145
138
|
declare const InternalErrorCodeErrorBodyCode: {
|
|
@@ -164,8 +157,7 @@ interface LeaderboardError500Error {
|
|
|
164
157
|
code: LeaderboardError500ErrorCode;
|
|
165
158
|
}
|
|
166
159
|
interface LeaderboardItemDto {
|
|
167
|
-
|
|
168
|
-
authority: string;
|
|
160
|
+
authority: PubkeyDto;
|
|
169
161
|
lpBaseValueUsd: number;
|
|
170
162
|
lpPeriodPnlPercent: number;
|
|
171
163
|
lpPeriodPnlUsd: number;
|
|
@@ -191,50 +183,39 @@ declare const LeaderboardSortBy: {
|
|
|
191
183
|
readonly percent: "percent";
|
|
192
184
|
};
|
|
193
185
|
interface LendingPositionDto {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
/** Solana public key (base58) */
|
|
197
|
-
authority: string;
|
|
186
|
+
address: PubkeyDto;
|
|
187
|
+
authority: PubkeyDto;
|
|
198
188
|
earned: TokenAmountWithUsd;
|
|
199
189
|
funds: TokenAmountWithUsd;
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
205
|
-
updatedAtSlot: bigint;
|
|
206
|
-
/** Solana public key (base58) */
|
|
207
|
-
vault: string;
|
|
190
|
+
mint: PubkeyDto;
|
|
191
|
+
shares: U64Dto;
|
|
192
|
+
updatedAtSlot: U64Dto;
|
|
193
|
+
vault: PubkeyDto;
|
|
208
194
|
}
|
|
209
195
|
type LimitOrderDtoCloseTxSignature = string | null;
|
|
210
196
|
type LimitOrderDtoClosedAt = Date | null;
|
|
211
197
|
interface LimitOrderDto {
|
|
212
198
|
aToB: boolean;
|
|
213
|
-
|
|
214
|
-
address: string;
|
|
199
|
+
address: PubkeyDto;
|
|
215
200
|
amountIn: TokenAmountWithUsd;
|
|
216
201
|
amountOut: TokenAmountWithUsd;
|
|
217
|
-
|
|
218
|
-
authority: string;
|
|
202
|
+
authority: PubkeyDto;
|
|
219
203
|
closeTxSignature?: LimitOrderDtoCloseTxSignature;
|
|
220
204
|
closedAt?: LimitOrderDtoClosedAt;
|
|
221
205
|
fillRatio: number;
|
|
222
206
|
id: string;
|
|
223
207
|
openTxSignature: string;
|
|
224
208
|
openedAt: Date;
|
|
225
|
-
|
|
226
|
-
orderMint: string;
|
|
209
|
+
orderMint: PubkeyDto;
|
|
227
210
|
pool: PoolDto;
|
|
228
211
|
state: LimitOrderStatus;
|
|
229
212
|
tickIndex: number;
|
|
230
213
|
}
|
|
231
214
|
interface LimitOrderQuoteByInputDto {
|
|
232
|
-
|
|
233
|
-
amountOut: bigint;
|
|
215
|
+
amountOut: U64Dto;
|
|
234
216
|
}
|
|
235
217
|
interface LimitOrderQuoteByOutputDto {
|
|
236
|
-
|
|
237
|
-
amountIn: bigint;
|
|
218
|
+
amountIn: U64Dto;
|
|
238
219
|
}
|
|
239
220
|
type LimitOrderStatus = typeof LimitOrderStatus[keyof typeof LimitOrderStatus];
|
|
240
221
|
declare const LimitOrderStatus: {
|
|
@@ -260,10 +241,8 @@ interface LpPositionsError500Error {
|
|
|
260
241
|
code: LpPositionsError500ErrorCode;
|
|
261
242
|
}
|
|
262
243
|
interface MarketDto {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
/** Solana public key (base58) */
|
|
266
|
-
addressLookupTable: string;
|
|
244
|
+
address: PubkeyDto;
|
|
245
|
+
addressLookupTable: PubkeyDto;
|
|
267
246
|
borrowLimitA: TokenAmountWithUsd;
|
|
268
247
|
borrowLimitB: TokenAmountWithUsd;
|
|
269
248
|
borrowedFundsA: TokenAmountWithUsd;
|
|
@@ -305,8 +284,7 @@ interface MarketError500Error {
|
|
|
305
284
|
code: MarketError500ErrorCode;
|
|
306
285
|
}
|
|
307
286
|
interface MintDto {
|
|
308
|
-
|
|
309
|
-
address: string;
|
|
287
|
+
address: PubkeyDto;
|
|
310
288
|
decimals: number;
|
|
311
289
|
logo: string;
|
|
312
290
|
name: string;
|
|
@@ -331,201 +309,6 @@ declare const NotificationAction: {
|
|
|
331
309
|
readonly create: "create";
|
|
332
310
|
readonly update: "update";
|
|
333
311
|
};
|
|
334
|
-
type NotificationDtoLendingPositionDtoData = {
|
|
335
|
-
/** Solana public key (base58) */
|
|
336
|
-
address: string;
|
|
337
|
-
/** Solana public key (base58) */
|
|
338
|
-
authority: string;
|
|
339
|
-
earned: TokenAmountWithUsd;
|
|
340
|
-
funds: TokenAmountWithUsd;
|
|
341
|
-
/** Solana public key (base58) */
|
|
342
|
-
mint: string;
|
|
343
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
344
|
-
shares: bigint;
|
|
345
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
346
|
-
updatedAtSlot: bigint;
|
|
347
|
-
/** Solana public key (base58) */
|
|
348
|
-
vault: string;
|
|
349
|
-
};
|
|
350
|
-
interface NotificationDtoLendingPositionDto {
|
|
351
|
-
action: NotificationAction;
|
|
352
|
-
/** Solana public key (base58) */
|
|
353
|
-
authority?: string;
|
|
354
|
-
data: NotificationDtoLendingPositionDtoData;
|
|
355
|
-
entity: NotificationEntity;
|
|
356
|
-
id: string;
|
|
357
|
-
}
|
|
358
|
-
type NotificationDtoOrderHistoryEntryDtoDataBaseTokenConsumedAmount = null | TokenAmountWithUsd;
|
|
359
|
-
/**
|
|
360
|
-
* Filled for swaps (spot)
|
|
361
|
-
Flatten transaction instruction index
|
|
362
|
-
*/
|
|
363
|
-
type NotificationDtoOrderHistoryEntryDtoDataIxIndex = number | null;
|
|
364
|
-
type NotificationDtoOrderHistoryEntryDtoDataQuoteTokenFilledAmount = null | TokenAmountWithUsd;
|
|
365
|
-
/**
|
|
366
|
-
* Filled for swaps (spot) and margin positions
|
|
367
|
-
*/
|
|
368
|
-
type NotificationDtoOrderHistoryEntryDtoDataTxSignature = string | null;
|
|
369
|
-
/**
|
|
370
|
-
* A decimal price based on the action.
|
|
371
|
-
For market (swaps + margin) orders, displays average execution price for the order excluding the fee
|
|
372
|
-
*/
|
|
373
|
-
type NotificationDtoOrderHistoryEntryDtoDataUiExecutionPrice = number | null;
|
|
374
|
-
/**
|
|
375
|
-
* A decimal price based on the action.
|
|
376
|
-
Only for limit orders & trigger actions.
|
|
377
|
-
|
|
378
|
-
* For limit order fills - price derived from order tick_index
|
|
379
|
-
* For take profit / stop loss / liquidation - trigger price
|
|
380
|
-
*/
|
|
381
|
-
type NotificationDtoOrderHistoryEntryDtoDataUiPrice = number | null;
|
|
382
|
-
type NotificationDtoOrderHistoryEntryDtoData = {
|
|
383
|
-
/** Mints (Tokens) Pair direction in pool
|
|
384
|
-
When TRUE - Base token is Mint A, Quote token is Mint B
|
|
385
|
-
WHEN FALSE - Base token is Mint B, Quote token is MInt A */
|
|
386
|
-
aToB: boolean;
|
|
387
|
-
/** Solana public key (base58) */
|
|
388
|
-
authority: string;
|
|
389
|
-
baseToken: TokenAmountWithUsd;
|
|
390
|
-
baseTokenConsumedAmount?: NotificationDtoOrderHistoryEntryDtoDataBaseTokenConsumedAmount;
|
|
391
|
-
id: string;
|
|
392
|
-
isReduceOnly: boolean;
|
|
393
|
-
/** Filled for swaps (spot)
|
|
394
|
-
Flatten transaction instruction index */
|
|
395
|
-
ixIndex?: NotificationDtoOrderHistoryEntryDtoDataIxIndex;
|
|
396
|
-
orderType: OrderHistoryType;
|
|
397
|
-
pool: PoolDto;
|
|
398
|
-
/** Solana public key (base58) */
|
|
399
|
-
positionAddress?: string;
|
|
400
|
-
quoteToken: TokenAmountWithUsd;
|
|
401
|
-
quoteTokenFilledAmount?: NotificationDtoOrderHistoryEntryDtoDataQuoteTokenFilledAmount;
|
|
402
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
403
|
-
slot: bigint;
|
|
404
|
-
status: OrderHistoryStatus;
|
|
405
|
-
/** Block time of slot this entry was create from */
|
|
406
|
-
ts: Date;
|
|
407
|
-
/** Filled for swaps (spot) and margin positions */
|
|
408
|
-
txSignature?: NotificationDtoOrderHistoryEntryDtoDataTxSignature;
|
|
409
|
-
uiDirection: OrderHistoryUIDirection;
|
|
410
|
-
/** A decimal price based on the action.
|
|
411
|
-
For market (swaps + margin) orders, displays average execution price for the order excluding the fee */
|
|
412
|
-
uiExecutionPrice?: NotificationDtoOrderHistoryEntryDtoDataUiExecutionPrice;
|
|
413
|
-
/** A decimal price based on the action.
|
|
414
|
-
Only for limit orders & trigger actions.
|
|
415
|
-
|
|
416
|
-
* For limit order fills - price derived from order tick_index
|
|
417
|
-
* For take profit / stop loss / liquidation - trigger price */
|
|
418
|
-
uiPrice?: NotificationDtoOrderHistoryEntryDtoDataUiPrice;
|
|
419
|
-
};
|
|
420
|
-
interface NotificationDtoOrderHistoryEntryDto {
|
|
421
|
-
action: NotificationAction;
|
|
422
|
-
/** Solana public key (base58) */
|
|
423
|
-
authority?: string;
|
|
424
|
-
data: NotificationDtoOrderHistoryEntryDtoData;
|
|
425
|
-
entity: NotificationEntity;
|
|
426
|
-
id: string;
|
|
427
|
-
}
|
|
428
|
-
type NotificationDtoPoolSwapDtoData = {
|
|
429
|
-
aToB: boolean;
|
|
430
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
431
|
-
amountIn: bigint;
|
|
432
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
433
|
-
amountOut: bigint;
|
|
434
|
-
amountUsd: number;
|
|
435
|
-
id: string;
|
|
436
|
-
/** Solana public key (base58) */
|
|
437
|
-
pool: string;
|
|
438
|
-
time: Date;
|
|
439
|
-
txSignature: string;
|
|
440
|
-
};
|
|
441
|
-
interface NotificationDtoPoolSwapDto {
|
|
442
|
-
action: NotificationAction;
|
|
443
|
-
/** Solana public key (base58) */
|
|
444
|
-
authority?: string;
|
|
445
|
-
data: NotificationDtoPoolSwapDtoData;
|
|
446
|
-
entity: NotificationEntity;
|
|
447
|
-
id: string;
|
|
448
|
-
}
|
|
449
|
-
type NotificationDtoStakingPositionDtoDataLastUnstakedAt = Date | null;
|
|
450
|
-
/**
|
|
451
|
-
* @minimum 0
|
|
452
|
-
*/
|
|
453
|
-
type NotificationDtoStakingPositionDtoDataRank = number | null;
|
|
454
|
-
type NotificationDtoStakingPositionDtoDataWithdrawAvailableAt = Date | null;
|
|
455
|
-
type NotificationDtoStakingPositionDtoData = {
|
|
456
|
-
/** Solana public key (base58) */
|
|
457
|
-
address: string;
|
|
458
|
-
claimedReward: TokenAmountWithUsd;
|
|
459
|
-
lastUnstakedAt?: NotificationDtoStakingPositionDtoDataLastUnstakedAt;
|
|
460
|
-
/** Solana public key (base58) */
|
|
461
|
-
owner: string;
|
|
462
|
-
/** @minimum 0 */
|
|
463
|
-
rank?: NotificationDtoStakingPositionDtoDataRank;
|
|
464
|
-
staked: TokenAmountWithUsd;
|
|
465
|
-
unclaimedReward: TokenAmountWithUsd;
|
|
466
|
-
unstaked: TokenAmountWithUsd;
|
|
467
|
-
vesting: VestingDto;
|
|
468
|
-
withdrawAvailableAt?: NotificationDtoStakingPositionDtoDataWithdrawAvailableAt;
|
|
469
|
-
};
|
|
470
|
-
interface NotificationDtoStakingPositionDto {
|
|
471
|
-
action: NotificationAction;
|
|
472
|
-
/** Solana public key (base58) */
|
|
473
|
-
authority?: string;
|
|
474
|
-
data: NotificationDtoStakingPositionDtoData;
|
|
475
|
-
entity: NotificationEntity;
|
|
476
|
-
id: string;
|
|
477
|
-
}
|
|
478
|
-
/**
|
|
479
|
-
* Filled for swaps (spot)
|
|
480
|
-
Flatten transaction instruction index
|
|
481
|
-
*/
|
|
482
|
-
type NotificationDtoTradeHistoryEntryDtoDataIxIndex = number | null;
|
|
483
|
-
type NotificationDtoTradeHistoryEntryDtoDataPnl = null | TradeHistoryEntryPnlUsd;
|
|
484
|
-
/**
|
|
485
|
-
* Filled for swaps (spot) and margin positions
|
|
486
|
-
*/
|
|
487
|
-
type NotificationDtoTradeHistoryEntryDtoDataTxSignature = string | null;
|
|
488
|
-
type NotificationDtoTradeHistoryEntryDtoData = {
|
|
489
|
-
/** Mints (Tokens) Pair direction in pool
|
|
490
|
-
When TRUE - Base token is Mint A, Quote token is Mint B
|
|
491
|
-
WHEN FALSE - Base token is Mint B, Quote token is MInt A */
|
|
492
|
-
aToB: boolean;
|
|
493
|
-
action: TradeHistoryAction;
|
|
494
|
-
/** Solana public key (base58) */
|
|
495
|
-
authority: string;
|
|
496
|
-
baseToken: TokenAmountWithUsd;
|
|
497
|
-
/** Positive for taker trades (swaps + spot) and negative for maker trades (limit orders)
|
|
498
|
-
Measured in quote tokens for limit orders */
|
|
499
|
-
fee: FeeAmountWithUsd;
|
|
500
|
-
id: string;
|
|
501
|
-
/** Filled for swaps (spot)
|
|
502
|
-
Flatten transaction instruction index */
|
|
503
|
-
ixIndex?: NotificationDtoTradeHistoryEntryDtoDataIxIndex;
|
|
504
|
-
pnl?: NotificationDtoTradeHistoryEntryDtoDataPnl;
|
|
505
|
-
pool: PoolDto;
|
|
506
|
-
/** Solana public key (base58) */
|
|
507
|
-
positionAddress?: string;
|
|
508
|
-
quoteToken: TokenAmountWithUsd;
|
|
509
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
510
|
-
slot: bigint;
|
|
511
|
-
ts: Date;
|
|
512
|
-
/** Filled for swaps (spot) and margin positions */
|
|
513
|
-
txSignature?: NotificationDtoTradeHistoryEntryDtoDataTxSignature;
|
|
514
|
-
uiDirection: TradeHistoryUIDirection;
|
|
515
|
-
/** A decimal price based on the action.
|
|
516
|
-
|
|
517
|
-
* For spot and margin positions - average execution price excluding the fee.
|
|
518
|
-
* For limit order fills - price derived from order tick_index. */
|
|
519
|
-
uiPrice: number;
|
|
520
|
-
};
|
|
521
|
-
interface NotificationDtoTradeHistoryEntryDto {
|
|
522
|
-
action: NotificationAction;
|
|
523
|
-
/** Solana public key (base58) */
|
|
524
|
-
authority?: string;
|
|
525
|
-
data: NotificationDtoTradeHistoryEntryDtoData;
|
|
526
|
-
entity: NotificationEntity;
|
|
527
|
-
id: string;
|
|
528
|
-
}
|
|
529
312
|
type NotificationEntity = typeof NotificationEntity[keyof typeof NotificationEntity];
|
|
530
313
|
declare const NotificationEntity: {
|
|
531
314
|
readonly initialMessage: "initial_message";
|
|
@@ -544,10 +327,8 @@ declare const NotificationEntity: {
|
|
|
544
327
|
};
|
|
545
328
|
interface OraclePriceDto {
|
|
546
329
|
decimals: number;
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
550
|
-
price: bigint;
|
|
330
|
+
mint: PubkeyDto;
|
|
331
|
+
price: U64Dto;
|
|
551
332
|
time: Date;
|
|
552
333
|
}
|
|
553
334
|
type OraclePriceError404ErrorCode = typeof OraclePriceError404ErrorCode[keyof typeof OraclePriceError404ErrorCode];
|
|
@@ -566,28 +347,19 @@ interface OraclePriceError500Error {
|
|
|
566
347
|
}
|
|
567
348
|
interface OrderBookDto {
|
|
568
349
|
entries: OrderBookEntryDto[];
|
|
569
|
-
|
|
570
|
-
poolAddress: string;
|
|
350
|
+
poolAddress: PubkeyDto;
|
|
571
351
|
poolPrice: number;
|
|
572
352
|
}
|
|
573
353
|
interface OrderBookEntryDto {
|
|
574
354
|
askSide: boolean;
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
584
|
-
limitAmount: bigint;
|
|
585
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
586
|
-
limitAmountQuote: bigint;
|
|
587
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
588
|
-
limitTotal: bigint;
|
|
589
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
590
|
-
limitTotalQuote: bigint;
|
|
355
|
+
concentratedAmount: U64Dto;
|
|
356
|
+
concentratedAmountQuote: U64Dto;
|
|
357
|
+
concentratedTotal: U64Dto;
|
|
358
|
+
concentratedTotalQuote: U64Dto;
|
|
359
|
+
limitAmount: U64Dto;
|
|
360
|
+
limitAmountQuote: U64Dto;
|
|
361
|
+
limitTotal: U64Dto;
|
|
362
|
+
limitTotalQuote: U64Dto;
|
|
591
363
|
price: number;
|
|
592
364
|
}
|
|
593
365
|
type OrderBookWrapper = OrderBookDto;
|
|
@@ -597,6 +369,7 @@ type OrderHistoryEntryDtoBaseTokenConsumedAmount = null | TokenAmountWithUsd;
|
|
|
597
369
|
Flatten transaction instruction index
|
|
598
370
|
*/
|
|
599
371
|
type OrderHistoryEntryDtoIxIndex = number | null;
|
|
372
|
+
type OrderHistoryEntryDtoPositionAddress = null | PubkeyDto;
|
|
600
373
|
type OrderHistoryEntryDtoQuoteTokenFilledAmount = null | TokenAmountWithUsd;
|
|
601
374
|
/**
|
|
602
375
|
* Filled for swaps (spot) and margin positions
|
|
@@ -620,8 +393,8 @@ interface OrderHistoryEntryDto {
|
|
|
620
393
|
When TRUE - Base token is Mint A, Quote token is Mint B
|
|
621
394
|
WHEN FALSE - Base token is Mint B, Quote token is MInt A */
|
|
622
395
|
aToB: boolean;
|
|
623
|
-
/**
|
|
624
|
-
authority:
|
|
396
|
+
/** Owner (account/wallet) of this history entry */
|
|
397
|
+
authority: PubkeyDto;
|
|
625
398
|
baseToken: TokenAmountWithUsd;
|
|
626
399
|
baseTokenConsumedAmount?: OrderHistoryEntryDtoBaseTokenConsumedAmount;
|
|
627
400
|
id: string;
|
|
@@ -631,12 +404,11 @@ interface OrderHistoryEntryDto {
|
|
|
631
404
|
ixIndex?: OrderHistoryEntryDtoIxIndex;
|
|
632
405
|
orderType: OrderHistoryType;
|
|
633
406
|
pool: PoolDto;
|
|
634
|
-
|
|
635
|
-
positionAddress?: string;
|
|
407
|
+
positionAddress: OrderHistoryEntryDtoPositionAddress;
|
|
636
408
|
quoteToken: TokenAmountWithUsd;
|
|
637
409
|
quoteTokenFilledAmount?: OrderHistoryEntryDtoQuoteTokenFilledAmount;
|
|
638
|
-
/**
|
|
639
|
-
slot:
|
|
410
|
+
/** Block's slot this entry was created from */
|
|
411
|
+
slot: U64Dto;
|
|
640
412
|
status: OrderHistoryStatus;
|
|
641
413
|
/** Block time of slot this entry was create from */
|
|
642
414
|
ts: Date;
|
|
@@ -688,12 +460,10 @@ interface PaginationMeta {
|
|
|
688
460
|
type PoolDtoOlpFeeRate = number | null;
|
|
689
461
|
type PoolDtoStats = null | PoolStatsDto;
|
|
690
462
|
interface PoolDto {
|
|
691
|
-
|
|
692
|
-
address: string;
|
|
463
|
+
address: PubkeyDto;
|
|
693
464
|
/** @minimum 0 */
|
|
694
465
|
feeRate: number;
|
|
695
|
-
|
|
696
|
-
liquidity: bigint;
|
|
466
|
+
liquidity: U128Dto;
|
|
697
467
|
mintA: MintDto;
|
|
698
468
|
mintB: MintDto;
|
|
699
469
|
olpFeeRate?: PoolDtoOlpFeeRate;
|
|
@@ -701,16 +471,13 @@ interface PoolDto {
|
|
|
701
471
|
/** @minimum 0 */
|
|
702
472
|
protocolFeeRate: number;
|
|
703
473
|
provider: PoolProvider;
|
|
704
|
-
|
|
705
|
-
sqrtPrice: bigint;
|
|
474
|
+
sqrtPrice: U128Dto;
|
|
706
475
|
stats?: PoolDtoStats;
|
|
707
476
|
tickCurrentIndex: number;
|
|
708
477
|
/** @minimum 0 */
|
|
709
478
|
tickSpacing: number;
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
/** Solana public key (base58) */
|
|
713
|
-
tokenBVault: string;
|
|
479
|
+
tokenAVault: PubkeyDto;
|
|
480
|
+
tokenBVault: PubkeyDto;
|
|
714
481
|
}
|
|
715
482
|
interface PoolPriceCandleDto {
|
|
716
483
|
close: number;
|
|
@@ -726,9 +493,17 @@ declare const PoolProvider: {
|
|
|
726
493
|
readonly fusion: "fusion";
|
|
727
494
|
};
|
|
728
495
|
interface PoolStatsDto {
|
|
729
|
-
groups:
|
|
496
|
+
groups: PoolStatsGroupDto;
|
|
730
497
|
tvlUsd: number;
|
|
731
498
|
}
|
|
499
|
+
interface PoolStatsGroupDto {
|
|
500
|
+
[key: string]: PoolStatsGroupEntryDto;
|
|
501
|
+
}
|
|
502
|
+
interface PoolStatsGroupEntryDto {
|
|
503
|
+
feesUsd: number;
|
|
504
|
+
priceChange: number;
|
|
505
|
+
volumeUsd: number;
|
|
506
|
+
}
|
|
732
507
|
type PoolSubscriptionIsInverted = boolean | null;
|
|
733
508
|
type PoolSubscriptionOrderBookPriceStep = number | null;
|
|
734
509
|
interface PoolSubscription {
|
|
@@ -745,14 +520,11 @@ declare const PoolSubscriptionTopic: {
|
|
|
745
520
|
};
|
|
746
521
|
interface PoolSwapDto {
|
|
747
522
|
aToB: boolean;
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
751
|
-
amountOut: bigint;
|
|
523
|
+
amountIn: U64Dto;
|
|
524
|
+
amountOut: U64Dto;
|
|
752
525
|
amountUsd: number;
|
|
753
526
|
id: string;
|
|
754
|
-
|
|
755
|
-
pool: string;
|
|
527
|
+
pool: PubkeyDto;
|
|
756
528
|
time: Date;
|
|
757
529
|
txSignature: string;
|
|
758
530
|
}
|
|
@@ -831,14 +603,150 @@ declare const SpotPositionError500ErrorCode: {
|
|
|
831
603
|
interface SpotPositionError500Error {
|
|
832
604
|
code: SpotPositionError500ErrorCode;
|
|
833
605
|
}
|
|
834
|
-
type SseResponse =
|
|
606
|
+
type SseResponse = SseResponseInitialMessage | SseResponsePoolSwap | SseResponseStakingPosition | SseResponseLendingPosition | SseResponseTradeHistoryEntry | SseResponseOrderHistoryEntry | SseResponseSnapshot;
|
|
607
|
+
type SseResponseInitialMessageAllOfEntity = typeof SseResponseInitialMessageAllOfEntity[keyof typeof SseResponseInitialMessageAllOfEntity];
|
|
608
|
+
declare const SseResponseInitialMessageAllOfEntity: {
|
|
609
|
+
readonly initialMessage: "initial_message";
|
|
610
|
+
};
|
|
611
|
+
type SseResponseInitialMessageAllOf = {
|
|
612
|
+
entity: SseResponseInitialMessageAllOfEntity;
|
|
613
|
+
};
|
|
614
|
+
type SseResponseInitialMessageEntity = typeof SseResponseInitialMessageEntity[keyof typeof SseResponseInitialMessageEntity];
|
|
615
|
+
declare const SseResponseInitialMessageEntity: {
|
|
616
|
+
readonly initialMessage: "initial_message";
|
|
617
|
+
};
|
|
618
|
+
type SseResponseInitialMessage = StreamInitalMessage & SseResponseInitialMessageAllOf & {
|
|
619
|
+
entity: SseResponseInitialMessageEntity;
|
|
620
|
+
};
|
|
621
|
+
type SseResponseLendingPositionAllOfEntity = typeof SseResponseLendingPositionAllOfEntity[keyof typeof SseResponseLendingPositionAllOfEntity];
|
|
622
|
+
declare const SseResponseLendingPositionAllOfEntity: {
|
|
623
|
+
readonly lendingPosition: "lending_position";
|
|
624
|
+
};
|
|
625
|
+
type SseResponseLendingPositionAllOf = {
|
|
626
|
+
entity: SseResponseLendingPositionAllOfEntity;
|
|
627
|
+
};
|
|
628
|
+
type SseResponseLendingPositionEntity = typeof SseResponseLendingPositionEntity[keyof typeof SseResponseLendingPositionEntity];
|
|
629
|
+
declare const SseResponseLendingPositionEntity: {
|
|
630
|
+
readonly lendingPosition: "lending_position";
|
|
631
|
+
};
|
|
632
|
+
type SseResponseLendingPosition = SseResponseLendingPositionPayload & SseResponseLendingPositionAllOf & {
|
|
633
|
+
entity: SseResponseLendingPositionEntity;
|
|
634
|
+
};
|
|
635
|
+
type SseResponseLendingPositionPayloadAuthority = null | PubkeyDto;
|
|
636
|
+
interface SseResponseLendingPositionPayload {
|
|
637
|
+
action: NotificationAction;
|
|
638
|
+
authority?: SseResponseLendingPositionPayloadAuthority;
|
|
639
|
+
data: LendingPositionDto;
|
|
640
|
+
entity: NotificationEntity;
|
|
641
|
+
id: string;
|
|
642
|
+
}
|
|
643
|
+
type SseResponseOrderHistoryEntryAllOfEntity = typeof SseResponseOrderHistoryEntryAllOfEntity[keyof typeof SseResponseOrderHistoryEntryAllOfEntity];
|
|
644
|
+
declare const SseResponseOrderHistoryEntryAllOfEntity: {
|
|
645
|
+
readonly orderHistoryEntry: "order_history_entry";
|
|
646
|
+
};
|
|
647
|
+
type SseResponseOrderHistoryEntryAllOf = {
|
|
648
|
+
entity: SseResponseOrderHistoryEntryAllOfEntity;
|
|
649
|
+
};
|
|
650
|
+
type SseResponseOrderHistoryEntryEntity = typeof SseResponseOrderHistoryEntryEntity[keyof typeof SseResponseOrderHistoryEntryEntity];
|
|
651
|
+
declare const SseResponseOrderHistoryEntryEntity: {
|
|
652
|
+
readonly orderHistoryEntry: "order_history_entry";
|
|
653
|
+
};
|
|
654
|
+
type SseResponseOrderHistoryEntry = SseResponseOrderHistoryEntryPayload & SseResponseOrderHistoryEntryAllOf & {
|
|
655
|
+
entity: SseResponseOrderHistoryEntryEntity;
|
|
656
|
+
};
|
|
657
|
+
type SseResponseOrderHistoryEntryPayloadAuthority = null | PubkeyDto;
|
|
658
|
+
interface SseResponseOrderHistoryEntryPayload {
|
|
659
|
+
action: NotificationAction;
|
|
660
|
+
authority?: SseResponseOrderHistoryEntryPayloadAuthority;
|
|
661
|
+
data: OrderHistoryEntryDto;
|
|
662
|
+
entity: NotificationEntity;
|
|
663
|
+
id: string;
|
|
664
|
+
}
|
|
665
|
+
type SseResponsePoolSwapAllOfEntity = typeof SseResponsePoolSwapAllOfEntity[keyof typeof SseResponsePoolSwapAllOfEntity];
|
|
666
|
+
declare const SseResponsePoolSwapAllOfEntity: {
|
|
667
|
+
readonly poolSwap: "pool_swap";
|
|
668
|
+
};
|
|
669
|
+
type SseResponsePoolSwapAllOf = {
|
|
670
|
+
entity: SseResponsePoolSwapAllOfEntity;
|
|
671
|
+
};
|
|
672
|
+
type SseResponsePoolSwapEntity = typeof SseResponsePoolSwapEntity[keyof typeof SseResponsePoolSwapEntity];
|
|
673
|
+
declare const SseResponsePoolSwapEntity: {
|
|
674
|
+
readonly poolSwap: "pool_swap";
|
|
675
|
+
};
|
|
676
|
+
type SseResponsePoolSwap = SseResponsePoolSwapPayload & SseResponsePoolSwapAllOf & {
|
|
677
|
+
entity: SseResponsePoolSwapEntity;
|
|
678
|
+
};
|
|
679
|
+
type SseResponsePoolSwapPayloadAuthority = null | PubkeyDto;
|
|
680
|
+
interface SseResponsePoolSwapPayload {
|
|
681
|
+
action: NotificationAction;
|
|
682
|
+
authority?: SseResponsePoolSwapPayloadAuthority;
|
|
683
|
+
data: PoolSwapDto;
|
|
684
|
+
entity: NotificationEntity;
|
|
685
|
+
id: string;
|
|
686
|
+
}
|
|
687
|
+
type SseResponseSnapshotAllOfEntity = typeof SseResponseSnapshotAllOfEntity[keyof typeof SseResponseSnapshotAllOfEntity];
|
|
688
|
+
declare const SseResponseSnapshotAllOfEntity: {
|
|
689
|
+
readonly stateSnapshot: "state_snapshot";
|
|
690
|
+
};
|
|
691
|
+
type SseResponseSnapshotAllOf = {
|
|
692
|
+
entity: SseResponseSnapshotAllOfEntity;
|
|
693
|
+
};
|
|
694
|
+
type SseResponseSnapshotEntity = typeof SseResponseSnapshotEntity[keyof typeof SseResponseSnapshotEntity];
|
|
695
|
+
declare const SseResponseSnapshotEntity: {
|
|
696
|
+
readonly stateSnapshot: "state_snapshot";
|
|
697
|
+
};
|
|
698
|
+
type SseResponseSnapshot = SnapshotContainer & SseResponseSnapshotAllOf & {
|
|
699
|
+
entity: SseResponseSnapshotEntity;
|
|
700
|
+
};
|
|
701
|
+
type SseResponseStakingPositionAllOfEntity = typeof SseResponseStakingPositionAllOfEntity[keyof typeof SseResponseStakingPositionAllOfEntity];
|
|
702
|
+
declare const SseResponseStakingPositionAllOfEntity: {
|
|
703
|
+
readonly stakingPosition: "staking_position";
|
|
704
|
+
};
|
|
705
|
+
type SseResponseStakingPositionAllOf = {
|
|
706
|
+
entity: SseResponseStakingPositionAllOfEntity;
|
|
707
|
+
};
|
|
708
|
+
type SseResponseStakingPositionEntity = typeof SseResponseStakingPositionEntity[keyof typeof SseResponseStakingPositionEntity];
|
|
709
|
+
declare const SseResponseStakingPositionEntity: {
|
|
710
|
+
readonly stakingPosition: "staking_position";
|
|
711
|
+
};
|
|
712
|
+
type SseResponseStakingPosition = SseResponseStakingPositionPayload & SseResponseStakingPositionAllOf & {
|
|
713
|
+
entity: SseResponseStakingPositionEntity;
|
|
714
|
+
};
|
|
715
|
+
type SseResponseStakingPositionPayloadAuthority = null | PubkeyDto;
|
|
716
|
+
interface SseResponseStakingPositionPayload {
|
|
717
|
+
action: NotificationAction;
|
|
718
|
+
authority?: SseResponseStakingPositionPayloadAuthority;
|
|
719
|
+
data: StakingPositionDto;
|
|
720
|
+
entity: NotificationEntity;
|
|
721
|
+
id: string;
|
|
722
|
+
}
|
|
723
|
+
type SseResponseTradeHistoryEntryAllOfEntity = typeof SseResponseTradeHistoryEntryAllOfEntity[keyof typeof SseResponseTradeHistoryEntryAllOfEntity];
|
|
724
|
+
declare const SseResponseTradeHistoryEntryAllOfEntity: {
|
|
725
|
+
readonly tradeHistoryEntry: "trade_history_entry";
|
|
726
|
+
};
|
|
727
|
+
type SseResponseTradeHistoryEntryAllOf = {
|
|
728
|
+
entity: SseResponseTradeHistoryEntryAllOfEntity;
|
|
729
|
+
};
|
|
730
|
+
type SseResponseTradeHistoryEntryEntity = typeof SseResponseTradeHistoryEntryEntity[keyof typeof SseResponseTradeHistoryEntryEntity];
|
|
731
|
+
declare const SseResponseTradeHistoryEntryEntity: {
|
|
732
|
+
readonly tradeHistoryEntry: "trade_history_entry";
|
|
733
|
+
};
|
|
734
|
+
type SseResponseTradeHistoryEntry = SseResponseTradeHistoryEntryPayload & SseResponseTradeHistoryEntryAllOf & {
|
|
735
|
+
entity: SseResponseTradeHistoryEntryEntity;
|
|
736
|
+
};
|
|
737
|
+
type SseResponseTradeHistoryEntryPayloadAuthority = null | PubkeyDto;
|
|
738
|
+
interface SseResponseTradeHistoryEntryPayload {
|
|
739
|
+
action: NotificationAction;
|
|
740
|
+
authority?: SseResponseTradeHistoryEntryPayloadAuthority;
|
|
741
|
+
data: TradeHistoryEntryDto;
|
|
742
|
+
entity: NotificationEntity;
|
|
743
|
+
id: string;
|
|
744
|
+
}
|
|
835
745
|
interface StakingDepositsStatsDto {
|
|
836
|
-
|
|
837
|
-
runningTotalDepositsSol: bigint;
|
|
746
|
+
runningTotalDepositsSol: U64Dto;
|
|
838
747
|
runningTotalDepositsUsd: number;
|
|
839
748
|
time: Date;
|
|
840
|
-
|
|
841
|
-
totalDepositsSol: bigint;
|
|
749
|
+
totalDepositsSol: U64Dto;
|
|
842
750
|
totalDepositsUsd: number;
|
|
843
751
|
}
|
|
844
752
|
type StakingError400BadRequestCode = typeof StakingError400BadRequestCode[keyof typeof StakingError400BadRequestCode];
|
|
@@ -857,20 +765,16 @@ interface StakingError500Error {
|
|
|
857
765
|
code: StakingError500ErrorCode;
|
|
858
766
|
}
|
|
859
767
|
interface StakingLeaderboardPositionDto {
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
/** Solana public key (base58) */
|
|
863
|
-
owner: string;
|
|
768
|
+
address: PubkeyDto;
|
|
769
|
+
owner: PubkeyDto;
|
|
864
770
|
/** @minimum 0 */
|
|
865
771
|
rank: number;
|
|
866
772
|
staked: TokenAmountWithUsd;
|
|
867
773
|
}
|
|
868
774
|
interface StakingPositionActionDto {
|
|
869
775
|
action: StakingPositionActionType;
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
/** Solana public key (base58) */
|
|
873
|
-
position: string;
|
|
776
|
+
amount: U64Dto;
|
|
777
|
+
position: PubkeyDto;
|
|
874
778
|
time: Date;
|
|
875
779
|
txSignature: string;
|
|
876
780
|
}
|
|
@@ -889,12 +793,10 @@ type StakingPositionDtoLastUnstakedAt = Date | null;
|
|
|
889
793
|
type StakingPositionDtoRank = number | null;
|
|
890
794
|
type StakingPositionDtoWithdrawAvailableAt = Date | null;
|
|
891
795
|
interface StakingPositionDto {
|
|
892
|
-
|
|
893
|
-
address: string;
|
|
796
|
+
address: PubkeyDto;
|
|
894
797
|
claimedReward: TokenAmountWithUsd;
|
|
895
798
|
lastUnstakedAt?: StakingPositionDtoLastUnstakedAt;
|
|
896
|
-
|
|
897
|
-
owner: string;
|
|
799
|
+
owner: PubkeyDto;
|
|
898
800
|
/** @minimum 0 */
|
|
899
801
|
rank?: StakingPositionDtoRank;
|
|
900
802
|
staked: TokenAmountWithUsd;
|
|
@@ -936,40 +838,31 @@ interface SubscriptionOptions {
|
|
|
936
838
|
wallet?: SubscriptionOptionsWallet;
|
|
937
839
|
}
|
|
938
840
|
interface SwapQuoteByInputDto {
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
942
|
-
feeAmount: bigint;
|
|
841
|
+
estimatedAmountOut: U64Dto;
|
|
842
|
+
feeAmount: U64Dto;
|
|
943
843
|
feeUsd: number;
|
|
944
|
-
|
|
945
|
-
minAmountOut: bigint;
|
|
844
|
+
minAmountOut: U64Dto;
|
|
946
845
|
/** Price impact in percents */
|
|
947
846
|
priceImpact: number;
|
|
948
847
|
}
|
|
949
848
|
interface SwapQuoteByOutputDto {
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
953
|
-
feeAmount: bigint;
|
|
849
|
+
estimatedAmountIn: U64Dto;
|
|
850
|
+
feeAmount: U64Dto;
|
|
954
851
|
feeUsd: number;
|
|
955
|
-
|
|
956
|
-
maxAmountIn: bigint;
|
|
852
|
+
maxAmountIn: U64Dto;
|
|
957
853
|
/** Price impact in percents */
|
|
958
854
|
priceImpact: number;
|
|
959
855
|
}
|
|
960
856
|
interface TickDto {
|
|
961
857
|
index: number;
|
|
962
|
-
|
|
963
|
-
liquidity: bigint;
|
|
858
|
+
liquidity: I128Dto;
|
|
964
859
|
}
|
|
965
860
|
interface TokenAmountWithUsd {
|
|
966
|
-
|
|
967
|
-
amount: bigint;
|
|
861
|
+
amount: U64Dto;
|
|
968
862
|
usd: number;
|
|
969
863
|
}
|
|
970
864
|
interface TradableAmountDto {
|
|
971
|
-
|
|
972
|
-
amount: bigint;
|
|
865
|
+
amount: U64Dto;
|
|
973
866
|
usd: number;
|
|
974
867
|
}
|
|
975
868
|
type TradeHistoryAction = typeof TradeHistoryAction[keyof typeof TradeHistoryAction];
|
|
@@ -988,6 +881,7 @@ Flatten transaction instruction index
|
|
|
988
881
|
*/
|
|
989
882
|
type TradeHistoryEntryDtoIxIndex = number | null;
|
|
990
883
|
type TradeHistoryEntryDtoPnl = null | TradeHistoryEntryPnlUsd;
|
|
884
|
+
type TradeHistoryEntryDtoPositionAddress = null | PubkeyDto;
|
|
991
885
|
/**
|
|
992
886
|
* Filled for swaps (spot) and margin positions
|
|
993
887
|
*/
|
|
@@ -998,8 +892,8 @@ interface TradeHistoryEntryDto {
|
|
|
998
892
|
WHEN FALSE - Base token is Mint B, Quote token is MInt A */
|
|
999
893
|
aToB: boolean;
|
|
1000
894
|
action: TradeHistoryAction;
|
|
1001
|
-
/**
|
|
1002
|
-
authority:
|
|
895
|
+
/** Owner (account/wallet) of this history entry */
|
|
896
|
+
authority: PubkeyDto;
|
|
1003
897
|
baseToken: TokenAmountWithUsd;
|
|
1004
898
|
/** Positive for taker trades (swaps + spot) and negative for maker trades (limit orders)
|
|
1005
899
|
Measured in quote tokens for limit orders */
|
|
@@ -1010,11 +904,10 @@ interface TradeHistoryEntryDto {
|
|
|
1010
904
|
ixIndex?: TradeHistoryEntryDtoIxIndex;
|
|
1011
905
|
pnl?: TradeHistoryEntryDtoPnl;
|
|
1012
906
|
pool: PoolDto;
|
|
1013
|
-
|
|
1014
|
-
positionAddress?: string;
|
|
907
|
+
positionAddress: TradeHistoryEntryDtoPositionAddress;
|
|
1015
908
|
quoteToken: TokenAmountWithUsd;
|
|
1016
|
-
/**
|
|
1017
|
-
slot:
|
|
909
|
+
/** Block's slot this entry was created from */
|
|
910
|
+
slot: U64Dto;
|
|
1018
911
|
ts: Date;
|
|
1019
912
|
/** Filled for swaps (spot) and margin positions */
|
|
1020
913
|
txSignature?: TradeHistoryEntryDtoTxSignature;
|
|
@@ -1039,16 +932,13 @@ declare const TradeHistoryUIDirection: {
|
|
|
1039
932
|
readonly closeShort: "close_short";
|
|
1040
933
|
};
|
|
1041
934
|
interface TreasuryDto {
|
|
1042
|
-
|
|
1043
|
-
address: string;
|
|
935
|
+
address: PubkeyDto;
|
|
1044
936
|
apy: number;
|
|
1045
937
|
isStakingEnabled: boolean;
|
|
1046
938
|
isUnstakingEnabled: boolean;
|
|
1047
939
|
isWithdrawEnabled: boolean;
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
/** Solana public key (base58) */
|
|
1051
|
-
stakedTokenMint: string;
|
|
940
|
+
rewardTokenMint: PubkeyDto;
|
|
941
|
+
stakedTokenMint: PubkeyDto;
|
|
1052
942
|
totalReward: TokenAmountWithUsd;
|
|
1053
943
|
totalStaked: TokenAmountWithUsd;
|
|
1054
944
|
/** @minimum 0 */
|
|
@@ -1113,8 +1003,7 @@ type TunaLpPositionDtoExitPrice = number | null;
|
|
|
1113
1003
|
type TunaLpPositionDtoLowerLimitOrder = number | null;
|
|
1114
1004
|
type TunaLpPositionDtoUpperLimitOrder = number | null;
|
|
1115
1005
|
interface TunaLpPositionDto {
|
|
1116
|
-
|
|
1117
|
-
authority: string;
|
|
1006
|
+
authority: PubkeyDto;
|
|
1118
1007
|
closedAt?: TunaLpPositionDtoClosedAt;
|
|
1119
1008
|
closedPnlSumUsd: number;
|
|
1120
1009
|
entryPrice: number;
|
|
@@ -1127,8 +1016,7 @@ interface TunaLpPositionDto {
|
|
|
1127
1016
|
marketMaker: PoolProvider;
|
|
1128
1017
|
openedAt: Date;
|
|
1129
1018
|
pool: PoolDto;
|
|
1130
|
-
|
|
1131
|
-
positionAddress: string;
|
|
1019
|
+
positionAddress: PubkeyDto;
|
|
1132
1020
|
state: TunaPositionDtoState;
|
|
1133
1021
|
totalDepositUsd: number;
|
|
1134
1022
|
totalValueUsd: number;
|
|
@@ -1233,10 +1121,8 @@ interface TunaLpPositionsStats {
|
|
|
1233
1121
|
}
|
|
1234
1122
|
type TunaPositionDtoClosedAt = Date | null;
|
|
1235
1123
|
interface TunaPositionDto {
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
/** Solana public key (base58) */
|
|
1239
|
-
authority: string;
|
|
1124
|
+
address: PubkeyDto;
|
|
1125
|
+
authority: PubkeyDto;
|
|
1240
1126
|
closedAt?: TunaPositionDtoClosedAt;
|
|
1241
1127
|
compoundedYieldA: TokenAmountWithUsd;
|
|
1242
1128
|
compoundedYieldB: TokenAmountWithUsd;
|
|
@@ -1253,8 +1139,7 @@ interface TunaPositionDto {
|
|
|
1253
1139
|
leverage: number;
|
|
1254
1140
|
liquidationPriceLower: number;
|
|
1255
1141
|
liquidationPriceUpper: number;
|
|
1256
|
-
|
|
1257
|
-
liquidity: bigint;
|
|
1142
|
+
liquidity: U128Dto;
|
|
1258
1143
|
lowerLimitOrderPrice: number;
|
|
1259
1144
|
marketMaker: TunaPositionMarketMaker;
|
|
1260
1145
|
maxLeverage: number;
|
|
@@ -1265,8 +1150,7 @@ interface TunaPositionDto {
|
|
|
1265
1150
|
pnlB: TunaPositionTokenPnl;
|
|
1266
1151
|
pnlUsd: TunaPositionUsdPnl;
|
|
1267
1152
|
pool: PoolDto;
|
|
1268
|
-
|
|
1269
|
-
positionMint: string;
|
|
1153
|
+
positionMint: PubkeyDto;
|
|
1270
1154
|
state: TunaPositionDtoState;
|
|
1271
1155
|
tickLowerIndex: number;
|
|
1272
1156
|
tickUpperIndex: number;
|
|
@@ -1296,13 +1180,11 @@ declare const TunaPositionPoolToken: {
|
|
|
1296
1180
|
readonly b: "b";
|
|
1297
1181
|
};
|
|
1298
1182
|
interface TunaPositionTokenDepositedCollateral {
|
|
1299
|
-
|
|
1300
|
-
amount: bigint;
|
|
1183
|
+
amount: I128Dto;
|
|
1301
1184
|
usd: number;
|
|
1302
1185
|
}
|
|
1303
1186
|
interface TunaPositionTokenPnl {
|
|
1304
|
-
|
|
1305
|
-
amount: bigint;
|
|
1187
|
+
amount: I128Dto;
|
|
1306
1188
|
rate: number;
|
|
1307
1189
|
}
|
|
1308
1190
|
interface TunaPositionUsdPnl {
|
|
@@ -1311,10 +1193,8 @@ interface TunaPositionUsdPnl {
|
|
|
1311
1193
|
}
|
|
1312
1194
|
type TunaSpotPositionDtoClosedAt = Date | null;
|
|
1313
1195
|
interface TunaSpotPositionDto {
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
/** Solana public key (base58) */
|
|
1317
|
-
authority: string;
|
|
1196
|
+
address: PubkeyDto;
|
|
1197
|
+
authority: PubkeyDto;
|
|
1318
1198
|
closedAt?: TunaSpotPositionDtoClosedAt;
|
|
1319
1199
|
collateralToken: TunaPositionPoolToken;
|
|
1320
1200
|
currentDebt: TokenAmountWithUsd;
|
|
@@ -1342,11 +1222,11 @@ declare const TunaSpotPositionDtoState: {
|
|
|
1342
1222
|
readonly closed: "closed";
|
|
1343
1223
|
};
|
|
1344
1224
|
/**
|
|
1345
|
-
* Unsigned 128-bit integer
|
|
1225
|
+
* Unsigned 128-bit integer encoded as a decimal string.
|
|
1346
1226
|
*/
|
|
1347
1227
|
type U128Dto = bigint;
|
|
1348
1228
|
/**
|
|
1349
|
-
* Unsigned 64-bit integer
|
|
1229
|
+
* Unsigned 64-bit integer encoded as a decimal string.
|
|
1350
1230
|
*/
|
|
1351
1231
|
type U64Dto = bigint;
|
|
1352
1232
|
type UpdateStreamSubscriptionError404ErrorCode = typeof UpdateStreamSubscriptionError404ErrorCode[keyof typeof UpdateStreamSubscriptionError404ErrorCode];
|
|
@@ -1386,23 +1266,16 @@ interface ValidationErrorCodeValidationDetailsErrorBody {
|
|
|
1386
1266
|
data?: ValidationErrorCodeValidationDetailsErrorBodyData;
|
|
1387
1267
|
}
|
|
1388
1268
|
interface VaultDto {
|
|
1389
|
-
|
|
1390
|
-
address: string;
|
|
1269
|
+
address: PubkeyDto;
|
|
1391
1270
|
borrowApy: number;
|
|
1392
1271
|
borrowedFunds: TokenAmountWithUsd;
|
|
1393
|
-
|
|
1394
|
-
borrowedShares: bigint;
|
|
1272
|
+
borrowedShares: U64Dto;
|
|
1395
1273
|
depositedFunds: TokenAmountWithUsd;
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
mint: string;
|
|
1402
|
-
/** Solana public key (base58) */
|
|
1403
|
-
pythOracleFeedId: string;
|
|
1404
|
-
/** Solana public key (base58) */
|
|
1405
|
-
pythOraclePriceUpdate: string;
|
|
1274
|
+
depositedShares: U64Dto;
|
|
1275
|
+
interestRate: U64Dto;
|
|
1276
|
+
mint: PubkeyDto;
|
|
1277
|
+
pythOracleFeedId: PubkeyDto;
|
|
1278
|
+
pythOraclePriceUpdate: PubkeyDto;
|
|
1406
1279
|
supplyApy: number;
|
|
1407
1280
|
supplyLimit: TokenAmountWithUsd;
|
|
1408
1281
|
utilization: number;
|
|
@@ -1455,8 +1328,8 @@ interface VestingDto {
|
|
|
1455
1328
|
* @minimum 0
|
|
1456
1329
|
*/
|
|
1457
1330
|
unlockEverySeconds: number;
|
|
1458
|
-
/**
|
|
1459
|
-
unlockRate:
|
|
1331
|
+
/** The amount of tokens to unlock per unlock */
|
|
1332
|
+
unlockRate: U64Dto;
|
|
1460
1333
|
/** Amount of tokens unlocked since the beginning of lock */
|
|
1461
1334
|
unlocked: TokenAmountWithUsd;
|
|
1462
1335
|
}
|
|
@@ -3257,12 +3130,12 @@ declare function unwrap<R extends HttpLikeResponse>(promise: Promise<R>): Promis
|
|
|
3257
3130
|
declare function normalizeResponseJson(raw: unknown): unknown;
|
|
3258
3131
|
|
|
3259
3132
|
declare const getSseUpdatesStream: () => Promise<EventSource>;
|
|
3260
|
-
declare function eventIsInitialMessage(event: SseResponse): event is
|
|
3261
|
-
declare function eventIsPoolSwap(event: SseResponse): event is
|
|
3262
|
-
declare function eventIsStakingPosition(event: SseResponse): event is
|
|
3263
|
-
declare function eventIsLendingPosition(event: SseResponse): event is
|
|
3264
|
-
declare function eventIsTradeHistory(event: SseResponse): event is
|
|
3265
|
-
declare function eventIsOrderHistory(event: SseResponse): event is
|
|
3266
|
-
declare function eventIsStateSnapshot(event: SseResponse): event is
|
|
3133
|
+
declare function eventIsInitialMessage(event: SseResponse): event is SseResponseInitialMessage;
|
|
3134
|
+
declare function eventIsPoolSwap(event: SseResponse): event is SseResponsePoolSwap;
|
|
3135
|
+
declare function eventIsStakingPosition(event: SseResponse): event is SseResponseStakingPosition;
|
|
3136
|
+
declare function eventIsLendingPosition(event: SseResponse): event is SseResponseLendingPosition;
|
|
3137
|
+
declare function eventIsTradeHistory(event: SseResponse): event is SseResponseTradeHistoryEntry;
|
|
3138
|
+
declare function eventIsOrderHistory(event: SseResponse): event is SseResponseOrderHistoryEntry;
|
|
3139
|
+
declare function eventIsStateSnapshot(event: SseResponse): event is SseResponseSnapshot;
|
|
3267
3140
|
|
|
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 };
|
|
3141
|
+
export { type ApiError, type BadRequestErrorCodeErrorBody, BadRequestErrorCodeErrorBodyCode, type CloseSpotPositionQuoteDto, type DecreaseSpotPositionQuoteDto, type FeeAmountWithUsd, type FeesStatsGroupDto, type FieldError, type FusionFeesStatsGroupDto, type GetCloseSpotPositionQuote200, type GetCloseSpotPositionQuoteParams, type GetDecreaseSpotPositionQuote200, type GetDecreaseSpotPositionQuoteParams, type GetFeesStats200, type GetFeesStatsParams, type GetFusionFeesStats200, type GetFusionFeesStatsParams, type GetIncreaseSpotPositionQuote200, type GetIncreaseSpotPositionQuoteParams, type GetLendingPosition200, type GetLendingPosition200Data, type GetLendingPositions200, type GetLimitOrder200, type GetLimitOrderError404Error, GetLimitOrderError404ErrorCode, type GetLimitOrderError500Error, GetLimitOrderError500ErrorCode, type GetLimitOrderQuoteByInput200, type GetLimitOrderQuoteByInputParams, type GetLimitOrderQuoteByOutput200, type GetLimitOrderQuoteByOutputParams, type GetLimitOrders200, type GetLimitOrdersParams, type GetLpPositionActions200, type GetLpPositions200, type GetLpPositionsParams, type GetLpSpotLeaderboard200, type GetLpSpotLeaderboardParams, type GetMarket200, type GetMarkets200, type GetMint200, type GetMints200, type GetOraclePrice200, type GetOraclePrices200, type GetOrderHistory200, type GetOrderHistoryParams, type GetPool200, type GetPoolCandles200, type GetPoolCandlesParams, type GetPoolOrderBook200, type GetPoolOrderBookParams, type GetPoolSwaps200, type GetPoolTicks200, type GetPools200, type GetPoolsParams, type GetPositionsStats200, type GetPositionsStatsParams, type GetPositionsTotal200, type GetSpotPosition200, type GetSpotPositions200, type GetStakingLeaderboard200, type GetStakingLeaderboardParams, type GetStakingRevenueStats200, type GetStakingRevenueStatsParams, type GetStakingTreasury200, type GetSwapQuoteByInput200, type GetSwapQuoteByInputParams, type GetSwapQuoteByOutput200, type GetSwapQuoteByOutputParams, type GetTradableAmount200, type GetTradableAmountParams, type GetTradeHistory200, type GetTradeHistoryParams, type GetTunaPosition200, type GetTunaPosition200Data, type GetTunaPositions200, type GetUserStakingPosition200, type GetUserStakingPositionHistory200, type GetVault200, type GetVaultHistory200, type GetVaultHistoryParams, type GetVaults200, type HttpStatusData, type I128Dto, type I64Dto, type IncreaseSpotPositionQuoteDto, type InternalErrorCodeErrorBody, InternalErrorCodeErrorBodyCode, type LeaderboardError400BadRequest, LeaderboardError400BadRequestCode, type LeaderboardError400Error, type LeaderboardError500Error, LeaderboardError500ErrorCode, type LeaderboardItemDto, LeaderboardPeriod, LeaderboardSortBy, type LendingPositionDto, type LimitOrderDto, type LimitOrderDtoCloseTxSignature, type LimitOrderDtoClosedAt, type LimitOrderQuoteByInputDto, type LimitOrderQuoteByOutputDto, LimitOrderStatus, type LpPositionsError400BadRequest, LpPositionsError400BadRequestCode, type LpPositionsError400Error, type LpPositionsError500Error, LpPositionsError500ErrorCode, type MarketDto, type MarketError404Error, MarketError404ErrorCode, type MarketError500Error, MarketError500ErrorCode, type MintDto, type MintError404Error, MintError404ErrorCode, type MintError500Error, MintError500ErrorCode, NotificationAction, NotificationEntity, type OraclePriceDto, type OraclePriceError404Error, OraclePriceError404ErrorCode, type OraclePriceError500Error, OraclePriceError500ErrorCode, type OrderBookDto, type OrderBookEntryDto, type OrderBookWrapper, type OrderHistoryEntryDto, type OrderHistoryEntryDtoBaseTokenConsumedAmount, type OrderHistoryEntryDtoIxIndex, type OrderHistoryEntryDtoPositionAddress, type OrderHistoryEntryDtoQuoteTokenFilledAmount, type OrderHistoryEntryDtoTxSignature, type OrderHistoryEntryDtoUiExecutionPrice, type OrderHistoryEntryDtoUiPrice, OrderHistoryStatus, OrderHistoryType, OrderHistoryUIDirection, type PaginationMeta, type PoolDto, type PoolDtoOlpFeeRate, type PoolDtoStats, type PoolPriceCandleDto, PoolProvider, type PoolStatsDto, type PoolStatsGroupDto, type PoolStatsGroupEntryDto, type PoolSubscription, type PoolSubscriptionIsInverted, type PoolSubscriptionOrderBookPriceStep, PoolSubscriptionTopic, type PoolSwapDto, type PoolTicksDto, type PoolsError400BadRequest, PoolsError400BadRequestCode, type PoolsError400Error, type PoolsError404Error, PoolsError404ErrorCode, type PoolsError500Error, PoolsError500ErrorCode, type PubkeyDto, type Snapshot, type SnapshotContainer, type SnapshotFusionLimitOrders, type SnapshotMarkets, type SnapshotOraclePrices, type SnapshotOraclePricesAnyOf, type SnapshotOrderBooks, type SnapshotTunaLpPositions, type SnapshotTunaSpotPositions, type SpotPositionError404Error, SpotPositionError404ErrorCode, type SpotPositionError500Error, SpotPositionError500ErrorCode, type SseResponse, type SseResponseInitialMessage, type SseResponseInitialMessageAllOf, SseResponseInitialMessageAllOfEntity, SseResponseInitialMessageEntity, type SseResponseLendingPosition, type SseResponseLendingPositionAllOf, SseResponseLendingPositionAllOfEntity, SseResponseLendingPositionEntity, type SseResponseLendingPositionPayload, type SseResponseLendingPositionPayloadAuthority, type SseResponseOrderHistoryEntry, type SseResponseOrderHistoryEntryAllOf, SseResponseOrderHistoryEntryAllOfEntity, SseResponseOrderHistoryEntryEntity, type SseResponseOrderHistoryEntryPayload, type SseResponseOrderHistoryEntryPayloadAuthority, type SseResponsePoolSwap, type SseResponsePoolSwapAllOf, SseResponsePoolSwapAllOfEntity, SseResponsePoolSwapEntity, type SseResponsePoolSwapPayload, type SseResponsePoolSwapPayloadAuthority, type SseResponseSnapshot, type SseResponseSnapshotAllOf, SseResponseSnapshotAllOfEntity, SseResponseSnapshotEntity, type SseResponseStakingPosition, type SseResponseStakingPositionAllOf, SseResponseStakingPositionAllOfEntity, SseResponseStakingPositionEntity, type SseResponseStakingPositionPayload, type SseResponseStakingPositionPayloadAuthority, type SseResponseTradeHistoryEntry, type SseResponseTradeHistoryEntryAllOf, SseResponseTradeHistoryEntryAllOfEntity, SseResponseTradeHistoryEntryEntity, type SseResponseTradeHistoryEntryPayload, type SseResponseTradeHistoryEntryPayloadAuthority, 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 TradeHistoryEntryDtoPositionAddress, 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 };
|