@crypticdot/defituna-api 1.3.8 → 1.4.0

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;
@@ -693,22 +758,9 @@ declare const TunaPosition$1: z.ZodObject<{
693
758
  liquidity: z.ZodBigInt;
694
759
  tickLowerIndex: z.ZodNumber;
695
760
  tickUpperIndex: z.ZodNumber;
696
- /**
697
- * @deprecated Use entrySqrtPrice
698
- */
699
- tickEntryIndex: z.ZodNumber;
700
- /**
701
- * @deprecated Use lowerLimitOrderSqrtPrice
702
- */
703
- tickStopLossIndex: z.ZodNumber;
704
- /**
705
- * @deprecated Use upperLimitOrderSqrtPrice
706
- */
707
- tickTakeProfitIndex: z.ZodNumber;
708
761
  entrySqrtPrice: z.ZodBigInt;
709
762
  lowerLimitOrderSqrtPrice: z.ZodBigInt;
710
763
  upperLimitOrderSqrtPrice: z.ZodBigInt;
711
- swapToTokenOnLimitOrder: z.ZodNumber;
712
764
  flags: z.ZodNumber;
713
765
  pool: z.ZodString;
714
766
  poolSqrtPrice: z.ZodBigInt;
@@ -895,13 +947,9 @@ declare const TunaPosition$1: z.ZodObject<{
895
947
  positionMint: string;
896
948
  tickLowerIndex: number;
897
949
  tickUpperIndex: number;
898
- tickEntryIndex: number;
899
- tickStopLossIndex: number;
900
- tickTakeProfitIndex: number;
901
950
  entrySqrtPrice: bigint;
902
951
  lowerLimitOrderSqrtPrice: bigint;
903
952
  upperLimitOrderSqrtPrice: bigint;
904
- swapToTokenOnLimitOrder: number;
905
953
  flags: number;
906
954
  pool: string;
907
955
  poolSqrtPrice: bigint;
@@ -986,13 +1034,9 @@ declare const TunaPosition$1: z.ZodObject<{
986
1034
  positionMint: string;
987
1035
  tickLowerIndex: number;
988
1036
  tickUpperIndex: number;
989
- tickEntryIndex: number;
990
- tickStopLossIndex: number;
991
- tickTakeProfitIndex: number;
992
1037
  entrySqrtPrice: bigint;
993
1038
  lowerLimitOrderSqrtPrice: bigint;
994
1039
  upperLimitOrderSqrtPrice: bigint;
995
- swapToTokenOnLimitOrder: number;
996
1040
  flags: number;
997
1041
  pool: string;
998
1042
  poolSqrtPrice: bigint;
@@ -1539,6 +1583,100 @@ declare const TradeHistoryEntry$1: z.ZodObject<{
1539
1583
  slot: bigint;
1540
1584
  ts: Date;
1541
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.ZodBigInt>;
1620
+ quoteTokenFilledAmount: z.ZodNullable<z.ZodBigInt>;
1621
+ txSignature: z.ZodNullable<z.ZodString>;
1622
+ positionAddress: z.ZodNullable<z.ZodString>;
1623
+ slot: z.ZodBigInt;
1624
+ ts: z.ZodDate;
1625
+ }, "strip", z.ZodTypeAny, {
1626
+ status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
1627
+ authority: string;
1628
+ pool: string;
1629
+ id: string;
1630
+ aToB: boolean;
1631
+ uiDirection: "buy" | "sell" | "long" | "short";
1632
+ uiPrice: number | null;
1633
+ baseToken: {
1634
+ amount: bigint;
1635
+ usd: number;
1636
+ };
1637
+ quoteToken: {
1638
+ amount: bigint;
1639
+ usd: number;
1640
+ };
1641
+ txSignature: string | null;
1642
+ positionAddress: string | null;
1643
+ slot: bigint;
1644
+ ts: Date;
1645
+ orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
1646
+ isReduceOnly: boolean | null;
1647
+ uiTakeProfitPrice: number | null;
1648
+ uiStopLossPrice: number | null;
1649
+ uiExecutionPrice: number | null;
1650
+ baseTokenConsumedAmount: bigint | null;
1651
+ quoteTokenFilledAmount: bigint | null;
1652
+ }, {
1653
+ status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
1654
+ authority: string;
1655
+ pool: string;
1656
+ id: string;
1657
+ aToB: boolean;
1658
+ uiDirection: "buy" | "sell" | "long" | "short";
1659
+ uiPrice: number | null;
1660
+ baseToken: {
1661
+ amount: bigint;
1662
+ usd: number;
1663
+ };
1664
+ quoteToken: {
1665
+ amount: bigint;
1666
+ usd: number;
1667
+ };
1668
+ txSignature: string | null;
1669
+ positionAddress: string | null;
1670
+ slot: bigint;
1671
+ ts: Date;
1672
+ orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
1673
+ isReduceOnly: boolean | null;
1674
+ uiTakeProfitPrice: number | null;
1675
+ uiStopLossPrice: number | null;
1676
+ uiExecutionPrice: number | null;
1677
+ baseTokenConsumedAmount: bigint | null;
1678
+ quoteTokenFilledAmount: bigint | null;
1679
+ }>;
1542
1680
  declare const StakingTreasury$1: z.ZodObject<{
1543
1681
  address: z.ZodString;
1544
1682
  stakedTokenMint: z.ZodString;
@@ -2047,7 +2185,7 @@ declare const OrderBookNotificationMeta: z.ZodObject<{
2047
2185
  }>;
2048
2186
  declare const PoolSwapNotification: z.ZodObject<{
2049
2187
  meta: z.ZodTypeAny;
2050
- 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")[]]>;
2188
+ 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")[]]>;
2051
2189
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2052
2190
  data: z.ZodObject<{
2053
2191
  id: z.ZodString;
@@ -2078,7 +2216,7 @@ declare const PoolSwapNotification: z.ZodObject<{
2078
2216
  authority: z.ZodNullable<z.ZodString>;
2079
2217
  } | {
2080
2218
  meta: z.ZodNullable<z.ZodUndefined>;
2081
- 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")[]]>;
2219
+ 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")[]]>;
2082
2220
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2083
2221
  data: z.ZodObject<{
2084
2222
  id: z.ZodString;
@@ -2120,7 +2258,7 @@ declare const PoolSwapNotification: z.ZodObject<{
2120
2258
  amountUsd: number;
2121
2259
  aToB: boolean;
2122
2260
  };
2123
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2261
+ 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";
2124
2262
  meta?: any;
2125
2263
  } | {
2126
2264
  authority: string | null;
@@ -2135,7 +2273,7 @@ declare const PoolSwapNotification: z.ZodObject<{
2135
2273
  amountUsd: number;
2136
2274
  aToB: boolean;
2137
2275
  };
2138
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2276
+ 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";
2139
2277
  meta?: any;
2140
2278
  }, {
2141
2279
  authority: string | null;
@@ -2150,7 +2288,7 @@ declare const PoolSwapNotification: z.ZodObject<{
2150
2288
  amountUsd: number;
2151
2289
  aToB: boolean;
2152
2290
  };
2153
- 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";
2154
2292
  meta?: any;
2155
2293
  } | {
2156
2294
  authority: string | null;
@@ -2165,12 +2303,12 @@ declare const PoolSwapNotification: z.ZodObject<{
2165
2303
  amountUsd: number;
2166
2304
  aToB: boolean;
2167
2305
  };
2168
- 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";
2169
2307
  meta?: any;
2170
2308
  }>;
2171
2309
  declare const PoolPriceUpdateNotification: z.ZodObject<{
2172
2310
  meta: z.ZodTypeAny;
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")[]]>;
2311
+ 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")[]]>;
2174
2312
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2175
2313
  data: z.ZodObject<{
2176
2314
  pool: z.ZodString;
@@ -2192,7 +2330,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
2192
2330
  authority: z.ZodNullable<z.ZodString>;
2193
2331
  } | {
2194
2332
  meta: z.ZodNullable<z.ZodUndefined>;
2195
- 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")[]]>;
2333
+ 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")[]]>;
2196
2334
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2197
2335
  data: z.ZodObject<{
2198
2336
  pool: z.ZodString;
@@ -2222,7 +2360,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
2222
2360
  sqrtPrice: bigint;
2223
2361
  pool: string;
2224
2362
  };
2225
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2363
+ 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";
2226
2364
  meta?: any;
2227
2365
  } | {
2228
2366
  authority: string | null;
@@ -2234,7 +2372,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
2234
2372
  sqrtPrice: bigint;
2235
2373
  pool: string;
2236
2374
  };
2237
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2375
+ 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";
2238
2376
  meta?: any;
2239
2377
  }, {
2240
2378
  authority: string | null;
@@ -2246,7 +2384,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
2246
2384
  sqrtPrice: bigint;
2247
2385
  pool: string;
2248
2386
  };
2249
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2387
+ 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";
2250
2388
  meta?: any;
2251
2389
  } | {
2252
2390
  authority: string | null;
@@ -2258,7 +2396,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
2258
2396
  sqrtPrice: bigint;
2259
2397
  pool: string;
2260
2398
  };
2261
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2399
+ 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";
2262
2400
  meta?: any;
2263
2401
  }>;
2264
2402
  declare const OrderBookNotification: z.ZodObject<{
@@ -2275,7 +2413,7 @@ declare const OrderBookNotification: z.ZodObject<{
2275
2413
  priceStep: number;
2276
2414
  inverted: boolean;
2277
2415
  }>;
2278
- 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")[]]>;
2416
+ 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")[]]>;
2279
2417
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2280
2418
  data: z.ZodObject<{
2281
2419
  entries: z.ZodArray<z.ZodObject<{
@@ -2346,7 +2484,7 @@ declare const OrderBookNotification: z.ZodObject<{
2346
2484
  authority: z.ZodNullable<z.ZodString>;
2347
2485
  } | {
2348
2486
  meta: z.ZodNullable<z.ZodUndefined>;
2349
- 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")[]]>;
2487
+ 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")[]]>;
2350
2488
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2351
2489
  data: z.ZodObject<{
2352
2490
  entries: z.ZodArray<z.ZodObject<{
@@ -2439,7 +2577,7 @@ declare const OrderBookNotification: z.ZodObject<{
2439
2577
  priceStep: number;
2440
2578
  inverted: boolean;
2441
2579
  } | null | undefined;
2442
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2580
+ 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";
2443
2581
  } | {
2444
2582
  authority: string | null;
2445
2583
  id: string;
@@ -2464,7 +2602,7 @@ declare const OrderBookNotification: z.ZodObject<{
2464
2602
  priceStep: number;
2465
2603
  inverted: boolean;
2466
2604
  } | null | undefined;
2467
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2605
+ 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";
2468
2606
  }, {
2469
2607
  authority: string | null;
2470
2608
  id: string;
@@ -2489,7 +2627,7 @@ declare const OrderBookNotification: z.ZodObject<{
2489
2627
  priceStep: number;
2490
2628
  inverted: boolean;
2491
2629
  } | null | undefined;
2492
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2630
+ 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";
2493
2631
  } | {
2494
2632
  authority: string | null;
2495
2633
  id: string;
@@ -2514,11 +2652,11 @@ declare const OrderBookNotification: z.ZodObject<{
2514
2652
  priceStep: number;
2515
2653
  inverted: boolean;
2516
2654
  } | null | undefined;
2517
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
2655
+ 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";
2518
2656
  }>;
2519
2657
  declare const TunaPositionNotification: z.ZodObject<{
2520
2658
  meta: z.ZodTypeAny;
2521
- 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")[]]>;
2659
+ 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")[]]>;
2522
2660
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2523
2661
  data: z.ZodObject<{
2524
2662
  address: z.ZodString;
@@ -2529,22 +2667,9 @@ declare const TunaPositionNotification: z.ZodObject<{
2529
2667
  liquidity: z.ZodBigInt;
2530
2668
  tickLowerIndex: z.ZodNumber;
2531
2669
  tickUpperIndex: z.ZodNumber;
2532
- /**
2533
- * @deprecated Use entrySqrtPrice
2534
- */
2535
- tickEntryIndex: z.ZodNumber;
2536
- /**
2537
- * @deprecated Use lowerLimitOrderSqrtPrice
2538
- */
2539
- tickStopLossIndex: z.ZodNumber;
2540
- /**
2541
- * @deprecated Use upperLimitOrderSqrtPrice
2542
- */
2543
- tickTakeProfitIndex: z.ZodNumber;
2544
2670
  entrySqrtPrice: z.ZodBigInt;
2545
2671
  lowerLimitOrderSqrtPrice: z.ZodBigInt;
2546
2672
  upperLimitOrderSqrtPrice: z.ZodBigInt;
2547
- swapToTokenOnLimitOrder: z.ZodNumber;
2548
2673
  flags: z.ZodNumber;
2549
2674
  pool: z.ZodString;
2550
2675
  poolSqrtPrice: z.ZodBigInt;
@@ -2731,13 +2856,9 @@ declare const TunaPositionNotification: z.ZodObject<{
2731
2856
  positionMint: string;
2732
2857
  tickLowerIndex: number;
2733
2858
  tickUpperIndex: number;
2734
- tickEntryIndex: number;
2735
- tickStopLossIndex: number;
2736
- tickTakeProfitIndex: number;
2737
2859
  entrySqrtPrice: bigint;
2738
2860
  lowerLimitOrderSqrtPrice: bigint;
2739
2861
  upperLimitOrderSqrtPrice: bigint;
2740
- swapToTokenOnLimitOrder: number;
2741
2862
  flags: number;
2742
2863
  pool: string;
2743
2864
  poolSqrtPrice: bigint;
@@ -2822,13 +2943,9 @@ declare const TunaPositionNotification: z.ZodObject<{
2822
2943
  positionMint: string;
2823
2944
  tickLowerIndex: number;
2824
2945
  tickUpperIndex: number;
2825
- tickEntryIndex: number;
2826
- tickStopLossIndex: number;
2827
- tickTakeProfitIndex: number;
2828
2946
  entrySqrtPrice: bigint;
2829
2947
  lowerLimitOrderSqrtPrice: bigint;
2830
2948
  upperLimitOrderSqrtPrice: bigint;
2831
- swapToTokenOnLimitOrder: number;
2832
2949
  flags: number;
2833
2950
  pool: string;
2834
2951
  poolSqrtPrice: bigint;
@@ -2909,7 +3026,7 @@ declare const TunaPositionNotification: z.ZodObject<{
2909
3026
  authority: z.ZodNullable<z.ZodString>;
2910
3027
  } | {
2911
3028
  meta: z.ZodNullable<z.ZodUndefined>;
2912
- 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")[]]>;
3029
+ 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")[]]>;
2913
3030
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2914
3031
  data: z.ZodObject<{
2915
3032
  address: z.ZodString;
@@ -2920,22 +3037,9 @@ declare const TunaPositionNotification: z.ZodObject<{
2920
3037
  liquidity: z.ZodBigInt;
2921
3038
  tickLowerIndex: z.ZodNumber;
2922
3039
  tickUpperIndex: z.ZodNumber;
2923
- /**
2924
- * @deprecated Use entrySqrtPrice
2925
- */
2926
- tickEntryIndex: z.ZodNumber;
2927
- /**
2928
- * @deprecated Use lowerLimitOrderSqrtPrice
2929
- */
2930
- tickStopLossIndex: z.ZodNumber;
2931
- /**
2932
- * @deprecated Use upperLimitOrderSqrtPrice
2933
- */
2934
- tickTakeProfitIndex: z.ZodNumber;
2935
3040
  entrySqrtPrice: z.ZodBigInt;
2936
3041
  lowerLimitOrderSqrtPrice: z.ZodBigInt;
2937
3042
  upperLimitOrderSqrtPrice: z.ZodBigInt;
2938
- swapToTokenOnLimitOrder: z.ZodNumber;
2939
3043
  flags: z.ZodNumber;
2940
3044
  pool: z.ZodString;
2941
3045
  poolSqrtPrice: z.ZodBigInt;
@@ -3122,13 +3226,9 @@ declare const TunaPositionNotification: z.ZodObject<{
3122
3226
  positionMint: string;
3123
3227
  tickLowerIndex: number;
3124
3228
  tickUpperIndex: number;
3125
- tickEntryIndex: number;
3126
- tickStopLossIndex: number;
3127
- tickTakeProfitIndex: number;
3128
3229
  entrySqrtPrice: bigint;
3129
3230
  lowerLimitOrderSqrtPrice: bigint;
3130
3231
  upperLimitOrderSqrtPrice: bigint;
3131
- swapToTokenOnLimitOrder: number;
3132
3232
  flags: number;
3133
3233
  pool: string;
3134
3234
  poolSqrtPrice: bigint;
@@ -3213,13 +3313,9 @@ declare const TunaPositionNotification: z.ZodObject<{
3213
3313
  positionMint: string;
3214
3314
  tickLowerIndex: number;
3215
3315
  tickUpperIndex: number;
3216
- tickEntryIndex: number;
3217
- tickStopLossIndex: number;
3218
- tickTakeProfitIndex: number;
3219
3316
  entrySqrtPrice: bigint;
3220
3317
  lowerLimitOrderSqrtPrice: bigint;
3221
3318
  upperLimitOrderSqrtPrice: bigint;
3222
- swapToTokenOnLimitOrder: number;
3223
3319
  flags: number;
3224
3320
  pool: string;
3225
3321
  poolSqrtPrice: bigint;
@@ -3311,13 +3407,9 @@ declare const TunaPositionNotification: z.ZodObject<{
3311
3407
  positionMint: string;
3312
3408
  tickLowerIndex: number;
3313
3409
  tickUpperIndex: number;
3314
- tickEntryIndex: number;
3315
- tickStopLossIndex: number;
3316
- tickTakeProfitIndex: number;
3317
3410
  entrySqrtPrice: bigint;
3318
3411
  lowerLimitOrderSqrtPrice: bigint;
3319
3412
  upperLimitOrderSqrtPrice: bigint;
3320
- swapToTokenOnLimitOrder: number;
3321
3413
  flags: number;
3322
3414
  pool: string;
3323
3415
  poolSqrtPrice: bigint;
@@ -3394,7 +3486,7 @@ declare const TunaPositionNotification: z.ZodObject<{
3394
3486
  updatedAtSlot: bigint;
3395
3487
  closedAt: Date | null;
3396
3488
  };
3397
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
3489
+ 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";
3398
3490
  meta?: any;
3399
3491
  } | {
3400
3492
  authority: string | null;
@@ -3409,13 +3501,9 @@ declare const TunaPositionNotification: z.ZodObject<{
3409
3501
  positionMint: string;
3410
3502
  tickLowerIndex: number;
3411
3503
  tickUpperIndex: number;
3412
- tickEntryIndex: number;
3413
- tickStopLossIndex: number;
3414
- tickTakeProfitIndex: number;
3415
3504
  entrySqrtPrice: bigint;
3416
3505
  lowerLimitOrderSqrtPrice: bigint;
3417
3506
  upperLimitOrderSqrtPrice: bigint;
3418
- swapToTokenOnLimitOrder: number;
3419
3507
  flags: number;
3420
3508
  pool: string;
3421
3509
  poolSqrtPrice: bigint;
@@ -3492,7 +3580,7 @@ declare const TunaPositionNotification: z.ZodObject<{
3492
3580
  updatedAtSlot: bigint;
3493
3581
  closedAt: Date | null;
3494
3582
  };
3495
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
3583
+ 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";
3496
3584
  meta?: any;
3497
3585
  }, {
3498
3586
  authority: string | null;
@@ -3507,13 +3595,9 @@ declare const TunaPositionNotification: z.ZodObject<{
3507
3595
  positionMint: string;
3508
3596
  tickLowerIndex: number;
3509
3597
  tickUpperIndex: number;
3510
- tickEntryIndex: number;
3511
- tickStopLossIndex: number;
3512
- tickTakeProfitIndex: number;
3513
3598
  entrySqrtPrice: bigint;
3514
3599
  lowerLimitOrderSqrtPrice: bigint;
3515
3600
  upperLimitOrderSqrtPrice: bigint;
3516
- swapToTokenOnLimitOrder: number;
3517
3601
  flags: number;
3518
3602
  pool: string;
3519
3603
  poolSqrtPrice: bigint;
@@ -3590,7 +3674,7 @@ declare const TunaPositionNotification: z.ZodObject<{
3590
3674
  updatedAtSlot: bigint;
3591
3675
  closedAt: Date | null;
3592
3676
  };
3593
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
3677
+ 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";
3594
3678
  meta?: any;
3595
3679
  } | {
3596
3680
  authority: string | null;
@@ -3605,13 +3689,9 @@ declare const TunaPositionNotification: z.ZodObject<{
3605
3689
  positionMint: string;
3606
3690
  tickLowerIndex: number;
3607
3691
  tickUpperIndex: number;
3608
- tickEntryIndex: number;
3609
- tickStopLossIndex: number;
3610
- tickTakeProfitIndex: number;
3611
3692
  entrySqrtPrice: bigint;
3612
3693
  lowerLimitOrderSqrtPrice: bigint;
3613
3694
  upperLimitOrderSqrtPrice: bigint;
3614
- swapToTokenOnLimitOrder: number;
3615
3695
  flags: number;
3616
3696
  pool: string;
3617
3697
  poolSqrtPrice: bigint;
@@ -3688,12 +3768,12 @@ declare const TunaPositionNotification: z.ZodObject<{
3688
3768
  updatedAtSlot: bigint;
3689
3769
  closedAt: Date | null;
3690
3770
  };
3691
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
3771
+ 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";
3692
3772
  meta?: any;
3693
3773
  }>;
3694
3774
  declare const TunaSpotPositionNotification: z.ZodObject<{
3695
3775
  meta: z.ZodTypeAny;
3696
- 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")[]]>;
3776
+ 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")[]]>;
3697
3777
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
3698
3778
  data: z.ZodObject<{
3699
3779
  address: z.ZodString;
@@ -3847,7 +3927,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3847
3927
  authority: z.ZodNullable<z.ZodString>;
3848
3928
  } | {
3849
3929
  meta: z.ZodNullable<z.ZodUndefined>;
3850
- 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")[]]>;
3930
+ 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")[]]>;
3851
3931
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
3852
3932
  data: z.ZodObject<{
3853
3933
  address: z.ZodString;
@@ -4043,7 +4123,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
4043
4123
  leverage: number;
4044
4124
  openedAtSlot: bigint;
4045
4125
  };
4046
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4126
+ 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";
4047
4127
  meta?: any;
4048
4128
  } | {
4049
4129
  authority: string | null;
@@ -4089,7 +4169,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
4089
4169
  leverage: number;
4090
4170
  openedAtSlot: bigint;
4091
4171
  };
4092
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4172
+ 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";
4093
4173
  meta?: any;
4094
4174
  }, {
4095
4175
  authority: string | null;
@@ -4135,7 +4215,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
4135
4215
  leverage: number;
4136
4216
  openedAtSlot: bigint;
4137
4217
  };
4138
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4218
+ 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";
4139
4219
  meta?: any;
4140
4220
  } | {
4141
4221
  authority: string | null;
@@ -4181,12 +4261,12 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
4181
4261
  leverage: number;
4182
4262
  openedAtSlot: bigint;
4183
4263
  };
4184
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4264
+ 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";
4185
4265
  meta?: any;
4186
4266
  }>;
4187
4267
  declare const LendingPositionNotification: z.ZodObject<{
4188
4268
  meta: z.ZodTypeAny;
4189
- 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")[]]>;
4269
+ 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")[]]>;
4190
4270
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4191
4271
  data: z.ZodObject<{
4192
4272
  address: z.ZodString;
@@ -4247,7 +4327,7 @@ declare const LendingPositionNotification: z.ZodObject<{
4247
4327
  authority: z.ZodNullable<z.ZodString>;
4248
4328
  } | {
4249
4329
  meta: z.ZodNullable<z.ZodUndefined>;
4250
- 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")[]]>;
4330
+ 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")[]]>;
4251
4331
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4252
4332
  data: z.ZodObject<{
4253
4333
  address: z.ZodString;
@@ -4325,7 +4405,7 @@ declare const LendingPositionNotification: z.ZodObject<{
4325
4405
  usd: number;
4326
4406
  };
4327
4407
  };
4328
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4408
+ 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";
4329
4409
  meta?: any;
4330
4410
  } | {
4331
4411
  authority: string | null;
@@ -4346,7 +4426,7 @@ declare const LendingPositionNotification: z.ZodObject<{
4346
4426
  usd: number;
4347
4427
  };
4348
4428
  };
4349
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4429
+ 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";
4350
4430
  meta?: any;
4351
4431
  }, {
4352
4432
  authority: string | null;
@@ -4367,7 +4447,7 @@ declare const LendingPositionNotification: z.ZodObject<{
4367
4447
  usd: number;
4368
4448
  };
4369
4449
  };
4370
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4450
+ 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";
4371
4451
  meta?: any;
4372
4452
  } | {
4373
4453
  authority: string | null;
@@ -4388,12 +4468,12 @@ declare const LendingPositionNotification: z.ZodObject<{
4388
4468
  usd: number;
4389
4469
  };
4390
4470
  };
4391
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4471
+ 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";
4392
4472
  meta?: any;
4393
4473
  }>;
4394
4474
  declare const LimitOrderNotification: z.ZodObject<{
4395
4475
  meta: z.ZodTypeAny;
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")[]]>;
4476
+ 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
4477
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4398
4478
  data: z.ZodObject<{
4399
4479
  address: z.ZodString;
@@ -4472,7 +4552,7 @@ declare const LimitOrderNotification: z.ZodObject<{
4472
4552
  authority: z.ZodNullable<z.ZodString>;
4473
4553
  } | {
4474
4554
  meta: z.ZodNullable<z.ZodUndefined>;
4475
- 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")[]]>;
4555
+ 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")[]]>;
4476
4556
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4477
4557
  data: z.ZodObject<{
4478
4558
  address: z.ZodString;
@@ -4574,7 +4654,7 @@ declare const LimitOrderNotification: z.ZodObject<{
4574
4654
  openTxSignature: string;
4575
4655
  closeTxSignature: string | null;
4576
4656
  };
4577
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4657
+ 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";
4578
4658
  meta?: any;
4579
4659
  } | {
4580
4660
  authority: string | null;
@@ -4601,7 +4681,7 @@ declare const LimitOrderNotification: z.ZodObject<{
4601
4681
  openTxSignature: string;
4602
4682
  closeTxSignature: string | null;
4603
4683
  };
4604
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4684
+ 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";
4605
4685
  meta?: any;
4606
4686
  }, {
4607
4687
  authority: string | null;
@@ -4628,7 +4708,7 @@ declare const LimitOrderNotification: z.ZodObject<{
4628
4708
  openTxSignature: string;
4629
4709
  closeTxSignature: string | null;
4630
4710
  };
4631
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4711
+ 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";
4632
4712
  meta?: any;
4633
4713
  } | {
4634
4714
  authority: string | null;
@@ -4655,12 +4735,12 @@ declare const LimitOrderNotification: z.ZodObject<{
4655
4735
  openTxSignature: string;
4656
4736
  closeTxSignature: string | null;
4657
4737
  };
4658
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
4738
+ 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";
4659
4739
  meta?: any;
4660
4740
  }>;
4661
4741
  declare const TradeHistoryEntryNotification: z.ZodObject<{
4662
4742
  meta: z.ZodTypeAny;
4663
- 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")[]]>;
4743
+ 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")[]]>;
4664
4744
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4665
4745
  data: z.ZodObject<{
4666
4746
  id: z.ZodString;
@@ -4775,7 +4855,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
4775
4855
  authority: z.ZodNullable<z.ZodString>;
4776
4856
  } | {
4777
4857
  meta: z.ZodNullable<z.ZodUndefined>;
4778
- 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")[]]>;
4858
+ 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")[]]>;
4779
4859
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4780
4860
  data: z.ZodObject<{
4781
4861
  id: z.ZodString;
@@ -4921,7 +5001,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
4921
5001
  slot: bigint;
4922
5002
  ts: Date;
4923
5003
  };
4924
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
5004
+ 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";
4925
5005
  meta?: any;
4926
5006
  } | {
4927
5007
  authority: string | null;
@@ -4956,7 +5036,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
4956
5036
  slot: bigint;
4957
5037
  ts: Date;
4958
5038
  };
4959
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
5039
+ 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";
4960
5040
  meta?: any;
4961
5041
  }, {
4962
5042
  authority: string | null;
@@ -4991,7 +5071,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
4991
5071
  slot: bigint;
4992
5072
  ts: Date;
4993
5073
  };
4994
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
5074
+ 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";
4995
5075
  meta?: any;
4996
5076
  } | {
4997
5077
  authority: string | null;
@@ -5026,12 +5106,349 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
5026
5106
  slot: bigint;
5027
5107
  ts: Date;
5028
5108
  };
5029
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
5109
+ 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";
5110
+ meta?: any;
5111
+ }>;
5112
+ declare const OrderHistoryEntryNotification: z.ZodObject<{
5113
+ meta: z.ZodTypeAny;
5114
+ 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")[]]>;
5115
+ action: z.ZodEnum<["create", ...("create" | "update")[]]>;
5116
+ data: z.ZodObject<{
5117
+ id: z.ZodString;
5118
+ pool: z.ZodString;
5119
+ authority: z.ZodString;
5120
+ orderType: z.ZodEnum<["market", ...("market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market")[]]>;
5121
+ isReduceOnly: z.ZodNullable<z.ZodBoolean>;
5122
+ uiTakeProfitPrice: z.ZodNullable<z.ZodNumber>;
5123
+ uiStopLossPrice: z.ZodNullable<z.ZodNumber>;
5124
+ aToB: z.ZodBoolean;
5125
+ uiDirection: z.ZodEnum<["buy", ...("buy" | "sell" | "long" | "short")[]]>;
5126
+ uiPrice: z.ZodNullable<z.ZodNumber>;
5127
+ uiExecutionPrice: z.ZodNullable<z.ZodNumber>;
5128
+ status: z.ZodEnum<["open", ...("open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected")[]]>;
5129
+ baseToken: z.ZodObject<{
5130
+ amount: z.ZodBigInt;
5131
+ usd: z.ZodNumber;
5132
+ }, "strip", z.ZodTypeAny, {
5133
+ amount: bigint;
5134
+ usd: number;
5135
+ }, {
5136
+ amount: bigint;
5137
+ usd: number;
5138
+ }>;
5139
+ quoteToken: z.ZodObject<{
5140
+ amount: z.ZodBigInt;
5141
+ usd: z.ZodNumber;
5142
+ }, "strip", z.ZodTypeAny, {
5143
+ amount: bigint;
5144
+ usd: number;
5145
+ }, {
5146
+ amount: bigint;
5147
+ usd: number;
5148
+ }>;
5149
+ baseTokenConsumedAmount: z.ZodNullable<z.ZodBigInt>;
5150
+ quoteTokenFilledAmount: z.ZodNullable<z.ZodBigInt>;
5151
+ txSignature: z.ZodNullable<z.ZodString>;
5152
+ positionAddress: z.ZodNullable<z.ZodString>;
5153
+ slot: z.ZodBigInt;
5154
+ ts: z.ZodDate;
5155
+ }, "strip", z.ZodTypeAny, {
5156
+ status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
5157
+ authority: string;
5158
+ pool: string;
5159
+ id: string;
5160
+ aToB: boolean;
5161
+ uiDirection: "buy" | "sell" | "long" | "short";
5162
+ uiPrice: number | null;
5163
+ baseToken: {
5164
+ amount: bigint;
5165
+ usd: number;
5166
+ };
5167
+ quoteToken: {
5168
+ amount: bigint;
5169
+ usd: number;
5170
+ };
5171
+ txSignature: string | null;
5172
+ positionAddress: string | null;
5173
+ slot: bigint;
5174
+ ts: Date;
5175
+ orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5176
+ isReduceOnly: boolean | null;
5177
+ uiTakeProfitPrice: number | null;
5178
+ uiStopLossPrice: number | null;
5179
+ uiExecutionPrice: number | null;
5180
+ baseTokenConsumedAmount: bigint | null;
5181
+ quoteTokenFilledAmount: bigint | null;
5182
+ }, {
5183
+ status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
5184
+ authority: string;
5185
+ pool: string;
5186
+ id: string;
5187
+ aToB: boolean;
5188
+ uiDirection: "buy" | "sell" | "long" | "short";
5189
+ uiPrice: number | null;
5190
+ baseToken: {
5191
+ amount: bigint;
5192
+ usd: number;
5193
+ };
5194
+ quoteToken: {
5195
+ amount: bigint;
5196
+ usd: number;
5197
+ };
5198
+ txSignature: string | null;
5199
+ positionAddress: string | null;
5200
+ slot: bigint;
5201
+ ts: Date;
5202
+ orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5203
+ isReduceOnly: boolean | null;
5204
+ uiTakeProfitPrice: number | null;
5205
+ uiStopLossPrice: number | null;
5206
+ uiExecutionPrice: number | null;
5207
+ baseTokenConsumedAmount: bigint | null;
5208
+ quoteTokenFilledAmount: bigint | null;
5209
+ }>;
5210
+ id: z.ZodString;
5211
+ authority: z.ZodNullable<z.ZodString>;
5212
+ } | {
5213
+ meta: z.ZodNullable<z.ZodUndefined>;
5214
+ 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")[]]>;
5215
+ action: z.ZodEnum<["create", ...("create" | "update")[]]>;
5216
+ data: z.ZodObject<{
5217
+ id: z.ZodString;
5218
+ pool: z.ZodString;
5219
+ authority: z.ZodString;
5220
+ orderType: z.ZodEnum<["market", ...("market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market")[]]>;
5221
+ isReduceOnly: z.ZodNullable<z.ZodBoolean>;
5222
+ uiTakeProfitPrice: z.ZodNullable<z.ZodNumber>;
5223
+ uiStopLossPrice: z.ZodNullable<z.ZodNumber>;
5224
+ aToB: z.ZodBoolean;
5225
+ uiDirection: z.ZodEnum<["buy", ...("buy" | "sell" | "long" | "short")[]]>;
5226
+ uiPrice: z.ZodNullable<z.ZodNumber>;
5227
+ uiExecutionPrice: z.ZodNullable<z.ZodNumber>;
5228
+ status: z.ZodEnum<["open", ...("open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected")[]]>;
5229
+ baseToken: z.ZodObject<{
5230
+ amount: z.ZodBigInt;
5231
+ usd: z.ZodNumber;
5232
+ }, "strip", z.ZodTypeAny, {
5233
+ amount: bigint;
5234
+ usd: number;
5235
+ }, {
5236
+ amount: bigint;
5237
+ usd: number;
5238
+ }>;
5239
+ quoteToken: z.ZodObject<{
5240
+ amount: z.ZodBigInt;
5241
+ usd: z.ZodNumber;
5242
+ }, "strip", z.ZodTypeAny, {
5243
+ amount: bigint;
5244
+ usd: number;
5245
+ }, {
5246
+ amount: bigint;
5247
+ usd: number;
5248
+ }>;
5249
+ baseTokenConsumedAmount: z.ZodNullable<z.ZodBigInt>;
5250
+ quoteTokenFilledAmount: z.ZodNullable<z.ZodBigInt>;
5251
+ txSignature: z.ZodNullable<z.ZodString>;
5252
+ positionAddress: z.ZodNullable<z.ZodString>;
5253
+ slot: z.ZodBigInt;
5254
+ ts: z.ZodDate;
5255
+ }, "strip", z.ZodTypeAny, {
5256
+ status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
5257
+ authority: string;
5258
+ pool: string;
5259
+ id: string;
5260
+ aToB: boolean;
5261
+ uiDirection: "buy" | "sell" | "long" | "short";
5262
+ uiPrice: number | null;
5263
+ baseToken: {
5264
+ amount: bigint;
5265
+ usd: number;
5266
+ };
5267
+ quoteToken: {
5268
+ amount: bigint;
5269
+ usd: number;
5270
+ };
5271
+ txSignature: string | null;
5272
+ positionAddress: string | null;
5273
+ slot: bigint;
5274
+ ts: Date;
5275
+ orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5276
+ isReduceOnly: boolean | null;
5277
+ uiTakeProfitPrice: number | null;
5278
+ uiStopLossPrice: number | null;
5279
+ uiExecutionPrice: number | null;
5280
+ baseTokenConsumedAmount: bigint | null;
5281
+ quoteTokenFilledAmount: bigint | null;
5282
+ }, {
5283
+ status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
5284
+ authority: string;
5285
+ pool: string;
5286
+ id: string;
5287
+ aToB: boolean;
5288
+ uiDirection: "buy" | "sell" | "long" | "short";
5289
+ uiPrice: number | null;
5290
+ baseToken: {
5291
+ amount: bigint;
5292
+ usd: number;
5293
+ };
5294
+ quoteToken: {
5295
+ amount: bigint;
5296
+ usd: number;
5297
+ };
5298
+ txSignature: string | null;
5299
+ positionAddress: string | null;
5300
+ slot: bigint;
5301
+ ts: Date;
5302
+ orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5303
+ isReduceOnly: boolean | null;
5304
+ uiTakeProfitPrice: number | null;
5305
+ uiStopLossPrice: number | null;
5306
+ uiExecutionPrice: number | null;
5307
+ baseTokenConsumedAmount: bigint | null;
5308
+ quoteTokenFilledAmount: bigint | null;
5309
+ }>;
5310
+ id: z.ZodString;
5311
+ authority: z.ZodNullable<z.ZodString>;
5312
+ }, "strip", z.ZodTypeAny, {
5313
+ authority: string | null;
5314
+ id: string;
5315
+ action: "create" | "update";
5316
+ data: {
5317
+ status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
5318
+ authority: string;
5319
+ pool: string;
5320
+ id: string;
5321
+ aToB: boolean;
5322
+ uiDirection: "buy" | "sell" | "long" | "short";
5323
+ uiPrice: number | null;
5324
+ baseToken: {
5325
+ amount: bigint;
5326
+ usd: number;
5327
+ };
5328
+ quoteToken: {
5329
+ amount: bigint;
5330
+ usd: number;
5331
+ };
5332
+ txSignature: string | null;
5333
+ positionAddress: string | null;
5334
+ slot: bigint;
5335
+ ts: Date;
5336
+ orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5337
+ isReduceOnly: boolean | null;
5338
+ uiTakeProfitPrice: number | null;
5339
+ uiStopLossPrice: number | null;
5340
+ uiExecutionPrice: number | null;
5341
+ baseTokenConsumedAmount: bigint | null;
5342
+ quoteTokenFilledAmount: bigint | null;
5343
+ };
5344
+ 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";
5345
+ meta?: any;
5346
+ } | {
5347
+ authority: string | null;
5348
+ id: string;
5349
+ action: "create" | "update";
5350
+ data: {
5351
+ status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
5352
+ authority: string;
5353
+ pool: string;
5354
+ id: string;
5355
+ aToB: boolean;
5356
+ uiDirection: "buy" | "sell" | "long" | "short";
5357
+ uiPrice: number | null;
5358
+ baseToken: {
5359
+ amount: bigint;
5360
+ usd: number;
5361
+ };
5362
+ quoteToken: {
5363
+ amount: bigint;
5364
+ usd: number;
5365
+ };
5366
+ txSignature: string | null;
5367
+ positionAddress: string | null;
5368
+ slot: bigint;
5369
+ ts: Date;
5370
+ orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5371
+ isReduceOnly: boolean | null;
5372
+ uiTakeProfitPrice: number | null;
5373
+ uiStopLossPrice: number | null;
5374
+ uiExecutionPrice: number | null;
5375
+ baseTokenConsumedAmount: bigint | null;
5376
+ quoteTokenFilledAmount: bigint | null;
5377
+ };
5378
+ 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";
5379
+ meta?: any;
5380
+ }, {
5381
+ authority: string | null;
5382
+ id: string;
5383
+ action: "create" | "update";
5384
+ data: {
5385
+ status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
5386
+ authority: string;
5387
+ pool: string;
5388
+ id: string;
5389
+ aToB: boolean;
5390
+ uiDirection: "buy" | "sell" | "long" | "short";
5391
+ uiPrice: number | null;
5392
+ baseToken: {
5393
+ amount: bigint;
5394
+ usd: number;
5395
+ };
5396
+ quoteToken: {
5397
+ amount: bigint;
5398
+ usd: number;
5399
+ };
5400
+ txSignature: string | null;
5401
+ positionAddress: string | null;
5402
+ slot: bigint;
5403
+ ts: Date;
5404
+ orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5405
+ isReduceOnly: boolean | null;
5406
+ uiTakeProfitPrice: number | null;
5407
+ uiStopLossPrice: number | null;
5408
+ uiExecutionPrice: number | null;
5409
+ baseTokenConsumedAmount: bigint | null;
5410
+ quoteTokenFilledAmount: bigint | null;
5411
+ };
5412
+ 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";
5413
+ meta?: any;
5414
+ } | {
5415
+ authority: string | null;
5416
+ id: string;
5417
+ action: "create" | "update";
5418
+ data: {
5419
+ status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
5420
+ authority: string;
5421
+ pool: string;
5422
+ id: string;
5423
+ aToB: boolean;
5424
+ uiDirection: "buy" | "sell" | "long" | "short";
5425
+ uiPrice: number | null;
5426
+ baseToken: {
5427
+ amount: bigint;
5428
+ usd: number;
5429
+ };
5430
+ quoteToken: {
5431
+ amount: bigint;
5432
+ usd: number;
5433
+ };
5434
+ txSignature: string | null;
5435
+ positionAddress: string | null;
5436
+ slot: bigint;
5437
+ ts: Date;
5438
+ orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5439
+ isReduceOnly: boolean | null;
5440
+ uiTakeProfitPrice: number | null;
5441
+ uiStopLossPrice: number | null;
5442
+ uiExecutionPrice: number | null;
5443
+ baseTokenConsumedAmount: bigint | null;
5444
+ quoteTokenFilledAmount: bigint | null;
5445
+ };
5446
+ 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";
5030
5447
  meta?: any;
5031
5448
  }>;
5032
5449
  declare const StakingPositionNotification: z.ZodObject<{
5033
5450
  meta: z.ZodTypeAny;
5034
- 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")[]]>;
5451
+ 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")[]]>;
5035
5452
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
5036
5453
  data: z.ZodObject<{
5037
5454
  address: z.ZodString;
@@ -5208,7 +5625,7 @@ declare const StakingPositionNotification: z.ZodObject<{
5208
5625
  authority: z.ZodNullable<z.ZodString>;
5209
5626
  } | {
5210
5627
  meta: z.ZodNullable<z.ZodUndefined>;
5211
- 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")[]]>;
5628
+ 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")[]]>;
5212
5629
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
5213
5630
  data: z.ZodObject<{
5214
5631
  address: z.ZodString;
@@ -5424,7 +5841,7 @@ declare const StakingPositionNotification: z.ZodObject<{
5424
5841
  lastUnstakedAt: Date | null;
5425
5842
  withdrawAvailableAt: Date | null;
5426
5843
  };
5427
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
5844
+ 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";
5428
5845
  meta?: any;
5429
5846
  } | {
5430
5847
  authority: string | null;
@@ -5467,7 +5884,7 @@ declare const StakingPositionNotification: z.ZodObject<{
5467
5884
  lastUnstakedAt: Date | null;
5468
5885
  withdrawAvailableAt: Date | null;
5469
5886
  };
5470
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
5887
+ 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";
5471
5888
  meta?: any;
5472
5889
  }, {
5473
5890
  authority: string | null;
@@ -5510,7 +5927,7 @@ declare const StakingPositionNotification: z.ZodObject<{
5510
5927
  lastUnstakedAt: Date | null;
5511
5928
  withdrawAvailableAt: Date | null;
5512
5929
  };
5513
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
5930
+ 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";
5514
5931
  meta?: any;
5515
5932
  } | {
5516
5933
  authority: string | null;
@@ -5553,7 +5970,7 @@ declare const StakingPositionNotification: z.ZodObject<{
5553
5970
  lastUnstakedAt: Date | null;
5554
5971
  withdrawAvailableAt: Date | null;
5555
5972
  };
5556
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
5973
+ 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";
5557
5974
  meta?: any;
5558
5975
  }>;
5559
5976
 
@@ -5567,6 +5984,13 @@ declare const schemas_NotificationEntity: typeof NotificationEntity;
5567
5984
  declare const schemas_NotificationEntitySchema: typeof NotificationEntitySchema;
5568
5985
  declare const schemas_OrderBookNotification: typeof OrderBookNotification;
5569
5986
  declare const schemas_OrderBookNotificationMeta: typeof OrderBookNotificationMeta;
5987
+ declare const schemas_OrderHistoryEntryNotification: typeof OrderHistoryEntryNotification;
5988
+ declare const schemas_OrderHistoryOrderType: typeof OrderHistoryOrderType;
5989
+ declare const schemas_OrderHistoryOrderTypeSchema: typeof OrderHistoryOrderTypeSchema;
5990
+ declare const schemas_OrderHistoryStatus: typeof OrderHistoryStatus;
5991
+ declare const schemas_OrderHistoryStatusSchema: typeof OrderHistoryStatusSchema;
5992
+ declare const schemas_OrderHistoryUIDirection: typeof OrderHistoryUIDirection;
5993
+ declare const schemas_OrderHistoryUIDirectionSchema: typeof OrderHistoryUIDirectionSchema;
5570
5994
  declare const schemas_PoolPriceUpdateNotification: typeof PoolPriceUpdateNotification;
5571
5995
  declare const schemas_PoolProvider: typeof PoolProvider;
5572
5996
  declare const schemas_PoolProviderSchema: typeof PoolProviderSchema;
@@ -5590,7 +6014,7 @@ declare const schemas_UpdateStreamSubscriptionResult: typeof UpdateStreamSubscri
5590
6014
  declare const schemas_WalletSubscriptionTopic: typeof WalletSubscriptionTopic;
5591
6015
  declare const schemas_WalletSubscriptionTopicSchema: typeof WalletSubscriptionTopicSchema;
5592
6016
  declare namespace schemas {
5593
- 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 };
6017
+ 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 };
5594
6018
  }
5595
6019
 
5596
6020
  type PoolProviderType = z.infer<typeof PoolProviderSchema>;
@@ -5599,6 +6023,9 @@ type TunaSpotPositionStateType = z.infer<typeof TunaSpotPositionStateSchema>;
5599
6023
  type LimitOrderStateType = z.infer<typeof LimitOrderStateSchema>;
5600
6024
  type TradeHistoryActionType = z.infer<typeof TradeHistoryActionSchema>;
5601
6025
  type TradeHistoryUIDirectionType = z.infer<typeof TradeHistoryUIDirectionSchema>;
6026
+ type OrderHistoryOrderTypeType = z.infer<typeof OrderHistoryOrderTypeSchema>;
6027
+ type OrderHistoryStatusType = z.infer<typeof OrderHistoryStatusSchema>;
6028
+ type OrderHistoryUIDirectionType = z.infer<typeof OrderHistoryUIDirectionSchema>;
5602
6029
  type StakingPositionHistoryActionType = z.infer<typeof StakingPositionHistoryActionTypeSchema>;
5603
6030
  type PoolSubscriptionTopicType = z.infer<typeof PoolSubscriptionTopicSchema>;
5604
6031
  type WalletSubscriptionTopicType = z.infer<typeof WalletSubscriptionTopicSchema>;
@@ -5619,6 +6046,7 @@ type TunaPosition = z.infer<typeof TunaPosition$1>;
5619
6046
  type TunaSpotPosition = z.infer<typeof TunaSpotPosition$1>;
5620
6047
  type LimitOrder = z.infer<typeof LimitOrder$1>;
5621
6048
  type TradeHistoryEntry = z.infer<typeof TradeHistoryEntry$1>;
6049
+ type OrderHistoryEntry = z.infer<typeof OrderHistoryEntry$1>;
5622
6050
  type StakingPosition = z.infer<typeof StakingPosition$1>;
5623
6051
  type StakingTreasury = z.infer<typeof StakingTreasury$1>;
5624
6052
  type StakingLeaderboardPage = z.infer<typeof StakingLeaderboardPage$1>;
@@ -5659,6 +6087,13 @@ type GetUserTradeHistoryOptions = {
5659
6087
  limit?: number;
5660
6088
  desc?: boolean;
5661
6089
  };
6090
+ type GetUserOrderHistoryOptions = {
6091
+ pool?: string[];
6092
+ orderType?: OrderHistoryOrderTypeType[];
6093
+ cursor?: string;
6094
+ limit?: number;
6095
+ desc?: boolean;
6096
+ };
5662
6097
  type DurationInMs = number;
5663
6098
  declare enum ProviderFilter {
5664
6099
  ORCA = "orca",
@@ -5731,6 +6166,7 @@ declare class TunaApiClient {
5731
6166
  getUserLimitOrders(userAddress: string, options?: GetUserLimitOrdersOptions): Promise<LimitOrder[]>;
5732
6167
  getUserLimitOrderByAddress(userAddress: string, limitOrderAddress: string): Promise<LimitOrder>;
5733
6168
  getUserTradeHistory(userAddress: string, options?: GetUserTradeHistoryOptions): Promise<TradeHistoryEntry[]>;
6169
+ getUserOrderHistory(userAddress: string, options?: GetUserOrderHistoryOptions): Promise<OrderHistoryEntry[]>;
5734
6170
  getUserStakingPosition(userAddress: string): Promise<StakingPosition>;
5735
6171
  getUserStakingPositionHistory(userAddress: string): Promise<StakingPositionHistoryAction[]>;
5736
6172
  getFeesStats(from: Date, to: Date, interval: string): Promise<FeesStatsGroup[]>;
@@ -5741,4 +6177,4 @@ declare class TunaApiClient {
5741
6177
  private appendUrlSearchParams;
5742
6178
  }
5743
6179
 
5744
- 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 };
6180
+ 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 };