@crypticdot/defituna-api 1.1.56 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.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";
@@ -23,6 +24,10 @@ declare const TunaPositionState: {
23
24
  readonly CLOSED_BY_LIMIT_ORDER: "closed_by_limit_order";
24
25
  readonly CLOSED: "closed";
25
26
  };
27
+ declare const TunaSpotPositionState: {
28
+ readonly OPEN: "open";
29
+ readonly CLOSED: "closed";
30
+ };
26
31
  declare const LimitOrderState: {
27
32
  readonly OPEN: "open";
28
33
  readonly PARTIALLY_FILLED: "partially_filled";
@@ -44,18 +49,20 @@ declare const PoolSubscriptionTopic: {
44
49
  };
45
50
  declare const WalletSubscriptionTopic: {
46
51
  readonly TUNA_POSITIONS: "tuna_positions";
52
+ readonly TUNA_SPOT_POSITIONS: "tuna_spot_positions";
47
53
  readonly LENDING_POSITIONS: "lending_positions";
48
54
  readonly FUSION_LIMIT_ORDERS: "fusion_limit_orders";
49
55
  readonly STAKING_POSITION: "staking_position";
50
56
  };
51
- 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")[]]>;
52
58
  declare const NotificationActionSchema: z.ZodEnum<["create", ...("create" | "update")[]]>;
53
59
  declare const PoolProviderSchema: z.ZodEnum<["orca", ...("orca" | "fusion")[]]>;
54
60
  declare const TunaPositionStateSchema: z.ZodEnum<["open", ...("open" | "liquidated" | "closed_by_limit_order" | "closed")[]]>;
61
+ declare const TunaSpotPositionStateSchema: z.ZodEnum<["open", ...("open" | "closed")[]]>;
55
62
  declare const LimitOrderStateSchema: z.ZodEnum<["open", ...("open" | "partially_filled" | "filled" | "complete" | "cancelled")[]]>;
56
63
  declare const StakingPositionHistoryActionTypeSchema: z.ZodEnum<["stake", ...("stake" | "unstake" | "withdraw" | "claim_rewards" | "compound_rewards")[]]>;
57
64
  declare const PoolSubscriptionTopicSchema: z.ZodEnum<["order_book", ...("order_book" | "pool_prices" | "pool_swaps")[]]>;
58
- declare const WalletSubscriptionTopicSchema: z.ZodEnum<["tuna_positions", ...("staking_position" | "tuna_positions" | "lending_positions" | "fusion_limit_orders")[]]>;
65
+ declare const WalletSubscriptionTopicSchema: z.ZodEnum<["tuna_positions", ...("staking_position" | "tuna_positions" | "tuna_spot_positions" | "lending_positions" | "fusion_limit_orders")[]]>;
59
66
  declare const PaginationMeta$1: z.ZodObject<{
60
67
  total: z.ZodNumber;
61
68
  }, "strip", z.ZodTypeAny, {
@@ -1041,6 +1048,151 @@ declare const TunaPosition$1: z.ZodObject<{
1041
1048
  updatedAtSlot: bigint;
1042
1049
  closedAt: Date | null;
1043
1050
  }>;
1051
+ declare const TunaSpotPosition$1: z.ZodObject<{
1052
+ address: z.ZodString;
1053
+ authority: z.ZodString;
1054
+ version: z.ZodNumber;
1055
+ state: z.ZodEnum<["open", ...("open" | "closed")[]]>;
1056
+ entrySqrtPrice: z.ZodBigInt;
1057
+ lowerLimitOrderSqrtPrice: z.ZodBigInt;
1058
+ upperLimitOrderSqrtPrice: z.ZodBigInt;
1059
+ flags: z.ZodNumber;
1060
+ pool: z.ZodString;
1061
+ poolSqrtPrice: z.ZodBigInt;
1062
+ collateralToken: z.ZodString;
1063
+ borrowToken: z.ZodString;
1064
+ positionToken: z.ZodString;
1065
+ collateral: z.ZodObject<{
1066
+ amount: z.ZodBigInt;
1067
+ usd: z.ZodNumber;
1068
+ }, "strip", z.ZodTypeAny, {
1069
+ amount: bigint;
1070
+ usd: number;
1071
+ }, {
1072
+ amount: bigint;
1073
+ usd: number;
1074
+ }>;
1075
+ loanFunds: z.ZodObject<{
1076
+ amount: z.ZodBigInt;
1077
+ usd: z.ZodNumber;
1078
+ }, "strip", z.ZodTypeAny, {
1079
+ amount: bigint;
1080
+ usd: number;
1081
+ }, {
1082
+ amount: bigint;
1083
+ usd: number;
1084
+ }>;
1085
+ currentLoan: z.ZodObject<{
1086
+ amount: z.ZodBigInt;
1087
+ usd: z.ZodNumber;
1088
+ }, "strip", z.ZodTypeAny, {
1089
+ amount: bigint;
1090
+ usd: number;
1091
+ }, {
1092
+ amount: bigint;
1093
+ usd: number;
1094
+ }>;
1095
+ total: z.ZodObject<{
1096
+ amount: z.ZodBigInt;
1097
+ usd: z.ZodNumber;
1098
+ }, "strip", z.ZodTypeAny, {
1099
+ amount: bigint;
1100
+ usd: number;
1101
+ }, {
1102
+ amount: bigint;
1103
+ usd: number;
1104
+ }>;
1105
+ pnlUsd: z.ZodObject<{
1106
+ amount: z.ZodNumber;
1107
+ bps: z.ZodNumber;
1108
+ }, "strip", z.ZodTypeAny, {
1109
+ amount: number;
1110
+ bps: number;
1111
+ }, {
1112
+ amount: number;
1113
+ bps: number;
1114
+ }>;
1115
+ openedAt: z.ZodDate;
1116
+ openedAtSlot: z.ZodBigInt;
1117
+ updatedAtSlot: z.ZodBigInt;
1118
+ closedAt: z.ZodNullable<z.ZodDate>;
1119
+ }, "strip", z.ZodTypeAny, {
1120
+ total: {
1121
+ amount: bigint;
1122
+ usd: number;
1123
+ };
1124
+ address: string;
1125
+ authority: string;
1126
+ version: number;
1127
+ state: "open" | "closed";
1128
+ entrySqrtPrice: bigint;
1129
+ lowerLimitOrderSqrtPrice: bigint;
1130
+ upperLimitOrderSqrtPrice: bigint;
1131
+ flags: number;
1132
+ pool: string;
1133
+ poolSqrtPrice: bigint;
1134
+ pnlUsd: {
1135
+ amount: number;
1136
+ bps: number;
1137
+ };
1138
+ openedAt: Date;
1139
+ updatedAtSlot: bigint;
1140
+ closedAt: Date | null;
1141
+ collateralToken: string;
1142
+ borrowToken: string;
1143
+ positionToken: string;
1144
+ collateral: {
1145
+ amount: bigint;
1146
+ usd: number;
1147
+ };
1148
+ loanFunds: {
1149
+ amount: bigint;
1150
+ usd: number;
1151
+ };
1152
+ currentLoan: {
1153
+ amount: bigint;
1154
+ usd: number;
1155
+ };
1156
+ openedAtSlot: bigint;
1157
+ }, {
1158
+ total: {
1159
+ amount: bigint;
1160
+ usd: number;
1161
+ };
1162
+ address: string;
1163
+ authority: string;
1164
+ version: number;
1165
+ state: "open" | "closed";
1166
+ entrySqrtPrice: bigint;
1167
+ lowerLimitOrderSqrtPrice: bigint;
1168
+ upperLimitOrderSqrtPrice: bigint;
1169
+ flags: number;
1170
+ pool: string;
1171
+ poolSqrtPrice: bigint;
1172
+ pnlUsd: {
1173
+ amount: number;
1174
+ bps: number;
1175
+ };
1176
+ openedAt: Date;
1177
+ updatedAtSlot: bigint;
1178
+ closedAt: Date | null;
1179
+ collateralToken: string;
1180
+ borrowToken: string;
1181
+ positionToken: string;
1182
+ collateral: {
1183
+ amount: bigint;
1184
+ usd: number;
1185
+ };
1186
+ loanFunds: {
1187
+ amount: bigint;
1188
+ usd: number;
1189
+ };
1190
+ currentLoan: {
1191
+ amount: bigint;
1192
+ usd: number;
1193
+ };
1194
+ openedAtSlot: bigint;
1195
+ }>;
1044
1196
  declare const PoolSwap$1: z.ZodObject<{
1045
1197
  id: z.ZodString;
1046
1198
  amountIn: z.ZodBigInt;
@@ -1762,7 +1914,7 @@ declare const OrderBookNotificationMeta: z.ZodObject<{
1762
1914
  }>;
1763
1915
  declare const PoolSwapNotification: z.ZodObject<{
1764
1916
  meta: z.ZodTypeAny;
1765
- 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")[]]>;
1766
1918
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
1767
1919
  data: z.ZodObject<{
1768
1920
  id: z.ZodString;
@@ -1793,7 +1945,7 @@ declare const PoolSwapNotification: z.ZodObject<{
1793
1945
  authority: z.ZodNullable<z.ZodString>;
1794
1946
  } | {
1795
1947
  meta: z.ZodNullable<z.ZodUndefined>;
1796
- 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")[]]>;
1797
1949
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
1798
1950
  data: z.ZodObject<{
1799
1951
  id: z.ZodString;
@@ -1835,7 +1987,7 @@ declare const PoolSwapNotification: z.ZodObject<{
1835
1987
  aToB: boolean;
1836
1988
  };
1837
1989
  action: "create" | "update";
1838
- 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";
1839
1991
  meta?: any;
1840
1992
  } | {
1841
1993
  authority: string | null;
@@ -1850,7 +2002,7 @@ declare const PoolSwapNotification: z.ZodObject<{
1850
2002
  aToB: boolean;
1851
2003
  };
1852
2004
  action: "create" | "update";
1853
- 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";
1854
2006
  meta?: any;
1855
2007
  }, {
1856
2008
  authority: string | null;
@@ -1865,7 +2017,7 @@ declare const PoolSwapNotification: z.ZodObject<{
1865
2017
  aToB: boolean;
1866
2018
  };
1867
2019
  action: "create" | "update";
1868
- 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";
1869
2021
  meta?: any;
1870
2022
  } | {
1871
2023
  authority: string | null;
@@ -1880,12 +2032,12 @@ declare const PoolSwapNotification: z.ZodObject<{
1880
2032
  aToB: boolean;
1881
2033
  };
1882
2034
  action: "create" | "update";
1883
- 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";
1884
2036
  meta?: any;
1885
2037
  }>;
1886
2038
  declare const PoolPriceUpdateNotification: z.ZodObject<{
1887
2039
  meta: z.ZodTypeAny;
1888
- 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")[]]>;
1889
2041
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
1890
2042
  data: z.ZodObject<{
1891
2043
  pool: z.ZodString;
@@ -1907,7 +2059,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
1907
2059
  authority: z.ZodNullable<z.ZodString>;
1908
2060
  } | {
1909
2061
  meta: z.ZodNullable<z.ZodUndefined>;
1910
- 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")[]]>;
1911
2063
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
1912
2064
  data: z.ZodObject<{
1913
2065
  pool: z.ZodString;
@@ -1937,7 +2089,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
1937
2089
  pool: string;
1938
2090
  };
1939
2091
  action: "create" | "update";
1940
- 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";
1941
2093
  meta?: any;
1942
2094
  } | {
1943
2095
  authority: string | null;
@@ -1949,7 +2101,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
1949
2101
  pool: string;
1950
2102
  };
1951
2103
  action: "create" | "update";
1952
- 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";
1953
2105
  meta?: any;
1954
2106
  }, {
1955
2107
  authority: string | null;
@@ -1961,7 +2113,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
1961
2113
  pool: string;
1962
2114
  };
1963
2115
  action: "create" | "update";
1964
- 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";
1965
2117
  meta?: any;
1966
2118
  } | {
1967
2119
  authority: string | null;
@@ -1973,7 +2125,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
1973
2125
  pool: string;
1974
2126
  };
1975
2127
  action: "create" | "update";
1976
- 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";
1977
2129
  meta?: any;
1978
2130
  }>;
1979
2131
  declare const OrderBookNotification: z.ZodObject<{
@@ -1990,7 +2142,7 @@ declare const OrderBookNotification: z.ZodObject<{
1990
2142
  priceStep: number;
1991
2143
  inverted: boolean;
1992
2144
  }>;
1993
- 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")[]]>;
1994
2146
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
1995
2147
  data: z.ZodObject<{
1996
2148
  entries: z.ZodArray<z.ZodObject<{
@@ -2061,7 +2213,7 @@ declare const OrderBookNotification: z.ZodObject<{
2061
2213
  authority: z.ZodNullable<z.ZodString>;
2062
2214
  } | {
2063
2215
  meta: z.ZodNullable<z.ZodUndefined>;
2064
- 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")[]]>;
2065
2217
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2066
2218
  data: z.ZodObject<{
2067
2219
  entries: z.ZodArray<z.ZodObject<{
@@ -2154,7 +2306,7 @@ declare const OrderBookNotification: z.ZodObject<{
2154
2306
  inverted: boolean;
2155
2307
  } | null | undefined;
2156
2308
  action: "create" | "update";
2157
- 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";
2158
2310
  } | {
2159
2311
  authority: string | null;
2160
2312
  id: string;
@@ -2179,7 +2331,7 @@ declare const OrderBookNotification: z.ZodObject<{
2179
2331
  inverted: boolean;
2180
2332
  } | null | undefined;
2181
2333
  action: "create" | "update";
2182
- 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";
2183
2335
  }, {
2184
2336
  authority: string | null;
2185
2337
  id: string;
@@ -2204,7 +2356,7 @@ declare const OrderBookNotification: z.ZodObject<{
2204
2356
  inverted: boolean;
2205
2357
  } | null | undefined;
2206
2358
  action: "create" | "update";
2207
- 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";
2208
2360
  } | {
2209
2361
  authority: string | null;
2210
2362
  id: string;
@@ -2229,11 +2381,11 @@ declare const OrderBookNotification: z.ZodObject<{
2229
2381
  inverted: boolean;
2230
2382
  } | null | undefined;
2231
2383
  action: "create" | "update";
2232
- 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";
2233
2385
  }>;
2234
2386
  declare const TunaPositionNotification: z.ZodObject<{
2235
2387
  meta: z.ZodTypeAny;
2236
- 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")[]]>;
2237
2389
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2238
2390
  data: z.ZodObject<{
2239
2391
  address: z.ZodString;
@@ -2624,7 +2776,7 @@ declare const TunaPositionNotification: z.ZodObject<{
2624
2776
  authority: z.ZodNullable<z.ZodString>;
2625
2777
  } | {
2626
2778
  meta: z.ZodNullable<z.ZodUndefined>;
2627
- 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")[]]>;
2628
2780
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2629
2781
  data: z.ZodObject<{
2630
2782
  address: z.ZodString;
@@ -3109,7 +3261,7 @@ declare const TunaPositionNotification: z.ZodObject<{
3109
3261
  closedAt: Date | null;
3110
3262
  };
3111
3263
  action: "create" | "update";
3112
- 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";
3113
3265
  meta?: any;
3114
3266
  } | {
3115
3267
  authority: string | null;
@@ -3207,7 +3359,7 @@ declare const TunaPositionNotification: z.ZodObject<{
3207
3359
  closedAt: Date | null;
3208
3360
  };
3209
3361
  action: "create" | "update";
3210
- 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";
3211
3363
  meta?: any;
3212
3364
  }, {
3213
3365
  authority: string | null;
@@ -3305,7 +3457,7 @@ declare const TunaPositionNotification: z.ZodObject<{
3305
3457
  closedAt: Date | null;
3306
3458
  };
3307
3459
  action: "create" | "update";
3308
- 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";
3309
3461
  meta?: any;
3310
3462
  } | {
3311
3463
  authority: string | null;
@@ -3403,12 +3555,495 @@ declare const TunaPositionNotification: z.ZodObject<{
3403
3555
  closedAt: Date | null;
3404
3556
  };
3405
3557
  action: "create" | "update";
3406
- 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";
3559
+ meta?: any;
3560
+ }>;
3561
+ declare const TunaSpotPositionNotification: z.ZodObject<{
3562
+ meta: z.ZodTypeAny;
3563
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
3564
+ action: z.ZodEnum<["create", ...("create" | "update")[]]>;
3565
+ data: z.ZodObject<{
3566
+ address: z.ZodString;
3567
+ authority: z.ZodString;
3568
+ version: z.ZodNumber;
3569
+ state: z.ZodEnum<["open", ...("open" | "closed")[]]>;
3570
+ entrySqrtPrice: z.ZodBigInt;
3571
+ lowerLimitOrderSqrtPrice: z.ZodBigInt;
3572
+ upperLimitOrderSqrtPrice: z.ZodBigInt;
3573
+ flags: z.ZodNumber;
3574
+ pool: z.ZodString;
3575
+ poolSqrtPrice: z.ZodBigInt;
3576
+ collateralToken: z.ZodString;
3577
+ borrowToken: z.ZodString;
3578
+ positionToken: z.ZodString;
3579
+ collateral: z.ZodObject<{
3580
+ amount: z.ZodBigInt;
3581
+ usd: z.ZodNumber;
3582
+ }, "strip", z.ZodTypeAny, {
3583
+ amount: bigint;
3584
+ usd: number;
3585
+ }, {
3586
+ amount: bigint;
3587
+ usd: number;
3588
+ }>;
3589
+ loanFunds: z.ZodObject<{
3590
+ amount: z.ZodBigInt;
3591
+ usd: z.ZodNumber;
3592
+ }, "strip", z.ZodTypeAny, {
3593
+ amount: bigint;
3594
+ usd: number;
3595
+ }, {
3596
+ amount: bigint;
3597
+ usd: number;
3598
+ }>;
3599
+ currentLoan: z.ZodObject<{
3600
+ amount: z.ZodBigInt;
3601
+ usd: z.ZodNumber;
3602
+ }, "strip", z.ZodTypeAny, {
3603
+ amount: bigint;
3604
+ usd: number;
3605
+ }, {
3606
+ amount: bigint;
3607
+ usd: number;
3608
+ }>;
3609
+ total: z.ZodObject<{
3610
+ amount: z.ZodBigInt;
3611
+ usd: z.ZodNumber;
3612
+ }, "strip", z.ZodTypeAny, {
3613
+ amount: bigint;
3614
+ usd: number;
3615
+ }, {
3616
+ amount: bigint;
3617
+ usd: number;
3618
+ }>;
3619
+ pnlUsd: z.ZodObject<{
3620
+ amount: z.ZodNumber;
3621
+ bps: z.ZodNumber;
3622
+ }, "strip", z.ZodTypeAny, {
3623
+ amount: number;
3624
+ bps: number;
3625
+ }, {
3626
+ amount: number;
3627
+ bps: number;
3628
+ }>;
3629
+ openedAt: z.ZodDate;
3630
+ openedAtSlot: z.ZodBigInt;
3631
+ updatedAtSlot: z.ZodBigInt;
3632
+ closedAt: z.ZodNullable<z.ZodDate>;
3633
+ }, "strip", z.ZodTypeAny, {
3634
+ total: {
3635
+ amount: bigint;
3636
+ usd: number;
3637
+ };
3638
+ address: string;
3639
+ authority: string;
3640
+ version: number;
3641
+ state: "open" | "closed";
3642
+ entrySqrtPrice: bigint;
3643
+ lowerLimitOrderSqrtPrice: bigint;
3644
+ upperLimitOrderSqrtPrice: bigint;
3645
+ flags: number;
3646
+ pool: string;
3647
+ poolSqrtPrice: bigint;
3648
+ pnlUsd: {
3649
+ amount: number;
3650
+ bps: number;
3651
+ };
3652
+ openedAt: Date;
3653
+ updatedAtSlot: bigint;
3654
+ closedAt: Date | null;
3655
+ collateralToken: string;
3656
+ borrowToken: string;
3657
+ positionToken: string;
3658
+ collateral: {
3659
+ amount: bigint;
3660
+ usd: number;
3661
+ };
3662
+ loanFunds: {
3663
+ amount: bigint;
3664
+ usd: number;
3665
+ };
3666
+ currentLoan: {
3667
+ amount: bigint;
3668
+ usd: number;
3669
+ };
3670
+ openedAtSlot: bigint;
3671
+ }, {
3672
+ total: {
3673
+ amount: bigint;
3674
+ usd: number;
3675
+ };
3676
+ address: string;
3677
+ authority: string;
3678
+ version: number;
3679
+ state: "open" | "closed";
3680
+ entrySqrtPrice: bigint;
3681
+ lowerLimitOrderSqrtPrice: bigint;
3682
+ upperLimitOrderSqrtPrice: bigint;
3683
+ flags: number;
3684
+ pool: string;
3685
+ poolSqrtPrice: bigint;
3686
+ pnlUsd: {
3687
+ amount: number;
3688
+ bps: number;
3689
+ };
3690
+ openedAt: Date;
3691
+ updatedAtSlot: bigint;
3692
+ closedAt: Date | null;
3693
+ collateralToken: string;
3694
+ borrowToken: string;
3695
+ positionToken: string;
3696
+ collateral: {
3697
+ amount: bigint;
3698
+ usd: number;
3699
+ };
3700
+ loanFunds: {
3701
+ amount: bigint;
3702
+ usd: number;
3703
+ };
3704
+ currentLoan: {
3705
+ amount: bigint;
3706
+ usd: number;
3707
+ };
3708
+ openedAtSlot: bigint;
3709
+ }>;
3710
+ id: z.ZodString;
3711
+ authority: z.ZodNullable<z.ZodString>;
3712
+ } | {
3713
+ meta: z.ZodNullable<z.ZodUndefined>;
3714
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
3715
+ action: z.ZodEnum<["create", ...("create" | "update")[]]>;
3716
+ data: z.ZodObject<{
3717
+ address: z.ZodString;
3718
+ authority: z.ZodString;
3719
+ version: z.ZodNumber;
3720
+ state: z.ZodEnum<["open", ...("open" | "closed")[]]>;
3721
+ entrySqrtPrice: z.ZodBigInt;
3722
+ lowerLimitOrderSqrtPrice: z.ZodBigInt;
3723
+ upperLimitOrderSqrtPrice: z.ZodBigInt;
3724
+ flags: z.ZodNumber;
3725
+ pool: z.ZodString;
3726
+ poolSqrtPrice: z.ZodBigInt;
3727
+ collateralToken: z.ZodString;
3728
+ borrowToken: z.ZodString;
3729
+ positionToken: z.ZodString;
3730
+ collateral: z.ZodObject<{
3731
+ amount: z.ZodBigInt;
3732
+ usd: z.ZodNumber;
3733
+ }, "strip", z.ZodTypeAny, {
3734
+ amount: bigint;
3735
+ usd: number;
3736
+ }, {
3737
+ amount: bigint;
3738
+ usd: number;
3739
+ }>;
3740
+ loanFunds: z.ZodObject<{
3741
+ amount: z.ZodBigInt;
3742
+ usd: z.ZodNumber;
3743
+ }, "strip", z.ZodTypeAny, {
3744
+ amount: bigint;
3745
+ usd: number;
3746
+ }, {
3747
+ amount: bigint;
3748
+ usd: number;
3749
+ }>;
3750
+ currentLoan: z.ZodObject<{
3751
+ amount: z.ZodBigInt;
3752
+ usd: z.ZodNumber;
3753
+ }, "strip", z.ZodTypeAny, {
3754
+ amount: bigint;
3755
+ usd: number;
3756
+ }, {
3757
+ amount: bigint;
3758
+ usd: number;
3759
+ }>;
3760
+ total: z.ZodObject<{
3761
+ amount: z.ZodBigInt;
3762
+ usd: z.ZodNumber;
3763
+ }, "strip", z.ZodTypeAny, {
3764
+ amount: bigint;
3765
+ usd: number;
3766
+ }, {
3767
+ amount: bigint;
3768
+ usd: number;
3769
+ }>;
3770
+ pnlUsd: z.ZodObject<{
3771
+ amount: z.ZodNumber;
3772
+ bps: z.ZodNumber;
3773
+ }, "strip", z.ZodTypeAny, {
3774
+ amount: number;
3775
+ bps: number;
3776
+ }, {
3777
+ amount: number;
3778
+ bps: number;
3779
+ }>;
3780
+ openedAt: z.ZodDate;
3781
+ openedAtSlot: z.ZodBigInt;
3782
+ updatedAtSlot: z.ZodBigInt;
3783
+ closedAt: z.ZodNullable<z.ZodDate>;
3784
+ }, "strip", z.ZodTypeAny, {
3785
+ total: {
3786
+ amount: bigint;
3787
+ usd: number;
3788
+ };
3789
+ address: string;
3790
+ authority: string;
3791
+ version: number;
3792
+ state: "open" | "closed";
3793
+ entrySqrtPrice: bigint;
3794
+ lowerLimitOrderSqrtPrice: bigint;
3795
+ upperLimitOrderSqrtPrice: bigint;
3796
+ flags: number;
3797
+ pool: string;
3798
+ poolSqrtPrice: bigint;
3799
+ pnlUsd: {
3800
+ amount: number;
3801
+ bps: number;
3802
+ };
3803
+ openedAt: Date;
3804
+ updatedAtSlot: bigint;
3805
+ closedAt: Date | null;
3806
+ collateralToken: string;
3807
+ borrowToken: string;
3808
+ positionToken: string;
3809
+ collateral: {
3810
+ amount: bigint;
3811
+ usd: number;
3812
+ };
3813
+ loanFunds: {
3814
+ amount: bigint;
3815
+ usd: number;
3816
+ };
3817
+ currentLoan: {
3818
+ amount: bigint;
3819
+ usd: number;
3820
+ };
3821
+ openedAtSlot: bigint;
3822
+ }, {
3823
+ total: {
3824
+ amount: bigint;
3825
+ usd: number;
3826
+ };
3827
+ address: string;
3828
+ authority: string;
3829
+ version: number;
3830
+ state: "open" | "closed";
3831
+ entrySqrtPrice: bigint;
3832
+ lowerLimitOrderSqrtPrice: bigint;
3833
+ upperLimitOrderSqrtPrice: bigint;
3834
+ flags: number;
3835
+ pool: string;
3836
+ poolSqrtPrice: bigint;
3837
+ pnlUsd: {
3838
+ amount: number;
3839
+ bps: number;
3840
+ };
3841
+ openedAt: Date;
3842
+ updatedAtSlot: bigint;
3843
+ closedAt: Date | null;
3844
+ collateralToken: string;
3845
+ borrowToken: string;
3846
+ positionToken: string;
3847
+ collateral: {
3848
+ amount: bigint;
3849
+ usd: number;
3850
+ };
3851
+ loanFunds: {
3852
+ amount: bigint;
3853
+ usd: number;
3854
+ };
3855
+ currentLoan: {
3856
+ amount: bigint;
3857
+ usd: number;
3858
+ };
3859
+ openedAtSlot: bigint;
3860
+ }>;
3861
+ id: z.ZodString;
3862
+ authority: z.ZodNullable<z.ZodString>;
3863
+ }, "strip", z.ZodTypeAny, {
3864
+ authority: string | null;
3865
+ id: string;
3866
+ data: {
3867
+ total: {
3868
+ amount: bigint;
3869
+ usd: number;
3870
+ };
3871
+ address: string;
3872
+ authority: string;
3873
+ version: number;
3874
+ state: "open" | "closed";
3875
+ entrySqrtPrice: bigint;
3876
+ lowerLimitOrderSqrtPrice: bigint;
3877
+ upperLimitOrderSqrtPrice: bigint;
3878
+ flags: number;
3879
+ pool: string;
3880
+ poolSqrtPrice: bigint;
3881
+ pnlUsd: {
3882
+ amount: number;
3883
+ bps: number;
3884
+ };
3885
+ openedAt: Date;
3886
+ updatedAtSlot: bigint;
3887
+ closedAt: Date | null;
3888
+ collateralToken: string;
3889
+ borrowToken: string;
3890
+ positionToken: string;
3891
+ collateral: {
3892
+ amount: bigint;
3893
+ usd: number;
3894
+ };
3895
+ loanFunds: {
3896
+ amount: bigint;
3897
+ usd: number;
3898
+ };
3899
+ currentLoan: {
3900
+ amount: bigint;
3901
+ usd: number;
3902
+ };
3903
+ openedAtSlot: bigint;
3904
+ };
3905
+ action: "create" | "update";
3906
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3907
+ meta?: any;
3908
+ } | {
3909
+ authority: string | null;
3910
+ id: string;
3911
+ data: {
3912
+ total: {
3913
+ amount: bigint;
3914
+ usd: number;
3915
+ };
3916
+ address: string;
3917
+ authority: string;
3918
+ version: number;
3919
+ state: "open" | "closed";
3920
+ entrySqrtPrice: bigint;
3921
+ lowerLimitOrderSqrtPrice: bigint;
3922
+ upperLimitOrderSqrtPrice: bigint;
3923
+ flags: number;
3924
+ pool: string;
3925
+ poolSqrtPrice: bigint;
3926
+ pnlUsd: {
3927
+ amount: number;
3928
+ bps: number;
3929
+ };
3930
+ openedAt: Date;
3931
+ updatedAtSlot: bigint;
3932
+ closedAt: Date | null;
3933
+ collateralToken: string;
3934
+ borrowToken: string;
3935
+ positionToken: string;
3936
+ collateral: {
3937
+ amount: bigint;
3938
+ usd: number;
3939
+ };
3940
+ loanFunds: {
3941
+ amount: bigint;
3942
+ usd: number;
3943
+ };
3944
+ currentLoan: {
3945
+ amount: bigint;
3946
+ usd: number;
3947
+ };
3948
+ openedAtSlot: bigint;
3949
+ };
3950
+ action: "create" | "update";
3951
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3952
+ meta?: any;
3953
+ }, {
3954
+ authority: string | null;
3955
+ id: string;
3956
+ data: {
3957
+ total: {
3958
+ amount: bigint;
3959
+ usd: number;
3960
+ };
3961
+ address: string;
3962
+ authority: string;
3963
+ version: number;
3964
+ state: "open" | "closed";
3965
+ entrySqrtPrice: bigint;
3966
+ lowerLimitOrderSqrtPrice: bigint;
3967
+ upperLimitOrderSqrtPrice: bigint;
3968
+ flags: number;
3969
+ pool: string;
3970
+ poolSqrtPrice: bigint;
3971
+ pnlUsd: {
3972
+ amount: number;
3973
+ bps: number;
3974
+ };
3975
+ openedAt: Date;
3976
+ updatedAtSlot: bigint;
3977
+ closedAt: Date | null;
3978
+ collateralToken: string;
3979
+ borrowToken: string;
3980
+ positionToken: string;
3981
+ collateral: {
3982
+ amount: bigint;
3983
+ usd: number;
3984
+ };
3985
+ loanFunds: {
3986
+ amount: bigint;
3987
+ usd: number;
3988
+ };
3989
+ currentLoan: {
3990
+ amount: bigint;
3991
+ usd: number;
3992
+ };
3993
+ openedAtSlot: bigint;
3994
+ };
3995
+ action: "create" | "update";
3996
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3997
+ meta?: any;
3998
+ } | {
3999
+ authority: string | null;
4000
+ id: string;
4001
+ data: {
4002
+ total: {
4003
+ amount: bigint;
4004
+ usd: number;
4005
+ };
4006
+ address: string;
4007
+ authority: string;
4008
+ version: number;
4009
+ state: "open" | "closed";
4010
+ entrySqrtPrice: bigint;
4011
+ lowerLimitOrderSqrtPrice: bigint;
4012
+ upperLimitOrderSqrtPrice: bigint;
4013
+ flags: number;
4014
+ pool: string;
4015
+ poolSqrtPrice: bigint;
4016
+ pnlUsd: {
4017
+ amount: number;
4018
+ bps: number;
4019
+ };
4020
+ openedAt: Date;
4021
+ updatedAtSlot: bigint;
4022
+ closedAt: Date | null;
4023
+ collateralToken: string;
4024
+ borrowToken: string;
4025
+ positionToken: string;
4026
+ collateral: {
4027
+ amount: bigint;
4028
+ usd: number;
4029
+ };
4030
+ loanFunds: {
4031
+ amount: bigint;
4032
+ usd: number;
4033
+ };
4034
+ currentLoan: {
4035
+ amount: bigint;
4036
+ usd: number;
4037
+ };
4038
+ openedAtSlot: bigint;
4039
+ };
4040
+ action: "create" | "update";
4041
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
3407
4042
  meta?: any;
3408
4043
  }>;
3409
4044
  declare const LendingPositionNotification: z.ZodObject<{
3410
4045
  meta: z.ZodTypeAny;
3411
- 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")[]]>;
3412
4047
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
3413
4048
  data: z.ZodObject<{
3414
4049
  address: z.ZodString;
@@ -3469,7 +4104,7 @@ declare const LendingPositionNotification: z.ZodObject<{
3469
4104
  authority: z.ZodNullable<z.ZodString>;
3470
4105
  } | {
3471
4106
  meta: z.ZodNullable<z.ZodUndefined>;
3472
- 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")[]]>;
3473
4108
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
3474
4109
  data: z.ZodObject<{
3475
4110
  address: z.ZodString;
@@ -3547,7 +4182,7 @@ declare const LendingPositionNotification: z.ZodObject<{
3547
4182
  };
3548
4183
  };
3549
4184
  action: "create" | "update";
3550
- 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";
3551
4186
  meta?: any;
3552
4187
  } | {
3553
4188
  authority: string | null;
@@ -3568,7 +4203,7 @@ declare const LendingPositionNotification: z.ZodObject<{
3568
4203
  };
3569
4204
  };
3570
4205
  action: "create" | "update";
3571
- 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";
3572
4207
  meta?: any;
3573
4208
  }, {
3574
4209
  authority: string | null;
@@ -3589,7 +4224,7 @@ declare const LendingPositionNotification: z.ZodObject<{
3589
4224
  };
3590
4225
  };
3591
4226
  action: "create" | "update";
3592
- 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";
3593
4228
  meta?: any;
3594
4229
  } | {
3595
4230
  authority: string | null;
@@ -3610,12 +4245,12 @@ declare const LendingPositionNotification: z.ZodObject<{
3610
4245
  };
3611
4246
  };
3612
4247
  action: "create" | "update";
3613
- 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";
3614
4249
  meta?: any;
3615
4250
  }>;
3616
4251
  declare const LimitOrderNotification: z.ZodObject<{
3617
4252
  meta: z.ZodTypeAny;
3618
- 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")[]]>;
3619
4254
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
3620
4255
  data: z.ZodObject<{
3621
4256
  address: z.ZodString;
@@ -3694,7 +4329,7 @@ declare const LimitOrderNotification: z.ZodObject<{
3694
4329
  authority: z.ZodNullable<z.ZodString>;
3695
4330
  } | {
3696
4331
  meta: z.ZodNullable<z.ZodUndefined>;
3697
- 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")[]]>;
3698
4333
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
3699
4334
  data: z.ZodObject<{
3700
4335
  address: z.ZodString;
@@ -3796,7 +4431,7 @@ declare const LimitOrderNotification: z.ZodObject<{
3796
4431
  closeTxSignature: string | null;
3797
4432
  };
3798
4433
  action: "create" | "update";
3799
- 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";
3800
4435
  meta?: any;
3801
4436
  } | {
3802
4437
  authority: string | null;
@@ -3823,7 +4458,7 @@ declare const LimitOrderNotification: z.ZodObject<{
3823
4458
  closeTxSignature: string | null;
3824
4459
  };
3825
4460
  action: "create" | "update";
3826
- 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";
3827
4462
  meta?: any;
3828
4463
  }, {
3829
4464
  authority: string | null;
@@ -3850,7 +4485,7 @@ declare const LimitOrderNotification: z.ZodObject<{
3850
4485
  closeTxSignature: string | null;
3851
4486
  };
3852
4487
  action: "create" | "update";
3853
- 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";
3854
4489
  meta?: any;
3855
4490
  } | {
3856
4491
  authority: string | null;
@@ -3877,12 +4512,12 @@ declare const LimitOrderNotification: z.ZodObject<{
3877
4512
  closeTxSignature: string | null;
3878
4513
  };
3879
4514
  action: "create" | "update";
3880
- 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";
3881
4516
  meta?: any;
3882
4517
  }>;
3883
4518
  declare const StakingPositionNotification: z.ZodObject<{
3884
4519
  meta: z.ZodTypeAny;
3885
- 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")[]]>;
3886
4521
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
3887
4522
  data: z.ZodObject<{
3888
4523
  address: z.ZodString;
@@ -4059,7 +4694,7 @@ declare const StakingPositionNotification: z.ZodObject<{
4059
4694
  authority: z.ZodNullable<z.ZodString>;
4060
4695
  } | {
4061
4696
  meta: z.ZodNullable<z.ZodUndefined>;
4062
- 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")[]]>;
4063
4698
  action: z.ZodEnum<["create", ...("create" | "update")[]]>;
4064
4699
  data: z.ZodObject<{
4065
4700
  address: z.ZodString;
@@ -4275,7 +4910,7 @@ declare const StakingPositionNotification: z.ZodObject<{
4275
4910
  withdrawAvailableAt: Date | null;
4276
4911
  };
4277
4912
  action: "create" | "update";
4278
- 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";
4279
4914
  meta?: any;
4280
4915
  } | {
4281
4916
  authority: string | null;
@@ -4318,7 +4953,7 @@ declare const StakingPositionNotification: z.ZodObject<{
4318
4953
  withdrawAvailableAt: Date | null;
4319
4954
  };
4320
4955
  action: "create" | "update";
4321
- 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";
4322
4957
  meta?: any;
4323
4958
  }, {
4324
4959
  authority: string | null;
@@ -4361,7 +4996,7 @@ declare const StakingPositionNotification: z.ZodObject<{
4361
4996
  withdrawAvailableAt: Date | null;
4362
4997
  };
4363
4998
  action: "create" | "update";
4364
- 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";
4365
5000
  meta?: any;
4366
5001
  } | {
4367
5002
  authority: string | null;
@@ -4404,7 +5039,7 @@ declare const StakingPositionNotification: z.ZodObject<{
4404
5039
  withdrawAvailableAt: Date | null;
4405
5040
  };
4406
5041
  action: "create" | "update";
4407
- 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";
4408
5043
  meta?: any;
4409
5044
  }>;
4410
5045
 
@@ -4429,15 +5064,19 @@ declare const schemas_StakingPositionNotification: typeof StakingPositionNotific
4429
5064
  declare const schemas_TunaPositionNotification: typeof TunaPositionNotification;
4430
5065
  declare const schemas_TunaPositionState: typeof TunaPositionState;
4431
5066
  declare const schemas_TunaPositionStateSchema: typeof TunaPositionStateSchema;
5067
+ declare const schemas_TunaSpotPositionNotification: typeof TunaSpotPositionNotification;
5068
+ declare const schemas_TunaSpotPositionState: typeof TunaSpotPositionState;
5069
+ declare const schemas_TunaSpotPositionStateSchema: typeof TunaSpotPositionStateSchema;
4432
5070
  declare const schemas_UpdateStreamSubscriptionResult: typeof UpdateStreamSubscriptionResult;
4433
5071
  declare const schemas_WalletSubscriptionTopic: typeof WalletSubscriptionTopic;
4434
5072
  declare const schemas_WalletSubscriptionTopicSchema: typeof WalletSubscriptionTopicSchema;
4435
5073
  declare namespace schemas {
4436
- export { FeesStatsGroup$1 as FeesStatsGroup, LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, schemas_OrderBookNotificationMeta as OrderBookNotificationMeta, PaginationMeta$1 as PaginationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolPriceUpdateNotification as PoolPriceUpdateNotification, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, StakingLeaderboardPage$1 as StakingLeaderboardPage, StakingLeaderboardPosition$1 as StakingLeaderboardPosition, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, StakingTreasury$1 as StakingTreasury, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
5074
+ export { FeesStatsGroup$1 as FeesStatsGroup, LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, schemas_OrderBookNotificationMeta as OrderBookNotificationMeta, PaginationMeta$1 as PaginationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolPriceUpdateNotification as PoolPriceUpdateNotification, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, StakingLeaderboardPage$1 as StakingLeaderboardPage, StakingLeaderboardPosition$1 as StakingLeaderboardPosition, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, StakingTreasury$1 as StakingTreasury, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, TunaSpotPosition$1 as TunaSpotPosition, schemas_TunaSpotPositionNotification as TunaSpotPositionNotification, schemas_TunaSpotPositionState as TunaSpotPositionState, schemas_TunaSpotPositionStateSchema as TunaSpotPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
4437
5075
  }
4438
5076
 
4439
5077
  type PoolProviderType = z.infer<typeof PoolProviderSchema>;
4440
5078
  type TunaPositionStateType = z.infer<typeof TunaPositionStateSchema>;
5079
+ type TunaSpotPositionStateType = z.infer<typeof TunaSpotPositionStateSchema>;
4441
5080
  type LimitOrderStateType = z.infer<typeof LimitOrderStateSchema>;
4442
5081
  type StakingPositionHistoryActionType = z.infer<typeof StakingPositionHistoryActionTypeSchema>;
4443
5082
  type PoolSubscriptionTopicType = z.infer<typeof PoolSubscriptionTopicSchema>;
@@ -4456,6 +5095,7 @@ type OrderBookEntry = z.infer<typeof OrderBookEntry$1>;
4456
5095
  type OrderBook = z.infer<typeof OrderBook$1>;
4457
5096
  type LendingPosition = z.infer<typeof LendingPosition$1>;
4458
5097
  type TunaPosition = z.infer<typeof TunaPosition$1>;
5098
+ type TunaSpotPosition = z.infer<typeof TunaSpotPosition$1>;
4459
5099
  type LimitOrder = z.infer<typeof LimitOrder$1>;
4460
5100
  type StakingPosition = z.infer<typeof StakingPosition$1>;
4461
5101
  type StakingTreasury = z.infer<typeof StakingTreasury$1>;
@@ -4545,6 +5185,8 @@ declare class TunaApiClient {
4545
5185
  getUserLendingPositionByAddress(userAddress: string, lendingPositionAddress: string): Promise<LendingPosition>;
4546
5186
  getUserTunaPositions(userAddress: string): Promise<TunaPosition[]>;
4547
5187
  getUserTunaPositionByAddress(userAddress: string, tunaPositionAddress: string): Promise<TunaPosition>;
5188
+ getUserTunaSpotPositions(userAddress: string): Promise<TunaSpotPosition[]>;
5189
+ getUserTunaSpotPositionByAddress(userAddress: string, tunaSpotPositionAddress: string): Promise<TunaSpotPosition>;
4548
5190
  getUserLimitOrders(userAddress: string, poolFilter?: string): Promise<LimitOrder[]>;
4549
5191
  getUserLimitOrderByAddress(userAddress: string, limitOrderAddress: string): Promise<LimitOrder>;
4550
5192
  getUserStakingPosition(userAddress: string): Promise<StakingPosition>;
@@ -4557,4 +5199,4 @@ declare class TunaApiClient {
4557
5199
  private appendUrlSearchParams;
4558
5200
  }
4559
5201
 
4560
- 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 Vault, type VaultHistoricalStats, type WalletSubscriptionTopicType, schemas };
5202
+ 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 };