@crypticdot/defituna-api 1.2.1 → 1.3.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 +421 -85
- package/dist/index.d.ts +421 -85
- package/dist/index.js +103 -5
- package/dist/index.mjs +103 -5
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -9,6 +9,7 @@ declare const NotificationEntity: {
|
|
|
9
9
|
readonly LENDING_POSITION: "lending_position";
|
|
10
10
|
readonly STAKING_POSITION: "staking_position";
|
|
11
11
|
readonly FUSION_LIMIT_ORDER: "fusion_limit_order";
|
|
12
|
+
readonly TRADE_HISTORY_ENTRY: "trade_history_entry";
|
|
12
13
|
};
|
|
13
14
|
declare const NotificationAction: {
|
|
14
15
|
readonly CREATE: "create";
|
|
@@ -35,6 +36,20 @@ declare const LimitOrderState: {
|
|
|
35
36
|
readonly COMPLETE: "complete";
|
|
36
37
|
readonly CANCELLED: "cancelled";
|
|
37
38
|
};
|
|
39
|
+
declare const TradeHistoryAction: {
|
|
40
|
+
readonly SWAP: "swap";
|
|
41
|
+
readonly LIMIT_ORDER_FILL: "limit_order_fill";
|
|
42
|
+
readonly POSITION_INCREASE: "position_increase";
|
|
43
|
+
readonly POSITION_DECREASE: "position_decrease";
|
|
44
|
+
};
|
|
45
|
+
declare const TradeHistoryUIDirection: {
|
|
46
|
+
readonly BUY: "buy";
|
|
47
|
+
readonly SELL: "sell";
|
|
48
|
+
readonly OPEN_LONG: "open_long";
|
|
49
|
+
readonly CLOSE_LONG: "close_long";
|
|
50
|
+
readonly OPEN_SHORT: "open_short";
|
|
51
|
+
readonly CLOSE_SHORT: "close_short";
|
|
52
|
+
};
|
|
38
53
|
declare const StakingPositionHistoryActionType$1: {
|
|
39
54
|
readonly STAKE: "stake";
|
|
40
55
|
readonly UNSTAKE: "unstake";
|
|
@@ -54,12 +69,14 @@ declare const WalletSubscriptionTopic: {
|
|
|
54
69
|
readonly FUSION_LIMIT_ORDERS: "fusion_limit_orders";
|
|
55
70
|
readonly STAKING_POSITION: "staking_position";
|
|
56
71
|
};
|
|
57
|
-
declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
72
|
+
declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
58
73
|
declare const NotificationActionSchema: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
59
74
|
declare const PoolProviderSchema: z.ZodEnum<["orca", ...("orca" | "fusion")[]]>;
|
|
60
75
|
declare const TunaPositionStateSchema: z.ZodEnum<["open", ...("open" | "liquidated" | "closed_by_limit_order" | "closed")[]]>;
|
|
61
76
|
declare const TunaSpotPositionStateSchema: z.ZodEnum<["open", ...("open" | "closed")[]]>;
|
|
62
77
|
declare const LimitOrderStateSchema: z.ZodEnum<["open", ...("open" | "partially_filled" | "filled" | "complete" | "cancelled")[]]>;
|
|
78
|
+
declare const TradeHistoryActionSchema: z.ZodEnum<["swap", ...("swap" | "limit_order_fill" | "position_increase" | "position_decrease")[]]>;
|
|
79
|
+
declare const TradeHistoryUIDirectionSchema: z.ZodEnum<["buy", ...("buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short")[]]>;
|
|
63
80
|
declare const StakingPositionHistoryActionTypeSchema: z.ZodEnum<["stake", ...("stake" | "unstake" | "withdraw" | "claim_rewards" | "compound_rewards")[]]>;
|
|
64
81
|
declare const PoolSubscriptionTopicSchema: z.ZodEnum<["order_book", ...("order_book" | "pool_prices" | "pool_swaps")[]]>;
|
|
65
82
|
declare const WalletSubscriptionTopicSchema: z.ZodEnum<["tuna_positions", ...("staking_position" | "tuna_positions" | "tuna_spot_positions" | "lending_positions" | "fusion_limit_orders")[]]>;
|
|
@@ -1406,6 +1423,64 @@ declare const LimitOrder$1: z.ZodObject<{
|
|
|
1406
1423
|
openTxSignature: string;
|
|
1407
1424
|
closeTxSignature: string | null;
|
|
1408
1425
|
}>;
|
|
1426
|
+
declare const TradeHistoryEntry$1: z.ZodObject<{
|
|
1427
|
+
id: z.ZodString;
|
|
1428
|
+
pool: z.ZodString;
|
|
1429
|
+
authority: z.ZodString;
|
|
1430
|
+
aToB: z.ZodBoolean;
|
|
1431
|
+
action: z.ZodEnum<["swap", ...("swap" | "limit_order_fill" | "position_increase" | "position_decrease")[]]>;
|
|
1432
|
+
uiDirection: z.ZodEnum<["buy", ...("buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short")[]]>;
|
|
1433
|
+
uiPrice: z.ZodNumber;
|
|
1434
|
+
baseTokenAmount: z.ZodBigInt;
|
|
1435
|
+
baseTokenAmountUsd: z.ZodNumber;
|
|
1436
|
+
quoteTokenAmount: z.ZodBigInt;
|
|
1437
|
+
quoteTokenAmountUsd: z.ZodNumber;
|
|
1438
|
+
feeAmount: z.ZodBigInt;
|
|
1439
|
+
feeAmountUsd: z.ZodNumber;
|
|
1440
|
+
pnlUsd: z.ZodNullable<z.ZodNumber>;
|
|
1441
|
+
txSignature: z.ZodNullable<z.ZodString>;
|
|
1442
|
+
positionAddress: z.ZodNullable<z.ZodString>;
|
|
1443
|
+
slot: z.ZodBigInt;
|
|
1444
|
+
ts: z.ZodDate;
|
|
1445
|
+
}, "strip", z.ZodTypeAny, {
|
|
1446
|
+
authority: string;
|
|
1447
|
+
pool: string;
|
|
1448
|
+
pnlUsd: number | null;
|
|
1449
|
+
id: string;
|
|
1450
|
+
aToB: boolean;
|
|
1451
|
+
action: "swap" | "limit_order_fill" | "position_increase" | "position_decrease";
|
|
1452
|
+
uiDirection: "buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short";
|
|
1453
|
+
uiPrice: number;
|
|
1454
|
+
baseTokenAmount: bigint;
|
|
1455
|
+
baseTokenAmountUsd: number;
|
|
1456
|
+
quoteTokenAmount: bigint;
|
|
1457
|
+
quoteTokenAmountUsd: number;
|
|
1458
|
+
feeAmount: bigint;
|
|
1459
|
+
feeAmountUsd: number;
|
|
1460
|
+
txSignature: string | null;
|
|
1461
|
+
positionAddress: string | null;
|
|
1462
|
+
slot: bigint;
|
|
1463
|
+
ts: Date;
|
|
1464
|
+
}, {
|
|
1465
|
+
authority: string;
|
|
1466
|
+
pool: string;
|
|
1467
|
+
pnlUsd: number | null;
|
|
1468
|
+
id: string;
|
|
1469
|
+
aToB: boolean;
|
|
1470
|
+
action: "swap" | "limit_order_fill" | "position_increase" | "position_decrease";
|
|
1471
|
+
uiDirection: "buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short";
|
|
1472
|
+
uiPrice: number;
|
|
1473
|
+
baseTokenAmount: bigint;
|
|
1474
|
+
baseTokenAmountUsd: number;
|
|
1475
|
+
quoteTokenAmount: bigint;
|
|
1476
|
+
quoteTokenAmountUsd: number;
|
|
1477
|
+
feeAmount: bigint;
|
|
1478
|
+
feeAmountUsd: number;
|
|
1479
|
+
txSignature: string | null;
|
|
1480
|
+
positionAddress: string | null;
|
|
1481
|
+
slot: bigint;
|
|
1482
|
+
ts: Date;
|
|
1483
|
+
}>;
|
|
1409
1484
|
declare const StakingTreasury$1: z.ZodObject<{
|
|
1410
1485
|
address: z.ZodString;
|
|
1411
1486
|
stakedTokenMint: z.ZodString;
|
|
@@ -1750,15 +1825,15 @@ declare const StakingPositionHistoryAction$1: z.ZodObject<{
|
|
|
1750
1825
|
}, "strip", z.ZodTypeAny, {
|
|
1751
1826
|
amount: bigint;
|
|
1752
1827
|
time: Date;
|
|
1753
|
-
position: string;
|
|
1754
1828
|
action: "stake" | "unstake" | "withdraw" | "claim_rewards" | "compound_rewards";
|
|
1755
1829
|
txSignature: string;
|
|
1830
|
+
position: string;
|
|
1756
1831
|
}, {
|
|
1757
1832
|
amount: bigint;
|
|
1758
1833
|
time: Date;
|
|
1759
|
-
position: string;
|
|
1760
1834
|
action: "stake" | "unstake" | "withdraw" | "claim_rewards" | "compound_rewards";
|
|
1761
1835
|
txSignature: string;
|
|
1836
|
+
position: string;
|
|
1762
1837
|
}>;
|
|
1763
1838
|
declare const PoolPriceCandle$1: z.ZodObject<{
|
|
1764
1839
|
time: z.ZodNumber;
|
|
@@ -1914,7 +1989,7 @@ declare const OrderBookNotificationMeta: z.ZodObject<{
|
|
|
1914
1989
|
}>;
|
|
1915
1990
|
declare const PoolSwapNotification: z.ZodObject<{
|
|
1916
1991
|
meta: z.ZodTypeAny;
|
|
1917
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
1992
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
1918
1993
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1919
1994
|
data: z.ZodObject<{
|
|
1920
1995
|
id: z.ZodString;
|
|
@@ -1945,7 +2020,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1945
2020
|
authority: z.ZodNullable<z.ZodString>;
|
|
1946
2021
|
} | {
|
|
1947
2022
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
1948
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
2023
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
1949
2024
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1950
2025
|
data: z.ZodObject<{
|
|
1951
2026
|
id: z.ZodString;
|
|
@@ -1977,6 +2052,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1977
2052
|
}, "strip", z.ZodTypeAny, {
|
|
1978
2053
|
authority: string | null;
|
|
1979
2054
|
id: string;
|
|
2055
|
+
action: "create" | "update";
|
|
1980
2056
|
data: {
|
|
1981
2057
|
time: Date;
|
|
1982
2058
|
pool: string;
|
|
@@ -1986,12 +2062,12 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1986
2062
|
amountUsd: number;
|
|
1987
2063
|
aToB: boolean;
|
|
1988
2064
|
};
|
|
1989
|
-
|
|
1990
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2065
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
1991
2066
|
meta?: any;
|
|
1992
2067
|
} | {
|
|
1993
2068
|
authority: string | null;
|
|
1994
2069
|
id: string;
|
|
2070
|
+
action: "create" | "update";
|
|
1995
2071
|
data: {
|
|
1996
2072
|
time: Date;
|
|
1997
2073
|
pool: string;
|
|
@@ -2001,12 +2077,12 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
2001
2077
|
amountUsd: number;
|
|
2002
2078
|
aToB: boolean;
|
|
2003
2079
|
};
|
|
2004
|
-
|
|
2005
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2080
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
2006
2081
|
meta?: any;
|
|
2007
2082
|
}, {
|
|
2008
2083
|
authority: string | null;
|
|
2009
2084
|
id: string;
|
|
2085
|
+
action: "create" | "update";
|
|
2010
2086
|
data: {
|
|
2011
2087
|
time: Date;
|
|
2012
2088
|
pool: string;
|
|
@@ -2016,12 +2092,12 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
2016
2092
|
amountUsd: number;
|
|
2017
2093
|
aToB: boolean;
|
|
2018
2094
|
};
|
|
2019
|
-
|
|
2020
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2095
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
2021
2096
|
meta?: any;
|
|
2022
2097
|
} | {
|
|
2023
2098
|
authority: string | null;
|
|
2024
2099
|
id: string;
|
|
2100
|
+
action: "create" | "update";
|
|
2025
2101
|
data: {
|
|
2026
2102
|
time: Date;
|
|
2027
2103
|
pool: string;
|
|
@@ -2031,13 +2107,12 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
2031
2107
|
amountUsd: number;
|
|
2032
2108
|
aToB: boolean;
|
|
2033
2109
|
};
|
|
2034
|
-
|
|
2035
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2110
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
2036
2111
|
meta?: any;
|
|
2037
2112
|
}>;
|
|
2038
2113
|
declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
2039
2114
|
meta: z.ZodTypeAny;
|
|
2040
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
2115
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
2041
2116
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
2042
2117
|
data: z.ZodObject<{
|
|
2043
2118
|
pool: z.ZodString;
|
|
@@ -2059,7 +2134,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
2059
2134
|
authority: z.ZodNullable<z.ZodString>;
|
|
2060
2135
|
} | {
|
|
2061
2136
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
2062
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
2137
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
2063
2138
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
2064
2139
|
data: z.ZodObject<{
|
|
2065
2140
|
pool: z.ZodString;
|
|
@@ -2082,50 +2157,50 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
2082
2157
|
}, "strip", z.ZodTypeAny, {
|
|
2083
2158
|
authority: string | null;
|
|
2084
2159
|
id: string;
|
|
2160
|
+
action: "create" | "update";
|
|
2085
2161
|
data: {
|
|
2086
2162
|
price: number;
|
|
2087
2163
|
time: Date;
|
|
2088
2164
|
sqrtPrice: bigint;
|
|
2089
2165
|
pool: string;
|
|
2090
2166
|
};
|
|
2091
|
-
|
|
2092
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2167
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
2093
2168
|
meta?: any;
|
|
2094
2169
|
} | {
|
|
2095
2170
|
authority: string | null;
|
|
2096
2171
|
id: string;
|
|
2172
|
+
action: "create" | "update";
|
|
2097
2173
|
data: {
|
|
2098
2174
|
price: number;
|
|
2099
2175
|
time: Date;
|
|
2100
2176
|
sqrtPrice: bigint;
|
|
2101
2177
|
pool: string;
|
|
2102
2178
|
};
|
|
2103
|
-
|
|
2104
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2179
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
2105
2180
|
meta?: any;
|
|
2106
2181
|
}, {
|
|
2107
2182
|
authority: string | null;
|
|
2108
2183
|
id: string;
|
|
2184
|
+
action: "create" | "update";
|
|
2109
2185
|
data: {
|
|
2110
2186
|
price: number;
|
|
2111
2187
|
time: Date;
|
|
2112
2188
|
sqrtPrice: bigint;
|
|
2113
2189
|
pool: string;
|
|
2114
2190
|
};
|
|
2115
|
-
|
|
2116
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2191
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
2117
2192
|
meta?: any;
|
|
2118
2193
|
} | {
|
|
2119
2194
|
authority: string | null;
|
|
2120
2195
|
id: string;
|
|
2196
|
+
action: "create" | "update";
|
|
2121
2197
|
data: {
|
|
2122
2198
|
price: number;
|
|
2123
2199
|
time: Date;
|
|
2124
2200
|
sqrtPrice: bigint;
|
|
2125
2201
|
pool: string;
|
|
2126
2202
|
};
|
|
2127
|
-
|
|
2128
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2203
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
2129
2204
|
meta?: any;
|
|
2130
2205
|
}>;
|
|
2131
2206
|
declare const OrderBookNotification: z.ZodObject<{
|
|
@@ -2142,7 +2217,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
2142
2217
|
priceStep: number;
|
|
2143
2218
|
inverted: boolean;
|
|
2144
2219
|
}>;
|
|
2145
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
2220
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
2146
2221
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
2147
2222
|
data: z.ZodObject<{
|
|
2148
2223
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -2213,7 +2288,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
2213
2288
|
authority: z.ZodNullable<z.ZodString>;
|
|
2214
2289
|
} | {
|
|
2215
2290
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
2216
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
2291
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
2217
2292
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
2218
2293
|
data: z.ZodObject<{
|
|
2219
2294
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -2285,6 +2360,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
2285
2360
|
}, "strip", z.ZodTypeAny, {
|
|
2286
2361
|
authority: string | null;
|
|
2287
2362
|
id: string;
|
|
2363
|
+
action: "create" | "update";
|
|
2288
2364
|
data: {
|
|
2289
2365
|
entries: {
|
|
2290
2366
|
price: number;
|
|
@@ -2305,11 +2381,11 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
2305
2381
|
priceStep: number;
|
|
2306
2382
|
inverted: boolean;
|
|
2307
2383
|
} | null | undefined;
|
|
2308
|
-
|
|
2309
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_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" | "trade_history_entry";
|
|
2310
2385
|
} | {
|
|
2311
2386
|
authority: string | null;
|
|
2312
2387
|
id: string;
|
|
2388
|
+
action: "create" | "update";
|
|
2313
2389
|
data: {
|
|
2314
2390
|
entries: {
|
|
2315
2391
|
price: number;
|
|
@@ -2330,11 +2406,11 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
2330
2406
|
priceStep: number;
|
|
2331
2407
|
inverted: boolean;
|
|
2332
2408
|
} | null | undefined;
|
|
2333
|
-
|
|
2334
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2409
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
2335
2410
|
}, {
|
|
2336
2411
|
authority: string | null;
|
|
2337
2412
|
id: string;
|
|
2413
|
+
action: "create" | "update";
|
|
2338
2414
|
data: {
|
|
2339
2415
|
entries: {
|
|
2340
2416
|
price: number;
|
|
@@ -2355,11 +2431,11 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
2355
2431
|
priceStep: number;
|
|
2356
2432
|
inverted: boolean;
|
|
2357
2433
|
} | null | undefined;
|
|
2358
|
-
|
|
2359
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2434
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
2360
2435
|
} | {
|
|
2361
2436
|
authority: string | null;
|
|
2362
2437
|
id: string;
|
|
2438
|
+
action: "create" | "update";
|
|
2363
2439
|
data: {
|
|
2364
2440
|
entries: {
|
|
2365
2441
|
price: number;
|
|
@@ -2380,12 +2456,11 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
2380
2456
|
priceStep: number;
|
|
2381
2457
|
inverted: boolean;
|
|
2382
2458
|
} | null | undefined;
|
|
2383
|
-
|
|
2384
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2459
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
2385
2460
|
}>;
|
|
2386
2461
|
declare const TunaPositionNotification: z.ZodObject<{
|
|
2387
2462
|
meta: z.ZodTypeAny;
|
|
2388
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
2463
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
2389
2464
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
2390
2465
|
data: z.ZodObject<{
|
|
2391
2466
|
address: z.ZodString;
|
|
@@ -2776,7 +2851,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
2776
2851
|
authority: z.ZodNullable<z.ZodString>;
|
|
2777
2852
|
} | {
|
|
2778
2853
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
2779
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
2854
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
2780
2855
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
2781
2856
|
data: z.ZodObject<{
|
|
2782
2857
|
address: z.ZodString;
|
|
@@ -3168,6 +3243,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3168
3243
|
}, "strip", z.ZodTypeAny, {
|
|
3169
3244
|
authority: string | null;
|
|
3170
3245
|
id: string;
|
|
3246
|
+
action: "create" | "update";
|
|
3171
3247
|
data: {
|
|
3172
3248
|
address: string;
|
|
3173
3249
|
liquidity: bigint;
|
|
@@ -3260,12 +3336,12 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3260
3336
|
updatedAtSlot: bigint;
|
|
3261
3337
|
closedAt: Date | null;
|
|
3262
3338
|
};
|
|
3263
|
-
|
|
3264
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3339
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
3265
3340
|
meta?: any;
|
|
3266
3341
|
} | {
|
|
3267
3342
|
authority: string | null;
|
|
3268
3343
|
id: string;
|
|
3344
|
+
action: "create" | "update";
|
|
3269
3345
|
data: {
|
|
3270
3346
|
address: string;
|
|
3271
3347
|
liquidity: bigint;
|
|
@@ -3358,12 +3434,12 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3358
3434
|
updatedAtSlot: bigint;
|
|
3359
3435
|
closedAt: Date | null;
|
|
3360
3436
|
};
|
|
3361
|
-
|
|
3362
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3437
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
3363
3438
|
meta?: any;
|
|
3364
3439
|
}, {
|
|
3365
3440
|
authority: string | null;
|
|
3366
3441
|
id: string;
|
|
3442
|
+
action: "create" | "update";
|
|
3367
3443
|
data: {
|
|
3368
3444
|
address: string;
|
|
3369
3445
|
liquidity: bigint;
|
|
@@ -3456,12 +3532,12 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3456
3532
|
updatedAtSlot: bigint;
|
|
3457
3533
|
closedAt: Date | null;
|
|
3458
3534
|
};
|
|
3459
|
-
|
|
3460
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3535
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
3461
3536
|
meta?: any;
|
|
3462
3537
|
} | {
|
|
3463
3538
|
authority: string | null;
|
|
3464
3539
|
id: string;
|
|
3540
|
+
action: "create" | "update";
|
|
3465
3541
|
data: {
|
|
3466
3542
|
address: string;
|
|
3467
3543
|
liquidity: bigint;
|
|
@@ -3554,13 +3630,12 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3554
3630
|
updatedAtSlot: bigint;
|
|
3555
3631
|
closedAt: Date | null;
|
|
3556
3632
|
};
|
|
3557
|
-
|
|
3558
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3633
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
3559
3634
|
meta?: any;
|
|
3560
3635
|
}>;
|
|
3561
3636
|
declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
3562
3637
|
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")[]]>;
|
|
3638
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
3564
3639
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3565
3640
|
data: z.ZodObject<{
|
|
3566
3641
|
address: z.ZodString;
|
|
@@ -3711,7 +3786,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
3711
3786
|
authority: z.ZodNullable<z.ZodString>;
|
|
3712
3787
|
} | {
|
|
3713
3788
|
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")[]]>;
|
|
3789
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
3715
3790
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3716
3791
|
data: z.ZodObject<{
|
|
3717
3792
|
address: z.ZodString;
|
|
@@ -3863,6 +3938,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
3863
3938
|
}, "strip", z.ZodTypeAny, {
|
|
3864
3939
|
authority: string | null;
|
|
3865
3940
|
id: string;
|
|
3941
|
+
action: "create" | "update";
|
|
3866
3942
|
data: {
|
|
3867
3943
|
total: {
|
|
3868
3944
|
amount: bigint;
|
|
@@ -3902,12 +3978,12 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
3902
3978
|
};
|
|
3903
3979
|
openedAtSlot: bigint;
|
|
3904
3980
|
};
|
|
3905
|
-
|
|
3906
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3981
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
3907
3982
|
meta?: any;
|
|
3908
3983
|
} | {
|
|
3909
3984
|
authority: string | null;
|
|
3910
3985
|
id: string;
|
|
3986
|
+
action: "create" | "update";
|
|
3911
3987
|
data: {
|
|
3912
3988
|
total: {
|
|
3913
3989
|
amount: bigint;
|
|
@@ -3947,12 +4023,12 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
3947
4023
|
};
|
|
3948
4024
|
openedAtSlot: bigint;
|
|
3949
4025
|
};
|
|
3950
|
-
|
|
3951
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
4026
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
3952
4027
|
meta?: any;
|
|
3953
4028
|
}, {
|
|
3954
4029
|
authority: string | null;
|
|
3955
4030
|
id: string;
|
|
4031
|
+
action: "create" | "update";
|
|
3956
4032
|
data: {
|
|
3957
4033
|
total: {
|
|
3958
4034
|
amount: bigint;
|
|
@@ -3992,12 +4068,12 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
3992
4068
|
};
|
|
3993
4069
|
openedAtSlot: bigint;
|
|
3994
4070
|
};
|
|
3995
|
-
|
|
3996
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
4071
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
3997
4072
|
meta?: any;
|
|
3998
4073
|
} | {
|
|
3999
4074
|
authority: string | null;
|
|
4000
4075
|
id: string;
|
|
4076
|
+
action: "create" | "update";
|
|
4001
4077
|
data: {
|
|
4002
4078
|
total: {
|
|
4003
4079
|
amount: bigint;
|
|
@@ -4037,13 +4113,12 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
4037
4113
|
};
|
|
4038
4114
|
openedAtSlot: bigint;
|
|
4039
4115
|
};
|
|
4040
|
-
|
|
4041
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
4116
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4042
4117
|
meta?: any;
|
|
4043
4118
|
}>;
|
|
4044
4119
|
declare const LendingPositionNotification: z.ZodObject<{
|
|
4045
4120
|
meta: z.ZodTypeAny;
|
|
4046
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
4121
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
4047
4122
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
4048
4123
|
data: z.ZodObject<{
|
|
4049
4124
|
address: z.ZodString;
|
|
@@ -4104,7 +4179,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
4104
4179
|
authority: z.ZodNullable<z.ZodString>;
|
|
4105
4180
|
} | {
|
|
4106
4181
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
4107
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
4182
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
4108
4183
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
4109
4184
|
data: z.ZodObject<{
|
|
4110
4185
|
address: z.ZodString;
|
|
@@ -4166,6 +4241,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
4166
4241
|
}, "strip", z.ZodTypeAny, {
|
|
4167
4242
|
authority: string | null;
|
|
4168
4243
|
id: string;
|
|
4244
|
+
action: "create" | "update";
|
|
4169
4245
|
data: {
|
|
4170
4246
|
mint: string;
|
|
4171
4247
|
address: string;
|
|
@@ -4181,12 +4257,12 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
4181
4257
|
usd: number;
|
|
4182
4258
|
};
|
|
4183
4259
|
};
|
|
4184
|
-
|
|
4185
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
4260
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4186
4261
|
meta?: any;
|
|
4187
4262
|
} | {
|
|
4188
4263
|
authority: string | null;
|
|
4189
4264
|
id: string;
|
|
4265
|
+
action: "create" | "update";
|
|
4190
4266
|
data: {
|
|
4191
4267
|
mint: string;
|
|
4192
4268
|
address: string;
|
|
@@ -4202,12 +4278,12 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
4202
4278
|
usd: number;
|
|
4203
4279
|
};
|
|
4204
4280
|
};
|
|
4205
|
-
|
|
4206
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
4281
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4207
4282
|
meta?: any;
|
|
4208
4283
|
}, {
|
|
4209
4284
|
authority: string | null;
|
|
4210
4285
|
id: string;
|
|
4286
|
+
action: "create" | "update";
|
|
4211
4287
|
data: {
|
|
4212
4288
|
mint: string;
|
|
4213
4289
|
address: string;
|
|
@@ -4223,12 +4299,12 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
4223
4299
|
usd: number;
|
|
4224
4300
|
};
|
|
4225
4301
|
};
|
|
4226
|
-
|
|
4227
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
4302
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4228
4303
|
meta?: any;
|
|
4229
4304
|
} | {
|
|
4230
4305
|
authority: string | null;
|
|
4231
4306
|
id: string;
|
|
4307
|
+
action: "create" | "update";
|
|
4232
4308
|
data: {
|
|
4233
4309
|
mint: string;
|
|
4234
4310
|
address: string;
|
|
@@ -4244,13 +4320,12 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
4244
4320
|
usd: number;
|
|
4245
4321
|
};
|
|
4246
4322
|
};
|
|
4247
|
-
|
|
4248
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
4323
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4249
4324
|
meta?: any;
|
|
4250
4325
|
}>;
|
|
4251
4326
|
declare const LimitOrderNotification: z.ZodObject<{
|
|
4252
4327
|
meta: z.ZodTypeAny;
|
|
4253
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
4328
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
4254
4329
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
4255
4330
|
data: z.ZodObject<{
|
|
4256
4331
|
address: z.ZodString;
|
|
@@ -4329,7 +4404,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
4329
4404
|
authority: z.ZodNullable<z.ZodString>;
|
|
4330
4405
|
} | {
|
|
4331
4406
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
4332
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
4407
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
4333
4408
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
4334
4409
|
data: z.ZodObject<{
|
|
4335
4410
|
address: z.ZodString;
|
|
@@ -4409,6 +4484,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
4409
4484
|
}, "strip", z.ZodTypeAny, {
|
|
4410
4485
|
authority: string | null;
|
|
4411
4486
|
id: string;
|
|
4487
|
+
action: "create" | "update";
|
|
4412
4488
|
data: {
|
|
4413
4489
|
mint: string;
|
|
4414
4490
|
address: string;
|
|
@@ -4430,12 +4506,12 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
4430
4506
|
openTxSignature: string;
|
|
4431
4507
|
closeTxSignature: string | null;
|
|
4432
4508
|
};
|
|
4433
|
-
|
|
4434
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
4509
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4435
4510
|
meta?: any;
|
|
4436
4511
|
} | {
|
|
4437
4512
|
authority: string | null;
|
|
4438
4513
|
id: string;
|
|
4514
|
+
action: "create" | "update";
|
|
4439
4515
|
data: {
|
|
4440
4516
|
mint: string;
|
|
4441
4517
|
address: string;
|
|
@@ -4457,12 +4533,12 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
4457
4533
|
openTxSignature: string;
|
|
4458
4534
|
closeTxSignature: string | null;
|
|
4459
4535
|
};
|
|
4460
|
-
|
|
4461
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
4536
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4462
4537
|
meta?: any;
|
|
4463
4538
|
}, {
|
|
4464
4539
|
authority: string | null;
|
|
4465
4540
|
id: string;
|
|
4541
|
+
action: "create" | "update";
|
|
4466
4542
|
data: {
|
|
4467
4543
|
mint: string;
|
|
4468
4544
|
address: string;
|
|
@@ -4484,12 +4560,12 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
4484
4560
|
openTxSignature: string;
|
|
4485
4561
|
closeTxSignature: string | null;
|
|
4486
4562
|
};
|
|
4487
|
-
|
|
4488
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
4563
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4489
4564
|
meta?: any;
|
|
4490
4565
|
} | {
|
|
4491
4566
|
authority: string | null;
|
|
4492
4567
|
id: string;
|
|
4568
|
+
action: "create" | "update";
|
|
4493
4569
|
data: {
|
|
4494
4570
|
mint: string;
|
|
4495
4571
|
address: string;
|
|
@@ -4511,13 +4587,245 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
4511
4587
|
openTxSignature: string;
|
|
4512
4588
|
closeTxSignature: string | null;
|
|
4513
4589
|
};
|
|
4590
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4591
|
+
meta?: any;
|
|
4592
|
+
}>;
|
|
4593
|
+
declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
4594
|
+
meta: z.ZodTypeAny;
|
|
4595
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
4596
|
+
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
4597
|
+
data: z.ZodObject<{
|
|
4598
|
+
id: z.ZodString;
|
|
4599
|
+
pool: z.ZodString;
|
|
4600
|
+
authority: z.ZodString;
|
|
4601
|
+
aToB: z.ZodBoolean;
|
|
4602
|
+
action: z.ZodEnum<["swap", ...("swap" | "limit_order_fill" | "position_increase" | "position_decrease")[]]>;
|
|
4603
|
+
uiDirection: z.ZodEnum<["buy", ...("buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short")[]]>;
|
|
4604
|
+
uiPrice: z.ZodNumber;
|
|
4605
|
+
baseTokenAmount: z.ZodBigInt;
|
|
4606
|
+
baseTokenAmountUsd: z.ZodNumber;
|
|
4607
|
+
quoteTokenAmount: z.ZodBigInt;
|
|
4608
|
+
quoteTokenAmountUsd: z.ZodNumber;
|
|
4609
|
+
feeAmount: z.ZodBigInt;
|
|
4610
|
+
feeAmountUsd: z.ZodNumber;
|
|
4611
|
+
pnlUsd: z.ZodNullable<z.ZodNumber>;
|
|
4612
|
+
txSignature: z.ZodNullable<z.ZodString>;
|
|
4613
|
+
positionAddress: z.ZodNullable<z.ZodString>;
|
|
4614
|
+
slot: z.ZodBigInt;
|
|
4615
|
+
ts: z.ZodDate;
|
|
4616
|
+
}, "strip", z.ZodTypeAny, {
|
|
4617
|
+
authority: string;
|
|
4618
|
+
pool: string;
|
|
4619
|
+
pnlUsd: number | null;
|
|
4620
|
+
id: string;
|
|
4621
|
+
aToB: boolean;
|
|
4622
|
+
action: "swap" | "limit_order_fill" | "position_increase" | "position_decrease";
|
|
4623
|
+
uiDirection: "buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short";
|
|
4624
|
+
uiPrice: number;
|
|
4625
|
+
baseTokenAmount: bigint;
|
|
4626
|
+
baseTokenAmountUsd: number;
|
|
4627
|
+
quoteTokenAmount: bigint;
|
|
4628
|
+
quoteTokenAmountUsd: number;
|
|
4629
|
+
feeAmount: bigint;
|
|
4630
|
+
feeAmountUsd: number;
|
|
4631
|
+
txSignature: string | null;
|
|
4632
|
+
positionAddress: string | null;
|
|
4633
|
+
slot: bigint;
|
|
4634
|
+
ts: Date;
|
|
4635
|
+
}, {
|
|
4636
|
+
authority: string;
|
|
4637
|
+
pool: string;
|
|
4638
|
+
pnlUsd: number | null;
|
|
4639
|
+
id: string;
|
|
4640
|
+
aToB: boolean;
|
|
4641
|
+
action: "swap" | "limit_order_fill" | "position_increase" | "position_decrease";
|
|
4642
|
+
uiDirection: "buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short";
|
|
4643
|
+
uiPrice: number;
|
|
4644
|
+
baseTokenAmount: bigint;
|
|
4645
|
+
baseTokenAmountUsd: number;
|
|
4646
|
+
quoteTokenAmount: bigint;
|
|
4647
|
+
quoteTokenAmountUsd: number;
|
|
4648
|
+
feeAmount: bigint;
|
|
4649
|
+
feeAmountUsd: number;
|
|
4650
|
+
txSignature: string | null;
|
|
4651
|
+
positionAddress: string | null;
|
|
4652
|
+
slot: bigint;
|
|
4653
|
+
ts: Date;
|
|
4654
|
+
}>;
|
|
4655
|
+
id: z.ZodString;
|
|
4656
|
+
authority: z.ZodNullable<z.ZodString>;
|
|
4657
|
+
} | {
|
|
4658
|
+
meta: z.ZodNullable<z.ZodUndefined>;
|
|
4659
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
4660
|
+
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
4661
|
+
data: z.ZodObject<{
|
|
4662
|
+
id: z.ZodString;
|
|
4663
|
+
pool: z.ZodString;
|
|
4664
|
+
authority: z.ZodString;
|
|
4665
|
+
aToB: z.ZodBoolean;
|
|
4666
|
+
action: z.ZodEnum<["swap", ...("swap" | "limit_order_fill" | "position_increase" | "position_decrease")[]]>;
|
|
4667
|
+
uiDirection: z.ZodEnum<["buy", ...("buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short")[]]>;
|
|
4668
|
+
uiPrice: z.ZodNumber;
|
|
4669
|
+
baseTokenAmount: z.ZodBigInt;
|
|
4670
|
+
baseTokenAmountUsd: z.ZodNumber;
|
|
4671
|
+
quoteTokenAmount: z.ZodBigInt;
|
|
4672
|
+
quoteTokenAmountUsd: z.ZodNumber;
|
|
4673
|
+
feeAmount: z.ZodBigInt;
|
|
4674
|
+
feeAmountUsd: z.ZodNumber;
|
|
4675
|
+
pnlUsd: z.ZodNullable<z.ZodNumber>;
|
|
4676
|
+
txSignature: z.ZodNullable<z.ZodString>;
|
|
4677
|
+
positionAddress: z.ZodNullable<z.ZodString>;
|
|
4678
|
+
slot: z.ZodBigInt;
|
|
4679
|
+
ts: z.ZodDate;
|
|
4680
|
+
}, "strip", z.ZodTypeAny, {
|
|
4681
|
+
authority: string;
|
|
4682
|
+
pool: string;
|
|
4683
|
+
pnlUsd: number | null;
|
|
4684
|
+
id: string;
|
|
4685
|
+
aToB: boolean;
|
|
4686
|
+
action: "swap" | "limit_order_fill" | "position_increase" | "position_decrease";
|
|
4687
|
+
uiDirection: "buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short";
|
|
4688
|
+
uiPrice: number;
|
|
4689
|
+
baseTokenAmount: bigint;
|
|
4690
|
+
baseTokenAmountUsd: number;
|
|
4691
|
+
quoteTokenAmount: bigint;
|
|
4692
|
+
quoteTokenAmountUsd: number;
|
|
4693
|
+
feeAmount: bigint;
|
|
4694
|
+
feeAmountUsd: number;
|
|
4695
|
+
txSignature: string | null;
|
|
4696
|
+
positionAddress: string | null;
|
|
4697
|
+
slot: bigint;
|
|
4698
|
+
ts: Date;
|
|
4699
|
+
}, {
|
|
4700
|
+
authority: string;
|
|
4701
|
+
pool: string;
|
|
4702
|
+
pnlUsd: number | null;
|
|
4703
|
+
id: string;
|
|
4704
|
+
aToB: boolean;
|
|
4705
|
+
action: "swap" | "limit_order_fill" | "position_increase" | "position_decrease";
|
|
4706
|
+
uiDirection: "buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short";
|
|
4707
|
+
uiPrice: number;
|
|
4708
|
+
baseTokenAmount: bigint;
|
|
4709
|
+
baseTokenAmountUsd: number;
|
|
4710
|
+
quoteTokenAmount: bigint;
|
|
4711
|
+
quoteTokenAmountUsd: number;
|
|
4712
|
+
feeAmount: bigint;
|
|
4713
|
+
feeAmountUsd: number;
|
|
4714
|
+
txSignature: string | null;
|
|
4715
|
+
positionAddress: string | null;
|
|
4716
|
+
slot: bigint;
|
|
4717
|
+
ts: Date;
|
|
4718
|
+
}>;
|
|
4719
|
+
id: z.ZodString;
|
|
4720
|
+
authority: z.ZodNullable<z.ZodString>;
|
|
4721
|
+
}, "strip", z.ZodTypeAny, {
|
|
4722
|
+
authority: string | null;
|
|
4723
|
+
id: string;
|
|
4514
4724
|
action: "create" | "update";
|
|
4515
|
-
|
|
4725
|
+
data: {
|
|
4726
|
+
authority: string;
|
|
4727
|
+
pool: string;
|
|
4728
|
+
pnlUsd: number | null;
|
|
4729
|
+
id: string;
|
|
4730
|
+
aToB: boolean;
|
|
4731
|
+
action: "swap" | "limit_order_fill" | "position_increase" | "position_decrease";
|
|
4732
|
+
uiDirection: "buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short";
|
|
4733
|
+
uiPrice: number;
|
|
4734
|
+
baseTokenAmount: bigint;
|
|
4735
|
+
baseTokenAmountUsd: number;
|
|
4736
|
+
quoteTokenAmount: bigint;
|
|
4737
|
+
quoteTokenAmountUsd: number;
|
|
4738
|
+
feeAmount: bigint;
|
|
4739
|
+
feeAmountUsd: number;
|
|
4740
|
+
txSignature: string | null;
|
|
4741
|
+
positionAddress: string | null;
|
|
4742
|
+
slot: bigint;
|
|
4743
|
+
ts: Date;
|
|
4744
|
+
};
|
|
4745
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4746
|
+
meta?: any;
|
|
4747
|
+
} | {
|
|
4748
|
+
authority: string | null;
|
|
4749
|
+
id: string;
|
|
4750
|
+
action: "create" | "update";
|
|
4751
|
+
data: {
|
|
4752
|
+
authority: string;
|
|
4753
|
+
pool: string;
|
|
4754
|
+
pnlUsd: number | null;
|
|
4755
|
+
id: string;
|
|
4756
|
+
aToB: boolean;
|
|
4757
|
+
action: "swap" | "limit_order_fill" | "position_increase" | "position_decrease";
|
|
4758
|
+
uiDirection: "buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short";
|
|
4759
|
+
uiPrice: number;
|
|
4760
|
+
baseTokenAmount: bigint;
|
|
4761
|
+
baseTokenAmountUsd: number;
|
|
4762
|
+
quoteTokenAmount: bigint;
|
|
4763
|
+
quoteTokenAmountUsd: number;
|
|
4764
|
+
feeAmount: bigint;
|
|
4765
|
+
feeAmountUsd: number;
|
|
4766
|
+
txSignature: string | null;
|
|
4767
|
+
positionAddress: string | null;
|
|
4768
|
+
slot: bigint;
|
|
4769
|
+
ts: Date;
|
|
4770
|
+
};
|
|
4771
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4772
|
+
meta?: any;
|
|
4773
|
+
}, {
|
|
4774
|
+
authority: string | null;
|
|
4775
|
+
id: string;
|
|
4776
|
+
action: "create" | "update";
|
|
4777
|
+
data: {
|
|
4778
|
+
authority: string;
|
|
4779
|
+
pool: string;
|
|
4780
|
+
pnlUsd: number | null;
|
|
4781
|
+
id: string;
|
|
4782
|
+
aToB: boolean;
|
|
4783
|
+
action: "swap" | "limit_order_fill" | "position_increase" | "position_decrease";
|
|
4784
|
+
uiDirection: "buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short";
|
|
4785
|
+
uiPrice: number;
|
|
4786
|
+
baseTokenAmount: bigint;
|
|
4787
|
+
baseTokenAmountUsd: number;
|
|
4788
|
+
quoteTokenAmount: bigint;
|
|
4789
|
+
quoteTokenAmountUsd: number;
|
|
4790
|
+
feeAmount: bigint;
|
|
4791
|
+
feeAmountUsd: number;
|
|
4792
|
+
txSignature: string | null;
|
|
4793
|
+
positionAddress: string | null;
|
|
4794
|
+
slot: bigint;
|
|
4795
|
+
ts: Date;
|
|
4796
|
+
};
|
|
4797
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4798
|
+
meta?: any;
|
|
4799
|
+
} | {
|
|
4800
|
+
authority: string | null;
|
|
4801
|
+
id: string;
|
|
4802
|
+
action: "create" | "update";
|
|
4803
|
+
data: {
|
|
4804
|
+
authority: string;
|
|
4805
|
+
pool: string;
|
|
4806
|
+
pnlUsd: number | null;
|
|
4807
|
+
id: string;
|
|
4808
|
+
aToB: boolean;
|
|
4809
|
+
action: "swap" | "limit_order_fill" | "position_increase" | "position_decrease";
|
|
4810
|
+
uiDirection: "buy" | "sell" | "open_long" | "close_long" | "open_short" | "close_short";
|
|
4811
|
+
uiPrice: number;
|
|
4812
|
+
baseTokenAmount: bigint;
|
|
4813
|
+
baseTokenAmountUsd: number;
|
|
4814
|
+
quoteTokenAmount: bigint;
|
|
4815
|
+
quoteTokenAmountUsd: number;
|
|
4816
|
+
feeAmount: bigint;
|
|
4817
|
+
feeAmountUsd: number;
|
|
4818
|
+
txSignature: string | null;
|
|
4819
|
+
positionAddress: string | null;
|
|
4820
|
+
slot: bigint;
|
|
4821
|
+
ts: Date;
|
|
4822
|
+
};
|
|
4823
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4516
4824
|
meta?: any;
|
|
4517
4825
|
}>;
|
|
4518
4826
|
declare const StakingPositionNotification: z.ZodObject<{
|
|
4519
4827
|
meta: z.ZodTypeAny;
|
|
4520
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
4828
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
4521
4829
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
4522
4830
|
data: z.ZodObject<{
|
|
4523
4831
|
address: z.ZodString;
|
|
@@ -4694,7 +5002,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
4694
5002
|
authority: z.ZodNullable<z.ZodString>;
|
|
4695
5003
|
} | {
|
|
4696
5004
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
4697
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
5005
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry")[]]>;
|
|
4698
5006
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
4699
5007
|
data: z.ZodObject<{
|
|
4700
5008
|
address: z.ZodString;
|
|
@@ -4872,6 +5180,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
4872
5180
|
}, "strip", z.ZodTypeAny, {
|
|
4873
5181
|
authority: string | null;
|
|
4874
5182
|
id: string;
|
|
5183
|
+
action: "create" | "update";
|
|
4875
5184
|
data: {
|
|
4876
5185
|
address: string;
|
|
4877
5186
|
owner: string;
|
|
@@ -4909,12 +5218,12 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
4909
5218
|
lastUnstakedAt: Date | null;
|
|
4910
5219
|
withdrawAvailableAt: Date | null;
|
|
4911
5220
|
};
|
|
4912
|
-
|
|
4913
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
5221
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4914
5222
|
meta?: any;
|
|
4915
5223
|
} | {
|
|
4916
5224
|
authority: string | null;
|
|
4917
5225
|
id: string;
|
|
5226
|
+
action: "create" | "update";
|
|
4918
5227
|
data: {
|
|
4919
5228
|
address: string;
|
|
4920
5229
|
owner: string;
|
|
@@ -4952,12 +5261,12 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
4952
5261
|
lastUnstakedAt: Date | null;
|
|
4953
5262
|
withdrawAvailableAt: Date | null;
|
|
4954
5263
|
};
|
|
4955
|
-
|
|
4956
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
5264
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
4957
5265
|
meta?: any;
|
|
4958
5266
|
}, {
|
|
4959
5267
|
authority: string | null;
|
|
4960
5268
|
id: string;
|
|
5269
|
+
action: "create" | "update";
|
|
4961
5270
|
data: {
|
|
4962
5271
|
address: string;
|
|
4963
5272
|
owner: string;
|
|
@@ -4995,12 +5304,12 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
4995
5304
|
lastUnstakedAt: Date | null;
|
|
4996
5305
|
withdrawAvailableAt: Date | null;
|
|
4997
5306
|
};
|
|
4998
|
-
|
|
4999
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
5307
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
5000
5308
|
meta?: any;
|
|
5001
5309
|
} | {
|
|
5002
5310
|
authority: string | null;
|
|
5003
5311
|
id: string;
|
|
5312
|
+
action: "create" | "update";
|
|
5004
5313
|
data: {
|
|
5005
5314
|
address: string;
|
|
5006
5315
|
owner: string;
|
|
@@ -5038,8 +5347,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
5038
5347
|
lastUnstakedAt: Date | null;
|
|
5039
5348
|
withdrawAvailableAt: Date | null;
|
|
5040
5349
|
};
|
|
5041
|
-
|
|
5042
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
5350
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry";
|
|
5043
5351
|
meta?: any;
|
|
5044
5352
|
}>;
|
|
5045
5353
|
|
|
@@ -5061,6 +5369,11 @@ declare const schemas_PoolSubscriptionTopicSchema: typeof PoolSubscriptionTopicS
|
|
|
5061
5369
|
declare const schemas_PoolSwapNotification: typeof PoolSwapNotification;
|
|
5062
5370
|
declare const schemas_StakingPositionHistoryActionTypeSchema: typeof StakingPositionHistoryActionTypeSchema;
|
|
5063
5371
|
declare const schemas_StakingPositionNotification: typeof StakingPositionNotification;
|
|
5372
|
+
declare const schemas_TradeHistoryAction: typeof TradeHistoryAction;
|
|
5373
|
+
declare const schemas_TradeHistoryActionSchema: typeof TradeHistoryActionSchema;
|
|
5374
|
+
declare const schemas_TradeHistoryEntryNotification: typeof TradeHistoryEntryNotification;
|
|
5375
|
+
declare const schemas_TradeHistoryUIDirection: typeof TradeHistoryUIDirection;
|
|
5376
|
+
declare const schemas_TradeHistoryUIDirectionSchema: typeof TradeHistoryUIDirectionSchema;
|
|
5064
5377
|
declare const schemas_TunaPositionNotification: typeof TunaPositionNotification;
|
|
5065
5378
|
declare const schemas_TunaPositionState: typeof TunaPositionState;
|
|
5066
5379
|
declare const schemas_TunaPositionStateSchema: typeof TunaPositionStateSchema;
|
|
@@ -5071,13 +5384,15 @@ declare const schemas_UpdateStreamSubscriptionResult: typeof UpdateStreamSubscri
|
|
|
5071
5384
|
declare const schemas_WalletSubscriptionTopic: typeof WalletSubscriptionTopic;
|
|
5072
5385
|
declare const schemas_WalletSubscriptionTopicSchema: typeof WalletSubscriptionTopicSchema;
|
|
5073
5386
|
declare namespace schemas {
|
|
5074
|
-
export { FeesStatsGroup$1 as FeesStatsGroup, LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, schemas_OrderBookNotificationMeta as OrderBookNotificationMeta, PaginationMeta$1 as PaginationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolPriceUpdateNotification as PoolPriceUpdateNotification, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, StakingLeaderboardPage$1 as StakingLeaderboardPage, StakingLeaderboardPosition$1 as StakingLeaderboardPosition, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, StakingTreasury$1 as StakingTreasury, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, TunaSpotPosition$1 as TunaSpotPosition, schemas_TunaSpotPositionNotification as TunaSpotPositionNotification, schemas_TunaSpotPositionState as TunaSpotPositionState, schemas_TunaSpotPositionStateSchema as TunaSpotPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
|
|
5387
|
+
export { FeesStatsGroup$1 as FeesStatsGroup, LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, schemas_OrderBookNotificationMeta as OrderBookNotificationMeta, PaginationMeta$1 as PaginationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolPriceUpdateNotification as PoolPriceUpdateNotification, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, StakingLeaderboardPage$1 as StakingLeaderboardPage, StakingLeaderboardPosition$1 as StakingLeaderboardPosition, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, StakingTreasury$1 as StakingTreasury, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, schemas_TradeHistoryAction as TradeHistoryAction, schemas_TradeHistoryActionSchema as TradeHistoryActionSchema, TradeHistoryEntry$1 as TradeHistoryEntry, schemas_TradeHistoryEntryNotification as TradeHistoryEntryNotification, schemas_TradeHistoryUIDirection as TradeHistoryUIDirection, schemas_TradeHistoryUIDirectionSchema as TradeHistoryUIDirectionSchema, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, TunaSpotPosition$1 as TunaSpotPosition, schemas_TunaSpotPositionNotification as TunaSpotPositionNotification, schemas_TunaSpotPositionState as TunaSpotPositionState, schemas_TunaSpotPositionStateSchema as TunaSpotPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
|
|
5075
5388
|
}
|
|
5076
5389
|
|
|
5077
5390
|
type PoolProviderType = z.infer<typeof PoolProviderSchema>;
|
|
5078
5391
|
type TunaPositionStateType = z.infer<typeof TunaPositionStateSchema>;
|
|
5079
5392
|
type TunaSpotPositionStateType = z.infer<typeof TunaSpotPositionStateSchema>;
|
|
5080
5393
|
type LimitOrderStateType = z.infer<typeof LimitOrderStateSchema>;
|
|
5394
|
+
type TradeHistoryActionType = z.infer<typeof TradeHistoryActionSchema>;
|
|
5395
|
+
type TradeHistoryUIDirectionType = z.infer<typeof TradeHistoryUIDirectionSchema>;
|
|
5081
5396
|
type StakingPositionHistoryActionType = z.infer<typeof StakingPositionHistoryActionTypeSchema>;
|
|
5082
5397
|
type PoolSubscriptionTopicType = z.infer<typeof PoolSubscriptionTopicSchema>;
|
|
5083
5398
|
type WalletSubscriptionTopicType = z.infer<typeof WalletSubscriptionTopicSchema>;
|
|
@@ -5097,6 +5412,7 @@ type LendingPosition = z.infer<typeof LendingPosition$1>;
|
|
|
5097
5412
|
type TunaPosition = z.infer<typeof TunaPosition$1>;
|
|
5098
5413
|
type TunaSpotPosition = z.infer<typeof TunaSpotPosition$1>;
|
|
5099
5414
|
type LimitOrder = z.infer<typeof LimitOrder$1>;
|
|
5415
|
+
type TradeHistoryEntry = z.infer<typeof TradeHistoryEntry$1>;
|
|
5100
5416
|
type StakingPosition = z.infer<typeof StakingPosition$1>;
|
|
5101
5417
|
type StakingTreasury = z.infer<typeof StakingTreasury$1>;
|
|
5102
5418
|
type StakingLeaderboardPage = z.infer<typeof StakingLeaderboardPage$1>;
|
|
@@ -5118,6 +5434,25 @@ type SubscriptionPayload = {
|
|
|
5118
5434
|
topics: WalletSubscriptionTopicType[];
|
|
5119
5435
|
};
|
|
5120
5436
|
};
|
|
5437
|
+
type GetUserLimitOrdersOptions = {
|
|
5438
|
+
pool?: string[];
|
|
5439
|
+
status?: LimitOrderStateType[];
|
|
5440
|
+
openedAt?: {
|
|
5441
|
+
from?: Date;
|
|
5442
|
+
to?: Date;
|
|
5443
|
+
};
|
|
5444
|
+
cursor?: string;
|
|
5445
|
+
limit?: number;
|
|
5446
|
+
desc?: boolean;
|
|
5447
|
+
};
|
|
5448
|
+
type GetUserTradeHistoryOptions = {
|
|
5449
|
+
pool?: string[];
|
|
5450
|
+
action?: TradeHistoryActionType[];
|
|
5451
|
+
uiDirection?: TradeHistoryUIDirectionType[];
|
|
5452
|
+
cursor?: string;
|
|
5453
|
+
limit?: number;
|
|
5454
|
+
desc?: boolean;
|
|
5455
|
+
};
|
|
5121
5456
|
type DurationInMs = number;
|
|
5122
5457
|
declare enum ProviderFilter {
|
|
5123
5458
|
ORCA = "orca",
|
|
@@ -5187,8 +5522,9 @@ declare class TunaApiClient {
|
|
|
5187
5522
|
getUserTunaPositionByAddress(userAddress: string, tunaPositionAddress: string): Promise<TunaPosition>;
|
|
5188
5523
|
getUserTunaSpotPositions(userAddress: string): Promise<TunaSpotPosition[]>;
|
|
5189
5524
|
getUserTunaSpotPositionByAddress(userAddress: string, tunaSpotPositionAddress: string): Promise<TunaSpotPosition>;
|
|
5190
|
-
getUserLimitOrders(userAddress: string,
|
|
5525
|
+
getUserLimitOrders(userAddress: string, options?: GetUserLimitOrdersOptions): Promise<LimitOrder[]>;
|
|
5191
5526
|
getUserLimitOrderByAddress(userAddress: string, limitOrderAddress: string): Promise<LimitOrder>;
|
|
5527
|
+
getUserTradeHistory(userAddress: string, options?: GetUserTradeHistoryOptions): Promise<TradeHistoryEntry[]>;
|
|
5192
5528
|
getUserStakingPosition(userAddress: string): Promise<StakingPosition>;
|
|
5193
5529
|
getUserStakingPositionHistory(userAddress: string): Promise<StakingPositionHistoryAction[]>;
|
|
5194
5530
|
getFeesStats(from: Date, to: Date, interval: string): Promise<FeesStatsGroup[]>;
|
|
@@ -5199,4 +5535,4 @@ declare class TunaApiClient {
|
|
|
5199
5535
|
private appendUrlSearchParams;
|
|
5200
5536
|
}
|
|
5201
5537
|
|
|
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 };
|
|
5538
|
+
export { type DurationInMs, type FeesStatsGroup, type GetPoolPriceCandlesOptions, type GetUserLimitOrdersOptions, type GetUserTradeHistoryOptions, type LendingPosition, type LimitOrder, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type OrderBook, type OrderBookEntry, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type StakingLeaderboardPage, type StakingLeaderboardPosition, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingRevenueStatsGroup, type StakingTreasury, type SubscriptionPayload, type Tick, type TokenOraclePrice, type TradeHistoryActionType, type TradeHistoryEntry, type TradeHistoryUIDirectionType, TunaApiClient, type TunaApiClientConfig, type TunaPosition, TunaPositionState, type TunaPositionStateType, type TunaSpotPosition, type TunaSpotPositionStateType, type Vault, type VaultHistoricalStats, type WalletSubscriptionTopicType, schemas };
|