@crypticdot/defituna-api 1.2.0 → 1.3.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.mts CHANGED
@@ -5,6 +5,7 @@ declare const NotificationEntity: {
5
5
  readonly POOL_PRICE: "pool_price";
6
6
  readonly ORDER_BOOK: "order_book";
7
7
  readonly TUNA_POSITION: "tuna_position";
8
+ readonly TUNA_SPOT_POSITION: "tuna_spot_position";
8
9
  readonly LENDING_POSITION: "lending_position";
9
10
  readonly STAKING_POSITION: "staking_position";
10
11
  readonly FUSION_LIMIT_ORDER: "fusion_limit_order";
@@ -53,7 +54,7 @@ declare const WalletSubscriptionTopic: {
53
54
  readonly FUSION_LIMIT_ORDERS: "fusion_limit_orders";
54
55
  readonly STAKING_POSITION: "staking_position";
55
56
  };
56
- declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
57
+ declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
57
58
  declare const NotificationActionSchema: z.ZodEnum<["create", ...("create" | "update")[]]>;
58
59
  declare const PoolProviderSchema: z.ZodEnum<["orca", ...("orca" | "fusion")[]]>;
59
60
  declare const TunaPositionStateSchema: z.ZodEnum<["open", ...("open" | "liquidated" | "closed_by_limit_order" | "closed")[]]>;
@@ -1913,7 +1914,7 @@ declare const OrderBookNotificationMeta: z.ZodObject<{
1913
1914
  }>;
1914
1915
  declare const PoolSwapNotification: z.ZodObject<{
1915
1916
  meta: z.ZodTypeAny;
1916
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
1917
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
1917
1918
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
1918
1919
  data: z.ZodObject<{
1919
1920
  id: z.ZodString;
@@ -1944,7 +1945,7 @@ declare const PoolSwapNotification: z.ZodObject<{
1944
1945
  authority: z.ZodNullable<z.ZodString>;
1945
1946
  } | {
1946
1947
  meta: z.ZodNullable<z.ZodUndefined>;
1947
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
1948
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
1948
1949
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
1949
1950
  data: z.ZodObject<{
1950
1951
  id: z.ZodString;
@@ -1986,7 +1987,7 @@ declare const PoolSwapNotification: z.ZodObject<{
1986
1987
  aToB: boolean;
1987
1988
  };
1988
1989
  action: "create" | "update";
1989
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
1990
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
1990
1991
  meta?: any;
1991
1992
  } | {
1992
1993
  authority: string | null;
@@ -2001,7 +2002,7 @@ declare const PoolSwapNotification: z.ZodObject<{
2001
2002
  aToB: boolean;
2002
2003
  };
2003
2004
  action: "create" | "update";
2004
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2005
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2005
2006
  meta?: any;
2006
2007
  }, {
2007
2008
  authority: string | null;
@@ -2016,7 +2017,7 @@ declare const PoolSwapNotification: z.ZodObject<{
2016
2017
  aToB: boolean;
2017
2018
  };
2018
2019
  action: "create" | "update";
2019
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2020
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2020
2021
  meta?: any;
2021
2022
  } | {
2022
2023
  authority: string | null;
@@ -2031,12 +2032,12 @@ declare const PoolSwapNotification: z.ZodObject<{
2031
2032
  aToB: boolean;
2032
2033
  };
2033
2034
  action: "create" | "update";
2034
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2035
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2035
2036
  meta?: any;
2036
2037
  }>;
2037
2038
  declare const PoolPriceUpdateNotification: z.ZodObject<{
2038
2039
  meta: z.ZodTypeAny;
2039
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2040
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2040
2041
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2041
2042
  data: z.ZodObject<{
2042
2043
  pool: z.ZodString;
@@ -2058,7 +2059,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
2058
2059
  authority: z.ZodNullable<z.ZodString>;
2059
2060
  } | {
2060
2061
  meta: z.ZodNullable<z.ZodUndefined>;
2061
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2062
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2062
2063
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2063
2064
  data: z.ZodObject<{
2064
2065
  pool: z.ZodString;
@@ -2088,7 +2089,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
2088
2089
  pool: string;
2089
2090
  };
2090
2091
  action: "create" | "update";
2091
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2092
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2092
2093
  meta?: any;
2093
2094
  } | {
2094
2095
  authority: string | null;
@@ -2100,7 +2101,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
2100
2101
  pool: string;
2101
2102
  };
2102
2103
  action: "create" | "update";
2103
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2104
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2104
2105
  meta?: any;
2105
2106
  }, {
2106
2107
  authority: string | null;
@@ -2112,7 +2113,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
2112
2113
  pool: string;
2113
2114
  };
2114
2115
  action: "create" | "update";
2115
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2116
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2116
2117
  meta?: any;
2117
2118
  } | {
2118
2119
  authority: string | null;
@@ -2124,7 +2125,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
2124
2125
  pool: string;
2125
2126
  };
2126
2127
  action: "create" | "update";
2127
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2128
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2128
2129
  meta?: any;
2129
2130
  }>;
2130
2131
  declare const OrderBookNotification: z.ZodObject<{
@@ -2141,7 +2142,7 @@ declare const OrderBookNotification: z.ZodObject<{
2141
2142
  priceStep: number;
2142
2143
  inverted: boolean;
2143
2144
  }>;
2144
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2145
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2145
2146
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2146
2147
  data: z.ZodObject<{
2147
2148
  entries: z.ZodArray<z.ZodObject<{
@@ -2212,7 +2213,7 @@ declare const OrderBookNotification: z.ZodObject<{
2212
2213
  authority: z.ZodNullable<z.ZodString>;
2213
2214
  } | {
2214
2215
  meta: z.ZodNullable<z.ZodUndefined>;
2215
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2216
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2216
2217
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2217
2218
  data: z.ZodObject<{
2218
2219
  entries: z.ZodArray<z.ZodObject<{
@@ -2305,7 +2306,7 @@ declare const OrderBookNotification: z.ZodObject<{
2305
2306
  inverted: boolean;
2306
2307
  } | null | undefined;
2307
2308
  action: "create" | "update";
2308
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2309
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2309
2310
  } | {
2310
2311
  authority: string | null;
2311
2312
  id: string;
@@ -2330,7 +2331,7 @@ declare const OrderBookNotification: z.ZodObject<{
2330
2331
  inverted: boolean;
2331
2332
  } | null | undefined;
2332
2333
  action: "create" | "update";
2333
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2334
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2334
2335
  }, {
2335
2336
  authority: string | null;
2336
2337
  id: string;
@@ -2355,7 +2356,7 @@ declare const OrderBookNotification: z.ZodObject<{
2355
2356
  inverted: boolean;
2356
2357
  } | null | undefined;
2357
2358
  action: "create" | "update";
2358
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2359
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2359
2360
  } | {
2360
2361
  authority: string | null;
2361
2362
  id: string;
@@ -2380,11 +2381,11 @@ declare const OrderBookNotification: z.ZodObject<{
2380
2381
  inverted: boolean;
2381
2382
  } | null | undefined;
2382
2383
  action: "create" | "update";
2383
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2384
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2384
2385
  }>;
2385
2386
  declare const TunaPositionNotification: z.ZodObject<{
2386
2387
  meta: z.ZodTypeAny;
2387
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2388
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2388
2389
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2389
2390
  data: z.ZodObject<{
2390
2391
  address: z.ZodString;
@@ -2775,7 +2776,7 @@ declare const TunaPositionNotification: z.ZodObject<{
2775
2776
  authority: z.ZodNullable<z.ZodString>;
2776
2777
  } | {
2777
2778
  meta: z.ZodNullable<z.ZodUndefined>;
2778
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2779
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2779
2780
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2780
2781
  data: z.ZodObject<{
2781
2782
  address: z.ZodString;
@@ -3260,7 +3261,7 @@ declare const TunaPositionNotification: z.ZodObject<{
3260
3261
  closedAt: Date | null;
3261
3262
  };
3262
3263
  action: "create" | "update";
3263
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3264
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3264
3265
  meta?: any;
3265
3266
  } | {
3266
3267
  authority: string | null;
@@ -3358,7 +3359,7 @@ declare const TunaPositionNotification: z.ZodObject<{
3358
3359
  closedAt: Date | null;
3359
3360
  };
3360
3361
  action: "create" | "update";
3361
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3362
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3362
3363
  meta?: any;
3363
3364
  }, {
3364
3365
  authority: string | null;
@@ -3456,7 +3457,7 @@ declare const TunaPositionNotification: z.ZodObject<{
3456
3457
  closedAt: Date | null;
3457
3458
  };
3458
3459
  action: "create" | "update";
3459
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3460
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3460
3461
  meta?: any;
3461
3462
  } | {
3462
3463
  authority: string | null;
@@ -3554,12 +3555,12 @@ declare const TunaPositionNotification: z.ZodObject<{
3554
3555
  closedAt: Date | null;
3555
3556
  };
3556
3557
  action: "create" | "update";
3557
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3558
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3558
3559
  meta?: any;
3559
3560
  }>;
3560
3561
  declare const TunaSpotPositionNotification: z.ZodObject<{
3561
3562
  meta: z.ZodTypeAny;
3562
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
3563
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
3563
3564
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
3564
3565
  data: z.ZodObject<{
3565
3566
  address: z.ZodString;
@@ -3710,7 +3711,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3710
3711
  authority: z.ZodNullable<z.ZodString>;
3711
3712
  } | {
3712
3713
  meta: z.ZodNullable<z.ZodUndefined>;
3713
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
3714
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
3714
3715
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
3715
3716
  data: z.ZodObject<{
3716
3717
  address: z.ZodString;
@@ -3902,7 +3903,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3902
3903
  openedAtSlot: bigint;
3903
3904
  };
3904
3905
  action: "create" | "update";
3905
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3906
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3906
3907
  meta?: any;
3907
3908
  } | {
3908
3909
  authority: string | null;
@@ -3947,7 +3948,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3947
3948
  openedAtSlot: bigint;
3948
3949
  };
3949
3950
  action: "create" | "update";
3950
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3951
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3951
3952
  meta?: any;
3952
3953
  }, {
3953
3954
  authority: string | null;
@@ -3992,7 +3993,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3992
3993
  openedAtSlot: bigint;
3993
3994
  };
3994
3995
  action: "create" | "update";
3995
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3996
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3996
3997
  meta?: any;
3997
3998
  } | {
3998
3999
  authority: string | null;
@@ -4037,12 +4038,12 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
4037
4038
  openedAtSlot: bigint;
4038
4039
  };
4039
4040
  action: "create" | "update";
4040
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4041
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4041
4042
  meta?: any;
4042
4043
  }>;
4043
4044
  declare const LendingPositionNotification: z.ZodObject<{
4044
4045
  meta: z.ZodTypeAny;
4045
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4046
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4046
4047
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4047
4048
  data: z.ZodObject<{
4048
4049
  address: z.ZodString;
@@ -4103,7 +4104,7 @@ declare const LendingPositionNotification: z.ZodObject<{
4103
4104
  authority: z.ZodNullable<z.ZodString>;
4104
4105
  } | {
4105
4106
  meta: z.ZodNullable<z.ZodUndefined>;
4106
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4107
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4107
4108
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4108
4109
  data: z.ZodObject<{
4109
4110
  address: z.ZodString;
@@ -4181,7 +4182,7 @@ declare const LendingPositionNotification: z.ZodObject<{
4181
4182
  };
4182
4183
  };
4183
4184
  action: "create" | "update";
4184
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4185
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4185
4186
  meta?: any;
4186
4187
  } | {
4187
4188
  authority: string | null;
@@ -4202,7 +4203,7 @@ declare const LendingPositionNotification: z.ZodObject<{
4202
4203
  };
4203
4204
  };
4204
4205
  action: "create" | "update";
4205
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4206
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4206
4207
  meta?: any;
4207
4208
  }, {
4208
4209
  authority: string | null;
@@ -4223,7 +4224,7 @@ declare const LendingPositionNotification: z.ZodObject<{
4223
4224
  };
4224
4225
  };
4225
4226
  action: "create" | "update";
4226
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4227
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4227
4228
  meta?: any;
4228
4229
  } | {
4229
4230
  authority: string | null;
@@ -4244,12 +4245,12 @@ declare const LendingPositionNotification: z.ZodObject<{
4244
4245
  };
4245
4246
  };
4246
4247
  action: "create" | "update";
4247
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4248
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4248
4249
  meta?: any;
4249
4250
  }>;
4250
4251
  declare const LimitOrderNotification: z.ZodObject<{
4251
4252
  meta: z.ZodTypeAny;
4252
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4253
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4253
4254
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4254
4255
  data: z.ZodObject<{
4255
4256
  address: z.ZodString;
@@ -4328,7 +4329,7 @@ declare const LimitOrderNotification: z.ZodObject<{
4328
4329
  authority: z.ZodNullable<z.ZodString>;
4329
4330
  } | {
4330
4331
  meta: z.ZodNullable<z.ZodUndefined>;
4331
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4332
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4332
4333
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4333
4334
  data: z.ZodObject<{
4334
4335
  address: z.ZodString;
@@ -4430,7 +4431,7 @@ declare const LimitOrderNotification: z.ZodObject<{
4430
4431
  closeTxSignature: string | null;
4431
4432
  };
4432
4433
  action: "create" | "update";
4433
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4434
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4434
4435
  meta?: any;
4435
4436
  } | {
4436
4437
  authority: string | null;
@@ -4457,7 +4458,7 @@ declare const LimitOrderNotification: z.ZodObject<{
4457
4458
  closeTxSignature: string | null;
4458
4459
  };
4459
4460
  action: "create" | "update";
4460
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4461
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4461
4462
  meta?: any;
4462
4463
  }, {
4463
4464
  authority: string | null;
@@ -4484,7 +4485,7 @@ declare const LimitOrderNotification: z.ZodObject<{
4484
4485
  closeTxSignature: string | null;
4485
4486
  };
4486
4487
  action: "create" | "update";
4487
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4488
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4488
4489
  meta?: any;
4489
4490
  } | {
4490
4491
  authority: string | null;
@@ -4511,12 +4512,12 @@ declare const LimitOrderNotification: z.ZodObject<{
4511
4512
  closeTxSignature: string | null;
4512
4513
  };
4513
4514
  action: "create" | "update";
4514
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4515
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4515
4516
  meta?: any;
4516
4517
  }>;
4517
4518
  declare const StakingPositionNotification: z.ZodObject<{
4518
4519
  meta: z.ZodTypeAny;
4519
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4520
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4520
4521
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4521
4522
  data: z.ZodObject<{
4522
4523
  address: z.ZodString;
@@ -4693,7 +4694,7 @@ declare const StakingPositionNotification: z.ZodObject<{
4693
4694
  authority: z.ZodNullable<z.ZodString>;
4694
4695
  } | {
4695
4696
  meta: z.ZodNullable<z.ZodUndefined>;
4696
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4697
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4697
4698
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4698
4699
  data: z.ZodObject<{
4699
4700
  address: z.ZodString;
@@ -4909,7 +4910,7 @@ declare const StakingPositionNotification: z.ZodObject<{
4909
4910
  withdrawAvailableAt: Date | null;
4910
4911
  };
4911
4912
  action: "create" | "update";
4912
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4913
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4913
4914
  meta?: any;
4914
4915
  } | {
4915
4916
  authority: string | null;
@@ -4952,7 +4953,7 @@ declare const StakingPositionNotification: z.ZodObject<{
4952
4953
  withdrawAvailableAt: Date | null;
4953
4954
  };
4954
4955
  action: "create" | "update";
4955
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4956
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4956
4957
  meta?: any;
4957
4958
  }, {
4958
4959
  authority: string | null;
@@ -4995,7 +4996,7 @@ declare const StakingPositionNotification: z.ZodObject<{
4995
4996
  withdrawAvailableAt: Date | null;
4996
4997
  };
4997
4998
  action: "create" | "update";
4998
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4999
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4999
5000
  meta?: any;
5000
5001
  } | {
5001
5002
  authority: string | null;
@@ -5038,7 +5039,7 @@ declare const StakingPositionNotification: z.ZodObject<{
5038
5039
  withdrawAvailableAt: Date | null;
5039
5040
  };
5040
5041
  action: "create" | "update";
5041
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
5042
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
5042
5043
  meta?: any;
5043
5044
  }>;
5044
5045
 
@@ -5117,6 +5118,17 @@ type SubscriptionPayload = {
5117
5118
  topics: WalletSubscriptionTopicType[];
5118
5119
  };
5119
5120
  };
5121
+ type GetUserLimitOrdersOptions = {
5122
+ pool?: string[];
5123
+ status?: LimitOrderStateType[];
5124
+ openedAt?: {
5125
+ from?: Date;
5126
+ to?: Date;
5127
+ };
5128
+ cursor?: string;
5129
+ limit?: number;
5130
+ desc?: boolean;
5131
+ };
5120
5132
  type DurationInMs = number;
5121
5133
  declare enum ProviderFilter {
5122
5134
  ORCA = "orca",
@@ -5186,7 +5198,7 @@ declare class TunaApiClient {
5186
5198
  getUserTunaPositionByAddress(userAddress: string, tunaPositionAddress: string): Promise<TunaPosition>;
5187
5199
  getUserTunaSpotPositions(userAddress: string): Promise<TunaSpotPosition[]>;
5188
5200
  getUserTunaSpotPositionByAddress(userAddress: string, tunaSpotPositionAddress: string): Promise<TunaSpotPosition>;
5189
- getUserLimitOrders(userAddress: string, poolFilter?: string): Promise<LimitOrder[]>;
5201
+ getUserLimitOrders(userAddress: string, options?: GetUserLimitOrdersOptions): Promise<LimitOrder[]>;
5190
5202
  getUserLimitOrderByAddress(userAddress: string, limitOrderAddress: string): Promise<LimitOrder>;
5191
5203
  getUserStakingPosition(userAddress: string): Promise<StakingPosition>;
5192
5204
  getUserStakingPositionHistory(userAddress: string): Promise<StakingPositionHistoryAction[]>;
@@ -5198,4 +5210,4 @@ declare class TunaApiClient {
5198
5210
  private appendUrlSearchParams;
5199
5211
  }
5200
5212
 
5201
- export { type DurationInMs, type FeesStatsGroup, type GetPoolPriceCandlesOptions, type LendingPosition, type LimitOrder, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type OrderBook, type OrderBookEntry, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type StakingLeaderboardPage, type StakingLeaderboardPosition, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingRevenueStatsGroup, type StakingTreasury, type SubscriptionPayload, type Tick, type TokenOraclePrice, TunaApiClient, type TunaApiClientConfig, type TunaPosition, TunaPositionState, type TunaPositionStateType, type TunaSpotPosition, type TunaSpotPositionStateType, type Vault, type VaultHistoricalStats, type WalletSubscriptionTopicType, schemas };
5213
+ export { type DurationInMs, type FeesStatsGroup, type GetPoolPriceCandlesOptions, type GetUserLimitOrdersOptions, type LendingPosition, type LimitOrder, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type OrderBook, type OrderBookEntry, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type StakingLeaderboardPage, type StakingLeaderboardPosition, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingRevenueStatsGroup, type StakingTreasury, type SubscriptionPayload, type Tick, type TokenOraclePrice, TunaApiClient, type TunaApiClientConfig, type TunaPosition, TunaPositionState, type TunaPositionStateType, type TunaSpotPosition, type TunaSpotPositionStateType, type Vault, type VaultHistoricalStats, type WalletSubscriptionTopicType, schemas };
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ declare const NotificationEntity: {
5
5
  readonly POOL_PRICE: "pool_price";
6
6
  readonly ORDER_BOOK: "order_book";
7
7
  readonly TUNA_POSITION: "tuna_position";
8
+ readonly TUNA_SPOT_POSITION: "tuna_spot_position";
8
9
  readonly LENDING_POSITION: "lending_position";
9
10
  readonly STAKING_POSITION: "staking_position";
10
11
  readonly FUSION_LIMIT_ORDER: "fusion_limit_order";
@@ -53,7 +54,7 @@ declare const WalletSubscriptionTopic: {
53
54
  readonly FUSION_LIMIT_ORDERS: "fusion_limit_orders";
54
55
  readonly STAKING_POSITION: "staking_position";
55
56
  };
56
- declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
57
+ declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
57
58
  declare const NotificationActionSchema: z.ZodEnum<["create", ...("create" | "update")[]]>;
58
59
  declare const PoolProviderSchema: z.ZodEnum<["orca", ...("orca" | "fusion")[]]>;
59
60
  declare const TunaPositionStateSchema: z.ZodEnum<["open", ...("open" | "liquidated" | "closed_by_limit_order" | "closed")[]]>;
@@ -1913,7 +1914,7 @@ declare const OrderBookNotificationMeta: z.ZodObject<{
1913
1914
  }>;
1914
1915
  declare const PoolSwapNotification: z.ZodObject<{
1915
1916
  meta: z.ZodTypeAny;
1916
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
1917
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
1917
1918
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
1918
1919
  data: z.ZodObject<{
1919
1920
  id: z.ZodString;
@@ -1944,7 +1945,7 @@ declare const PoolSwapNotification: z.ZodObject<{
1944
1945
  authority: z.ZodNullable<z.ZodString>;
1945
1946
  } | {
1946
1947
  meta: z.ZodNullable<z.ZodUndefined>;
1947
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
1948
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
1948
1949
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
1949
1950
  data: z.ZodObject<{
1950
1951
  id: z.ZodString;
@@ -1986,7 +1987,7 @@ declare const PoolSwapNotification: z.ZodObject<{
1986
1987
  aToB: boolean;
1987
1988
  };
1988
1989
  action: "create" | "update";
1989
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
1990
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
1990
1991
  meta?: any;
1991
1992
  } | {
1992
1993
  authority: string | null;
@@ -2001,7 +2002,7 @@ declare const PoolSwapNotification: z.ZodObject<{
2001
2002
  aToB: boolean;
2002
2003
  };
2003
2004
  action: "create" | "update";
2004
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2005
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2005
2006
  meta?: any;
2006
2007
  }, {
2007
2008
  authority: string | null;
@@ -2016,7 +2017,7 @@ declare const PoolSwapNotification: z.ZodObject<{
2016
2017
  aToB: boolean;
2017
2018
  };
2018
2019
  action: "create" | "update";
2019
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2020
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2020
2021
  meta?: any;
2021
2022
  } | {
2022
2023
  authority: string | null;
@@ -2031,12 +2032,12 @@ declare const PoolSwapNotification: z.ZodObject<{
2031
2032
  aToB: boolean;
2032
2033
  };
2033
2034
  action: "create" | "update";
2034
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2035
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2035
2036
  meta?: any;
2036
2037
  }>;
2037
2038
  declare const PoolPriceUpdateNotification: z.ZodObject<{
2038
2039
  meta: z.ZodTypeAny;
2039
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2040
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2040
2041
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2041
2042
  data: z.ZodObject<{
2042
2043
  pool: z.ZodString;
@@ -2058,7 +2059,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
2058
2059
  authority: z.ZodNullable<z.ZodString>;
2059
2060
  } | {
2060
2061
  meta: z.ZodNullable<z.ZodUndefined>;
2061
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2062
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2062
2063
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2063
2064
  data: z.ZodObject<{
2064
2065
  pool: z.ZodString;
@@ -2088,7 +2089,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
2088
2089
  pool: string;
2089
2090
  };
2090
2091
  action: "create" | "update";
2091
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2092
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2092
2093
  meta?: any;
2093
2094
  } | {
2094
2095
  authority: string | null;
@@ -2100,7 +2101,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
2100
2101
  pool: string;
2101
2102
  };
2102
2103
  action: "create" | "update";
2103
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2104
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2104
2105
  meta?: any;
2105
2106
  }, {
2106
2107
  authority: string | null;
@@ -2112,7 +2113,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
2112
2113
  pool: string;
2113
2114
  };
2114
2115
  action: "create" | "update";
2115
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2116
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2116
2117
  meta?: any;
2117
2118
  } | {
2118
2119
  authority: string | null;
@@ -2124,7 +2125,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
2124
2125
  pool: string;
2125
2126
  };
2126
2127
  action: "create" | "update";
2127
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2128
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2128
2129
  meta?: any;
2129
2130
  }>;
2130
2131
  declare const OrderBookNotification: z.ZodObject<{
@@ -2141,7 +2142,7 @@ declare const OrderBookNotification: z.ZodObject<{
2141
2142
  priceStep: number;
2142
2143
  inverted: boolean;
2143
2144
  }>;
2144
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2145
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2145
2146
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2146
2147
  data: z.ZodObject<{
2147
2148
  entries: z.ZodArray<z.ZodObject<{
@@ -2212,7 +2213,7 @@ declare const OrderBookNotification: z.ZodObject<{
2212
2213
  authority: z.ZodNullable<z.ZodString>;
2213
2214
  } | {
2214
2215
  meta: z.ZodNullable<z.ZodUndefined>;
2215
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2216
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2216
2217
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2217
2218
  data: z.ZodObject<{
2218
2219
  entries: z.ZodArray<z.ZodObject<{
@@ -2305,7 +2306,7 @@ declare const OrderBookNotification: z.ZodObject<{
2305
2306
  inverted: boolean;
2306
2307
  } | null | undefined;
2307
2308
  action: "create" | "update";
2308
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2309
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2309
2310
  } | {
2310
2311
  authority: string | null;
2311
2312
  id: string;
@@ -2330,7 +2331,7 @@ declare const OrderBookNotification: z.ZodObject<{
2330
2331
  inverted: boolean;
2331
2332
  } | null | undefined;
2332
2333
  action: "create" | "update";
2333
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2334
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2334
2335
  }, {
2335
2336
  authority: string | null;
2336
2337
  id: string;
@@ -2355,7 +2356,7 @@ declare const OrderBookNotification: z.ZodObject<{
2355
2356
  inverted: boolean;
2356
2357
  } | null | undefined;
2357
2358
  action: "create" | "update";
2358
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2359
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2359
2360
  } | {
2360
2361
  authority: string | null;
2361
2362
  id: string;
@@ -2380,11 +2381,11 @@ declare const OrderBookNotification: z.ZodObject<{
2380
2381
  inverted: boolean;
2381
2382
  } | null | undefined;
2382
2383
  action: "create" | "update";
2383
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2384
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
2384
2385
  }>;
2385
2386
  declare const TunaPositionNotification: z.ZodObject<{
2386
2387
  meta: z.ZodTypeAny;
2387
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2388
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2388
2389
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2389
2390
  data: z.ZodObject<{
2390
2391
  address: z.ZodString;
@@ -2775,7 +2776,7 @@ declare const TunaPositionNotification: z.ZodObject<{
2775
2776
  authority: z.ZodNullable<z.ZodString>;
2776
2777
  } | {
2777
2778
  meta: z.ZodNullable<z.ZodUndefined>;
2778
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2779
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
2779
2780
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2780
2781
  data: z.ZodObject<{
2781
2782
  address: z.ZodString;
@@ -3260,7 +3261,7 @@ declare const TunaPositionNotification: z.ZodObject<{
3260
3261
  closedAt: Date | null;
3261
3262
  };
3262
3263
  action: "create" | "update";
3263
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3264
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3264
3265
  meta?: any;
3265
3266
  } | {
3266
3267
  authority: string | null;
@@ -3358,7 +3359,7 @@ declare const TunaPositionNotification: z.ZodObject<{
3358
3359
  closedAt: Date | null;
3359
3360
  };
3360
3361
  action: "create" | "update";
3361
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3362
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3362
3363
  meta?: any;
3363
3364
  }, {
3364
3365
  authority: string | null;
@@ -3456,7 +3457,7 @@ declare const TunaPositionNotification: z.ZodObject<{
3456
3457
  closedAt: Date | null;
3457
3458
  };
3458
3459
  action: "create" | "update";
3459
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3460
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3460
3461
  meta?: any;
3461
3462
  } | {
3462
3463
  authority: string | null;
@@ -3554,12 +3555,12 @@ declare const TunaPositionNotification: z.ZodObject<{
3554
3555
  closedAt: Date | null;
3555
3556
  };
3556
3557
  action: "create" | "update";
3557
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3558
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3558
3559
  meta?: any;
3559
3560
  }>;
3560
3561
  declare const TunaSpotPositionNotification: z.ZodObject<{
3561
3562
  meta: z.ZodTypeAny;
3562
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
3563
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
3563
3564
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
3564
3565
  data: z.ZodObject<{
3565
3566
  address: z.ZodString;
@@ -3710,7 +3711,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3710
3711
  authority: z.ZodNullable<z.ZodString>;
3711
3712
  } | {
3712
3713
  meta: z.ZodNullable<z.ZodUndefined>;
3713
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
3714
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
3714
3715
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
3715
3716
  data: z.ZodObject<{
3716
3717
  address: z.ZodString;
@@ -3902,7 +3903,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3902
3903
  openedAtSlot: bigint;
3903
3904
  };
3904
3905
  action: "create" | "update";
3905
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3906
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3906
3907
  meta?: any;
3907
3908
  } | {
3908
3909
  authority: string | null;
@@ -3947,7 +3948,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3947
3948
  openedAtSlot: bigint;
3948
3949
  };
3949
3950
  action: "create" | "update";
3950
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3951
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3951
3952
  meta?: any;
3952
3953
  }, {
3953
3954
  authority: string | null;
@@ -3992,7 +3993,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
3992
3993
  openedAtSlot: bigint;
3993
3994
  };
3994
3995
  action: "create" | "update";
3995
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3996
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3996
3997
  meta?: any;
3997
3998
  } | {
3998
3999
  authority: string | null;
@@ -4037,12 +4038,12 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
4037
4038
  openedAtSlot: bigint;
4038
4039
  };
4039
4040
  action: "create" | "update";
4040
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4041
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4041
4042
  meta?: any;
4042
4043
  }>;
4043
4044
  declare const LendingPositionNotification: z.ZodObject<{
4044
4045
  meta: z.ZodTypeAny;
4045
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4046
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4046
4047
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4047
4048
  data: z.ZodObject<{
4048
4049
  address: z.ZodString;
@@ -4103,7 +4104,7 @@ declare const LendingPositionNotification: z.ZodObject<{
4103
4104
  authority: z.ZodNullable<z.ZodString>;
4104
4105
  } | {
4105
4106
  meta: z.ZodNullable<z.ZodUndefined>;
4106
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4107
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4107
4108
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4108
4109
  data: z.ZodObject<{
4109
4110
  address: z.ZodString;
@@ -4181,7 +4182,7 @@ declare const LendingPositionNotification: z.ZodObject<{
4181
4182
  };
4182
4183
  };
4183
4184
  action: "create" | "update";
4184
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4185
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4185
4186
  meta?: any;
4186
4187
  } | {
4187
4188
  authority: string | null;
@@ -4202,7 +4203,7 @@ declare const LendingPositionNotification: z.ZodObject<{
4202
4203
  };
4203
4204
  };
4204
4205
  action: "create" | "update";
4205
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4206
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4206
4207
  meta?: any;
4207
4208
  }, {
4208
4209
  authority: string | null;
@@ -4223,7 +4224,7 @@ declare const LendingPositionNotification: z.ZodObject<{
4223
4224
  };
4224
4225
  };
4225
4226
  action: "create" | "update";
4226
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4227
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4227
4228
  meta?: any;
4228
4229
  } | {
4229
4230
  authority: string | null;
@@ -4244,12 +4245,12 @@ declare const LendingPositionNotification: z.ZodObject<{
4244
4245
  };
4245
4246
  };
4246
4247
  action: "create" | "update";
4247
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4248
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4248
4249
  meta?: any;
4249
4250
  }>;
4250
4251
  declare const LimitOrderNotification: z.ZodObject<{
4251
4252
  meta: z.ZodTypeAny;
4252
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4253
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4253
4254
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4254
4255
  data: z.ZodObject<{
4255
4256
  address: z.ZodString;
@@ -4328,7 +4329,7 @@ declare const LimitOrderNotification: z.ZodObject<{
4328
4329
  authority: z.ZodNullable<z.ZodString>;
4329
4330
  } | {
4330
4331
  meta: z.ZodNullable<z.ZodUndefined>;
4331
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4332
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4332
4333
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4333
4334
  data: z.ZodObject<{
4334
4335
  address: z.ZodString;
@@ -4430,7 +4431,7 @@ declare const LimitOrderNotification: z.ZodObject<{
4430
4431
  closeTxSignature: string | null;
4431
4432
  };
4432
4433
  action: "create" | "update";
4433
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4434
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4434
4435
  meta?: any;
4435
4436
  } | {
4436
4437
  authority: string | null;
@@ -4457,7 +4458,7 @@ declare const LimitOrderNotification: z.ZodObject<{
4457
4458
  closeTxSignature: string | null;
4458
4459
  };
4459
4460
  action: "create" | "update";
4460
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4461
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4461
4462
  meta?: any;
4462
4463
  }, {
4463
4464
  authority: string | null;
@@ -4484,7 +4485,7 @@ declare const LimitOrderNotification: z.ZodObject<{
4484
4485
  closeTxSignature: string | null;
4485
4486
  };
4486
4487
  action: "create" | "update";
4487
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4488
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4488
4489
  meta?: any;
4489
4490
  } | {
4490
4491
  authority: string | null;
@@ -4511,12 +4512,12 @@ declare const LimitOrderNotification: z.ZodObject<{
4511
4512
  closeTxSignature: string | null;
4512
4513
  };
4513
4514
  action: "create" | "update";
4514
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4515
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4515
4516
  meta?: any;
4516
4517
  }>;
4517
4518
  declare const StakingPositionNotification: z.ZodObject<{
4518
4519
  meta: z.ZodTypeAny;
4519
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4520
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4520
4521
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4521
4522
  data: z.ZodObject<{
4522
4523
  address: z.ZodString;
@@ -4693,7 +4694,7 @@ declare const StakingPositionNotification: z.ZodObject<{
4693
4694
  authority: z.ZodNullable<z.ZodString>;
4694
4695
  } | {
4695
4696
  meta: z.ZodNullable<z.ZodUndefined>;
4696
- entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4697
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
4697
4698
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4698
4699
  data: z.ZodObject<{
4699
4700
  address: z.ZodString;
@@ -4909,7 +4910,7 @@ declare const StakingPositionNotification: z.ZodObject<{
4909
4910
  withdrawAvailableAt: Date | null;
4910
4911
  };
4911
4912
  action: "create" | "update";
4912
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4913
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4913
4914
  meta?: any;
4914
4915
  } | {
4915
4916
  authority: string | null;
@@ -4952,7 +4953,7 @@ declare const StakingPositionNotification: z.ZodObject<{
4952
4953
  withdrawAvailableAt: Date | null;
4953
4954
  };
4954
4955
  action: "create" | "update";
4955
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4956
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4956
4957
  meta?: any;
4957
4958
  }, {
4958
4959
  authority: string | null;
@@ -4995,7 +4996,7 @@ declare const StakingPositionNotification: z.ZodObject<{
4995
4996
  withdrawAvailableAt: Date | null;
4996
4997
  };
4997
4998
  action: "create" | "update";
4998
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4999
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
4999
5000
  meta?: any;
5000
5001
  } | {
5001
5002
  authority: string | null;
@@ -5038,7 +5039,7 @@ declare const StakingPositionNotification: z.ZodObject<{
5038
5039
  withdrawAvailableAt: Date | null;
5039
5040
  };
5040
5041
  action: "create" | "update";
5041
- entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
5042
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
5042
5043
  meta?: any;
5043
5044
  }>;
5044
5045
 
@@ -5117,6 +5118,17 @@ type SubscriptionPayload = {
5117
5118
  topics: WalletSubscriptionTopicType[];
5118
5119
  };
5119
5120
  };
5121
+ type GetUserLimitOrdersOptions = {
5122
+ pool?: string[];
5123
+ status?: LimitOrderStateType[];
5124
+ openedAt?: {
5125
+ from?: Date;
5126
+ to?: Date;
5127
+ };
5128
+ cursor?: string;
5129
+ limit?: number;
5130
+ desc?: boolean;
5131
+ };
5120
5132
  type DurationInMs = number;
5121
5133
  declare enum ProviderFilter {
5122
5134
  ORCA = "orca",
@@ -5186,7 +5198,7 @@ declare class TunaApiClient {
5186
5198
  getUserTunaPositionByAddress(userAddress: string, tunaPositionAddress: string): Promise<TunaPosition>;
5187
5199
  getUserTunaSpotPositions(userAddress: string): Promise<TunaSpotPosition[]>;
5188
5200
  getUserTunaSpotPositionByAddress(userAddress: string, tunaSpotPositionAddress: string): Promise<TunaSpotPosition>;
5189
- getUserLimitOrders(userAddress: string, poolFilter?: string): Promise<LimitOrder[]>;
5201
+ getUserLimitOrders(userAddress: string, options?: GetUserLimitOrdersOptions): Promise<LimitOrder[]>;
5190
5202
  getUserLimitOrderByAddress(userAddress: string, limitOrderAddress: string): Promise<LimitOrder>;
5191
5203
  getUserStakingPosition(userAddress: string): Promise<StakingPosition>;
5192
5204
  getUserStakingPositionHistory(userAddress: string): Promise<StakingPositionHistoryAction[]>;
@@ -5198,4 +5210,4 @@ declare class TunaApiClient {
5198
5210
  private appendUrlSearchParams;
5199
5211
  }
5200
5212
 
5201
- export { type DurationInMs, type FeesStatsGroup, type GetPoolPriceCandlesOptions, type LendingPosition, type LimitOrder, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type OrderBook, type OrderBookEntry, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type StakingLeaderboardPage, type StakingLeaderboardPosition, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingRevenueStatsGroup, type StakingTreasury, type SubscriptionPayload, type Tick, type TokenOraclePrice, TunaApiClient, type TunaApiClientConfig, type TunaPosition, TunaPositionState, type TunaPositionStateType, type TunaSpotPosition, type TunaSpotPositionStateType, type Vault, type VaultHistoricalStats, type WalletSubscriptionTopicType, schemas };
5213
+ export { type DurationInMs, type FeesStatsGroup, type GetPoolPriceCandlesOptions, type GetUserLimitOrdersOptions, type LendingPosition, type LimitOrder, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type OrderBook, type OrderBookEntry, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type StakingLeaderboardPage, type StakingLeaderboardPosition, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingRevenueStatsGroup, type StakingTreasury, type SubscriptionPayload, type Tick, type TokenOraclePrice, TunaApiClient, type TunaApiClientConfig, type TunaPosition, TunaPositionState, type TunaPositionStateType, type TunaSpotPosition, type TunaSpotPositionStateType, type Vault, type VaultHistoricalStats, type WalletSubscriptionTopicType, schemas };
package/dist/index.js CHANGED
@@ -121,6 +121,7 @@ var NotificationEntity = {
121
121
  POOL_PRICE: "pool_price",
122
122
  ORDER_BOOK: "order_book",
123
123
  TUNA_POSITION: "tuna_position",
124
+ TUNA_SPOT_POSITION: "tuna_spot_position",
124
125
  LENDING_POSITION: "lending_position",
125
126
  STAKING_POSITION: "staking_position",
126
127
  FUSION_LIMIT_ORDER: "fusion_limit_order"
@@ -739,10 +740,32 @@ var TunaApiClient = class {
739
740
  const url = this.buildURL(`users/${userAddress}/spot-positions/${tunaSpotPositionAddress}`);
740
741
  return await this.httpRequest(url, TunaSpotPosition);
741
742
  }
742
- async getUserLimitOrders(userAddress, poolFilter) {
743
- const url = this.appendUrlSearchParams(this.buildURL(`users/${userAddress}/limit-orders`), {
744
- pool: poolFilter || void 0
745
- });
743
+ async getUserLimitOrders(userAddress, options) {
744
+ let query = {};
745
+ if (options) {
746
+ if (options.pool?.length) {
747
+ query.pool = options.pool.join(",");
748
+ }
749
+ if (options.status?.length) {
750
+ query.status = options.status.join(",");
751
+ }
752
+ if (options.openedAt?.from) {
753
+ query.opened_at_from = options.openedAt.from.toISOString();
754
+ }
755
+ if (options.openedAt?.to) {
756
+ query.opened_at_from = options.openedAt.to.toISOString();
757
+ }
758
+ if (options.limit) {
759
+ query.limit = options.limit;
760
+ }
761
+ if (options.cursor) {
762
+ query.cursor = options.cursor;
763
+ }
764
+ if (options.desc !== void 0) {
765
+ query.desc = options.desc;
766
+ }
767
+ }
768
+ const url = this.appendUrlSearchParams(this.buildURL(`users/${userAddress}/limit-orders`), query);
746
769
  return await this.httpRequest(url, LimitOrder.array());
747
770
  }
748
771
  async getUserLimitOrderByAddress(userAddress, limitOrderAddress) {
package/dist/index.mjs CHANGED
@@ -86,6 +86,7 @@ var NotificationEntity = {
86
86
  POOL_PRICE: "pool_price",
87
87
  ORDER_BOOK: "order_book",
88
88
  TUNA_POSITION: "tuna_position",
89
+ TUNA_SPOT_POSITION: "tuna_spot_position",
89
90
  LENDING_POSITION: "lending_position",
90
91
  STAKING_POSITION: "staking_position",
91
92
  FUSION_LIMIT_ORDER: "fusion_limit_order"
@@ -704,10 +705,32 @@ var TunaApiClient = class {
704
705
  const url = this.buildURL(`users/${userAddress}/spot-positions/${tunaSpotPositionAddress}`);
705
706
  return await this.httpRequest(url, TunaSpotPosition);
706
707
  }
707
- async getUserLimitOrders(userAddress, poolFilter) {
708
- const url = this.appendUrlSearchParams(this.buildURL(`users/${userAddress}/limit-orders`), {
709
- pool: poolFilter || void 0
710
- });
708
+ async getUserLimitOrders(userAddress, options) {
709
+ let query = {};
710
+ if (options) {
711
+ if (options.pool?.length) {
712
+ query.pool = options.pool.join(",");
713
+ }
714
+ if (options.status?.length) {
715
+ query.status = options.status.join(",");
716
+ }
717
+ if (options.openedAt?.from) {
718
+ query.opened_at_from = options.openedAt.from.toISOString();
719
+ }
720
+ if (options.openedAt?.to) {
721
+ query.opened_at_from = options.openedAt.to.toISOString();
722
+ }
723
+ if (options.limit) {
724
+ query.limit = options.limit;
725
+ }
726
+ if (options.cursor) {
727
+ query.cursor = options.cursor;
728
+ }
729
+ if (options.desc !== void 0) {
730
+ query.desc = options.desc;
731
+ }
732
+ }
733
+ const url = this.appendUrlSearchParams(this.buildURL(`users/${userAddress}/limit-orders`), query);
711
734
  return await this.httpRequest(url, LimitOrder.array());
712
735
  }
713
736
  async getUserLimitOrderByAddress(userAddress, limitOrderAddress) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crypticdot/defituna-api",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -18,6 +18,7 @@
18
18
  "@crypticdot/eslint-config": "^1.0.2",
19
19
  "@crypticdot/prettier-config": "^1.0.0",
20
20
  "@crypticdot/typescript-config": "^1.0.0",
21
+ "@crypticdot/fusionamm-client": "^1.0.62",
21
22
  "@solana/kit": "^2.1.0",
22
23
  "@types/node": "^22.13.14",
23
24
  "decimal.js": "^10.5.0",