@crypticdot/defituna-api 1.3.9 → 1.4.1

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
@@ -10,6 +10,7 @@ declare const NotificationEntity: {
10
10
  readonly STAKING_POSITION: "staking_position";
11
11
  readonly FUSION_LIMIT_ORDER: "fusion_limit_order";
12
12
  readonly TRADE_HISTORY_ENTRY: "trade_history_entry";
13
+ readonly ORDER_HISTORY_ENTRY: "order_history_entry";
13
14
  };
14
15
  declare const NotificationAction: {
15
16
  readonly CREATE: "create";
@@ -53,6 +54,27 @@ declare const TradeHistoryUIDirection: {
53
54
  readonly OPEN_SHORT: "open_short";
54
55
  readonly CLOSE_SHORT: "close_short";
55
56
  };
57
+ declare const OrderHistoryOrderType: {
58
+ readonly MARKET: "market";
59
+ readonly LIMIT: "limit";
60
+ readonly TAKE_PROFIT_MARKET: "take_profit_market";
61
+ readonly STOP_LOSS_MARKET: "stop_loss_market";
62
+ readonly LIQUIDATION_MARKET: "liquidation_market";
63
+ };
64
+ declare const OrderHistoryStatus: {
65
+ readonly OPEN: "open";
66
+ readonly PARTIALLY_FILLED: "partially_filled";
67
+ readonly FILLED: "filled";
68
+ readonly CANCELLED: "cancelled";
69
+ readonly CLAIMED: "claimed";
70
+ readonly REJECTED: "rejected";
71
+ };
72
+ declare const OrderHistoryUIDirection: {
73
+ readonly BUY: "buy";
74
+ readonly SELL: "sell";
75
+ readonly LONG: "long";
76
+ readonly SHORT: "short";
77
+ };
56
78
  declare const StakingPositionHistoryActionType$1: {
57
79
  readonly STAKE: "stake";
58
80
  readonly UNSTAKE: "unstake";
@@ -72,8 +94,9 @@ declare const WalletSubscriptionTopic: {
72
94
  readonly FUSION_LIMIT_ORDERS: "fusion_limit_orders";
73
95
  readonly STAKING_POSITION: "staking_position";
74
96
  readonly TRADE_HISTORY: "trade_history";
97
+ readonly ORDER_HISTORY: "order_history";
75
98
  };
76
- 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")[]]>;
99
+ 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" | "order_history_entry")[]]>;
77
100
  declare const NotificationActionSchema: z.ZodEnum<["create", ...("create" | "update")[]]>;
78
101
  declare const PoolProviderSchema: z.ZodEnum<["orca", ...("orca" | "fusion")[]]>;
79
102
  declare const TunaPositionStateSchema: z.ZodEnum<["open", ...("open" | "liquidated" | "closed_by_limit_order" | "closed")[]]>;
@@ -81,9 +104,12 @@ declare const TunaSpotPositionStateSchema: z.ZodEnum<["open", ...("open" | "clos
81
104
  declare const LimitOrderStateSchema: z.ZodEnum<["open", ...("open" | "partially_filled" | "filled" | "complete" | "cancelled")[]]>;
82
105
  declare const TradeHistoryActionSchema: z.ZodEnum<["swap", ...("swap" | "limit_order_fill" | "position_increase" | "position_decrease" | "take_profit" | "stop_loss" | "liquidation")[]]>;
83
106
  declare const TradeHistoryUIDirectionSchema: z.ZodEnum<["buy", ...("buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short")[]]>;
107
+ declare const OrderHistoryOrderTypeSchema: z.ZodEnum<["market", ...("market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market")[]]>;
108
+ declare const OrderHistoryStatusSchema: z.ZodEnum<["open", ...("open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected")[]]>;
109
+ declare const OrderHistoryUIDirectionSchema: z.ZodEnum<["buy", ...("buy" | "sell" | "long" | "short")[]]>;
84
110
  declare const StakingPositionHistoryActionTypeSchema: z.ZodEnum<["stake", ...("stake" | "unstake" | "withdraw" | "claim_rewards" | "compound_rewards")[]]>;
85
111
  declare const PoolSubscriptionTopicSchema: z.ZodEnum<["order_book", ...("order_book" | "pool_prices" | "pool_swaps")[]]>;
86
- declare const WalletSubscriptionTopicSchema: z.ZodEnum<["tuna_positions", ...("staking_position" | "tuna_positions" | "tuna_spot_positions" | "lending_positions" | "fusion_limit_orders" | "trade_history")[]]>;
112
+ declare const WalletSubscriptionTopicSchema: z.ZodEnum<["tuna_positions", ...("staking_position" | "tuna_positions" | "tuna_spot_positions" | "lending_positions" | "fusion_limit_orders" | "trade_history" | "order_history")[]]>;
87
113
  declare const PaginationMeta$1: z.ZodObject<{
88
114
  total: z.ZodNumber;
89
115
  }, "strip", z.ZodTypeAny, {
@@ -122,6 +148,26 @@ declare const Market$1: z.ZodObject<{
122
148
  liquidationThreshold: z.ZodNumber;
123
149
  oraclePriceDeviationThreshold: z.ZodNumber;
124
150
  limitOrderExecutionFee: z.ZodNumber;
151
+ maxSpotPositionSizeA: z.ZodObject<{
152
+ amount: z.ZodBigInt;
153
+ usd: z.ZodNumber;
154
+ }, "strip", z.ZodTypeAny, {
155
+ amount: bigint;
156
+ usd: number;
157
+ }, {
158
+ amount: bigint;
159
+ usd: number;
160
+ }>;
161
+ maxSpotPositionSizeB: z.ZodObject<{
162
+ amount: z.ZodBigInt;
163
+ usd: z.ZodNumber;
164
+ }, "strip", z.ZodTypeAny, {
165
+ amount: bigint;
166
+ usd: number;
167
+ }, {
168
+ amount: bigint;
169
+ usd: number;
170
+ }>;
125
171
  borrowedFundsA: z.ZodObject<{
126
172
  amount: z.ZodBigInt;
127
173
  usd: z.ZodNumber;
@@ -183,6 +229,7 @@ declare const Market$1: z.ZodObject<{
183
229
  usd: number;
184
230
  }>;
185
231
  disabled: z.ZodBoolean;
232
+ createdAt: z.ZodDate;
186
233
  }, "strip", z.ZodTypeAny, {
187
234
  address: string;
188
235
  addressLookupTable: string;
@@ -198,6 +245,14 @@ declare const Market$1: z.ZodObject<{
198
245
  liquidationThreshold: number;
199
246
  oraclePriceDeviationThreshold: number;
200
247
  limitOrderExecutionFee: number;
248
+ maxSpotPositionSizeA: {
249
+ amount: bigint;
250
+ usd: number;
251
+ };
252
+ maxSpotPositionSizeB: {
253
+ amount: bigint;
254
+ usd: number;
255
+ };
201
256
  borrowedFundsA: {
202
257
  amount: bigint;
203
258
  usd: number;
@@ -223,6 +278,7 @@ declare const Market$1: z.ZodObject<{
223
278
  usd: number;
224
279
  };
225
280
  disabled: boolean;
281
+ createdAt: Date;
226
282
  }, {
227
283
  address: string;
228
284
  addressLookupTable: string;
@@ -238,6 +294,14 @@ declare const Market$1: z.ZodObject<{
238
294
  liquidationThreshold: number;
239
295
  oraclePriceDeviationThreshold: number;
240
296
  limitOrderExecutionFee: number;
297
+ maxSpotPositionSizeA: {
298
+ amount: bigint;
299
+ usd: number;
300
+ };
301
+ maxSpotPositionSizeB: {
302
+ amount: bigint;
303
+ usd: number;
304
+ };
241
305
  borrowedFundsA: {
242
306
  amount: bigint;
243
307
  usd: number;
@@ -263,6 +327,7 @@ declare const Market$1: z.ZodObject<{
263
327
  usd: number;
264
328
  };
265
329
  disabled: boolean;
330
+ createdAt: Date;
266
331
  }>;
267
332
  declare const TokenOraclePrice$1: z.ZodObject<{
268
333
  mint: z.ZodString;
@@ -1518,6 +1583,130 @@ declare const TradeHistoryEntry$1: z.ZodObject<{
1518
1583
  slot: bigint;
1519
1584
  ts: Date;
1520
1585
  }>;
1586
+ declare const OrderHistoryEntry$1: z.ZodObject<{
1587
+ id: z.ZodString;
1588
+ pool: z.ZodString;
1589
+ authority: z.ZodString;
1590
+ orderType: z.ZodEnum<["market", ...("market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market")[]]>;
1591
+ isReduceOnly: z.ZodNullable<z.ZodBoolean>;
1592
+ uiTakeProfitPrice: z.ZodNullable<z.ZodNumber>;
1593
+ uiStopLossPrice: z.ZodNullable<z.ZodNumber>;
1594
+ aToB: z.ZodBoolean;
1595
+ uiDirection: z.ZodEnum<["buy", ...("buy" | "sell" | "long" | "short")[]]>;
1596
+ uiPrice: z.ZodNullable<z.ZodNumber>;
1597
+ uiExecutionPrice: z.ZodNullable<z.ZodNumber>;
1598
+ status: z.ZodEnum<["open", ...("open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected")[]]>;
1599
+ baseToken: z.ZodObject<{
1600
+ amount: z.ZodBigInt;
1601
+ usd: z.ZodNumber;
1602
+ }, "strip", z.ZodTypeAny, {
1603
+ amount: bigint;
1604
+ usd: number;
1605
+ }, {
1606
+ amount: bigint;
1607
+ usd: number;
1608
+ }>;
1609
+ quoteToken: z.ZodObject<{
1610
+ amount: z.ZodBigInt;
1611
+ usd: z.ZodNumber;
1612
+ }, "strip", z.ZodTypeAny, {
1613
+ amount: bigint;
1614
+ usd: number;
1615
+ }, {
1616
+ amount: bigint;
1617
+ usd: number;
1618
+ }>;
1619
+ baseTokenConsumedAmount: z.ZodNullable<z.ZodObject<{
1620
+ amount: z.ZodBigInt;
1621
+ usd: z.ZodNumber;
1622
+ }, "strip", z.ZodTypeAny, {
1623
+ amount: bigint;
1624
+ usd: number;
1625
+ }, {
1626
+ amount: bigint;
1627
+ usd: number;
1628
+ }>>;
1629
+ quoteTokenFilledAmount: z.ZodNullable<z.ZodObject<{
1630
+ amount: z.ZodBigInt;
1631
+ usd: z.ZodNumber;
1632
+ }, "strip", z.ZodTypeAny, {
1633
+ amount: bigint;
1634
+ usd: number;
1635
+ }, {
1636
+ amount: bigint;
1637
+ usd: number;
1638
+ }>>;
1639
+ txSignature: z.ZodNullable<z.ZodString>;
1640
+ positionAddress: z.ZodNullable<z.ZodString>;
1641
+ slot: z.ZodBigInt;
1642
+ ts: z.ZodDate;
1643
+ }, "strip", z.ZodTypeAny, {
1644
+ status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
1645
+ authority: string;
1646
+ pool: string;
1647
+ id: string;
1648
+ aToB: boolean;
1649
+ uiDirection: "buy" | "sell" | "long" | "short";
1650
+ uiPrice: number | null;
1651
+ baseToken: {
1652
+ amount: bigint;
1653
+ usd: number;
1654
+ };
1655
+ quoteToken: {
1656
+ amount: bigint;
1657
+ usd: number;
1658
+ };
1659
+ txSignature: string | null;
1660
+ positionAddress: string | null;
1661
+ slot: bigint;
1662
+ ts: Date;
1663
+ orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
1664
+ isReduceOnly: boolean | null;
1665
+ uiTakeProfitPrice: number | null;
1666
+ uiStopLossPrice: number | null;
1667
+ uiExecutionPrice: number | null;
1668
+ baseTokenConsumedAmount: {
1669
+ amount: bigint;
1670
+ usd: number;
1671
+ } | null;
1672
+ quoteTokenFilledAmount: {
1673
+ amount: bigint;
1674
+ usd: number;
1675
+ } | null;
1676
+ }, {
1677
+ status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
1678
+ authority: string;
1679
+ pool: string;
1680
+ id: string;
1681
+ aToB: boolean;
1682
+ uiDirection: "buy" | "sell" | "long" | "short";
1683
+ uiPrice: number | null;
1684
+ baseToken: {
1685
+ amount: bigint;
1686
+ usd: number;
1687
+ };
1688
+ quoteToken: {
1689
+ amount: bigint;
1690
+ usd: number;
1691
+ };
1692
+ txSignature: string | null;
1693
+ positionAddress: string | null;
1694
+ slot: bigint;
1695
+ ts: Date;
1696
+ orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
1697
+ isReduceOnly: boolean | null;
1698
+ uiTakeProfitPrice: number | null;
1699
+ uiStopLossPrice: number | null;
1700
+ uiExecutionPrice: number | null;
1701
+ baseTokenConsumedAmount: {
1702
+ amount: bigint;
1703
+ usd: number;
1704
+ } | null;
1705
+ quoteTokenFilledAmount: {
1706
+ amount: bigint;
1707
+ usd: number;
1708
+ } | null;
1709
+ }>;
1521
1710
  declare const StakingTreasury$1: z.ZodObject<{
1522
1711
  address: z.ZodString;
1523
1712
  stakedTokenMint: z.ZodString;
@@ -2026,7 +2215,7 @@ declare const OrderBookNotificationMeta: z.ZodObject<{
2026
2215
  }>;
2027
2216
  declare const PoolSwapNotification: z.ZodObject<{
2028
2217
  meta: z.ZodTypeAny;
2029
- 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")[]]>;
2218
+ 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" | "order_history_entry")[]]>;
2030
2219
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2031
2220
  data: z.ZodObject<{
2032
2221
  id: z.ZodString;
@@ -2057,7 +2246,7 @@ declare const PoolSwapNotification: z.ZodObject<{
2057
2246
  authority: z.ZodNullable<z.ZodString>;
2058
2247
  } | {
2059
2248
  meta: z.ZodNullable<z.ZodUndefined>;
2060
- 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")[]]>;
2249
+ 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" | "order_history_entry")[]]>;
2061
2250
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2062
2251
  data: z.ZodObject<{
2063
2252
  id: z.ZodString;
@@ -2099,7 +2288,7 @@ declare const PoolSwapNotification: z.ZodObject<{
2099
2288
  amountUsd: number;
2100
2289
  aToB: boolean;
2101
2290
  };
2102
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2291
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
2103
2292
  meta?: any;
2104
2293
  } | {
2105
2294
  authority: string | null;
@@ -2114,7 +2303,7 @@ declare const PoolSwapNotification: z.ZodObject<{
2114
2303
  amountUsd: number;
2115
2304
  aToB: boolean;
2116
2305
  };
2117
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2306
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
2118
2307
  meta?: any;
2119
2308
  }, {
2120
2309
  authority: string | null;
@@ -2129,7 +2318,7 @@ declare const PoolSwapNotification: z.ZodObject<{
2129
2318
  amountUsd: number;
2130
2319
  aToB: boolean;
2131
2320
  };
2132
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2321
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
2133
2322
  meta?: any;
2134
2323
  } | {
2135
2324
  authority: string | null;
@@ -2144,12 +2333,12 @@ declare const PoolSwapNotification: z.ZodObject<{
2144
2333
  amountUsd: number;
2145
2334
  aToB: boolean;
2146
2335
  };
2147
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2336
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
2148
2337
  meta?: any;
2149
2338
  }>;
2150
2339
  declare const PoolPriceUpdateNotification: z.ZodObject<{
2151
2340
  meta: z.ZodTypeAny;
2152
- 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")[]]>;
2341
+ 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" | "order_history_entry")[]]>;
2153
2342
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2154
2343
  data: z.ZodObject<{
2155
2344
  pool: z.ZodString;
@@ -2171,7 +2360,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
2171
2360
  authority: z.ZodNullable<z.ZodString>;
2172
2361
  } | {
2173
2362
  meta: z.ZodNullable<z.ZodUndefined>;
2174
- 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")[]]>;
2363
+ 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" | "order_history_entry")[]]>;
2175
2364
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2176
2365
  data: z.ZodObject<{
2177
2366
  pool: z.ZodString;
@@ -2201,7 +2390,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
2201
2390
  sqrtPrice: bigint;
2202
2391
  pool: string;
2203
2392
  };
2204
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2393
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
2205
2394
  meta?: any;
2206
2395
  } | {
2207
2396
  authority: string | null;
@@ -2213,7 +2402,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
2213
2402
  sqrtPrice: bigint;
2214
2403
  pool: string;
2215
2404
  };
2216
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2405
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
2217
2406
  meta?: any;
2218
2407
  }, {
2219
2408
  authority: string | null;
@@ -2225,7 +2414,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
2225
2414
  sqrtPrice: bigint;
2226
2415
  pool: string;
2227
2416
  };
2228
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2417
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
2229
2418
  meta?: any;
2230
2419
  } | {
2231
2420
  authority: string | null;
@@ -2237,7 +2426,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
2237
2426
  sqrtPrice: bigint;
2238
2427
  pool: string;
2239
2428
  };
2240
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2429
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
2241
2430
  meta?: any;
2242
2431
  }>;
2243
2432
  declare const OrderBookNotification: z.ZodObject<{
@@ -2254,7 +2443,7 @@ declare const OrderBookNotification: z.ZodObject<{
2254
2443
  priceStep: number;
2255
2444
  inverted: boolean;
2256
2445
  }>;
2257
- 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")[]]>;
2446
+ 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" | "order_history_entry")[]]>;
2258
2447
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2259
2448
  data: z.ZodObject<{
2260
2449
  entries: z.ZodArray<z.ZodObject<{
@@ -2325,7 +2514,7 @@ declare const OrderBookNotification: z.ZodObject<{
2325
2514
  authority: z.ZodNullable<z.ZodString>;
2326
2515
  } | {
2327
2516
  meta: z.ZodNullable<z.ZodUndefined>;
2328
- 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")[]]>;
2517
+ 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" | "order_history_entry")[]]>;
2329
2518
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2330
2519
  data: z.ZodObject<{
2331
2520
  entries: z.ZodArray<z.ZodObject<{
@@ -2418,7 +2607,7 @@ declare const OrderBookNotification: z.ZodObject<{
2418
2607
  priceStep: number;
2419
2608
  inverted: boolean;
2420
2609
  } | null | undefined;
2421
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2610
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
2422
2611
  } | {
2423
2612
  authority: string | null;
2424
2613
  id: string;
@@ -2443,7 +2632,7 @@ declare const OrderBookNotification: z.ZodObject<{
2443
2632
  priceStep: number;
2444
2633
  inverted: boolean;
2445
2634
  } | null | undefined;
2446
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2635
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
2447
2636
  }, {
2448
2637
  authority: string | null;
2449
2638
  id: string;
@@ -2468,7 +2657,7 @@ declare const OrderBookNotification: z.ZodObject<{
2468
2657
  priceStep: number;
2469
2658
  inverted: boolean;
2470
2659
  } | null | undefined;
2471
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2660
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
2472
2661
  } | {
2473
2662
  authority: string | null;
2474
2663
  id: string;
@@ -2493,11 +2682,11 @@ declare const OrderBookNotification: z.ZodObject<{
2493
2682
  priceStep: number;
2494
2683
  inverted: boolean;
2495
2684
  } | null | undefined;
2496
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2685
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
2497
2686
  }>;
2498
2687
  declare const TunaPositionNotification: z.ZodObject<{
2499
2688
  meta: z.ZodTypeAny;
2500
- 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")[]]>;
2689
+ 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" | "order_history_entry")[]]>;
2501
2690
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2502
2691
  data: z.ZodObject<{
2503
2692
  address: z.ZodString;
@@ -2867,7 +3056,7 @@ declare const TunaPositionNotification: z.ZodObject<{
2867
3056
  authority: z.ZodNullable<z.ZodString>;
2868
3057
  } | {
2869
3058
  meta: z.ZodNullable<z.ZodUndefined>;
2870
- 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")[]]>;
3059
+ 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" | "order_history_entry")[]]>;
2871
3060
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2872
3061
  data: z.ZodObject<{
2873
3062
  address: z.ZodString;
@@ -3327,7 +3516,7 @@ declare const TunaPositionNotification: z.ZodObject<{
3327
3516
  updatedAtSlot: bigint;
3328
3517
  closedAt: Date | null;
3329
3518
  };
3330
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
3519
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
3331
3520
  meta?: any;
3332
3521
  } | {
3333
3522
  authority: string | null;
@@ -3421,7 +3610,7 @@ declare const TunaPositionNotification: z.ZodObject<{
3421
3610
  updatedAtSlot: bigint;
3422
3611
  closedAt: Date | null;
3423
3612
  };
3424
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
3613
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
3425
3614
  meta?: any;
3426
3615
  }, {
3427
3616
  authority: string | null;
@@ -3515,7 +3704,7 @@ declare const TunaPositionNotification: z.ZodObject<{
3515
3704
  updatedAtSlot: bigint;
3516
3705
  closedAt: Date | null;
3517
3706
  };
3518
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
3707
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
3519
3708
  meta?: any;
3520
3709
  } | {
3521
3710
  authority: string | null;
@@ -3609,12 +3798,12 @@ declare const TunaPositionNotification: z.ZodObject<{
3609
3798
  updatedAtSlot: bigint;
3610
3799
  closedAt: Date | null;
3611
3800
  };
3612
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
3801
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
3613
3802
  meta?: any;
3614
3803
  }>;
3615
3804
  declare const TunaSpotPositionNotification: z.ZodObject<{
3616
3805
  meta: z.ZodTypeAny;
3617
- 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")[]]>;
3806
+ 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" | "order_history_entry")[]]>;
3618
3807
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
3619
3808
  data: z.ZodObject<{
3620
3809
  address: z.ZodString;
@@ -3768,7 +3957,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3768
3957
  authority: z.ZodNullable<z.ZodString>;
3769
3958
  } | {
3770
3959
  meta: z.ZodNullable<z.ZodUndefined>;
3771
- 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")[]]>;
3960
+ 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" | "order_history_entry")[]]>;
3772
3961
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
3773
3962
  data: z.ZodObject<{
3774
3963
  address: z.ZodString;
@@ -3964,7 +4153,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3964
4153
  leverage: number;
3965
4154
  openedAtSlot: bigint;
3966
4155
  };
3967
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4156
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
3968
4157
  meta?: any;
3969
4158
  } | {
3970
4159
  authority: string | null;
@@ -4010,7 +4199,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
4010
4199
  leverage: number;
4011
4200
  openedAtSlot: bigint;
4012
4201
  };
4013
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4202
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
4014
4203
  meta?: any;
4015
4204
  }, {
4016
4205
  authority: string | null;
@@ -4056,7 +4245,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
4056
4245
  leverage: number;
4057
4246
  openedAtSlot: bigint;
4058
4247
  };
4059
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4248
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
4060
4249
  meta?: any;
4061
4250
  } | {
4062
4251
  authority: string | null;
@@ -4102,12 +4291,12 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
4102
4291
  leverage: number;
4103
4292
  openedAtSlot: bigint;
4104
4293
  };
4105
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4294
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
4106
4295
  meta?: any;
4107
4296
  }>;
4108
4297
  declare const LendingPositionNotification: z.ZodObject<{
4109
4298
  meta: z.ZodTypeAny;
4110
- 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")[]]>;
4299
+ 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" | "order_history_entry")[]]>;
4111
4300
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4112
4301
  data: z.ZodObject<{
4113
4302
  address: z.ZodString;
@@ -4168,7 +4357,7 @@ declare const LendingPositionNotification: z.ZodObject<{
4168
4357
  authority: z.ZodNullable<z.ZodString>;
4169
4358
  } | {
4170
4359
  meta: z.ZodNullable<z.ZodUndefined>;
4171
- 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")[]]>;
4360
+ 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" | "order_history_entry")[]]>;
4172
4361
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4173
4362
  data: z.ZodObject<{
4174
4363
  address: z.ZodString;
@@ -4246,7 +4435,7 @@ declare const LendingPositionNotification: z.ZodObject<{
4246
4435
  usd: number;
4247
4436
  };
4248
4437
  };
4249
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4438
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
4250
4439
  meta?: any;
4251
4440
  } | {
4252
4441
  authority: string | null;
@@ -4267,7 +4456,7 @@ declare const LendingPositionNotification: z.ZodObject<{
4267
4456
  usd: number;
4268
4457
  };
4269
4458
  };
4270
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4459
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
4271
4460
  meta?: any;
4272
4461
  }, {
4273
4462
  authority: string | null;
@@ -4288,7 +4477,7 @@ declare const LendingPositionNotification: z.ZodObject<{
4288
4477
  usd: number;
4289
4478
  };
4290
4479
  };
4291
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4480
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
4292
4481
  meta?: any;
4293
4482
  } | {
4294
4483
  authority: string | null;
@@ -4309,12 +4498,12 @@ declare const LendingPositionNotification: z.ZodObject<{
4309
4498
  usd: number;
4310
4499
  };
4311
4500
  };
4312
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4501
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
4313
4502
  meta?: any;
4314
4503
  }>;
4315
4504
  declare const LimitOrderNotification: z.ZodObject<{
4316
4505
  meta: z.ZodTypeAny;
4317
- 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")[]]>;
4506
+ 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" | "order_history_entry")[]]>;
4318
4507
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4319
4508
  data: z.ZodObject<{
4320
4509
  address: z.ZodString;
@@ -4393,7 +4582,7 @@ declare const LimitOrderNotification: z.ZodObject<{
4393
4582
  authority: z.ZodNullable<z.ZodString>;
4394
4583
  } | {
4395
4584
  meta: z.ZodNullable<z.ZodUndefined>;
4396
- 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")[]]>;
4585
+ 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" | "order_history_entry")[]]>;
4397
4586
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4398
4587
  data: z.ZodObject<{
4399
4588
  address: z.ZodString;
@@ -4495,7 +4684,7 @@ declare const LimitOrderNotification: z.ZodObject<{
4495
4684
  openTxSignature: string;
4496
4685
  closeTxSignature: string | null;
4497
4686
  };
4498
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4687
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
4499
4688
  meta?: any;
4500
4689
  } | {
4501
4690
  authority: string | null;
@@ -4522,7 +4711,7 @@ declare const LimitOrderNotification: z.ZodObject<{
4522
4711
  openTxSignature: string;
4523
4712
  closeTxSignature: string | null;
4524
4713
  };
4525
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4714
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
4526
4715
  meta?: any;
4527
4716
  }, {
4528
4717
  authority: string | null;
@@ -4549,7 +4738,7 @@ declare const LimitOrderNotification: z.ZodObject<{
4549
4738
  openTxSignature: string;
4550
4739
  closeTxSignature: string | null;
4551
4740
  };
4552
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4741
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
4553
4742
  meta?: any;
4554
4743
  } | {
4555
4744
  authority: string | null;
@@ -4576,12 +4765,12 @@ declare const LimitOrderNotification: z.ZodObject<{
4576
4765
  openTxSignature: string;
4577
4766
  closeTxSignature: string | null;
4578
4767
  };
4579
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4768
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
4580
4769
  meta?: any;
4581
4770
  }>;
4582
4771
  declare const TradeHistoryEntryNotification: z.ZodObject<{
4583
4772
  meta: z.ZodTypeAny;
4584
- 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")[]]>;
4773
+ 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" | "order_history_entry")[]]>;
4585
4774
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4586
4775
  data: z.ZodObject<{
4587
4776
  id: z.ZodString;
@@ -4696,7 +4885,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
4696
4885
  authority: z.ZodNullable<z.ZodString>;
4697
4886
  } | {
4698
4887
  meta: z.ZodNullable<z.ZodUndefined>;
4699
- 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")[]]>;
4888
+ 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" | "order_history_entry")[]]>;
4700
4889
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4701
4890
  data: z.ZodObject<{
4702
4891
  id: z.ZodString;
@@ -4842,7 +5031,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
4842
5031
  slot: bigint;
4843
5032
  ts: Date;
4844
5033
  };
4845
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
5034
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
4846
5035
  meta?: any;
4847
5036
  } | {
4848
5037
  authority: string | null;
@@ -4877,7 +5066,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
4877
5066
  slot: bigint;
4878
5067
  ts: Date;
4879
5068
  };
4880
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
5069
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
4881
5070
  meta?: any;
4882
5071
  }, {
4883
5072
  authority: string | null;
@@ -4912,7 +5101,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
4912
5101
  slot: bigint;
4913
5102
  ts: Date;
4914
5103
  };
4915
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
5104
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
4916
5105
  meta?: any;
4917
5106
  } | {
4918
5107
  authority: string | null;
@@ -4947,12 +5136,433 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
4947
5136
  slot: bigint;
4948
5137
  ts: Date;
4949
5138
  };
4950
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
5139
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
5140
+ meta?: any;
5141
+ }>;
5142
+ declare const OrderHistoryEntryNotification: z.ZodObject<{
5143
+ meta: z.ZodTypeAny;
5144
+ 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" | "order_history_entry")[]]>;
5145
+ action: z.ZodEnum<["create", ...("create" | "update")[]]>;
5146
+ data: z.ZodObject<{
5147
+ id: z.ZodString;
5148
+ pool: z.ZodString;
5149
+ authority: z.ZodString;
5150
+ orderType: z.ZodEnum<["market", ...("market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market")[]]>;
5151
+ isReduceOnly: z.ZodNullable<z.ZodBoolean>;
5152
+ uiTakeProfitPrice: z.ZodNullable<z.ZodNumber>;
5153
+ uiStopLossPrice: z.ZodNullable<z.ZodNumber>;
5154
+ aToB: z.ZodBoolean;
5155
+ uiDirection: z.ZodEnum<["buy", ...("buy" | "sell" | "long" | "short")[]]>;
5156
+ uiPrice: z.ZodNullable<z.ZodNumber>;
5157
+ uiExecutionPrice: z.ZodNullable<z.ZodNumber>;
5158
+ status: z.ZodEnum<["open", ...("open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected")[]]>;
5159
+ baseToken: z.ZodObject<{
5160
+ amount: z.ZodBigInt;
5161
+ usd: z.ZodNumber;
5162
+ }, "strip", z.ZodTypeAny, {
5163
+ amount: bigint;
5164
+ usd: number;
5165
+ }, {
5166
+ amount: bigint;
5167
+ usd: number;
5168
+ }>;
5169
+ quoteToken: z.ZodObject<{
5170
+ amount: z.ZodBigInt;
5171
+ usd: z.ZodNumber;
5172
+ }, "strip", z.ZodTypeAny, {
5173
+ amount: bigint;
5174
+ usd: number;
5175
+ }, {
5176
+ amount: bigint;
5177
+ usd: number;
5178
+ }>;
5179
+ baseTokenConsumedAmount: z.ZodNullable<z.ZodObject<{
5180
+ amount: z.ZodBigInt;
5181
+ usd: z.ZodNumber;
5182
+ }, "strip", z.ZodTypeAny, {
5183
+ amount: bigint;
5184
+ usd: number;
5185
+ }, {
5186
+ amount: bigint;
5187
+ usd: number;
5188
+ }>>;
5189
+ quoteTokenFilledAmount: z.ZodNullable<z.ZodObject<{
5190
+ amount: z.ZodBigInt;
5191
+ usd: z.ZodNumber;
5192
+ }, "strip", z.ZodTypeAny, {
5193
+ amount: bigint;
5194
+ usd: number;
5195
+ }, {
5196
+ amount: bigint;
5197
+ usd: number;
5198
+ }>>;
5199
+ txSignature: z.ZodNullable<z.ZodString>;
5200
+ positionAddress: z.ZodNullable<z.ZodString>;
5201
+ slot: z.ZodBigInt;
5202
+ ts: z.ZodDate;
5203
+ }, "strip", z.ZodTypeAny, {
5204
+ status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
5205
+ authority: string;
5206
+ pool: string;
5207
+ id: string;
5208
+ aToB: boolean;
5209
+ uiDirection: "buy" | "sell" | "long" | "short";
5210
+ uiPrice: number | null;
5211
+ baseToken: {
5212
+ amount: bigint;
5213
+ usd: number;
5214
+ };
5215
+ quoteToken: {
5216
+ amount: bigint;
5217
+ usd: number;
5218
+ };
5219
+ txSignature: string | null;
5220
+ positionAddress: string | null;
5221
+ slot: bigint;
5222
+ ts: Date;
5223
+ orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5224
+ isReduceOnly: boolean | null;
5225
+ uiTakeProfitPrice: number | null;
5226
+ uiStopLossPrice: number | null;
5227
+ uiExecutionPrice: number | null;
5228
+ baseTokenConsumedAmount: {
5229
+ amount: bigint;
5230
+ usd: number;
5231
+ } | null;
5232
+ quoteTokenFilledAmount: {
5233
+ amount: bigint;
5234
+ usd: number;
5235
+ } | null;
5236
+ }, {
5237
+ status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
5238
+ authority: string;
5239
+ pool: string;
5240
+ id: string;
5241
+ aToB: boolean;
5242
+ uiDirection: "buy" | "sell" | "long" | "short";
5243
+ uiPrice: number | null;
5244
+ baseToken: {
5245
+ amount: bigint;
5246
+ usd: number;
5247
+ };
5248
+ quoteToken: {
5249
+ amount: bigint;
5250
+ usd: number;
5251
+ };
5252
+ txSignature: string | null;
5253
+ positionAddress: string | null;
5254
+ slot: bigint;
5255
+ ts: Date;
5256
+ orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5257
+ isReduceOnly: boolean | null;
5258
+ uiTakeProfitPrice: number | null;
5259
+ uiStopLossPrice: number | null;
5260
+ uiExecutionPrice: number | null;
5261
+ baseTokenConsumedAmount: {
5262
+ amount: bigint;
5263
+ usd: number;
5264
+ } | null;
5265
+ quoteTokenFilledAmount: {
5266
+ amount: bigint;
5267
+ usd: number;
5268
+ } | null;
5269
+ }>;
5270
+ id: z.ZodString;
5271
+ authority: z.ZodNullable<z.ZodString>;
5272
+ } | {
5273
+ meta: z.ZodNullable<z.ZodUndefined>;
5274
+ 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" | "order_history_entry")[]]>;
5275
+ action: z.ZodEnum<["create", ...("create" | "update")[]]>;
5276
+ data: z.ZodObject<{
5277
+ id: z.ZodString;
5278
+ pool: z.ZodString;
5279
+ authority: z.ZodString;
5280
+ orderType: z.ZodEnum<["market", ...("market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market")[]]>;
5281
+ isReduceOnly: z.ZodNullable<z.ZodBoolean>;
5282
+ uiTakeProfitPrice: z.ZodNullable<z.ZodNumber>;
5283
+ uiStopLossPrice: z.ZodNullable<z.ZodNumber>;
5284
+ aToB: z.ZodBoolean;
5285
+ uiDirection: z.ZodEnum<["buy", ...("buy" | "sell" | "long" | "short")[]]>;
5286
+ uiPrice: z.ZodNullable<z.ZodNumber>;
5287
+ uiExecutionPrice: z.ZodNullable<z.ZodNumber>;
5288
+ status: z.ZodEnum<["open", ...("open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected")[]]>;
5289
+ baseToken: z.ZodObject<{
5290
+ amount: z.ZodBigInt;
5291
+ usd: z.ZodNumber;
5292
+ }, "strip", z.ZodTypeAny, {
5293
+ amount: bigint;
5294
+ usd: number;
5295
+ }, {
5296
+ amount: bigint;
5297
+ usd: number;
5298
+ }>;
5299
+ quoteToken: z.ZodObject<{
5300
+ amount: z.ZodBigInt;
5301
+ usd: z.ZodNumber;
5302
+ }, "strip", z.ZodTypeAny, {
5303
+ amount: bigint;
5304
+ usd: number;
5305
+ }, {
5306
+ amount: bigint;
5307
+ usd: number;
5308
+ }>;
5309
+ baseTokenConsumedAmount: z.ZodNullable<z.ZodObject<{
5310
+ amount: z.ZodBigInt;
5311
+ usd: z.ZodNumber;
5312
+ }, "strip", z.ZodTypeAny, {
5313
+ amount: bigint;
5314
+ usd: number;
5315
+ }, {
5316
+ amount: bigint;
5317
+ usd: number;
5318
+ }>>;
5319
+ quoteTokenFilledAmount: z.ZodNullable<z.ZodObject<{
5320
+ amount: z.ZodBigInt;
5321
+ usd: z.ZodNumber;
5322
+ }, "strip", z.ZodTypeAny, {
5323
+ amount: bigint;
5324
+ usd: number;
5325
+ }, {
5326
+ amount: bigint;
5327
+ usd: number;
5328
+ }>>;
5329
+ txSignature: z.ZodNullable<z.ZodString>;
5330
+ positionAddress: z.ZodNullable<z.ZodString>;
5331
+ slot: z.ZodBigInt;
5332
+ ts: z.ZodDate;
5333
+ }, "strip", z.ZodTypeAny, {
5334
+ status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
5335
+ authority: string;
5336
+ pool: string;
5337
+ id: string;
5338
+ aToB: boolean;
5339
+ uiDirection: "buy" | "sell" | "long" | "short";
5340
+ uiPrice: number | null;
5341
+ baseToken: {
5342
+ amount: bigint;
5343
+ usd: number;
5344
+ };
5345
+ quoteToken: {
5346
+ amount: bigint;
5347
+ usd: number;
5348
+ };
5349
+ txSignature: string | null;
5350
+ positionAddress: string | null;
5351
+ slot: bigint;
5352
+ ts: Date;
5353
+ orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5354
+ isReduceOnly: boolean | null;
5355
+ uiTakeProfitPrice: number | null;
5356
+ uiStopLossPrice: number | null;
5357
+ uiExecutionPrice: number | null;
5358
+ baseTokenConsumedAmount: {
5359
+ amount: bigint;
5360
+ usd: number;
5361
+ } | null;
5362
+ quoteTokenFilledAmount: {
5363
+ amount: bigint;
5364
+ usd: number;
5365
+ } | null;
5366
+ }, {
5367
+ status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
5368
+ authority: string;
5369
+ pool: string;
5370
+ id: string;
5371
+ aToB: boolean;
5372
+ uiDirection: "buy" | "sell" | "long" | "short";
5373
+ uiPrice: number | null;
5374
+ baseToken: {
5375
+ amount: bigint;
5376
+ usd: number;
5377
+ };
5378
+ quoteToken: {
5379
+ amount: bigint;
5380
+ usd: number;
5381
+ };
5382
+ txSignature: string | null;
5383
+ positionAddress: string | null;
5384
+ slot: bigint;
5385
+ ts: Date;
5386
+ orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5387
+ isReduceOnly: boolean | null;
5388
+ uiTakeProfitPrice: number | null;
5389
+ uiStopLossPrice: number | null;
5390
+ uiExecutionPrice: number | null;
5391
+ baseTokenConsumedAmount: {
5392
+ amount: bigint;
5393
+ usd: number;
5394
+ } | null;
5395
+ quoteTokenFilledAmount: {
5396
+ amount: bigint;
5397
+ usd: number;
5398
+ } | null;
5399
+ }>;
5400
+ id: z.ZodString;
5401
+ authority: z.ZodNullable<z.ZodString>;
5402
+ }, "strip", z.ZodTypeAny, {
5403
+ authority: string | null;
5404
+ id: string;
5405
+ action: "create" | "update";
5406
+ data: {
5407
+ status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
5408
+ authority: string;
5409
+ pool: string;
5410
+ id: string;
5411
+ aToB: boolean;
5412
+ uiDirection: "buy" | "sell" | "long" | "short";
5413
+ uiPrice: number | null;
5414
+ baseToken: {
5415
+ amount: bigint;
5416
+ usd: number;
5417
+ };
5418
+ quoteToken: {
5419
+ amount: bigint;
5420
+ usd: number;
5421
+ };
5422
+ txSignature: string | null;
5423
+ positionAddress: string | null;
5424
+ slot: bigint;
5425
+ ts: Date;
5426
+ orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5427
+ isReduceOnly: boolean | null;
5428
+ uiTakeProfitPrice: number | null;
5429
+ uiStopLossPrice: number | null;
5430
+ uiExecutionPrice: number | null;
5431
+ baseTokenConsumedAmount: {
5432
+ amount: bigint;
5433
+ usd: number;
5434
+ } | null;
5435
+ quoteTokenFilledAmount: {
5436
+ amount: bigint;
5437
+ usd: number;
5438
+ } | null;
5439
+ };
5440
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
5441
+ meta?: any;
5442
+ } | {
5443
+ authority: string | null;
5444
+ id: string;
5445
+ action: "create" | "update";
5446
+ data: {
5447
+ status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
5448
+ authority: string;
5449
+ pool: string;
5450
+ id: string;
5451
+ aToB: boolean;
5452
+ uiDirection: "buy" | "sell" | "long" | "short";
5453
+ uiPrice: number | null;
5454
+ baseToken: {
5455
+ amount: bigint;
5456
+ usd: number;
5457
+ };
5458
+ quoteToken: {
5459
+ amount: bigint;
5460
+ usd: number;
5461
+ };
5462
+ txSignature: string | null;
5463
+ positionAddress: string | null;
5464
+ slot: bigint;
5465
+ ts: Date;
5466
+ orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5467
+ isReduceOnly: boolean | null;
5468
+ uiTakeProfitPrice: number | null;
5469
+ uiStopLossPrice: number | null;
5470
+ uiExecutionPrice: number | null;
5471
+ baseTokenConsumedAmount: {
5472
+ amount: bigint;
5473
+ usd: number;
5474
+ } | null;
5475
+ quoteTokenFilledAmount: {
5476
+ amount: bigint;
5477
+ usd: number;
5478
+ } | null;
5479
+ };
5480
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
5481
+ meta?: any;
5482
+ }, {
5483
+ authority: string | null;
5484
+ id: string;
5485
+ action: "create" | "update";
5486
+ data: {
5487
+ status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
5488
+ authority: string;
5489
+ pool: string;
5490
+ id: string;
5491
+ aToB: boolean;
5492
+ uiDirection: "buy" | "sell" | "long" | "short";
5493
+ uiPrice: number | null;
5494
+ baseToken: {
5495
+ amount: bigint;
5496
+ usd: number;
5497
+ };
5498
+ quoteToken: {
5499
+ amount: bigint;
5500
+ usd: number;
5501
+ };
5502
+ txSignature: string | null;
5503
+ positionAddress: string | null;
5504
+ slot: bigint;
5505
+ ts: Date;
5506
+ orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5507
+ isReduceOnly: boolean | null;
5508
+ uiTakeProfitPrice: number | null;
5509
+ uiStopLossPrice: number | null;
5510
+ uiExecutionPrice: number | null;
5511
+ baseTokenConsumedAmount: {
5512
+ amount: bigint;
5513
+ usd: number;
5514
+ } | null;
5515
+ quoteTokenFilledAmount: {
5516
+ amount: bigint;
5517
+ usd: number;
5518
+ } | null;
5519
+ };
5520
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
5521
+ meta?: any;
5522
+ } | {
5523
+ authority: string | null;
5524
+ id: string;
5525
+ action: "create" | "update";
5526
+ data: {
5527
+ status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
5528
+ authority: string;
5529
+ pool: string;
5530
+ id: string;
5531
+ aToB: boolean;
5532
+ uiDirection: "buy" | "sell" | "long" | "short";
5533
+ uiPrice: number | null;
5534
+ baseToken: {
5535
+ amount: bigint;
5536
+ usd: number;
5537
+ };
5538
+ quoteToken: {
5539
+ amount: bigint;
5540
+ usd: number;
5541
+ };
5542
+ txSignature: string | null;
5543
+ positionAddress: string | null;
5544
+ slot: bigint;
5545
+ ts: Date;
5546
+ orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5547
+ isReduceOnly: boolean | null;
5548
+ uiTakeProfitPrice: number | null;
5549
+ uiStopLossPrice: number | null;
5550
+ uiExecutionPrice: number | null;
5551
+ baseTokenConsumedAmount: {
5552
+ amount: bigint;
5553
+ usd: number;
5554
+ } | null;
5555
+ quoteTokenFilledAmount: {
5556
+ amount: bigint;
5557
+ usd: number;
5558
+ } | null;
5559
+ };
5560
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
4951
5561
  meta?: any;
4952
5562
  }>;
4953
5563
  declare const StakingPositionNotification: z.ZodObject<{
4954
5564
  meta: z.ZodTypeAny;
4955
- 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")[]]>;
5565
+ 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" | "order_history_entry")[]]>;
4956
5566
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4957
5567
  data: z.ZodObject<{
4958
5568
  address: z.ZodString;
@@ -5129,7 +5739,7 @@ declare const StakingPositionNotification: z.ZodObject<{
5129
5739
  authority: z.ZodNullable<z.ZodString>;
5130
5740
  } | {
5131
5741
  meta: z.ZodNullable<z.ZodUndefined>;
5132
- 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")[]]>;
5742
+ 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" | "order_history_entry")[]]>;
5133
5743
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
5134
5744
  data: z.ZodObject<{
5135
5745
  address: z.ZodString;
@@ -5345,7 +5955,7 @@ declare const StakingPositionNotification: z.ZodObject<{
5345
5955
  lastUnstakedAt: Date | null;
5346
5956
  withdrawAvailableAt: Date | null;
5347
5957
  };
5348
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
5958
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
5349
5959
  meta?: any;
5350
5960
  } | {
5351
5961
  authority: string | null;
@@ -5388,7 +5998,7 @@ declare const StakingPositionNotification: z.ZodObject<{
5388
5998
  lastUnstakedAt: Date | null;
5389
5999
  withdrawAvailableAt: Date | null;
5390
6000
  };
5391
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
6001
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
5392
6002
  meta?: any;
5393
6003
  }, {
5394
6004
  authority: string | null;
@@ -5431,7 +6041,7 @@ declare const StakingPositionNotification: z.ZodObject<{
5431
6041
  lastUnstakedAt: Date | null;
5432
6042
  withdrawAvailableAt: Date | null;
5433
6043
  };
5434
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
6044
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
5435
6045
  meta?: any;
5436
6046
  } | {
5437
6047
  authority: string | null;
@@ -5474,7 +6084,7 @@ declare const StakingPositionNotification: z.ZodObject<{
5474
6084
  lastUnstakedAt: Date | null;
5475
6085
  withdrawAvailableAt: Date | null;
5476
6086
  };
5477
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
6087
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
5478
6088
  meta?: any;
5479
6089
  }>;
5480
6090
 
@@ -5488,6 +6098,13 @@ declare const schemas_NotificationEntity: typeof NotificationEntity;
5488
6098
  declare const schemas_NotificationEntitySchema: typeof NotificationEntitySchema;
5489
6099
  declare const schemas_OrderBookNotification: typeof OrderBookNotification;
5490
6100
  declare const schemas_OrderBookNotificationMeta: typeof OrderBookNotificationMeta;
6101
+ declare const schemas_OrderHistoryEntryNotification: typeof OrderHistoryEntryNotification;
6102
+ declare const schemas_OrderHistoryOrderType: typeof OrderHistoryOrderType;
6103
+ declare const schemas_OrderHistoryOrderTypeSchema: typeof OrderHistoryOrderTypeSchema;
6104
+ declare const schemas_OrderHistoryStatus: typeof OrderHistoryStatus;
6105
+ declare const schemas_OrderHistoryStatusSchema: typeof OrderHistoryStatusSchema;
6106
+ declare const schemas_OrderHistoryUIDirection: typeof OrderHistoryUIDirection;
6107
+ declare const schemas_OrderHistoryUIDirectionSchema: typeof OrderHistoryUIDirectionSchema;
5491
6108
  declare const schemas_PoolPriceUpdateNotification: typeof PoolPriceUpdateNotification;
5492
6109
  declare const schemas_PoolProvider: typeof PoolProvider;
5493
6110
  declare const schemas_PoolProviderSchema: typeof PoolProviderSchema;
@@ -5511,7 +6128,7 @@ declare const schemas_UpdateStreamSubscriptionResult: typeof UpdateStreamSubscri
5511
6128
  declare const schemas_WalletSubscriptionTopic: typeof WalletSubscriptionTopic;
5512
6129
  declare const schemas_WalletSubscriptionTopicSchema: typeof WalletSubscriptionTopicSchema;
5513
6130
  declare namespace schemas {
5514
- 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 };
6131
+ 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, OrderHistoryEntry$1 as OrderHistoryEntry, schemas_OrderHistoryEntryNotification as OrderHistoryEntryNotification, schemas_OrderHistoryOrderType as OrderHistoryOrderType, schemas_OrderHistoryOrderTypeSchema as OrderHistoryOrderTypeSchema, schemas_OrderHistoryStatus as OrderHistoryStatus, schemas_OrderHistoryStatusSchema as OrderHistoryStatusSchema, schemas_OrderHistoryUIDirection as OrderHistoryUIDirection, schemas_OrderHistoryUIDirectionSchema as OrderHistoryUIDirectionSchema, 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 };
5515
6132
  }
5516
6133
 
5517
6134
  type PoolProviderType = z.infer<typeof PoolProviderSchema>;
@@ -5520,6 +6137,9 @@ type TunaSpotPositionStateType = z.infer<typeof TunaSpotPositionStateSchema>;
5520
6137
  type LimitOrderStateType = z.infer<typeof LimitOrderStateSchema>;
5521
6138
  type TradeHistoryActionType = z.infer<typeof TradeHistoryActionSchema>;
5522
6139
  type TradeHistoryUIDirectionType = z.infer<typeof TradeHistoryUIDirectionSchema>;
6140
+ type OrderHistoryOrderTypeType = z.infer<typeof OrderHistoryOrderTypeSchema>;
6141
+ type OrderHistoryStatusType = z.infer<typeof OrderHistoryStatusSchema>;
6142
+ type OrderHistoryUIDirectionType = z.infer<typeof OrderHistoryUIDirectionSchema>;
5523
6143
  type StakingPositionHistoryActionType = z.infer<typeof StakingPositionHistoryActionTypeSchema>;
5524
6144
  type PoolSubscriptionTopicType = z.infer<typeof PoolSubscriptionTopicSchema>;
5525
6145
  type WalletSubscriptionTopicType = z.infer<typeof WalletSubscriptionTopicSchema>;
@@ -5540,6 +6160,7 @@ type TunaPosition = z.infer<typeof TunaPosition$1>;
5540
6160
  type TunaSpotPosition = z.infer<typeof TunaSpotPosition$1>;
5541
6161
  type LimitOrder = z.infer<typeof LimitOrder$1>;
5542
6162
  type TradeHistoryEntry = z.infer<typeof TradeHistoryEntry$1>;
6163
+ type OrderHistoryEntry = z.infer<typeof OrderHistoryEntry$1>;
5543
6164
  type StakingPosition = z.infer<typeof StakingPosition$1>;
5544
6165
  type StakingTreasury = z.infer<typeof StakingTreasury$1>;
5545
6166
  type StakingLeaderboardPage = z.infer<typeof StakingLeaderboardPage$1>;
@@ -5580,6 +6201,13 @@ type GetUserTradeHistoryOptions = {
5580
6201
  limit?: number;
5581
6202
  desc?: boolean;
5582
6203
  };
6204
+ type GetUserOrderHistoryOptions = {
6205
+ pool?: string[];
6206
+ orderType?: OrderHistoryOrderTypeType[];
6207
+ cursor?: string;
6208
+ limit?: number;
6209
+ desc?: boolean;
6210
+ };
5583
6211
  type DurationInMs = number;
5584
6212
  declare enum ProviderFilter {
5585
6213
  ORCA = "orca",
@@ -5652,6 +6280,7 @@ declare class TunaApiClient {
5652
6280
  getUserLimitOrders(userAddress: string, options?: GetUserLimitOrdersOptions): Promise<LimitOrder[]>;
5653
6281
  getUserLimitOrderByAddress(userAddress: string, limitOrderAddress: string): Promise<LimitOrder>;
5654
6282
  getUserTradeHistory(userAddress: string, options?: GetUserTradeHistoryOptions): Promise<TradeHistoryEntry[]>;
6283
+ getUserOrderHistory(userAddress: string, options?: GetUserOrderHistoryOptions): Promise<OrderHistoryEntry[]>;
5655
6284
  getUserStakingPosition(userAddress: string): Promise<StakingPosition>;
5656
6285
  getUserStakingPositionHistory(userAddress: string): Promise<StakingPositionHistoryAction[]>;
5657
6286
  getFeesStats(from: Date, to: Date, interval: string): Promise<FeesStatsGroup[]>;
@@ -5662,4 +6291,4 @@ declare class TunaApiClient {
5662
6291
  private appendUrlSearchParams;
5663
6292
  }
5664
6293
 
5665
- 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 };
6294
+ export { type DurationInMs, type FeesStatsGroup, type GetPoolPriceCandlesOptions, type GetUserLimitOrdersOptions, type GetUserOrderHistoryOptions, type GetUserTradeHistoryOptions, type LendingPosition, type LimitOrder, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type OrderBook, type OrderBookEntry, type OrderHistoryEntry, type OrderHistoryOrderTypeType, type OrderHistoryStatusType, type OrderHistoryUIDirectionType, 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 };