@crypticdot/defituna-api 3.1.1 → 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 +264 -392
- package/dist/index.d.ts +264 -392
- package/dist/index.js +56 -0
- package/package.json +1 -1
package/dist/index.d.cts
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;
|
|
@@ -107,32 +107,32 @@ interface HttpStatusData {
|
|
|
107
107
|
status: string;
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
|
-
* Signed 128-bit integer
|
|
110
|
+
* Signed 128-bit integer encoded as a decimal string.
|
|
111
111
|
*/
|
|
112
112
|
type I128Dto = bigint;
|
|
113
113
|
/**
|
|
114
|
-
* Signed 64-bit integer
|
|
114
|
+
* Signed 64-bit integer encoded as a decimal string.
|
|
115
115
|
*/
|
|
116
116
|
type I64Dto = bigint;
|
|
117
117
|
interface IncreaseSpotPositionQuoteDto {
|
|
118
|
-
/**
|
|
119
|
-
borrowAmount:
|
|
120
|
-
/**
|
|
121
|
-
collateralAmount:
|
|
122
|
-
/**
|
|
123
|
-
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;
|
|
124
124
|
/** Liquidation price */
|
|
125
125
|
liquidationPrice: number;
|
|
126
|
-
/**
|
|
127
|
-
minSwapOutputAmount:
|
|
126
|
+
/** Minimum swap output amount according to the provided slippage. */
|
|
127
|
+
minSwapOutputAmount: U64Dto;
|
|
128
128
|
/** Price impact in percents */
|
|
129
129
|
priceImpact: number;
|
|
130
|
-
/**
|
|
131
|
-
protocolFeeA:
|
|
132
|
-
/**
|
|
133
|
-
protocolFeeB:
|
|
134
|
-
/**
|
|
135
|
-
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;
|
|
136
136
|
}
|
|
137
137
|
type InternalErrorCodeErrorBodyCode = typeof InternalErrorCodeErrorBodyCode[keyof typeof InternalErrorCodeErrorBodyCode];
|
|
138
138
|
declare const InternalErrorCodeErrorBodyCode: {
|
|
@@ -157,8 +157,7 @@ interface LeaderboardError500Error {
|
|
|
157
157
|
code: LeaderboardError500ErrorCode;
|
|
158
158
|
}
|
|
159
159
|
interface LeaderboardItemDto {
|
|
160
|
-
|
|
161
|
-
authority: string;
|
|
160
|
+
authority: PubkeyDto;
|
|
162
161
|
lpBaseValueUsd: number;
|
|
163
162
|
lpPeriodPnlPercent: number;
|
|
164
163
|
lpPeriodPnlUsd: number;
|
|
@@ -184,50 +183,39 @@ declare const LeaderboardSortBy: {
|
|
|
184
183
|
readonly percent: "percent";
|
|
185
184
|
};
|
|
186
185
|
interface LendingPositionDto {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
/** Solana public key (base58) */
|
|
190
|
-
authority: string;
|
|
186
|
+
address: PubkeyDto;
|
|
187
|
+
authority: PubkeyDto;
|
|
191
188
|
earned: TokenAmountWithUsd;
|
|
192
189
|
funds: TokenAmountWithUsd;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
198
|
-
updatedAtSlot: bigint;
|
|
199
|
-
/** Solana public key (base58) */
|
|
200
|
-
vault: string;
|
|
190
|
+
mint: PubkeyDto;
|
|
191
|
+
shares: U64Dto;
|
|
192
|
+
updatedAtSlot: U64Dto;
|
|
193
|
+
vault: PubkeyDto;
|
|
201
194
|
}
|
|
202
195
|
type LimitOrderDtoCloseTxSignature = string | null;
|
|
203
196
|
type LimitOrderDtoClosedAt = Date | null;
|
|
204
197
|
interface LimitOrderDto {
|
|
205
198
|
aToB: boolean;
|
|
206
|
-
|
|
207
|
-
address: string;
|
|
199
|
+
address: PubkeyDto;
|
|
208
200
|
amountIn: TokenAmountWithUsd;
|
|
209
201
|
amountOut: TokenAmountWithUsd;
|
|
210
|
-
|
|
211
|
-
authority: string;
|
|
202
|
+
authority: PubkeyDto;
|
|
212
203
|
closeTxSignature?: LimitOrderDtoCloseTxSignature;
|
|
213
204
|
closedAt?: LimitOrderDtoClosedAt;
|
|
214
205
|
fillRatio: number;
|
|
215
206
|
id: string;
|
|
216
207
|
openTxSignature: string;
|
|
217
208
|
openedAt: Date;
|
|
218
|
-
|
|
219
|
-
orderMint: string;
|
|
209
|
+
orderMint: PubkeyDto;
|
|
220
210
|
pool: PoolDto;
|
|
221
211
|
state: LimitOrderStatus;
|
|
222
212
|
tickIndex: number;
|
|
223
213
|
}
|
|
224
214
|
interface LimitOrderQuoteByInputDto {
|
|
225
|
-
|
|
226
|
-
amountOut: bigint;
|
|
215
|
+
amountOut: U64Dto;
|
|
227
216
|
}
|
|
228
217
|
interface LimitOrderQuoteByOutputDto {
|
|
229
|
-
|
|
230
|
-
amountIn: bigint;
|
|
218
|
+
amountIn: U64Dto;
|
|
231
219
|
}
|
|
232
220
|
type LimitOrderStatus = typeof LimitOrderStatus[keyof typeof LimitOrderStatus];
|
|
233
221
|
declare const LimitOrderStatus: {
|
|
@@ -253,10 +241,8 @@ interface LpPositionsError500Error {
|
|
|
253
241
|
code: LpPositionsError500ErrorCode;
|
|
254
242
|
}
|
|
255
243
|
interface MarketDto {
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
/** Solana public key (base58) */
|
|
259
|
-
addressLookupTable: string;
|
|
244
|
+
address: PubkeyDto;
|
|
245
|
+
addressLookupTable: PubkeyDto;
|
|
260
246
|
borrowLimitA: TokenAmountWithUsd;
|
|
261
247
|
borrowLimitB: TokenAmountWithUsd;
|
|
262
248
|
borrowedFundsA: TokenAmountWithUsd;
|
|
@@ -298,8 +284,7 @@ interface MarketError500Error {
|
|
|
298
284
|
code: MarketError500ErrorCode;
|
|
299
285
|
}
|
|
300
286
|
interface MintDto {
|
|
301
|
-
|
|
302
|
-
address: string;
|
|
287
|
+
address: PubkeyDto;
|
|
303
288
|
decimals: number;
|
|
304
289
|
logo: string;
|
|
305
290
|
name: string;
|
|
@@ -324,201 +309,6 @@ declare const NotificationAction: {
|
|
|
324
309
|
readonly create: "create";
|
|
325
310
|
readonly update: "update";
|
|
326
311
|
};
|
|
327
|
-
type NotificationDtoLendingPositionDtoData = {
|
|
328
|
-
/** Solana public key (base58) */
|
|
329
|
-
address: string;
|
|
330
|
-
/** Solana public key (base58) */
|
|
331
|
-
authority: string;
|
|
332
|
-
earned: TokenAmountWithUsd;
|
|
333
|
-
funds: TokenAmountWithUsd;
|
|
334
|
-
/** Solana public key (base58) */
|
|
335
|
-
mint: string;
|
|
336
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
337
|
-
shares: bigint;
|
|
338
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
339
|
-
updatedAtSlot: bigint;
|
|
340
|
-
/** Solana public key (base58) */
|
|
341
|
-
vault: string;
|
|
342
|
-
};
|
|
343
|
-
interface NotificationDtoLendingPositionDto {
|
|
344
|
-
action: NotificationAction;
|
|
345
|
-
/** Solana public key (base58) */
|
|
346
|
-
authority?: string;
|
|
347
|
-
data: NotificationDtoLendingPositionDtoData;
|
|
348
|
-
entity: NotificationEntity;
|
|
349
|
-
id: string;
|
|
350
|
-
}
|
|
351
|
-
type NotificationDtoOrderHistoryEntryDtoDataBaseTokenConsumedAmount = null | TokenAmountWithUsd;
|
|
352
|
-
/**
|
|
353
|
-
* Filled for swaps (spot)
|
|
354
|
-
Flatten transaction instruction index
|
|
355
|
-
*/
|
|
356
|
-
type NotificationDtoOrderHistoryEntryDtoDataIxIndex = number | null;
|
|
357
|
-
type NotificationDtoOrderHistoryEntryDtoDataQuoteTokenFilledAmount = null | TokenAmountWithUsd;
|
|
358
|
-
/**
|
|
359
|
-
* Filled for swaps (spot) and margin positions
|
|
360
|
-
*/
|
|
361
|
-
type NotificationDtoOrderHistoryEntryDtoDataTxSignature = string | null;
|
|
362
|
-
/**
|
|
363
|
-
* A decimal price based on the action.
|
|
364
|
-
For market (swaps + margin) orders, displays average execution price for the order excluding the fee
|
|
365
|
-
*/
|
|
366
|
-
type NotificationDtoOrderHistoryEntryDtoDataUiExecutionPrice = number | null;
|
|
367
|
-
/**
|
|
368
|
-
* A decimal price based on the action.
|
|
369
|
-
Only for limit orders & trigger actions.
|
|
370
|
-
|
|
371
|
-
* For limit order fills - price derived from order tick_index
|
|
372
|
-
* For take profit / stop loss / liquidation - trigger price
|
|
373
|
-
*/
|
|
374
|
-
type NotificationDtoOrderHistoryEntryDtoDataUiPrice = number | null;
|
|
375
|
-
type NotificationDtoOrderHistoryEntryDtoData = {
|
|
376
|
-
/** Mints (Tokens) Pair direction in pool
|
|
377
|
-
When TRUE - Base token is Mint A, Quote token is Mint B
|
|
378
|
-
WHEN FALSE - Base token is Mint B, Quote token is MInt A */
|
|
379
|
-
aToB: boolean;
|
|
380
|
-
/** Solana public key (base58) */
|
|
381
|
-
authority: string;
|
|
382
|
-
baseToken: TokenAmountWithUsd;
|
|
383
|
-
baseTokenConsumedAmount?: NotificationDtoOrderHistoryEntryDtoDataBaseTokenConsumedAmount;
|
|
384
|
-
id: string;
|
|
385
|
-
isReduceOnly: boolean;
|
|
386
|
-
/** Filled for swaps (spot)
|
|
387
|
-
Flatten transaction instruction index */
|
|
388
|
-
ixIndex?: NotificationDtoOrderHistoryEntryDtoDataIxIndex;
|
|
389
|
-
orderType: OrderHistoryType;
|
|
390
|
-
pool: PoolDto;
|
|
391
|
-
/** Solana public key (base58) */
|
|
392
|
-
positionAddress?: string;
|
|
393
|
-
quoteToken: TokenAmountWithUsd;
|
|
394
|
-
quoteTokenFilledAmount?: NotificationDtoOrderHistoryEntryDtoDataQuoteTokenFilledAmount;
|
|
395
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
396
|
-
slot: bigint;
|
|
397
|
-
status: OrderHistoryStatus;
|
|
398
|
-
/** Block time of slot this entry was create from */
|
|
399
|
-
ts: Date;
|
|
400
|
-
/** Filled for swaps (spot) and margin positions */
|
|
401
|
-
txSignature?: NotificationDtoOrderHistoryEntryDtoDataTxSignature;
|
|
402
|
-
uiDirection: OrderHistoryUIDirection;
|
|
403
|
-
/** A decimal price based on the action.
|
|
404
|
-
For market (swaps + margin) orders, displays average execution price for the order excluding the fee */
|
|
405
|
-
uiExecutionPrice?: NotificationDtoOrderHistoryEntryDtoDataUiExecutionPrice;
|
|
406
|
-
/** A decimal price based on the action.
|
|
407
|
-
Only for limit orders & trigger actions.
|
|
408
|
-
|
|
409
|
-
* For limit order fills - price derived from order tick_index
|
|
410
|
-
* For take profit / stop loss / liquidation - trigger price */
|
|
411
|
-
uiPrice?: NotificationDtoOrderHistoryEntryDtoDataUiPrice;
|
|
412
|
-
};
|
|
413
|
-
interface NotificationDtoOrderHistoryEntryDto {
|
|
414
|
-
action: NotificationAction;
|
|
415
|
-
/** Solana public key (base58) */
|
|
416
|
-
authority?: string;
|
|
417
|
-
data: NotificationDtoOrderHistoryEntryDtoData;
|
|
418
|
-
entity: NotificationEntity;
|
|
419
|
-
id: string;
|
|
420
|
-
}
|
|
421
|
-
type NotificationDtoPoolSwapDtoData = {
|
|
422
|
-
aToB: boolean;
|
|
423
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
424
|
-
amountIn: bigint;
|
|
425
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
426
|
-
amountOut: bigint;
|
|
427
|
-
amountUsd: number;
|
|
428
|
-
id: string;
|
|
429
|
-
/** Solana public key (base58) */
|
|
430
|
-
pool: string;
|
|
431
|
-
time: Date;
|
|
432
|
-
txSignature: string;
|
|
433
|
-
};
|
|
434
|
-
interface NotificationDtoPoolSwapDto {
|
|
435
|
-
action: NotificationAction;
|
|
436
|
-
/** Solana public key (base58) */
|
|
437
|
-
authority?: string;
|
|
438
|
-
data: NotificationDtoPoolSwapDtoData;
|
|
439
|
-
entity: NotificationEntity;
|
|
440
|
-
id: string;
|
|
441
|
-
}
|
|
442
|
-
type NotificationDtoStakingPositionDtoDataLastUnstakedAt = Date | null;
|
|
443
|
-
/**
|
|
444
|
-
* @minimum 0
|
|
445
|
-
*/
|
|
446
|
-
type NotificationDtoStakingPositionDtoDataRank = number | null;
|
|
447
|
-
type NotificationDtoStakingPositionDtoDataWithdrawAvailableAt = Date | null;
|
|
448
|
-
type NotificationDtoStakingPositionDtoData = {
|
|
449
|
-
/** Solana public key (base58) */
|
|
450
|
-
address: string;
|
|
451
|
-
claimedReward: TokenAmountWithUsd;
|
|
452
|
-
lastUnstakedAt?: NotificationDtoStakingPositionDtoDataLastUnstakedAt;
|
|
453
|
-
/** Solana public key (base58) */
|
|
454
|
-
owner: string;
|
|
455
|
-
/** @minimum 0 */
|
|
456
|
-
rank?: NotificationDtoStakingPositionDtoDataRank;
|
|
457
|
-
staked: TokenAmountWithUsd;
|
|
458
|
-
unclaimedReward: TokenAmountWithUsd;
|
|
459
|
-
unstaked: TokenAmountWithUsd;
|
|
460
|
-
vesting: VestingDto;
|
|
461
|
-
withdrawAvailableAt?: NotificationDtoStakingPositionDtoDataWithdrawAvailableAt;
|
|
462
|
-
};
|
|
463
|
-
interface NotificationDtoStakingPositionDto {
|
|
464
|
-
action: NotificationAction;
|
|
465
|
-
/** Solana public key (base58) */
|
|
466
|
-
authority?: string;
|
|
467
|
-
data: NotificationDtoStakingPositionDtoData;
|
|
468
|
-
entity: NotificationEntity;
|
|
469
|
-
id: string;
|
|
470
|
-
}
|
|
471
|
-
/**
|
|
472
|
-
* Filled for swaps (spot)
|
|
473
|
-
Flatten transaction instruction index
|
|
474
|
-
*/
|
|
475
|
-
type NotificationDtoTradeHistoryEntryDtoDataIxIndex = number | null;
|
|
476
|
-
type NotificationDtoTradeHistoryEntryDtoDataPnl = null | TradeHistoryEntryPnlUsd;
|
|
477
|
-
/**
|
|
478
|
-
* Filled for swaps (spot) and margin positions
|
|
479
|
-
*/
|
|
480
|
-
type NotificationDtoTradeHistoryEntryDtoDataTxSignature = string | null;
|
|
481
|
-
type NotificationDtoTradeHistoryEntryDtoData = {
|
|
482
|
-
/** Mints (Tokens) Pair direction in pool
|
|
483
|
-
When TRUE - Base token is Mint A, Quote token is Mint B
|
|
484
|
-
WHEN FALSE - Base token is Mint B, Quote token is MInt A */
|
|
485
|
-
aToB: boolean;
|
|
486
|
-
action: TradeHistoryAction;
|
|
487
|
-
/** Solana public key (base58) */
|
|
488
|
-
authority: string;
|
|
489
|
-
baseToken: TokenAmountWithUsd;
|
|
490
|
-
/** Positive for taker trades (swaps + spot) and negative for maker trades (limit orders)
|
|
491
|
-
Measured in quote tokens for limit orders */
|
|
492
|
-
fee: FeeAmountWithUsd;
|
|
493
|
-
id: string;
|
|
494
|
-
/** Filled for swaps (spot)
|
|
495
|
-
Flatten transaction instruction index */
|
|
496
|
-
ixIndex?: NotificationDtoTradeHistoryEntryDtoDataIxIndex;
|
|
497
|
-
pnl?: NotificationDtoTradeHistoryEntryDtoDataPnl;
|
|
498
|
-
pool: PoolDto;
|
|
499
|
-
/** Solana public key (base58) */
|
|
500
|
-
positionAddress?: string;
|
|
501
|
-
quoteToken: TokenAmountWithUsd;
|
|
502
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
503
|
-
slot: bigint;
|
|
504
|
-
ts: Date;
|
|
505
|
-
/** Filled for swaps (spot) and margin positions */
|
|
506
|
-
txSignature?: NotificationDtoTradeHistoryEntryDtoDataTxSignature;
|
|
507
|
-
uiDirection: TradeHistoryUIDirection;
|
|
508
|
-
/** A decimal price based on the action.
|
|
509
|
-
|
|
510
|
-
* For spot and margin positions - average execution price excluding the fee.
|
|
511
|
-
* For limit order fills - price derived from order tick_index. */
|
|
512
|
-
uiPrice: number;
|
|
513
|
-
};
|
|
514
|
-
interface NotificationDtoTradeHistoryEntryDto {
|
|
515
|
-
action: NotificationAction;
|
|
516
|
-
/** Solana public key (base58) */
|
|
517
|
-
authority?: string;
|
|
518
|
-
data: NotificationDtoTradeHistoryEntryDtoData;
|
|
519
|
-
entity: NotificationEntity;
|
|
520
|
-
id: string;
|
|
521
|
-
}
|
|
522
312
|
type NotificationEntity = typeof NotificationEntity[keyof typeof NotificationEntity];
|
|
523
313
|
declare const NotificationEntity: {
|
|
524
314
|
readonly initialMessage: "initial_message";
|
|
@@ -537,10 +327,8 @@ declare const NotificationEntity: {
|
|
|
537
327
|
};
|
|
538
328
|
interface OraclePriceDto {
|
|
539
329
|
decimals: number;
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
543
|
-
price: bigint;
|
|
330
|
+
mint: PubkeyDto;
|
|
331
|
+
price: U64Dto;
|
|
544
332
|
time: Date;
|
|
545
333
|
}
|
|
546
334
|
type OraclePriceError404ErrorCode = typeof OraclePriceError404ErrorCode[keyof typeof OraclePriceError404ErrorCode];
|
|
@@ -559,28 +347,19 @@ interface OraclePriceError500Error {
|
|
|
559
347
|
}
|
|
560
348
|
interface OrderBookDto {
|
|
561
349
|
entries: OrderBookEntryDto[];
|
|
562
|
-
|
|
563
|
-
poolAddress: string;
|
|
350
|
+
poolAddress: PubkeyDto;
|
|
564
351
|
poolPrice: number;
|
|
565
352
|
}
|
|
566
353
|
interface OrderBookEntryDto {
|
|
567
354
|
askSide: boolean;
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
577
|
-
limitAmount: bigint;
|
|
578
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
579
|
-
limitAmountQuote: bigint;
|
|
580
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
581
|
-
limitTotal: bigint;
|
|
582
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
583
|
-
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;
|
|
584
363
|
price: number;
|
|
585
364
|
}
|
|
586
365
|
type OrderBookWrapper = OrderBookDto;
|
|
@@ -590,6 +369,7 @@ type OrderHistoryEntryDtoBaseTokenConsumedAmount = null | TokenAmountWithUsd;
|
|
|
590
369
|
Flatten transaction instruction index
|
|
591
370
|
*/
|
|
592
371
|
type OrderHistoryEntryDtoIxIndex = number | null;
|
|
372
|
+
type OrderHistoryEntryDtoPositionAddress = null | PubkeyDto;
|
|
593
373
|
type OrderHistoryEntryDtoQuoteTokenFilledAmount = null | TokenAmountWithUsd;
|
|
594
374
|
/**
|
|
595
375
|
* Filled for swaps (spot) and margin positions
|
|
@@ -613,8 +393,8 @@ interface OrderHistoryEntryDto {
|
|
|
613
393
|
When TRUE - Base token is Mint A, Quote token is Mint B
|
|
614
394
|
WHEN FALSE - Base token is Mint B, Quote token is MInt A */
|
|
615
395
|
aToB: boolean;
|
|
616
|
-
/**
|
|
617
|
-
authority:
|
|
396
|
+
/** Owner (account/wallet) of this history entry */
|
|
397
|
+
authority: PubkeyDto;
|
|
618
398
|
baseToken: TokenAmountWithUsd;
|
|
619
399
|
baseTokenConsumedAmount?: OrderHistoryEntryDtoBaseTokenConsumedAmount;
|
|
620
400
|
id: string;
|
|
@@ -624,12 +404,11 @@ interface OrderHistoryEntryDto {
|
|
|
624
404
|
ixIndex?: OrderHistoryEntryDtoIxIndex;
|
|
625
405
|
orderType: OrderHistoryType;
|
|
626
406
|
pool: PoolDto;
|
|
627
|
-
|
|
628
|
-
positionAddress?: string;
|
|
407
|
+
positionAddress: OrderHistoryEntryDtoPositionAddress;
|
|
629
408
|
quoteToken: TokenAmountWithUsd;
|
|
630
409
|
quoteTokenFilledAmount?: OrderHistoryEntryDtoQuoteTokenFilledAmount;
|
|
631
|
-
/**
|
|
632
|
-
slot:
|
|
410
|
+
/** Block's slot this entry was created from */
|
|
411
|
+
slot: U64Dto;
|
|
633
412
|
status: OrderHistoryStatus;
|
|
634
413
|
/** Block time of slot this entry was create from */
|
|
635
414
|
ts: Date;
|
|
@@ -681,12 +460,10 @@ interface PaginationMeta {
|
|
|
681
460
|
type PoolDtoOlpFeeRate = number | null;
|
|
682
461
|
type PoolDtoStats = null | PoolStatsDto;
|
|
683
462
|
interface PoolDto {
|
|
684
|
-
|
|
685
|
-
address: string;
|
|
463
|
+
address: PubkeyDto;
|
|
686
464
|
/** @minimum 0 */
|
|
687
465
|
feeRate: number;
|
|
688
|
-
|
|
689
|
-
liquidity: bigint;
|
|
466
|
+
liquidity: U128Dto;
|
|
690
467
|
mintA: MintDto;
|
|
691
468
|
mintB: MintDto;
|
|
692
469
|
olpFeeRate?: PoolDtoOlpFeeRate;
|
|
@@ -694,16 +471,13 @@ interface PoolDto {
|
|
|
694
471
|
/** @minimum 0 */
|
|
695
472
|
protocolFeeRate: number;
|
|
696
473
|
provider: PoolProvider;
|
|
697
|
-
|
|
698
|
-
sqrtPrice: bigint;
|
|
474
|
+
sqrtPrice: U128Dto;
|
|
699
475
|
stats?: PoolDtoStats;
|
|
700
476
|
tickCurrentIndex: number;
|
|
701
477
|
/** @minimum 0 */
|
|
702
478
|
tickSpacing: number;
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
/** Solana public key (base58) */
|
|
706
|
-
tokenBVault: string;
|
|
479
|
+
tokenAVault: PubkeyDto;
|
|
480
|
+
tokenBVault: PubkeyDto;
|
|
707
481
|
}
|
|
708
482
|
interface PoolPriceCandleDto {
|
|
709
483
|
close: number;
|
|
@@ -746,14 +520,11 @@ declare const PoolSubscriptionTopic: {
|
|
|
746
520
|
};
|
|
747
521
|
interface PoolSwapDto {
|
|
748
522
|
aToB: boolean;
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
752
|
-
amountOut: bigint;
|
|
523
|
+
amountIn: U64Dto;
|
|
524
|
+
amountOut: U64Dto;
|
|
753
525
|
amountUsd: number;
|
|
754
526
|
id: string;
|
|
755
|
-
|
|
756
|
-
pool: string;
|
|
527
|
+
pool: PubkeyDto;
|
|
757
528
|
time: Date;
|
|
758
529
|
txSignature: string;
|
|
759
530
|
}
|
|
@@ -832,14 +603,150 @@ declare const SpotPositionError500ErrorCode: {
|
|
|
832
603
|
interface SpotPositionError500Error {
|
|
833
604
|
code: SpotPositionError500ErrorCode;
|
|
834
605
|
}
|
|
835
|
-
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
|
+
}
|
|
836
745
|
interface StakingDepositsStatsDto {
|
|
837
|
-
|
|
838
|
-
runningTotalDepositsSol: bigint;
|
|
746
|
+
runningTotalDepositsSol: U64Dto;
|
|
839
747
|
runningTotalDepositsUsd: number;
|
|
840
748
|
time: Date;
|
|
841
|
-
|
|
842
|
-
totalDepositsSol: bigint;
|
|
749
|
+
totalDepositsSol: U64Dto;
|
|
843
750
|
totalDepositsUsd: number;
|
|
844
751
|
}
|
|
845
752
|
type StakingError400BadRequestCode = typeof StakingError400BadRequestCode[keyof typeof StakingError400BadRequestCode];
|
|
@@ -858,20 +765,16 @@ interface StakingError500Error {
|
|
|
858
765
|
code: StakingError500ErrorCode;
|
|
859
766
|
}
|
|
860
767
|
interface StakingLeaderboardPositionDto {
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
/** Solana public key (base58) */
|
|
864
|
-
owner: string;
|
|
768
|
+
address: PubkeyDto;
|
|
769
|
+
owner: PubkeyDto;
|
|
865
770
|
/** @minimum 0 */
|
|
866
771
|
rank: number;
|
|
867
772
|
staked: TokenAmountWithUsd;
|
|
868
773
|
}
|
|
869
774
|
interface StakingPositionActionDto {
|
|
870
775
|
action: StakingPositionActionType;
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
/** Solana public key (base58) */
|
|
874
|
-
position: string;
|
|
776
|
+
amount: U64Dto;
|
|
777
|
+
position: PubkeyDto;
|
|
875
778
|
time: Date;
|
|
876
779
|
txSignature: string;
|
|
877
780
|
}
|
|
@@ -890,12 +793,10 @@ type StakingPositionDtoLastUnstakedAt = Date | null;
|
|
|
890
793
|
type StakingPositionDtoRank = number | null;
|
|
891
794
|
type StakingPositionDtoWithdrawAvailableAt = Date | null;
|
|
892
795
|
interface StakingPositionDto {
|
|
893
|
-
|
|
894
|
-
address: string;
|
|
796
|
+
address: PubkeyDto;
|
|
895
797
|
claimedReward: TokenAmountWithUsd;
|
|
896
798
|
lastUnstakedAt?: StakingPositionDtoLastUnstakedAt;
|
|
897
|
-
|
|
898
|
-
owner: string;
|
|
799
|
+
owner: PubkeyDto;
|
|
899
800
|
/** @minimum 0 */
|
|
900
801
|
rank?: StakingPositionDtoRank;
|
|
901
802
|
staked: TokenAmountWithUsd;
|
|
@@ -937,40 +838,31 @@ interface SubscriptionOptions {
|
|
|
937
838
|
wallet?: SubscriptionOptionsWallet;
|
|
938
839
|
}
|
|
939
840
|
interface SwapQuoteByInputDto {
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
943
|
-
feeAmount: bigint;
|
|
841
|
+
estimatedAmountOut: U64Dto;
|
|
842
|
+
feeAmount: U64Dto;
|
|
944
843
|
feeUsd: number;
|
|
945
|
-
|
|
946
|
-
minAmountOut: bigint;
|
|
844
|
+
minAmountOut: U64Dto;
|
|
947
845
|
/** Price impact in percents */
|
|
948
846
|
priceImpact: number;
|
|
949
847
|
}
|
|
950
848
|
interface SwapQuoteByOutputDto {
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
/** Unsigned 64-bit integer encoded as a decimal string */
|
|
954
|
-
feeAmount: bigint;
|
|
849
|
+
estimatedAmountIn: U64Dto;
|
|
850
|
+
feeAmount: U64Dto;
|
|
955
851
|
feeUsd: number;
|
|
956
|
-
|
|
957
|
-
maxAmountIn: bigint;
|
|
852
|
+
maxAmountIn: U64Dto;
|
|
958
853
|
/** Price impact in percents */
|
|
959
854
|
priceImpact: number;
|
|
960
855
|
}
|
|
961
856
|
interface TickDto {
|
|
962
857
|
index: number;
|
|
963
|
-
|
|
964
|
-
liquidity: bigint;
|
|
858
|
+
liquidity: I128Dto;
|
|
965
859
|
}
|
|
966
860
|
interface TokenAmountWithUsd {
|
|
967
|
-
|
|
968
|
-
amount: bigint;
|
|
861
|
+
amount: U64Dto;
|
|
969
862
|
usd: number;
|
|
970
863
|
}
|
|
971
864
|
interface TradableAmountDto {
|
|
972
|
-
|
|
973
|
-
amount: bigint;
|
|
865
|
+
amount: U64Dto;
|
|
974
866
|
usd: number;
|
|
975
867
|
}
|
|
976
868
|
type TradeHistoryAction = typeof TradeHistoryAction[keyof typeof TradeHistoryAction];
|
|
@@ -989,6 +881,7 @@ Flatten transaction instruction index
|
|
|
989
881
|
*/
|
|
990
882
|
type TradeHistoryEntryDtoIxIndex = number | null;
|
|
991
883
|
type TradeHistoryEntryDtoPnl = null | TradeHistoryEntryPnlUsd;
|
|
884
|
+
type TradeHistoryEntryDtoPositionAddress = null | PubkeyDto;
|
|
992
885
|
/**
|
|
993
886
|
* Filled for swaps (spot) and margin positions
|
|
994
887
|
*/
|
|
@@ -999,8 +892,8 @@ interface TradeHistoryEntryDto {
|
|
|
999
892
|
WHEN FALSE - Base token is Mint B, Quote token is MInt A */
|
|
1000
893
|
aToB: boolean;
|
|
1001
894
|
action: TradeHistoryAction;
|
|
1002
|
-
/**
|
|
1003
|
-
authority:
|
|
895
|
+
/** Owner (account/wallet) of this history entry */
|
|
896
|
+
authority: PubkeyDto;
|
|
1004
897
|
baseToken: TokenAmountWithUsd;
|
|
1005
898
|
/** Positive for taker trades (swaps + spot) and negative for maker trades (limit orders)
|
|
1006
899
|
Measured in quote tokens for limit orders */
|
|
@@ -1011,11 +904,10 @@ interface TradeHistoryEntryDto {
|
|
|
1011
904
|
ixIndex?: TradeHistoryEntryDtoIxIndex;
|
|
1012
905
|
pnl?: TradeHistoryEntryDtoPnl;
|
|
1013
906
|
pool: PoolDto;
|
|
1014
|
-
|
|
1015
|
-
positionAddress?: string;
|
|
907
|
+
positionAddress: TradeHistoryEntryDtoPositionAddress;
|
|
1016
908
|
quoteToken: TokenAmountWithUsd;
|
|
1017
|
-
/**
|
|
1018
|
-
slot:
|
|
909
|
+
/** Block's slot this entry was created from */
|
|
910
|
+
slot: U64Dto;
|
|
1019
911
|
ts: Date;
|
|
1020
912
|
/** Filled for swaps (spot) and margin positions */
|
|
1021
913
|
txSignature?: TradeHistoryEntryDtoTxSignature;
|
|
@@ -1040,16 +932,13 @@ declare const TradeHistoryUIDirection: {
|
|
|
1040
932
|
readonly closeShort: "close_short";
|
|
1041
933
|
};
|
|
1042
934
|
interface TreasuryDto {
|
|
1043
|
-
|
|
1044
|
-
address: string;
|
|
935
|
+
address: PubkeyDto;
|
|
1045
936
|
apy: number;
|
|
1046
937
|
isStakingEnabled: boolean;
|
|
1047
938
|
isUnstakingEnabled: boolean;
|
|
1048
939
|
isWithdrawEnabled: boolean;
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
/** Solana public key (base58) */
|
|
1052
|
-
stakedTokenMint: string;
|
|
940
|
+
rewardTokenMint: PubkeyDto;
|
|
941
|
+
stakedTokenMint: PubkeyDto;
|
|
1053
942
|
totalReward: TokenAmountWithUsd;
|
|
1054
943
|
totalStaked: TokenAmountWithUsd;
|
|
1055
944
|
/** @minimum 0 */
|
|
@@ -1114,8 +1003,7 @@ type TunaLpPositionDtoExitPrice = number | null;
|
|
|
1114
1003
|
type TunaLpPositionDtoLowerLimitOrder = number | null;
|
|
1115
1004
|
type TunaLpPositionDtoUpperLimitOrder = number | null;
|
|
1116
1005
|
interface TunaLpPositionDto {
|
|
1117
|
-
|
|
1118
|
-
authority: string;
|
|
1006
|
+
authority: PubkeyDto;
|
|
1119
1007
|
closedAt?: TunaLpPositionDtoClosedAt;
|
|
1120
1008
|
closedPnlSumUsd: number;
|
|
1121
1009
|
entryPrice: number;
|
|
@@ -1128,8 +1016,7 @@ interface TunaLpPositionDto {
|
|
|
1128
1016
|
marketMaker: PoolProvider;
|
|
1129
1017
|
openedAt: Date;
|
|
1130
1018
|
pool: PoolDto;
|
|
1131
|
-
|
|
1132
|
-
positionAddress: string;
|
|
1019
|
+
positionAddress: PubkeyDto;
|
|
1133
1020
|
state: TunaPositionDtoState;
|
|
1134
1021
|
totalDepositUsd: number;
|
|
1135
1022
|
totalValueUsd: number;
|
|
@@ -1234,10 +1121,8 @@ interface TunaLpPositionsStats {
|
|
|
1234
1121
|
}
|
|
1235
1122
|
type TunaPositionDtoClosedAt = Date | null;
|
|
1236
1123
|
interface TunaPositionDto {
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
/** Solana public key (base58) */
|
|
1240
|
-
authority: string;
|
|
1124
|
+
address: PubkeyDto;
|
|
1125
|
+
authority: PubkeyDto;
|
|
1241
1126
|
closedAt?: TunaPositionDtoClosedAt;
|
|
1242
1127
|
compoundedYieldA: TokenAmountWithUsd;
|
|
1243
1128
|
compoundedYieldB: TokenAmountWithUsd;
|
|
@@ -1254,8 +1139,7 @@ interface TunaPositionDto {
|
|
|
1254
1139
|
leverage: number;
|
|
1255
1140
|
liquidationPriceLower: number;
|
|
1256
1141
|
liquidationPriceUpper: number;
|
|
1257
|
-
|
|
1258
|
-
liquidity: bigint;
|
|
1142
|
+
liquidity: U128Dto;
|
|
1259
1143
|
lowerLimitOrderPrice: number;
|
|
1260
1144
|
marketMaker: TunaPositionMarketMaker;
|
|
1261
1145
|
maxLeverage: number;
|
|
@@ -1266,8 +1150,7 @@ interface TunaPositionDto {
|
|
|
1266
1150
|
pnlB: TunaPositionTokenPnl;
|
|
1267
1151
|
pnlUsd: TunaPositionUsdPnl;
|
|
1268
1152
|
pool: PoolDto;
|
|
1269
|
-
|
|
1270
|
-
positionMint: string;
|
|
1153
|
+
positionMint: PubkeyDto;
|
|
1271
1154
|
state: TunaPositionDtoState;
|
|
1272
1155
|
tickLowerIndex: number;
|
|
1273
1156
|
tickUpperIndex: number;
|
|
@@ -1297,13 +1180,11 @@ declare const TunaPositionPoolToken: {
|
|
|
1297
1180
|
readonly b: "b";
|
|
1298
1181
|
};
|
|
1299
1182
|
interface TunaPositionTokenDepositedCollateral {
|
|
1300
|
-
|
|
1301
|
-
amount: bigint;
|
|
1183
|
+
amount: I128Dto;
|
|
1302
1184
|
usd: number;
|
|
1303
1185
|
}
|
|
1304
1186
|
interface TunaPositionTokenPnl {
|
|
1305
|
-
|
|
1306
|
-
amount: bigint;
|
|
1187
|
+
amount: I128Dto;
|
|
1307
1188
|
rate: number;
|
|
1308
1189
|
}
|
|
1309
1190
|
interface TunaPositionUsdPnl {
|
|
@@ -1312,10 +1193,8 @@ interface TunaPositionUsdPnl {
|
|
|
1312
1193
|
}
|
|
1313
1194
|
type TunaSpotPositionDtoClosedAt = Date | null;
|
|
1314
1195
|
interface TunaSpotPositionDto {
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
/** Solana public key (base58) */
|
|
1318
|
-
authority: string;
|
|
1196
|
+
address: PubkeyDto;
|
|
1197
|
+
authority: PubkeyDto;
|
|
1319
1198
|
closedAt?: TunaSpotPositionDtoClosedAt;
|
|
1320
1199
|
collateralToken: TunaPositionPoolToken;
|
|
1321
1200
|
currentDebt: TokenAmountWithUsd;
|
|
@@ -1343,11 +1222,11 @@ declare const TunaSpotPositionDtoState: {
|
|
|
1343
1222
|
readonly closed: "closed";
|
|
1344
1223
|
};
|
|
1345
1224
|
/**
|
|
1346
|
-
* Unsigned 128-bit integer
|
|
1225
|
+
* Unsigned 128-bit integer encoded as a decimal string.
|
|
1347
1226
|
*/
|
|
1348
1227
|
type U128Dto = bigint;
|
|
1349
1228
|
/**
|
|
1350
|
-
* Unsigned 64-bit integer
|
|
1229
|
+
* Unsigned 64-bit integer encoded as a decimal string.
|
|
1351
1230
|
*/
|
|
1352
1231
|
type U64Dto = bigint;
|
|
1353
1232
|
type UpdateStreamSubscriptionError404ErrorCode = typeof UpdateStreamSubscriptionError404ErrorCode[keyof typeof UpdateStreamSubscriptionError404ErrorCode];
|
|
@@ -1387,23 +1266,16 @@ interface ValidationErrorCodeValidationDetailsErrorBody {
|
|
|
1387
1266
|
data?: ValidationErrorCodeValidationDetailsErrorBodyData;
|
|
1388
1267
|
}
|
|
1389
1268
|
interface VaultDto {
|
|
1390
|
-
|
|
1391
|
-
address: string;
|
|
1269
|
+
address: PubkeyDto;
|
|
1392
1270
|
borrowApy: number;
|
|
1393
1271
|
borrowedFunds: TokenAmountWithUsd;
|
|
1394
|
-
|
|
1395
|
-
borrowedShares: bigint;
|
|
1272
|
+
borrowedShares: U64Dto;
|
|
1396
1273
|
depositedFunds: TokenAmountWithUsd;
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
mint: string;
|
|
1403
|
-
/** Solana public key (base58) */
|
|
1404
|
-
pythOracleFeedId: string;
|
|
1405
|
-
/** Solana public key (base58) */
|
|
1406
|
-
pythOraclePriceUpdate: string;
|
|
1274
|
+
depositedShares: U64Dto;
|
|
1275
|
+
interestRate: U64Dto;
|
|
1276
|
+
mint: PubkeyDto;
|
|
1277
|
+
pythOracleFeedId: PubkeyDto;
|
|
1278
|
+
pythOraclePriceUpdate: PubkeyDto;
|
|
1407
1279
|
supplyApy: number;
|
|
1408
1280
|
supplyLimit: TokenAmountWithUsd;
|
|
1409
1281
|
utilization: number;
|
|
@@ -1456,8 +1328,8 @@ interface VestingDto {
|
|
|
1456
1328
|
* @minimum 0
|
|
1457
1329
|
*/
|
|
1458
1330
|
unlockEverySeconds: number;
|
|
1459
|
-
/**
|
|
1460
|
-
unlockRate:
|
|
1331
|
+
/** The amount of tokens to unlock per unlock */
|
|
1332
|
+
unlockRate: U64Dto;
|
|
1461
1333
|
/** Amount of tokens unlocked since the beginning of lock */
|
|
1462
1334
|
unlocked: TokenAmountWithUsd;
|
|
1463
1335
|
}
|
|
@@ -3258,12 +3130,12 @@ declare function unwrap<R extends HttpLikeResponse>(promise: Promise<R>): Promis
|
|
|
3258
3130
|
declare function normalizeResponseJson(raw: unknown): unknown;
|
|
3259
3131
|
|
|
3260
3132
|
declare const getSseUpdatesStream: () => Promise<EventSource>;
|
|
3261
|
-
declare function eventIsInitialMessage(event: SseResponse): event is
|
|
3262
|
-
declare function eventIsPoolSwap(event: SseResponse): event is
|
|
3263
|
-
declare function eventIsStakingPosition(event: SseResponse): event is
|
|
3264
|
-
declare function eventIsLendingPosition(event: SseResponse): event is
|
|
3265
|
-
declare function eventIsTradeHistory(event: SseResponse): event is
|
|
3266
|
-
declare function eventIsOrderHistory(event: SseResponse): event is
|
|
3267
|
-
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;
|
|
3268
3140
|
|
|
3269
|
-
export { type ApiError, type BadRequestErrorCodeErrorBody, BadRequestErrorCodeErrorBodyCode, type CloseSpotPositionQuoteDto, type DecreaseSpotPositionQuoteDto, type FeeAmountWithUsd, type FeesStatsGroupDto, type FieldError, type FusionFeesStatsGroupDto, type GetCloseSpotPositionQuote200, type GetCloseSpotPositionQuoteParams, type GetDecreaseSpotPositionQuote200, type GetDecreaseSpotPositionQuoteParams, type GetFeesStats200, type GetFeesStatsParams, type GetFusionFeesStats200, type GetFusionFeesStatsParams, type GetIncreaseSpotPositionQuote200, type GetIncreaseSpotPositionQuoteParams, type GetLendingPosition200, type GetLendingPosition200Data, type GetLendingPositions200, type GetLimitOrder200, type GetLimitOrderError404Error, GetLimitOrderError404ErrorCode, type GetLimitOrderError500Error, GetLimitOrderError500ErrorCode, type GetLimitOrderQuoteByInput200, type GetLimitOrderQuoteByInputParams, type GetLimitOrderQuoteByOutput200, type GetLimitOrderQuoteByOutputParams, type GetLimitOrders200, type GetLimitOrdersParams, type GetLpPositionActions200, type GetLpPositions200, type GetLpPositionsParams, type GetLpSpotLeaderboard200, type GetLpSpotLeaderboardParams, type GetMarket200, type GetMarkets200, type GetMint200, type GetMints200, type GetOraclePrice200, type GetOraclePrices200, type GetOrderHistory200, type GetOrderHistoryParams, type GetPool200, type GetPoolCandles200, type GetPoolCandlesParams, type GetPoolOrderBook200, type GetPoolOrderBookParams, type GetPoolSwaps200, type GetPoolTicks200, type GetPools200, type GetPoolsParams, type GetPositionsStats200, type GetPositionsStatsParams, type GetPositionsTotal200, type GetSpotPosition200, type GetSpotPositions200, type GetStakingLeaderboard200, type GetStakingLeaderboardParams, type GetStakingRevenueStats200, type GetStakingRevenueStatsParams, type GetStakingTreasury200, type GetSwapQuoteByInput200, type GetSwapQuoteByInputParams, type GetSwapQuoteByOutput200, type GetSwapQuoteByOutputParams, type GetTradableAmount200, type GetTradableAmountParams, type GetTradeHistory200, type GetTradeHistoryParams, type GetTunaPosition200, type GetTunaPosition200Data, type GetTunaPositions200, type GetUserStakingPosition200, type GetUserStakingPositionHistory200, type GetVault200, type GetVaultHistory200, type GetVaultHistoryParams, type GetVaults200, type HttpStatusData, type I128Dto, type I64Dto, type IncreaseSpotPositionQuoteDto, type InternalErrorCodeErrorBody, InternalErrorCodeErrorBodyCode, type LeaderboardError400BadRequest, LeaderboardError400BadRequestCode, type LeaderboardError400Error, type LeaderboardError500Error, LeaderboardError500ErrorCode, type LeaderboardItemDto, LeaderboardPeriod, LeaderboardSortBy, type LendingPositionDto, type LimitOrderDto, type LimitOrderDtoCloseTxSignature, type LimitOrderDtoClosedAt, type LimitOrderQuoteByInputDto, type LimitOrderQuoteByOutputDto, LimitOrderStatus, type LpPositionsError400BadRequest, LpPositionsError400BadRequestCode, type LpPositionsError400Error, type LpPositionsError500Error, LpPositionsError500ErrorCode, type MarketDto, type MarketError404Error, MarketError404ErrorCode, type MarketError500Error, MarketError500ErrorCode, type MintDto, type MintError404Error, MintError404ErrorCode, type MintError500Error, MintError500ErrorCode, NotificationAction, type NotificationDtoLendingPositionDto, type NotificationDtoLendingPositionDtoData, type NotificationDtoOrderHistoryEntryDto, type NotificationDtoOrderHistoryEntryDtoData, type NotificationDtoOrderHistoryEntryDtoDataBaseTokenConsumedAmount, type NotificationDtoOrderHistoryEntryDtoDataIxIndex, type NotificationDtoOrderHistoryEntryDtoDataQuoteTokenFilledAmount, type NotificationDtoOrderHistoryEntryDtoDataTxSignature, type NotificationDtoOrderHistoryEntryDtoDataUiExecutionPrice, type NotificationDtoOrderHistoryEntryDtoDataUiPrice, type NotificationDtoPoolSwapDto, type NotificationDtoPoolSwapDtoData, type NotificationDtoStakingPositionDto, type NotificationDtoStakingPositionDtoData, type NotificationDtoStakingPositionDtoDataLastUnstakedAt, type NotificationDtoStakingPositionDtoDataRank, type NotificationDtoStakingPositionDtoDataWithdrawAvailableAt, type NotificationDtoTradeHistoryEntryDto, type NotificationDtoTradeHistoryEntryDtoData, type NotificationDtoTradeHistoryEntryDtoDataIxIndex, type NotificationDtoTradeHistoryEntryDtoDataPnl, type NotificationDtoTradeHistoryEntryDtoDataTxSignature, NotificationEntity, type OraclePriceDto, type OraclePriceError404Error, OraclePriceError404ErrorCode, type OraclePriceError500Error, OraclePriceError500ErrorCode, type OrderBookDto, type OrderBookEntryDto, type OrderBookWrapper, type OrderHistoryEntryDto, type OrderHistoryEntryDtoBaseTokenConsumedAmount, type OrderHistoryEntryDtoIxIndex, type OrderHistoryEntryDtoQuoteTokenFilledAmount, type OrderHistoryEntryDtoTxSignature, type OrderHistoryEntryDtoUiExecutionPrice, type OrderHistoryEntryDtoUiPrice, OrderHistoryStatus, OrderHistoryType, OrderHistoryUIDirection, type PaginationMeta, type PoolDto, type PoolDtoOlpFeeRate, type PoolDtoStats, type PoolPriceCandleDto, PoolProvider, type PoolStatsDto, type PoolStatsGroupDto, type PoolStatsGroupEntryDto, type PoolSubscription, type PoolSubscriptionIsInverted, type PoolSubscriptionOrderBookPriceStep, PoolSubscriptionTopic, type PoolSwapDto, type PoolTicksDto, type PoolsError400BadRequest, PoolsError400BadRequestCode, type PoolsError400Error, type PoolsError404Error, PoolsError404ErrorCode, type PoolsError500Error, PoolsError500ErrorCode, type PubkeyDto, type Snapshot, type SnapshotContainer, type SnapshotFusionLimitOrders, type SnapshotMarkets, type SnapshotOraclePrices, type SnapshotOraclePricesAnyOf, type SnapshotOrderBooks, type SnapshotTunaLpPositions, type SnapshotTunaSpotPositions, type SpotPositionError404Error, SpotPositionError404ErrorCode, type SpotPositionError500Error, SpotPositionError500ErrorCode, type SseResponse, type StakingDepositsStatsDto, type StakingError400BadRequest, StakingError400BadRequestCode, type StakingError400Error, type StakingError500Error, StakingError500ErrorCode, type StakingLeaderboardPositionDto, type StakingPositionActionDto, StakingPositionActionType, type StakingPositionDto, type StakingPositionDtoLastUnstakedAt, type StakingPositionDtoRank, type StakingPositionDtoWithdrawAvailableAt, type StatsError400BadRequest, StatsError400BadRequestCode, type StatsError400Error, type StatsError500Error, StatsError500ErrorCode, type StreamInitalMessage, type SubscriptionOptions, type SubscriptionOptionsMarkets, type SubscriptionOptionsMints, type SubscriptionOptionsPools, type SubscriptionOptionsWallet, type SwapQuoteByInputDto, type SwapQuoteByOutputDto, type TickDto, type TokenAmountWithUsd, type TradableAmountDto, TradeHistoryAction, type TradeHistoryEntryDto, type TradeHistoryEntryDtoIxIndex, type TradeHistoryEntryDtoPnl, type TradeHistoryEntryDtoTxSignature, type TradeHistoryEntryPnlUsd, TradeHistoryUIDirection, type TreasuryDto, type TunaLpPositionActionComposite, type TunaLpPositionActionCompositeClosedPnlUsd, type TunaLpPositionActionCompositeCollectedFees, type TunaLpPositionActionCompositeFromLending, type TunaLpPositionActionCompositeFromOwner, type TunaLpPositionActionCompositeFromParameters, type TunaLpPositionActionCompositeFromPosition, type TunaLpPositionActionCompositeParameters, type TunaLpPositionActionCompositePosition, type TunaLpPositionActionCompositePrices, type TunaLpPositionActionCompositeProtocolFees, type TunaLpPositionActionCompositeToLending, type TunaLpPositionActionCompositeToOwner, type TunaLpPositionActionCompositeToParameters, type TunaLpPositionActionCompositeToPosition, type TunaLpPositionActionCompositeWithdrawPercent, type TunaLpPositionActionDto, TunaLpPositionAutoCompound, TunaLpPositionAutoCompounding, type TunaLpPositionDto, type TunaLpPositionDtoClosedAt, type TunaLpPositionDtoExitPrice, type TunaLpPositionDtoLowerLimitOrder, type TunaLpPositionDtoUpperLimitOrder, type TunaLpPositionFlags, type TunaLpPositionFlagsAutoCompounding, type TunaLpPositionFlagsLowerLimitOrderSwapToToken, type TunaLpPositionFlagsUpperLimitOrderSwapToToken, TunaLpPositionLimitOrderSwap, type TunaLpPositionParameters, type TunaLpPositionParametersLowerLimitOrder, type TunaLpPositionParametersUpperLimitOrder, TunaLpPositionRebalance, type TunaLpPositionTokenPrices, type TunaLpPositionTransfer, type TunaLpPositionValue, TunaLpPositionsActionType, type TunaLpPositionsStats, type TunaLpPositionsStatsFusionClosedByLimitOrderCount, type TunaLpPositionsStatsFusionLiquidatedCount, type TunaLpPositionsStatsFusionOpenCount, type TunaLpPositionsStatsOrcaClosedByLimitOrderCount, type TunaLpPositionsStatsOrcaLiquidatedCount, type TunaLpPositionsStatsOrcaOpenCount, type TunaPositionDto, type TunaPositionDtoClosedAt, TunaPositionDtoState, TunaPositionMarketMaker, TunaPositionPoolToken, type TunaPositionTokenDepositedCollateral, type TunaPositionTokenPnl, type TunaPositionUsdPnl, type TunaSpotPositionDto, type TunaSpotPositionDtoClosedAt, TunaSpotPositionDtoState, type U128Dto, type U64Dto, type UpdateStreamSubscription200, type UpdateStreamSubscriptionError404Error, UpdateStreamSubscriptionError404ErrorCode, type UpdateStreamSubscriptionError500Error, UpdateStreamSubscriptionError500ErrorCode, type ValidationErrorCodeErrorBody, ValidationErrorCodeErrorBodyCode, type ValidationErrorCodeErrorBodyData, type ValidationErrorCodeValidationDetailsErrorBody, ValidationErrorCodeValidationDetailsErrorBodyCode, type ValidationErrorCodeValidationDetailsErrorBodyData, type VaultDto, type VaultError400BadRequest, VaultError400BadRequestCode, type VaultError400Error, type VaultError404Error, VaultError404ErrorCode, type VaultError500Error, VaultError500ErrorCode, type VaultStatsDto, type VestingDto, type VestingDtoLockedAt, type WalletSubscription, WalletSubscriptionTopic, eventIsInitialMessage, eventIsLendingPosition, eventIsOrderHistory, eventIsPoolSwap, eventIsStakingPosition, eventIsStateSnapshot, eventIsTradeHistory, getCloseSpotPositionQuote, type getCloseSpotPositionQuoteResponse, type getCloseSpotPositionQuoteResponse200, type getCloseSpotPositionQuoteResponse400, type getCloseSpotPositionQuoteResponse422, type getCloseSpotPositionQuoteResponse500, type getCloseSpotPositionQuoteResponseError, type getCloseSpotPositionQuoteResponseSuccess, getDecreaseSpotPositionQuote, type getDecreaseSpotPositionQuoteResponse, type getDecreaseSpotPositionQuoteResponse200, type getDecreaseSpotPositionQuoteResponse400, type getDecreaseSpotPositionQuoteResponse422, type getDecreaseSpotPositionQuoteResponse500, type getDecreaseSpotPositionQuoteResponseError, type getDecreaseSpotPositionQuoteResponseSuccess, getFeesStats, type getFeesStatsResponse, type getFeesStatsResponse200, type getFeesStatsResponse400, type getFeesStatsResponse422, type getFeesStatsResponse500, type getFeesStatsResponseError, type getFeesStatsResponseSuccess, getFusionFeesStats, type getFusionFeesStatsResponse, type getFusionFeesStatsResponse200, type getFusionFeesStatsResponse400, type getFusionFeesStatsResponse422, type getFusionFeesStatsResponse500, type getFusionFeesStatsResponseError, type getFusionFeesStatsResponseSuccess, getGetCloseSpotPositionQuoteUrl, getGetDecreaseSpotPositionQuoteUrl, getGetFeesStatsUrl, getGetFusionFeesStatsUrl, getGetIncreaseSpotPositionQuoteUrl, getGetLendingPositionUrl, getGetLendingPositionsUrl, getGetLimitOrderQuoteByInputUrl, getGetLimitOrderQuoteByOutputUrl, getGetLimitOrderUrl, getGetLimitOrdersUrl, getGetLpPositionActionsUrl, getGetLpPositionsUrl, getGetLpSpotLeaderboardUrl, getGetMarketUrl, getGetMarketsUrl, getGetMintUrl, getGetMintsUrl, getGetOraclePriceUrl, getGetOraclePricesUrl, getGetOrderHistoryUrl, getGetPoolCandlesUrl, getGetPoolOrderBookUrl, getGetPoolSwapsUrl, getGetPoolTicksUrl, getGetPoolUrl, getGetPoolsUrl, getGetPositionsStatsUrl, getGetPositionsTotalUrl, getGetSpotPositionUrl, getGetSpotPositionsUrl, getGetStakingLeaderboardUrl, getGetStakingRevenueStatsUrl, getGetStakingTreasuryUrl, getGetSwapQuoteByInputUrl, getGetSwapQuoteByOutputUrl, getGetTradableAmountUrl, getGetTradeHistoryUrl, getGetTunaPositionUrl, getGetTunaPositionsUrl, getGetUserStakingPositionHistoryUrl, getGetUserStakingPositionUrl, getGetVaultHistoryUrl, getGetVaultUrl, getGetVaultsUrl, getIncreaseSpotPositionQuote, type getIncreaseSpotPositionQuoteResponse, type getIncreaseSpotPositionQuoteResponse200, type getIncreaseSpotPositionQuoteResponse400, type getIncreaseSpotPositionQuoteResponse422, type getIncreaseSpotPositionQuoteResponse500, type getIncreaseSpotPositionQuoteResponseError, type getIncreaseSpotPositionQuoteResponseSuccess, getLendingPosition, type getLendingPositionResponse, type getLendingPositionResponse200, type getLendingPositionResponse400, type getLendingPositionResponse422, type getLendingPositionResponse500, type getLendingPositionResponseError, type getLendingPositionResponseSuccess, getLendingPositions, type getLendingPositionsResponse, type getLendingPositionsResponse200, type getLendingPositionsResponse400, type getLendingPositionsResponse422, type getLendingPositionsResponse500, type getLendingPositionsResponseError, type getLendingPositionsResponseSuccess, getLimitOrder, getLimitOrderQuoteByInput, type getLimitOrderQuoteByInputResponse, type getLimitOrderQuoteByInputResponse200, type getLimitOrderQuoteByInputResponse400, type getLimitOrderQuoteByInputResponse422, type getLimitOrderQuoteByInputResponse500, type getLimitOrderQuoteByInputResponseError, type getLimitOrderQuoteByInputResponseSuccess, getLimitOrderQuoteByOutput, type getLimitOrderQuoteByOutputResponse, type getLimitOrderQuoteByOutputResponse200, type getLimitOrderQuoteByOutputResponse400, type getLimitOrderQuoteByOutputResponse422, type getLimitOrderQuoteByOutputResponse500, type getLimitOrderQuoteByOutputResponseError, type getLimitOrderQuoteByOutputResponseSuccess, type getLimitOrderResponse, type getLimitOrderResponse200, type getLimitOrderResponse400, type getLimitOrderResponse404, type getLimitOrderResponse422, type getLimitOrderResponse500, type getLimitOrderResponseError, type getLimitOrderResponseSuccess, getLimitOrders, type getLimitOrdersResponse, type getLimitOrdersResponse200, type getLimitOrdersResponse400, type getLimitOrdersResponse422, type getLimitOrdersResponse500, type getLimitOrdersResponseError, type getLimitOrdersResponseSuccess, getLpPositionActions, type getLpPositionActionsResponse, type getLpPositionActionsResponse200, type getLpPositionActionsResponse400, type getLpPositionActionsResponse422, type getLpPositionActionsResponse500, type getLpPositionActionsResponseError, type getLpPositionActionsResponseSuccess, getLpPositions, type getLpPositionsResponse, type getLpPositionsResponse200, type getLpPositionsResponse400, type getLpPositionsResponse422, type getLpPositionsResponse500, type getLpPositionsResponseError, type getLpPositionsResponseSuccess, getLpSpotLeaderboard, type getLpSpotLeaderboardResponse, type getLpSpotLeaderboardResponse200, type getLpSpotLeaderboardResponse400, type getLpSpotLeaderboardResponse422, type getLpSpotLeaderboardResponse500, type getLpSpotLeaderboardResponseError, type getLpSpotLeaderboardResponseSuccess, getMarket, type getMarketResponse, type getMarketResponse200, type getMarketResponse400, type getMarketResponse404, type getMarketResponse422, type getMarketResponse500, type getMarketResponseError, type getMarketResponseSuccess, getMarkets, type getMarketsResponse, type getMarketsResponse200, type getMarketsResponse500, type getMarketsResponseError, type getMarketsResponseSuccess, getMint, type getMintResponse, type getMintResponse200, type getMintResponse400, type getMintResponse404, type getMintResponse422, type getMintResponse500, type getMintResponseError, type getMintResponseSuccess, getMints, type getMintsResponse, type getMintsResponse200, type getMintsResponse500, type getMintsResponseError, type getMintsResponseSuccess, getOraclePrice, type getOraclePriceResponse, type getOraclePriceResponse200, type getOraclePriceResponse400, type getOraclePriceResponse404, type getOraclePriceResponse422, type getOraclePriceResponse500, type getOraclePriceResponseError, type getOraclePriceResponseSuccess, getOraclePrices, type getOraclePricesResponse, type getOraclePricesResponse200, type getOraclePricesResponse500, type getOraclePricesResponseError, type getOraclePricesResponseSuccess, getOrderHistory, type getOrderHistoryResponse, type getOrderHistoryResponse200, type getOrderHistoryResponse400, type getOrderHistoryResponse422, type getOrderHistoryResponse500, type getOrderHistoryResponseError, type getOrderHistoryResponseSuccess, getPool, getPoolCandles, type getPoolCandlesResponse, type getPoolCandlesResponse200, type getPoolCandlesResponse400, type getPoolCandlesResponse404, type getPoolCandlesResponse422, type getPoolCandlesResponse500, type getPoolCandlesResponseError, type getPoolCandlesResponseSuccess, getPoolOrderBook, type getPoolOrderBookResponse, type getPoolOrderBookResponse200, type getPoolOrderBookResponse400, type getPoolOrderBookResponse404, type getPoolOrderBookResponse422, type getPoolOrderBookResponse500, type getPoolOrderBookResponseError, type getPoolOrderBookResponseSuccess, type getPoolResponse, type getPoolResponse200, type getPoolResponse400, type getPoolResponse404, type getPoolResponse422, type getPoolResponse500, type getPoolResponseError, type getPoolResponseSuccess, getPoolSwaps, type getPoolSwapsResponse, type getPoolSwapsResponse200, type getPoolSwapsResponse400, type getPoolSwapsResponse404, type getPoolSwapsResponse422, type getPoolSwapsResponse500, type getPoolSwapsResponseError, type getPoolSwapsResponseSuccess, getPoolTicks, type getPoolTicksResponse, type getPoolTicksResponse200, type getPoolTicksResponse400, type getPoolTicksResponse404, type getPoolTicksResponse422, type getPoolTicksResponse500, type getPoolTicksResponseError, type getPoolTicksResponseSuccess, getPools, type getPoolsResponse, type getPoolsResponse200, type getPoolsResponse400, type getPoolsResponse422, type getPoolsResponse500, type getPoolsResponseError, type getPoolsResponseSuccess, getPositionsStats, type getPositionsStatsResponse, type getPositionsStatsResponse200, type getPositionsStatsResponse400, type getPositionsStatsResponse422, type getPositionsStatsResponse500, type getPositionsStatsResponseError, type getPositionsStatsResponseSuccess, getPositionsTotal, type getPositionsTotalResponse, type getPositionsTotalResponse200, type getPositionsTotalResponse500, type getPositionsTotalResponseError, type getPositionsTotalResponseSuccess, getSpotPosition, type getSpotPositionResponse, type getSpotPositionResponse200, type getSpotPositionResponse400, type getSpotPositionResponse404, type getSpotPositionResponse422, type getSpotPositionResponse500, type getSpotPositionResponseError, type getSpotPositionResponseSuccess, getSpotPositions, type getSpotPositionsResponse, type getSpotPositionsResponse200, type getSpotPositionsResponse400, type getSpotPositionsResponse422, type getSpotPositionsResponse500, type getSpotPositionsResponseError, type getSpotPositionsResponseSuccess, getSseUpdatesStream, getSseUrl, getStakingLeaderboard, type getStakingLeaderboardResponse, type getStakingLeaderboardResponse200, type getStakingLeaderboardResponse400, type getStakingLeaderboardResponse422, type getStakingLeaderboardResponse500, type getStakingLeaderboardResponseError, type getStakingLeaderboardResponseSuccess, getStakingRevenueStats, type getStakingRevenueStatsResponse, type getStakingRevenueStatsResponse200, type getStakingRevenueStatsResponse400, type getStakingRevenueStatsResponse422, type getStakingRevenueStatsResponse500, type getStakingRevenueStatsResponseError, type getStakingRevenueStatsResponseSuccess, getStakingTreasury, type getStakingTreasuryResponse, type getStakingTreasuryResponse200, type getStakingTreasuryResponse500, type getStakingTreasuryResponseError, type getStakingTreasuryResponseSuccess, getSwapQuoteByInput, type getSwapQuoteByInputResponse, type getSwapQuoteByInputResponse200, type getSwapQuoteByInputResponse400, type getSwapQuoteByInputResponse422, type getSwapQuoteByInputResponse500, type getSwapQuoteByInputResponseError, type getSwapQuoteByInputResponseSuccess, getSwapQuoteByOutput, type getSwapQuoteByOutputResponse, type getSwapQuoteByOutputResponse200, type getSwapQuoteByOutputResponse400, type getSwapQuoteByOutputResponse422, type getSwapQuoteByOutputResponse500, type getSwapQuoteByOutputResponseError, type getSwapQuoteByOutputResponseSuccess, getTradableAmount, type getTradableAmountResponse, type getTradableAmountResponse200, type getTradableAmountResponse400, type getTradableAmountResponse422, type getTradableAmountResponse500, type getTradableAmountResponseError, type getTradableAmountResponseSuccess, getTradeHistory, type getTradeHistoryResponse, type getTradeHistoryResponse200, type getTradeHistoryResponse400, type getTradeHistoryResponse422, type getTradeHistoryResponse500, type getTradeHistoryResponseError, type getTradeHistoryResponseSuccess, getTunaPosition, type getTunaPositionResponse, type getTunaPositionResponse200, type getTunaPositionResponse400, type getTunaPositionResponse422, type getTunaPositionResponse500, type getTunaPositionResponseError, type getTunaPositionResponseSuccess, getTunaPositions, type getTunaPositionsResponse, type getTunaPositionsResponse200, type getTunaPositionsResponse400, type getTunaPositionsResponse422, type getTunaPositionsResponse500, type getTunaPositionsResponseError, type getTunaPositionsResponseSuccess, getUpdateStreamSubscriptionUrl, getUserStakingPosition, getUserStakingPositionHistory, type getUserStakingPositionHistoryResponse, type getUserStakingPositionHistoryResponse200, type getUserStakingPositionHistoryResponse400, type getUserStakingPositionHistoryResponse422, type getUserStakingPositionHistoryResponse500, type getUserStakingPositionHistoryResponseError, type getUserStakingPositionHistoryResponseSuccess, type getUserStakingPositionResponse, type getUserStakingPositionResponse200, type getUserStakingPositionResponse400, type getUserStakingPositionResponse422, type getUserStakingPositionResponse500, type getUserStakingPositionResponseError, type getUserStakingPositionResponseSuccess, getVault, getVaultHistory, type getVaultHistoryResponse, type getVaultHistoryResponse200, type getVaultHistoryResponse400, type getVaultHistoryResponse404, type getVaultHistoryResponse422, type getVaultHistoryResponse500, type getVaultHistoryResponseError, type getVaultHistoryResponseSuccess, type getVaultResponse, type getVaultResponse200, type getVaultResponse400, type getVaultResponse404, type getVaultResponse422, type getVaultResponse500, type getVaultResponseError, type getVaultResponseSuccess, getVaults, type getVaultsResponse, type getVaultsResponse200, type getVaultsResponse500, type getVaultsResponseError, type getVaultsResponseSuccess, normalizeResponseJson, setTunaBaseUrl, sse, type sseResponse, type sseResponse200, type sseResponse500, type sseResponseError, type sseResponseSuccess, unwrap, updateStreamSubscription, type updateStreamSubscriptionResponse, type updateStreamSubscriptionResponse200, type updateStreamSubscriptionResponse400, type updateStreamSubscriptionResponse404, type updateStreamSubscriptionResponse422, type updateStreamSubscriptionResponse500, type updateStreamSubscriptionResponseError, type updateStreamSubscriptionResponseSuccess };
|
|
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 };
|