@crypticdot/defituna-api 1.3.0 → 1.3.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.d.mts CHANGED
@@ -9,6 +9,7 @@ declare const NotificationEntity: {
9
9
  readonly LENDING_POSITION: "lending_position";
10
10
  readonly STAKING_POSITION: "staking_position";
11
11
  readonly FUSION_LIMIT_ORDER: "fusion_limit_order";
12
+ readonly TRADE_HISTORY_ENTRY: "trade_history_entry";
12
13
  };
13
14
  declare const NotificationAction: {
14
15
  readonly CREATE: "create";
@@ -35,6 +36,20 @@ declare const LimitOrderState: {
35
36
  readonly COMPLETE: "complete";
36
37
  readonly CANCELLED: "cancelled";
37
38
  };
39
+ declare const TradeHistoryAction: {
40
+ readonly SWAP: "swap";
41
+ readonly LIMIT_ORDER_FILL: "limit_order_fill";
42
+ readonly POSITION_INCREASE: "position_increase";
43
+ readonly POSITION_DECREASE: "position_decrease";
44
+ };
45
+ declare const TradeHistoryUIDirection: {
46
+ readonly BUY: "buy";
47
+ readonly SELL: "sell";
48
+ readonly OPEN_LONG: "open_long";
49
+ readonly CLOSE_LONG: "close_long";
50
+ readonly OPEN_SHORT: "open_short";
51
+ readonly CLOSE_SHORT: "close_short";
52
+ };
38
53
  declare const StakingPositionHistoryActionType$1: {
39
54
  readonly STAKE: "stake";
40
55
  readonly UNSTAKE: "unstake";
@@ -54,12 +69,14 @@ declare const WalletSubscriptionTopic: {
54
69
  readonly FUSION_LIMIT_ORDERS: "fusion_limit_orders";
55
70
  readonly STAKING_POSITION: "staking_position";
56
71
  };
57
- declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
72
+ declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
58
73
  declare const NotificationActionSchema: z.ZodEnum<["create", ...("create" | "update")[]]>;
59
74
  declare const PoolProviderSchema: z.ZodEnum<["orca", ...("orca" | "fusion")[]]>;
60
75
  declare const TunaPositionStateSchema: z.ZodEnum<["open", ...("open" | "liquidated" | "closed_by_limit_order" | "closed")[]]>;
61
76
  declare const TunaSpotPositionStateSchema: z.ZodEnum<["open", ...("open" | "closed")[]]>;
62
77
  declare const LimitOrderStateSchema: z.ZodEnum<["open", ...("open" | "partially_filled" | "filled" | "complete" | "cancelled")[]]>;
78
+ declare const TradeHistoryActionSchema: z.ZodEnum<["swap", ...("swap" | "limit_order_fill" | "position_increase" | "position_decrease")[]]>;
79
+ declare const TradeHistoryUIDirectionSchema: z.ZodEnum<["buy", ...("buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short")[]]>;
63
80
  declare const StakingPositionHistoryActionTypeSchema: z.ZodEnum<["stake", ...("stake" | "unstake" | "withdraw" | "claim_rewards" | "compound_rewards")[]]>;
64
81
  declare const PoolSubscriptionTopicSchema: z.ZodEnum<["order_book", ...("order_book" | "pool_prices" | "pool_swaps")[]]>;
65
82
  declare const WalletSubscriptionTopicSchema: z.ZodEnum<["tuna_positions", ...("staking_position" | "tuna_positions" | "tuna_spot_positions" | "lending_positions" | "fusion_limit_orders")[]]>;
@@ -1406,6 +1423,100 @@ declare const LimitOrder$1: z.ZodObject<{
1406
1423
  openTxSignature: string;
1407
1424
  closeTxSignature: string | null;
1408
1425
  }>;
1426
+ declare const TradeHistoryEntry$1: z.ZodObject<{
1427
+ id: z.ZodString;
1428
+ pool: z.ZodString;
1429
+ authority: z.ZodString;
1430
+ aToB: z.ZodBoolean;
1431
+ action: z.ZodEnum<["swap", ...("swap" | "limit_order_fill" | "position_increase" | "position_decrease")[]]>;
1432
+ uiDirection: z.ZodEnum<["buy", ...("buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short")[]]>;
1433
+ uiPrice: z.ZodNumber;
1434
+ baseToken: z.ZodObject<{
1435
+ amount: z.ZodBigInt;
1436
+ usd: z.ZodNumber;
1437
+ }, "strip", z.ZodTypeAny, {
1438
+ amount: bigint;
1439
+ usd: number;
1440
+ }, {
1441
+ amount: bigint;
1442
+ usd: number;
1443
+ }>;
1444
+ quoteToken: z.ZodObject<{
1445
+ amount: z.ZodBigInt;
1446
+ usd: z.ZodNumber;
1447
+ }, "strip", z.ZodTypeAny, {
1448
+ amount: bigint;
1449
+ usd: number;
1450
+ }, {
1451
+ amount: bigint;
1452
+ usd: number;
1453
+ }>;
1454
+ fee: z.ZodObject<{
1455
+ amount: z.ZodBigInt;
1456
+ usd: z.ZodNumber;
1457
+ }, "strip", z.ZodTypeAny, {
1458
+ amount: bigint;
1459
+ usd: number;
1460
+ }, {
1461
+ amount: bigint;
1462
+ usd: number;
1463
+ }>;
1464
+ pnlUsd: z.ZodNullable<z.ZodNumber>;
1465
+ txSignature: z.ZodNullable<z.ZodString>;
1466
+ positionAddress: z.ZodNullable<z.ZodString>;
1467
+ slot: z.ZodBigInt;
1468
+ ts: z.ZodDate;
1469
+ }, "strip", z.ZodTypeAny, {
1470
+ authority: string;
1471
+ pool: string;
1472
+ pnlUsd: number | null;
1473
+ id: string;
1474
+ aToB: boolean;
1475
+ action: "swap" | "limit_order_fill" | "position_increase" | "position_decrease";
1476
+ uiDirection: "buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short";
1477
+ uiPrice: number;
1478
+ baseToken: {
1479
+ amount: bigint;
1480
+ usd: number;
1481
+ };
1482
+ quoteToken: {
1483
+ amount: bigint;
1484
+ usd: number;
1485
+ };
1486
+ fee: {
1487
+ amount: bigint;
1488
+ usd: number;
1489
+ };
1490
+ txSignature: string | null;
1491
+ positionAddress: string | null;
1492
+ slot: bigint;
1493
+ ts: Date;
1494
+ }, {
1495
+ authority: string;
1496
+ pool: string;
1497
+ pnlUsd: number | null;
1498
+ id: string;
1499
+ aToB: boolean;
1500
+ action: "swap" | "limit_order_fill" | "position_increase" | "position_decrease";
1501
+ uiDirection: "buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short";
1502
+ uiPrice: number;
1503
+ baseToken: {
1504
+ amount: bigint;
1505
+ usd: number;
1506
+ };
1507
+ quoteToken: {
1508
+ amount: bigint;
1509
+ usd: number;
1510
+ };
1511
+ fee: {
1512
+ amount: bigint;
1513
+ usd: number;
1514
+ };
1515
+ txSignature: string | null;
1516
+ positionAddress: string | null;
1517
+ slot: bigint;
1518
+ ts: Date;
1519
+ }>;
1409
1520
  declare const StakingTreasury$1: z.ZodObject<{
1410
1521
  address: z.ZodString;
1411
1522
  stakedTokenMint: z.ZodString;
@@ -1750,15 +1861,15 @@ declare const StakingPositionHistoryAction$1: z.ZodObject<{
1750
1861
  }, "strip", z.ZodTypeAny, {
1751
1862
  amount: bigint;
1752
1863
  time: Date;
1753
- position: string;
1754
1864
  action: "stake" | "unstake" | "withdraw" | "claim_rewards" | "compound_rewards";
1755
1865
  txSignature: string;
1866
+ position: string;
1756
1867
  }, {
1757
1868
  amount: bigint;
1758
1869
  time: Date;
1759
- position: string;
1760
1870
  action: "stake" | "unstake" | "withdraw" | "claim_rewards" | "compound_rewards";
1761
1871
  txSignature: string;
1872
+ position: string;
1762
1873
  }>;
1763
1874
  declare const PoolPriceCandle$1: z.ZodObject<{
1764
1875
  time: z.ZodNumber;
@@ -1914,7 +2025,7 @@ declare const OrderBookNotificationMeta: z.ZodObject<{
1914
2025
  }>;
1915
2026
  declare const PoolSwapNotification: z.ZodObject<{
1916
2027
  meta: z.ZodTypeAny;
1917
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2028
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
1918
2029
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
1919
2030
  data: z.ZodObject<{
1920
2031
  id: z.ZodString;
@@ -1945,7 +2056,7 @@ declare const PoolSwapNotification: z.ZodObject<{
1945
2056
  authority: z.ZodNullable<z.ZodString>;
1946
2057
  } | {
1947
2058
  meta: z.ZodNullable<z.ZodUndefined>;
1948
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2059
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
1949
2060
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
1950
2061
  data: z.ZodObject<{
1951
2062
  id: z.ZodString;
@@ -1977,6 +2088,7 @@ declare const PoolSwapNotification: z.ZodObject<{
1977
2088
  }, "strip", z.ZodTypeAny, {
1978
2089
  authority: string | null;
1979
2090
  id: string;
2091
+ action: "create" | "update";
1980
2092
  data: {
1981
2093
  time: Date;
1982
2094
  pool: string;
@@ -1986,12 +2098,12 @@ declare const PoolSwapNotification: z.ZodObject<{
1986
2098
  amountUsd: number;
1987
2099
  aToB: boolean;
1988
2100
  };
1989
- action: "create" | "update";
1990
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2101
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
1991
2102
  meta?: any;
1992
2103
  } | {
1993
2104
  authority: string | null;
1994
2105
  id: string;
2106
+ action: "create" | "update";
1995
2107
  data: {
1996
2108
  time: Date;
1997
2109
  pool: string;
@@ -2001,12 +2113,12 @@ declare const PoolSwapNotification: z.ZodObject<{
2001
2113
  amountUsd: number;
2002
2114
  aToB: boolean;
2003
2115
  };
2004
- action: "create" | "update";
2005
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2116
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2006
2117
  meta?: any;
2007
2118
  }, {
2008
2119
  authority: string | null;
2009
2120
  id: string;
2121
+ action: "create" | "update";
2010
2122
  data: {
2011
2123
  time: Date;
2012
2124
  pool: string;
@@ -2016,12 +2128,12 @@ declare const PoolSwapNotification: z.ZodObject<{
2016
2128
  amountUsd: number;
2017
2129
  aToB: boolean;
2018
2130
  };
2019
- action: "create" | "update";
2020
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2131
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2021
2132
  meta?: any;
2022
2133
  } | {
2023
2134
  authority: string | null;
2024
2135
  id: string;
2136
+ action: "create" | "update";
2025
2137
  data: {
2026
2138
  time: Date;
2027
2139
  pool: string;
@@ -2031,13 +2143,12 @@ declare const PoolSwapNotification: z.ZodObject<{
2031
2143
  amountUsd: number;
2032
2144
  aToB: boolean;
2033
2145
  };
2034
- action: "create" | "update";
2035
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2146
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2036
2147
  meta?: any;
2037
2148
  }>;
2038
2149
  declare const PoolPriceUpdateNotification: z.ZodObject<{
2039
2150
  meta: z.ZodTypeAny;
2040
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2151
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
2041
2152
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2042
2153
  data: z.ZodObject<{
2043
2154
  pool: z.ZodString;
@@ -2059,7 +2170,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
2059
2170
  authority: z.ZodNullable<z.ZodString>;
2060
2171
  } | {
2061
2172
  meta: z.ZodNullable<z.ZodUndefined>;
2062
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2173
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
2063
2174
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2064
2175
  data: z.ZodObject<{
2065
2176
  pool: z.ZodString;
@@ -2082,50 +2193,50 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
2082
2193
  }, "strip", z.ZodTypeAny, {
2083
2194
  authority: string | null;
2084
2195
  id: string;
2196
+ action: "create" | "update";
2085
2197
  data: {
2086
2198
  price: number;
2087
2199
  time: Date;
2088
2200
  sqrtPrice: bigint;
2089
2201
  pool: string;
2090
2202
  };
2091
- action: "create" | "update";
2092
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2203
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2093
2204
  meta?: any;
2094
2205
  } | {
2095
2206
  authority: string | null;
2096
2207
  id: string;
2208
+ action: "create" | "update";
2097
2209
  data: {
2098
2210
  price: number;
2099
2211
  time: Date;
2100
2212
  sqrtPrice: bigint;
2101
2213
  pool: string;
2102
2214
  };
2103
- action: "create" | "update";
2104
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2215
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2105
2216
  meta?: any;
2106
2217
  }, {
2107
2218
  authority: string | null;
2108
2219
  id: string;
2220
+ action: "create" | "update";
2109
2221
  data: {
2110
2222
  price: number;
2111
2223
  time: Date;
2112
2224
  sqrtPrice: bigint;
2113
2225
  pool: string;
2114
2226
  };
2115
- action: "create" | "update";
2116
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2227
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2117
2228
  meta?: any;
2118
2229
  } | {
2119
2230
  authority: string | null;
2120
2231
  id: string;
2232
+ action: "create" | "update";
2121
2233
  data: {
2122
2234
  price: number;
2123
2235
  time: Date;
2124
2236
  sqrtPrice: bigint;
2125
2237
  pool: string;
2126
2238
  };
2127
- action: "create" | "update";
2128
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2239
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2129
2240
  meta?: any;
2130
2241
  }>;
2131
2242
  declare const OrderBookNotification: z.ZodObject<{
@@ -2142,7 +2253,7 @@ declare const OrderBookNotification: z.ZodObject<{
2142
2253
  priceStep: number;
2143
2254
  inverted: boolean;
2144
2255
  }>;
2145
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2256
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
2146
2257
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2147
2258
  data: z.ZodObject<{
2148
2259
  entries: z.ZodArray<z.ZodObject<{
@@ -2213,7 +2324,7 @@ declare const OrderBookNotification: z.ZodObject<{
2213
2324
  authority: z.ZodNullable<z.ZodString>;
2214
2325
  } | {
2215
2326
  meta: z.ZodNullable<z.ZodUndefined>;
2216
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2327
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
2217
2328
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2218
2329
  data: z.ZodObject<{
2219
2330
  entries: z.ZodArray<z.ZodObject<{
@@ -2285,6 +2396,7 @@ declare const OrderBookNotification: z.ZodObject<{
2285
2396
  }, "strip", z.ZodTypeAny, {
2286
2397
  authority: string | null;
2287
2398
  id: string;
2399
+ action: "create" | "update";
2288
2400
  data: {
2289
2401
  entries: {
2290
2402
  price: number;
@@ -2305,11 +2417,11 @@ declare const OrderBookNotification: z.ZodObject<{
2305
2417
  priceStep: number;
2306
2418
  inverted: boolean;
2307
2419
  } | null | undefined;
2308
- action: "create" | "update";
2309
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2420
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2310
2421
  } | {
2311
2422
  authority: string | null;
2312
2423
  id: string;
2424
+ action: "create" | "update";
2313
2425
  data: {
2314
2426
  entries: {
2315
2427
  price: number;
@@ -2330,11 +2442,11 @@ declare const OrderBookNotification: z.ZodObject<{
2330
2442
  priceStep: number;
2331
2443
  inverted: boolean;
2332
2444
  } | null | undefined;
2333
- action: "create" | "update";
2334
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2445
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2335
2446
  }, {
2336
2447
  authority: string | null;
2337
2448
  id: string;
2449
+ action: "create" | "update";
2338
2450
  data: {
2339
2451
  entries: {
2340
2452
  price: number;
@@ -2355,11 +2467,11 @@ declare const OrderBookNotification: z.ZodObject<{
2355
2467
  priceStep: number;
2356
2468
  inverted: boolean;
2357
2469
  } | null | undefined;
2358
- action: "create" | "update";
2359
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2470
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2360
2471
  } | {
2361
2472
  authority: string | null;
2362
2473
  id: string;
2474
+ action: "create" | "update";
2363
2475
  data: {
2364
2476
  entries: {
2365
2477
  price: number;
@@ -2380,12 +2492,11 @@ declare const OrderBookNotification: z.ZodObject<{
2380
2492
  priceStep: number;
2381
2493
  inverted: boolean;
2382
2494
  } | null | undefined;
2383
- action: "create" | "update";
2384
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2495
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2385
2496
  }>;
2386
2497
  declare const TunaPositionNotification: z.ZodObject<{
2387
2498
  meta: z.ZodTypeAny;
2388
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2499
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
2389
2500
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2390
2501
  data: z.ZodObject<{
2391
2502
  address: z.ZodString;
@@ -2776,7 +2887,7 @@ declare const TunaPositionNotification: z.ZodObject<{
2776
2887
  authority: z.ZodNullable<z.ZodString>;
2777
2888
  } | {
2778
2889
  meta: z.ZodNullable<z.ZodUndefined>;
2779
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2890
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
2780
2891
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2781
2892
  data: z.ZodObject<{
2782
2893
  address: z.ZodString;
@@ -3168,6 +3279,7 @@ declare const TunaPositionNotification: z.ZodObject<{
3168
3279
  }, "strip", z.ZodTypeAny, {
3169
3280
  authority: string | null;
3170
3281
  id: string;
3282
+ action: "create" | "update";
3171
3283
  data: {
3172
3284
  address: string;
3173
3285
  liquidity: bigint;
@@ -3260,12 +3372,12 @@ declare const TunaPositionNotification: z.ZodObject<{
3260
3372
  updatedAtSlot: bigint;
3261
3373
  closedAt: Date | null;
3262
3374
  };
3263
- action: "create" | "update";
3264
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3375
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
3265
3376
  meta?: any;
3266
3377
  } | {
3267
3378
  authority: string | null;
3268
3379
  id: string;
3380
+ action: "create" | "update";
3269
3381
  data: {
3270
3382
  address: string;
3271
3383
  liquidity: bigint;
@@ -3358,12 +3470,12 @@ declare const TunaPositionNotification: z.ZodObject<{
3358
3470
  updatedAtSlot: bigint;
3359
3471
  closedAt: Date | null;
3360
3472
  };
3361
- action: "create" | "update";
3362
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3473
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
3363
3474
  meta?: any;
3364
3475
  }, {
3365
3476
  authority: string | null;
3366
3477
  id: string;
3478
+ action: "create" | "update";
3367
3479
  data: {
3368
3480
  address: string;
3369
3481
  liquidity: bigint;
@@ -3456,12 +3568,12 @@ declare const TunaPositionNotification: z.ZodObject<{
3456
3568
  updatedAtSlot: bigint;
3457
3569
  closedAt: Date | null;
3458
3570
  };
3459
- action: "create" | "update";
3460
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3571
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
3461
3572
  meta?: any;
3462
3573
  } | {
3463
3574
  authority: string | null;
3464
3575
  id: string;
3576
+ action: "create" | "update";
3465
3577
  data: {
3466
3578
  address: string;
3467
3579
  liquidity: bigint;
@@ -3554,13 +3666,12 @@ declare const TunaPositionNotification: z.ZodObject<{
3554
3666
  updatedAtSlot: bigint;
3555
3667
  closedAt: Date | null;
3556
3668
  };
3557
- action: "create" | "update";
3558
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3669
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
3559
3670
  meta?: any;
3560
3671
  }>;
3561
3672
  declare const TunaSpotPositionNotification: z.ZodObject<{
3562
3673
  meta: z.ZodTypeAny;
3563
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
3674
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
3564
3675
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
3565
3676
  data: z.ZodObject<{
3566
3677
  address: z.ZodString;
@@ -3711,7 +3822,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3711
3822
  authority: z.ZodNullable<z.ZodString>;
3712
3823
  } | {
3713
3824
  meta: z.ZodNullable<z.ZodUndefined>;
3714
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
3825
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
3715
3826
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
3716
3827
  data: z.ZodObject<{
3717
3828
  address: z.ZodString;
@@ -3863,6 +3974,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3863
3974
  }, "strip", z.ZodTypeAny, {
3864
3975
  authority: string | null;
3865
3976
  id: string;
3977
+ action: "create" | "update";
3866
3978
  data: {
3867
3979
  total: {
3868
3980
  amount: bigint;
@@ -3902,12 +4014,12 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3902
4014
  };
3903
4015
  openedAtSlot: bigint;
3904
4016
  };
3905
- action: "create" | "update";
3906
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4017
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
3907
4018
  meta?: any;
3908
4019
  } | {
3909
4020
  authority: string | null;
3910
4021
  id: string;
4022
+ action: "create" | "update";
3911
4023
  data: {
3912
4024
  total: {
3913
4025
  amount: bigint;
@@ -3947,12 +4059,12 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3947
4059
  };
3948
4060
  openedAtSlot: bigint;
3949
4061
  };
3950
- action: "create" | "update";
3951
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4062
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
3952
4063
  meta?: any;
3953
4064
  }, {
3954
4065
  authority: string | null;
3955
4066
  id: string;
4067
+ action: "create" | "update";
3956
4068
  data: {
3957
4069
  total: {
3958
4070
  amount: bigint;
@@ -3992,12 +4104,12 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3992
4104
  };
3993
4105
  openedAtSlot: bigint;
3994
4106
  };
3995
- action: "create" | "update";
3996
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4107
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
3997
4108
  meta?: any;
3998
4109
  } | {
3999
4110
  authority: string | null;
4000
4111
  id: string;
4112
+ action: "create" | "update";
4001
4113
  data: {
4002
4114
  total: {
4003
4115
  amount: bigint;
@@ -4037,13 +4149,12 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
4037
4149
  };
4038
4150
  openedAtSlot: bigint;
4039
4151
  };
4040
- action: "create" | "update";
4041
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4152
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4042
4153
  meta?: any;
4043
4154
  }>;
4044
4155
  declare const LendingPositionNotification: z.ZodObject<{
4045
4156
  meta: z.ZodTypeAny;
4046
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4157
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
4047
4158
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4048
4159
  data: z.ZodObject<{
4049
4160
  address: z.ZodString;
@@ -4104,7 +4215,7 @@ declare const LendingPositionNotification: z.ZodObject<{
4104
4215
  authority: z.ZodNullable<z.ZodString>;
4105
4216
  } | {
4106
4217
  meta: z.ZodNullable<z.ZodUndefined>;
4107
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4218
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
4108
4219
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4109
4220
  data: z.ZodObject<{
4110
4221
  address: z.ZodString;
@@ -4166,6 +4277,7 @@ declare const LendingPositionNotification: z.ZodObject<{
4166
4277
  }, "strip", z.ZodTypeAny, {
4167
4278
  authority: string | null;
4168
4279
  id: string;
4280
+ action: "create" | "update";
4169
4281
  data: {
4170
4282
  mint: string;
4171
4283
  address: string;
@@ -4181,12 +4293,12 @@ declare const LendingPositionNotification: z.ZodObject<{
4181
4293
  usd: number;
4182
4294
  };
4183
4295
  };
4184
- action: "create" | "update";
4185
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4296
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4186
4297
  meta?: any;
4187
4298
  } | {
4188
4299
  authority: string | null;
4189
4300
  id: string;
4301
+ action: "create" | "update";
4190
4302
  data: {
4191
4303
  mint: string;
4192
4304
  address: string;
@@ -4202,12 +4314,12 @@ declare const LendingPositionNotification: z.ZodObject<{
4202
4314
  usd: number;
4203
4315
  };
4204
4316
  };
4205
- action: "create" | "update";
4206
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4317
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4207
4318
  meta?: any;
4208
4319
  }, {
4209
4320
  authority: string | null;
4210
4321
  id: string;
4322
+ action: "create" | "update";
4211
4323
  data: {
4212
4324
  mint: string;
4213
4325
  address: string;
@@ -4223,12 +4335,12 @@ declare const LendingPositionNotification: z.ZodObject<{
4223
4335
  usd: number;
4224
4336
  };
4225
4337
  };
4226
- action: "create" | "update";
4227
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4338
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4228
4339
  meta?: any;
4229
4340
  } | {
4230
4341
  authority: string | null;
4231
4342
  id: string;
4343
+ action: "create" | "update";
4232
4344
  data: {
4233
4345
  mint: string;
4234
4346
  address: string;
@@ -4244,13 +4356,12 @@ declare const LendingPositionNotification: z.ZodObject<{
4244
4356
  usd: number;
4245
4357
  };
4246
4358
  };
4247
- action: "create" | "update";
4248
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4359
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4249
4360
  meta?: any;
4250
4361
  }>;
4251
4362
  declare const LimitOrderNotification: z.ZodObject<{
4252
4363
  meta: z.ZodTypeAny;
4253
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4364
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
4254
4365
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4255
4366
  data: z.ZodObject<{
4256
4367
  address: z.ZodString;
@@ -4329,7 +4440,7 @@ declare const LimitOrderNotification: z.ZodObject<{
4329
4440
  authority: z.ZodNullable<z.ZodString>;
4330
4441
  } | {
4331
4442
  meta: z.ZodNullable<z.ZodUndefined>;
4332
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4443
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
4333
4444
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4334
4445
  data: z.ZodObject<{
4335
4446
  address: z.ZodString;
@@ -4409,6 +4520,7 @@ declare const LimitOrderNotification: z.ZodObject<{
4409
4520
  }, "strip", z.ZodTypeAny, {
4410
4521
  authority: string | null;
4411
4522
  id: string;
4523
+ action: "create" | "update";
4412
4524
  data: {
4413
4525
  mint: string;
4414
4526
  address: string;
@@ -4430,12 +4542,12 @@ declare const LimitOrderNotification: z.ZodObject<{
4430
4542
  openTxSignature: string;
4431
4543
  closeTxSignature: string | null;
4432
4544
  };
4433
- action: "create" | "update";
4434
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4545
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4435
4546
  meta?: any;
4436
4547
  } | {
4437
4548
  authority: string | null;
4438
4549
  id: string;
4550
+ action: "create" | "update";
4439
4551
  data: {
4440
4552
  mint: string;
4441
4553
  address: string;
@@ -4457,12 +4569,12 @@ declare const LimitOrderNotification: z.ZodObject<{
4457
4569
  openTxSignature: string;
4458
4570
  closeTxSignature: string | null;
4459
4571
  };
4460
- action: "create" | "update";
4461
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4572
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4462
4573
  meta?: any;
4463
4574
  }, {
4464
4575
  authority: string | null;
4465
4576
  id: string;
4577
+ action: "create" | "update";
4466
4578
  data: {
4467
4579
  mint: string;
4468
4580
  address: string;
@@ -4484,12 +4596,12 @@ declare const LimitOrderNotification: z.ZodObject<{
4484
4596
  openTxSignature: string;
4485
4597
  closeTxSignature: string | null;
4486
4598
  };
4487
- action: "create" | "update";
4488
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4599
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4489
4600
  meta?: any;
4490
4601
  } | {
4491
4602
  authority: string | null;
4492
4603
  id: string;
4604
+ action: "create" | "update";
4493
4605
  data: {
4494
4606
  mint: string;
4495
4607
  address: string;
@@ -4511,13 +4623,341 @@ declare const LimitOrderNotification: z.ZodObject<{
4511
4623
  openTxSignature: string;
4512
4624
  closeTxSignature: string | null;
4513
4625
  };
4626
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4627
+ meta?: any;
4628
+ }>;
4629
+ declare const TradeHistoryEntryNotification: z.ZodObject<{
4630
+ meta: z.ZodTypeAny;
4631
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
4632
+ action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4633
+ data: z.ZodObject<{
4634
+ id: z.ZodString;
4635
+ pool: z.ZodString;
4636
+ authority: z.ZodString;
4637
+ aToB: z.ZodBoolean;
4638
+ action: z.ZodEnum<["swap", ...("swap" | "limit_order_fill" | "position_increase" | "position_decrease")[]]>;
4639
+ uiDirection: z.ZodEnum<["buy", ...("buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short")[]]>;
4640
+ uiPrice: z.ZodNumber;
4641
+ baseToken: z.ZodObject<{
4642
+ amount: z.ZodBigInt;
4643
+ usd: z.ZodNumber;
4644
+ }, "strip", z.ZodTypeAny, {
4645
+ amount: bigint;
4646
+ usd: number;
4647
+ }, {
4648
+ amount: bigint;
4649
+ usd: number;
4650
+ }>;
4651
+ quoteToken: z.ZodObject<{
4652
+ amount: z.ZodBigInt;
4653
+ usd: z.ZodNumber;
4654
+ }, "strip", z.ZodTypeAny, {
4655
+ amount: bigint;
4656
+ usd: number;
4657
+ }, {
4658
+ amount: bigint;
4659
+ usd: number;
4660
+ }>;
4661
+ fee: z.ZodObject<{
4662
+ amount: z.ZodBigInt;
4663
+ usd: z.ZodNumber;
4664
+ }, "strip", z.ZodTypeAny, {
4665
+ amount: bigint;
4666
+ usd: number;
4667
+ }, {
4668
+ amount: bigint;
4669
+ usd: number;
4670
+ }>;
4671
+ pnlUsd: z.ZodNullable<z.ZodNumber>;
4672
+ txSignature: z.ZodNullable<z.ZodString>;
4673
+ positionAddress: z.ZodNullable<z.ZodString>;
4674
+ slot: z.ZodBigInt;
4675
+ ts: z.ZodDate;
4676
+ }, "strip", z.ZodTypeAny, {
4677
+ authority: string;
4678
+ pool: string;
4679
+ pnlUsd: number | null;
4680
+ id: string;
4681
+ aToB: boolean;
4682
+ action: "swap" | "limit_order_fill" | "position_increase" | "position_decrease";
4683
+ uiDirection: "buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short";
4684
+ uiPrice: number;
4685
+ baseToken: {
4686
+ amount: bigint;
4687
+ usd: number;
4688
+ };
4689
+ quoteToken: {
4690
+ amount: bigint;
4691
+ usd: number;
4692
+ };
4693
+ fee: {
4694
+ amount: bigint;
4695
+ usd: number;
4696
+ };
4697
+ txSignature: string | null;
4698
+ positionAddress: string | null;
4699
+ slot: bigint;
4700
+ ts: Date;
4701
+ }, {
4702
+ authority: string;
4703
+ pool: string;
4704
+ pnlUsd: number | null;
4705
+ id: string;
4706
+ aToB: boolean;
4707
+ action: "swap" | "limit_order_fill" | "position_increase" | "position_decrease";
4708
+ uiDirection: "buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short";
4709
+ uiPrice: number;
4710
+ baseToken: {
4711
+ amount: bigint;
4712
+ usd: number;
4713
+ };
4714
+ quoteToken: {
4715
+ amount: bigint;
4716
+ usd: number;
4717
+ };
4718
+ fee: {
4719
+ amount: bigint;
4720
+ usd: number;
4721
+ };
4722
+ txSignature: string | null;
4723
+ positionAddress: string | null;
4724
+ slot: bigint;
4725
+ ts: Date;
4726
+ }>;
4727
+ id: z.ZodString;
4728
+ authority: z.ZodNullable<z.ZodString>;
4729
+ } | {
4730
+ meta: z.ZodNullable<z.ZodUndefined>;
4731
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
4732
+ action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4733
+ data: z.ZodObject<{
4734
+ id: z.ZodString;
4735
+ pool: z.ZodString;
4736
+ authority: z.ZodString;
4737
+ aToB: z.ZodBoolean;
4738
+ action: z.ZodEnum<["swap", ...("swap" | "limit_order_fill" | "position_increase" | "position_decrease")[]]>;
4739
+ uiDirection: z.ZodEnum<["buy", ...("buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short")[]]>;
4740
+ uiPrice: z.ZodNumber;
4741
+ baseToken: z.ZodObject<{
4742
+ amount: z.ZodBigInt;
4743
+ usd: z.ZodNumber;
4744
+ }, "strip", z.ZodTypeAny, {
4745
+ amount: bigint;
4746
+ usd: number;
4747
+ }, {
4748
+ amount: bigint;
4749
+ usd: number;
4750
+ }>;
4751
+ quoteToken: z.ZodObject<{
4752
+ amount: z.ZodBigInt;
4753
+ usd: z.ZodNumber;
4754
+ }, "strip", z.ZodTypeAny, {
4755
+ amount: bigint;
4756
+ usd: number;
4757
+ }, {
4758
+ amount: bigint;
4759
+ usd: number;
4760
+ }>;
4761
+ fee: z.ZodObject<{
4762
+ amount: z.ZodBigInt;
4763
+ usd: z.ZodNumber;
4764
+ }, "strip", z.ZodTypeAny, {
4765
+ amount: bigint;
4766
+ usd: number;
4767
+ }, {
4768
+ amount: bigint;
4769
+ usd: number;
4770
+ }>;
4771
+ pnlUsd: z.ZodNullable<z.ZodNumber>;
4772
+ txSignature: z.ZodNullable<z.ZodString>;
4773
+ positionAddress: z.ZodNullable<z.ZodString>;
4774
+ slot: z.ZodBigInt;
4775
+ ts: z.ZodDate;
4776
+ }, "strip", z.ZodTypeAny, {
4777
+ authority: string;
4778
+ pool: string;
4779
+ pnlUsd: number | null;
4780
+ id: string;
4781
+ aToB: boolean;
4782
+ action: "swap" | "limit_order_fill" | "position_increase" | "position_decrease";
4783
+ uiDirection: "buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short";
4784
+ uiPrice: number;
4785
+ baseToken: {
4786
+ amount: bigint;
4787
+ usd: number;
4788
+ };
4789
+ quoteToken: {
4790
+ amount: bigint;
4791
+ usd: number;
4792
+ };
4793
+ fee: {
4794
+ amount: bigint;
4795
+ usd: number;
4796
+ };
4797
+ txSignature: string | null;
4798
+ positionAddress: string | null;
4799
+ slot: bigint;
4800
+ ts: Date;
4801
+ }, {
4802
+ authority: string;
4803
+ pool: string;
4804
+ pnlUsd: number | null;
4805
+ id: string;
4806
+ aToB: boolean;
4807
+ action: "swap" | "limit_order_fill" | "position_increase" | "position_decrease";
4808
+ uiDirection: "buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short";
4809
+ uiPrice: number;
4810
+ baseToken: {
4811
+ amount: bigint;
4812
+ usd: number;
4813
+ };
4814
+ quoteToken: {
4815
+ amount: bigint;
4816
+ usd: number;
4817
+ };
4818
+ fee: {
4819
+ amount: bigint;
4820
+ usd: number;
4821
+ };
4822
+ txSignature: string | null;
4823
+ positionAddress: string | null;
4824
+ slot: bigint;
4825
+ ts: Date;
4826
+ }>;
4827
+ id: z.ZodString;
4828
+ authority: z.ZodNullable<z.ZodString>;
4829
+ }, "strip", z.ZodTypeAny, {
4830
+ authority: string | null;
4831
+ id: string;
4832
+ action: "create" | "update";
4833
+ data: {
4834
+ authority: string;
4835
+ pool: string;
4836
+ pnlUsd: number | null;
4837
+ id: string;
4838
+ aToB: boolean;
4839
+ action: "swap" | "limit_order_fill" | "position_increase" | "position_decrease";
4840
+ uiDirection: "buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short";
4841
+ uiPrice: number;
4842
+ baseToken: {
4843
+ amount: bigint;
4844
+ usd: number;
4845
+ };
4846
+ quoteToken: {
4847
+ amount: bigint;
4848
+ usd: number;
4849
+ };
4850
+ fee: {
4851
+ amount: bigint;
4852
+ usd: number;
4853
+ };
4854
+ txSignature: string | null;
4855
+ positionAddress: string | null;
4856
+ slot: bigint;
4857
+ ts: Date;
4858
+ };
4859
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4860
+ meta?: any;
4861
+ } | {
4862
+ authority: string | null;
4863
+ id: string;
4864
+ action: "create" | "update";
4865
+ data: {
4866
+ authority: string;
4867
+ pool: string;
4868
+ pnlUsd: number | null;
4869
+ id: string;
4870
+ aToB: boolean;
4871
+ action: "swap" | "limit_order_fill" | "position_increase" | "position_decrease";
4872
+ uiDirection: "buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short";
4873
+ uiPrice: number;
4874
+ baseToken: {
4875
+ amount: bigint;
4876
+ usd: number;
4877
+ };
4878
+ quoteToken: {
4879
+ amount: bigint;
4880
+ usd: number;
4881
+ };
4882
+ fee: {
4883
+ amount: bigint;
4884
+ usd: number;
4885
+ };
4886
+ txSignature: string | null;
4887
+ positionAddress: string | null;
4888
+ slot: bigint;
4889
+ ts: Date;
4890
+ };
4891
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4892
+ meta?: any;
4893
+ }, {
4894
+ authority: string | null;
4895
+ id: string;
4896
+ action: "create" | "update";
4897
+ data: {
4898
+ authority: string;
4899
+ pool: string;
4900
+ pnlUsd: number | null;
4901
+ id: string;
4902
+ aToB: boolean;
4903
+ action: "swap" | "limit_order_fill" | "position_increase" | "position_decrease";
4904
+ uiDirection: "buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short";
4905
+ uiPrice: number;
4906
+ baseToken: {
4907
+ amount: bigint;
4908
+ usd: number;
4909
+ };
4910
+ quoteToken: {
4911
+ amount: bigint;
4912
+ usd: number;
4913
+ };
4914
+ fee: {
4915
+ amount: bigint;
4916
+ usd: number;
4917
+ };
4918
+ txSignature: string | null;
4919
+ positionAddress: string | null;
4920
+ slot: bigint;
4921
+ ts: Date;
4922
+ };
4923
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4924
+ meta?: any;
4925
+ } | {
4926
+ authority: string | null;
4927
+ id: string;
4514
4928
  action: "create" | "update";
4515
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4929
+ data: {
4930
+ authority: string;
4931
+ pool: string;
4932
+ pnlUsd: number | null;
4933
+ id: string;
4934
+ aToB: boolean;
4935
+ action: "swap" | "limit_order_fill" | "position_increase" | "position_decrease";
4936
+ uiDirection: "buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short";
4937
+ uiPrice: number;
4938
+ baseToken: {
4939
+ amount: bigint;
4940
+ usd: number;
4941
+ };
4942
+ quoteToken: {
4943
+ amount: bigint;
4944
+ usd: number;
4945
+ };
4946
+ fee: {
4947
+ amount: bigint;
4948
+ usd: number;
4949
+ };
4950
+ txSignature: string | null;
4951
+ positionAddress: string | null;
4952
+ slot: bigint;
4953
+ ts: Date;
4954
+ };
4955
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4516
4956
  meta?: any;
4517
4957
  }>;
4518
4958
  declare const StakingPositionNotification: z.ZodObject<{
4519
4959
  meta: z.ZodTypeAny;
4520
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4960
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
4521
4961
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4522
4962
  data: z.ZodObject<{
4523
4963
  address: z.ZodString;
@@ -4694,7 +5134,7 @@ declare const StakingPositionNotification: z.ZodObject<{
4694
5134
  authority: z.ZodNullable<z.ZodString>;
4695
5135
  } | {
4696
5136
  meta: z.ZodNullable<z.ZodUndefined>;
4697
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
5137
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
4698
5138
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4699
5139
  data: z.ZodObject<{
4700
5140
  address: z.ZodString;
@@ -4872,6 +5312,7 @@ declare const StakingPositionNotification: z.ZodObject<{
4872
5312
  }, "strip", z.ZodTypeAny, {
4873
5313
  authority: string | null;
4874
5314
  id: string;
5315
+ action: "create" | "update";
4875
5316
  data: {
4876
5317
  address: string;
4877
5318
  owner: string;
@@ -4909,12 +5350,12 @@ declare const StakingPositionNotification: z.ZodObject<{
4909
5350
  lastUnstakedAt: Date | null;
4910
5351
  withdrawAvailableAt: Date | null;
4911
5352
  };
4912
- action: "create" | "update";
4913
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
5353
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4914
5354
  meta?: any;
4915
5355
  } | {
4916
5356
  authority: string | null;
4917
5357
  id: string;
5358
+ action: "create" | "update";
4918
5359
  data: {
4919
5360
  address: string;
4920
5361
  owner: string;
@@ -4952,12 +5393,12 @@ declare const StakingPositionNotification: z.ZodObject<{
4952
5393
  lastUnstakedAt: Date | null;
4953
5394
  withdrawAvailableAt: Date | null;
4954
5395
  };
4955
- action: "create" | "update";
4956
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
5396
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4957
5397
  meta?: any;
4958
5398
  }, {
4959
5399
  authority: string | null;
4960
5400
  id: string;
5401
+ action: "create" | "update";
4961
5402
  data: {
4962
5403
  address: string;
4963
5404
  owner: string;
@@ -4995,12 +5436,12 @@ declare const StakingPositionNotification: z.ZodObject<{
4995
5436
  lastUnstakedAt: Date | null;
4996
5437
  withdrawAvailableAt: Date | null;
4997
5438
  };
4998
- action: "create" | "update";
4999
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
5439
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
5000
5440
  meta?: any;
5001
5441
  } | {
5002
5442
  authority: string | null;
5003
5443
  id: string;
5444
+ action: "create" | "update";
5004
5445
  data: {
5005
5446
  address: string;
5006
5447
  owner: string;
@@ -5038,8 +5479,7 @@ declare const StakingPositionNotification: z.ZodObject<{
5038
5479
  lastUnstakedAt: Date | null;
5039
5480
  withdrawAvailableAt: Date | null;
5040
5481
  };
5041
- action: "create" | "update";
5042
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
5482
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
5043
5483
  meta?: any;
5044
5484
  }>;
5045
5485
 
@@ -5061,6 +5501,11 @@ declare const schemas_PoolSubscriptionTopicSchema: typeof PoolSubscriptionTopicS
5061
5501
  declare const schemas_PoolSwapNotification: typeof PoolSwapNotification;
5062
5502
  declare const schemas_StakingPositionHistoryActionTypeSchema: typeof StakingPositionHistoryActionTypeSchema;
5063
5503
  declare const schemas_StakingPositionNotification: typeof StakingPositionNotification;
5504
+ declare const schemas_TradeHistoryAction: typeof TradeHistoryAction;
5505
+ declare const schemas_TradeHistoryActionSchema: typeof TradeHistoryActionSchema;
5506
+ declare const schemas_TradeHistoryEntryNotification: typeof TradeHistoryEntryNotification;
5507
+ declare const schemas_TradeHistoryUIDirection: typeof TradeHistoryUIDirection;
5508
+ declare const schemas_TradeHistoryUIDirectionSchema: typeof TradeHistoryUIDirectionSchema;
5064
5509
  declare const schemas_TunaPositionNotification: typeof TunaPositionNotification;
5065
5510
  declare const schemas_TunaPositionState: typeof TunaPositionState;
5066
5511
  declare const schemas_TunaPositionStateSchema: typeof TunaPositionStateSchema;
@@ -5071,13 +5516,15 @@ declare const schemas_UpdateStreamSubscriptionResult: typeof UpdateStreamSubscri
5071
5516
  declare const schemas_WalletSubscriptionTopic: typeof WalletSubscriptionTopic;
5072
5517
  declare const schemas_WalletSubscriptionTopicSchema: typeof WalletSubscriptionTopicSchema;
5073
5518
  declare namespace schemas {
5074
- export { FeesStatsGroup$1 as FeesStatsGroup, 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, PaginationMeta$1 as PaginationMeta, 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, StakingLeaderboardPage$1 as StakingLeaderboardPage, StakingLeaderboardPosition$1 as StakingLeaderboardPosition, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, 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, TunaSpotPosition$1 as TunaSpotPosition, schemas_TunaSpotPositionNotification as TunaSpotPositionNotification, schemas_TunaSpotPositionState as TunaSpotPositionState, schemas_TunaSpotPositionStateSchema as TunaSpotPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
5519
+ export { FeesStatsGroup$1 as FeesStatsGroup, 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, PaginationMeta$1 as PaginationMeta, 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, StakingLeaderboardPage$1 as StakingLeaderboardPage, StakingLeaderboardPosition$1 as StakingLeaderboardPosition, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, StakingTreasury$1 as StakingTreasury, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, schemas_TradeHistoryAction as TradeHistoryAction, schemas_TradeHistoryActionSchema as TradeHistoryActionSchema, TradeHistoryEntry$1 as TradeHistoryEntry, schemas_TradeHistoryEntryNotification as TradeHistoryEntryNotification, schemas_TradeHistoryUIDirection as TradeHistoryUIDirection, schemas_TradeHistoryUIDirectionSchema as TradeHistoryUIDirectionSchema, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, TunaSpotPosition$1 as TunaSpotPosition, schemas_TunaSpotPositionNotification as TunaSpotPositionNotification, schemas_TunaSpotPositionState as TunaSpotPositionState, schemas_TunaSpotPositionStateSchema as TunaSpotPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
5075
5520
  }
5076
5521
 
5077
5522
  type PoolProviderType = z.infer<typeof PoolProviderSchema>;
5078
5523
  type TunaPositionStateType = z.infer<typeof TunaPositionStateSchema>;
5079
5524
  type TunaSpotPositionStateType = z.infer<typeof TunaSpotPositionStateSchema>;
5080
5525
  type LimitOrderStateType = z.infer<typeof LimitOrderStateSchema>;
5526
+ type TradeHistoryActionType = z.infer<typeof TradeHistoryActionSchema>;
5527
+ type TradeHistoryUIDirectionType = z.infer<typeof TradeHistoryUIDirectionSchema>;
5081
5528
  type StakingPositionHistoryActionType = z.infer<typeof StakingPositionHistoryActionTypeSchema>;
5082
5529
  type PoolSubscriptionTopicType = z.infer<typeof PoolSubscriptionTopicSchema>;
5083
5530
  type WalletSubscriptionTopicType = z.infer<typeof WalletSubscriptionTopicSchema>;
@@ -5097,6 +5544,7 @@ type LendingPosition = z.infer<typeof LendingPosition$1>;
5097
5544
  type TunaPosition = z.infer<typeof TunaPosition$1>;
5098
5545
  type TunaSpotPosition = z.infer<typeof TunaSpotPosition$1>;
5099
5546
  type LimitOrder = z.infer<typeof LimitOrder$1>;
5547
+ type TradeHistoryEntry = z.infer<typeof TradeHistoryEntry$1>;
5100
5548
  type StakingPosition = z.infer<typeof StakingPosition$1>;
5101
5549
  type StakingTreasury = z.infer<typeof StakingTreasury$1>;
5102
5550
  type StakingLeaderboardPage = z.infer<typeof StakingLeaderboardPage$1>;
@@ -5129,6 +5577,14 @@ type GetUserLimitOrdersOptions = {
5129
5577
  limit?: number;
5130
5578
  desc?: boolean;
5131
5579
  };
5580
+ type GetUserTradeHistoryOptions = {
5581
+ pool?: string[];
5582
+ action?: TradeHistoryActionType[];
5583
+ uiDirection?: TradeHistoryUIDirectionType[];
5584
+ cursor?: string;
5585
+ limit?: number;
5586
+ desc?: boolean;
5587
+ };
5132
5588
  type DurationInMs = number;
5133
5589
  declare enum ProviderFilter {
5134
5590
  ORCA = "orca",
@@ -5200,6 +5656,7 @@ declare class TunaApiClient {
5200
5656
  getUserTunaSpotPositionByAddress(userAddress: string, tunaSpotPositionAddress: string): Promise<TunaSpotPosition>;
5201
5657
  getUserLimitOrders(userAddress: string, options?: GetUserLimitOrdersOptions): Promise<LimitOrder[]>;
5202
5658
  getUserLimitOrderByAddress(userAddress: string, limitOrderAddress: string): Promise<LimitOrder>;
5659
+ getUserTradeHistory(userAddress: string, options?: GetUserTradeHistoryOptions): Promise<TradeHistoryEntry[]>;
5203
5660
  getUserStakingPosition(userAddress: string): Promise<StakingPosition>;
5204
5661
  getUserStakingPositionHistory(userAddress: string): Promise<StakingPositionHistoryAction[]>;
5205
5662
  getFeesStats(from: Date, to: Date, interval: string): Promise<FeesStatsGroup[]>;
@@ -5210,4 +5667,4 @@ declare class TunaApiClient {
5210
5667
  private appendUrlSearchParams;
5211
5668
  }
5212
5669
 
5213
- export { type DurationInMs, type FeesStatsGroup, type GetPoolPriceCandlesOptions, type GetUserLimitOrdersOptions, type LendingPosition, type LimitOrder, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type OrderBook, type OrderBookEntry, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type StakingLeaderboardPage, type StakingLeaderboardPosition, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingRevenueStatsGroup, type StakingTreasury, type SubscriptionPayload, type Tick, type TokenOraclePrice, TunaApiClient, type TunaApiClientConfig, type TunaPosition, TunaPositionState, type TunaPositionStateType, type TunaSpotPosition, type TunaSpotPositionStateType, type Vault, type VaultHistoricalStats, type WalletSubscriptionTopicType, schemas };
5670
+ export { type DurationInMs, type FeesStatsGroup, type GetPoolPriceCandlesOptions, type GetUserLimitOrdersOptions, type GetUserTradeHistoryOptions, type LendingPosition, type LimitOrder, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type OrderBook, type OrderBookEntry, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type StakingLeaderboardPage, type StakingLeaderboardPosition, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingRevenueStatsGroup, type StakingTreasury, type SubscriptionPayload, type Tick, type TokenOraclePrice, type TradeHistoryActionType, type TradeHistoryEntry, type TradeHistoryUIDirectionType, TunaApiClient, type TunaApiClientConfig, type TunaPosition, TunaPositionState, type TunaPositionStateType, type TunaSpotPosition, type TunaSpotPositionStateType, type Vault, type VaultHistoricalStats, type WalletSubscriptionTopicType, schemas };