@crypticdot/defituna-api 1.1.35 → 1.1.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -29,6 +29,12 @@ declare const LimitOrderState: {
29
29
  readonly COMPLETE: "complete";
30
30
  readonly CANCELLED: "cancelled";
31
31
  };
32
+ declare const StakingPositionHistoryActionType$1: {
33
+ readonly STAKE: "stake";
34
+ readonly UNSTAKE: "unstake";
35
+ readonly WITHDRAW: "withdraw";
36
+ readonly CLAIM_REWARDS: "claim_rewards";
37
+ };
32
38
  declare const PoolSubscriptionTopic: {
33
39
  readonly ORDER_BOOK: "order_book";
34
40
  readonly POOL_PRICES: "pool_prices";
@@ -44,6 +50,7 @@ declare const NotificationActionSchema: z.ZodEnum<["create", ...("create" | "upd
44
50
  declare const PoolProviderSchema: z.ZodEnum<["orca", ...("orca" | "fusion")[]]>;
45
51
  declare const TunaPositionStateSchema: z.ZodEnum<["open", ...("open" | "liquidated" | "closed_by_limit_order" | "closed")[]]>;
46
52
  declare const LimitOrderStateSchema: z.ZodEnum<["open", ...("open" | "partially_filled" | "filled" | "complete" | "cancelled")[]]>;
53
+ declare const StakingPositionHistoryActionTypeSchema: z.ZodEnum<["stake", ...("stake" | "unstake" | "withdraw" | "claim_rewards")[]]>;
47
54
  declare const PoolSubscriptionTopicSchema: z.ZodEnum<["order_book", ...("order_book" | "pool_prices" | "pool_swaps")[]]>;
48
55
  declare const WalletSubscriptionTopicSchema: z.ZodEnum<["tuna_positions", ...("tuna_positions" | "lending_positions" | "fusion_limit_orders")[]]>;
49
56
  declare const Mint$1: z.ZodObject<{
@@ -311,6 +318,55 @@ declare const Vault$1: z.ZodObject<{
311
318
  pythOracleFeedId: string;
312
319
  pythOraclePriceUpdate: string;
313
320
  }>;
321
+ declare const VaultHistoricalStats$1: z.ZodObject<{
322
+ date: z.ZodEffects<z.ZodDate, Date, unknown>;
323
+ supply: z.ZodObject<{
324
+ amount: z.ZodBigInt;
325
+ usd: z.ZodNumber;
326
+ }, "strip", z.ZodTypeAny, {
327
+ amount: bigint;
328
+ usd: number;
329
+ }, {
330
+ amount: bigint;
331
+ usd: number;
332
+ }>;
333
+ borrow: z.ZodObject<{
334
+ amount: z.ZodBigInt;
335
+ usd: z.ZodNumber;
336
+ }, "strip", z.ZodTypeAny, {
337
+ amount: bigint;
338
+ usd: number;
339
+ }, {
340
+ amount: bigint;
341
+ usd: number;
342
+ }>;
343
+ supplyApy: z.ZodNumber;
344
+ borrowApr: z.ZodNumber;
345
+ }, "strip", z.ZodTypeAny, {
346
+ supplyApy: number;
347
+ date: Date;
348
+ supply: {
349
+ amount: bigint;
350
+ usd: number;
351
+ };
352
+ borrow: {
353
+ amount: bigint;
354
+ usd: number;
355
+ };
356
+ borrowApr: number;
357
+ }, {
358
+ supplyApy: number;
359
+ supply: {
360
+ amount: bigint;
361
+ usd: number;
362
+ };
363
+ borrow: {
364
+ amount: bigint;
365
+ usd: number;
366
+ };
367
+ borrowApr: number;
368
+ date?: unknown;
369
+ }>;
314
370
  declare const Pool$1: z.ZodObject<{
315
371
  address: z.ZodString;
316
372
  provider: z.ZodEnum<["orca", ...("orca" | "fusion")[]]>;
@@ -1152,6 +1208,245 @@ declare const LimitOrder$1: z.ZodObject<{
1152
1208
  openTxSignature: string;
1153
1209
  closeTxSignature: string | null;
1154
1210
  }>;
1211
+ declare const StakingTreasury$1: z.ZodObject<{
1212
+ address: z.ZodString;
1213
+ stakedTokenMint: z.ZodString;
1214
+ rewardTokenMint: z.ZodString;
1215
+ apy: z.ZodNumber;
1216
+ totalStaked: z.ZodObject<{
1217
+ amount: z.ZodBigInt;
1218
+ usd: z.ZodNumber;
1219
+ }, "strip", z.ZodTypeAny, {
1220
+ amount: bigint;
1221
+ usd: number;
1222
+ }, {
1223
+ amount: bigint;
1224
+ usd: number;
1225
+ }>;
1226
+ totalReward: z.ZodObject<{
1227
+ amount: z.ZodBigInt;
1228
+ usd: z.ZodNumber;
1229
+ }, "strip", z.ZodTypeAny, {
1230
+ amount: bigint;
1231
+ usd: number;
1232
+ }, {
1233
+ amount: bigint;
1234
+ usd: number;
1235
+ }>;
1236
+ unstakeCooldown: z.ZodBigInt;
1237
+ }, "strip", z.ZodTypeAny, {
1238
+ address: string;
1239
+ stakedTokenMint: string;
1240
+ rewardTokenMint: string;
1241
+ apy: number;
1242
+ totalStaked: {
1243
+ amount: bigint;
1244
+ usd: number;
1245
+ };
1246
+ totalReward: {
1247
+ amount: bigint;
1248
+ usd: number;
1249
+ };
1250
+ unstakeCooldown: bigint;
1251
+ }, {
1252
+ address: string;
1253
+ stakedTokenMint: string;
1254
+ rewardTokenMint: string;
1255
+ apy: number;
1256
+ totalStaked: {
1257
+ amount: bigint;
1258
+ usd: number;
1259
+ };
1260
+ totalReward: {
1261
+ amount: bigint;
1262
+ usd: number;
1263
+ };
1264
+ unstakeCooldown: bigint;
1265
+ }>;
1266
+ declare const StakingPosition$1: z.ZodObject<{
1267
+ address: z.ZodString;
1268
+ owner: z.ZodString;
1269
+ staked: z.ZodObject<{
1270
+ amount: z.ZodBigInt;
1271
+ usd: z.ZodNumber;
1272
+ }, "strip", z.ZodTypeAny, {
1273
+ amount: bigint;
1274
+ usd: number;
1275
+ }, {
1276
+ amount: bigint;
1277
+ usd: number;
1278
+ }>;
1279
+ unstaked: z.ZodObject<{
1280
+ amount: z.ZodBigInt;
1281
+ usd: z.ZodNumber;
1282
+ }, "strip", z.ZodTypeAny, {
1283
+ amount: bigint;
1284
+ usd: number;
1285
+ }, {
1286
+ amount: bigint;
1287
+ usd: number;
1288
+ }>;
1289
+ claimedReward: z.ZodObject<{
1290
+ amount: z.ZodBigInt;
1291
+ usd: z.ZodNumber;
1292
+ }, "strip", z.ZodTypeAny, {
1293
+ amount: bigint;
1294
+ usd: number;
1295
+ }, {
1296
+ amount: bigint;
1297
+ usd: number;
1298
+ }>;
1299
+ unclaimedReward: z.ZodObject<{
1300
+ amount: z.ZodBigInt;
1301
+ usd: z.ZodNumber;
1302
+ }, "strip", z.ZodTypeAny, {
1303
+ amount: bigint;
1304
+ usd: number;
1305
+ }, {
1306
+ amount: bigint;
1307
+ usd: number;
1308
+ }>;
1309
+ vesting: z.ZodObject<{
1310
+ locked: z.ZodObject<{
1311
+ amount: z.ZodBigInt;
1312
+ usd: z.ZodNumber;
1313
+ }, "strip", z.ZodTypeAny, {
1314
+ amount: bigint;
1315
+ usd: number;
1316
+ }, {
1317
+ amount: bigint;
1318
+ usd: number;
1319
+ }>;
1320
+ unlocked: z.ZodObject<{
1321
+ amount: z.ZodBigInt;
1322
+ usd: z.ZodNumber;
1323
+ }, "strip", z.ZodTypeAny, {
1324
+ amount: bigint;
1325
+ usd: number;
1326
+ }, {
1327
+ amount: bigint;
1328
+ usd: number;
1329
+ }>;
1330
+ unlockRate: z.ZodBigInt;
1331
+ unlockPeriod: z.ZodNumber;
1332
+ unlockCliff: z.ZodNumber;
1333
+ lockedAt: z.ZodNullable<z.ZodDate>;
1334
+ }, "strip", z.ZodTypeAny, {
1335
+ locked: {
1336
+ amount: bigint;
1337
+ usd: number;
1338
+ };
1339
+ unlocked: {
1340
+ amount: bigint;
1341
+ usd: number;
1342
+ };
1343
+ unlockRate: bigint;
1344
+ unlockPeriod: number;
1345
+ unlockCliff: number;
1346
+ lockedAt: Date | null;
1347
+ }, {
1348
+ locked: {
1349
+ amount: bigint;
1350
+ usd: number;
1351
+ };
1352
+ unlocked: {
1353
+ amount: bigint;
1354
+ usd: number;
1355
+ };
1356
+ unlockRate: bigint;
1357
+ unlockPeriod: number;
1358
+ unlockCliff: number;
1359
+ lockedAt: Date | null;
1360
+ }>;
1361
+ lastUnstakedAt: z.ZodNullable<z.ZodDate>;
1362
+ withdrawAvailableAt: z.ZodNullable<z.ZodDate>;
1363
+ }, "strip", z.ZodTypeAny, {
1364
+ address: string;
1365
+ owner: string;
1366
+ staked: {
1367
+ amount: bigint;
1368
+ usd: number;
1369
+ };
1370
+ unstaked: {
1371
+ amount: bigint;
1372
+ usd: number;
1373
+ };
1374
+ claimedReward: {
1375
+ amount: bigint;
1376
+ usd: number;
1377
+ };
1378
+ unclaimedReward: {
1379
+ amount: bigint;
1380
+ usd: number;
1381
+ };
1382
+ vesting: {
1383
+ locked: {
1384
+ amount: bigint;
1385
+ usd: number;
1386
+ };
1387
+ unlocked: {
1388
+ amount: bigint;
1389
+ usd: number;
1390
+ };
1391
+ unlockRate: bigint;
1392
+ unlockPeriod: number;
1393
+ unlockCliff: number;
1394
+ lockedAt: Date | null;
1395
+ };
1396
+ lastUnstakedAt: Date | null;
1397
+ withdrawAvailableAt: Date | null;
1398
+ }, {
1399
+ address: string;
1400
+ owner: string;
1401
+ staked: {
1402
+ amount: bigint;
1403
+ usd: number;
1404
+ };
1405
+ unstaked: {
1406
+ amount: bigint;
1407
+ usd: number;
1408
+ };
1409
+ claimedReward: {
1410
+ amount: bigint;
1411
+ usd: number;
1412
+ };
1413
+ unclaimedReward: {
1414
+ amount: bigint;
1415
+ usd: number;
1416
+ };
1417
+ vesting: {
1418
+ locked: {
1419
+ amount: bigint;
1420
+ usd: number;
1421
+ };
1422
+ unlocked: {
1423
+ amount: bigint;
1424
+ usd: number;
1425
+ };
1426
+ unlockRate: bigint;
1427
+ unlockPeriod: number;
1428
+ unlockCliff: number;
1429
+ lockedAt: Date | null;
1430
+ };
1431
+ lastUnstakedAt: Date | null;
1432
+ withdrawAvailableAt: Date | null;
1433
+ }>;
1434
+ declare const StakingPositionHistoryAction$1: z.ZodObject<{
1435
+ position: z.ZodString;
1436
+ action: z.ZodEnum<["stake", ...("stake" | "unstake" | "withdraw" | "claim_rewards")[]]>;
1437
+ txSignature: z.ZodString;
1438
+ time: z.ZodDate;
1439
+ }, "strip", z.ZodTypeAny, {
1440
+ time: Date;
1441
+ position: string;
1442
+ action: "stake" | "unstake" | "withdraw" | "claim_rewards";
1443
+ txSignature: string;
1444
+ }, {
1445
+ time: Date;
1446
+ position: string;
1447
+ action: "stake" | "unstake" | "withdraw" | "claim_rewards";
1448
+ txSignature: string;
1449
+ }>;
1155
1450
  declare const PoolPriceCandle$1: z.ZodObject<{
1156
1451
  time: z.ZodNumber;
1157
1452
  open: z.ZodNumber;
@@ -1259,8 +1554,8 @@ declare const PoolSwapNotification: z.ZodObject<{
1259
1554
  }, "strip", z.ZodTypeAny, {
1260
1555
  authority: string | null;
1261
1556
  id: string;
1262
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
1263
1557
  action: "create" | "update";
1558
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
1264
1559
  data: {
1265
1560
  time: Date;
1266
1561
  pool: string;
@@ -1274,8 +1569,8 @@ declare const PoolSwapNotification: z.ZodObject<{
1274
1569
  } | {
1275
1570
  authority: string | null;
1276
1571
  id: string;
1277
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
1278
1572
  action: "create" | "update";
1573
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
1279
1574
  data: {
1280
1575
  time: Date;
1281
1576
  pool: string;
@@ -1289,8 +1584,8 @@ declare const PoolSwapNotification: z.ZodObject<{
1289
1584
  }, {
1290
1585
  authority: string | null;
1291
1586
  id: string;
1292
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
1293
1587
  action: "create" | "update";
1588
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
1294
1589
  data: {
1295
1590
  time: Date;
1296
1591
  pool: string;
@@ -1304,8 +1599,8 @@ declare const PoolSwapNotification: z.ZodObject<{
1304
1599
  } | {
1305
1600
  authority: string | null;
1306
1601
  id: string;
1307
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
1308
1602
  action: "create" | "update";
1603
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
1309
1604
  data: {
1310
1605
  time: Date;
1311
1606
  pool: string;
@@ -1364,8 +1659,8 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
1364
1659
  }, "strip", z.ZodTypeAny, {
1365
1660
  authority: string | null;
1366
1661
  id: string;
1367
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
1368
1662
  action: "create" | "update";
1663
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
1369
1664
  data: {
1370
1665
  price: number;
1371
1666
  time: Date;
@@ -1376,8 +1671,8 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
1376
1671
  } | {
1377
1672
  authority: string | null;
1378
1673
  id: string;
1379
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
1380
1674
  action: "create" | "update";
1675
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
1381
1676
  data: {
1382
1677
  price: number;
1383
1678
  time: Date;
@@ -1388,8 +1683,8 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
1388
1683
  }, {
1389
1684
  authority: string | null;
1390
1685
  id: string;
1391
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
1392
1686
  action: "create" | "update";
1687
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
1393
1688
  data: {
1394
1689
  price: number;
1395
1690
  time: Date;
@@ -1400,8 +1695,8 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
1400
1695
  } | {
1401
1696
  authority: string | null;
1402
1697
  id: string;
1403
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
1404
1698
  action: "create" | "update";
1699
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
1405
1700
  data: {
1406
1701
  price: number;
1407
1702
  time: Date;
@@ -1567,8 +1862,8 @@ declare const OrderBookNotification: z.ZodObject<{
1567
1862
  }, "strip", z.ZodTypeAny, {
1568
1863
  authority: string | null;
1569
1864
  id: string;
1570
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
1571
1865
  action: "create" | "update";
1866
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
1572
1867
  data: {
1573
1868
  entries: {
1574
1869
  price: number;
@@ -1592,8 +1887,8 @@ declare const OrderBookNotification: z.ZodObject<{
1592
1887
  } | {
1593
1888
  authority: string | null;
1594
1889
  id: string;
1595
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
1596
1890
  action: "create" | "update";
1891
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
1597
1892
  data: {
1598
1893
  entries: {
1599
1894
  price: number;
@@ -1617,8 +1912,8 @@ declare const OrderBookNotification: z.ZodObject<{
1617
1912
  }, {
1618
1913
  authority: string | null;
1619
1914
  id: string;
1620
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
1621
1915
  action: "create" | "update";
1916
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
1622
1917
  data: {
1623
1918
  entries: {
1624
1919
  price: number;
@@ -1642,8 +1937,8 @@ declare const OrderBookNotification: z.ZodObject<{
1642
1937
  } | {
1643
1938
  authority: string | null;
1644
1939
  id: string;
1645
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
1646
1940
  action: "create" | "update";
1941
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
1647
1942
  data: {
1648
1943
  entries: {
1649
1944
  price: number;
@@ -2414,8 +2709,8 @@ declare const TunaPositionNotification: z.ZodObject<{
2414
2709
  }, "strip", z.ZodTypeAny, {
2415
2710
  authority: string | null;
2416
2711
  id: string;
2417
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
2418
2712
  action: "create" | "update";
2713
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
2419
2714
  data: {
2420
2715
  address: string;
2421
2716
  liquidity: bigint;
@@ -2509,8 +2804,8 @@ declare const TunaPositionNotification: z.ZodObject<{
2509
2804
  } | {
2510
2805
  authority: string | null;
2511
2806
  id: string;
2512
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
2513
2807
  action: "create" | "update";
2808
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
2514
2809
  data: {
2515
2810
  address: string;
2516
2811
  liquidity: bigint;
@@ -2604,8 +2899,8 @@ declare const TunaPositionNotification: z.ZodObject<{
2604
2899
  }, {
2605
2900
  authority: string | null;
2606
2901
  id: string;
2607
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
2608
2902
  action: "create" | "update";
2903
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
2609
2904
  data: {
2610
2905
  address: string;
2611
2906
  liquidity: bigint;
@@ -2699,8 +2994,8 @@ declare const TunaPositionNotification: z.ZodObject<{
2699
2994
  } | {
2700
2995
  authority: string | null;
2701
2996
  id: string;
2702
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
2703
2997
  action: "create" | "update";
2998
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
2704
2999
  data: {
2705
3000
  address: string;
2706
3001
  liquidity: bigint;
@@ -2917,8 +3212,8 @@ declare const LendingPositionNotification: z.ZodObject<{
2917
3212
  }, "strip", z.ZodTypeAny, {
2918
3213
  authority: string | null;
2919
3214
  id: string;
2920
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
2921
3215
  action: "create" | "update";
3216
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
2922
3217
  data: {
2923
3218
  mint: string;
2924
3219
  address: string;
@@ -2938,8 +3233,8 @@ declare const LendingPositionNotification: z.ZodObject<{
2938
3233
  } | {
2939
3234
  authority: string | null;
2940
3235
  id: string;
2941
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
2942
3236
  action: "create" | "update";
3237
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
2943
3238
  data: {
2944
3239
  mint: string;
2945
3240
  address: string;
@@ -2959,8 +3254,8 @@ declare const LendingPositionNotification: z.ZodObject<{
2959
3254
  }, {
2960
3255
  authority: string | null;
2961
3256
  id: string;
2962
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
2963
3257
  action: "create" | "update";
3258
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
2964
3259
  data: {
2965
3260
  mint: string;
2966
3261
  address: string;
@@ -2980,8 +3275,8 @@ declare const LendingPositionNotification: z.ZodObject<{
2980
3275
  } | {
2981
3276
  authority: string | null;
2982
3277
  id: string;
2983
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
2984
3278
  action: "create" | "update";
3279
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
2985
3280
  data: {
2986
3281
  mint: string;
2987
3282
  address: string;
@@ -3160,8 +3455,8 @@ declare const LimitOrderNotification: z.ZodObject<{
3160
3455
  }, "strip", z.ZodTypeAny, {
3161
3456
  authority: string | null;
3162
3457
  id: string;
3163
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
3164
3458
  action: "create" | "update";
3459
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
3165
3460
  data: {
3166
3461
  mint: string;
3167
3462
  address: string;
@@ -3187,8 +3482,8 @@ declare const LimitOrderNotification: z.ZodObject<{
3187
3482
  } | {
3188
3483
  authority: string | null;
3189
3484
  id: string;
3190
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
3191
3485
  action: "create" | "update";
3486
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
3192
3487
  data: {
3193
3488
  mint: string;
3194
3489
  address: string;
@@ -3214,8 +3509,8 @@ declare const LimitOrderNotification: z.ZodObject<{
3214
3509
  }, {
3215
3510
  authority: string | null;
3216
3511
  id: string;
3217
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
3218
3512
  action: "create" | "update";
3513
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
3219
3514
  data: {
3220
3515
  mint: string;
3221
3516
  address: string;
@@ -3241,8 +3536,8 @@ declare const LimitOrderNotification: z.ZodObject<{
3241
3536
  } | {
3242
3537
  authority: string | null;
3243
3538
  id: string;
3244
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
3245
3539
  action: "create" | "update";
3540
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
3246
3541
  data: {
3247
3542
  mint: string;
3248
3543
  address: string;
@@ -3283,6 +3578,7 @@ declare const schemas_PoolProviderSchema: typeof PoolProviderSchema;
3283
3578
  declare const schemas_PoolSubscriptionTopic: typeof PoolSubscriptionTopic;
3284
3579
  declare const schemas_PoolSubscriptionTopicSchema: typeof PoolSubscriptionTopicSchema;
3285
3580
  declare const schemas_PoolSwapNotification: typeof PoolSwapNotification;
3581
+ declare const schemas_StakingPositionHistoryActionTypeSchema: typeof StakingPositionHistoryActionTypeSchema;
3286
3582
  declare const schemas_TunaPositionNotification: typeof TunaPositionNotification;
3287
3583
  declare const schemas_TunaPositionState: typeof TunaPositionState;
3288
3584
  declare const schemas_TunaPositionStateSchema: typeof TunaPositionStateSchema;
@@ -3290,18 +3586,20 @@ declare const schemas_UpdateStreamSubscriptionResult: typeof UpdateStreamSubscri
3290
3586
  declare const schemas_WalletSubscriptionTopic: typeof WalletSubscriptionTopic;
3291
3587
  declare const schemas_WalletSubscriptionTopicSchema: typeof WalletSubscriptionTopicSchema;
3292
3588
  declare namespace schemas {
3293
- export { LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, schemas_OrderBookNotificationMeta as OrderBookNotificationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolPriceUpdateNotification as PoolPriceUpdateNotification, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
3589
+ export { LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, schemas_OrderBookNotificationMeta as OrderBookNotificationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolPriceUpdateNotification as PoolPriceUpdateNotification, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, StakingTreasury$1 as StakingTreasury, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
3294
3590
  }
3295
3591
 
3296
3592
  type PoolProviderType = z.infer<typeof PoolProviderSchema>;
3297
3593
  type TunaPositionStateType = z.infer<typeof TunaPositionStateSchema>;
3298
3594
  type LimitOrderStateType = z.infer<typeof LimitOrderStateSchema>;
3595
+ type StakingPositionHistoryActionType = z.infer<typeof StakingPositionHistoryActionTypeSchema>;
3299
3596
  type PoolSubscriptionTopicType = z.infer<typeof PoolSubscriptionTopicSchema>;
3300
3597
  type WalletSubscriptionTopicType = z.infer<typeof WalletSubscriptionTopicSchema>;
3301
3598
  type Mint = z.infer<typeof Mint$1>;
3302
3599
  type Market = z.infer<typeof Market$1>;
3303
3600
  type TokenOraclePrice = z.infer<typeof TokenOraclePrice$1>;
3304
3601
  type Vault = z.infer<typeof Vault$1>;
3602
+ type VaultHistoricalStats = z.infer<typeof VaultHistoricalStats$1>;
3305
3603
  type Pool = z.infer<typeof Pool$1>;
3306
3604
  type Tick = z.infer<typeof Tick$1>;
3307
3605
  type PoolTicks = z.infer<typeof PoolTicks$1>;
@@ -3311,6 +3609,9 @@ type OrderBook = z.infer<typeof OrderBook$1>;
3311
3609
  type LendingPosition = z.infer<typeof LendingPosition$1>;
3312
3610
  type TunaPosition = z.infer<typeof TunaPosition$1>;
3313
3611
  type LimitOrder = z.infer<typeof LimitOrder$1>;
3612
+ type StakingPosition = z.infer<typeof StakingPosition$1>;
3613
+ type StakingTreasury = z.infer<typeof StakingTreasury$1>;
3614
+ type StakingPositionHistoryAction = z.infer<typeof StakingPositionHistoryAction$1>;
3314
3615
  type PoolPriceCandle = z.infer<typeof PoolPriceCandle$1>;
3315
3616
  type PoolPriceUpdate = z.infer<typeof PoolPriceUpdate$1>;
3316
3617
  type SubscriptionPayload = {
@@ -3373,19 +3674,28 @@ declare class TunaApiClient {
3373
3674
  getOraclePrices(): Promise<TokenOraclePrice[]>;
3374
3675
  getOraclePrice(mintAddress: string): Promise<TokenOraclePrice>;
3375
3676
  getVaults(): Promise<Vault[]>;
3376
- getVault(vaultAddress: any): Promise<Vault>;
3677
+ getVault(vaultAddress: string): Promise<Vault>;
3678
+ /**
3679
+ * Returns vault historical data for selected time interval.
3680
+ *
3681
+ * Example usage: getVaultHistory('H3ifgix98vzi3yCPbmZDLTheeTRf2jykXx8FpY5L7Sfd', '2025-03-10', '2025-04-10')
3682
+ */
3683
+ getVaultHistory(vaultAddress: string, from: Date, to: Date): Promise<VaultHistoricalStats[]>;
3377
3684
  getPools(providerFilter?: ProviderFilter): Promise<Pool[]>;
3378
3685
  getPool(address: string): Promise<Pool>;
3379
3686
  getPoolTicks(poolAddress: string): Promise<PoolTicks>;
3380
3687
  getPoolSwaps(poolAddress: string): Promise<PoolSwap[]>;
3381
3688
  getPoolOrderBook(poolAddress: string, priceStep: number, inverted: boolean): Promise<OrderBook>;
3382
3689
  getPoolPriceCandles(poolAddress: string, options: GetPoolPriceCandlesOptions): Promise<PoolPriceCandle[]>;
3690
+ getStakingTreasury(): Promise<StakingTreasury>;
3383
3691
  getUserLendingPositions(userAddress: string): Promise<LendingPosition[]>;
3384
3692
  getUserLendingPositionByAddress(userAddress: string, lendingPositionAddress: string): Promise<LendingPosition>;
3385
3693
  getUserTunaPositions(userAddress: string): Promise<TunaPosition[]>;
3386
3694
  getUserTunaPositionByAddress(userAddress: string, tunaPositionAddress: string): Promise<TunaPosition>;
3387
3695
  getUserLimitOrders(userAddress: string, poolFilter?: string): Promise<LimitOrder[]>;
3388
3696
  getUserLimitOrderByAddress(userAddress: string, limitOrderAddress: string): Promise<LimitOrder>;
3697
+ getUserStakingPosition(userAddress: string): Promise<StakingPosition>;
3698
+ getUserStakingPositionHistory(userAddress: string): Promise<StakingPositionHistoryAction[]>;
3389
3699
  /**
3390
3700
  * @deprecated Use getUpdatesStream instead
3391
3701
  */
@@ -3396,4 +3706,4 @@ declare class TunaApiClient {
3396
3706
  private appendUrlSearchParams;
3397
3707
  }
3398
3708
 
3399
- export { type DurationInMs, type GetPoolPriceCandlesOptions, type LendingPosition, type LimitOrder, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type OrderBook, type OrderBookEntry, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type SubscriptionPayload, type Tick, type TokenOraclePrice, TunaApiClient, type TunaApiClientConfig, type TunaPosition, TunaPositionState, type TunaPositionStateType, type Vault, type WalletSubscriptionTopicType, schemas };
3709
+ export { type DurationInMs, type GetPoolPriceCandlesOptions, type LendingPosition, type LimitOrder, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type OrderBook, type OrderBookEntry, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingTreasury, type SubscriptionPayload, type Tick, type TokenOraclePrice, TunaApiClient, type TunaApiClientConfig, type TunaPosition, TunaPositionState, type TunaPositionStateType, type Vault, type VaultHistoricalStats, type WalletSubscriptionTopicType, schemas };